From 05acae313008220aaccec47c687a764f7e81bd02 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Mon, 18 Dec 2017 19:02:58 +0800 Subject: [PATCH 1/8] Basic tests for FunctionArgumentConversion and DecimalPrecision --- .../typeCoercion/native/decimalPrecision.sql | 6883 + .../native/functionArgumentConversion.sql | 21530 ++ .../native/decimalPrecision.sql.out | 56770 +++++ .../native/functionArgumentConversion.sql.out | 187611 +++++++++++++++ 4 files changed, 272794 insertions(+) create mode 100644 sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql create mode 100644 sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql create mode 100644 sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out create mode 100644 sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out diff --git a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql new file mode 100644 index 0000000000000..9ccdd5e8d8dc0 --- /dev/null +++ b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql @@ -0,0 +1,6883 @@ +-- +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to You under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- + +CREATE TEMPORARY VIEW t AS SELECT 1; + +SELECT cast(1 as tinyint) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; + + +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast(1 as int), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast(1 as int), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast(1 as float), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast(1 as float), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast(1 as double), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast(1 as double), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 0))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(2, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 1))) FROM t; +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 1))) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as tinyint)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as tinyint)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as smallint)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as smallint)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as int)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as int)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as bigint)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as bigint)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as float)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as float)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as double)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as double)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as decimal(10, 0))) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as decimal(10, 0))) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as string)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as string)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast('1' as binary)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast('1' as binary)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as boolean)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as boolean)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; + +SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT cast(1 as tinyint) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; + +SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as smallint) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as smallint) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as int) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as int) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as bigint) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as bigint) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as float) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as float) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as double) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as double) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('1' as binary) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast('1' as binary) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 0)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(2, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 1)) FROM t; +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 1)) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as tinyint) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as tinyint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as smallint) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as smallint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as int) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as int) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as bigint) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as bigint) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as float) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as float) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as double) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as double) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as decimal(10, 0)) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as decimal(10, 0)) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as string) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as string) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast('1' as binary) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast('1' as binary) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast(1 as boolean) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast(1 as boolean) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + +SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; +SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; diff --git a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql new file mode 100644 index 0000000000000..91c03ac3b150f --- /dev/null +++ b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql @@ -0,0 +1,21530 @@ +-- +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to You under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- + +CREATE TEMPORARY VIEW t AS SELECT 1; + +SELECT array(cast(1 as tinyint), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as int)) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as float)) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as double)) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as string)) FROM t; +SELECT array(cast(1 as tinyint), cast('1' as binary)) FROM t; +SELECT array(cast(1 as tinyint), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as smallint), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as smallint), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as smallint), cast(1 as int)) FROM t; +SELECT array(cast(1 as smallint), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as smallint), cast(1 as float)) FROM t; +SELECT array(cast(1 as smallint), cast(1 as double)) FROM t; +SELECT array(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as smallint), cast(1 as string)) FROM t; +SELECT array(cast(1 as smallint), cast('1' as binary)) FROM t; +SELECT array(cast(1 as smallint), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as int), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as int), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as int), cast(1 as int)) FROM t; +SELECT array(cast(1 as int), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as int), cast(1 as float)) FROM t; +SELECT array(cast(1 as int), cast(1 as double)) FROM t; +SELECT array(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as int), cast(1 as string)) FROM t; +SELECT array(cast(1 as int), cast('1' as binary)) FROM t; +SELECT array(cast(1 as int), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as bigint), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as bigint), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as bigint), cast(1 as int)) FROM t; +SELECT array(cast(1 as bigint), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as bigint), cast(1 as float)) FROM t; +SELECT array(cast(1 as bigint), cast(1 as double)) FROM t; +SELECT array(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as bigint), cast(1 as string)) FROM t; +SELECT array(cast(1 as bigint), cast('1' as binary)) FROM t; +SELECT array(cast(1 as bigint), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as float), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as float), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as float), cast(1 as int)) FROM t; +SELECT array(cast(1 as float), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as float), cast(1 as float)) FROM t; +SELECT array(cast(1 as float), cast(1 as double)) FROM t; +SELECT array(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as float), cast(1 as string)) FROM t; +SELECT array(cast(1 as float), cast('1' as binary)) FROM t; +SELECT array(cast(1 as float), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as double), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as double), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as double), cast(1 as int)) FROM t; +SELECT array(cast(1 as double), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as double), cast(1 as float)) FROM t; +SELECT array(cast(1 as double), cast(1 as double)) FROM t; +SELECT array(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as double), cast(1 as string)) FROM t; +SELECT array(cast(1 as double), cast('1' as binary)) FROM t; +SELECT array(cast(1 as double), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as string), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as string), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as string), cast(1 as int)) FROM t; +SELECT array(cast(1 as string), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as string), cast(1 as float)) FROM t; +SELECT array(cast(1 as string), cast(1 as double)) FROM t; +SELECT array(cast(1 as string), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as string), cast(1 as string)) FROM t; +SELECT array(cast(1 as string), cast('1' as binary)) FROM t; +SELECT array(cast(1 as string), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast('1' as binary), cast(1 as tinyint)) FROM t; +SELECT array(cast('1' as binary), cast(1 as smallint)) FROM t; +SELECT array(cast('1' as binary), cast(1 as int)) FROM t; +SELECT array(cast('1' as binary), cast(1 as bigint)) FROM t; +SELECT array(cast('1' as binary), cast(1 as float)) FROM t; +SELECT array(cast('1' as binary), cast(1 as double)) FROM t; +SELECT array(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast('1' as binary), cast(1 as string)) FROM t; +SELECT array(cast('1' as binary), cast('1' as binary)) FROM t; +SELECT array(cast('1' as binary), cast(1 as boolean)) FROM t; +SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast(1 as boolean), cast(1 as tinyint)) FROM t; +SELECT array(cast(1 as boolean), cast(1 as smallint)) FROM t; +SELECT array(cast(1 as boolean), cast(1 as int)) FROM t; +SELECT array(cast(1 as boolean), cast(1 as bigint)) FROM t; +SELECT array(cast(1 as boolean), cast(1 as float)) FROM t; +SELECT array(cast(1 as boolean), cast(1 as double)) FROM t; +SELECT array(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast(1 as boolean), cast(1 as string)) FROM t; +SELECT array(cast(1 as boolean), cast('1' as binary)) FROM t; +SELECT array(cast(1 as boolean), cast(1 as boolean)) FROM t; +SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast('1' as binary)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; + +SELECT sum(cast(1 as tinyint)) FROM t; +SELECT sum(cast(1 as smallint)) FROM t; +SELECT sum(cast(1 as int)) FROM t; +SELECT sum(cast(1 as bigint)) FROM t; +SELECT sum(cast(1 as float)) FROM t; +SELECT sum(cast(1 as double)) FROM t; +SELECT sum(cast(1 as decimal(10, 0))) FROM t; +SELECT sum(cast(1 as string)) FROM t; +SELECT sum(cast('1' as binary)) FROM t; +SELECT sum(cast(1 as boolean)) FROM t; +SELECT sum(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT sum(cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT avg(cast(1 as tinyint)) FROM t; +SELECT avg(cast(1 as smallint)) FROM t; +SELECT avg(cast(1 as int)) FROM t; +SELECT avg(cast(1 as bigint)) FROM t; +SELECT avg(cast(1 as float)) FROM t; +SELECT avg(cast(1 as double)) FROM t; +SELECT avg(cast(1 as decimal(10, 0))) FROM t; +SELECT avg(cast(1 as string)) FROM t; +SELECT avg(cast('1' as binary)) FROM t; +SELECT avg(cast(1 as boolean)) FROM t; +SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT avg(cast(1 as tinyint)) FROM t; +SELECT avg(cast(1 as smallint)) FROM t; +SELECT avg(cast(1 as int)) FROM t; +SELECT avg(cast(1 as bigint)) FROM t; +SELECT avg(cast(1 as float)) FROM t; +SELECT avg(cast(1 as double)) FROM t; +SELECT avg(cast(1 as decimal(10, 0))) FROM t; +SELECT avg(cast(1 as string)) FROM t; +SELECT avg(cast('1' as binary)) FROM t; +SELECT avg(cast(1 as boolean)) FROM t; +SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT coalesce(cast(1 as tinyint), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as smallint), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as smallint), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as int), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as int), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as bigint), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as bigint), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as float), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as float), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as double), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as double), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as string), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as string), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as smallint)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as int)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as bigint)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as float)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as double)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as string)) FROM t; +SELECT coalesce(cast('1' as binary), cast('2' as binary)) FROM t; +SELECT coalesce(cast('1' as binary), cast(2 as boolean)) FROM t; +SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as smallint)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as int)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as bigint)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as float)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as double)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as string)) FROM t; +SELECT coalesce(cast(1 as boolean), cast('2' as binary)) FROM t; +SELECT coalesce(cast(1 as boolean), cast(2 as boolean)) FROM t; +SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; + +SELECT greatest(cast(1 as tinyint), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as tinyint), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as tinyint), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as smallint), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as smallint), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as int), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as int), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as int), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as bigint), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as bigint), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as float), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as float), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as float), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as double), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as double), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as double), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as string), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as string), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as string), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as tinyint)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as smallint)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as int)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as bigint)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as float)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as double)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as string)) FROM t; +SELECT greatest(cast('1' as binary), cast('2' as binary)) FROM t; +SELECT greatest(cast('1' as binary), cast(2 as boolean)) FROM t; +SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as tinyint)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as smallint)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as int)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as bigint)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as float)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as double)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as string)) FROM t; +SELECT greatest(cast(1 as boolean), cast('2' as binary)) FROM t; +SELECT greatest(cast(1 as boolean), cast(2 as boolean)) FROM t; +SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; + +SELECT least(cast(1 as tinyint), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as int)) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as float)) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as double)) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as string)) FROM t; +SELECT least(cast(1 as tinyint), cast('2' as binary)) FROM t; +SELECT least(cast(1 as tinyint), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as int)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as float)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as double)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as smallint), cast(2 as string)) FROM t; +SELECT least(cast(1 as smallint), cast('2' as binary)) FROM t; +SELECT least(cast(1 as smallint), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as int), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as int), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as int), cast(2 as int)) FROM t; +SELECT least(cast(1 as int), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as int), cast(2 as float)) FROM t; +SELECT least(cast(1 as int), cast(2 as double)) FROM t; +SELECT least(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as int), cast(2 as string)) FROM t; +SELECT least(cast(1 as int), cast('2' as binary)) FROM t; +SELECT least(cast(1 as int), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as int)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as float)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as double)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as bigint), cast(2 as string)) FROM t; +SELECT least(cast(1 as bigint), cast('2' as binary)) FROM t; +SELECT least(cast(1 as bigint), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as float), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as float), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as float), cast(2 as int)) FROM t; +SELECT least(cast(1 as float), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as float), cast(2 as float)) FROM t; +SELECT least(cast(1 as float), cast(2 as double)) FROM t; +SELECT least(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as float), cast(2 as string)) FROM t; +SELECT least(cast(1 as float), cast('2' as binary)) FROM t; +SELECT least(cast(1 as float), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as double), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as double), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as double), cast(2 as int)) FROM t; +SELECT least(cast(1 as double), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as double), cast(2 as float)) FROM t; +SELECT least(cast(1 as double), cast(2 as double)) FROM t; +SELECT least(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as double), cast(2 as string)) FROM t; +SELECT least(cast(1 as double), cast('2' as binary)) FROM t; +SELECT least(cast(1 as double), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as string), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as string), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as string), cast(2 as int)) FROM t; +SELECT least(cast(1 as string), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as string), cast(2 as float)) FROM t; +SELECT least(cast(1 as string), cast(2 as double)) FROM t; +SELECT least(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as string), cast(2 as string)) FROM t; +SELECT least(cast(1 as string), cast('2' as binary)) FROM t; +SELECT least(cast(1 as string), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast('1' as binary), cast(2 as tinyint)) FROM t; +SELECT least(cast('1' as binary), cast(2 as smallint)) FROM t; +SELECT least(cast('1' as binary), cast(2 as int)) FROM t; +SELECT least(cast('1' as binary), cast(2 as bigint)) FROM t; +SELECT least(cast('1' as binary), cast(2 as float)) FROM t; +SELECT least(cast('1' as binary), cast(2 as double)) FROM t; +SELECT least(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast('1' as binary), cast(2 as string)) FROM t; +SELECT least(cast('1' as binary), cast('2' as binary)) FROM t; +SELECT least(cast('1' as binary), cast(2 as boolean)) FROM t; +SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as tinyint)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as smallint)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as int)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as bigint)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as float)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as double)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast(1 as boolean), cast(2 as string)) FROM t; +SELECT least(cast(1 as boolean), cast('2' as binary)) FROM t; +SELECT least(cast(1 as boolean), cast(2 as boolean)) FROM t; +SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; + +SELECT nanvl(cast(1 as tinyint), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as smallint), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as smallint), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as int), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as int), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as bigint), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as bigint), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as float), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as float), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as double), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as double), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as string), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as string), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as smallint)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as int)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as bigint)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as float)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as double)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as string)) FROM t; +SELECT nanvl(cast('1' as binary), cast('2' as binary)) FROM t; +SELECT nanvl(cast('1' as binary), cast(2 as boolean)) FROM t; +SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as smallint)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as int)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as bigint)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as float)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as double)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as string)) FROM t; +SELECT nanvl(cast(1 as boolean), cast('2' as binary)) FROM t; +SELECT nanvl(cast(1 as boolean), cast(2 as boolean)) FROM t; +SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out new file mode 100644 index 0000000000000..61ed59ef95711 --- /dev/null +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out @@ -0,0 +1,56770 @@ +-- Automatically generated by SQLQueryTestSuite +-- Number of queries: 6579 + + +-- !query 0 +CREATE TEMPORARY VIEW t AS SELECT 1 +-- !query 0 schema +struct<> +-- !query 0 output + + + +-- !query 1 +SELECT cast(1 as tinyint) + cast(1 as decimal(1, 0)) FROM t +-- !query 1 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0))):decimal(4,0)> +-- !query 1 output +2 + + +-- !query 2 +SELECT cast(1 as tinyint) + cast(1 as decimal(3, 0)) FROM t +-- !query 2 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) + CAST(1 AS DECIMAL(3,0))):decimal(4,0)> +-- !query 2 output +2 + + +-- !query 3 +SELECT cast(1 as tinyint) + cast(1 as decimal(4, 0)) FROM t +-- !query 3 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(5,0)> +-- !query 3 output +2 + + +-- !query 4 +SELECT cast(1 as tinyint) + cast(1 as decimal(5, 0)) FROM t +-- !query 4 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 4 output +2 + + +-- !query 5 +SELECT cast(1 as tinyint) + cast(1 as decimal(6, 0)) FROM t +-- !query 5 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 5 output +2 + + +-- !query 6 +SELECT cast(1 as tinyint) + cast(1 as decimal(10, 0)) FROM t +-- !query 6 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 6 output +2 + + +-- !query 7 +SELECT cast(1 as tinyint) + cast(1 as decimal(11, 0)) FROM t +-- !query 7 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 7 output +2 + + +-- !query 8 +SELECT cast(1 as tinyint) + cast(1 as decimal(20, 0)) FROM t +-- !query 8 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 8 output +2 + + +-- !query 9 +SELECT cast(1 as tinyint) + cast(1 as decimal(21, 0)) FROM t +-- !query 9 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 9 output +2 + + +-- !query 10 +SELECT cast(1 as tinyint) + cast(1 as decimal(38, 0)) FROM t +-- !query 10 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 10 output +2 + + +-- !query 11 +SELECT cast(1 as tinyint) + cast(1 as decimal(39, 0)) FROM t +-- !query 11 schema +struct<> +-- !query 11 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 12 +SELECT cast(1 as tinyint) + cast(1 as decimal(1, 1)) FROM t +-- !query 12 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 12 output +NULL + + +-- !query 13 +SELECT cast(1 as tinyint) + cast(1 as decimal(2, 1)) FROM t +-- !query 13 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 13 output +2 + + +-- !query 14 +SELECT cast(1 as tinyint) + cast(1 as decimal(3, 1)) FROM t +-- !query 14 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 14 output +2 + + +-- !query 15 +SELECT cast(1 as tinyint) + cast(1 as decimal(4, 1)) FROM t +-- !query 15 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 15 output +2 + + +-- !query 16 +SELECT cast(1 as tinyint) + cast(1 as decimal(5, 1)) FROM t +-- !query 16 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(6,1)> +-- !query 16 output +2 + + +-- !query 17 +SELECT cast(1 as tinyint) + cast(1 as decimal(6, 1)) FROM t +-- !query 17 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 17 output +2 + + +-- !query 18 +SELECT cast(1 as tinyint) + cast(1 as decimal(10, 1)) FROM t +-- !query 18 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 18 output +2 + + +-- !query 19 +SELECT cast(1 as tinyint) + cast(1 as decimal(11, 1)) FROM t +-- !query 19 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 19 output +2 + + +-- !query 20 +SELECT cast(1 as tinyint) + cast(1 as decimal(20, 1)) FROM t +-- !query 20 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 20 output +2 + + +-- !query 21 +SELECT cast(1 as tinyint) + cast(1 as decimal(21, 1)) FROM t +-- !query 21 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 21 output +2 + + +-- !query 22 +SELECT cast(1 as tinyint) + cast(1 as decimal(38, 1)) FROM t +-- !query 22 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 22 output +2 + + +-- !query 23 +SELECT cast(1 as tinyint) + cast(1 as decimal(39, 1)) FROM t +-- !query 23 schema +struct<> +-- !query 23 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 24 +SELECT cast(1 as smallint) + cast(1 as decimal(1, 0)) FROM t +-- !query 24 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 24 output +2 + + +-- !query 25 +SELECT cast(1 as smallint) + cast(1 as decimal(3, 0)) FROM t +-- !query 25 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 25 output +2 + + +-- !query 26 +SELECT cast(1 as smallint) + cast(1 as decimal(4, 0)) FROM t +-- !query 26 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 26 output +2 + + +-- !query 27 +SELECT cast(1 as smallint) + cast(1 as decimal(5, 0)) FROM t +-- !query 27 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) + CAST(1 AS DECIMAL(5,0))):decimal(6,0)> +-- !query 27 output +2 + + +-- !query 28 +SELECT cast(1 as smallint) + cast(1 as decimal(6, 0)) FROM t +-- !query 28 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 28 output +2 + + +-- !query 29 +SELECT cast(1 as smallint) + cast(1 as decimal(10, 0)) FROM t +-- !query 29 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 29 output +2 + + +-- !query 30 +SELECT cast(1 as smallint) + cast(1 as decimal(11, 0)) FROM t +-- !query 30 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 30 output +2 + + +-- !query 31 +SELECT cast(1 as smallint) + cast(1 as decimal(20, 0)) FROM t +-- !query 31 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 31 output +2 + + +-- !query 32 +SELECT cast(1 as smallint) + cast(1 as decimal(21, 0)) FROM t +-- !query 32 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 32 output +2 + + +-- !query 33 +SELECT cast(1 as smallint) + cast(1 as decimal(38, 0)) FROM t +-- !query 33 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 33 output +2 + + +-- !query 34 +SELECT cast(1 as smallint) + cast(1 as decimal(39, 0)) FROM t +-- !query 34 schema +struct<> +-- !query 34 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 35 +SELECT cast(1 as smallint) + cast(1 as decimal(1, 1)) FROM t +-- !query 35 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 35 output +NULL + + +-- !query 36 +SELECT cast(1 as smallint) + cast(1 as decimal(2, 1)) FROM t +-- !query 36 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 36 output +2 + + +-- !query 37 +SELECT cast(1 as smallint) + cast(1 as decimal(3, 1)) FROM t +-- !query 37 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 37 output +2 + + +-- !query 38 +SELECT cast(1 as smallint) + cast(1 as decimal(4, 1)) FROM t +-- !query 38 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 38 output +2 + + +-- !query 39 +SELECT cast(1 as smallint) + cast(1 as decimal(5, 1)) FROM t +-- !query 39 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 39 output +2 + + +-- !query 40 +SELECT cast(1 as smallint) + cast(1 as decimal(6, 1)) FROM t +-- !query 40 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 40 output +2 + + +-- !query 41 +SELECT cast(1 as smallint) + cast(1 as decimal(10, 1)) FROM t +-- !query 41 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 41 output +2 + + +-- !query 42 +SELECT cast(1 as smallint) + cast(1 as decimal(11, 1)) FROM t +-- !query 42 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 42 output +2 + + +-- !query 43 +SELECT cast(1 as smallint) + cast(1 as decimal(20, 1)) FROM t +-- !query 43 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 43 output +2 + + +-- !query 44 +SELECT cast(1 as smallint) + cast(1 as decimal(21, 1)) FROM t +-- !query 44 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 44 output +2 + + +-- !query 45 +SELECT cast(1 as smallint) + cast(1 as decimal(38, 1)) FROM t +-- !query 45 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 45 output +2 + + +-- !query 46 +SELECT cast(1 as smallint) + cast(1 as decimal(39, 1)) FROM t +-- !query 46 schema +struct<> +-- !query 46 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 47 +SELECT cast(1 as int) + cast(1 as decimal(1, 0)) FROM t +-- !query 47 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 47 output +2 + + +-- !query 48 +SELECT cast(1 as int) + cast(1 as decimal(3, 0)) FROM t +-- !query 48 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 48 output +2 + + +-- !query 49 +SELECT cast(1 as int) + cast(1 as decimal(4, 0)) FROM t +-- !query 49 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 49 output +2 + + +-- !query 50 +SELECT cast(1 as int) + cast(1 as decimal(5, 0)) FROM t +-- !query 50 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 50 output +2 + + +-- !query 51 +SELECT cast(1 as int) + cast(1 as decimal(6, 0)) FROM t +-- !query 51 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 51 output +2 + + +-- !query 52 +SELECT cast(1 as int) + cast(1 as decimal(10, 0)) FROM t +-- !query 52 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +-- !query 52 output +2 + + +-- !query 53 +SELECT cast(1 as int) + cast(1 as decimal(11, 0)) FROM t +-- !query 53 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 53 output +2 + + +-- !query 54 +SELECT cast(1 as int) + cast(1 as decimal(20, 0)) FROM t +-- !query 54 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 54 output +2 + + +-- !query 55 +SELECT cast(1 as int) + cast(1 as decimal(21, 0)) FROM t +-- !query 55 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 55 output +2 + + +-- !query 56 +SELECT cast(1 as int) + cast(1 as decimal(38, 0)) FROM t +-- !query 56 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 56 output +2 + + +-- !query 57 +SELECT cast(1 as int) + cast(1 as decimal(39, 0)) FROM t +-- !query 57 schema +struct<> +-- !query 57 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 58 +SELECT cast(1 as int) + cast(1 as decimal(1, 1)) FROM t +-- !query 58 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 58 output +NULL + + +-- !query 59 +SELECT cast(1 as int) + cast(1 as decimal(2, 1)) FROM t +-- !query 59 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 59 output +2 + + +-- !query 60 +SELECT cast(1 as int) + cast(1 as decimal(3, 1)) FROM t +-- !query 60 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 60 output +2 + + +-- !query 61 +SELECT cast(1 as int) + cast(1 as decimal(4, 1)) FROM t +-- !query 61 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 61 output +2 + + +-- !query 62 +SELECT cast(1 as int) + cast(1 as decimal(5, 1)) FROM t +-- !query 62 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 62 output +2 + + +-- !query 63 +SELECT cast(1 as int) + cast(1 as decimal(6, 1)) FROM t +-- !query 63 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 63 output +2 + + +-- !query 64 +SELECT cast(1 as int) + cast(1 as decimal(10, 1)) FROM t +-- !query 64 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 64 output +2 + + +-- !query 65 +SELECT cast(1 as int) + cast(1 as decimal(11, 1)) FROM t +-- !query 65 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 65 output +2 + + +-- !query 66 +SELECT cast(1 as int) + cast(1 as decimal(20, 1)) FROM t +-- !query 66 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 66 output +2 + + +-- !query 67 +SELECT cast(1 as int) + cast(1 as decimal(21, 1)) FROM t +-- !query 67 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 67 output +2 + + +-- !query 68 +SELECT cast(1 as int) + cast(1 as decimal(38, 1)) FROM t +-- !query 68 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 68 output +2 + + +-- !query 69 +SELECT cast(1 as int) + cast(1 as decimal(39, 1)) FROM t +-- !query 69 schema +struct<> +-- !query 69 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 70 +SELECT cast(1 as bigint) + cast(1 as decimal(1, 0)) FROM t +-- !query 70 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 70 output +2 + + +-- !query 71 +SELECT cast(1 as bigint) + cast(1 as decimal(3, 0)) FROM t +-- !query 71 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 71 output +2 + + +-- !query 72 +SELECT cast(1 as bigint) + cast(1 as decimal(4, 0)) FROM t +-- !query 72 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 72 output +2 + + +-- !query 73 +SELECT cast(1 as bigint) + cast(1 as decimal(5, 0)) FROM t +-- !query 73 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 73 output +2 + + +-- !query 74 +SELECT cast(1 as bigint) + cast(1 as decimal(6, 0)) FROM t +-- !query 74 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 74 output +2 + + +-- !query 75 +SELECT cast(1 as bigint) + cast(1 as decimal(10, 0)) FROM t +-- !query 75 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 75 output +2 + + +-- !query 76 +SELECT cast(1 as bigint) + cast(1 as decimal(11, 0)) FROM t +-- !query 76 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 76 output +2 + + +-- !query 77 +SELECT cast(1 as bigint) + cast(1 as decimal(20, 0)) FROM t +-- !query 77 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) + CAST(1 AS DECIMAL(20,0))):decimal(21,0)> +-- !query 77 output +2 + + +-- !query 78 +SELECT cast(1 as bigint) + cast(1 as decimal(21, 0)) FROM t +-- !query 78 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 78 output +2 + + +-- !query 79 +SELECT cast(1 as bigint) + cast(1 as decimal(38, 0)) FROM t +-- !query 79 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 79 output +2 + + +-- !query 80 +SELECT cast(1 as bigint) + cast(1 as decimal(39, 0)) FROM t +-- !query 80 schema +struct<> +-- !query 80 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 81 +SELECT cast(1 as bigint) + cast(1 as decimal(1, 1)) FROM t +-- !query 81 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 81 output +NULL + + +-- !query 82 +SELECT cast(1 as bigint) + cast(1 as decimal(2, 1)) FROM t +-- !query 82 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 82 output +2 + + +-- !query 83 +SELECT cast(1 as bigint) + cast(1 as decimal(3, 1)) FROM t +-- !query 83 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 83 output +2 + + +-- !query 84 +SELECT cast(1 as bigint) + cast(1 as decimal(4, 1)) FROM t +-- !query 84 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 84 output +2 + + +-- !query 85 +SELECT cast(1 as bigint) + cast(1 as decimal(5, 1)) FROM t +-- !query 85 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 85 output +2 + + +-- !query 86 +SELECT cast(1 as bigint) + cast(1 as decimal(6, 1)) FROM t +-- !query 86 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 86 output +2 + + +-- !query 87 +SELECT cast(1 as bigint) + cast(1 as decimal(10, 1)) FROM t +-- !query 87 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 87 output +2 + + +-- !query 88 +SELECT cast(1 as bigint) + cast(1 as decimal(11, 1)) FROM t +-- !query 88 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 88 output +2 + + +-- !query 89 +SELECT cast(1 as bigint) + cast(1 as decimal(20, 1)) FROM t +-- !query 89 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 89 output +2 + + +-- !query 90 +SELECT cast(1 as bigint) + cast(1 as decimal(21, 1)) FROM t +-- !query 90 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 90 output +2 + + +-- !query 91 +SELECT cast(1 as bigint) + cast(1 as decimal(38, 1)) FROM t +-- !query 91 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 91 output +2 + + +-- !query 92 +SELECT cast(1 as bigint) + cast(1 as decimal(39, 1)) FROM t +-- !query 92 schema +struct<> +-- !query 92 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 93 +SELECT cast(1 as float) + cast(1 as decimal(1, 0)) FROM t +-- !query 93 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 93 output +2.0 + + +-- !query 94 +SELECT cast(1 as float) + cast(1 as decimal(3, 0)) FROM t +-- !query 94 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 94 output +2.0 + + +-- !query 95 +SELECT cast(1 as float) + cast(1 as decimal(4, 0)) FROM t +-- !query 95 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 95 output +2.0 + + +-- !query 96 +SELECT cast(1 as float) + cast(1 as decimal(5, 0)) FROM t +-- !query 96 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 96 output +2.0 + + +-- !query 97 +SELECT cast(1 as float) + cast(1 as decimal(6, 0)) FROM t +-- !query 97 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 97 output +2.0 + + +-- !query 98 +SELECT cast(1 as float) + cast(1 as decimal(10, 0)) FROM t +-- !query 98 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 98 output +2.0 + + +-- !query 99 +SELECT cast(1 as float) + cast(1 as decimal(11, 0)) FROM t +-- !query 99 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 99 output +2.0 + + +-- !query 100 +SELECT cast(1 as float) + cast(1 as decimal(20, 0)) FROM t +-- !query 100 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 100 output +2.0 + + +-- !query 101 +SELECT cast(1 as float) + cast(1 as decimal(21, 0)) FROM t +-- !query 101 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 101 output +2.0 + + +-- !query 102 +SELECT cast(1 as float) + cast(1 as decimal(38, 0)) FROM t +-- !query 102 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 102 output +2.0 + + +-- !query 103 +SELECT cast(1 as float) + cast(1 as decimal(39, 0)) FROM t +-- !query 103 schema +struct<> +-- !query 103 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 104 +SELECT cast(1 as float) + cast(1 as decimal(1, 1)) FROM t +-- !query 104 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 104 output +NULL + + +-- !query 105 +SELECT cast(1 as float) + cast(1 as decimal(2, 1)) FROM t +-- !query 105 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 105 output +2.0 + + +-- !query 106 +SELECT cast(1 as float) + cast(1 as decimal(3, 1)) FROM t +-- !query 106 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 106 output +2.0 + + +-- !query 107 +SELECT cast(1 as float) + cast(1 as decimal(4, 1)) FROM t +-- !query 107 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 107 output +2.0 + + +-- !query 108 +SELECT cast(1 as float) + cast(1 as decimal(5, 1)) FROM t +-- !query 108 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 108 output +2.0 + + +-- !query 109 +SELECT cast(1 as float) + cast(1 as decimal(6, 1)) FROM t +-- !query 109 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 109 output +2.0 + + +-- !query 110 +SELECT cast(1 as float) + cast(1 as decimal(10, 1)) FROM t +-- !query 110 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 110 output +2.0 + + +-- !query 111 +SELECT cast(1 as float) + cast(1 as decimal(11, 1)) FROM t +-- !query 111 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 111 output +2.0 + + +-- !query 112 +SELECT cast(1 as float) + cast(1 as decimal(20, 1)) FROM t +-- !query 112 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 112 output +2.0 + + +-- !query 113 +SELECT cast(1 as float) + cast(1 as decimal(21, 1)) FROM t +-- !query 113 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 113 output +2.0 + + +-- !query 114 +SELECT cast(1 as float) + cast(1 as decimal(38, 1)) FROM t +-- !query 114 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 114 output +2.0 + + +-- !query 115 +SELECT cast(1 as float) + cast(1 as decimal(39, 1)) FROM t +-- !query 115 schema +struct<> +-- !query 115 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 116 +SELECT cast(1 as double) + cast(1 as decimal(1, 0)) FROM t +-- !query 116 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 116 output +2.0 + + +-- !query 117 +SELECT cast(1 as double) + cast(1 as decimal(3, 0)) FROM t +-- !query 117 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 117 output +2.0 + + +-- !query 118 +SELECT cast(1 as double) + cast(1 as decimal(4, 0)) FROM t +-- !query 118 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 118 output +2.0 + + +-- !query 119 +SELECT cast(1 as double) + cast(1 as decimal(5, 0)) FROM t +-- !query 119 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 119 output +2.0 + + +-- !query 120 +SELECT cast(1 as double) + cast(1 as decimal(6, 0)) FROM t +-- !query 120 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 120 output +2.0 + + +-- !query 121 +SELECT cast(1 as double) + cast(1 as decimal(10, 0)) FROM t +-- !query 121 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 121 output +2.0 + + +-- !query 122 +SELECT cast(1 as double) + cast(1 as decimal(11, 0)) FROM t +-- !query 122 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 122 output +2.0 + + +-- !query 123 +SELECT cast(1 as double) + cast(1 as decimal(20, 0)) FROM t +-- !query 123 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 123 output +2.0 + + +-- !query 124 +SELECT cast(1 as double) + cast(1 as decimal(21, 0)) FROM t +-- !query 124 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 124 output +2.0 + + +-- !query 125 +SELECT cast(1 as double) + cast(1 as decimal(38, 0)) FROM t +-- !query 125 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 125 output +2.0 + + +-- !query 126 +SELECT cast(1 as double) + cast(1 as decimal(39, 0)) FROM t +-- !query 126 schema +struct<> +-- !query 126 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 127 +SELECT cast(1 as double) + cast(1 as decimal(1, 1)) FROM t +-- !query 127 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 127 output +NULL + + +-- !query 128 +SELECT cast(1 as double) + cast(1 as decimal(2, 1)) FROM t +-- !query 128 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 128 output +2.0 + + +-- !query 129 +SELECT cast(1 as double) + cast(1 as decimal(3, 1)) FROM t +-- !query 129 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 129 output +2.0 + + +-- !query 130 +SELECT cast(1 as double) + cast(1 as decimal(4, 1)) FROM t +-- !query 130 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 130 output +2.0 + + +-- !query 131 +SELECT cast(1 as double) + cast(1 as decimal(5, 1)) FROM t +-- !query 131 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 131 output +2.0 + + +-- !query 132 +SELECT cast(1 as double) + cast(1 as decimal(6, 1)) FROM t +-- !query 132 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 132 output +2.0 + + +-- !query 133 +SELECT cast(1 as double) + cast(1 as decimal(10, 1)) FROM t +-- !query 133 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 133 output +2.0 + + +-- !query 134 +SELECT cast(1 as double) + cast(1 as decimal(11, 1)) FROM t +-- !query 134 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 134 output +2.0 + + +-- !query 135 +SELECT cast(1 as double) + cast(1 as decimal(20, 1)) FROM t +-- !query 135 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 135 output +2.0 + + +-- !query 136 +SELECT cast(1 as double) + cast(1 as decimal(21, 1)) FROM t +-- !query 136 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 136 output +2.0 + + +-- !query 137 +SELECT cast(1 as double) + cast(1 as decimal(38, 1)) FROM t +-- !query 137 schema +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 137 output +2.0 + + +-- !query 138 +SELECT cast(1 as double) + cast(1 as decimal(39, 1)) FROM t +-- !query 138 schema +struct<> +-- !query 138 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 139 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 0)) FROM t +-- !query 139 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 139 output +2 + + +-- !query 140 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 0)) FROM t +-- !query 140 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 140 output +2 + + +-- !query 141 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 0)) FROM t +-- !query 141 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 141 output +2 + + +-- !query 142 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 0)) FROM t +-- !query 142 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 142 output +2 + + +-- !query 143 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 0)) FROM t +-- !query 143 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 143 output +2 + + +-- !query 144 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 144 schema +struct<(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +-- !query 144 output +2 + + +-- !query 145 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 0)) FROM t +-- !query 145 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 145 output +2 + + +-- !query 146 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 0)) FROM t +-- !query 146 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 146 output +2 + + +-- !query 147 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 0)) FROM t +-- !query 147 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 147 output +2 + + +-- !query 148 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 0)) FROM t +-- !query 148 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 148 output +2 + + +-- !query 149 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 0)) FROM t +-- !query 149 schema +struct<> +-- !query 149 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 150 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 1)) FROM t +-- !query 150 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 150 output +NULL + + +-- !query 151 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(2, 1)) FROM t +-- !query 151 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 151 output +2 + + +-- !query 152 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 1)) FROM t +-- !query 152 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 152 output +2 + + +-- !query 153 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 1)) FROM t +-- !query 153 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 153 output +2 + + +-- !query 154 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 1)) FROM t +-- !query 154 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 154 output +2 + + +-- !query 155 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 1)) FROM t +-- !query 155 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 155 output +2 + + +-- !query 156 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 1)) FROM t +-- !query 156 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 156 output +2 + + +-- !query 157 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 1)) FROM t +-- !query 157 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 157 output +2 + + +-- !query 158 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 1)) FROM t +-- !query 158 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 158 output +2 + + +-- !query 159 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 1)) FROM t +-- !query 159 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 159 output +2 + + +-- !query 160 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 1)) FROM t +-- !query 160 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 160 output +2 + + +-- !query 161 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 1)) FROM t +-- !query 161 schema +struct<> +-- !query 161 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 162 +SELECT cast('1' as binary) + cast(1 as decimal(1, 0)) FROM t +-- !query 162 schema +struct<> +-- !query 162 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 163 +SELECT cast('1' as binary) + cast(1 as decimal(3, 0)) FROM t +-- !query 163 schema +struct<> +-- !query 163 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 164 +SELECT cast('1' as binary) + cast(1 as decimal(4, 0)) FROM t +-- !query 164 schema +struct<> +-- !query 164 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 165 +SELECT cast('1' as binary) + cast(1 as decimal(5, 0)) FROM t +-- !query 165 schema +struct<> +-- !query 165 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 166 +SELECT cast('1' as binary) + cast(1 as decimal(6, 0)) FROM t +-- !query 166 schema +struct<> +-- !query 166 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 167 +SELECT cast('1' as binary) + cast(1 as decimal(10, 0)) FROM t +-- !query 167 schema +struct<> +-- !query 167 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 168 +SELECT cast('1' as binary) + cast(1 as decimal(11, 0)) FROM t +-- !query 168 schema +struct<> +-- !query 168 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 169 +SELECT cast('1' as binary) + cast(1 as decimal(20, 0)) FROM t +-- !query 169 schema +struct<> +-- !query 169 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 170 +SELECT cast('1' as binary) + cast(1 as decimal(21, 0)) FROM t +-- !query 170 schema +struct<> +-- !query 170 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 171 +SELECT cast('1' as binary) + cast(1 as decimal(38, 0)) FROM t +-- !query 171 schema +struct<> +-- !query 171 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 172 +SELECT cast('1' as binary) + cast(1 as decimal(39, 0)) FROM t +-- !query 172 schema +struct<> +-- !query 172 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 173 +SELECT cast('1' as binary) + cast(1 as decimal(1, 1)) FROM t +-- !query 173 schema +struct<> +-- !query 173 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 174 +SELECT cast('1' as binary) + cast(1 as decimal(2, 1)) FROM t +-- !query 174 schema +struct<> +-- !query 174 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 175 +SELECT cast('1' as binary) + cast(1 as decimal(3, 1)) FROM t +-- !query 175 schema +struct<> +-- !query 175 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 176 +SELECT cast('1' as binary) + cast(1 as decimal(4, 1)) FROM t +-- !query 176 schema +struct<> +-- !query 176 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 177 +SELECT cast('1' as binary) + cast(1 as decimal(5, 1)) FROM t +-- !query 177 schema +struct<> +-- !query 177 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 178 +SELECT cast('1' as binary) + cast(1 as decimal(6, 1)) FROM t +-- !query 178 schema +struct<> +-- !query 178 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 179 +SELECT cast('1' as binary) + cast(1 as decimal(10, 1)) FROM t +-- !query 179 schema +struct<> +-- !query 179 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 180 +SELECT cast('1' as binary) + cast(1 as decimal(11, 1)) FROM t +-- !query 180 schema +struct<> +-- !query 180 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 181 +SELECT cast('1' as binary) + cast(1 as decimal(20, 1)) FROM t +-- !query 181 schema +struct<> +-- !query 181 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 182 +SELECT cast('1' as binary) + cast(1 as decimal(21, 1)) FROM t +-- !query 182 schema +struct<> +-- !query 182 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 183 +SELECT cast('1' as binary) + cast(1 as decimal(38, 1)) FROM t +-- !query 183 schema +struct<> +-- !query 183 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 184 +SELECT cast('1' as binary) + cast(1 as decimal(39, 1)) FROM t +-- !query 184 schema +struct<> +-- !query 184 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 185 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 0)) FROM t +-- !query 185 schema +struct<> +-- !query 185 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 186 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 0)) FROM t +-- !query 186 schema +struct<> +-- !query 186 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 187 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 0)) FROM t +-- !query 187 schema +struct<> +-- !query 187 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 188 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 0)) FROM t +-- !query 188 schema +struct<> +-- !query 188 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 189 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 0)) FROM t +-- !query 189 schema +struct<> +-- !query 189 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 190 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 0)) FROM t +-- !query 190 schema +struct<> +-- !query 190 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 191 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 0)) FROM t +-- !query 191 schema +struct<> +-- !query 191 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 192 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 0)) FROM t +-- !query 192 schema +struct<> +-- !query 192 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 193 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 0)) FROM t +-- !query 193 schema +struct<> +-- !query 193 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 194 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 0)) FROM t +-- !query 194 schema +struct<> +-- !query 194 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 195 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 0)) FROM t +-- !query 195 schema +struct<> +-- !query 195 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 196 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 1)) FROM t +-- !query 196 schema +struct<> +-- !query 196 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 197 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(2, 1)) FROM t +-- !query 197 schema +struct<> +-- !query 197 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 198 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 1)) FROM t +-- !query 198 schema +struct<> +-- !query 198 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 199 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 1)) FROM t +-- !query 199 schema +struct<> +-- !query 199 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 200 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 1)) FROM t +-- !query 200 schema +struct<> +-- !query 200 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 201 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 1)) FROM t +-- !query 201 schema +struct<> +-- !query 201 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 202 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 1)) FROM t +-- !query 202 schema +struct<> +-- !query 202 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 203 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 1)) FROM t +-- !query 203 schema +struct<> +-- !query 203 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 204 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 1)) FROM t +-- !query 204 schema +struct<> +-- !query 204 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 205 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 1)) FROM t +-- !query 205 schema +struct<> +-- !query 205 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 206 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 1)) FROM t +-- !query 206 schema +struct<> +-- !query 206 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 207 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 1)) FROM t +-- !query 207 schema +struct<> +-- !query 207 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 208 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 0)) FROM t +-- !query 208 schema +struct<> +-- !query 208 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 209 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 0)) FROM t +-- !query 209 schema +struct<> +-- !query 209 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 210 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 0)) FROM t +-- !query 210 schema +struct<> +-- !query 210 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 211 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 0)) FROM t +-- !query 211 schema +struct<> +-- !query 211 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 212 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 0)) FROM t +-- !query 212 schema +struct<> +-- !query 212 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 213 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 0)) FROM t +-- !query 213 schema +struct<> +-- !query 213 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 214 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 0)) FROM t +-- !query 214 schema +struct<> +-- !query 214 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 215 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 0)) FROM t +-- !query 215 schema +struct<> +-- !query 215 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 216 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 0)) FROM t +-- !query 216 schema +struct<> +-- !query 216 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 217 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 0)) FROM t +-- !query 217 schema +struct<> +-- !query 217 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 218 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 0)) FROM t +-- !query 218 schema +struct<> +-- !query 218 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 0)) FROM t + + +-- !query 219 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 1)) FROM t +-- !query 219 schema +struct<> +-- !query 219 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 220 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(2, 1)) FROM t +-- !query 220 schema +struct<> +-- !query 220 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 221 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 1)) FROM t +-- !query 221 schema +struct<> +-- !query 221 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 222 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 1)) FROM t +-- !query 222 schema +struct<> +-- !query 222 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 223 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 1)) FROM t +-- !query 223 schema +struct<> +-- !query 223 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 224 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 1)) FROM t +-- !query 224 schema +struct<> +-- !query 224 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 225 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 1)) FROM t +-- !query 225 schema +struct<> +-- !query 225 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 226 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 1)) FROM t +-- !query 226 schema +struct<> +-- !query 226 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 227 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 1)) FROM t +-- !query 227 schema +struct<> +-- !query 227 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 228 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 1)) FROM t +-- !query 228 schema +struct<> +-- !query 228 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 229 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 1)) FROM t +-- !query 229 schema +struct<> +-- !query 229 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 230 +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 1)) FROM t +-- !query 230 schema +struct<> +-- !query 230 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 1)) FROM t + + +-- !query 231 +SELECT cast(1 as decimal(1, 0)) + cast(1 as tinyint) FROM t +-- !query 231 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(4,0)> +-- !query 231 output +2 + + +-- !query 232 +SELECT cast(1 as decimal(3, 0)) + cast(1 as tinyint) FROM t +-- !query 232 schema +struct<(CAST(1 AS DECIMAL(3,0)) + CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(4,0)> +-- !query 232 output +2 + + +-- !query 233 +SELECT cast(1 as decimal(4, 0)) + cast(1 as tinyint) FROM t +-- !query 233 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(5,0)> +-- !query 233 output +2 + + +-- !query 234 +SELECT cast(1 as decimal(5, 0)) + cast(1 as tinyint) FROM t +-- !query 234 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 234 output +2 + + +-- !query 235 +SELECT cast(1 as decimal(6, 0)) + cast(1 as tinyint) FROM t +-- !query 235 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 235 output +2 + + +-- !query 236 +SELECT cast(1 as decimal(10, 0)) + cast(1 as tinyint) FROM t +-- !query 236 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 236 output +2 + + +-- !query 237 +SELECT cast(1 as decimal(11, 0)) + cast(1 as tinyint) FROM t +-- !query 237 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 237 output +2 + + +-- !query 238 +SELECT cast(1 as decimal(20, 0)) + cast(1 as tinyint) FROM t +-- !query 238 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 238 output +2 + + +-- !query 239 +SELECT cast(1 as decimal(21, 0)) + cast(1 as tinyint) FROM t +-- !query 239 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 239 output +2 + + +-- !query 240 +SELECT cast(1 as decimal(38, 0)) + cast(1 as tinyint) FROM t +-- !query 240 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 240 output +2 + + +-- !query 241 +SELECT cast(1 as decimal(39, 0)) + cast(1 as tinyint) FROM t +-- !query 241 schema +struct<> +-- !query 241 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as tinyint) FROM t + + +-- !query 242 +SELECT cast(1 as decimal(1, 1)) + cast(1 as tinyint) FROM t +-- !query 242 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 242 output +NULL + + +-- !query 243 +SELECT cast(1 as decimal(2, 1)) + cast(1 as tinyint) FROM t +-- !query 243 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 243 output +2 + + +-- !query 244 +SELECT cast(1 as decimal(3, 1)) + cast(1 as tinyint) FROM t +-- !query 244 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 244 output +2 + + +-- !query 245 +SELECT cast(1 as decimal(4, 1)) + cast(1 as tinyint) FROM t +-- !query 245 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 245 output +2 + + +-- !query 246 +SELECT cast(1 as decimal(5, 1)) + cast(1 as tinyint) FROM t +-- !query 246 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(6,1)> +-- !query 246 output +2 + + +-- !query 247 +SELECT cast(1 as decimal(6, 1)) + cast(1 as tinyint) FROM t +-- !query 247 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 247 output +2 + + +-- !query 248 +SELECT cast(1 as decimal(10, 1)) + cast(1 as tinyint) FROM t +-- !query 248 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 248 output +2 + + +-- !query 249 +SELECT cast(1 as decimal(11, 1)) + cast(1 as tinyint) FROM t +-- !query 249 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 249 output +2 + + +-- !query 250 +SELECT cast(1 as decimal(20, 1)) + cast(1 as tinyint) FROM t +-- !query 250 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 250 output +2 + + +-- !query 251 +SELECT cast(1 as decimal(21, 1)) + cast(1 as tinyint) FROM t +-- !query 251 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 251 output +2 + + +-- !query 252 +SELECT cast(1 as decimal(38, 1)) + cast(1 as tinyint) FROM t +-- !query 252 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 252 output +2 + + +-- !query 253 +SELECT cast(1 as decimal(39, 1)) + cast(1 as tinyint) FROM t +-- !query 253 schema +struct<> +-- !query 253 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as tinyint) FROM t + + +-- !query 254 +SELECT cast(1 as decimal(1, 0)) + cast(1 as smallint) FROM t +-- !query 254 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 254 output +2 + + +-- !query 255 +SELECT cast(1 as decimal(3, 0)) + cast(1 as smallint) FROM t +-- !query 255 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 255 output +2 + + +-- !query 256 +SELECT cast(1 as decimal(4, 0)) + cast(1 as smallint) FROM t +-- !query 256 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 256 output +2 + + +-- !query 257 +SELECT cast(1 as decimal(5, 0)) + cast(1 as smallint) FROM t +-- !query 257 schema +struct<(CAST(1 AS DECIMAL(5,0)) + CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(6,0)> +-- !query 257 output +2 + + +-- !query 258 +SELECT cast(1 as decimal(6, 0)) + cast(1 as smallint) FROM t +-- !query 258 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 258 output +2 + + +-- !query 259 +SELECT cast(1 as decimal(10, 0)) + cast(1 as smallint) FROM t +-- !query 259 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 259 output +2 + + +-- !query 260 +SELECT cast(1 as decimal(11, 0)) + cast(1 as smallint) FROM t +-- !query 260 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 260 output +2 + + +-- !query 261 +SELECT cast(1 as decimal(20, 0)) + cast(1 as smallint) FROM t +-- !query 261 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 261 output +2 + + +-- !query 262 +SELECT cast(1 as decimal(21, 0)) + cast(1 as smallint) FROM t +-- !query 262 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 262 output +2 + + +-- !query 263 +SELECT cast(1 as decimal(38, 0)) + cast(1 as smallint) FROM t +-- !query 263 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 263 output +2 + + +-- !query 264 +SELECT cast(1 as decimal(39, 0)) + cast(1 as smallint) FROM t +-- !query 264 schema +struct<> +-- !query 264 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as smallint) FROM t + + +-- !query 265 +SELECT cast(1 as decimal(1, 1)) + cast(1 as smallint) FROM t +-- !query 265 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 265 output +NULL + + +-- !query 266 +SELECT cast(1 as decimal(2, 1)) + cast(1 as smallint) FROM t +-- !query 266 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 266 output +2 + + +-- !query 267 +SELECT cast(1 as decimal(3, 1)) + cast(1 as smallint) FROM t +-- !query 267 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 267 output +2 + + +-- !query 268 +SELECT cast(1 as decimal(4, 1)) + cast(1 as smallint) FROM t +-- !query 268 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 268 output +2 + + +-- !query 269 +SELECT cast(1 as decimal(5, 1)) + cast(1 as smallint) FROM t +-- !query 269 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 269 output +2 + + +-- !query 270 +SELECT cast(1 as decimal(6, 1)) + cast(1 as smallint) FROM t +-- !query 270 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 270 output +2 + + +-- !query 271 +SELECT cast(1 as decimal(10, 1)) + cast(1 as smallint) FROM t +-- !query 271 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 271 output +2 + + +-- !query 272 +SELECT cast(1 as decimal(11, 1)) + cast(1 as smallint) FROM t +-- !query 272 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 272 output +2 + + +-- !query 273 +SELECT cast(1 as decimal(20, 1)) + cast(1 as smallint) FROM t +-- !query 273 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 273 output +2 + + +-- !query 274 +SELECT cast(1 as decimal(21, 1)) + cast(1 as smallint) FROM t +-- !query 274 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 274 output +2 + + +-- !query 275 +SELECT cast(1 as decimal(38, 1)) + cast(1 as smallint) FROM t +-- !query 275 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 275 output +2 + + +-- !query 276 +SELECT cast(1 as decimal(39, 1)) + cast(1 as smallint) FROM t +-- !query 276 schema +struct<> +-- !query 276 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as smallint) FROM t + + +-- !query 277 +SELECT cast(1 as decimal(1, 0)) + cast(1 as int) FROM t +-- !query 277 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 277 output +2 + + +-- !query 278 +SELECT cast(1 as decimal(3, 0)) + cast(1 as int) FROM t +-- !query 278 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 278 output +2 + + +-- !query 279 +SELECT cast(1 as decimal(4, 0)) + cast(1 as int) FROM t +-- !query 279 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 279 output +2 + + +-- !query 280 +SELECT cast(1 as decimal(5, 0)) + cast(1 as int) FROM t +-- !query 280 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 280 output +2 + + +-- !query 281 +SELECT cast(1 as decimal(6, 0)) + cast(1 as int) FROM t +-- !query 281 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 281 output +2 + + +-- !query 282 +SELECT cast(1 as decimal(10, 0)) + cast(1 as int) FROM t +-- !query 282 schema +struct<(CAST(1 AS DECIMAL(10,0)) + CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(11,0)> +-- !query 282 output +2 + + +-- !query 283 +SELECT cast(1 as decimal(11, 0)) + cast(1 as int) FROM t +-- !query 283 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 283 output +2 + + +-- !query 284 +SELECT cast(1 as decimal(20, 0)) + cast(1 as int) FROM t +-- !query 284 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 284 output +2 + + +-- !query 285 +SELECT cast(1 as decimal(21, 0)) + cast(1 as int) FROM t +-- !query 285 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 285 output +2 + + +-- !query 286 +SELECT cast(1 as decimal(38, 0)) + cast(1 as int) FROM t +-- !query 286 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 286 output +2 + + +-- !query 287 +SELECT cast(1 as decimal(39, 0)) + cast(1 as int) FROM t +-- !query 287 schema +struct<> +-- !query 287 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as int) FROM t + + +-- !query 288 +SELECT cast(1 as decimal(1, 1)) + cast(1 as int) FROM t +-- !query 288 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 288 output +NULL + + +-- !query 289 +SELECT cast(1 as decimal(2, 1)) + cast(1 as int) FROM t +-- !query 289 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 289 output +2 + + +-- !query 290 +SELECT cast(1 as decimal(3, 1)) + cast(1 as int) FROM t +-- !query 290 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 290 output +2 + + +-- !query 291 +SELECT cast(1 as decimal(4, 1)) + cast(1 as int) FROM t +-- !query 291 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 291 output +2 + + +-- !query 292 +SELECT cast(1 as decimal(5, 1)) + cast(1 as int) FROM t +-- !query 292 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 292 output +2 + + +-- !query 293 +SELECT cast(1 as decimal(6, 1)) + cast(1 as int) FROM t +-- !query 293 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 293 output +2 + + +-- !query 294 +SELECT cast(1 as decimal(10, 1)) + cast(1 as int) FROM t +-- !query 294 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 294 output +2 + + +-- !query 295 +SELECT cast(1 as decimal(11, 1)) + cast(1 as int) FROM t +-- !query 295 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 295 output +2 + + +-- !query 296 +SELECT cast(1 as decimal(20, 1)) + cast(1 as int) FROM t +-- !query 296 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 296 output +2 + + +-- !query 297 +SELECT cast(1 as decimal(21, 1)) + cast(1 as int) FROM t +-- !query 297 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 297 output +2 + + +-- !query 298 +SELECT cast(1 as decimal(38, 1)) + cast(1 as int) FROM t +-- !query 298 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 298 output +2 + + +-- !query 299 +SELECT cast(1 as decimal(39, 1)) + cast(1 as int) FROM t +-- !query 299 schema +struct<> +-- !query 299 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as int) FROM t + + +-- !query 300 +SELECT cast(1 as decimal(1, 0)) + cast(1 as bigint) FROM t +-- !query 300 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 300 output +2 + + +-- !query 301 +SELECT cast(1 as decimal(3, 0)) + cast(1 as bigint) FROM t +-- !query 301 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 301 output +2 + + +-- !query 302 +SELECT cast(1 as decimal(4, 0)) + cast(1 as bigint) FROM t +-- !query 302 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 302 output +2 + + +-- !query 303 +SELECT cast(1 as decimal(5, 0)) + cast(1 as bigint) FROM t +-- !query 303 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 303 output +2 + + +-- !query 304 +SELECT cast(1 as decimal(6, 0)) + cast(1 as bigint) FROM t +-- !query 304 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 304 output +2 + + +-- !query 305 +SELECT cast(1 as decimal(10, 0)) + cast(1 as bigint) FROM t +-- !query 305 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 305 output +2 + + +-- !query 306 +SELECT cast(1 as decimal(11, 0)) + cast(1 as bigint) FROM t +-- !query 306 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 306 output +2 + + +-- !query 307 +SELECT cast(1 as decimal(20, 0)) + cast(1 as bigint) FROM t +-- !query 307 schema +struct<(CAST(1 AS DECIMAL(20,0)) + CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(21,0)> +-- !query 307 output +2 + + +-- !query 308 +SELECT cast(1 as decimal(21, 0)) + cast(1 as bigint) FROM t +-- !query 308 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 308 output +2 + + +-- !query 309 +SELECT cast(1 as decimal(38, 0)) + cast(1 as bigint) FROM t +-- !query 309 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 309 output +2 + + +-- !query 310 +SELECT cast(1 as decimal(39, 0)) + cast(1 as bigint) FROM t +-- !query 310 schema +struct<> +-- !query 310 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as bigint) FROM t + + +-- !query 311 +SELECT cast(1 as decimal(1, 1)) + cast(1 as bigint) FROM t +-- !query 311 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 311 output +NULL + + +-- !query 312 +SELECT cast(1 as decimal(2, 1)) + cast(1 as bigint) FROM t +-- !query 312 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 312 output +2 + + +-- !query 313 +SELECT cast(1 as decimal(3, 1)) + cast(1 as bigint) FROM t +-- !query 313 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 313 output +2 + + +-- !query 314 +SELECT cast(1 as decimal(4, 1)) + cast(1 as bigint) FROM t +-- !query 314 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 314 output +2 + + +-- !query 315 +SELECT cast(1 as decimal(5, 1)) + cast(1 as bigint) FROM t +-- !query 315 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 315 output +2 + + +-- !query 316 +SELECT cast(1 as decimal(6, 1)) + cast(1 as bigint) FROM t +-- !query 316 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 316 output +2 + + +-- !query 317 +SELECT cast(1 as decimal(10, 1)) + cast(1 as bigint) FROM t +-- !query 317 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 317 output +2 + + +-- !query 318 +SELECT cast(1 as decimal(11, 1)) + cast(1 as bigint) FROM t +-- !query 318 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 318 output +2 + + +-- !query 319 +SELECT cast(1 as decimal(20, 1)) + cast(1 as bigint) FROM t +-- !query 319 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 319 output +2 + + +-- !query 320 +SELECT cast(1 as decimal(21, 1)) + cast(1 as bigint) FROM t +-- !query 320 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 320 output +2 + + +-- !query 321 +SELECT cast(1 as decimal(38, 1)) + cast(1 as bigint) FROM t +-- !query 321 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 321 output +2 + + +-- !query 322 +SELECT cast(1 as decimal(39, 1)) + cast(1 as bigint) FROM t +-- !query 322 schema +struct<> +-- !query 322 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as bigint) FROM t + + +-- !query 323 +SELECT cast(1 as decimal(1, 0)) + cast(1 as float) FROM t +-- !query 323 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 323 output +2.0 + + +-- !query 324 +SELECT cast(1 as decimal(3, 0)) + cast(1 as float) FROM t +-- !query 324 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 324 output +2.0 + + +-- !query 325 +SELECT cast(1 as decimal(4, 0)) + cast(1 as float) FROM t +-- !query 325 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 325 output +2.0 + + +-- !query 326 +SELECT cast(1 as decimal(5, 0)) + cast(1 as float) FROM t +-- !query 326 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 326 output +2.0 + + +-- !query 327 +SELECT cast(1 as decimal(6, 0)) + cast(1 as float) FROM t +-- !query 327 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 327 output +2.0 + + +-- !query 328 +SELECT cast(1 as decimal(10, 0)) + cast(1 as float) FROM t +-- !query 328 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 328 output +2.0 + + +-- !query 329 +SELECT cast(1 as decimal(11, 0)) + cast(1 as float) FROM t +-- !query 329 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 329 output +2.0 + + +-- !query 330 +SELECT cast(1 as decimal(20, 0)) + cast(1 as float) FROM t +-- !query 330 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 330 output +2.0 + + +-- !query 331 +SELECT cast(1 as decimal(21, 0)) + cast(1 as float) FROM t +-- !query 331 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 331 output +2.0 + + +-- !query 332 +SELECT cast(1 as decimal(38, 0)) + cast(1 as float) FROM t +-- !query 332 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 332 output +2.0 + + +-- !query 333 +SELECT cast(1 as decimal(39, 0)) + cast(1 as float) FROM t +-- !query 333 schema +struct<> +-- !query 333 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as float) FROM t + + +-- !query 334 +SELECT cast(1 as decimal(1, 1)) + cast(1 as float) FROM t +-- !query 334 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 334 output +NULL + + +-- !query 335 +SELECT cast(1 as decimal(2, 1)) + cast(1 as float) FROM t +-- !query 335 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 335 output +2.0 + + +-- !query 336 +SELECT cast(1 as decimal(3, 1)) + cast(1 as float) FROM t +-- !query 336 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 336 output +2.0 + + +-- !query 337 +SELECT cast(1 as decimal(4, 1)) + cast(1 as float) FROM t +-- !query 337 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 337 output +2.0 + + +-- !query 338 +SELECT cast(1 as decimal(5, 1)) + cast(1 as float) FROM t +-- !query 338 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 338 output +2.0 + + +-- !query 339 +SELECT cast(1 as decimal(6, 1)) + cast(1 as float) FROM t +-- !query 339 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 339 output +2.0 + + +-- !query 340 +SELECT cast(1 as decimal(10, 1)) + cast(1 as float) FROM t +-- !query 340 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 340 output +2.0 + + +-- !query 341 +SELECT cast(1 as decimal(11, 1)) + cast(1 as float) FROM t +-- !query 341 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 341 output +2.0 + + +-- !query 342 +SELECT cast(1 as decimal(20, 1)) + cast(1 as float) FROM t +-- !query 342 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 342 output +2.0 + + +-- !query 343 +SELECT cast(1 as decimal(21, 1)) + cast(1 as float) FROM t +-- !query 343 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 343 output +2.0 + + +-- !query 344 +SELECT cast(1 as decimal(38, 1)) + cast(1 as float) FROM t +-- !query 344 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 344 output +2.0 + + +-- !query 345 +SELECT cast(1 as decimal(39, 1)) + cast(1 as float) FROM t +-- !query 345 schema +struct<> +-- !query 345 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as float) FROM t + + +-- !query 346 +SELECT cast(1 as decimal(1, 0)) + cast(1 as double) FROM t +-- !query 346 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 346 output +2.0 + + +-- !query 347 +SELECT cast(1 as decimal(3, 0)) + cast(1 as double) FROM t +-- !query 347 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 347 output +2.0 + + +-- !query 348 +SELECT cast(1 as decimal(4, 0)) + cast(1 as double) FROM t +-- !query 348 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 348 output +2.0 + + +-- !query 349 +SELECT cast(1 as decimal(5, 0)) + cast(1 as double) FROM t +-- !query 349 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 349 output +2.0 + + +-- !query 350 +SELECT cast(1 as decimal(6, 0)) + cast(1 as double) FROM t +-- !query 350 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 350 output +2.0 + + +-- !query 351 +SELECT cast(1 as decimal(10, 0)) + cast(1 as double) FROM t +-- !query 351 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 351 output +2.0 + + +-- !query 352 +SELECT cast(1 as decimal(11, 0)) + cast(1 as double) FROM t +-- !query 352 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 352 output +2.0 + + +-- !query 353 +SELECT cast(1 as decimal(20, 0)) + cast(1 as double) FROM t +-- !query 353 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 353 output +2.0 + + +-- !query 354 +SELECT cast(1 as decimal(21, 0)) + cast(1 as double) FROM t +-- !query 354 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 354 output +2.0 + + +-- !query 355 +SELECT cast(1 as decimal(38, 0)) + cast(1 as double) FROM t +-- !query 355 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 355 output +2.0 + + +-- !query 356 +SELECT cast(1 as decimal(39, 0)) + cast(1 as double) FROM t +-- !query 356 schema +struct<> +-- !query 356 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as double) FROM t + + +-- !query 357 +SELECT cast(1 as decimal(1, 1)) + cast(1 as double) FROM t +-- !query 357 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 357 output +NULL + + +-- !query 358 +SELECT cast(1 as decimal(2, 1)) + cast(1 as double) FROM t +-- !query 358 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 358 output +2.0 + + +-- !query 359 +SELECT cast(1 as decimal(3, 1)) + cast(1 as double) FROM t +-- !query 359 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 359 output +2.0 + + +-- !query 360 +SELECT cast(1 as decimal(4, 1)) + cast(1 as double) FROM t +-- !query 360 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 360 output +2.0 + + +-- !query 361 +SELECT cast(1 as decimal(5, 1)) + cast(1 as double) FROM t +-- !query 361 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 361 output +2.0 + + +-- !query 362 +SELECT cast(1 as decimal(6, 1)) + cast(1 as double) FROM t +-- !query 362 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 362 output +2.0 + + +-- !query 363 +SELECT cast(1 as decimal(10, 1)) + cast(1 as double) FROM t +-- !query 363 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 363 output +2.0 + + +-- !query 364 +SELECT cast(1 as decimal(11, 1)) + cast(1 as double) FROM t +-- !query 364 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 364 output +2.0 + + +-- !query 365 +SELECT cast(1 as decimal(20, 1)) + cast(1 as double) FROM t +-- !query 365 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 365 output +2.0 + + +-- !query 366 +SELECT cast(1 as decimal(21, 1)) + cast(1 as double) FROM t +-- !query 366 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 366 output +2.0 + + +-- !query 367 +SELECT cast(1 as decimal(38, 1)) + cast(1 as double) FROM t +-- !query 367 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +-- !query 367 output +2.0 + + +-- !query 368 +SELECT cast(1 as decimal(39, 1)) + cast(1 as double) FROM t +-- !query 368 schema +struct<> +-- !query 368 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as double) FROM t + + +-- !query 369 +SELECT cast(1 as decimal(1, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 369 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 369 output +2 + + +-- !query 370 +SELECT cast(1 as decimal(3, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 370 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 370 output +2 + + +-- !query 371 +SELECT cast(1 as decimal(4, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 371 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 371 output +2 + + +-- !query 372 +SELECT cast(1 as decimal(5, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 372 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 372 output +2 + + +-- !query 373 +SELECT cast(1 as decimal(6, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 373 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 373 output +2 + + +-- !query 374 +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 374 schema +struct<(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +-- !query 374 output +2 + + +-- !query 375 +SELECT cast(1 as decimal(11, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 375 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 375 output +2 + + +-- !query 376 +SELECT cast(1 as decimal(20, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 376 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 376 output +2 + + +-- !query 377 +SELECT cast(1 as decimal(21, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 377 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 377 output +2 + + +-- !query 378 +SELECT cast(1 as decimal(38, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 378 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 378 output +2 + + +-- !query 379 +SELECT cast(1 as decimal(39, 0)) + cast(1 as decimal(10, 0)) FROM t +-- !query 379 schema +struct<> +-- !query 379 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as decimal(10, 0)) FROM t + + +-- !query 380 +SELECT cast(1 as decimal(1, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 380 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 380 output +NULL + + +-- !query 381 +SELECT cast(1 as decimal(2, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 381 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 381 output +2 + + +-- !query 382 +SELECT cast(1 as decimal(3, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 382 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 382 output +2 + + +-- !query 383 +SELECT cast(1 as decimal(4, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 383 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 383 output +2 + + +-- !query 384 +SELECT cast(1 as decimal(5, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 384 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 384 output +2 + + +-- !query 385 +SELECT cast(1 as decimal(6, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 385 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 385 output +2 + + +-- !query 386 +SELECT cast(1 as decimal(10, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 386 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 386 output +2 + + +-- !query 387 +SELECT cast(1 as decimal(11, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 387 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 387 output +2 + + +-- !query 388 +SELECT cast(1 as decimal(20, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 388 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 388 output +2 + + +-- !query 389 +SELECT cast(1 as decimal(21, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 389 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 389 output +2 + + +-- !query 390 +SELECT cast(1 as decimal(38, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 390 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 390 output +2 + + +-- !query 391 +SELECT cast(1 as decimal(39, 1)) + cast(1 as decimal(10, 0)) FROM t +-- !query 391 schema +struct<> +-- !query 391 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as decimal(10, 0)) FROM t + + +-- !query 392 +SELECT cast(1 as decimal(1, 0)) + cast(1 as string) FROM t +-- !query 392 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 392 output +2.0 + + +-- !query 393 +SELECT cast(1 as decimal(3, 0)) + cast(1 as string) FROM t +-- !query 393 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 393 output +2.0 + + +-- !query 394 +SELECT cast(1 as decimal(4, 0)) + cast(1 as string) FROM t +-- !query 394 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 394 output +2.0 + + +-- !query 395 +SELECT cast(1 as decimal(5, 0)) + cast(1 as string) FROM t +-- !query 395 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 395 output +2.0 + + +-- !query 396 +SELECT cast(1 as decimal(6, 0)) + cast(1 as string) FROM t +-- !query 396 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 396 output +2.0 + + +-- !query 397 +SELECT cast(1 as decimal(10, 0)) + cast(1 as string) FROM t +-- !query 397 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 397 output +2.0 + + +-- !query 398 +SELECT cast(1 as decimal(11, 0)) + cast(1 as string) FROM t +-- !query 398 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 398 output +2.0 + + +-- !query 399 +SELECT cast(1 as decimal(20, 0)) + cast(1 as string) FROM t +-- !query 399 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 399 output +2.0 + + +-- !query 400 +SELECT cast(1 as decimal(21, 0)) + cast(1 as string) FROM t +-- !query 400 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 400 output +2.0 + + +-- !query 401 +SELECT cast(1 as decimal(38, 0)) + cast(1 as string) FROM t +-- !query 401 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 401 output +2.0 + + +-- !query 402 +SELECT cast(1 as decimal(39, 0)) + cast(1 as string) FROM t +-- !query 402 schema +struct<> +-- !query 402 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as string) FROM t + + +-- !query 403 +SELECT cast(1 as decimal(1, 1)) + cast(1 as string) FROM t +-- !query 403 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 403 output +NULL + + +-- !query 404 +SELECT cast(1 as decimal(2, 1)) + cast(1 as string) FROM t +-- !query 404 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 404 output +2.0 + + +-- !query 405 +SELECT cast(1 as decimal(3, 1)) + cast(1 as string) FROM t +-- !query 405 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 405 output +2.0 + + +-- !query 406 +SELECT cast(1 as decimal(4, 1)) + cast(1 as string) FROM t +-- !query 406 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 406 output +2.0 + + +-- !query 407 +SELECT cast(1 as decimal(5, 1)) + cast(1 as string) FROM t +-- !query 407 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 407 output +2.0 + + +-- !query 408 +SELECT cast(1 as decimal(6, 1)) + cast(1 as string) FROM t +-- !query 408 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 408 output +2.0 + + +-- !query 409 +SELECT cast(1 as decimal(10, 1)) + cast(1 as string) FROM t +-- !query 409 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 409 output +2.0 + + +-- !query 410 +SELECT cast(1 as decimal(11, 1)) + cast(1 as string) FROM t +-- !query 410 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 410 output +2.0 + + +-- !query 411 +SELECT cast(1 as decimal(20, 1)) + cast(1 as string) FROM t +-- !query 411 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 411 output +2.0 + + +-- !query 412 +SELECT cast(1 as decimal(21, 1)) + cast(1 as string) FROM t +-- !query 412 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 412 output +2.0 + + +-- !query 413 +SELECT cast(1 as decimal(38, 1)) + cast(1 as string) FROM t +-- !query 413 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 413 output +2.0 + + +-- !query 414 +SELECT cast(1 as decimal(39, 1)) + cast(1 as string) FROM t +-- !query 414 schema +struct<> +-- !query 414 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as string) FROM t + + +-- !query 415 +SELECT cast(1 as decimal(1, 0)) + cast('1' as binary) FROM t +-- !query 415 schema +struct<> +-- !query 415 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 416 +SELECT cast(1 as decimal(3, 0)) + cast('1' as binary) FROM t +-- !query 416 schema +struct<> +-- !query 416 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 417 +SELECT cast(1 as decimal(4, 0)) + cast('1' as binary) FROM t +-- !query 417 schema +struct<> +-- !query 417 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 418 +SELECT cast(1 as decimal(5, 0)) + cast('1' as binary) FROM t +-- !query 418 schema +struct<> +-- !query 418 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 419 +SELECT cast(1 as decimal(6, 0)) + cast('1' as binary) FROM t +-- !query 419 schema +struct<> +-- !query 419 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 420 +SELECT cast(1 as decimal(10, 0)) + cast('1' as binary) FROM t +-- !query 420 schema +struct<> +-- !query 420 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 421 +SELECT cast(1 as decimal(11, 0)) + cast('1' as binary) FROM t +-- !query 421 schema +struct<> +-- !query 421 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 422 +SELECT cast(1 as decimal(20, 0)) + cast('1' as binary) FROM t +-- !query 422 schema +struct<> +-- !query 422 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 423 +SELECT cast(1 as decimal(21, 0)) + cast('1' as binary) FROM t +-- !query 423 schema +struct<> +-- !query 423 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 424 +SELECT cast(1 as decimal(38, 0)) + cast('1' as binary) FROM t +-- !query 424 schema +struct<> +-- !query 424 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 425 +SELECT cast(1 as decimal(39, 0)) + cast('1' as binary) FROM t +-- !query 425 schema +struct<> +-- !query 425 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast('1' as binary) FROM t + + +-- !query 426 +SELECT cast(1 as decimal(1, 1)) + cast('1' as binary) FROM t +-- !query 426 schema +struct<> +-- !query 426 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 427 +SELECT cast(1 as decimal(2, 1)) + cast('1' as binary) FROM t +-- !query 427 schema +struct<> +-- !query 427 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 428 +SELECT cast(1 as decimal(3, 1)) + cast('1' as binary) FROM t +-- !query 428 schema +struct<> +-- !query 428 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 429 +SELECT cast(1 as decimal(4, 1)) + cast('1' as binary) FROM t +-- !query 429 schema +struct<> +-- !query 429 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 430 +SELECT cast(1 as decimal(5, 1)) + cast('1' as binary) FROM t +-- !query 430 schema +struct<> +-- !query 430 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 431 +SELECT cast(1 as decimal(6, 1)) + cast('1' as binary) FROM t +-- !query 431 schema +struct<> +-- !query 431 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 432 +SELECT cast(1 as decimal(10, 1)) + cast('1' as binary) FROM t +-- !query 432 schema +struct<> +-- !query 432 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 433 +SELECT cast(1 as decimal(11, 1)) + cast('1' as binary) FROM t +-- !query 433 schema +struct<> +-- !query 433 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 434 +SELECT cast(1 as decimal(20, 1)) + cast('1' as binary) FROM t +-- !query 434 schema +struct<> +-- !query 434 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 435 +SELECT cast(1 as decimal(21, 1)) + cast('1' as binary) FROM t +-- !query 435 schema +struct<> +-- !query 435 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 436 +SELECT cast(1 as decimal(38, 1)) + cast('1' as binary) FROM t +-- !query 436 schema +struct<> +-- !query 436 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 437 +SELECT cast(1 as decimal(39, 1)) + cast('1' as binary) FROM t +-- !query 437 schema +struct<> +-- !query 437 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast('1' as binary) FROM t + + +-- !query 438 +SELECT cast(1 as decimal(1, 0)) + cast(1 as boolean) FROM t +-- !query 438 schema +struct<> +-- !query 438 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 439 +SELECT cast(1 as decimal(3, 0)) + cast(1 as boolean) FROM t +-- !query 439 schema +struct<> +-- !query 439 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 440 +SELECT cast(1 as decimal(4, 0)) + cast(1 as boolean) FROM t +-- !query 440 schema +struct<> +-- !query 440 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 441 +SELECT cast(1 as decimal(5, 0)) + cast(1 as boolean) FROM t +-- !query 441 schema +struct<> +-- !query 441 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 442 +SELECT cast(1 as decimal(6, 0)) + cast(1 as boolean) FROM t +-- !query 442 schema +struct<> +-- !query 442 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 443 +SELECT cast(1 as decimal(10, 0)) + cast(1 as boolean) FROM t +-- !query 443 schema +struct<> +-- !query 443 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 444 +SELECT cast(1 as decimal(11, 0)) + cast(1 as boolean) FROM t +-- !query 444 schema +struct<> +-- !query 444 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 445 +SELECT cast(1 as decimal(20, 0)) + cast(1 as boolean) FROM t +-- !query 445 schema +struct<> +-- !query 445 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 446 +SELECT cast(1 as decimal(21, 0)) + cast(1 as boolean) FROM t +-- !query 446 schema +struct<> +-- !query 446 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 447 +SELECT cast(1 as decimal(38, 0)) + cast(1 as boolean) FROM t +-- !query 447 schema +struct<> +-- !query 447 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 448 +SELECT cast(1 as decimal(39, 0)) + cast(1 as boolean) FROM t +-- !query 448 schema +struct<> +-- !query 448 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast(1 as boolean) FROM t + + +-- !query 449 +SELECT cast(1 as decimal(1, 1)) + cast(1 as boolean) FROM t +-- !query 449 schema +struct<> +-- !query 449 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 450 +SELECT cast(1 as decimal(2, 1)) + cast(1 as boolean) FROM t +-- !query 450 schema +struct<> +-- !query 450 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 451 +SELECT cast(1 as decimal(3, 1)) + cast(1 as boolean) FROM t +-- !query 451 schema +struct<> +-- !query 451 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 452 +SELECT cast(1 as decimal(4, 1)) + cast(1 as boolean) FROM t +-- !query 452 schema +struct<> +-- !query 452 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 453 +SELECT cast(1 as decimal(5, 1)) + cast(1 as boolean) FROM t +-- !query 453 schema +struct<> +-- !query 453 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 454 +SELECT cast(1 as decimal(6, 1)) + cast(1 as boolean) FROM t +-- !query 454 schema +struct<> +-- !query 454 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 455 +SELECT cast(1 as decimal(10, 1)) + cast(1 as boolean) FROM t +-- !query 455 schema +struct<> +-- !query 455 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 456 +SELECT cast(1 as decimal(11, 1)) + cast(1 as boolean) FROM t +-- !query 456 schema +struct<> +-- !query 456 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 457 +SELECT cast(1 as decimal(20, 1)) + cast(1 as boolean) FROM t +-- !query 457 schema +struct<> +-- !query 457 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 458 +SELECT cast(1 as decimal(21, 1)) + cast(1 as boolean) FROM t +-- !query 458 schema +struct<> +-- !query 458 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 459 +SELECT cast(1 as decimal(38, 1)) + cast(1 as boolean) FROM t +-- !query 459 schema +struct<> +-- !query 459 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 460 +SELECT cast(1 as decimal(39, 1)) + cast(1 as boolean) FROM t +-- !query 460 schema +struct<> +-- !query 460 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast(1 as boolean) FROM t + + +-- !query 461 +SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 461 schema +struct<> +-- !query 461 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 462 +SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 462 schema +struct<> +-- !query 462 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 463 +SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 463 schema +struct<> +-- !query 463 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 464 +SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 464 schema +struct<> +-- !query 464 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 465 +SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 465 schema +struct<> +-- !query 465 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 466 +SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 466 schema +struct<> +-- !query 466 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 467 +SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 467 schema +struct<> +-- !query 467 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 468 +SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 468 schema +struct<> +-- !query 468 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 469 +SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 469 schema +struct<> +-- !query 469 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 470 +SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 470 schema +struct<> +-- !query 470 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 471 +SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 471 schema +struct<> +-- !query 471 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 472 +SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 472 schema +struct<> +-- !query 472 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 473 +SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 473 schema +struct<> +-- !query 473 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 474 +SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 474 schema +struct<> +-- !query 474 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 475 +SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 475 schema +struct<> +-- !query 475 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 476 +SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 476 schema +struct<> +-- !query 476 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 477 +SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 477 schema +struct<> +-- !query 477 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 478 +SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 478 schema +struct<> +-- !query 478 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 479 +SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 479 schema +struct<> +-- !query 479 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 480 +SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 480 schema +struct<> +-- !query 480 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 481 +SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 481 schema +struct<> +-- !query 481 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 482 +SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 482 schema +struct<> +-- !query 482 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 483 +SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 483 schema +struct<> +-- !query 483 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 484 +SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 484 schema +struct<> +-- !query 484 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 485 +SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 485 schema +struct<> +-- !query 485 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 486 +SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 486 schema +struct<> +-- !query 486 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 487 +SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 487 schema +struct<> +-- !query 487 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 488 +SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 488 schema +struct<> +-- !query 488 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 489 +SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 489 schema +struct<> +-- !query 489 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 490 +SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 490 schema +struct<> +-- !query 490 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 491 +SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 491 schema +struct<> +-- !query 491 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 492 +SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 492 schema +struct<> +-- !query 492 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 493 +SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 493 schema +struct<> +-- !query 493 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 494 +SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 494 schema +struct<> +-- !query 494 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 495 +SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 495 schema +struct<> +-- !query 495 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 496 +SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 496 schema +struct<> +-- !query 496 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 497 +SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 497 schema +struct<> +-- !query 497 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 498 +SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 498 schema +struct<> +-- !query 498 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 499 +SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 499 schema +struct<> +-- !query 499 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 500 +SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 500 schema +struct<> +-- !query 500 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 501 +SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 501 schema +struct<> +-- !query 501 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 502 +SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 502 schema +struct<> +-- !query 502 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 503 +SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 503 schema +struct<> +-- !query 503 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 504 +SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 504 schema +struct<> +-- !query 504 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 505 +SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 505 schema +struct<> +-- !query 505 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 506 +SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +-- !query 506 schema +struct<> +-- !query 506 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 507 +SELECT cast(1 as tinyint) - cast(1 as decimal(1, 0)) FROM t +-- !query 507 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0))):decimal(4,0)> +-- !query 507 output +0 + + +-- !query 508 +SELECT cast(1 as tinyint) - cast(1 as decimal(3, 0)) FROM t +-- !query 508 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) - CAST(1 AS DECIMAL(3,0))):decimal(4,0)> +-- !query 508 output +0 + + +-- !query 509 +SELECT cast(1 as tinyint) - cast(1 as decimal(4, 0)) FROM t +-- !query 509 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(5,0)> +-- !query 509 output +0 + + +-- !query 510 +SELECT cast(1 as tinyint) - cast(1 as decimal(5, 0)) FROM t +-- !query 510 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 510 output +0 + + +-- !query 511 +SELECT cast(1 as tinyint) - cast(1 as decimal(6, 0)) FROM t +-- !query 511 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 511 output +0 + + +-- !query 512 +SELECT cast(1 as tinyint) - cast(1 as decimal(10, 0)) FROM t +-- !query 512 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 512 output +0 + + +-- !query 513 +SELECT cast(1 as tinyint) - cast(1 as decimal(11, 0)) FROM t +-- !query 513 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 513 output +0 + + +-- !query 514 +SELECT cast(1 as tinyint) - cast(1 as decimal(20, 0)) FROM t +-- !query 514 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 514 output +0 + + +-- !query 515 +SELECT cast(1 as tinyint) - cast(1 as decimal(21, 0)) FROM t +-- !query 515 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 515 output +0 + + +-- !query 516 +SELECT cast(1 as tinyint) - cast(1 as decimal(38, 0)) FROM t +-- !query 516 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 516 output +0 + + +-- !query 517 +SELECT cast(1 as tinyint) - cast(1 as decimal(39, 0)) FROM t +-- !query 517 schema +struct<> +-- !query 517 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 518 +SELECT cast(1 as tinyint) - cast(1 as decimal(1, 1)) FROM t +-- !query 518 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 518 output +NULL + + +-- !query 519 +SELECT cast(1 as tinyint) - cast(1 as decimal(2, 1)) FROM t +-- !query 519 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 519 output +0 + + +-- !query 520 +SELECT cast(1 as tinyint) - cast(1 as decimal(3, 1)) FROM t +-- !query 520 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 520 output +0 + + +-- !query 521 +SELECT cast(1 as tinyint) - cast(1 as decimal(4, 1)) FROM t +-- !query 521 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 521 output +0 + + +-- !query 522 +SELECT cast(1 as tinyint) - cast(1 as decimal(5, 1)) FROM t +-- !query 522 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(6,1)> +-- !query 522 output +0 + + +-- !query 523 +SELECT cast(1 as tinyint) - cast(1 as decimal(6, 1)) FROM t +-- !query 523 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 523 output +0 + + +-- !query 524 +SELECT cast(1 as tinyint) - cast(1 as decimal(10, 1)) FROM t +-- !query 524 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 524 output +0 + + +-- !query 525 +SELECT cast(1 as tinyint) - cast(1 as decimal(11, 1)) FROM t +-- !query 525 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 525 output +0 + + +-- !query 526 +SELECT cast(1 as tinyint) - cast(1 as decimal(20, 1)) FROM t +-- !query 526 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 526 output +0 + + +-- !query 527 +SELECT cast(1 as tinyint) - cast(1 as decimal(21, 1)) FROM t +-- !query 527 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 527 output +0 + + +-- !query 528 +SELECT cast(1 as tinyint) - cast(1 as decimal(38, 1)) FROM t +-- !query 528 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 528 output +0 + + +-- !query 529 +SELECT cast(1 as tinyint) - cast(1 as decimal(39, 1)) FROM t +-- !query 529 schema +struct<> +-- !query 529 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 530 +SELECT cast(1 as smallint) - cast(1 as decimal(1, 0)) FROM t +-- !query 530 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 530 output +0 + + +-- !query 531 +SELECT cast(1 as smallint) - cast(1 as decimal(3, 0)) FROM t +-- !query 531 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 531 output +0 + + +-- !query 532 +SELECT cast(1 as smallint) - cast(1 as decimal(4, 0)) FROM t +-- !query 532 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 532 output +0 + + +-- !query 533 +SELECT cast(1 as smallint) - cast(1 as decimal(5, 0)) FROM t +-- !query 533 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) - CAST(1 AS DECIMAL(5,0))):decimal(6,0)> +-- !query 533 output +0 + + +-- !query 534 +SELECT cast(1 as smallint) - cast(1 as decimal(6, 0)) FROM t +-- !query 534 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 534 output +0 + + +-- !query 535 +SELECT cast(1 as smallint) - cast(1 as decimal(10, 0)) FROM t +-- !query 535 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 535 output +0 + + +-- !query 536 +SELECT cast(1 as smallint) - cast(1 as decimal(11, 0)) FROM t +-- !query 536 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 536 output +0 + + +-- !query 537 +SELECT cast(1 as smallint) - cast(1 as decimal(20, 0)) FROM t +-- !query 537 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 537 output +0 + + +-- !query 538 +SELECT cast(1 as smallint) - cast(1 as decimal(21, 0)) FROM t +-- !query 538 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 538 output +0 + + +-- !query 539 +SELECT cast(1 as smallint) - cast(1 as decimal(38, 0)) FROM t +-- !query 539 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 539 output +0 + + +-- !query 540 +SELECT cast(1 as smallint) - cast(1 as decimal(39, 0)) FROM t +-- !query 540 schema +struct<> +-- !query 540 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 541 +SELECT cast(1 as smallint) - cast(1 as decimal(1, 1)) FROM t +-- !query 541 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 541 output +NULL + + +-- !query 542 +SELECT cast(1 as smallint) - cast(1 as decimal(2, 1)) FROM t +-- !query 542 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 542 output +0 + + +-- !query 543 +SELECT cast(1 as smallint) - cast(1 as decimal(3, 1)) FROM t +-- !query 543 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 543 output +0 + + +-- !query 544 +SELECT cast(1 as smallint) - cast(1 as decimal(4, 1)) FROM t +-- !query 544 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 544 output +0 + + +-- !query 545 +SELECT cast(1 as smallint) - cast(1 as decimal(5, 1)) FROM t +-- !query 545 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 545 output +0 + + +-- !query 546 +SELECT cast(1 as smallint) - cast(1 as decimal(6, 1)) FROM t +-- !query 546 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 546 output +0 + + +-- !query 547 +SELECT cast(1 as smallint) - cast(1 as decimal(10, 1)) FROM t +-- !query 547 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 547 output +0 + + +-- !query 548 +SELECT cast(1 as smallint) - cast(1 as decimal(11, 1)) FROM t +-- !query 548 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 548 output +0 + + +-- !query 549 +SELECT cast(1 as smallint) - cast(1 as decimal(20, 1)) FROM t +-- !query 549 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 549 output +0 + + +-- !query 550 +SELECT cast(1 as smallint) - cast(1 as decimal(21, 1)) FROM t +-- !query 550 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 550 output +0 + + +-- !query 551 +SELECT cast(1 as smallint) - cast(1 as decimal(38, 1)) FROM t +-- !query 551 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 551 output +0 + + +-- !query 552 +SELECT cast(1 as smallint) - cast(1 as decimal(39, 1)) FROM t +-- !query 552 schema +struct<> +-- !query 552 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 553 +SELECT cast(1 as int) - cast(1 as decimal(1, 0)) FROM t +-- !query 553 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 553 output +0 + + +-- !query 554 +SELECT cast(1 as int) - cast(1 as decimal(3, 0)) FROM t +-- !query 554 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 554 output +0 + + +-- !query 555 +SELECT cast(1 as int) - cast(1 as decimal(4, 0)) FROM t +-- !query 555 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 555 output +0 + + +-- !query 556 +SELECT cast(1 as int) - cast(1 as decimal(5, 0)) FROM t +-- !query 556 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 556 output +0 + + +-- !query 557 +SELECT cast(1 as int) - cast(1 as decimal(6, 0)) FROM t +-- !query 557 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 557 output +0 + + +-- !query 558 +SELECT cast(1 as int) - cast(1 as decimal(10, 0)) FROM t +-- !query 558 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +-- !query 558 output +0 + + +-- !query 559 +SELECT cast(1 as int) - cast(1 as decimal(11, 0)) FROM t +-- !query 559 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 559 output +0 + + +-- !query 560 +SELECT cast(1 as int) - cast(1 as decimal(20, 0)) FROM t +-- !query 560 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 560 output +0 + + +-- !query 561 +SELECT cast(1 as int) - cast(1 as decimal(21, 0)) FROM t +-- !query 561 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 561 output +0 + + +-- !query 562 +SELECT cast(1 as int) - cast(1 as decimal(38, 0)) FROM t +-- !query 562 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 562 output +0 + + +-- !query 563 +SELECT cast(1 as int) - cast(1 as decimal(39, 0)) FROM t +-- !query 563 schema +struct<> +-- !query 563 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 564 +SELECT cast(1 as int) - cast(1 as decimal(1, 1)) FROM t +-- !query 564 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 564 output +NULL + + +-- !query 565 +SELECT cast(1 as int) - cast(1 as decimal(2, 1)) FROM t +-- !query 565 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 565 output +0 + + +-- !query 566 +SELECT cast(1 as int) - cast(1 as decimal(3, 1)) FROM t +-- !query 566 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 566 output +0 + + +-- !query 567 +SELECT cast(1 as int) - cast(1 as decimal(4, 1)) FROM t +-- !query 567 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 567 output +0 + + +-- !query 568 +SELECT cast(1 as int) - cast(1 as decimal(5, 1)) FROM t +-- !query 568 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 568 output +0 + + +-- !query 569 +SELECT cast(1 as int) - cast(1 as decimal(6, 1)) FROM t +-- !query 569 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 569 output +0 + + +-- !query 570 +SELECT cast(1 as int) - cast(1 as decimal(10, 1)) FROM t +-- !query 570 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 570 output +0 + + +-- !query 571 +SELECT cast(1 as int) - cast(1 as decimal(11, 1)) FROM t +-- !query 571 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 571 output +0 + + +-- !query 572 +SELECT cast(1 as int) - cast(1 as decimal(20, 1)) FROM t +-- !query 572 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 572 output +0 + + +-- !query 573 +SELECT cast(1 as int) - cast(1 as decimal(21, 1)) FROM t +-- !query 573 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 573 output +0 + + +-- !query 574 +SELECT cast(1 as int) - cast(1 as decimal(38, 1)) FROM t +-- !query 574 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 574 output +0 + + +-- !query 575 +SELECT cast(1 as int) - cast(1 as decimal(39, 1)) FROM t +-- !query 575 schema +struct<> +-- !query 575 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 576 +SELECT cast(1 as bigint) - cast(1 as decimal(1, 0)) FROM t +-- !query 576 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 576 output +0 + + +-- !query 577 +SELECT cast(1 as bigint) - cast(1 as decimal(3, 0)) FROM t +-- !query 577 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 577 output +0 + + +-- !query 578 +SELECT cast(1 as bigint) - cast(1 as decimal(4, 0)) FROM t +-- !query 578 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 578 output +0 + + +-- !query 579 +SELECT cast(1 as bigint) - cast(1 as decimal(5, 0)) FROM t +-- !query 579 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 579 output +0 + + +-- !query 580 +SELECT cast(1 as bigint) - cast(1 as decimal(6, 0)) FROM t +-- !query 580 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 580 output +0 + + +-- !query 581 +SELECT cast(1 as bigint) - cast(1 as decimal(10, 0)) FROM t +-- !query 581 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 581 output +0 + + +-- !query 582 +SELECT cast(1 as bigint) - cast(1 as decimal(11, 0)) FROM t +-- !query 582 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 582 output +0 + + +-- !query 583 +SELECT cast(1 as bigint) - cast(1 as decimal(20, 0)) FROM t +-- !query 583 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) - CAST(1 AS DECIMAL(20,0))):decimal(21,0)> +-- !query 583 output +0 + + +-- !query 584 +SELECT cast(1 as bigint) - cast(1 as decimal(21, 0)) FROM t +-- !query 584 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 584 output +0 + + +-- !query 585 +SELECT cast(1 as bigint) - cast(1 as decimal(38, 0)) FROM t +-- !query 585 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 585 output +0 + + +-- !query 586 +SELECT cast(1 as bigint) - cast(1 as decimal(39, 0)) FROM t +-- !query 586 schema +struct<> +-- !query 586 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 587 +SELECT cast(1 as bigint) - cast(1 as decimal(1, 1)) FROM t +-- !query 587 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 587 output +NULL + + +-- !query 588 +SELECT cast(1 as bigint) - cast(1 as decimal(2, 1)) FROM t +-- !query 588 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 588 output +0 + + +-- !query 589 +SELECT cast(1 as bigint) - cast(1 as decimal(3, 1)) FROM t +-- !query 589 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 589 output +0 + + +-- !query 590 +SELECT cast(1 as bigint) - cast(1 as decimal(4, 1)) FROM t +-- !query 590 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 590 output +0 + + +-- !query 591 +SELECT cast(1 as bigint) - cast(1 as decimal(5, 1)) FROM t +-- !query 591 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 591 output +0 + + +-- !query 592 +SELECT cast(1 as bigint) - cast(1 as decimal(6, 1)) FROM t +-- !query 592 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 592 output +0 + + +-- !query 593 +SELECT cast(1 as bigint) - cast(1 as decimal(10, 1)) FROM t +-- !query 593 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 593 output +0 + + +-- !query 594 +SELECT cast(1 as bigint) - cast(1 as decimal(11, 1)) FROM t +-- !query 594 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 594 output +0 + + +-- !query 595 +SELECT cast(1 as bigint) - cast(1 as decimal(20, 1)) FROM t +-- !query 595 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 595 output +0 + + +-- !query 596 +SELECT cast(1 as bigint) - cast(1 as decimal(21, 1)) FROM t +-- !query 596 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 596 output +0 + + +-- !query 597 +SELECT cast(1 as bigint) - cast(1 as decimal(38, 1)) FROM t +-- !query 597 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 597 output +0 + + +-- !query 598 +SELECT cast(1 as bigint) - cast(1 as decimal(39, 1)) FROM t +-- !query 598 schema +struct<> +-- !query 598 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 599 +SELECT cast(1 as float) - cast(1 as decimal(1, 0)) FROM t +-- !query 599 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 599 output +0.0 + + +-- !query 600 +SELECT cast(1 as float) - cast(1 as decimal(3, 0)) FROM t +-- !query 600 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 600 output +0.0 + + +-- !query 601 +SELECT cast(1 as float) - cast(1 as decimal(4, 0)) FROM t +-- !query 601 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 601 output +0.0 + + +-- !query 602 +SELECT cast(1 as float) - cast(1 as decimal(5, 0)) FROM t +-- !query 602 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 602 output +0.0 + + +-- !query 603 +SELECT cast(1 as float) - cast(1 as decimal(6, 0)) FROM t +-- !query 603 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 603 output +0.0 + + +-- !query 604 +SELECT cast(1 as float) - cast(1 as decimal(10, 0)) FROM t +-- !query 604 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 604 output +0.0 + + +-- !query 605 +SELECT cast(1 as float) - cast(1 as decimal(11, 0)) FROM t +-- !query 605 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 605 output +0.0 + + +-- !query 606 +SELECT cast(1 as float) - cast(1 as decimal(20, 0)) FROM t +-- !query 606 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 606 output +0.0 + + +-- !query 607 +SELECT cast(1 as float) - cast(1 as decimal(21, 0)) FROM t +-- !query 607 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 607 output +0.0 + + +-- !query 608 +SELECT cast(1 as float) - cast(1 as decimal(38, 0)) FROM t +-- !query 608 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 608 output +0.0 + + +-- !query 609 +SELECT cast(1 as float) - cast(1 as decimal(39, 0)) FROM t +-- !query 609 schema +struct<> +-- !query 609 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 610 +SELECT cast(1 as float) - cast(1 as decimal(1, 1)) FROM t +-- !query 610 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 610 output +NULL + + +-- !query 611 +SELECT cast(1 as float) - cast(1 as decimal(2, 1)) FROM t +-- !query 611 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 611 output +0.0 + + +-- !query 612 +SELECT cast(1 as float) - cast(1 as decimal(3, 1)) FROM t +-- !query 612 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 612 output +0.0 + + +-- !query 613 +SELECT cast(1 as float) - cast(1 as decimal(4, 1)) FROM t +-- !query 613 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 613 output +0.0 + + +-- !query 614 +SELECT cast(1 as float) - cast(1 as decimal(5, 1)) FROM t +-- !query 614 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 614 output +0.0 + + +-- !query 615 +SELECT cast(1 as float) - cast(1 as decimal(6, 1)) FROM t +-- !query 615 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 615 output +0.0 + + +-- !query 616 +SELECT cast(1 as float) - cast(1 as decimal(10, 1)) FROM t +-- !query 616 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 616 output +0.0 + + +-- !query 617 +SELECT cast(1 as float) - cast(1 as decimal(11, 1)) FROM t +-- !query 617 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 617 output +0.0 + + +-- !query 618 +SELECT cast(1 as float) - cast(1 as decimal(20, 1)) FROM t +-- !query 618 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 618 output +0.0 + + +-- !query 619 +SELECT cast(1 as float) - cast(1 as decimal(21, 1)) FROM t +-- !query 619 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 619 output +0.0 + + +-- !query 620 +SELECT cast(1 as float) - cast(1 as decimal(38, 1)) FROM t +-- !query 620 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 620 output +0.0 + + +-- !query 621 +SELECT cast(1 as float) - cast(1 as decimal(39, 1)) FROM t +-- !query 621 schema +struct<> +-- !query 621 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 622 +SELECT cast(1 as double) - cast(1 as decimal(1, 0)) FROM t +-- !query 622 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 622 output +0.0 + + +-- !query 623 +SELECT cast(1 as double) - cast(1 as decimal(3, 0)) FROM t +-- !query 623 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 623 output +0.0 + + +-- !query 624 +SELECT cast(1 as double) - cast(1 as decimal(4, 0)) FROM t +-- !query 624 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 624 output +0.0 + + +-- !query 625 +SELECT cast(1 as double) - cast(1 as decimal(5, 0)) FROM t +-- !query 625 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 625 output +0.0 + + +-- !query 626 +SELECT cast(1 as double) - cast(1 as decimal(6, 0)) FROM t +-- !query 626 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 626 output +0.0 + + +-- !query 627 +SELECT cast(1 as double) - cast(1 as decimal(10, 0)) FROM t +-- !query 627 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 627 output +0.0 + + +-- !query 628 +SELECT cast(1 as double) - cast(1 as decimal(11, 0)) FROM t +-- !query 628 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 628 output +0.0 + + +-- !query 629 +SELECT cast(1 as double) - cast(1 as decimal(20, 0)) FROM t +-- !query 629 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 629 output +0.0 + + +-- !query 630 +SELECT cast(1 as double) - cast(1 as decimal(21, 0)) FROM t +-- !query 630 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 630 output +0.0 + + +-- !query 631 +SELECT cast(1 as double) - cast(1 as decimal(38, 0)) FROM t +-- !query 631 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 631 output +0.0 + + +-- !query 632 +SELECT cast(1 as double) - cast(1 as decimal(39, 0)) FROM t +-- !query 632 schema +struct<> +-- !query 632 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 633 +SELECT cast(1 as double) - cast(1 as decimal(1, 1)) FROM t +-- !query 633 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 633 output +NULL + + +-- !query 634 +SELECT cast(1 as double) - cast(1 as decimal(2, 1)) FROM t +-- !query 634 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 634 output +0.0 + + +-- !query 635 +SELECT cast(1 as double) - cast(1 as decimal(3, 1)) FROM t +-- !query 635 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 635 output +0.0 + + +-- !query 636 +SELECT cast(1 as double) - cast(1 as decimal(4, 1)) FROM t +-- !query 636 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 636 output +0.0 + + +-- !query 637 +SELECT cast(1 as double) - cast(1 as decimal(5, 1)) FROM t +-- !query 637 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 637 output +0.0 + + +-- !query 638 +SELECT cast(1 as double) - cast(1 as decimal(6, 1)) FROM t +-- !query 638 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 638 output +0.0 + + +-- !query 639 +SELECT cast(1 as double) - cast(1 as decimal(10, 1)) FROM t +-- !query 639 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 639 output +0.0 + + +-- !query 640 +SELECT cast(1 as double) - cast(1 as decimal(11, 1)) FROM t +-- !query 640 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 640 output +0.0 + + +-- !query 641 +SELECT cast(1 as double) - cast(1 as decimal(20, 1)) FROM t +-- !query 641 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 641 output +0.0 + + +-- !query 642 +SELECT cast(1 as double) - cast(1 as decimal(21, 1)) FROM t +-- !query 642 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 642 output +0.0 + + +-- !query 643 +SELECT cast(1 as double) - cast(1 as decimal(38, 1)) FROM t +-- !query 643 schema +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 643 output +0.0 + + +-- !query 644 +SELECT cast(1 as double) - cast(1 as decimal(39, 1)) FROM t +-- !query 644 schema +struct<> +-- !query 644 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 645 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 0)) FROM t +-- !query 645 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 645 output +0 + + +-- !query 646 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 0)) FROM t +-- !query 646 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 646 output +0 + + +-- !query 647 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 0)) FROM t +-- !query 647 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 647 output +0 + + +-- !query 648 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 0)) FROM t +-- !query 648 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 648 output +0 + + +-- !query 649 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 0)) FROM t +-- !query 649 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 649 output +0 + + +-- !query 650 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 650 schema +struct<(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +-- !query 650 output +0 + + +-- !query 651 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 0)) FROM t +-- !query 651 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 651 output +0 + + +-- !query 652 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 0)) FROM t +-- !query 652 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 652 output +0 + + +-- !query 653 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 0)) FROM t +-- !query 653 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 653 output +0 + + +-- !query 654 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 0)) FROM t +-- !query 654 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 654 output +0 + + +-- !query 655 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 0)) FROM t +-- !query 655 schema +struct<> +-- !query 655 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 656 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 1)) FROM t +-- !query 656 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 656 output +NULL + + +-- !query 657 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(2, 1)) FROM t +-- !query 657 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 657 output +0 + + +-- !query 658 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 1)) FROM t +-- !query 658 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 658 output +0 + + +-- !query 659 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 1)) FROM t +-- !query 659 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 659 output +0 + + +-- !query 660 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 1)) FROM t +-- !query 660 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 660 output +0 + + +-- !query 661 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 1)) FROM t +-- !query 661 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 661 output +0 + + +-- !query 662 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 1)) FROM t +-- !query 662 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 662 output +0 + + +-- !query 663 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 1)) FROM t +-- !query 663 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 663 output +0 + + +-- !query 664 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 1)) FROM t +-- !query 664 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 664 output +0 + + +-- !query 665 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 1)) FROM t +-- !query 665 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 665 output +0 + + +-- !query 666 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 1)) FROM t +-- !query 666 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 666 output +0 + + +-- !query 667 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 1)) FROM t +-- !query 667 schema +struct<> +-- !query 667 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 668 +SELECT cast('1' as binary) - cast(1 as decimal(1, 0)) FROM t +-- !query 668 schema +struct<> +-- !query 668 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 669 +SELECT cast('1' as binary) - cast(1 as decimal(3, 0)) FROM t +-- !query 669 schema +struct<> +-- !query 669 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 670 +SELECT cast('1' as binary) - cast(1 as decimal(4, 0)) FROM t +-- !query 670 schema +struct<> +-- !query 670 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 671 +SELECT cast('1' as binary) - cast(1 as decimal(5, 0)) FROM t +-- !query 671 schema +struct<> +-- !query 671 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 672 +SELECT cast('1' as binary) - cast(1 as decimal(6, 0)) FROM t +-- !query 672 schema +struct<> +-- !query 672 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 673 +SELECT cast('1' as binary) - cast(1 as decimal(10, 0)) FROM t +-- !query 673 schema +struct<> +-- !query 673 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 674 +SELECT cast('1' as binary) - cast(1 as decimal(11, 0)) FROM t +-- !query 674 schema +struct<> +-- !query 674 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 675 +SELECT cast('1' as binary) - cast(1 as decimal(20, 0)) FROM t +-- !query 675 schema +struct<> +-- !query 675 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 676 +SELECT cast('1' as binary) - cast(1 as decimal(21, 0)) FROM t +-- !query 676 schema +struct<> +-- !query 676 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 677 +SELECT cast('1' as binary) - cast(1 as decimal(38, 0)) FROM t +-- !query 677 schema +struct<> +-- !query 677 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 678 +SELECT cast('1' as binary) - cast(1 as decimal(39, 0)) FROM t +-- !query 678 schema +struct<> +-- !query 678 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 679 +SELECT cast('1' as binary) - cast(1 as decimal(1, 1)) FROM t +-- !query 679 schema +struct<> +-- !query 679 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 680 +SELECT cast('1' as binary) - cast(1 as decimal(2, 1)) FROM t +-- !query 680 schema +struct<> +-- !query 680 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 681 +SELECT cast('1' as binary) - cast(1 as decimal(3, 1)) FROM t +-- !query 681 schema +struct<> +-- !query 681 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 682 +SELECT cast('1' as binary) - cast(1 as decimal(4, 1)) FROM t +-- !query 682 schema +struct<> +-- !query 682 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 683 +SELECT cast('1' as binary) - cast(1 as decimal(5, 1)) FROM t +-- !query 683 schema +struct<> +-- !query 683 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 684 +SELECT cast('1' as binary) - cast(1 as decimal(6, 1)) FROM t +-- !query 684 schema +struct<> +-- !query 684 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 685 +SELECT cast('1' as binary) - cast(1 as decimal(10, 1)) FROM t +-- !query 685 schema +struct<> +-- !query 685 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 686 +SELECT cast('1' as binary) - cast(1 as decimal(11, 1)) FROM t +-- !query 686 schema +struct<> +-- !query 686 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 687 +SELECT cast('1' as binary) - cast(1 as decimal(20, 1)) FROM t +-- !query 687 schema +struct<> +-- !query 687 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 688 +SELECT cast('1' as binary) - cast(1 as decimal(21, 1)) FROM t +-- !query 688 schema +struct<> +-- !query 688 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 689 +SELECT cast('1' as binary) - cast(1 as decimal(38, 1)) FROM t +-- !query 689 schema +struct<> +-- !query 689 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 690 +SELECT cast('1' as binary) - cast(1 as decimal(39, 1)) FROM t +-- !query 690 schema +struct<> +-- !query 690 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 691 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 0)) FROM t +-- !query 691 schema +struct<> +-- !query 691 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 692 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 0)) FROM t +-- !query 692 schema +struct<> +-- !query 692 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 693 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 0)) FROM t +-- !query 693 schema +struct<> +-- !query 693 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 694 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 0)) FROM t +-- !query 694 schema +struct<> +-- !query 694 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 695 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 0)) FROM t +-- !query 695 schema +struct<> +-- !query 695 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 696 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 0)) FROM t +-- !query 696 schema +struct<> +-- !query 696 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 697 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 0)) FROM t +-- !query 697 schema +struct<> +-- !query 697 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 698 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 0)) FROM t +-- !query 698 schema +struct<> +-- !query 698 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 699 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 0)) FROM t +-- !query 699 schema +struct<> +-- !query 699 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 700 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 0)) FROM t +-- !query 700 schema +struct<> +-- !query 700 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 701 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 0)) FROM t +-- !query 701 schema +struct<> +-- !query 701 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 702 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 1)) FROM t +-- !query 702 schema +struct<> +-- !query 702 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 703 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(2, 1)) FROM t +-- !query 703 schema +struct<> +-- !query 703 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 704 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 1)) FROM t +-- !query 704 schema +struct<> +-- !query 704 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 705 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 1)) FROM t +-- !query 705 schema +struct<> +-- !query 705 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 706 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 1)) FROM t +-- !query 706 schema +struct<> +-- !query 706 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 707 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 1)) FROM t +-- !query 707 schema +struct<> +-- !query 707 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 708 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 1)) FROM t +-- !query 708 schema +struct<> +-- !query 708 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 709 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 1)) FROM t +-- !query 709 schema +struct<> +-- !query 709 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 710 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 1)) FROM t +-- !query 710 schema +struct<> +-- !query 710 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 711 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 1)) FROM t +-- !query 711 schema +struct<> +-- !query 711 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 712 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 1)) FROM t +-- !query 712 schema +struct<> +-- !query 712 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 713 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 1)) FROM t +-- !query 713 schema +struct<> +-- !query 713 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 714 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 0)) FROM t +-- !query 714 schema +struct<> +-- !query 714 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 715 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 0)) FROM t +-- !query 715 schema +struct<> +-- !query 715 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 716 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 0)) FROM t +-- !query 716 schema +struct<> +-- !query 716 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 717 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 0)) FROM t +-- !query 717 schema +struct<> +-- !query 717 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 718 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 0)) FROM t +-- !query 718 schema +struct<> +-- !query 718 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 719 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 0)) FROM t +-- !query 719 schema +struct<> +-- !query 719 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 720 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 0)) FROM t +-- !query 720 schema +struct<> +-- !query 720 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 721 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 0)) FROM t +-- !query 721 schema +struct<> +-- !query 721 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 722 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 0)) FROM t +-- !query 722 schema +struct<> +-- !query 722 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 723 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 0)) FROM t +-- !query 723 schema +struct<> +-- !query 723 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 724 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 0)) FROM t +-- !query 724 schema +struct<> +-- !query 724 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 0)) FROM t + + +-- !query 725 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 1)) FROM t +-- !query 725 schema +struct<> +-- !query 725 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 726 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(2, 1)) FROM t +-- !query 726 schema +struct<> +-- !query 726 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 727 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 1)) FROM t +-- !query 727 schema +struct<> +-- !query 727 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 728 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 1)) FROM t +-- !query 728 schema +struct<> +-- !query 728 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 729 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 1)) FROM t +-- !query 729 schema +struct<> +-- !query 729 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 730 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 1)) FROM t +-- !query 730 schema +struct<> +-- !query 730 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 731 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 1)) FROM t +-- !query 731 schema +struct<> +-- !query 731 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 732 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 1)) FROM t +-- !query 732 schema +struct<> +-- !query 732 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 733 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 1)) FROM t +-- !query 733 schema +struct<> +-- !query 733 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 734 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 1)) FROM t +-- !query 734 schema +struct<> +-- !query 734 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 735 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 1)) FROM t +-- !query 735 schema +struct<> +-- !query 735 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 736 +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 1)) FROM t +-- !query 736 schema +struct<> +-- !query 736 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 1)) FROM t + + +-- !query 737 +SELECT cast(1 as decimal(1, 0)) - cast(1 as tinyint) FROM t +-- !query 737 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(4,0)> +-- !query 737 output +0 + + +-- !query 738 +SELECT cast(1 as decimal(3, 0)) - cast(1 as tinyint) FROM t +-- !query 738 schema +struct<(CAST(1 AS DECIMAL(3,0)) - CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(4,0)> +-- !query 738 output +0 + + +-- !query 739 +SELECT cast(1 as decimal(4, 0)) - cast(1 as tinyint) FROM t +-- !query 739 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(5,0)> +-- !query 739 output +0 + + +-- !query 740 +SELECT cast(1 as decimal(5, 0)) - cast(1 as tinyint) FROM t +-- !query 740 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 740 output +0 + + +-- !query 741 +SELECT cast(1 as decimal(6, 0)) - cast(1 as tinyint) FROM t +-- !query 741 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 741 output +0 + + +-- !query 742 +SELECT cast(1 as decimal(10, 0)) - cast(1 as tinyint) FROM t +-- !query 742 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 742 output +0 + + +-- !query 743 +SELECT cast(1 as decimal(11, 0)) - cast(1 as tinyint) FROM t +-- !query 743 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 743 output +0 + + +-- !query 744 +SELECT cast(1 as decimal(20, 0)) - cast(1 as tinyint) FROM t +-- !query 744 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 744 output +0 + + +-- !query 745 +SELECT cast(1 as decimal(21, 0)) - cast(1 as tinyint) FROM t +-- !query 745 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 745 output +0 + + +-- !query 746 +SELECT cast(1 as decimal(38, 0)) - cast(1 as tinyint) FROM t +-- !query 746 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 746 output +0 + + +-- !query 747 +SELECT cast(1 as decimal(39, 0)) - cast(1 as tinyint) FROM t +-- !query 747 schema +struct<> +-- !query 747 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as tinyint) FROM t + + +-- !query 748 +SELECT cast(1 as decimal(1, 1)) - cast(1 as tinyint) FROM t +-- !query 748 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 748 output +NULL + + +-- !query 749 +SELECT cast(1 as decimal(2, 1)) - cast(1 as tinyint) FROM t +-- !query 749 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 749 output +0 + + +-- !query 750 +SELECT cast(1 as decimal(3, 1)) - cast(1 as tinyint) FROM t +-- !query 750 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 750 output +0 + + +-- !query 751 +SELECT cast(1 as decimal(4, 1)) - cast(1 as tinyint) FROM t +-- !query 751 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +-- !query 751 output +0 + + +-- !query 752 +SELECT cast(1 as decimal(5, 1)) - cast(1 as tinyint) FROM t +-- !query 752 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(6,1)> +-- !query 752 output +0 + + +-- !query 753 +SELECT cast(1 as decimal(6, 1)) - cast(1 as tinyint) FROM t +-- !query 753 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 753 output +0 + + +-- !query 754 +SELECT cast(1 as decimal(10, 1)) - cast(1 as tinyint) FROM t +-- !query 754 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 754 output +0 + + +-- !query 755 +SELECT cast(1 as decimal(11, 1)) - cast(1 as tinyint) FROM t +-- !query 755 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 755 output +0 + + +-- !query 756 +SELECT cast(1 as decimal(20, 1)) - cast(1 as tinyint) FROM t +-- !query 756 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 756 output +0 + + +-- !query 757 +SELECT cast(1 as decimal(21, 1)) - cast(1 as tinyint) FROM t +-- !query 757 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 757 output +0 + + +-- !query 758 +SELECT cast(1 as decimal(38, 1)) - cast(1 as tinyint) FROM t +-- !query 758 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 758 output +0 + + +-- !query 759 +SELECT cast(1 as decimal(39, 1)) - cast(1 as tinyint) FROM t +-- !query 759 schema +struct<> +-- !query 759 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as tinyint) FROM t + + +-- !query 760 +SELECT cast(1 as decimal(1, 0)) - cast(1 as smallint) FROM t +-- !query 760 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 760 output +0 + + +-- !query 761 +SELECT cast(1 as decimal(3, 0)) - cast(1 as smallint) FROM t +-- !query 761 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 761 output +0 + + +-- !query 762 +SELECT cast(1 as decimal(4, 0)) - cast(1 as smallint) FROM t +-- !query 762 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +-- !query 762 output +0 + + +-- !query 763 +SELECT cast(1 as decimal(5, 0)) - cast(1 as smallint) FROM t +-- !query 763 schema +struct<(CAST(1 AS DECIMAL(5,0)) - CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(6,0)> +-- !query 763 output +0 + + +-- !query 764 +SELECT cast(1 as decimal(6, 0)) - cast(1 as smallint) FROM t +-- !query 764 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0))):decimal(7,0)> +-- !query 764 output +0 + + +-- !query 765 +SELECT cast(1 as decimal(10, 0)) - cast(1 as smallint) FROM t +-- !query 765 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 765 output +0 + + +-- !query 766 +SELECT cast(1 as decimal(11, 0)) - cast(1 as smallint) FROM t +-- !query 766 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 766 output +0 + + +-- !query 767 +SELECT cast(1 as decimal(20, 0)) - cast(1 as smallint) FROM t +-- !query 767 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 767 output +0 + + +-- !query 768 +SELECT cast(1 as decimal(21, 0)) - cast(1 as smallint) FROM t +-- !query 768 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 768 output +0 + + +-- !query 769 +SELECT cast(1 as decimal(38, 0)) - cast(1 as smallint) FROM t +-- !query 769 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 769 output +0 + + +-- !query 770 +SELECT cast(1 as decimal(39, 0)) - cast(1 as smallint) FROM t +-- !query 770 schema +struct<> +-- !query 770 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as smallint) FROM t + + +-- !query 771 +SELECT cast(1 as decimal(1, 1)) - cast(1 as smallint) FROM t +-- !query 771 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 771 output +NULL + + +-- !query 772 +SELECT cast(1 as decimal(2, 1)) - cast(1 as smallint) FROM t +-- !query 772 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 772 output +0 + + +-- !query 773 +SELECT cast(1 as decimal(3, 1)) - cast(1 as smallint) FROM t +-- !query 773 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 773 output +0 + + +-- !query 774 +SELECT cast(1 as decimal(4, 1)) - cast(1 as smallint) FROM t +-- !query 774 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 774 output +0 + + +-- !query 775 +SELECT cast(1 as decimal(5, 1)) - cast(1 as smallint) FROM t +-- !query 775 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 775 output +0 + + +-- !query 776 +SELECT cast(1 as decimal(6, 1)) - cast(1 as smallint) FROM t +-- !query 776 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +-- !query 776 output +0 + + +-- !query 777 +SELECT cast(1 as decimal(10, 1)) - cast(1 as smallint) FROM t +-- !query 777 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 777 output +0 + + +-- !query 778 +SELECT cast(1 as decimal(11, 1)) - cast(1 as smallint) FROM t +-- !query 778 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 778 output +0 + + +-- !query 779 +SELECT cast(1 as decimal(20, 1)) - cast(1 as smallint) FROM t +-- !query 779 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 779 output +0 + + +-- !query 780 +SELECT cast(1 as decimal(21, 1)) - cast(1 as smallint) FROM t +-- !query 780 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 780 output +0 + + +-- !query 781 +SELECT cast(1 as decimal(38, 1)) - cast(1 as smallint) FROM t +-- !query 781 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 781 output +0 + + +-- !query 782 +SELECT cast(1 as decimal(39, 1)) - cast(1 as smallint) FROM t +-- !query 782 schema +struct<> +-- !query 782 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as smallint) FROM t + + +-- !query 783 +SELECT cast(1 as decimal(1, 0)) - cast(1 as int) FROM t +-- !query 783 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 783 output +0 + + +-- !query 784 +SELECT cast(1 as decimal(3, 0)) - cast(1 as int) FROM t +-- !query 784 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 784 output +0 + + +-- !query 785 +SELECT cast(1 as decimal(4, 0)) - cast(1 as int) FROM t +-- !query 785 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 785 output +0 + + +-- !query 786 +SELECT cast(1 as decimal(5, 0)) - cast(1 as int) FROM t +-- !query 786 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 786 output +0 + + +-- !query 787 +SELECT cast(1 as decimal(6, 0)) - cast(1 as int) FROM t +-- !query 787 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 787 output +0 + + +-- !query 788 +SELECT cast(1 as decimal(10, 0)) - cast(1 as int) FROM t +-- !query 788 schema +struct<(CAST(1 AS DECIMAL(10,0)) - CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(11,0)> +-- !query 788 output +0 + + +-- !query 789 +SELECT cast(1 as decimal(11, 0)) - cast(1 as int) FROM t +-- !query 789 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 789 output +0 + + +-- !query 790 +SELECT cast(1 as decimal(20, 0)) - cast(1 as int) FROM t +-- !query 790 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 790 output +0 + + +-- !query 791 +SELECT cast(1 as decimal(21, 0)) - cast(1 as int) FROM t +-- !query 791 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 791 output +0 + + +-- !query 792 +SELECT cast(1 as decimal(38, 0)) - cast(1 as int) FROM t +-- !query 792 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 792 output +0 + + +-- !query 793 +SELECT cast(1 as decimal(39, 0)) - cast(1 as int) FROM t +-- !query 793 schema +struct<> +-- !query 793 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as int) FROM t + + +-- !query 794 +SELECT cast(1 as decimal(1, 1)) - cast(1 as int) FROM t +-- !query 794 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 794 output +NULL + + +-- !query 795 +SELECT cast(1 as decimal(2, 1)) - cast(1 as int) FROM t +-- !query 795 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 795 output +0 + + +-- !query 796 +SELECT cast(1 as decimal(3, 1)) - cast(1 as int) FROM t +-- !query 796 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 796 output +0 + + +-- !query 797 +SELECT cast(1 as decimal(4, 1)) - cast(1 as int) FROM t +-- !query 797 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 797 output +0 + + +-- !query 798 +SELECT cast(1 as decimal(5, 1)) - cast(1 as int) FROM t +-- !query 798 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 798 output +0 + + +-- !query 799 +SELECT cast(1 as decimal(6, 1)) - cast(1 as int) FROM t +-- !query 799 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 799 output +0 + + +-- !query 800 +SELECT cast(1 as decimal(10, 1)) - cast(1 as int) FROM t +-- !query 800 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 800 output +0 + + +-- !query 801 +SELECT cast(1 as decimal(11, 1)) - cast(1 as int) FROM t +-- !query 801 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 801 output +0 + + +-- !query 802 +SELECT cast(1 as decimal(20, 1)) - cast(1 as int) FROM t +-- !query 802 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 802 output +0 + + +-- !query 803 +SELECT cast(1 as decimal(21, 1)) - cast(1 as int) FROM t +-- !query 803 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 803 output +0 + + +-- !query 804 +SELECT cast(1 as decimal(38, 1)) - cast(1 as int) FROM t +-- !query 804 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 804 output +0 + + +-- !query 805 +SELECT cast(1 as decimal(39, 1)) - cast(1 as int) FROM t +-- !query 805 schema +struct<> +-- !query 805 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as int) FROM t + + +-- !query 806 +SELECT cast(1 as decimal(1, 0)) - cast(1 as bigint) FROM t +-- !query 806 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 806 output +0 + + +-- !query 807 +SELECT cast(1 as decimal(3, 0)) - cast(1 as bigint) FROM t +-- !query 807 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 807 output +0 + + +-- !query 808 +SELECT cast(1 as decimal(4, 0)) - cast(1 as bigint) FROM t +-- !query 808 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 808 output +0 + + +-- !query 809 +SELECT cast(1 as decimal(5, 0)) - cast(1 as bigint) FROM t +-- !query 809 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 809 output +0 + + +-- !query 810 +SELECT cast(1 as decimal(6, 0)) - cast(1 as bigint) FROM t +-- !query 810 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 810 output +0 + + +-- !query 811 +SELECT cast(1 as decimal(10, 0)) - cast(1 as bigint) FROM t +-- !query 811 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 811 output +0 + + +-- !query 812 +SELECT cast(1 as decimal(11, 0)) - cast(1 as bigint) FROM t +-- !query 812 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 812 output +0 + + +-- !query 813 +SELECT cast(1 as decimal(20, 0)) - cast(1 as bigint) FROM t +-- !query 813 schema +struct<(CAST(1 AS DECIMAL(20,0)) - CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(21,0)> +-- !query 813 output +0 + + +-- !query 814 +SELECT cast(1 as decimal(21, 0)) - cast(1 as bigint) FROM t +-- !query 814 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 814 output +0 + + +-- !query 815 +SELECT cast(1 as decimal(38, 0)) - cast(1 as bigint) FROM t +-- !query 815 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 815 output +0 + + +-- !query 816 +SELECT cast(1 as decimal(39, 0)) - cast(1 as bigint) FROM t +-- !query 816 schema +struct<> +-- !query 816 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as bigint) FROM t + + +-- !query 817 +SELECT cast(1 as decimal(1, 1)) - cast(1 as bigint) FROM t +-- !query 817 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 817 output +NULL + + +-- !query 818 +SELECT cast(1 as decimal(2, 1)) - cast(1 as bigint) FROM t +-- !query 818 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 818 output +0 + + +-- !query 819 +SELECT cast(1 as decimal(3, 1)) - cast(1 as bigint) FROM t +-- !query 819 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 819 output +0 + + +-- !query 820 +SELECT cast(1 as decimal(4, 1)) - cast(1 as bigint) FROM t +-- !query 820 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 820 output +0 + + +-- !query 821 +SELECT cast(1 as decimal(5, 1)) - cast(1 as bigint) FROM t +-- !query 821 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 821 output +0 + + +-- !query 822 +SELECT cast(1 as decimal(6, 1)) - cast(1 as bigint) FROM t +-- !query 822 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 822 output +0 + + +-- !query 823 +SELECT cast(1 as decimal(10, 1)) - cast(1 as bigint) FROM t +-- !query 823 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 823 output +0 + + +-- !query 824 +SELECT cast(1 as decimal(11, 1)) - cast(1 as bigint) FROM t +-- !query 824 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 824 output +0 + + +-- !query 825 +SELECT cast(1 as decimal(20, 1)) - cast(1 as bigint) FROM t +-- !query 825 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 825 output +0 + + +-- !query 826 +SELECT cast(1 as decimal(21, 1)) - cast(1 as bigint) FROM t +-- !query 826 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 826 output +0 + + +-- !query 827 +SELECT cast(1 as decimal(38, 1)) - cast(1 as bigint) FROM t +-- !query 827 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 827 output +0 + + +-- !query 828 +SELECT cast(1 as decimal(39, 1)) - cast(1 as bigint) FROM t +-- !query 828 schema +struct<> +-- !query 828 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as bigint) FROM t + + +-- !query 829 +SELECT cast(1 as decimal(1, 0)) - cast(1 as float) FROM t +-- !query 829 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 829 output +0.0 + + +-- !query 830 +SELECT cast(1 as decimal(3, 0)) - cast(1 as float) FROM t +-- !query 830 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 830 output +0.0 + + +-- !query 831 +SELECT cast(1 as decimal(4, 0)) - cast(1 as float) FROM t +-- !query 831 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 831 output +0.0 + + +-- !query 832 +SELECT cast(1 as decimal(5, 0)) - cast(1 as float) FROM t +-- !query 832 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 832 output +0.0 + + +-- !query 833 +SELECT cast(1 as decimal(6, 0)) - cast(1 as float) FROM t +-- !query 833 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 833 output +0.0 + + +-- !query 834 +SELECT cast(1 as decimal(10, 0)) - cast(1 as float) FROM t +-- !query 834 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 834 output +0.0 + + +-- !query 835 +SELECT cast(1 as decimal(11, 0)) - cast(1 as float) FROM t +-- !query 835 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 835 output +0.0 + + +-- !query 836 +SELECT cast(1 as decimal(20, 0)) - cast(1 as float) FROM t +-- !query 836 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 836 output +0.0 + + +-- !query 837 +SELECT cast(1 as decimal(21, 0)) - cast(1 as float) FROM t +-- !query 837 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 837 output +0.0 + + +-- !query 838 +SELECT cast(1 as decimal(38, 0)) - cast(1 as float) FROM t +-- !query 838 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 838 output +0.0 + + +-- !query 839 +SELECT cast(1 as decimal(39, 0)) - cast(1 as float) FROM t +-- !query 839 schema +struct<> +-- !query 839 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as float) FROM t + + +-- !query 840 +SELECT cast(1 as decimal(1, 1)) - cast(1 as float) FROM t +-- !query 840 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 840 output +NULL + + +-- !query 841 +SELECT cast(1 as decimal(2, 1)) - cast(1 as float) FROM t +-- !query 841 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 841 output +0.0 + + +-- !query 842 +SELECT cast(1 as decimal(3, 1)) - cast(1 as float) FROM t +-- !query 842 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 842 output +0.0 + + +-- !query 843 +SELECT cast(1 as decimal(4, 1)) - cast(1 as float) FROM t +-- !query 843 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 843 output +0.0 + + +-- !query 844 +SELECT cast(1 as decimal(5, 1)) - cast(1 as float) FROM t +-- !query 844 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 844 output +0.0 + + +-- !query 845 +SELECT cast(1 as decimal(6, 1)) - cast(1 as float) FROM t +-- !query 845 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 845 output +0.0 + + +-- !query 846 +SELECT cast(1 as decimal(10, 1)) - cast(1 as float) FROM t +-- !query 846 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 846 output +0.0 + + +-- !query 847 +SELECT cast(1 as decimal(11, 1)) - cast(1 as float) FROM t +-- !query 847 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 847 output +0.0 + + +-- !query 848 +SELECT cast(1 as decimal(20, 1)) - cast(1 as float) FROM t +-- !query 848 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 848 output +0.0 + + +-- !query 849 +SELECT cast(1 as decimal(21, 1)) - cast(1 as float) FROM t +-- !query 849 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 849 output +0.0 + + +-- !query 850 +SELECT cast(1 as decimal(38, 1)) - cast(1 as float) FROM t +-- !query 850 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 850 output +0.0 + + +-- !query 851 +SELECT cast(1 as decimal(39, 1)) - cast(1 as float) FROM t +-- !query 851 schema +struct<> +-- !query 851 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as float) FROM t + + +-- !query 852 +SELECT cast(1 as decimal(1, 0)) - cast(1 as double) FROM t +-- !query 852 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 852 output +0.0 + + +-- !query 853 +SELECT cast(1 as decimal(3, 0)) - cast(1 as double) FROM t +-- !query 853 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 853 output +0.0 + + +-- !query 854 +SELECT cast(1 as decimal(4, 0)) - cast(1 as double) FROM t +-- !query 854 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 854 output +0.0 + + +-- !query 855 +SELECT cast(1 as decimal(5, 0)) - cast(1 as double) FROM t +-- !query 855 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 855 output +0.0 + + +-- !query 856 +SELECT cast(1 as decimal(6, 0)) - cast(1 as double) FROM t +-- !query 856 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 856 output +0.0 + + +-- !query 857 +SELECT cast(1 as decimal(10, 0)) - cast(1 as double) FROM t +-- !query 857 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 857 output +0.0 + + +-- !query 858 +SELECT cast(1 as decimal(11, 0)) - cast(1 as double) FROM t +-- !query 858 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 858 output +0.0 + + +-- !query 859 +SELECT cast(1 as decimal(20, 0)) - cast(1 as double) FROM t +-- !query 859 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 859 output +0.0 + + +-- !query 860 +SELECT cast(1 as decimal(21, 0)) - cast(1 as double) FROM t +-- !query 860 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 860 output +0.0 + + +-- !query 861 +SELECT cast(1 as decimal(38, 0)) - cast(1 as double) FROM t +-- !query 861 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 861 output +0.0 + + +-- !query 862 +SELECT cast(1 as decimal(39, 0)) - cast(1 as double) FROM t +-- !query 862 schema +struct<> +-- !query 862 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as double) FROM t + + +-- !query 863 +SELECT cast(1 as decimal(1, 1)) - cast(1 as double) FROM t +-- !query 863 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 863 output +NULL + + +-- !query 864 +SELECT cast(1 as decimal(2, 1)) - cast(1 as double) FROM t +-- !query 864 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 864 output +0.0 + + +-- !query 865 +SELECT cast(1 as decimal(3, 1)) - cast(1 as double) FROM t +-- !query 865 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 865 output +0.0 + + +-- !query 866 +SELECT cast(1 as decimal(4, 1)) - cast(1 as double) FROM t +-- !query 866 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 866 output +0.0 + + +-- !query 867 +SELECT cast(1 as decimal(5, 1)) - cast(1 as double) FROM t +-- !query 867 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 867 output +0.0 + + +-- !query 868 +SELECT cast(1 as decimal(6, 1)) - cast(1 as double) FROM t +-- !query 868 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 868 output +0.0 + + +-- !query 869 +SELECT cast(1 as decimal(10, 1)) - cast(1 as double) FROM t +-- !query 869 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 869 output +0.0 + + +-- !query 870 +SELECT cast(1 as decimal(11, 1)) - cast(1 as double) FROM t +-- !query 870 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 870 output +0.0 + + +-- !query 871 +SELECT cast(1 as decimal(20, 1)) - cast(1 as double) FROM t +-- !query 871 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 871 output +0.0 + + +-- !query 872 +SELECT cast(1 as decimal(21, 1)) - cast(1 as double) FROM t +-- !query 872 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 872 output +0.0 + + +-- !query 873 +SELECT cast(1 as decimal(38, 1)) - cast(1 as double) FROM t +-- !query 873 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +-- !query 873 output +0.0 + + +-- !query 874 +SELECT cast(1 as decimal(39, 1)) - cast(1 as double) FROM t +-- !query 874 schema +struct<> +-- !query 874 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as double) FROM t + + +-- !query 875 +SELECT cast(1 as decimal(1, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 875 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 875 output +0 + + +-- !query 876 +SELECT cast(1 as decimal(3, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 876 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 876 output +0 + + +-- !query 877 +SELECT cast(1 as decimal(4, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 877 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 877 output +0 + + +-- !query 878 +SELECT cast(1 as decimal(5, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 878 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 878 output +0 + + +-- !query 879 +SELECT cast(1 as decimal(6, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 879 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +-- !query 879 output +0 + + +-- !query 880 +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 880 schema +struct<(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +-- !query 880 output +0 + + +-- !query 881 +SELECT cast(1 as decimal(11, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 881 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +-- !query 881 output +0 + + +-- !query 882 +SELECT cast(1 as decimal(20, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 882 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +-- !query 882 output +0 + + +-- !query 883 +SELECT cast(1 as decimal(21, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 883 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +-- !query 883 output +0 + + +-- !query 884 +SELECT cast(1 as decimal(38, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 884 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 884 output +0 + + +-- !query 885 +SELECT cast(1 as decimal(39, 0)) - cast(1 as decimal(10, 0)) FROM t +-- !query 885 schema +struct<> +-- !query 885 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as decimal(10, 0)) FROM t + + +-- !query 886 +SELECT cast(1 as decimal(1, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 886 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 886 output +NULL + + +-- !query 887 +SELECT cast(1 as decimal(2, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 887 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 887 output +0 + + +-- !query 888 +SELECT cast(1 as decimal(3, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 888 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 888 output +0 + + +-- !query 889 +SELECT cast(1 as decimal(4, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 889 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 889 output +0 + + +-- !query 890 +SELECT cast(1 as decimal(5, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 890 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 890 output +0 + + +-- !query 891 +SELECT cast(1 as decimal(6, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 891 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 891 output +0 + + +-- !query 892 +SELECT cast(1 as decimal(10, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 892 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 892 output +0 + + +-- !query 893 +SELECT cast(1 as decimal(11, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 893 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +-- !query 893 output +0 + + +-- !query 894 +SELECT cast(1 as decimal(20, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 894 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 894 output +0 + + +-- !query 895 +SELECT cast(1 as decimal(21, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 895 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +-- !query 895 output +0 + + +-- !query 896 +SELECT cast(1 as decimal(38, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 896 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 896 output +0 + + +-- !query 897 +SELECT cast(1 as decimal(39, 1)) - cast(1 as decimal(10, 0)) FROM t +-- !query 897 schema +struct<> +-- !query 897 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as decimal(10, 0)) FROM t + + +-- !query 898 +SELECT cast(1 as decimal(1, 0)) - cast(1 as string) FROM t +-- !query 898 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 898 output +0.0 + + +-- !query 899 +SELECT cast(1 as decimal(3, 0)) - cast(1 as string) FROM t +-- !query 899 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 899 output +0.0 + + +-- !query 900 +SELECT cast(1 as decimal(4, 0)) - cast(1 as string) FROM t +-- !query 900 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 900 output +0.0 + + +-- !query 901 +SELECT cast(1 as decimal(5, 0)) - cast(1 as string) FROM t +-- !query 901 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 901 output +0.0 + + +-- !query 902 +SELECT cast(1 as decimal(6, 0)) - cast(1 as string) FROM t +-- !query 902 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 902 output +0.0 + + +-- !query 903 +SELECT cast(1 as decimal(10, 0)) - cast(1 as string) FROM t +-- !query 903 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 903 output +0.0 + + +-- !query 904 +SELECT cast(1 as decimal(11, 0)) - cast(1 as string) FROM t +-- !query 904 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 904 output +0.0 + + +-- !query 905 +SELECT cast(1 as decimal(20, 0)) - cast(1 as string) FROM t +-- !query 905 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 905 output +0.0 + + +-- !query 906 +SELECT cast(1 as decimal(21, 0)) - cast(1 as string) FROM t +-- !query 906 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 906 output +0.0 + + +-- !query 907 +SELECT cast(1 as decimal(38, 0)) - cast(1 as string) FROM t +-- !query 907 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 907 output +0.0 + + +-- !query 908 +SELECT cast(1 as decimal(39, 0)) - cast(1 as string) FROM t +-- !query 908 schema +struct<> +-- !query 908 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as string) FROM t + + +-- !query 909 +SELECT cast(1 as decimal(1, 1)) - cast(1 as string) FROM t +-- !query 909 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 909 output +NULL + + +-- !query 910 +SELECT cast(1 as decimal(2, 1)) - cast(1 as string) FROM t +-- !query 910 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 910 output +0.0 + + +-- !query 911 +SELECT cast(1 as decimal(3, 1)) - cast(1 as string) FROM t +-- !query 911 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 911 output +0.0 + + +-- !query 912 +SELECT cast(1 as decimal(4, 1)) - cast(1 as string) FROM t +-- !query 912 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 912 output +0.0 + + +-- !query 913 +SELECT cast(1 as decimal(5, 1)) - cast(1 as string) FROM t +-- !query 913 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 913 output +0.0 + + +-- !query 914 +SELECT cast(1 as decimal(6, 1)) - cast(1 as string) FROM t +-- !query 914 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 914 output +0.0 + + +-- !query 915 +SELECT cast(1 as decimal(10, 1)) - cast(1 as string) FROM t +-- !query 915 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 915 output +0.0 + + +-- !query 916 +SELECT cast(1 as decimal(11, 1)) - cast(1 as string) FROM t +-- !query 916 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 916 output +0.0 + + +-- !query 917 +SELECT cast(1 as decimal(20, 1)) - cast(1 as string) FROM t +-- !query 917 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 917 output +0.0 + + +-- !query 918 +SELECT cast(1 as decimal(21, 1)) - cast(1 as string) FROM t +-- !query 918 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 918 output +0.0 + + +-- !query 919 +SELECT cast(1 as decimal(38, 1)) - cast(1 as string) FROM t +-- !query 919 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 919 output +0.0 + + +-- !query 920 +SELECT cast(1 as decimal(39, 1)) - cast(1 as string) FROM t +-- !query 920 schema +struct<> +-- !query 920 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as string) FROM t + + +-- !query 921 +SELECT cast(1 as decimal(1, 0)) - cast('1' as binary) FROM t +-- !query 921 schema +struct<> +-- !query 921 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 922 +SELECT cast(1 as decimal(3, 0)) - cast('1' as binary) FROM t +-- !query 922 schema +struct<> +-- !query 922 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 923 +SELECT cast(1 as decimal(4, 0)) - cast('1' as binary) FROM t +-- !query 923 schema +struct<> +-- !query 923 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 924 +SELECT cast(1 as decimal(5, 0)) - cast('1' as binary) FROM t +-- !query 924 schema +struct<> +-- !query 924 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 925 +SELECT cast(1 as decimal(6, 0)) - cast('1' as binary) FROM t +-- !query 925 schema +struct<> +-- !query 925 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 926 +SELECT cast(1 as decimal(10, 0)) - cast('1' as binary) FROM t +-- !query 926 schema +struct<> +-- !query 926 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 927 +SELECT cast(1 as decimal(11, 0)) - cast('1' as binary) FROM t +-- !query 927 schema +struct<> +-- !query 927 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 928 +SELECT cast(1 as decimal(20, 0)) - cast('1' as binary) FROM t +-- !query 928 schema +struct<> +-- !query 928 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 929 +SELECT cast(1 as decimal(21, 0)) - cast('1' as binary) FROM t +-- !query 929 schema +struct<> +-- !query 929 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 930 +SELECT cast(1 as decimal(38, 0)) - cast('1' as binary) FROM t +-- !query 930 schema +struct<> +-- !query 930 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 931 +SELECT cast(1 as decimal(39, 0)) - cast('1' as binary) FROM t +-- !query 931 schema +struct<> +-- !query 931 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast('1' as binary) FROM t + + +-- !query 932 +SELECT cast(1 as decimal(1, 1)) - cast('1' as binary) FROM t +-- !query 932 schema +struct<> +-- !query 932 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 933 +SELECT cast(1 as decimal(2, 1)) - cast('1' as binary) FROM t +-- !query 933 schema +struct<> +-- !query 933 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 934 +SELECT cast(1 as decimal(3, 1)) - cast('1' as binary) FROM t +-- !query 934 schema +struct<> +-- !query 934 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 935 +SELECT cast(1 as decimal(4, 1)) - cast('1' as binary) FROM t +-- !query 935 schema +struct<> +-- !query 935 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 936 +SELECT cast(1 as decimal(5, 1)) - cast('1' as binary) FROM t +-- !query 936 schema +struct<> +-- !query 936 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 937 +SELECT cast(1 as decimal(6, 1)) - cast('1' as binary) FROM t +-- !query 937 schema +struct<> +-- !query 937 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 938 +SELECT cast(1 as decimal(10, 1)) - cast('1' as binary) FROM t +-- !query 938 schema +struct<> +-- !query 938 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 939 +SELECT cast(1 as decimal(11, 1)) - cast('1' as binary) FROM t +-- !query 939 schema +struct<> +-- !query 939 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 940 +SELECT cast(1 as decimal(20, 1)) - cast('1' as binary) FROM t +-- !query 940 schema +struct<> +-- !query 940 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 941 +SELECT cast(1 as decimal(21, 1)) - cast('1' as binary) FROM t +-- !query 941 schema +struct<> +-- !query 941 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 942 +SELECT cast(1 as decimal(38, 1)) - cast('1' as binary) FROM t +-- !query 942 schema +struct<> +-- !query 942 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 943 +SELECT cast(1 as decimal(39, 1)) - cast('1' as binary) FROM t +-- !query 943 schema +struct<> +-- !query 943 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast('1' as binary) FROM t + + +-- !query 944 +SELECT cast(1 as decimal(1, 0)) - cast(1 as boolean) FROM t +-- !query 944 schema +struct<> +-- !query 944 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 945 +SELECT cast(1 as decimal(3, 0)) - cast(1 as boolean) FROM t +-- !query 945 schema +struct<> +-- !query 945 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 946 +SELECT cast(1 as decimal(4, 0)) - cast(1 as boolean) FROM t +-- !query 946 schema +struct<> +-- !query 946 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 947 +SELECT cast(1 as decimal(5, 0)) - cast(1 as boolean) FROM t +-- !query 947 schema +struct<> +-- !query 947 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 948 +SELECT cast(1 as decimal(6, 0)) - cast(1 as boolean) FROM t +-- !query 948 schema +struct<> +-- !query 948 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 949 +SELECT cast(1 as decimal(10, 0)) - cast(1 as boolean) FROM t +-- !query 949 schema +struct<> +-- !query 949 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 950 +SELECT cast(1 as decimal(11, 0)) - cast(1 as boolean) FROM t +-- !query 950 schema +struct<> +-- !query 950 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 951 +SELECT cast(1 as decimal(20, 0)) - cast(1 as boolean) FROM t +-- !query 951 schema +struct<> +-- !query 951 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 952 +SELECT cast(1 as decimal(21, 0)) - cast(1 as boolean) FROM t +-- !query 952 schema +struct<> +-- !query 952 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 953 +SELECT cast(1 as decimal(38, 0)) - cast(1 as boolean) FROM t +-- !query 953 schema +struct<> +-- !query 953 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 954 +SELECT cast(1 as decimal(39, 0)) - cast(1 as boolean) FROM t +-- !query 954 schema +struct<> +-- !query 954 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast(1 as boolean) FROM t + + +-- !query 955 +SELECT cast(1 as decimal(1, 1)) - cast(1 as boolean) FROM t +-- !query 955 schema +struct<> +-- !query 955 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 956 +SELECT cast(1 as decimal(2, 1)) - cast(1 as boolean) FROM t +-- !query 956 schema +struct<> +-- !query 956 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 957 +SELECT cast(1 as decimal(3, 1)) - cast(1 as boolean) FROM t +-- !query 957 schema +struct<> +-- !query 957 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 958 +SELECT cast(1 as decimal(4, 1)) - cast(1 as boolean) FROM t +-- !query 958 schema +struct<> +-- !query 958 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 959 +SELECT cast(1 as decimal(5, 1)) - cast(1 as boolean) FROM t +-- !query 959 schema +struct<> +-- !query 959 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 960 +SELECT cast(1 as decimal(6, 1)) - cast(1 as boolean) FROM t +-- !query 960 schema +struct<> +-- !query 960 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 961 +SELECT cast(1 as decimal(10, 1)) - cast(1 as boolean) FROM t +-- !query 961 schema +struct<> +-- !query 961 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 962 +SELECT cast(1 as decimal(11, 1)) - cast(1 as boolean) FROM t +-- !query 962 schema +struct<> +-- !query 962 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 963 +SELECT cast(1 as decimal(20, 1)) - cast(1 as boolean) FROM t +-- !query 963 schema +struct<> +-- !query 963 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 964 +SELECT cast(1 as decimal(21, 1)) - cast(1 as boolean) FROM t +-- !query 964 schema +struct<> +-- !query 964 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 965 +SELECT cast(1 as decimal(38, 1)) - cast(1 as boolean) FROM t +-- !query 965 schema +struct<> +-- !query 965 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 966 +SELECT cast(1 as decimal(39, 1)) - cast(1 as boolean) FROM t +-- !query 966 schema +struct<> +-- !query 966 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast(1 as boolean) FROM t + + +-- !query 967 +SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 967 schema +struct<> +-- !query 967 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 968 +SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 968 schema +struct<> +-- !query 968 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 969 +SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 969 schema +struct<> +-- !query 969 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 970 +SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 970 schema +struct<> +-- !query 970 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 971 +SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 971 schema +struct<> +-- !query 971 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 972 +SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 972 schema +struct<> +-- !query 972 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 973 +SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 973 schema +struct<> +-- !query 973 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 974 +SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 974 schema +struct<> +-- !query 974 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 975 +SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 975 schema +struct<> +-- !query 975 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 976 +SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 976 schema +struct<> +-- !query 976 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 977 +SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 977 schema +struct<> +-- !query 977 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 978 +SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 978 schema +struct<> +-- !query 978 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 979 +SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 979 schema +struct<> +-- !query 979 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 980 +SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 980 schema +struct<> +-- !query 980 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 981 +SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 981 schema +struct<> +-- !query 981 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 982 +SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 982 schema +struct<> +-- !query 982 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 983 +SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 983 schema +struct<> +-- !query 983 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 984 +SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 984 schema +struct<> +-- !query 984 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 985 +SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 985 schema +struct<> +-- !query 985 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 986 +SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 986 schema +struct<> +-- !query 986 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 987 +SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 987 schema +struct<> +-- !query 987 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 988 +SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 988 schema +struct<> +-- !query 988 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 989 +SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 989 schema +struct<> +-- !query 989 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 990 +SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 990 schema +struct<> +-- !query 990 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 991 +SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 991 schema +struct<> +-- !query 991 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 992 +SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 992 schema +struct<> +-- !query 992 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 993 +SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 993 schema +struct<> +-- !query 993 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 994 +SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 994 schema +struct<> +-- !query 994 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 995 +SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 995 schema +struct<> +-- !query 995 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 996 +SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 996 schema +struct<> +-- !query 996 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 997 +SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 997 schema +struct<> +-- !query 997 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 998 +SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 998 schema +struct<> +-- !query 998 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 999 +SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 999 schema +struct<> +-- !query 999 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 1000 +SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1000 schema +struct<> +-- !query 1000 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 1001 +SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1001 schema +struct<> +-- !query 1001 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 1002 +SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1002 schema +struct<> +-- !query 1002 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 1003 +SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1003 schema +struct<> +-- !query 1003 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 1004 +SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1004 schema +struct<> +-- !query 1004 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 1005 +SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1005 schema +struct<> +-- !query 1005 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 1006 +SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1006 schema +struct<> +-- !query 1006 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 1007 +SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1007 schema +struct<> +-- !query 1007 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 1008 +SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1008 schema +struct<> +-- !query 1008 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 1009 +SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1009 schema +struct<> +-- !query 1009 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 1010 +SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1010 schema +struct<> +-- !query 1010 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 1011 +SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1011 schema +struct<> +-- !query 1011 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 1012 +SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +-- !query 1012 schema +struct<> +-- !query 1012 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 1013 +SELECT cast(1 as tinyint) * cast(1 as decimal(1, 0)) FROM t +-- !query 1013 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):decimal(5,0)> +-- !query 1013 output +1 + + +-- !query 1014 +SELECT cast(1 as tinyint) * cast(1 as decimal(3, 0)) FROM t +-- !query 1014 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) * CAST(1 AS DECIMAL(3,0))):decimal(7,0)> +-- !query 1014 output +1 + + +-- !query 1015 +SELECT cast(1 as tinyint) * cast(1 as decimal(4, 0)) FROM t +-- !query 1015 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):decimal(8,0)> +-- !query 1015 output +1 + + +-- !query 1016 +SELECT cast(1 as tinyint) * cast(1 as decimal(5, 0)) FROM t +-- !query 1016 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,0)> +-- !query 1016 output +1 + + +-- !query 1017 +SELECT cast(1 as tinyint) * cast(1 as decimal(6, 0)) FROM t +-- !query 1017 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(10,0)> +-- !query 1017 output +1 + + +-- !query 1018 +SELECT cast(1 as tinyint) * cast(1 as decimal(10, 0)) FROM t +-- !query 1018 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> +-- !query 1018 output +1 + + +-- !query 1019 +SELECT cast(1 as tinyint) * cast(1 as decimal(11, 0)) FROM t +-- !query 1019 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(15,0)> +-- !query 1019 output +1 + + +-- !query 1020 +SELECT cast(1 as tinyint) * cast(1 as decimal(20, 0)) FROM t +-- !query 1020 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,0)> +-- !query 1020 output +1 + + +-- !query 1021 +SELECT cast(1 as tinyint) * cast(1 as decimal(21, 0)) FROM t +-- !query 1021 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(25,0)> +-- !query 1021 output +1 + + +-- !query 1022 +SELECT cast(1 as tinyint) * cast(1 as decimal(38, 0)) FROM t +-- !query 1022 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1022 output +1 + + +-- !query 1023 +SELECT cast(1 as tinyint) * cast(1 as decimal(39, 0)) FROM t +-- !query 1023 schema +struct<> +-- !query 1023 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1024 +SELECT cast(1 as tinyint) * cast(1 as decimal(1, 1)) FROM t +-- !query 1024 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):decimal(5,1)> +-- !query 1024 output +NULL + + +-- !query 1025 +SELECT cast(1 as tinyint) * cast(1 as decimal(2, 1)) FROM t +-- !query 1025 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):decimal(6,1)> +-- !query 1025 output +1 + + +-- !query 1026 +SELECT cast(1 as tinyint) * cast(1 as decimal(3, 1)) FROM t +-- !query 1026 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):decimal(7,1)> +-- !query 1026 output +1 + + +-- !query 1027 +SELECT cast(1 as tinyint) * cast(1 as decimal(4, 1)) FROM t +-- !query 1027 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):decimal(8,1)> +-- !query 1027 output +1 + + +-- !query 1028 +SELECT cast(1 as tinyint) * cast(1 as decimal(5, 1)) FROM t +-- !query 1028 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):decimal(9,1)> +-- !query 1028 output +1 + + +-- !query 1029 +SELECT cast(1 as tinyint) * cast(1 as decimal(6, 1)) FROM t +-- !query 1029 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(10,1)> +-- !query 1029 output +1 + + +-- !query 1030 +SELECT cast(1 as tinyint) * cast(1 as decimal(10, 1)) FROM t +-- !query 1030 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(14,1)> +-- !query 1030 output +1 + + +-- !query 1031 +SELECT cast(1 as tinyint) * cast(1 as decimal(11, 1)) FROM t +-- !query 1031 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(15,1)> +-- !query 1031 output +1 + + +-- !query 1032 +SELECT cast(1 as tinyint) * cast(1 as decimal(20, 1)) FROM t +-- !query 1032 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(24,1)> +-- !query 1032 output +1 + + +-- !query 1033 +SELECT cast(1 as tinyint) * cast(1 as decimal(21, 1)) FROM t +-- !query 1033 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(25,1)> +-- !query 1033 output +1 + + +-- !query 1034 +SELECT cast(1 as tinyint) * cast(1 as decimal(38, 1)) FROM t +-- !query 1034 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1034 output +1 + + +-- !query 1035 +SELECT cast(1 as tinyint) * cast(1 as decimal(39, 1)) FROM t +-- !query 1035 schema +struct<> +-- !query 1035 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1036 +SELECT cast(1 as smallint) * cast(1 as decimal(1, 0)) FROM t +-- !query 1036 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):decimal(7,0)> +-- !query 1036 output +1 + + +-- !query 1037 +SELECT cast(1 as smallint) * cast(1 as decimal(3, 0)) FROM t +-- !query 1037 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(9,0)> +-- !query 1037 output +1 + + +-- !query 1038 +SELECT cast(1 as smallint) * cast(1 as decimal(4, 0)) FROM t +-- !query 1038 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(10,0)> +-- !query 1038 output +1 + + +-- !query 1039 +SELECT cast(1 as smallint) * cast(1 as decimal(5, 0)) FROM t +-- !query 1039 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) * CAST(1 AS DECIMAL(5,0))):decimal(11,0)> +-- !query 1039 output +1 + + +-- !query 1040 +SELECT cast(1 as smallint) * cast(1 as decimal(6, 0)) FROM t +-- !query 1040 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(12,0)> +-- !query 1040 output +1 + + +-- !query 1041 +SELECT cast(1 as smallint) * cast(1 as decimal(10, 0)) FROM t +-- !query 1041 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> +-- !query 1041 output +1 + + +-- !query 1042 +SELECT cast(1 as smallint) * cast(1 as decimal(11, 0)) FROM t +-- !query 1042 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(17,0)> +-- !query 1042 output +1 + + +-- !query 1043 +SELECT cast(1 as smallint) * cast(1 as decimal(20, 0)) FROM t +-- !query 1043 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,0)> +-- !query 1043 output +1 + + +-- !query 1044 +SELECT cast(1 as smallint) * cast(1 as decimal(21, 0)) FROM t +-- !query 1044 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(27,0)> +-- !query 1044 output +1 + + +-- !query 1045 +SELECT cast(1 as smallint) * cast(1 as decimal(38, 0)) FROM t +-- !query 1045 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1045 output +1 + + +-- !query 1046 +SELECT cast(1 as smallint) * cast(1 as decimal(39, 0)) FROM t +-- !query 1046 schema +struct<> +-- !query 1046 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1047 +SELECT cast(1 as smallint) * cast(1 as decimal(1, 1)) FROM t +-- !query 1047 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):decimal(7,1)> +-- !query 1047 output +NULL + + +-- !query 1048 +SELECT cast(1 as smallint) * cast(1 as decimal(2, 1)) FROM t +-- !query 1048 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):decimal(8,1)> +-- !query 1048 output +1 + + +-- !query 1049 +SELECT cast(1 as smallint) * cast(1 as decimal(3, 1)) FROM t +-- !query 1049 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):decimal(9,1)> +-- !query 1049 output +1 + + +-- !query 1050 +SELECT cast(1 as smallint) * cast(1 as decimal(4, 1)) FROM t +-- !query 1050 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):decimal(10,1)> +-- !query 1050 output +1 + + +-- !query 1051 +SELECT cast(1 as smallint) * cast(1 as decimal(5, 1)) FROM t +-- !query 1051 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(11,1)> +-- !query 1051 output +1 + + +-- !query 1052 +SELECT cast(1 as smallint) * cast(1 as decimal(6, 1)) FROM t +-- !query 1052 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(12,1)> +-- !query 1052 output +1 + + +-- !query 1053 +SELECT cast(1 as smallint) * cast(1 as decimal(10, 1)) FROM t +-- !query 1053 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(16,1)> +-- !query 1053 output +1 + + +-- !query 1054 +SELECT cast(1 as smallint) * cast(1 as decimal(11, 1)) FROM t +-- !query 1054 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(17,1)> +-- !query 1054 output +1 + + +-- !query 1055 +SELECT cast(1 as smallint) * cast(1 as decimal(20, 1)) FROM t +-- !query 1055 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(26,1)> +-- !query 1055 output +1 + + +-- !query 1056 +SELECT cast(1 as smallint) * cast(1 as decimal(21, 1)) FROM t +-- !query 1056 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(27,1)> +-- !query 1056 output +1 + + +-- !query 1057 +SELECT cast(1 as smallint) * cast(1 as decimal(38, 1)) FROM t +-- !query 1057 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1057 output +1 + + +-- !query 1058 +SELECT cast(1 as smallint) * cast(1 as decimal(39, 1)) FROM t +-- !query 1058 schema +struct<> +-- !query 1058 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1059 +SELECT cast(1 as int) * cast(1 as decimal(1, 0)) FROM t +-- !query 1059 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(12,0)> +-- !query 1059 output +1 + + +-- !query 1060 +SELECT cast(1 as int) * cast(1 as decimal(3, 0)) FROM t +-- !query 1060 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> +-- !query 1060 output +1 + + +-- !query 1061 +SELECT cast(1 as int) * cast(1 as decimal(4, 0)) FROM t +-- !query 1061 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(15,0)> +-- !query 1061 output +1 + + +-- !query 1062 +SELECT cast(1 as int) * cast(1 as decimal(5, 0)) FROM t +-- !query 1062 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> +-- !query 1062 output +1 + + +-- !query 1063 +SELECT cast(1 as int) * cast(1 as decimal(6, 0)) FROM t +-- !query 1063 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,0)> +-- !query 1063 output +1 + + +-- !query 1064 +SELECT cast(1 as int) * cast(1 as decimal(10, 0)) FROM t +-- !query 1064 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> +-- !query 1064 output +1 + + +-- !query 1065 +SELECT cast(1 as int) * cast(1 as decimal(11, 0)) FROM t +-- !query 1065 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,0)> +-- !query 1065 output +1 + + +-- !query 1066 +SELECT cast(1 as int) * cast(1 as decimal(20, 0)) FROM t +-- !query 1066 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> +-- !query 1066 output +1 + + +-- !query 1067 +SELECT cast(1 as int) * cast(1 as decimal(21, 0)) FROM t +-- !query 1067 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,0)> +-- !query 1067 output +1 + + +-- !query 1068 +SELECT cast(1 as int) * cast(1 as decimal(38, 0)) FROM t +-- !query 1068 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1068 output +1 + + +-- !query 1069 +SELECT cast(1 as int) * cast(1 as decimal(39, 0)) FROM t +-- !query 1069 schema +struct<> +-- !query 1069 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1070 +SELECT cast(1 as int) * cast(1 as decimal(1, 1)) FROM t +-- !query 1070 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(12,1)> +-- !query 1070 output +NULL + + +-- !query 1071 +SELECT cast(1 as int) * cast(1 as decimal(2, 1)) FROM t +-- !query 1071 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(13,1)> +-- !query 1071 output +1 + + +-- !query 1072 +SELECT cast(1 as int) * cast(1 as decimal(3, 1)) FROM t +-- !query 1072 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(14,1)> +-- !query 1072 output +1 + + +-- !query 1073 +SELECT cast(1 as int) * cast(1 as decimal(4, 1)) FROM t +-- !query 1073 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(15,1)> +-- !query 1073 output +1 + + +-- !query 1074 +SELECT cast(1 as int) * cast(1 as decimal(5, 1)) FROM t +-- !query 1074 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(16,1)> +-- !query 1074 output +1 + + +-- !query 1075 +SELECT cast(1 as int) * cast(1 as decimal(6, 1)) FROM t +-- !query 1075 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(17,1)> +-- !query 1075 output +1 + + +-- !query 1076 +SELECT cast(1 as int) * cast(1 as decimal(10, 1)) FROM t +-- !query 1076 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(21,1)> +-- !query 1076 output +1 + + +-- !query 1077 +SELECT cast(1 as int) * cast(1 as decimal(11, 1)) FROM t +-- !query 1077 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(22,1)> +-- !query 1077 output +1 + + +-- !query 1078 +SELECT cast(1 as int) * cast(1 as decimal(20, 1)) FROM t +-- !query 1078 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(31,1)> +-- !query 1078 output +1 + + +-- !query 1079 +SELECT cast(1 as int) * cast(1 as decimal(21, 1)) FROM t +-- !query 1079 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(32,1)> +-- !query 1079 output +1 + + +-- !query 1080 +SELECT cast(1 as int) * cast(1 as decimal(38, 1)) FROM t +-- !query 1080 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1080 output +1 + + +-- !query 1081 +SELECT cast(1 as int) * cast(1 as decimal(39, 1)) FROM t +-- !query 1081 schema +struct<> +-- !query 1081 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1082 +SELECT cast(1 as bigint) * cast(1 as decimal(1, 0)) FROM t +-- !query 1082 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):decimal(22,0)> +-- !query 1082 output +1 + + +-- !query 1083 +SELECT cast(1 as bigint) * cast(1 as decimal(3, 0)) FROM t +-- !query 1083 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(24,0)> +-- !query 1083 output +1 + + +-- !query 1084 +SELECT cast(1 as bigint) * cast(1 as decimal(4, 0)) FROM t +-- !query 1084 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):decimal(25,0)> +-- !query 1084 output +1 + + +-- !query 1085 +SELECT cast(1 as bigint) * cast(1 as decimal(5, 0)) FROM t +-- !query 1085 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,0)> +-- !query 1085 output +1 + + +-- !query 1086 +SELECT cast(1 as bigint) * cast(1 as decimal(6, 0)) FROM t +-- !query 1086 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):decimal(27,0)> +-- !query 1086 output +1 + + +-- !query 1087 +SELECT cast(1 as bigint) * cast(1 as decimal(10, 0)) FROM t +-- !query 1087 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> +-- !query 1087 output +1 + + +-- !query 1088 +SELECT cast(1 as bigint) * cast(1 as decimal(11, 0)) FROM t +-- !query 1088 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):decimal(32,0)> +-- !query 1088 output +1 + + +-- !query 1089 +SELECT cast(1 as bigint) * cast(1 as decimal(20, 0)) FROM t +-- !query 1089 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) * CAST(1 AS DECIMAL(20,0))):decimal(38,0)> +-- !query 1089 output +1 + + +-- !query 1090 +SELECT cast(1 as bigint) * cast(1 as decimal(21, 0)) FROM t +-- !query 1090 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(38,0)> +-- !query 1090 output +1 + + +-- !query 1091 +SELECT cast(1 as bigint) * cast(1 as decimal(38, 0)) FROM t +-- !query 1091 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1091 output +1 + + +-- !query 1092 +SELECT cast(1 as bigint) * cast(1 as decimal(39, 0)) FROM t +-- !query 1092 schema +struct<> +-- !query 1092 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1093 +SELECT cast(1 as bigint) * cast(1 as decimal(1, 1)) FROM t +-- !query 1093 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):decimal(22,1)> +-- !query 1093 output +NULL + + +-- !query 1094 +SELECT cast(1 as bigint) * cast(1 as decimal(2, 1)) FROM t +-- !query 1094 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):decimal(23,1)> +-- !query 1094 output +1 + + +-- !query 1095 +SELECT cast(1 as bigint) * cast(1 as decimal(3, 1)) FROM t +-- !query 1095 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):decimal(24,1)> +-- !query 1095 output +1 + + +-- !query 1096 +SELECT cast(1 as bigint) * cast(1 as decimal(4, 1)) FROM t +-- !query 1096 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):decimal(25,1)> +-- !query 1096 output +1 + + +-- !query 1097 +SELECT cast(1 as bigint) * cast(1 as decimal(5, 1)) FROM t +-- !query 1097 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):decimal(26,1)> +-- !query 1097 output +1 + + +-- !query 1098 +SELECT cast(1 as bigint) * cast(1 as decimal(6, 1)) FROM t +-- !query 1098 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):decimal(27,1)> +-- !query 1098 output +1 + + +-- !query 1099 +SELECT cast(1 as bigint) * cast(1 as decimal(10, 1)) FROM t +-- !query 1099 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):decimal(31,1)> +-- !query 1099 output +1 + + +-- !query 1100 +SELECT cast(1 as bigint) * cast(1 as decimal(11, 1)) FROM t +-- !query 1100 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):decimal(32,1)> +-- !query 1100 output +1 + + +-- !query 1101 +SELECT cast(1 as bigint) * cast(1 as decimal(20, 1)) FROM t +-- !query 1101 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(38,1)> +-- !query 1101 output +1 + + +-- !query 1102 +SELECT cast(1 as bigint) * cast(1 as decimal(21, 1)) FROM t +-- !query 1102 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(38,1)> +-- !query 1102 output +1 + + +-- !query 1103 +SELECT cast(1 as bigint) * cast(1 as decimal(38, 1)) FROM t +-- !query 1103 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1103 output +1 + + +-- !query 1104 +SELECT cast(1 as bigint) * cast(1 as decimal(39, 1)) FROM t +-- !query 1104 schema +struct<> +-- !query 1104 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1105 +SELECT cast(1 as float) * cast(1 as decimal(1, 0)) FROM t +-- !query 1105 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 1105 output +1.0 + + +-- !query 1106 +SELECT cast(1 as float) * cast(1 as decimal(3, 0)) FROM t +-- !query 1106 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 1106 output +1.0 + + +-- !query 1107 +SELECT cast(1 as float) * cast(1 as decimal(4, 0)) FROM t +-- !query 1107 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 1107 output +1.0 + + +-- !query 1108 +SELECT cast(1 as float) * cast(1 as decimal(5, 0)) FROM t +-- !query 1108 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 1108 output +1.0 + + +-- !query 1109 +SELECT cast(1 as float) * cast(1 as decimal(6, 0)) FROM t +-- !query 1109 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 1109 output +1.0 + + +-- !query 1110 +SELECT cast(1 as float) * cast(1 as decimal(10, 0)) FROM t +-- !query 1110 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 1110 output +1.0 + + +-- !query 1111 +SELECT cast(1 as float) * cast(1 as decimal(11, 0)) FROM t +-- !query 1111 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 1111 output +1.0 + + +-- !query 1112 +SELECT cast(1 as float) * cast(1 as decimal(20, 0)) FROM t +-- !query 1112 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 1112 output +1.0 + + +-- !query 1113 +SELECT cast(1 as float) * cast(1 as decimal(21, 0)) FROM t +-- !query 1113 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 1113 output +1.0 + + +-- !query 1114 +SELECT cast(1 as float) * cast(1 as decimal(38, 0)) FROM t +-- !query 1114 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 1114 output +1.0 + + +-- !query 1115 +SELECT cast(1 as float) * cast(1 as decimal(39, 0)) FROM t +-- !query 1115 schema +struct<> +-- !query 1115 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1116 +SELECT cast(1 as float) * cast(1 as decimal(1, 1)) FROM t +-- !query 1116 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 1116 output +NULL + + +-- !query 1117 +SELECT cast(1 as float) * cast(1 as decimal(2, 1)) FROM t +-- !query 1117 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 1117 output +1.0 + + +-- !query 1118 +SELECT cast(1 as float) * cast(1 as decimal(3, 1)) FROM t +-- !query 1118 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 1118 output +1.0 + + +-- !query 1119 +SELECT cast(1 as float) * cast(1 as decimal(4, 1)) FROM t +-- !query 1119 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 1119 output +1.0 + + +-- !query 1120 +SELECT cast(1 as float) * cast(1 as decimal(5, 1)) FROM t +-- !query 1120 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 1120 output +1.0 + + +-- !query 1121 +SELECT cast(1 as float) * cast(1 as decimal(6, 1)) FROM t +-- !query 1121 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 1121 output +1.0 + + +-- !query 1122 +SELECT cast(1 as float) * cast(1 as decimal(10, 1)) FROM t +-- !query 1122 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 1122 output +1.0 + + +-- !query 1123 +SELECT cast(1 as float) * cast(1 as decimal(11, 1)) FROM t +-- !query 1123 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 1123 output +1.0 + + +-- !query 1124 +SELECT cast(1 as float) * cast(1 as decimal(20, 1)) FROM t +-- !query 1124 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 1124 output +1.0 + + +-- !query 1125 +SELECT cast(1 as float) * cast(1 as decimal(21, 1)) FROM t +-- !query 1125 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 1125 output +1.0 + + +-- !query 1126 +SELECT cast(1 as float) * cast(1 as decimal(38, 1)) FROM t +-- !query 1126 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 1126 output +1.0 + + +-- !query 1127 +SELECT cast(1 as float) * cast(1 as decimal(39, 1)) FROM t +-- !query 1127 schema +struct<> +-- !query 1127 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1128 +SELECT cast(1 as double) * cast(1 as decimal(1, 0)) FROM t +-- !query 1128 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 1128 output +1.0 + + +-- !query 1129 +SELECT cast(1 as double) * cast(1 as decimal(3, 0)) FROM t +-- !query 1129 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 1129 output +1.0 + + +-- !query 1130 +SELECT cast(1 as double) * cast(1 as decimal(4, 0)) FROM t +-- !query 1130 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 1130 output +1.0 + + +-- !query 1131 +SELECT cast(1 as double) * cast(1 as decimal(5, 0)) FROM t +-- !query 1131 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 1131 output +1.0 + + +-- !query 1132 +SELECT cast(1 as double) * cast(1 as decimal(6, 0)) FROM t +-- !query 1132 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 1132 output +1.0 + + +-- !query 1133 +SELECT cast(1 as double) * cast(1 as decimal(10, 0)) FROM t +-- !query 1133 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 1133 output +1.0 + + +-- !query 1134 +SELECT cast(1 as double) * cast(1 as decimal(11, 0)) FROM t +-- !query 1134 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 1134 output +1.0 + + +-- !query 1135 +SELECT cast(1 as double) * cast(1 as decimal(20, 0)) FROM t +-- !query 1135 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 1135 output +1.0 + + +-- !query 1136 +SELECT cast(1 as double) * cast(1 as decimal(21, 0)) FROM t +-- !query 1136 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 1136 output +1.0 + + +-- !query 1137 +SELECT cast(1 as double) * cast(1 as decimal(38, 0)) FROM t +-- !query 1137 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 1137 output +1.0 + + +-- !query 1138 +SELECT cast(1 as double) * cast(1 as decimal(39, 0)) FROM t +-- !query 1138 schema +struct<> +-- !query 1138 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1139 +SELECT cast(1 as double) * cast(1 as decimal(1, 1)) FROM t +-- !query 1139 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 1139 output +NULL + + +-- !query 1140 +SELECT cast(1 as double) * cast(1 as decimal(2, 1)) FROM t +-- !query 1140 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 1140 output +1.0 + + +-- !query 1141 +SELECT cast(1 as double) * cast(1 as decimal(3, 1)) FROM t +-- !query 1141 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 1141 output +1.0 + + +-- !query 1142 +SELECT cast(1 as double) * cast(1 as decimal(4, 1)) FROM t +-- !query 1142 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 1142 output +1.0 + + +-- !query 1143 +SELECT cast(1 as double) * cast(1 as decimal(5, 1)) FROM t +-- !query 1143 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 1143 output +1.0 + + +-- !query 1144 +SELECT cast(1 as double) * cast(1 as decimal(6, 1)) FROM t +-- !query 1144 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 1144 output +1.0 + + +-- !query 1145 +SELECT cast(1 as double) * cast(1 as decimal(10, 1)) FROM t +-- !query 1145 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 1145 output +1.0 + + +-- !query 1146 +SELECT cast(1 as double) * cast(1 as decimal(11, 1)) FROM t +-- !query 1146 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 1146 output +1.0 + + +-- !query 1147 +SELECT cast(1 as double) * cast(1 as decimal(20, 1)) FROM t +-- !query 1147 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 1147 output +1.0 + + +-- !query 1148 +SELECT cast(1 as double) * cast(1 as decimal(21, 1)) FROM t +-- !query 1148 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 1148 output +1.0 + + +-- !query 1149 +SELECT cast(1 as double) * cast(1 as decimal(38, 1)) FROM t +-- !query 1149 schema +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 1149 output +1.0 + + +-- !query 1150 +SELECT cast(1 as double) * cast(1 as decimal(39, 1)) FROM t +-- !query 1150 schema +struct<> +-- !query 1150 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1151 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 0)) FROM t +-- !query 1151 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(12,0)> +-- !query 1151 output +1 + + +-- !query 1152 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 0)) FROM t +-- !query 1152 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> +-- !query 1152 output +1 + + +-- !query 1153 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 0)) FROM t +-- !query 1153 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(15,0)> +-- !query 1153 output +1 + + +-- !query 1154 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 0)) FROM t +-- !query 1154 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> +-- !query 1154 output +1 + + +-- !query 1155 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 0)) FROM t +-- !query 1155 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,0)> +-- !query 1155 output +1 + + +-- !query 1156 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1156 schema +struct<(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> +-- !query 1156 output +1 + + +-- !query 1157 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 0)) FROM t +-- !query 1157 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,0)> +-- !query 1157 output +1 + + +-- !query 1158 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 0)) FROM t +-- !query 1158 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> +-- !query 1158 output +1 + + +-- !query 1159 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 0)) FROM t +-- !query 1159 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,0)> +-- !query 1159 output +1 + + +-- !query 1160 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 0)) FROM t +-- !query 1160 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1160 output +1 + + +-- !query 1161 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 0)) FROM t +-- !query 1161 schema +struct<> +-- !query 1161 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1162 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 1)) FROM t +-- !query 1162 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(12,1)> +-- !query 1162 output +NULL + + +-- !query 1163 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(2, 1)) FROM t +-- !query 1163 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(13,1)> +-- !query 1163 output +1 + + +-- !query 1164 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 1)) FROM t +-- !query 1164 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(14,1)> +-- !query 1164 output +1 + + +-- !query 1165 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 1)) FROM t +-- !query 1165 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(15,1)> +-- !query 1165 output +1 + + +-- !query 1166 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 1)) FROM t +-- !query 1166 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(16,1)> +-- !query 1166 output +1 + + +-- !query 1167 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 1)) FROM t +-- !query 1167 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(17,1)> +-- !query 1167 output +1 + + +-- !query 1168 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 1)) FROM t +-- !query 1168 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(21,1)> +-- !query 1168 output +1 + + +-- !query 1169 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 1)) FROM t +-- !query 1169 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(22,1)> +-- !query 1169 output +1 + + +-- !query 1170 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 1)) FROM t +-- !query 1170 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(31,1)> +-- !query 1170 output +1 + + +-- !query 1171 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 1)) FROM t +-- !query 1171 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(32,1)> +-- !query 1171 output +1 + + +-- !query 1172 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 1)) FROM t +-- !query 1172 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1172 output +1 + + +-- !query 1173 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 1)) FROM t +-- !query 1173 schema +struct<> +-- !query 1173 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1174 +SELECT cast('1' as binary) * cast(1 as decimal(1, 0)) FROM t +-- !query 1174 schema +struct<> +-- !query 1174 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 1175 +SELECT cast('1' as binary) * cast(1 as decimal(3, 0)) FROM t +-- !query 1175 schema +struct<> +-- !query 1175 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 1176 +SELECT cast('1' as binary) * cast(1 as decimal(4, 0)) FROM t +-- !query 1176 schema +struct<> +-- !query 1176 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 1177 +SELECT cast('1' as binary) * cast(1 as decimal(5, 0)) FROM t +-- !query 1177 schema +struct<> +-- !query 1177 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 1178 +SELECT cast('1' as binary) * cast(1 as decimal(6, 0)) FROM t +-- !query 1178 schema +struct<> +-- !query 1178 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 1179 +SELECT cast('1' as binary) * cast(1 as decimal(10, 0)) FROM t +-- !query 1179 schema +struct<> +-- !query 1179 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 1180 +SELECT cast('1' as binary) * cast(1 as decimal(11, 0)) FROM t +-- !query 1180 schema +struct<> +-- !query 1180 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 1181 +SELECT cast('1' as binary) * cast(1 as decimal(20, 0)) FROM t +-- !query 1181 schema +struct<> +-- !query 1181 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 1182 +SELECT cast('1' as binary) * cast(1 as decimal(21, 0)) FROM t +-- !query 1182 schema +struct<> +-- !query 1182 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 1183 +SELECT cast('1' as binary) * cast(1 as decimal(38, 0)) FROM t +-- !query 1183 schema +struct<> +-- !query 1183 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 1184 +SELECT cast('1' as binary) * cast(1 as decimal(39, 0)) FROM t +-- !query 1184 schema +struct<> +-- !query 1184 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1185 +SELECT cast('1' as binary) * cast(1 as decimal(1, 1)) FROM t +-- !query 1185 schema +struct<> +-- !query 1185 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 1186 +SELECT cast('1' as binary) * cast(1 as decimal(2, 1)) FROM t +-- !query 1186 schema +struct<> +-- !query 1186 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 1187 +SELECT cast('1' as binary) * cast(1 as decimal(3, 1)) FROM t +-- !query 1187 schema +struct<> +-- !query 1187 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 1188 +SELECT cast('1' as binary) * cast(1 as decimal(4, 1)) FROM t +-- !query 1188 schema +struct<> +-- !query 1188 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 1189 +SELECT cast('1' as binary) * cast(1 as decimal(5, 1)) FROM t +-- !query 1189 schema +struct<> +-- !query 1189 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 1190 +SELECT cast('1' as binary) * cast(1 as decimal(6, 1)) FROM t +-- !query 1190 schema +struct<> +-- !query 1190 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 1191 +SELECT cast('1' as binary) * cast(1 as decimal(10, 1)) FROM t +-- !query 1191 schema +struct<> +-- !query 1191 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 1192 +SELECT cast('1' as binary) * cast(1 as decimal(11, 1)) FROM t +-- !query 1192 schema +struct<> +-- !query 1192 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 1193 +SELECT cast('1' as binary) * cast(1 as decimal(20, 1)) FROM t +-- !query 1193 schema +struct<> +-- !query 1193 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 1194 +SELECT cast('1' as binary) * cast(1 as decimal(21, 1)) FROM t +-- !query 1194 schema +struct<> +-- !query 1194 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 1195 +SELECT cast('1' as binary) * cast(1 as decimal(38, 1)) FROM t +-- !query 1195 schema +struct<> +-- !query 1195 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 1196 +SELECT cast('1' as binary) * cast(1 as decimal(39, 1)) FROM t +-- !query 1196 schema +struct<> +-- !query 1196 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1197 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 0)) FROM t +-- !query 1197 schema +struct<> +-- !query 1197 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 1198 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 0)) FROM t +-- !query 1198 schema +struct<> +-- !query 1198 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 1199 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 0)) FROM t +-- !query 1199 schema +struct<> +-- !query 1199 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 1200 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 0)) FROM t +-- !query 1200 schema +struct<> +-- !query 1200 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 1201 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 0)) FROM t +-- !query 1201 schema +struct<> +-- !query 1201 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 1202 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 0)) FROM t +-- !query 1202 schema +struct<> +-- !query 1202 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 1203 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 0)) FROM t +-- !query 1203 schema +struct<> +-- !query 1203 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 1204 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 0)) FROM t +-- !query 1204 schema +struct<> +-- !query 1204 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 1205 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 0)) FROM t +-- !query 1205 schema +struct<> +-- !query 1205 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 1206 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 0)) FROM t +-- !query 1206 schema +struct<> +-- !query 1206 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 1207 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 0)) FROM t +-- !query 1207 schema +struct<> +-- !query 1207 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1208 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 1)) FROM t +-- !query 1208 schema +struct<> +-- !query 1208 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 1209 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(2, 1)) FROM t +-- !query 1209 schema +struct<> +-- !query 1209 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 1210 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 1)) FROM t +-- !query 1210 schema +struct<> +-- !query 1210 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 1211 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 1)) FROM t +-- !query 1211 schema +struct<> +-- !query 1211 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 1212 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 1)) FROM t +-- !query 1212 schema +struct<> +-- !query 1212 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 1213 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 1)) FROM t +-- !query 1213 schema +struct<> +-- !query 1213 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 1214 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 1)) FROM t +-- !query 1214 schema +struct<> +-- !query 1214 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 1215 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 1)) FROM t +-- !query 1215 schema +struct<> +-- !query 1215 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 1216 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 1)) FROM t +-- !query 1216 schema +struct<> +-- !query 1216 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 1217 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 1)) FROM t +-- !query 1217 schema +struct<> +-- !query 1217 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 1218 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 1)) FROM t +-- !query 1218 schema +struct<> +-- !query 1218 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 1219 +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 1)) FROM t +-- !query 1219 schema +struct<> +-- !query 1219 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1220 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 0)) FROM t +-- !query 1220 schema +struct<> +-- !query 1220 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 1221 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 0)) FROM t +-- !query 1221 schema +struct<> +-- !query 1221 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 1222 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 0)) FROM t +-- !query 1222 schema +struct<> +-- !query 1222 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 1223 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 0)) FROM t +-- !query 1223 schema +struct<> +-- !query 1223 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 1224 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 0)) FROM t +-- !query 1224 schema +struct<> +-- !query 1224 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 1225 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 0)) FROM t +-- !query 1225 schema +struct<> +-- !query 1225 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 1226 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 0)) FROM t +-- !query 1226 schema +struct<> +-- !query 1226 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 1227 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 0)) FROM t +-- !query 1227 schema +struct<> +-- !query 1227 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 1228 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 0)) FROM t +-- !query 1228 schema +struct<> +-- !query 1228 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 1229 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 0)) FROM t +-- !query 1229 schema +struct<> +-- !query 1229 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 1230 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 0)) FROM t +-- !query 1230 schema +struct<> +-- !query 1230 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 0)) FROM t + + +-- !query 1231 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 1)) FROM t +-- !query 1231 schema +struct<> +-- !query 1231 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 1232 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(2, 1)) FROM t +-- !query 1232 schema +struct<> +-- !query 1232 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 1233 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 1)) FROM t +-- !query 1233 schema +struct<> +-- !query 1233 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 1234 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 1)) FROM t +-- !query 1234 schema +struct<> +-- !query 1234 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 1235 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 1)) FROM t +-- !query 1235 schema +struct<> +-- !query 1235 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 1236 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 1)) FROM t +-- !query 1236 schema +struct<> +-- !query 1236 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 1237 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 1)) FROM t +-- !query 1237 schema +struct<> +-- !query 1237 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 1238 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 1)) FROM t +-- !query 1238 schema +struct<> +-- !query 1238 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 1239 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 1)) FROM t +-- !query 1239 schema +struct<> +-- !query 1239 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 1240 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 1)) FROM t +-- !query 1240 schema +struct<> +-- !query 1240 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 1241 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 1)) FROM t +-- !query 1241 schema +struct<> +-- !query 1241 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 1242 +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 1)) FROM t +-- !query 1242 schema +struct<> +-- !query 1242 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 1)) FROM t + + +-- !query 1243 +SELECT cast(1 as decimal(1, 0)) * cast(1 as tinyint) FROM t +-- !query 1243 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):decimal(5,0)> +-- !query 1243 output +1 + + +-- !query 1244 +SELECT cast(1 as decimal(3, 0)) * cast(1 as tinyint) FROM t +-- !query 1244 schema +struct<(CAST(1 AS DECIMAL(3,0)) * CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(7,0)> +-- !query 1244 output +1 + + +-- !query 1245 +SELECT cast(1 as decimal(4, 0)) * cast(1 as tinyint) FROM t +-- !query 1245 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(8,0)> +-- !query 1245 output +1 + + +-- !query 1246 +SELECT cast(1 as decimal(5, 0)) * cast(1 as tinyint) FROM t +-- !query 1246 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(9,0)> +-- !query 1246 output +1 + + +-- !query 1247 +SELECT cast(1 as decimal(6, 0)) * cast(1 as tinyint) FROM t +-- !query 1247 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(10,0)> +-- !query 1247 output +1 + + +-- !query 1248 +SELECT cast(1 as decimal(10, 0)) * cast(1 as tinyint) FROM t +-- !query 1248 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> +-- !query 1248 output +1 + + +-- !query 1249 +SELECT cast(1 as decimal(11, 0)) * cast(1 as tinyint) FROM t +-- !query 1249 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(15,0)> +-- !query 1249 output +1 + + +-- !query 1250 +SELECT cast(1 as decimal(20, 0)) * cast(1 as tinyint) FROM t +-- !query 1250 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(24,0)> +-- !query 1250 output +1 + + +-- !query 1251 +SELECT cast(1 as decimal(21, 0)) * cast(1 as tinyint) FROM t +-- !query 1251 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(25,0)> +-- !query 1251 output +1 + + +-- !query 1252 +SELECT cast(1 as decimal(38, 0)) * cast(1 as tinyint) FROM t +-- !query 1252 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1252 output +1 + + +-- !query 1253 +SELECT cast(1 as decimal(39, 0)) * cast(1 as tinyint) FROM t +-- !query 1253 schema +struct<> +-- !query 1253 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as tinyint) FROM t + + +-- !query 1254 +SELECT cast(1 as decimal(1, 1)) * cast(1 as tinyint) FROM t +-- !query 1254 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(5,1)> +-- !query 1254 output +NULL + + +-- !query 1255 +SELECT cast(1 as decimal(2, 1)) * cast(1 as tinyint) FROM t +-- !query 1255 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(6,1)> +-- !query 1255 output +1 + + +-- !query 1256 +SELECT cast(1 as decimal(3, 1)) * cast(1 as tinyint) FROM t +-- !query 1256 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(7,1)> +-- !query 1256 output +1 + + +-- !query 1257 +SELECT cast(1 as decimal(4, 1)) * cast(1 as tinyint) FROM t +-- !query 1257 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(8,1)> +-- !query 1257 output +1 + + +-- !query 1258 +SELECT cast(1 as decimal(5, 1)) * cast(1 as tinyint) FROM t +-- !query 1258 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(9,1)> +-- !query 1258 output +1 + + +-- !query 1259 +SELECT cast(1 as decimal(6, 1)) * cast(1 as tinyint) FROM t +-- !query 1259 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(10,1)> +-- !query 1259 output +1 + + +-- !query 1260 +SELECT cast(1 as decimal(10, 1)) * cast(1 as tinyint) FROM t +-- !query 1260 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):decimal(14,1)> +-- !query 1260 output +1 + + +-- !query 1261 +SELECT cast(1 as decimal(11, 1)) * cast(1 as tinyint) FROM t +-- !query 1261 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(15,1)> +-- !query 1261 output +1 + + +-- !query 1262 +SELECT cast(1 as decimal(20, 1)) * cast(1 as tinyint) FROM t +-- !query 1262 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):decimal(24,1)> +-- !query 1262 output +1 + + +-- !query 1263 +SELECT cast(1 as decimal(21, 1)) * cast(1 as tinyint) FROM t +-- !query 1263 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(25,1)> +-- !query 1263 output +1 + + +-- !query 1264 +SELECT cast(1 as decimal(38, 1)) * cast(1 as tinyint) FROM t +-- !query 1264 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1264 output +1 + + +-- !query 1265 +SELECT cast(1 as decimal(39, 1)) * cast(1 as tinyint) FROM t +-- !query 1265 schema +struct<> +-- !query 1265 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as tinyint) FROM t + + +-- !query 1266 +SELECT cast(1 as decimal(1, 0)) * cast(1 as smallint) FROM t +-- !query 1266 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(7,0)> +-- !query 1266 output +1 + + +-- !query 1267 +SELECT cast(1 as decimal(3, 0)) * cast(1 as smallint) FROM t +-- !query 1267 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,0)> +-- !query 1267 output +1 + + +-- !query 1268 +SELECT cast(1 as decimal(4, 0)) * cast(1 as smallint) FROM t +-- !query 1268 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(10,0)> +-- !query 1268 output +1 + + +-- !query 1269 +SELECT cast(1 as decimal(5, 0)) * cast(1 as smallint) FROM t +-- !query 1269 schema +struct<(CAST(1 AS DECIMAL(5,0)) * CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(11,0)> +-- !query 1269 output +1 + + +-- !query 1270 +SELECT cast(1 as decimal(6, 0)) * cast(1 as smallint) FROM t +-- !query 1270 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(12,0)> +-- !query 1270 output +1 + + +-- !query 1271 +SELECT cast(1 as decimal(10, 0)) * cast(1 as smallint) FROM t +-- !query 1271 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> +-- !query 1271 output +1 + + +-- !query 1272 +SELECT cast(1 as decimal(11, 0)) * cast(1 as smallint) FROM t +-- !query 1272 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(17,0)> +-- !query 1272 output +1 + + +-- !query 1273 +SELECT cast(1 as decimal(20, 0)) * cast(1 as smallint) FROM t +-- !query 1273 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,0)> +-- !query 1273 output +1 + + +-- !query 1274 +SELECT cast(1 as decimal(21, 0)) * cast(1 as smallint) FROM t +-- !query 1274 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(27,0)> +-- !query 1274 output +1 + + +-- !query 1275 +SELECT cast(1 as decimal(38, 0)) * cast(1 as smallint) FROM t +-- !query 1275 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1275 output +1 + + +-- !query 1276 +SELECT cast(1 as decimal(39, 0)) * cast(1 as smallint) FROM t +-- !query 1276 schema +struct<> +-- !query 1276 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as smallint) FROM t + + +-- !query 1277 +SELECT cast(1 as decimal(1, 1)) * cast(1 as smallint) FROM t +-- !query 1277 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(7,1)> +-- !query 1277 output +NULL + + +-- !query 1278 +SELECT cast(1 as decimal(2, 1)) * cast(1 as smallint) FROM t +-- !query 1278 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(8,1)> +-- !query 1278 output +1 + + +-- !query 1279 +SELECT cast(1 as decimal(3, 1)) * cast(1 as smallint) FROM t +-- !query 1279 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(9,1)> +-- !query 1279 output +1 + + +-- !query 1280 +SELECT cast(1 as decimal(4, 1)) * cast(1 as smallint) FROM t +-- !query 1280 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(10,1)> +-- !query 1280 output +1 + + +-- !query 1281 +SELECT cast(1 as decimal(5, 1)) * cast(1 as smallint) FROM t +-- !query 1281 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(11,1)> +-- !query 1281 output +1 + + +-- !query 1282 +SELECT cast(1 as decimal(6, 1)) * cast(1 as smallint) FROM t +-- !query 1282 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(12,1)> +-- !query 1282 output +1 + + +-- !query 1283 +SELECT cast(1 as decimal(10, 1)) * cast(1 as smallint) FROM t +-- !query 1283 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):decimal(16,1)> +-- !query 1283 output +1 + + +-- !query 1284 +SELECT cast(1 as decimal(11, 1)) * cast(1 as smallint) FROM t +-- !query 1284 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(17,1)> +-- !query 1284 output +1 + + +-- !query 1285 +SELECT cast(1 as decimal(20, 1)) * cast(1 as smallint) FROM t +-- !query 1285 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):decimal(26,1)> +-- !query 1285 output +1 + + +-- !query 1286 +SELECT cast(1 as decimal(21, 1)) * cast(1 as smallint) FROM t +-- !query 1286 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(27,1)> +-- !query 1286 output +1 + + +-- !query 1287 +SELECT cast(1 as decimal(38, 1)) * cast(1 as smallint) FROM t +-- !query 1287 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1287 output +1 + + +-- !query 1288 +SELECT cast(1 as decimal(39, 1)) * cast(1 as smallint) FROM t +-- !query 1288 schema +struct<> +-- !query 1288 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as smallint) FROM t + + +-- !query 1289 +SELECT cast(1 as decimal(1, 0)) * cast(1 as int) FROM t +-- !query 1289 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,0)> +-- !query 1289 output +1 + + +-- !query 1290 +SELECT cast(1 as decimal(3, 0)) * cast(1 as int) FROM t +-- !query 1290 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> +-- !query 1290 output +1 + + +-- !query 1291 +SELECT cast(1 as decimal(4, 0)) * cast(1 as int) FROM t +-- !query 1291 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,0)> +-- !query 1291 output +1 + + +-- !query 1292 +SELECT cast(1 as decimal(5, 0)) * cast(1 as int) FROM t +-- !query 1292 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> +-- !query 1292 output +1 + + +-- !query 1293 +SELECT cast(1 as decimal(6, 0)) * cast(1 as int) FROM t +-- !query 1293 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,0)> +-- !query 1293 output +1 + + +-- !query 1294 +SELECT cast(1 as decimal(10, 0)) * cast(1 as int) FROM t +-- !query 1294 schema +struct<(CAST(1 AS DECIMAL(10,0)) * CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(21,0)> +-- !query 1294 output +1 + + +-- !query 1295 +SELECT cast(1 as decimal(11, 0)) * cast(1 as int) FROM t +-- !query 1295 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,0)> +-- !query 1295 output +1 + + +-- !query 1296 +SELECT cast(1 as decimal(20, 0)) * cast(1 as int) FROM t +-- !query 1296 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> +-- !query 1296 output +1 + + +-- !query 1297 +SELECT cast(1 as decimal(21, 0)) * cast(1 as int) FROM t +-- !query 1297 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,0)> +-- !query 1297 output +1 + + +-- !query 1298 +SELECT cast(1 as decimal(38, 0)) * cast(1 as int) FROM t +-- !query 1298 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1298 output +1 + + +-- !query 1299 +SELECT cast(1 as decimal(39, 0)) * cast(1 as int) FROM t +-- !query 1299 schema +struct<> +-- !query 1299 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as int) FROM t + + +-- !query 1300 +SELECT cast(1 as decimal(1, 1)) * cast(1 as int) FROM t +-- !query 1300 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,1)> +-- !query 1300 output +NULL + + +-- !query 1301 +SELECT cast(1 as decimal(2, 1)) * cast(1 as int) FROM t +-- !query 1301 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,1)> +-- !query 1301 output +1 + + +-- !query 1302 +SELECT cast(1 as decimal(3, 1)) * cast(1 as int) FROM t +-- !query 1302 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,1)> +-- !query 1302 output +1 + + +-- !query 1303 +SELECT cast(1 as decimal(4, 1)) * cast(1 as int) FROM t +-- !query 1303 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,1)> +-- !query 1303 output +1 + + +-- !query 1304 +SELECT cast(1 as decimal(5, 1)) * cast(1 as int) FROM t +-- !query 1304 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,1)> +-- !query 1304 output +1 + + +-- !query 1305 +SELECT cast(1 as decimal(6, 1)) * cast(1 as int) FROM t +-- !query 1305 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,1)> +-- !query 1305 output +1 + + +-- !query 1306 +SELECT cast(1 as decimal(10, 1)) * cast(1 as int) FROM t +-- !query 1306 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,1)> +-- !query 1306 output +1 + + +-- !query 1307 +SELECT cast(1 as decimal(11, 1)) * cast(1 as int) FROM t +-- !query 1307 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,1)> +-- !query 1307 output +1 + + +-- !query 1308 +SELECT cast(1 as decimal(20, 1)) * cast(1 as int) FROM t +-- !query 1308 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,1)> +-- !query 1308 output +1 + + +-- !query 1309 +SELECT cast(1 as decimal(21, 1)) * cast(1 as int) FROM t +-- !query 1309 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,1)> +-- !query 1309 output +1 + + +-- !query 1310 +SELECT cast(1 as decimal(38, 1)) * cast(1 as int) FROM t +-- !query 1310 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1310 output +1 + + +-- !query 1311 +SELECT cast(1 as decimal(39, 1)) * cast(1 as int) FROM t +-- !query 1311 schema +struct<> +-- !query 1311 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as int) FROM t + + +-- !query 1312 +SELECT cast(1 as decimal(1, 0)) * cast(1 as bigint) FROM t +-- !query 1312 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(22,0)> +-- !query 1312 output +1 + + +-- !query 1313 +SELECT cast(1 as decimal(3, 0)) * cast(1 as bigint) FROM t +-- !query 1313 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,0)> +-- !query 1313 output +1 + + +-- !query 1314 +SELECT cast(1 as decimal(4, 0)) * cast(1 as bigint) FROM t +-- !query 1314 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(25,0)> +-- !query 1314 output +1 + + +-- !query 1315 +SELECT cast(1 as decimal(5, 0)) * cast(1 as bigint) FROM t +-- !query 1315 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,0)> +-- !query 1315 output +1 + + +-- !query 1316 +SELECT cast(1 as decimal(6, 0)) * cast(1 as bigint) FROM t +-- !query 1316 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(27,0)> +-- !query 1316 output +1 + + +-- !query 1317 +SELECT cast(1 as decimal(10, 0)) * cast(1 as bigint) FROM t +-- !query 1317 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> +-- !query 1317 output +1 + + +-- !query 1318 +SELECT cast(1 as decimal(11, 0)) * cast(1 as bigint) FROM t +-- !query 1318 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(32,0)> +-- !query 1318 output +1 + + +-- !query 1319 +SELECT cast(1 as decimal(20, 0)) * cast(1 as bigint) FROM t +-- !query 1319 schema +struct<(CAST(1 AS DECIMAL(20,0)) * CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(38,0)> +-- !query 1319 output +1 + + +-- !query 1320 +SELECT cast(1 as decimal(21, 0)) * cast(1 as bigint) FROM t +-- !query 1320 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(38,0)> +-- !query 1320 output +1 + + +-- !query 1321 +SELECT cast(1 as decimal(38, 0)) * cast(1 as bigint) FROM t +-- !query 1321 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1321 output +1 + + +-- !query 1322 +SELECT cast(1 as decimal(39, 0)) * cast(1 as bigint) FROM t +-- !query 1322 schema +struct<> +-- !query 1322 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as bigint) FROM t + + +-- !query 1323 +SELECT cast(1 as decimal(1, 1)) * cast(1 as bigint) FROM t +-- !query 1323 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(22,1)> +-- !query 1323 output +NULL + + +-- !query 1324 +SELECT cast(1 as decimal(2, 1)) * cast(1 as bigint) FROM t +-- !query 1324 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(23,1)> +-- !query 1324 output +1 + + +-- !query 1325 +SELECT cast(1 as decimal(3, 1)) * cast(1 as bigint) FROM t +-- !query 1325 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(24,1)> +-- !query 1325 output +1 + + +-- !query 1326 +SELECT cast(1 as decimal(4, 1)) * cast(1 as bigint) FROM t +-- !query 1326 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(25,1)> +-- !query 1326 output +1 + + +-- !query 1327 +SELECT cast(1 as decimal(5, 1)) * cast(1 as bigint) FROM t +-- !query 1327 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(26,1)> +-- !query 1327 output +1 + + +-- !query 1328 +SELECT cast(1 as decimal(6, 1)) * cast(1 as bigint) FROM t +-- !query 1328 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(27,1)> +-- !query 1328 output +1 + + +-- !query 1329 +SELECT cast(1 as decimal(10, 1)) * cast(1 as bigint) FROM t +-- !query 1329 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(31,1)> +-- !query 1329 output +1 + + +-- !query 1330 +SELECT cast(1 as decimal(11, 1)) * cast(1 as bigint) FROM t +-- !query 1330 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(32,1)> +-- !query 1330 output +1 + + +-- !query 1331 +SELECT cast(1 as decimal(20, 1)) * cast(1 as bigint) FROM t +-- !query 1331 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,1)> +-- !query 1331 output +1 + + +-- !query 1332 +SELECT cast(1 as decimal(21, 1)) * cast(1 as bigint) FROM t +-- !query 1332 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,1)> +-- !query 1332 output +1 + + +-- !query 1333 +SELECT cast(1 as decimal(38, 1)) * cast(1 as bigint) FROM t +-- !query 1333 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1333 output +1 + + +-- !query 1334 +SELECT cast(1 as decimal(39, 1)) * cast(1 as bigint) FROM t +-- !query 1334 schema +struct<> +-- !query 1334 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as bigint) FROM t + + +-- !query 1335 +SELECT cast(1 as decimal(1, 0)) * cast(1 as float) FROM t +-- !query 1335 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1335 output +1.0 + + +-- !query 1336 +SELECT cast(1 as decimal(3, 0)) * cast(1 as float) FROM t +-- !query 1336 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1336 output +1.0 + + +-- !query 1337 +SELECT cast(1 as decimal(4, 0)) * cast(1 as float) FROM t +-- !query 1337 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1337 output +1.0 + + +-- !query 1338 +SELECT cast(1 as decimal(5, 0)) * cast(1 as float) FROM t +-- !query 1338 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1338 output +1.0 + + +-- !query 1339 +SELECT cast(1 as decimal(6, 0)) * cast(1 as float) FROM t +-- !query 1339 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1339 output +1.0 + + +-- !query 1340 +SELECT cast(1 as decimal(10, 0)) * cast(1 as float) FROM t +-- !query 1340 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1340 output +1.0 + + +-- !query 1341 +SELECT cast(1 as decimal(11, 0)) * cast(1 as float) FROM t +-- !query 1341 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1341 output +1.0 + + +-- !query 1342 +SELECT cast(1 as decimal(20, 0)) * cast(1 as float) FROM t +-- !query 1342 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1342 output +1.0 + + +-- !query 1343 +SELECT cast(1 as decimal(21, 0)) * cast(1 as float) FROM t +-- !query 1343 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1343 output +1.0 + + +-- !query 1344 +SELECT cast(1 as decimal(38, 0)) * cast(1 as float) FROM t +-- !query 1344 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1344 output +1.0 + + +-- !query 1345 +SELECT cast(1 as decimal(39, 0)) * cast(1 as float) FROM t +-- !query 1345 schema +struct<> +-- !query 1345 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as float) FROM t + + +-- !query 1346 +SELECT cast(1 as decimal(1, 1)) * cast(1 as float) FROM t +-- !query 1346 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1346 output +NULL + + +-- !query 1347 +SELECT cast(1 as decimal(2, 1)) * cast(1 as float) FROM t +-- !query 1347 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1347 output +1.0 + + +-- !query 1348 +SELECT cast(1 as decimal(3, 1)) * cast(1 as float) FROM t +-- !query 1348 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1348 output +1.0 + + +-- !query 1349 +SELECT cast(1 as decimal(4, 1)) * cast(1 as float) FROM t +-- !query 1349 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1349 output +1.0 + + +-- !query 1350 +SELECT cast(1 as decimal(5, 1)) * cast(1 as float) FROM t +-- !query 1350 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1350 output +1.0 + + +-- !query 1351 +SELECT cast(1 as decimal(6, 1)) * cast(1 as float) FROM t +-- !query 1351 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1351 output +1.0 + + +-- !query 1352 +SELECT cast(1 as decimal(10, 1)) * cast(1 as float) FROM t +-- !query 1352 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1352 output +1.0 + + +-- !query 1353 +SELECT cast(1 as decimal(11, 1)) * cast(1 as float) FROM t +-- !query 1353 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1353 output +1.0 + + +-- !query 1354 +SELECT cast(1 as decimal(20, 1)) * cast(1 as float) FROM t +-- !query 1354 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1354 output +1.0 + + +-- !query 1355 +SELECT cast(1 as decimal(21, 1)) * cast(1 as float) FROM t +-- !query 1355 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1355 output +1.0 + + +-- !query 1356 +SELECT cast(1 as decimal(38, 1)) * cast(1 as float) FROM t +-- !query 1356 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1356 output +1.0 + + +-- !query 1357 +SELECT cast(1 as decimal(39, 1)) * cast(1 as float) FROM t +-- !query 1357 schema +struct<> +-- !query 1357 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as float) FROM t + + +-- !query 1358 +SELECT cast(1 as decimal(1, 0)) * cast(1 as double) FROM t +-- !query 1358 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1358 output +1.0 + + +-- !query 1359 +SELECT cast(1 as decimal(3, 0)) * cast(1 as double) FROM t +-- !query 1359 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1359 output +1.0 + + +-- !query 1360 +SELECT cast(1 as decimal(4, 0)) * cast(1 as double) FROM t +-- !query 1360 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1360 output +1.0 + + +-- !query 1361 +SELECT cast(1 as decimal(5, 0)) * cast(1 as double) FROM t +-- !query 1361 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1361 output +1.0 + + +-- !query 1362 +SELECT cast(1 as decimal(6, 0)) * cast(1 as double) FROM t +-- !query 1362 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1362 output +1.0 + + +-- !query 1363 +SELECT cast(1 as decimal(10, 0)) * cast(1 as double) FROM t +-- !query 1363 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1363 output +1.0 + + +-- !query 1364 +SELECT cast(1 as decimal(11, 0)) * cast(1 as double) FROM t +-- !query 1364 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1364 output +1.0 + + +-- !query 1365 +SELECT cast(1 as decimal(20, 0)) * cast(1 as double) FROM t +-- !query 1365 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1365 output +1.0 + + +-- !query 1366 +SELECT cast(1 as decimal(21, 0)) * cast(1 as double) FROM t +-- !query 1366 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1366 output +1.0 + + +-- !query 1367 +SELECT cast(1 as decimal(38, 0)) * cast(1 as double) FROM t +-- !query 1367 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1367 output +1.0 + + +-- !query 1368 +SELECT cast(1 as decimal(39, 0)) * cast(1 as double) FROM t +-- !query 1368 schema +struct<> +-- !query 1368 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as double) FROM t + + +-- !query 1369 +SELECT cast(1 as decimal(1, 1)) * cast(1 as double) FROM t +-- !query 1369 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1369 output +NULL + + +-- !query 1370 +SELECT cast(1 as decimal(2, 1)) * cast(1 as double) FROM t +-- !query 1370 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1370 output +1.0 + + +-- !query 1371 +SELECT cast(1 as decimal(3, 1)) * cast(1 as double) FROM t +-- !query 1371 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1371 output +1.0 + + +-- !query 1372 +SELECT cast(1 as decimal(4, 1)) * cast(1 as double) FROM t +-- !query 1372 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1372 output +1.0 + + +-- !query 1373 +SELECT cast(1 as decimal(5, 1)) * cast(1 as double) FROM t +-- !query 1373 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1373 output +1.0 + + +-- !query 1374 +SELECT cast(1 as decimal(6, 1)) * cast(1 as double) FROM t +-- !query 1374 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1374 output +1.0 + + +-- !query 1375 +SELECT cast(1 as decimal(10, 1)) * cast(1 as double) FROM t +-- !query 1375 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1375 output +1.0 + + +-- !query 1376 +SELECT cast(1 as decimal(11, 1)) * cast(1 as double) FROM t +-- !query 1376 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1376 output +1.0 + + +-- !query 1377 +SELECT cast(1 as decimal(20, 1)) * cast(1 as double) FROM t +-- !query 1377 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1377 output +1.0 + + +-- !query 1378 +SELECT cast(1 as decimal(21, 1)) * cast(1 as double) FROM t +-- !query 1378 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1378 output +1.0 + + +-- !query 1379 +SELECT cast(1 as decimal(38, 1)) * cast(1 as double) FROM t +-- !query 1379 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> +-- !query 1379 output +1.0 + + +-- !query 1380 +SELECT cast(1 as decimal(39, 1)) * cast(1 as double) FROM t +-- !query 1380 schema +struct<> +-- !query 1380 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as double) FROM t + + +-- !query 1381 +SELECT cast(1 as decimal(1, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1381 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,0)> +-- !query 1381 output +1 + + +-- !query 1382 +SELECT cast(1 as decimal(3, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1382 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> +-- !query 1382 output +1 + + +-- !query 1383 +SELECT cast(1 as decimal(4, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1383 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,0)> +-- !query 1383 output +1 + + +-- !query 1384 +SELECT cast(1 as decimal(5, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1384 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> +-- !query 1384 output +1 + + +-- !query 1385 +SELECT cast(1 as decimal(6, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1385 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,0)> +-- !query 1385 output +1 + + +-- !query 1386 +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1386 schema +struct<(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> +-- !query 1386 output +1 + + +-- !query 1387 +SELECT cast(1 as decimal(11, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1387 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,0)> +-- !query 1387 output +1 + + +-- !query 1388 +SELECT cast(1 as decimal(20, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1388 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> +-- !query 1388 output +1 + + +-- !query 1389 +SELECT cast(1 as decimal(21, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1389 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,0)> +-- !query 1389 output +1 + + +-- !query 1390 +SELECT cast(1 as decimal(38, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1390 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +-- !query 1390 output +1 + + +-- !query 1391 +SELECT cast(1 as decimal(39, 0)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1391 schema +struct<> +-- !query 1391 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as decimal(10, 0)) FROM t + + +-- !query 1392 +SELECT cast(1 as decimal(1, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1392 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,1)> +-- !query 1392 output +NULL + + +-- !query 1393 +SELECT cast(1 as decimal(2, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1393 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,1)> +-- !query 1393 output +1 + + +-- !query 1394 +SELECT cast(1 as decimal(3, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1394 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,1)> +-- !query 1394 output +1 + + +-- !query 1395 +SELECT cast(1 as decimal(4, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1395 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,1)> +-- !query 1395 output +1 + + +-- !query 1396 +SELECT cast(1 as decimal(5, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1396 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,1)> +-- !query 1396 output +1 + + +-- !query 1397 +SELECT cast(1 as decimal(6, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1397 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,1)> +-- !query 1397 output +1 + + +-- !query 1398 +SELECT cast(1 as decimal(10, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1398 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,1)> +-- !query 1398 output +1 + + +-- !query 1399 +SELECT cast(1 as decimal(11, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1399 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,1)> +-- !query 1399 output +1 + + +-- !query 1400 +SELECT cast(1 as decimal(20, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1400 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,1)> +-- !query 1400 output +1 + + +-- !query 1401 +SELECT cast(1 as decimal(21, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1401 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,1)> +-- !query 1401 output +1 + + +-- !query 1402 +SELECT cast(1 as decimal(38, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1402 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +-- !query 1402 output +1 + + +-- !query 1403 +SELECT cast(1 as decimal(39, 1)) * cast(1 as decimal(10, 0)) FROM t +-- !query 1403 schema +struct<> +-- !query 1403 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as decimal(10, 0)) FROM t + + +-- !query 1404 +SELECT cast(1 as decimal(1, 0)) * cast(1 as string) FROM t +-- !query 1404 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1404 output +1.0 + + +-- !query 1405 +SELECT cast(1 as decimal(3, 0)) * cast(1 as string) FROM t +-- !query 1405 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1405 output +1.0 + + +-- !query 1406 +SELECT cast(1 as decimal(4, 0)) * cast(1 as string) FROM t +-- !query 1406 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1406 output +1.0 + + +-- !query 1407 +SELECT cast(1 as decimal(5, 0)) * cast(1 as string) FROM t +-- !query 1407 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1407 output +1.0 + + +-- !query 1408 +SELECT cast(1 as decimal(6, 0)) * cast(1 as string) FROM t +-- !query 1408 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1408 output +1.0 + + +-- !query 1409 +SELECT cast(1 as decimal(10, 0)) * cast(1 as string) FROM t +-- !query 1409 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1409 output +1.0 + + +-- !query 1410 +SELECT cast(1 as decimal(11, 0)) * cast(1 as string) FROM t +-- !query 1410 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1410 output +1.0 + + +-- !query 1411 +SELECT cast(1 as decimal(20, 0)) * cast(1 as string) FROM t +-- !query 1411 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1411 output +1.0 + + +-- !query 1412 +SELECT cast(1 as decimal(21, 0)) * cast(1 as string) FROM t +-- !query 1412 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1412 output +1.0 + + +-- !query 1413 +SELECT cast(1 as decimal(38, 0)) * cast(1 as string) FROM t +-- !query 1413 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1413 output +1.0 + + +-- !query 1414 +SELECT cast(1 as decimal(39, 0)) * cast(1 as string) FROM t +-- !query 1414 schema +struct<> +-- !query 1414 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as string) FROM t + + +-- !query 1415 +SELECT cast(1 as decimal(1, 1)) * cast(1 as string) FROM t +-- !query 1415 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1415 output +NULL + + +-- !query 1416 +SELECT cast(1 as decimal(2, 1)) * cast(1 as string) FROM t +-- !query 1416 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1416 output +1.0 + + +-- !query 1417 +SELECT cast(1 as decimal(3, 1)) * cast(1 as string) FROM t +-- !query 1417 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1417 output +1.0 + + +-- !query 1418 +SELECT cast(1 as decimal(4, 1)) * cast(1 as string) FROM t +-- !query 1418 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1418 output +1.0 + + +-- !query 1419 +SELECT cast(1 as decimal(5, 1)) * cast(1 as string) FROM t +-- !query 1419 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1419 output +1.0 + + +-- !query 1420 +SELECT cast(1 as decimal(6, 1)) * cast(1 as string) FROM t +-- !query 1420 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1420 output +1.0 + + +-- !query 1421 +SELECT cast(1 as decimal(10, 1)) * cast(1 as string) FROM t +-- !query 1421 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1421 output +1.0 + + +-- !query 1422 +SELECT cast(1 as decimal(11, 1)) * cast(1 as string) FROM t +-- !query 1422 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1422 output +1.0 + + +-- !query 1423 +SELECT cast(1 as decimal(20, 1)) * cast(1 as string) FROM t +-- !query 1423 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1423 output +1.0 + + +-- !query 1424 +SELECT cast(1 as decimal(21, 1)) * cast(1 as string) FROM t +-- !query 1424 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1424 output +1.0 + + +-- !query 1425 +SELECT cast(1 as decimal(38, 1)) * cast(1 as string) FROM t +-- !query 1425 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1425 output +1.0 + + +-- !query 1426 +SELECT cast(1 as decimal(39, 1)) * cast(1 as string) FROM t +-- !query 1426 schema +struct<> +-- !query 1426 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as string) FROM t + + +-- !query 1427 +SELECT cast(1 as decimal(1, 0)) * cast('1' as binary) FROM t +-- !query 1427 schema +struct<> +-- !query 1427 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 1428 +SELECT cast(1 as decimal(3, 0)) * cast('1' as binary) FROM t +-- !query 1428 schema +struct<> +-- !query 1428 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 1429 +SELECT cast(1 as decimal(4, 0)) * cast('1' as binary) FROM t +-- !query 1429 schema +struct<> +-- !query 1429 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 1430 +SELECT cast(1 as decimal(5, 0)) * cast('1' as binary) FROM t +-- !query 1430 schema +struct<> +-- !query 1430 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 1431 +SELECT cast(1 as decimal(6, 0)) * cast('1' as binary) FROM t +-- !query 1431 schema +struct<> +-- !query 1431 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 1432 +SELECT cast(1 as decimal(10, 0)) * cast('1' as binary) FROM t +-- !query 1432 schema +struct<> +-- !query 1432 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 1433 +SELECT cast(1 as decimal(11, 0)) * cast('1' as binary) FROM t +-- !query 1433 schema +struct<> +-- !query 1433 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 1434 +SELECT cast(1 as decimal(20, 0)) * cast('1' as binary) FROM t +-- !query 1434 schema +struct<> +-- !query 1434 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 1435 +SELECT cast(1 as decimal(21, 0)) * cast('1' as binary) FROM t +-- !query 1435 schema +struct<> +-- !query 1435 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 1436 +SELECT cast(1 as decimal(38, 0)) * cast('1' as binary) FROM t +-- !query 1436 schema +struct<> +-- !query 1436 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 1437 +SELECT cast(1 as decimal(39, 0)) * cast('1' as binary) FROM t +-- !query 1437 schema +struct<> +-- !query 1437 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast('1' as binary) FROM t + + +-- !query 1438 +SELECT cast(1 as decimal(1, 1)) * cast('1' as binary) FROM t +-- !query 1438 schema +struct<> +-- !query 1438 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 1439 +SELECT cast(1 as decimal(2, 1)) * cast('1' as binary) FROM t +-- !query 1439 schema +struct<> +-- !query 1439 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 1440 +SELECT cast(1 as decimal(3, 1)) * cast('1' as binary) FROM t +-- !query 1440 schema +struct<> +-- !query 1440 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 1441 +SELECT cast(1 as decimal(4, 1)) * cast('1' as binary) FROM t +-- !query 1441 schema +struct<> +-- !query 1441 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 1442 +SELECT cast(1 as decimal(5, 1)) * cast('1' as binary) FROM t +-- !query 1442 schema +struct<> +-- !query 1442 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 1443 +SELECT cast(1 as decimal(6, 1)) * cast('1' as binary) FROM t +-- !query 1443 schema +struct<> +-- !query 1443 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 1444 +SELECT cast(1 as decimal(10, 1)) * cast('1' as binary) FROM t +-- !query 1444 schema +struct<> +-- !query 1444 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 1445 +SELECT cast(1 as decimal(11, 1)) * cast('1' as binary) FROM t +-- !query 1445 schema +struct<> +-- !query 1445 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 1446 +SELECT cast(1 as decimal(20, 1)) * cast('1' as binary) FROM t +-- !query 1446 schema +struct<> +-- !query 1446 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 1447 +SELECT cast(1 as decimal(21, 1)) * cast('1' as binary) FROM t +-- !query 1447 schema +struct<> +-- !query 1447 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 1448 +SELECT cast(1 as decimal(38, 1)) * cast('1' as binary) FROM t +-- !query 1448 schema +struct<> +-- !query 1448 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 1449 +SELECT cast(1 as decimal(39, 1)) * cast('1' as binary) FROM t +-- !query 1449 schema +struct<> +-- !query 1449 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast('1' as binary) FROM t + + +-- !query 1450 +SELECT cast(1 as decimal(1, 0)) * cast(1 as boolean) FROM t +-- !query 1450 schema +struct<> +-- !query 1450 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 1451 +SELECT cast(1 as decimal(3, 0)) * cast(1 as boolean) FROM t +-- !query 1451 schema +struct<> +-- !query 1451 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 1452 +SELECT cast(1 as decimal(4, 0)) * cast(1 as boolean) FROM t +-- !query 1452 schema +struct<> +-- !query 1452 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 1453 +SELECT cast(1 as decimal(5, 0)) * cast(1 as boolean) FROM t +-- !query 1453 schema +struct<> +-- !query 1453 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 1454 +SELECT cast(1 as decimal(6, 0)) * cast(1 as boolean) FROM t +-- !query 1454 schema +struct<> +-- !query 1454 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 1455 +SELECT cast(1 as decimal(10, 0)) * cast(1 as boolean) FROM t +-- !query 1455 schema +struct<> +-- !query 1455 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 1456 +SELECT cast(1 as decimal(11, 0)) * cast(1 as boolean) FROM t +-- !query 1456 schema +struct<> +-- !query 1456 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 1457 +SELECT cast(1 as decimal(20, 0)) * cast(1 as boolean) FROM t +-- !query 1457 schema +struct<> +-- !query 1457 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 1458 +SELECT cast(1 as decimal(21, 0)) * cast(1 as boolean) FROM t +-- !query 1458 schema +struct<> +-- !query 1458 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 1459 +SELECT cast(1 as decimal(38, 0)) * cast(1 as boolean) FROM t +-- !query 1459 schema +struct<> +-- !query 1459 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 1460 +SELECT cast(1 as decimal(39, 0)) * cast(1 as boolean) FROM t +-- !query 1460 schema +struct<> +-- !query 1460 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast(1 as boolean) FROM t + + +-- !query 1461 +SELECT cast(1 as decimal(1, 1)) * cast(1 as boolean) FROM t +-- !query 1461 schema +struct<> +-- !query 1461 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 1462 +SELECT cast(1 as decimal(2, 1)) * cast(1 as boolean) FROM t +-- !query 1462 schema +struct<> +-- !query 1462 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 1463 +SELECT cast(1 as decimal(3, 1)) * cast(1 as boolean) FROM t +-- !query 1463 schema +struct<> +-- !query 1463 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 1464 +SELECT cast(1 as decimal(4, 1)) * cast(1 as boolean) FROM t +-- !query 1464 schema +struct<> +-- !query 1464 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 1465 +SELECT cast(1 as decimal(5, 1)) * cast(1 as boolean) FROM t +-- !query 1465 schema +struct<> +-- !query 1465 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 1466 +SELECT cast(1 as decimal(6, 1)) * cast(1 as boolean) FROM t +-- !query 1466 schema +struct<> +-- !query 1466 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 1467 +SELECT cast(1 as decimal(10, 1)) * cast(1 as boolean) FROM t +-- !query 1467 schema +struct<> +-- !query 1467 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 1468 +SELECT cast(1 as decimal(11, 1)) * cast(1 as boolean) FROM t +-- !query 1468 schema +struct<> +-- !query 1468 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 1469 +SELECT cast(1 as decimal(20, 1)) * cast(1 as boolean) FROM t +-- !query 1469 schema +struct<> +-- !query 1469 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 1470 +SELECT cast(1 as decimal(21, 1)) * cast(1 as boolean) FROM t +-- !query 1470 schema +struct<> +-- !query 1470 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 1471 +SELECT cast(1 as decimal(38, 1)) * cast(1 as boolean) FROM t +-- !query 1471 schema +struct<> +-- !query 1471 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 1472 +SELECT cast(1 as decimal(39, 1)) * cast(1 as boolean) FROM t +-- !query 1472 schema +struct<> +-- !query 1472 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast(1 as boolean) FROM t + + +-- !query 1473 +SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1473 schema +struct<> +-- !query 1473 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 1474 +SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1474 schema +struct<> +-- !query 1474 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 1475 +SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1475 schema +struct<> +-- !query 1475 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 1476 +SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1476 schema +struct<> +-- !query 1476 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 1477 +SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1477 schema +struct<> +-- !query 1477 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 1478 +SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1478 schema +struct<> +-- !query 1478 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 1479 +SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1479 schema +struct<> +-- !query 1479 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 1480 +SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1480 schema +struct<> +-- !query 1480 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 1481 +SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1481 schema +struct<> +-- !query 1481 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 1482 +SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1482 schema +struct<> +-- !query 1482 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 1483 +SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1483 schema +struct<> +-- !query 1483 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t + + +-- !query 1484 +SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1484 schema +struct<> +-- !query 1484 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 1485 +SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1485 schema +struct<> +-- !query 1485 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 1486 +SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1486 schema +struct<> +-- !query 1486 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 1487 +SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1487 schema +struct<> +-- !query 1487 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 1488 +SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1488 schema +struct<> +-- !query 1488 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 1489 +SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1489 schema +struct<> +-- !query 1489 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 1490 +SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1490 schema +struct<> +-- !query 1490 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 1491 +SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1491 schema +struct<> +-- !query 1491 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 1492 +SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1492 schema +struct<> +-- !query 1492 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 1493 +SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1493 schema +struct<> +-- !query 1493 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 1494 +SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1494 schema +struct<> +-- !query 1494 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 1495 +SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t +-- !query 1495 schema +struct<> +-- !query 1495 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t + + +-- !query 1496 +SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1496 schema +struct<> +-- !query 1496 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 1497 +SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1497 schema +struct<> +-- !query 1497 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 1498 +SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1498 schema +struct<> +-- !query 1498 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 1499 +SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1499 schema +struct<> +-- !query 1499 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 1500 +SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1500 schema +struct<> +-- !query 1500 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 1501 +SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1501 schema +struct<> +-- !query 1501 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 1502 +SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1502 schema +struct<> +-- !query 1502 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 1503 +SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1503 schema +struct<> +-- !query 1503 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 1504 +SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1504 schema +struct<> +-- !query 1504 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 1505 +SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1505 schema +struct<> +-- !query 1505 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 1506 +SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1506 schema +struct<> +-- !query 1506 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00' as date) FROM t + + +-- !query 1507 +SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1507 schema +struct<> +-- !query 1507 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 1508 +SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1508 schema +struct<> +-- !query 1508 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 1509 +SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1509 schema +struct<> +-- !query 1509 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 1510 +SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1510 schema +struct<> +-- !query 1510 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 1511 +SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1511 schema +struct<> +-- !query 1511 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 1512 +SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1512 schema +struct<> +-- !query 1512 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 1513 +SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1513 schema +struct<> +-- !query 1513 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 1514 +SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1514 schema +struct<> +-- !query 1514 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 1515 +SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1515 schema +struct<> +-- !query 1515 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 1516 +SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1516 schema +struct<> +-- !query 1516 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 1517 +SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1517 schema +struct<> +-- !query 1517 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 1518 +SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00' as date) FROM t +-- !query 1518 schema +struct<> +-- !query 1518 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00' as date) FROM t + + +-- !query 1519 +SELECT cast(1 as tinyint) / cast(1 as decimal(1, 0)) FROM t +-- !query 1519 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):decimal(9,6)> +-- !query 1519 output +1 + + +-- !query 1520 +SELECT cast(1 as tinyint) / cast(1 as decimal(3, 0)) FROM t +-- !query 1520 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) / CAST(1 AS DECIMAL(3,0))):decimal(9,6)> +-- !query 1520 output +1 + + +-- !query 1521 +SELECT cast(1 as tinyint) / cast(1 as decimal(4, 0)) FROM t +-- !query 1521 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):decimal(9,6)> +-- !query 1521 output +1 + + +-- !query 1522 +SELECT cast(1 as tinyint) / cast(1 as decimal(5, 0)) FROM t +-- !query 1522 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,6)> +-- !query 1522 output +1 + + +-- !query 1523 +SELECT cast(1 as tinyint) / cast(1 as decimal(6, 0)) FROM t +-- !query 1523 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(10,7)> +-- !query 1523 output +1 + + +-- !query 1524 +SELECT cast(1 as tinyint) / cast(1 as decimal(10, 0)) FROM t +-- !query 1524 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> +-- !query 1524 output +1 + + +-- !query 1525 +SELECT cast(1 as tinyint) / cast(1 as decimal(11, 0)) FROM t +-- !query 1525 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(15,12)> +-- !query 1525 output +1 + + +-- !query 1526 +SELECT cast(1 as tinyint) / cast(1 as decimal(20, 0)) FROM t +-- !query 1526 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,21)> +-- !query 1526 output +1 + + +-- !query 1527 +SELECT cast(1 as tinyint) / cast(1 as decimal(21, 0)) FROM t +-- !query 1527 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(25,22)> +-- !query 1527 output +1 + + +-- !query 1528 +SELECT cast(1 as tinyint) / cast(1 as decimal(38, 0)) FROM t +-- !query 1528 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,36)> +-- !query 1528 output +1 + + +-- !query 1529 +SELECT cast(1 as tinyint) / cast(1 as decimal(39, 0)) FROM t +-- !query 1529 schema +struct<> +-- !query 1529 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1530 +SELECT cast(1 as tinyint) / cast(1 as decimal(1, 1)) FROM t +-- !query 1530 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):decimal(10,6)> +-- !query 1530 output +NULL + + +-- !query 1531 +SELECT cast(1 as tinyint) / cast(1 as decimal(2, 1)) FROM t +-- !query 1531 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):decimal(10,6)> +-- !query 1531 output +1 + + +-- !query 1532 +SELECT cast(1 as tinyint) / cast(1 as decimal(3, 1)) FROM t +-- !query 1532 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):decimal(10,6)> +-- !query 1532 output +1 + + +-- !query 1533 +SELECT cast(1 as tinyint) / cast(1 as decimal(4, 1)) FROM t +-- !query 1533 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):decimal(10,6)> +-- !query 1533 output +1 + + +-- !query 1534 +SELECT cast(1 as tinyint) / cast(1 as decimal(5, 1)) FROM t +-- !query 1534 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):decimal(10,6)> +-- !query 1534 output +1 + + +-- !query 1535 +SELECT cast(1 as tinyint) / cast(1 as decimal(6, 1)) FROM t +-- !query 1535 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(11,7)> +-- !query 1535 output +1 + + +-- !query 1536 +SELECT cast(1 as tinyint) / cast(1 as decimal(10, 1)) FROM t +-- !query 1536 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(15,11)> +-- !query 1536 output +1 + + +-- !query 1537 +SELECT cast(1 as tinyint) / cast(1 as decimal(11, 1)) FROM t +-- !query 1537 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(16,12)> +-- !query 1537 output +1 + + +-- !query 1538 +SELECT cast(1 as tinyint) / cast(1 as decimal(20, 1)) FROM t +-- !query 1538 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(25,21)> +-- !query 1538 output +1 + + +-- !query 1539 +SELECT cast(1 as tinyint) / cast(1 as decimal(21, 1)) FROM t +-- !query 1539 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(26,22)> +-- !query 1539 output +1 + + +-- !query 1540 +SELECT cast(1 as tinyint) / cast(1 as decimal(38, 1)) FROM t +-- !query 1540 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,35)> +-- !query 1540 output +1 + + +-- !query 1541 +SELECT cast(1 as tinyint) / cast(1 as decimal(39, 1)) FROM t +-- !query 1541 schema +struct<> +-- !query 1541 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1542 +SELECT cast(1 as smallint) / cast(1 as decimal(1, 0)) FROM t +-- !query 1542 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):decimal(11,6)> +-- !query 1542 output +1 + + +-- !query 1543 +SELECT cast(1 as smallint) / cast(1 as decimal(3, 0)) FROM t +-- !query 1543 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(11,6)> +-- !query 1543 output +1 + + +-- !query 1544 +SELECT cast(1 as smallint) / cast(1 as decimal(4, 0)) FROM t +-- !query 1544 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(11,6)> +-- !query 1544 output +1 + + +-- !query 1545 +SELECT cast(1 as smallint) / cast(1 as decimal(5, 0)) FROM t +-- !query 1545 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) / CAST(1 AS DECIMAL(5,0))):decimal(11,6)> +-- !query 1545 output +1 + + +-- !query 1546 +SELECT cast(1 as smallint) / cast(1 as decimal(6, 0)) FROM t +-- !query 1546 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(12,7)> +-- !query 1546 output +1 + + +-- !query 1547 +SELECT cast(1 as smallint) / cast(1 as decimal(10, 0)) FROM t +-- !query 1547 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> +-- !query 1547 output +1 + + +-- !query 1548 +SELECT cast(1 as smallint) / cast(1 as decimal(11, 0)) FROM t +-- !query 1548 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(17,12)> +-- !query 1548 output +1 + + +-- !query 1549 +SELECT cast(1 as smallint) / cast(1 as decimal(20, 0)) FROM t +-- !query 1549 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,21)> +-- !query 1549 output +1 + + +-- !query 1550 +SELECT cast(1 as smallint) / cast(1 as decimal(21, 0)) FROM t +-- !query 1550 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(27,22)> +-- !query 1550 output +1 + + +-- !query 1551 +SELECT cast(1 as smallint) / cast(1 as decimal(38, 0)) FROM t +-- !query 1551 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,35)> +-- !query 1551 output +1 + + +-- !query 1552 +SELECT cast(1 as smallint) / cast(1 as decimal(39, 0)) FROM t +-- !query 1552 schema +struct<> +-- !query 1552 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1553 +SELECT cast(1 as smallint) / cast(1 as decimal(1, 1)) FROM t +-- !query 1553 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):decimal(12,6)> +-- !query 1553 output +NULL + + +-- !query 1554 +SELECT cast(1 as smallint) / cast(1 as decimal(2, 1)) FROM t +-- !query 1554 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):decimal(12,6)> +-- !query 1554 output +1 + + +-- !query 1555 +SELECT cast(1 as smallint) / cast(1 as decimal(3, 1)) FROM t +-- !query 1555 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):decimal(12,6)> +-- !query 1555 output +1 + + +-- !query 1556 +SELECT cast(1 as smallint) / cast(1 as decimal(4, 1)) FROM t +-- !query 1556 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):decimal(12,6)> +-- !query 1556 output +1 + + +-- !query 1557 +SELECT cast(1 as smallint) / cast(1 as decimal(5, 1)) FROM t +-- !query 1557 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(12,6)> +-- !query 1557 output +1 + + +-- !query 1558 +SELECT cast(1 as smallint) / cast(1 as decimal(6, 1)) FROM t +-- !query 1558 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(13,7)> +-- !query 1558 output +1 + + +-- !query 1559 +SELECT cast(1 as smallint) / cast(1 as decimal(10, 1)) FROM t +-- !query 1559 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(17,11)> +-- !query 1559 output +1 + + +-- !query 1560 +SELECT cast(1 as smallint) / cast(1 as decimal(11, 1)) FROM t +-- !query 1560 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(18,12)> +-- !query 1560 output +1 + + +-- !query 1561 +SELECT cast(1 as smallint) / cast(1 as decimal(20, 1)) FROM t +-- !query 1561 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(27,21)> +-- !query 1561 output +1 + + +-- !query 1562 +SELECT cast(1 as smallint) / cast(1 as decimal(21, 1)) FROM t +-- !query 1562 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(28,22)> +-- !query 1562 output +1 + + +-- !query 1563 +SELECT cast(1 as smallint) / cast(1 as decimal(38, 1)) FROM t +-- !query 1563 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,34)> +-- !query 1563 output +1 + + +-- !query 1564 +SELECT cast(1 as smallint) / cast(1 as decimal(39, 1)) FROM t +-- !query 1564 schema +struct<> +-- !query 1564 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1565 +SELECT cast(1 as int) / cast(1 as decimal(1, 0)) FROM t +-- !query 1565 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1565 output +1 + + +-- !query 1566 +SELECT cast(1 as int) / cast(1 as decimal(3, 0)) FROM t +-- !query 1566 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1566 output +1 + + +-- !query 1567 +SELECT cast(1 as int) / cast(1 as decimal(4, 0)) FROM t +-- !query 1567 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1567 output +1 + + +-- !query 1568 +SELECT cast(1 as int) / cast(1 as decimal(5, 0)) FROM t +-- !query 1568 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1568 output +1 + + +-- !query 1569 +SELECT cast(1 as int) / cast(1 as decimal(6, 0)) FROM t +-- !query 1569 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,7)> +-- !query 1569 output +1 + + +-- !query 1570 +SELECT cast(1 as int) / cast(1 as decimal(10, 0)) FROM t +-- !query 1570 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> +-- !query 1570 output +1 + + +-- !query 1571 +SELECT cast(1 as int) / cast(1 as decimal(11, 0)) FROM t +-- !query 1571 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,12)> +-- !query 1571 output +1 + + +-- !query 1572 +SELECT cast(1 as int) / cast(1 as decimal(20, 0)) FROM t +-- !query 1572 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> +-- !query 1572 output +1 + + +-- !query 1573 +SELECT cast(1 as int) / cast(1 as decimal(21, 0)) FROM t +-- !query 1573 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,22)> +-- !query 1573 output +1 + + +-- !query 1574 +SELECT cast(1 as int) / cast(1 as decimal(38, 0)) FROM t +-- !query 1574 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,32)> +-- !query 1574 output +1 + + +-- !query 1575 +SELECT cast(1 as int) / cast(1 as decimal(39, 0)) FROM t +-- !query 1575 schema +struct<> +-- !query 1575 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1576 +SELECT cast(1 as int) / cast(1 as decimal(1, 1)) FROM t +-- !query 1576 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1576 output +NULL + + +-- !query 1577 +SELECT cast(1 as int) / cast(1 as decimal(2, 1)) FROM t +-- !query 1577 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1577 output +1 + + +-- !query 1578 +SELECT cast(1 as int) / cast(1 as decimal(3, 1)) FROM t +-- !query 1578 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1578 output +1 + + +-- !query 1579 +SELECT cast(1 as int) / cast(1 as decimal(4, 1)) FROM t +-- !query 1579 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1579 output +1 + + +-- !query 1580 +SELECT cast(1 as int) / cast(1 as decimal(5, 1)) FROM t +-- !query 1580 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1580 output +1 + + +-- !query 1581 +SELECT cast(1 as int) / cast(1 as decimal(6, 1)) FROM t +-- !query 1581 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(18,7)> +-- !query 1581 output +1 + + +-- !query 1582 +SELECT cast(1 as int) / cast(1 as decimal(10, 1)) FROM t +-- !query 1582 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(22,11)> +-- !query 1582 output +1 + + +-- !query 1583 +SELECT cast(1 as int) / cast(1 as decimal(11, 1)) FROM t +-- !query 1583 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(23,12)> +-- !query 1583 output +1 + + +-- !query 1584 +SELECT cast(1 as int) / cast(1 as decimal(20, 1)) FROM t +-- !query 1584 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(32,21)> +-- !query 1584 output +1 + + +-- !query 1585 +SELECT cast(1 as int) / cast(1 as decimal(21, 1)) FROM t +-- !query 1585 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(33,22)> +-- !query 1585 output +1 + + +-- !query 1586 +SELECT cast(1 as int) / cast(1 as decimal(38, 1)) FROM t +-- !query 1586 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,32)> +-- !query 1586 output +1 + + +-- !query 1587 +SELECT cast(1 as int) / cast(1 as decimal(39, 1)) FROM t +-- !query 1587 schema +struct<> +-- !query 1587 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1588 +SELECT cast(1 as bigint) / cast(1 as decimal(1, 0)) FROM t +-- !query 1588 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):decimal(26,6)> +-- !query 1588 output +1 + + +-- !query 1589 +SELECT cast(1 as bigint) / cast(1 as decimal(3, 0)) FROM t +-- !query 1589 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(26,6)> +-- !query 1589 output +1 + + +-- !query 1590 +SELECT cast(1 as bigint) / cast(1 as decimal(4, 0)) FROM t +-- !query 1590 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):decimal(26,6)> +-- !query 1590 output +1 + + +-- !query 1591 +SELECT cast(1 as bigint) / cast(1 as decimal(5, 0)) FROM t +-- !query 1591 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,6)> +-- !query 1591 output +1 + + +-- !query 1592 +SELECT cast(1 as bigint) / cast(1 as decimal(6, 0)) FROM t +-- !query 1592 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):decimal(27,7)> +-- !query 1592 output +1 + + +-- !query 1593 +SELECT cast(1 as bigint) / cast(1 as decimal(10, 0)) FROM t +-- !query 1593 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> +-- !query 1593 output +1 + + +-- !query 1594 +SELECT cast(1 as bigint) / cast(1 as decimal(11, 0)) FROM t +-- !query 1594 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):decimal(32,12)> +-- !query 1594 output +1 + + +-- !query 1595 +SELECT cast(1 as bigint) / cast(1 as decimal(20, 0)) FROM t +-- !query 1595 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) / CAST(1 AS DECIMAL(20,0))):decimal(38,19)> +-- !query 1595 output +1 + + +-- !query 1596 +SELECT cast(1 as bigint) / cast(1 as decimal(21, 0)) FROM t +-- !query 1596 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(38,19)> +-- !query 1596 output +1 + + +-- !query 1597 +SELECT cast(1 as bigint) / cast(1 as decimal(38, 0)) FROM t +-- !query 1597 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,27)> +-- !query 1597 output +1 + + +-- !query 1598 +SELECT cast(1 as bigint) / cast(1 as decimal(39, 0)) FROM t +-- !query 1598 schema +struct<> +-- !query 1598 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1599 +SELECT cast(1 as bigint) / cast(1 as decimal(1, 1)) FROM t +-- !query 1599 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):decimal(27,6)> +-- !query 1599 output +NULL + + +-- !query 1600 +SELECT cast(1 as bigint) / cast(1 as decimal(2, 1)) FROM t +-- !query 1600 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):decimal(27,6)> +-- !query 1600 output +1 + + +-- !query 1601 +SELECT cast(1 as bigint) / cast(1 as decimal(3, 1)) FROM t +-- !query 1601 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):decimal(27,6)> +-- !query 1601 output +1 + + +-- !query 1602 +SELECT cast(1 as bigint) / cast(1 as decimal(4, 1)) FROM t +-- !query 1602 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):decimal(27,6)> +-- !query 1602 output +1 + + +-- !query 1603 +SELECT cast(1 as bigint) / cast(1 as decimal(5, 1)) FROM t +-- !query 1603 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):decimal(27,6)> +-- !query 1603 output +1 + + +-- !query 1604 +SELECT cast(1 as bigint) / cast(1 as decimal(6, 1)) FROM t +-- !query 1604 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):decimal(28,7)> +-- !query 1604 output +1 + + +-- !query 1605 +SELECT cast(1 as bigint) / cast(1 as decimal(10, 1)) FROM t +-- !query 1605 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):decimal(32,11)> +-- !query 1605 output +1 + + +-- !query 1606 +SELECT cast(1 as bigint) / cast(1 as decimal(11, 1)) FROM t +-- !query 1606 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):decimal(33,12)> +-- !query 1606 output +1 + + +-- !query 1607 +SELECT cast(1 as bigint) / cast(1 as decimal(20, 1)) FROM t +-- !query 1607 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(38,18)> +-- !query 1607 output +1 + + +-- !query 1608 +SELECT cast(1 as bigint) / cast(1 as decimal(21, 1)) FROM t +-- !query 1608 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(38,19)> +-- !query 1608 output +1 + + +-- !query 1609 +SELECT cast(1 as bigint) / cast(1 as decimal(38, 1)) FROM t +-- !query 1609 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,27)> +-- !query 1609 output +1 + + +-- !query 1610 +SELECT cast(1 as bigint) / cast(1 as decimal(39, 1)) FROM t +-- !query 1610 schema +struct<> +-- !query 1610 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1611 +SELECT cast(1 as float) / cast(1 as decimal(1, 0)) FROM t +-- !query 1611 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1611 output +1.0 + + +-- !query 1612 +SELECT cast(1 as float) / cast(1 as decimal(3, 0)) FROM t +-- !query 1612 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1612 output +1.0 + + +-- !query 1613 +SELECT cast(1 as float) / cast(1 as decimal(4, 0)) FROM t +-- !query 1613 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1613 output +1.0 + + +-- !query 1614 +SELECT cast(1 as float) / cast(1 as decimal(5, 0)) FROM t +-- !query 1614 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1614 output +1.0 + + +-- !query 1615 +SELECT cast(1 as float) / cast(1 as decimal(6, 0)) FROM t +-- !query 1615 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1615 output +1.0 + + +-- !query 1616 +SELECT cast(1 as float) / cast(1 as decimal(10, 0)) FROM t +-- !query 1616 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1616 output +1.0 + + +-- !query 1617 +SELECT cast(1 as float) / cast(1 as decimal(11, 0)) FROM t +-- !query 1617 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1617 output +1.0 + + +-- !query 1618 +SELECT cast(1 as float) / cast(1 as decimal(20, 0)) FROM t +-- !query 1618 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1618 output +1.0 + + +-- !query 1619 +SELECT cast(1 as float) / cast(1 as decimal(21, 0)) FROM t +-- !query 1619 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1619 output +1.0 + + +-- !query 1620 +SELECT cast(1 as float) / cast(1 as decimal(38, 0)) FROM t +-- !query 1620 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1620 output +1.0 + + +-- !query 1621 +SELECT cast(1 as float) / cast(1 as decimal(39, 0)) FROM t +-- !query 1621 schema +struct<> +-- !query 1621 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1622 +SELECT cast(1 as float) / cast(1 as decimal(1, 1)) FROM t +-- !query 1622 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1622 output +NULL + + +-- !query 1623 +SELECT cast(1 as float) / cast(1 as decimal(2, 1)) FROM t +-- !query 1623 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1623 output +1.0 + + +-- !query 1624 +SELECT cast(1 as float) / cast(1 as decimal(3, 1)) FROM t +-- !query 1624 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1624 output +1.0 + + +-- !query 1625 +SELECT cast(1 as float) / cast(1 as decimal(4, 1)) FROM t +-- !query 1625 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1625 output +1.0 + + +-- !query 1626 +SELECT cast(1 as float) / cast(1 as decimal(5, 1)) FROM t +-- !query 1626 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1626 output +1.0 + + +-- !query 1627 +SELECT cast(1 as float) / cast(1 as decimal(6, 1)) FROM t +-- !query 1627 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1627 output +1.0 + + +-- !query 1628 +SELECT cast(1 as float) / cast(1 as decimal(10, 1)) FROM t +-- !query 1628 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1628 output +1.0 + + +-- !query 1629 +SELECT cast(1 as float) / cast(1 as decimal(11, 1)) FROM t +-- !query 1629 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1629 output +1.0 + + +-- !query 1630 +SELECT cast(1 as float) / cast(1 as decimal(20, 1)) FROM t +-- !query 1630 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1630 output +1.0 + + +-- !query 1631 +SELECT cast(1 as float) / cast(1 as decimal(21, 1)) FROM t +-- !query 1631 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1631 output +1.0 + + +-- !query 1632 +SELECT cast(1 as float) / cast(1 as decimal(38, 1)) FROM t +-- !query 1632 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) AS DOUBLE)):double> +-- !query 1632 output +1.0 + + +-- !query 1633 +SELECT cast(1 as float) / cast(1 as decimal(39, 1)) FROM t +-- !query 1633 schema +struct<> +-- !query 1633 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1634 +SELECT cast(1 as double) / cast(1 as decimal(1, 0)) FROM t +-- !query 1634 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 1634 output +1.0 + + +-- !query 1635 +SELECT cast(1 as double) / cast(1 as decimal(3, 0)) FROM t +-- !query 1635 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 1635 output +1.0 + + +-- !query 1636 +SELECT cast(1 as double) / cast(1 as decimal(4, 0)) FROM t +-- !query 1636 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 1636 output +1.0 + + +-- !query 1637 +SELECT cast(1 as double) / cast(1 as decimal(5, 0)) FROM t +-- !query 1637 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 1637 output +1.0 + + +-- !query 1638 +SELECT cast(1 as double) / cast(1 as decimal(6, 0)) FROM t +-- !query 1638 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 1638 output +1.0 + + +-- !query 1639 +SELECT cast(1 as double) / cast(1 as decimal(10, 0)) FROM t +-- !query 1639 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 1639 output +1.0 + + +-- !query 1640 +SELECT cast(1 as double) / cast(1 as decimal(11, 0)) FROM t +-- !query 1640 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 1640 output +1.0 + + +-- !query 1641 +SELECT cast(1 as double) / cast(1 as decimal(20, 0)) FROM t +-- !query 1641 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 1641 output +1.0 + + +-- !query 1642 +SELECT cast(1 as double) / cast(1 as decimal(21, 0)) FROM t +-- !query 1642 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 1642 output +1.0 + + +-- !query 1643 +SELECT cast(1 as double) / cast(1 as decimal(38, 0)) FROM t +-- !query 1643 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 1643 output +1.0 + + +-- !query 1644 +SELECT cast(1 as double) / cast(1 as decimal(39, 0)) FROM t +-- !query 1644 schema +struct<> +-- !query 1644 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1645 +SELECT cast(1 as double) / cast(1 as decimal(1, 1)) FROM t +-- !query 1645 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 1645 output +NULL + + +-- !query 1646 +SELECT cast(1 as double) / cast(1 as decimal(2, 1)) FROM t +-- !query 1646 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 1646 output +1.0 + + +-- !query 1647 +SELECT cast(1 as double) / cast(1 as decimal(3, 1)) FROM t +-- !query 1647 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 1647 output +1.0 + + +-- !query 1648 +SELECT cast(1 as double) / cast(1 as decimal(4, 1)) FROM t +-- !query 1648 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 1648 output +1.0 + + +-- !query 1649 +SELECT cast(1 as double) / cast(1 as decimal(5, 1)) FROM t +-- !query 1649 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 1649 output +1.0 + + +-- !query 1650 +SELECT cast(1 as double) / cast(1 as decimal(6, 1)) FROM t +-- !query 1650 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 1650 output +1.0 + + +-- !query 1651 +SELECT cast(1 as double) / cast(1 as decimal(10, 1)) FROM t +-- !query 1651 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 1651 output +1.0 + + +-- !query 1652 +SELECT cast(1 as double) / cast(1 as decimal(11, 1)) FROM t +-- !query 1652 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 1652 output +1.0 + + +-- !query 1653 +SELECT cast(1 as double) / cast(1 as decimal(20, 1)) FROM t +-- !query 1653 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 1653 output +1.0 + + +-- !query 1654 +SELECT cast(1 as double) / cast(1 as decimal(21, 1)) FROM t +-- !query 1654 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 1654 output +1.0 + + +-- !query 1655 +SELECT cast(1 as double) / cast(1 as decimal(38, 1)) FROM t +-- !query 1655 schema +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 1655 output +1.0 + + +-- !query 1656 +SELECT cast(1 as double) / cast(1 as decimal(39, 1)) FROM t +-- !query 1656 schema +struct<> +-- !query 1656 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1657 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 0)) FROM t +-- !query 1657 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1657 output +1 + + +-- !query 1658 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 0)) FROM t +-- !query 1658 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1658 output +1 + + +-- !query 1659 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 0)) FROM t +-- !query 1659 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1659 output +1 + + +-- !query 1660 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 0)) FROM t +-- !query 1660 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1660 output +1 + + +-- !query 1661 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 0)) FROM t +-- !query 1661 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,7)> +-- !query 1661 output +1 + + +-- !query 1662 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1662 schema +struct<(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> +-- !query 1662 output +1 + + +-- !query 1663 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 0)) FROM t +-- !query 1663 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,12)> +-- !query 1663 output +1 + + +-- !query 1664 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 0)) FROM t +-- !query 1664 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> +-- !query 1664 output +1 + + +-- !query 1665 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 0)) FROM t +-- !query 1665 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,22)> +-- !query 1665 output +1 + + +-- !query 1666 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 0)) FROM t +-- !query 1666 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,32)> +-- !query 1666 output +1 + + +-- !query 1667 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 0)) FROM t +-- !query 1667 schema +struct<> +-- !query 1667 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1668 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 1)) FROM t +-- !query 1668 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1668 output +NULL + + +-- !query 1669 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(2, 1)) FROM t +-- !query 1669 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1669 output +1 + + +-- !query 1670 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 1)) FROM t +-- !query 1670 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1670 output +1 + + +-- !query 1671 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 1)) FROM t +-- !query 1671 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1671 output +1 + + +-- !query 1672 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 1)) FROM t +-- !query 1672 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(17,6)> +-- !query 1672 output +1 + + +-- !query 1673 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 1)) FROM t +-- !query 1673 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(18,7)> +-- !query 1673 output +1 + + +-- !query 1674 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 1)) FROM t +-- !query 1674 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(22,11)> +-- !query 1674 output +1 + + +-- !query 1675 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 1)) FROM t +-- !query 1675 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(23,12)> +-- !query 1675 output +1 + + +-- !query 1676 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 1)) FROM t +-- !query 1676 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(32,21)> +-- !query 1676 output +1 + + +-- !query 1677 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 1)) FROM t +-- !query 1677 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(33,22)> +-- !query 1677 output +1 + + +-- !query 1678 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 1)) FROM t +-- !query 1678 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,32)> +-- !query 1678 output +1 + + +-- !query 1679 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 1)) FROM t +-- !query 1679 schema +struct<> +-- !query 1679 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1680 +SELECT cast('1' as binary) / cast(1 as decimal(1, 0)) FROM t +-- !query 1680 schema +struct<> +-- !query 1680 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 1681 +SELECT cast('1' as binary) / cast(1 as decimal(3, 0)) FROM t +-- !query 1681 schema +struct<> +-- !query 1681 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 1682 +SELECT cast('1' as binary) / cast(1 as decimal(4, 0)) FROM t +-- !query 1682 schema +struct<> +-- !query 1682 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 1683 +SELECT cast('1' as binary) / cast(1 as decimal(5, 0)) FROM t +-- !query 1683 schema +struct<> +-- !query 1683 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 1684 +SELECT cast('1' as binary) / cast(1 as decimal(6, 0)) FROM t +-- !query 1684 schema +struct<> +-- !query 1684 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 1685 +SELECT cast('1' as binary) / cast(1 as decimal(10, 0)) FROM t +-- !query 1685 schema +struct<> +-- !query 1685 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 1686 +SELECT cast('1' as binary) / cast(1 as decimal(11, 0)) FROM t +-- !query 1686 schema +struct<> +-- !query 1686 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 1687 +SELECT cast('1' as binary) / cast(1 as decimal(20, 0)) FROM t +-- !query 1687 schema +struct<> +-- !query 1687 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 1688 +SELECT cast('1' as binary) / cast(1 as decimal(21, 0)) FROM t +-- !query 1688 schema +struct<> +-- !query 1688 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 1689 +SELECT cast('1' as binary) / cast(1 as decimal(38, 0)) FROM t +-- !query 1689 schema +struct<> +-- !query 1689 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 1690 +SELECT cast('1' as binary) / cast(1 as decimal(39, 0)) FROM t +-- !query 1690 schema +struct<> +-- !query 1690 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1691 +SELECT cast('1' as binary) / cast(1 as decimal(1, 1)) FROM t +-- !query 1691 schema +struct<> +-- !query 1691 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 1692 +SELECT cast('1' as binary) / cast(1 as decimal(2, 1)) FROM t +-- !query 1692 schema +struct<> +-- !query 1692 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 1693 +SELECT cast('1' as binary) / cast(1 as decimal(3, 1)) FROM t +-- !query 1693 schema +struct<> +-- !query 1693 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 1694 +SELECT cast('1' as binary) / cast(1 as decimal(4, 1)) FROM t +-- !query 1694 schema +struct<> +-- !query 1694 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 1695 +SELECT cast('1' as binary) / cast(1 as decimal(5, 1)) FROM t +-- !query 1695 schema +struct<> +-- !query 1695 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 1696 +SELECT cast('1' as binary) / cast(1 as decimal(6, 1)) FROM t +-- !query 1696 schema +struct<> +-- !query 1696 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 1697 +SELECT cast('1' as binary) / cast(1 as decimal(10, 1)) FROM t +-- !query 1697 schema +struct<> +-- !query 1697 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 1698 +SELECT cast('1' as binary) / cast(1 as decimal(11, 1)) FROM t +-- !query 1698 schema +struct<> +-- !query 1698 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 1699 +SELECT cast('1' as binary) / cast(1 as decimal(20, 1)) FROM t +-- !query 1699 schema +struct<> +-- !query 1699 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 1700 +SELECT cast('1' as binary) / cast(1 as decimal(21, 1)) FROM t +-- !query 1700 schema +struct<> +-- !query 1700 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 1701 +SELECT cast('1' as binary) / cast(1 as decimal(38, 1)) FROM t +-- !query 1701 schema +struct<> +-- !query 1701 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 1702 +SELECT cast('1' as binary) / cast(1 as decimal(39, 1)) FROM t +-- !query 1702 schema +struct<> +-- !query 1702 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1703 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 0)) FROM t +-- !query 1703 schema +struct<> +-- !query 1703 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 1704 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 0)) FROM t +-- !query 1704 schema +struct<> +-- !query 1704 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 1705 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 0)) FROM t +-- !query 1705 schema +struct<> +-- !query 1705 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 1706 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 0)) FROM t +-- !query 1706 schema +struct<> +-- !query 1706 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 1707 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 0)) FROM t +-- !query 1707 schema +struct<> +-- !query 1707 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 1708 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 0)) FROM t +-- !query 1708 schema +struct<> +-- !query 1708 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 1709 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 0)) FROM t +-- !query 1709 schema +struct<> +-- !query 1709 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 1710 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 0)) FROM t +-- !query 1710 schema +struct<> +-- !query 1710 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 1711 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 0)) FROM t +-- !query 1711 schema +struct<> +-- !query 1711 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 1712 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 0)) FROM t +-- !query 1712 schema +struct<> +-- !query 1712 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 1713 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 0)) FROM t +-- !query 1713 schema +struct<> +-- !query 1713 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1714 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 1)) FROM t +-- !query 1714 schema +struct<> +-- !query 1714 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 1715 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(2, 1)) FROM t +-- !query 1715 schema +struct<> +-- !query 1715 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 1716 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 1)) FROM t +-- !query 1716 schema +struct<> +-- !query 1716 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 1717 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 1)) FROM t +-- !query 1717 schema +struct<> +-- !query 1717 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 1718 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 1)) FROM t +-- !query 1718 schema +struct<> +-- !query 1718 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 1719 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 1)) FROM t +-- !query 1719 schema +struct<> +-- !query 1719 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 1720 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 1)) FROM t +-- !query 1720 schema +struct<> +-- !query 1720 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 1721 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 1)) FROM t +-- !query 1721 schema +struct<> +-- !query 1721 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 1722 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 1)) FROM t +-- !query 1722 schema +struct<> +-- !query 1722 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 1723 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 1)) FROM t +-- !query 1723 schema +struct<> +-- !query 1723 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 1724 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 1)) FROM t +-- !query 1724 schema +struct<> +-- !query 1724 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 1725 +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 1)) FROM t +-- !query 1725 schema +struct<> +-- !query 1725 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1726 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 0)) FROM t +-- !query 1726 schema +struct<> +-- !query 1726 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 1727 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 0)) FROM t +-- !query 1727 schema +struct<> +-- !query 1727 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 1728 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 0)) FROM t +-- !query 1728 schema +struct<> +-- !query 1728 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 1729 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 0)) FROM t +-- !query 1729 schema +struct<> +-- !query 1729 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 1730 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 0)) FROM t +-- !query 1730 schema +struct<> +-- !query 1730 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 1731 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 0)) FROM t +-- !query 1731 schema +struct<> +-- !query 1731 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 1732 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 0)) FROM t +-- !query 1732 schema +struct<> +-- !query 1732 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 1733 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 0)) FROM t +-- !query 1733 schema +struct<> +-- !query 1733 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 1734 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 0)) FROM t +-- !query 1734 schema +struct<> +-- !query 1734 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 1735 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 0)) FROM t +-- !query 1735 schema +struct<> +-- !query 1735 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 1736 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 0)) FROM t +-- !query 1736 schema +struct<> +-- !query 1736 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 0)) FROM t + + +-- !query 1737 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 1)) FROM t +-- !query 1737 schema +struct<> +-- !query 1737 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 1738 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(2, 1)) FROM t +-- !query 1738 schema +struct<> +-- !query 1738 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 1739 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 1)) FROM t +-- !query 1739 schema +struct<> +-- !query 1739 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 1740 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 1)) FROM t +-- !query 1740 schema +struct<> +-- !query 1740 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 1741 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 1)) FROM t +-- !query 1741 schema +struct<> +-- !query 1741 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 1742 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 1)) FROM t +-- !query 1742 schema +struct<> +-- !query 1742 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 1743 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 1)) FROM t +-- !query 1743 schema +struct<> +-- !query 1743 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 1744 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 1)) FROM t +-- !query 1744 schema +struct<> +-- !query 1744 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 1745 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 1)) FROM t +-- !query 1745 schema +struct<> +-- !query 1745 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 1746 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 1)) FROM t +-- !query 1746 schema +struct<> +-- !query 1746 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 1747 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 1)) FROM t +-- !query 1747 schema +struct<> +-- !query 1747 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 1748 +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 1)) FROM t +-- !query 1748 schema +struct<> +-- !query 1748 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 1)) FROM t + + +-- !query 1749 +SELECT cast(1 as decimal(1, 0)) / cast(1 as tinyint) FROM t +-- !query 1749 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):decimal(7,6)> +-- !query 1749 output +1 + + +-- !query 1750 +SELECT cast(1 as decimal(3, 0)) / cast(1 as tinyint) FROM t +-- !query 1750 schema +struct<(CAST(1 AS DECIMAL(3,0)) / CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(9,6)> +-- !query 1750 output +1 + + +-- !query 1751 +SELECT cast(1 as decimal(4, 0)) / cast(1 as tinyint) FROM t +-- !query 1751 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(10,6)> +-- !query 1751 output +1 + + +-- !query 1752 +SELECT cast(1 as decimal(5, 0)) / cast(1 as tinyint) FROM t +-- !query 1752 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(11,6)> +-- !query 1752 output +1 + + +-- !query 1753 +SELECT cast(1 as decimal(6, 0)) / cast(1 as tinyint) FROM t +-- !query 1753 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(12,6)> +-- !query 1753 output +1 + + +-- !query 1754 +SELECT cast(1 as decimal(10, 0)) / cast(1 as tinyint) FROM t +-- !query 1754 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1754 output +1 + + +-- !query 1755 +SELECT cast(1 as decimal(11, 0)) / cast(1 as tinyint) FROM t +-- !query 1755 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(17,6)> +-- !query 1755 output +1 + + +-- !query 1756 +SELECT cast(1 as decimal(20, 0)) / cast(1 as tinyint) FROM t +-- !query 1756 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(26,6)> +-- !query 1756 output +1 + + +-- !query 1757 +SELECT cast(1 as decimal(21, 0)) / cast(1 as tinyint) FROM t +-- !query 1757 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(27,6)> +-- !query 1757 output +1 + + +-- !query 1758 +SELECT cast(1 as decimal(38, 0)) / cast(1 as tinyint) FROM t +-- !query 1758 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,2)> +-- !query 1758 output +1 + + +-- !query 1759 +SELECT cast(1 as decimal(39, 0)) / cast(1 as tinyint) FROM t +-- !query 1759 schema +struct<> +-- !query 1759 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as tinyint) FROM t + + +-- !query 1760 +SELECT cast(1 as decimal(1, 1)) / cast(1 as tinyint) FROM t +-- !query 1760 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(6,6)> +-- !query 1760 output +NULL + + +-- !query 1761 +SELECT cast(1 as decimal(2, 1)) / cast(1 as tinyint) FROM t +-- !query 1761 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(7,6)> +-- !query 1761 output +1 + + +-- !query 1762 +SELECT cast(1 as decimal(3, 1)) / cast(1 as tinyint) FROM t +-- !query 1762 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(8,6)> +-- !query 1762 output +1 + + +-- !query 1763 +SELECT cast(1 as decimal(4, 1)) / cast(1 as tinyint) FROM t +-- !query 1763 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(9,6)> +-- !query 1763 output +1 + + +-- !query 1764 +SELECT cast(1 as decimal(5, 1)) / cast(1 as tinyint) FROM t +-- !query 1764 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(10,6)> +-- !query 1764 output +1 + + +-- !query 1765 +SELECT cast(1 as decimal(6, 1)) / cast(1 as tinyint) FROM t +-- !query 1765 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(11,6)> +-- !query 1765 output +1 + + +-- !query 1766 +SELECT cast(1 as decimal(10, 1)) / cast(1 as tinyint) FROM t +-- !query 1766 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):decimal(15,6)> +-- !query 1766 output +1 + + +-- !query 1767 +SELECT cast(1 as decimal(11, 1)) / cast(1 as tinyint) FROM t +-- !query 1767 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(16,6)> +-- !query 1767 output +1 + + +-- !query 1768 +SELECT cast(1 as decimal(20, 1)) / cast(1 as tinyint) FROM t +-- !query 1768 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):decimal(25,6)> +-- !query 1768 output +1 + + +-- !query 1769 +SELECT cast(1 as decimal(21, 1)) / cast(1 as tinyint) FROM t +-- !query 1769 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(26,6)> +-- !query 1769 output +1 + + +-- !query 1770 +SELECT cast(1 as decimal(38, 1)) / cast(1 as tinyint) FROM t +-- !query 1770 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,3)> +-- !query 1770 output +1 + + +-- !query 1771 +SELECT cast(1 as decimal(39, 1)) / cast(1 as tinyint) FROM t +-- !query 1771 schema +struct<> +-- !query 1771 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as tinyint) FROM t + + +-- !query 1772 +SELECT cast(1 as decimal(1, 0)) / cast(1 as smallint) FROM t +-- !query 1772 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(7,6)> +-- !query 1772 output +1 + + +-- !query 1773 +SELECT cast(1 as decimal(3, 0)) / cast(1 as smallint) FROM t +-- !query 1773 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,6)> +-- !query 1773 output +1 + + +-- !query 1774 +SELECT cast(1 as decimal(4, 0)) / cast(1 as smallint) FROM t +-- !query 1774 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(10,6)> +-- !query 1774 output +1 + + +-- !query 1775 +SELECT cast(1 as decimal(5, 0)) / cast(1 as smallint) FROM t +-- !query 1775 schema +struct<(CAST(1 AS DECIMAL(5,0)) / CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(11,6)> +-- !query 1775 output +1 + + +-- !query 1776 +SELECT cast(1 as decimal(6, 0)) / cast(1 as smallint) FROM t +-- !query 1776 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(12,6)> +-- !query 1776 output +1 + + +-- !query 1777 +SELECT cast(1 as decimal(10, 0)) / cast(1 as smallint) FROM t +-- !query 1777 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> +-- !query 1777 output +1 + + +-- !query 1778 +SELECT cast(1 as decimal(11, 0)) / cast(1 as smallint) FROM t +-- !query 1778 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(17,6)> +-- !query 1778 output +1 + + +-- !query 1779 +SELECT cast(1 as decimal(20, 0)) / cast(1 as smallint) FROM t +-- !query 1779 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,6)> +-- !query 1779 output +1 + + +-- !query 1780 +SELECT cast(1 as decimal(21, 0)) / cast(1 as smallint) FROM t +-- !query 1780 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(27,6)> +-- !query 1780 output +1 + + +-- !query 1781 +SELECT cast(1 as decimal(38, 0)) / cast(1 as smallint) FROM t +-- !query 1781 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,2)> +-- !query 1781 output +1 + + +-- !query 1782 +SELECT cast(1 as decimal(39, 0)) / cast(1 as smallint) FROM t +-- !query 1782 schema +struct<> +-- !query 1782 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as smallint) FROM t + + +-- !query 1783 +SELECT cast(1 as decimal(1, 1)) / cast(1 as smallint) FROM t +-- !query 1783 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(7,7)> +-- !query 1783 output +NULL + + +-- !query 1784 +SELECT cast(1 as decimal(2, 1)) / cast(1 as smallint) FROM t +-- !query 1784 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(8,7)> +-- !query 1784 output +1 + + +-- !query 1785 +SELECT cast(1 as decimal(3, 1)) / cast(1 as smallint) FROM t +-- !query 1785 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(9,7)> +-- !query 1785 output +1 + + +-- !query 1786 +SELECT cast(1 as decimal(4, 1)) / cast(1 as smallint) FROM t +-- !query 1786 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(10,7)> +-- !query 1786 output +1 + + +-- !query 1787 +SELECT cast(1 as decimal(5, 1)) / cast(1 as smallint) FROM t +-- !query 1787 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(11,7)> +-- !query 1787 output +1 + + +-- !query 1788 +SELECT cast(1 as decimal(6, 1)) / cast(1 as smallint) FROM t +-- !query 1788 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(12,7)> +-- !query 1788 output +1 + + +-- !query 1789 +SELECT cast(1 as decimal(10, 1)) / cast(1 as smallint) FROM t +-- !query 1789 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):decimal(16,7)> +-- !query 1789 output +1 + + +-- !query 1790 +SELECT cast(1 as decimal(11, 1)) / cast(1 as smallint) FROM t +-- !query 1790 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(17,7)> +-- !query 1790 output +1 + + +-- !query 1791 +SELECT cast(1 as decimal(20, 1)) / cast(1 as smallint) FROM t +-- !query 1791 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):decimal(26,7)> +-- !query 1791 output +1 + + +-- !query 1792 +SELECT cast(1 as decimal(21, 1)) / cast(1 as smallint) FROM t +-- !query 1792 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(27,7)> +-- !query 1792 output +1 + + +-- !query 1793 +SELECT cast(1 as decimal(38, 1)) / cast(1 as smallint) FROM t +-- !query 1793 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,3)> +-- !query 1793 output +1 + + +-- !query 1794 +SELECT cast(1 as decimal(39, 1)) / cast(1 as smallint) FROM t +-- !query 1794 schema +struct<> +-- !query 1794 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as smallint) FROM t + + +-- !query 1795 +SELECT cast(1 as decimal(1, 0)) / cast(1 as int) FROM t +-- !query 1795 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,11)> +-- !query 1795 output +1 + + +-- !query 1796 +SELECT cast(1 as decimal(3, 0)) / cast(1 as int) FROM t +-- !query 1796 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> +-- !query 1796 output +1 + + +-- !query 1797 +SELECT cast(1 as decimal(4, 0)) / cast(1 as int) FROM t +-- !query 1797 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,11)> +-- !query 1797 output +1 + + +-- !query 1798 +SELECT cast(1 as decimal(5, 0)) / cast(1 as int) FROM t +-- !query 1798 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> +-- !query 1798 output +1 + + +-- !query 1799 +SELECT cast(1 as decimal(6, 0)) / cast(1 as int) FROM t +-- !query 1799 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,11)> +-- !query 1799 output +1 + + +-- !query 1800 +SELECT cast(1 as decimal(10, 0)) / cast(1 as int) FROM t +-- !query 1800 schema +struct<(CAST(1 AS DECIMAL(10,0)) / CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(21,11)> +-- !query 1800 output +1 + + +-- !query 1801 +SELECT cast(1 as decimal(11, 0)) / cast(1 as int) FROM t +-- !query 1801 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,11)> +-- !query 1801 output +1 + + +-- !query 1802 +SELECT cast(1 as decimal(20, 0)) / cast(1 as int) FROM t +-- !query 1802 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> +-- !query 1802 output +1 + + +-- !query 1803 +SELECT cast(1 as decimal(21, 0)) / cast(1 as int) FROM t +-- !query 1803 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,11)> +-- !query 1803 output +1 + + +-- !query 1804 +SELECT cast(1 as decimal(38, 0)) / cast(1 as int) FROM t +-- !query 1804 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,5)> +-- !query 1804 output +1 + + +-- !query 1805 +SELECT cast(1 as decimal(39, 0)) / cast(1 as int) FROM t +-- !query 1805 schema +struct<> +-- !query 1805 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as int) FROM t + + +-- !query 1806 +SELECT cast(1 as decimal(1, 1)) / cast(1 as int) FROM t +-- !query 1806 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,12)> +-- !query 1806 output +NULL + + +-- !query 1807 +SELECT cast(1 as decimal(2, 1)) / cast(1 as int) FROM t +-- !query 1807 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,12)> +-- !query 1807 output +1 + + +-- !query 1808 +SELECT cast(1 as decimal(3, 1)) / cast(1 as int) FROM t +-- !query 1808 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,12)> +-- !query 1808 output +1 + + +-- !query 1809 +SELECT cast(1 as decimal(4, 1)) / cast(1 as int) FROM t +-- !query 1809 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,12)> +-- !query 1809 output +1 + + +-- !query 1810 +SELECT cast(1 as decimal(5, 1)) / cast(1 as int) FROM t +-- !query 1810 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,12)> +-- !query 1810 output +1 + + +-- !query 1811 +SELECT cast(1 as decimal(6, 1)) / cast(1 as int) FROM t +-- !query 1811 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,12)> +-- !query 1811 output +1 + + +-- !query 1812 +SELECT cast(1 as decimal(10, 1)) / cast(1 as int) FROM t +-- !query 1812 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,12)> +-- !query 1812 output +1 + + +-- !query 1813 +SELECT cast(1 as decimal(11, 1)) / cast(1 as int) FROM t +-- !query 1813 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,12)> +-- !query 1813 output +1 + + +-- !query 1814 +SELECT cast(1 as decimal(20, 1)) / cast(1 as int) FROM t +-- !query 1814 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,12)> +-- !query 1814 output +1 + + +-- !query 1815 +SELECT cast(1 as decimal(21, 1)) / cast(1 as int) FROM t +-- !query 1815 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,12)> +-- !query 1815 output +1 + + +-- !query 1816 +SELECT cast(1 as decimal(38, 1)) / cast(1 as int) FROM t +-- !query 1816 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,6)> +-- !query 1816 output +1 + + +-- !query 1817 +SELECT cast(1 as decimal(39, 1)) / cast(1 as int) FROM t +-- !query 1817 schema +struct<> +-- !query 1817 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as int) FROM t + + +-- !query 1818 +SELECT cast(1 as decimal(1, 0)) / cast(1 as bigint) FROM t +-- !query 1818 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(22,21)> +-- !query 1818 output +1 + + +-- !query 1819 +SELECT cast(1 as decimal(3, 0)) / cast(1 as bigint) FROM t +-- !query 1819 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,21)> +-- !query 1819 output +1 + + +-- !query 1820 +SELECT cast(1 as decimal(4, 0)) / cast(1 as bigint) FROM t +-- !query 1820 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(25,21)> +-- !query 1820 output +1 + + +-- !query 1821 +SELECT cast(1 as decimal(5, 0)) / cast(1 as bigint) FROM t +-- !query 1821 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,21)> +-- !query 1821 output +1 + + +-- !query 1822 +SELECT cast(1 as decimal(6, 0)) / cast(1 as bigint) FROM t +-- !query 1822 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(27,21)> +-- !query 1822 output +1 + + +-- !query 1823 +SELECT cast(1 as decimal(10, 0)) / cast(1 as bigint) FROM t +-- !query 1823 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> +-- !query 1823 output +1 + + +-- !query 1824 +SELECT cast(1 as decimal(11, 0)) / cast(1 as bigint) FROM t +-- !query 1824 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(32,21)> +-- !query 1824 output +1 + + +-- !query 1825 +SELECT cast(1 as decimal(20, 0)) / cast(1 as bigint) FROM t +-- !query 1825 schema +struct<(CAST(1 AS DECIMAL(20,0)) / CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(38,19)> +-- !query 1825 output +1 + + +-- !query 1826 +SELECT cast(1 as decimal(21, 0)) / cast(1 as bigint) FROM t +-- !query 1826 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(38,18)> +-- !query 1826 output +1 + + +-- !query 1827 +SELECT cast(1 as decimal(38, 0)) / cast(1 as bigint) FROM t +-- !query 1827 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,10)> +-- !query 1827 output +1 + + +-- !query 1828 +SELECT cast(1 as decimal(39, 0)) / cast(1 as bigint) FROM t +-- !query 1828 schema +struct<> +-- !query 1828 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as bigint) FROM t + + +-- !query 1829 +SELECT cast(1 as decimal(1, 1)) / cast(1 as bigint) FROM t +-- !query 1829 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(22,22)> +-- !query 1829 output +NULL + + +-- !query 1830 +SELECT cast(1 as decimal(2, 1)) / cast(1 as bigint) FROM t +-- !query 1830 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(23,22)> +-- !query 1830 output +1 + + +-- !query 1831 +SELECT cast(1 as decimal(3, 1)) / cast(1 as bigint) FROM t +-- !query 1831 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(24,22)> +-- !query 1831 output +1 + + +-- !query 1832 +SELECT cast(1 as decimal(4, 1)) / cast(1 as bigint) FROM t +-- !query 1832 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(25,22)> +-- !query 1832 output +1 + + +-- !query 1833 +SELECT cast(1 as decimal(5, 1)) / cast(1 as bigint) FROM t +-- !query 1833 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(26,22)> +-- !query 1833 output +1 + + +-- !query 1834 +SELECT cast(1 as decimal(6, 1)) / cast(1 as bigint) FROM t +-- !query 1834 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(27,22)> +-- !query 1834 output +1 + + +-- !query 1835 +SELECT cast(1 as decimal(10, 1)) / cast(1 as bigint) FROM t +-- !query 1835 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(31,22)> +-- !query 1835 output +1 + + +-- !query 1836 +SELECT cast(1 as decimal(11, 1)) / cast(1 as bigint) FROM t +-- !query 1836 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(32,22)> +-- !query 1836 output +1 + + +-- !query 1837 +SELECT cast(1 as decimal(20, 1)) / cast(1 as bigint) FROM t +-- !query 1837 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,20)> +-- !query 1837 output +1 + + +-- !query 1838 +SELECT cast(1 as decimal(21, 1)) / cast(1 as bigint) FROM t +-- !query 1838 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,19)> +-- !query 1838 output +1 + + +-- !query 1839 +SELECT cast(1 as decimal(38, 1)) / cast(1 as bigint) FROM t +-- !query 1839 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,11)> +-- !query 1839 output +1 + + +-- !query 1840 +SELECT cast(1 as decimal(39, 1)) / cast(1 as bigint) FROM t +-- !query 1840 schema +struct<> +-- !query 1840 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as bigint) FROM t + + +-- !query 1841 +SELECT cast(1 as decimal(1, 0)) / cast(1 as float) FROM t +-- !query 1841 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1841 output +1.0 + + +-- !query 1842 +SELECT cast(1 as decimal(3, 0)) / cast(1 as float) FROM t +-- !query 1842 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1842 output +1.0 + + +-- !query 1843 +SELECT cast(1 as decimal(4, 0)) / cast(1 as float) FROM t +-- !query 1843 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1843 output +1.0 + + +-- !query 1844 +SELECT cast(1 as decimal(5, 0)) / cast(1 as float) FROM t +-- !query 1844 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1844 output +1.0 + + +-- !query 1845 +SELECT cast(1 as decimal(6, 0)) / cast(1 as float) FROM t +-- !query 1845 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1845 output +1.0 + + +-- !query 1846 +SELECT cast(1 as decimal(10, 0)) / cast(1 as float) FROM t +-- !query 1846 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1846 output +1.0 + + +-- !query 1847 +SELECT cast(1 as decimal(11, 0)) / cast(1 as float) FROM t +-- !query 1847 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1847 output +1.0 + + +-- !query 1848 +SELECT cast(1 as decimal(20, 0)) / cast(1 as float) FROM t +-- !query 1848 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1848 output +1.0 + + +-- !query 1849 +SELECT cast(1 as decimal(21, 0)) / cast(1 as float) FROM t +-- !query 1849 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1849 output +1.0 + + +-- !query 1850 +SELECT cast(1 as decimal(38, 0)) / cast(1 as float) FROM t +-- !query 1850 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1850 output +1.0 + + +-- !query 1851 +SELECT cast(1 as decimal(39, 0)) / cast(1 as float) FROM t +-- !query 1851 schema +struct<> +-- !query 1851 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as float) FROM t + + +-- !query 1852 +SELECT cast(1 as decimal(1, 1)) / cast(1 as float) FROM t +-- !query 1852 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1852 output +NULL + + +-- !query 1853 +SELECT cast(1 as decimal(2, 1)) / cast(1 as float) FROM t +-- !query 1853 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1853 output +1.0 + + +-- !query 1854 +SELECT cast(1 as decimal(3, 1)) / cast(1 as float) FROM t +-- !query 1854 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1854 output +1.0 + + +-- !query 1855 +SELECT cast(1 as decimal(4, 1)) / cast(1 as float) FROM t +-- !query 1855 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1855 output +1.0 + + +-- !query 1856 +SELECT cast(1 as decimal(5, 1)) / cast(1 as float) FROM t +-- !query 1856 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1856 output +1.0 + + +-- !query 1857 +SELECT cast(1 as decimal(6, 1)) / cast(1 as float) FROM t +-- !query 1857 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1857 output +1.0 + + +-- !query 1858 +SELECT cast(1 as decimal(10, 1)) / cast(1 as float) FROM t +-- !query 1858 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1858 output +1.0 + + +-- !query 1859 +SELECT cast(1 as decimal(11, 1)) / cast(1 as float) FROM t +-- !query 1859 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1859 output +1.0 + + +-- !query 1860 +SELECT cast(1 as decimal(20, 1)) / cast(1 as float) FROM t +-- !query 1860 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1860 output +1.0 + + +-- !query 1861 +SELECT cast(1 as decimal(21, 1)) / cast(1 as float) FROM t +-- !query 1861 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1861 output +1.0 + + +-- !query 1862 +SELECT cast(1 as decimal(38, 1)) / cast(1 as float) FROM t +-- !query 1862 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 1862 output +1.0 + + +-- !query 1863 +SELECT cast(1 as decimal(39, 1)) / cast(1 as float) FROM t +-- !query 1863 schema +struct<> +-- !query 1863 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as float) FROM t + + +-- !query 1864 +SELECT cast(1 as decimal(1, 0)) / cast(1 as double) FROM t +-- !query 1864 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1864 output +1.0 + + +-- !query 1865 +SELECT cast(1 as decimal(3, 0)) / cast(1 as double) FROM t +-- !query 1865 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1865 output +1.0 + + +-- !query 1866 +SELECT cast(1 as decimal(4, 0)) / cast(1 as double) FROM t +-- !query 1866 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1866 output +1.0 + + +-- !query 1867 +SELECT cast(1 as decimal(5, 0)) / cast(1 as double) FROM t +-- !query 1867 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1867 output +1.0 + + +-- !query 1868 +SELECT cast(1 as decimal(6, 0)) / cast(1 as double) FROM t +-- !query 1868 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1868 output +1.0 + + +-- !query 1869 +SELECT cast(1 as decimal(10, 0)) / cast(1 as double) FROM t +-- !query 1869 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1869 output +1.0 + + +-- !query 1870 +SELECT cast(1 as decimal(11, 0)) / cast(1 as double) FROM t +-- !query 1870 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1870 output +1.0 + + +-- !query 1871 +SELECT cast(1 as decimal(20, 0)) / cast(1 as double) FROM t +-- !query 1871 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1871 output +1.0 + + +-- !query 1872 +SELECT cast(1 as decimal(21, 0)) / cast(1 as double) FROM t +-- !query 1872 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1872 output +1.0 + + +-- !query 1873 +SELECT cast(1 as decimal(38, 0)) / cast(1 as double) FROM t +-- !query 1873 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1873 output +1.0 + + +-- !query 1874 +SELECT cast(1 as decimal(39, 0)) / cast(1 as double) FROM t +-- !query 1874 schema +struct<> +-- !query 1874 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as double) FROM t + + +-- !query 1875 +SELECT cast(1 as decimal(1, 1)) / cast(1 as double) FROM t +-- !query 1875 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1875 output +NULL + + +-- !query 1876 +SELECT cast(1 as decimal(2, 1)) / cast(1 as double) FROM t +-- !query 1876 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1876 output +1.0 + + +-- !query 1877 +SELECT cast(1 as decimal(3, 1)) / cast(1 as double) FROM t +-- !query 1877 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1877 output +1.0 + + +-- !query 1878 +SELECT cast(1 as decimal(4, 1)) / cast(1 as double) FROM t +-- !query 1878 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1878 output +1.0 + + +-- !query 1879 +SELECT cast(1 as decimal(5, 1)) / cast(1 as double) FROM t +-- !query 1879 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1879 output +1.0 + + +-- !query 1880 +SELECT cast(1 as decimal(6, 1)) / cast(1 as double) FROM t +-- !query 1880 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1880 output +1.0 + + +-- !query 1881 +SELECT cast(1 as decimal(10, 1)) / cast(1 as double) FROM t +-- !query 1881 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1881 output +1.0 + + +-- !query 1882 +SELECT cast(1 as decimal(11, 1)) / cast(1 as double) FROM t +-- !query 1882 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1882 output +1.0 + + +-- !query 1883 +SELECT cast(1 as decimal(20, 1)) / cast(1 as double) FROM t +-- !query 1883 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1883 output +1.0 + + +-- !query 1884 +SELECT cast(1 as decimal(21, 1)) / cast(1 as double) FROM t +-- !query 1884 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1884 output +1.0 + + +-- !query 1885 +SELECT cast(1 as decimal(38, 1)) / cast(1 as double) FROM t +-- !query 1885 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> +-- !query 1885 output +1.0 + + +-- !query 1886 +SELECT cast(1 as decimal(39, 1)) / cast(1 as double) FROM t +-- !query 1886 schema +struct<> +-- !query 1886 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as double) FROM t + + +-- !query 1887 +SELECT cast(1 as decimal(1, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1887 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,11)> +-- !query 1887 output +1 + + +-- !query 1888 +SELECT cast(1 as decimal(3, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1888 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> +-- !query 1888 output +1 + + +-- !query 1889 +SELECT cast(1 as decimal(4, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1889 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,11)> +-- !query 1889 output +1 + + +-- !query 1890 +SELECT cast(1 as decimal(5, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1890 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> +-- !query 1890 output +1 + + +-- !query 1891 +SELECT cast(1 as decimal(6, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1891 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,11)> +-- !query 1891 output +1 + + +-- !query 1892 +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1892 schema +struct<(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> +-- !query 1892 output +1 + + +-- !query 1893 +SELECT cast(1 as decimal(11, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1893 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,11)> +-- !query 1893 output +1 + + +-- !query 1894 +SELECT cast(1 as decimal(20, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1894 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> +-- !query 1894 output +1 + + +-- !query 1895 +SELECT cast(1 as decimal(21, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1895 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,11)> +-- !query 1895 output +1 + + +-- !query 1896 +SELECT cast(1 as decimal(38, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1896 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,5)> +-- !query 1896 output +1 + + +-- !query 1897 +SELECT cast(1 as decimal(39, 0)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1897 schema +struct<> +-- !query 1897 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as decimal(10, 0)) FROM t + + +-- !query 1898 +SELECT cast(1 as decimal(1, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1898 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,12)> +-- !query 1898 output +NULL + + +-- !query 1899 +SELECT cast(1 as decimal(2, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1899 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,12)> +-- !query 1899 output +1 + + +-- !query 1900 +SELECT cast(1 as decimal(3, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1900 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,12)> +-- !query 1900 output +1 + + +-- !query 1901 +SELECT cast(1 as decimal(4, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1901 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,12)> +-- !query 1901 output +1 + + +-- !query 1902 +SELECT cast(1 as decimal(5, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1902 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,12)> +-- !query 1902 output +1 + + +-- !query 1903 +SELECT cast(1 as decimal(6, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1903 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,12)> +-- !query 1903 output +1 + + +-- !query 1904 +SELECT cast(1 as decimal(10, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1904 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,12)> +-- !query 1904 output +1 + + +-- !query 1905 +SELECT cast(1 as decimal(11, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1905 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,12)> +-- !query 1905 output +1 + + +-- !query 1906 +SELECT cast(1 as decimal(20, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1906 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,12)> +-- !query 1906 output +1 + + +-- !query 1907 +SELECT cast(1 as decimal(21, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1907 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,12)> +-- !query 1907 output +1 + + +-- !query 1908 +SELECT cast(1 as decimal(38, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1908 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,6)> +-- !query 1908 output +1 + + +-- !query 1909 +SELECT cast(1 as decimal(39, 1)) / cast(1 as decimal(10, 0)) FROM t +-- !query 1909 schema +struct<> +-- !query 1909 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as decimal(10, 0)) FROM t + + +-- !query 1910 +SELECT cast(1 as decimal(1, 0)) / cast(1 as string) FROM t +-- !query 1910 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1910 output +1.0 + + +-- !query 1911 +SELECT cast(1 as decimal(3, 0)) / cast(1 as string) FROM t +-- !query 1911 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1911 output +1.0 + + +-- !query 1912 +SELECT cast(1 as decimal(4, 0)) / cast(1 as string) FROM t +-- !query 1912 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1912 output +1.0 + + +-- !query 1913 +SELECT cast(1 as decimal(5, 0)) / cast(1 as string) FROM t +-- !query 1913 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1913 output +1.0 + + +-- !query 1914 +SELECT cast(1 as decimal(6, 0)) / cast(1 as string) FROM t +-- !query 1914 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1914 output +1.0 + + +-- !query 1915 +SELECT cast(1 as decimal(10, 0)) / cast(1 as string) FROM t +-- !query 1915 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1915 output +1.0 + + +-- !query 1916 +SELECT cast(1 as decimal(11, 0)) / cast(1 as string) FROM t +-- !query 1916 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1916 output +1.0 + + +-- !query 1917 +SELECT cast(1 as decimal(20, 0)) / cast(1 as string) FROM t +-- !query 1917 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1917 output +1.0 + + +-- !query 1918 +SELECT cast(1 as decimal(21, 0)) / cast(1 as string) FROM t +-- !query 1918 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1918 output +1.0 + + +-- !query 1919 +SELECT cast(1 as decimal(38, 0)) / cast(1 as string) FROM t +-- !query 1919 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1919 output +1.0 + + +-- !query 1920 +SELECT cast(1 as decimal(39, 0)) / cast(1 as string) FROM t +-- !query 1920 schema +struct<> +-- !query 1920 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as string) FROM t + + +-- !query 1921 +SELECT cast(1 as decimal(1, 1)) / cast(1 as string) FROM t +-- !query 1921 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1921 output +NULL + + +-- !query 1922 +SELECT cast(1 as decimal(2, 1)) / cast(1 as string) FROM t +-- !query 1922 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1922 output +1.0 + + +-- !query 1923 +SELECT cast(1 as decimal(3, 1)) / cast(1 as string) FROM t +-- !query 1923 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1923 output +1.0 + + +-- !query 1924 +SELECT cast(1 as decimal(4, 1)) / cast(1 as string) FROM t +-- !query 1924 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1924 output +1.0 + + +-- !query 1925 +SELECT cast(1 as decimal(5, 1)) / cast(1 as string) FROM t +-- !query 1925 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1925 output +1.0 + + +-- !query 1926 +SELECT cast(1 as decimal(6, 1)) / cast(1 as string) FROM t +-- !query 1926 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1926 output +1.0 + + +-- !query 1927 +SELECT cast(1 as decimal(10, 1)) / cast(1 as string) FROM t +-- !query 1927 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1927 output +1.0 + + +-- !query 1928 +SELECT cast(1 as decimal(11, 1)) / cast(1 as string) FROM t +-- !query 1928 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1928 output +1.0 + + +-- !query 1929 +SELECT cast(1 as decimal(20, 1)) / cast(1 as string) FROM t +-- !query 1929 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1929 output +1.0 + + +-- !query 1930 +SELECT cast(1 as decimal(21, 1)) / cast(1 as string) FROM t +-- !query 1930 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1930 output +1.0 + + +-- !query 1931 +SELECT cast(1 as decimal(38, 1)) / cast(1 as string) FROM t +-- !query 1931 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 1931 output +1.0 + + +-- !query 1932 +SELECT cast(1 as decimal(39, 1)) / cast(1 as string) FROM t +-- !query 1932 schema +struct<> +-- !query 1932 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as string) FROM t + + +-- !query 1933 +SELECT cast(1 as decimal(1, 0)) / cast('1' as binary) FROM t +-- !query 1933 schema +struct<> +-- !query 1933 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 1934 +SELECT cast(1 as decimal(3, 0)) / cast('1' as binary) FROM t +-- !query 1934 schema +struct<> +-- !query 1934 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 1935 +SELECT cast(1 as decimal(4, 0)) / cast('1' as binary) FROM t +-- !query 1935 schema +struct<> +-- !query 1935 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 1936 +SELECT cast(1 as decimal(5, 0)) / cast('1' as binary) FROM t +-- !query 1936 schema +struct<> +-- !query 1936 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 1937 +SELECT cast(1 as decimal(6, 0)) / cast('1' as binary) FROM t +-- !query 1937 schema +struct<> +-- !query 1937 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 1938 +SELECT cast(1 as decimal(10, 0)) / cast('1' as binary) FROM t +-- !query 1938 schema +struct<> +-- !query 1938 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 1939 +SELECT cast(1 as decimal(11, 0)) / cast('1' as binary) FROM t +-- !query 1939 schema +struct<> +-- !query 1939 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 1940 +SELECT cast(1 as decimal(20, 0)) / cast('1' as binary) FROM t +-- !query 1940 schema +struct<> +-- !query 1940 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 1941 +SELECT cast(1 as decimal(21, 0)) / cast('1' as binary) FROM t +-- !query 1941 schema +struct<> +-- !query 1941 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 1942 +SELECT cast(1 as decimal(38, 0)) / cast('1' as binary) FROM t +-- !query 1942 schema +struct<> +-- !query 1942 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 1943 +SELECT cast(1 as decimal(39, 0)) / cast('1' as binary) FROM t +-- !query 1943 schema +struct<> +-- !query 1943 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast('1' as binary) FROM t + + +-- !query 1944 +SELECT cast(1 as decimal(1, 1)) / cast('1' as binary) FROM t +-- !query 1944 schema +struct<> +-- !query 1944 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 1945 +SELECT cast(1 as decimal(2, 1)) / cast('1' as binary) FROM t +-- !query 1945 schema +struct<> +-- !query 1945 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 1946 +SELECT cast(1 as decimal(3, 1)) / cast('1' as binary) FROM t +-- !query 1946 schema +struct<> +-- !query 1946 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 1947 +SELECT cast(1 as decimal(4, 1)) / cast('1' as binary) FROM t +-- !query 1947 schema +struct<> +-- !query 1947 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 1948 +SELECT cast(1 as decimal(5, 1)) / cast('1' as binary) FROM t +-- !query 1948 schema +struct<> +-- !query 1948 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 1949 +SELECT cast(1 as decimal(6, 1)) / cast('1' as binary) FROM t +-- !query 1949 schema +struct<> +-- !query 1949 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 1950 +SELECT cast(1 as decimal(10, 1)) / cast('1' as binary) FROM t +-- !query 1950 schema +struct<> +-- !query 1950 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 1951 +SELECT cast(1 as decimal(11, 1)) / cast('1' as binary) FROM t +-- !query 1951 schema +struct<> +-- !query 1951 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 1952 +SELECT cast(1 as decimal(20, 1)) / cast('1' as binary) FROM t +-- !query 1952 schema +struct<> +-- !query 1952 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 1953 +SELECT cast(1 as decimal(21, 1)) / cast('1' as binary) FROM t +-- !query 1953 schema +struct<> +-- !query 1953 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 1954 +SELECT cast(1 as decimal(38, 1)) / cast('1' as binary) FROM t +-- !query 1954 schema +struct<> +-- !query 1954 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 1955 +SELECT cast(1 as decimal(39, 1)) / cast('1' as binary) FROM t +-- !query 1955 schema +struct<> +-- !query 1955 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast('1' as binary) FROM t + + +-- !query 1956 +SELECT cast(1 as decimal(1, 0)) / cast(1 as boolean) FROM t +-- !query 1956 schema +struct<> +-- !query 1956 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 1957 +SELECT cast(1 as decimal(3, 0)) / cast(1 as boolean) FROM t +-- !query 1957 schema +struct<> +-- !query 1957 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 1958 +SELECT cast(1 as decimal(4, 0)) / cast(1 as boolean) FROM t +-- !query 1958 schema +struct<> +-- !query 1958 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 1959 +SELECT cast(1 as decimal(5, 0)) / cast(1 as boolean) FROM t +-- !query 1959 schema +struct<> +-- !query 1959 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 1960 +SELECT cast(1 as decimal(6, 0)) / cast(1 as boolean) FROM t +-- !query 1960 schema +struct<> +-- !query 1960 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 1961 +SELECT cast(1 as decimal(10, 0)) / cast(1 as boolean) FROM t +-- !query 1961 schema +struct<> +-- !query 1961 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 1962 +SELECT cast(1 as decimal(11, 0)) / cast(1 as boolean) FROM t +-- !query 1962 schema +struct<> +-- !query 1962 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 1963 +SELECT cast(1 as decimal(20, 0)) / cast(1 as boolean) FROM t +-- !query 1963 schema +struct<> +-- !query 1963 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 1964 +SELECT cast(1 as decimal(21, 0)) / cast(1 as boolean) FROM t +-- !query 1964 schema +struct<> +-- !query 1964 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 1965 +SELECT cast(1 as decimal(38, 0)) / cast(1 as boolean) FROM t +-- !query 1965 schema +struct<> +-- !query 1965 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 1966 +SELECT cast(1 as decimal(39, 0)) / cast(1 as boolean) FROM t +-- !query 1966 schema +struct<> +-- !query 1966 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast(1 as boolean) FROM t + + +-- !query 1967 +SELECT cast(1 as decimal(1, 1)) / cast(1 as boolean) FROM t +-- !query 1967 schema +struct<> +-- !query 1967 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 1968 +SELECT cast(1 as decimal(2, 1)) / cast(1 as boolean) FROM t +-- !query 1968 schema +struct<> +-- !query 1968 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 1969 +SELECT cast(1 as decimal(3, 1)) / cast(1 as boolean) FROM t +-- !query 1969 schema +struct<> +-- !query 1969 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 1970 +SELECT cast(1 as decimal(4, 1)) / cast(1 as boolean) FROM t +-- !query 1970 schema +struct<> +-- !query 1970 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 1971 +SELECT cast(1 as decimal(5, 1)) / cast(1 as boolean) FROM t +-- !query 1971 schema +struct<> +-- !query 1971 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 1972 +SELECT cast(1 as decimal(6, 1)) / cast(1 as boolean) FROM t +-- !query 1972 schema +struct<> +-- !query 1972 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 1973 +SELECT cast(1 as decimal(10, 1)) / cast(1 as boolean) FROM t +-- !query 1973 schema +struct<> +-- !query 1973 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 1974 +SELECT cast(1 as decimal(11, 1)) / cast(1 as boolean) FROM t +-- !query 1974 schema +struct<> +-- !query 1974 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 1975 +SELECT cast(1 as decimal(20, 1)) / cast(1 as boolean) FROM t +-- !query 1975 schema +struct<> +-- !query 1975 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 1976 +SELECT cast(1 as decimal(21, 1)) / cast(1 as boolean) FROM t +-- !query 1976 schema +struct<> +-- !query 1976 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 1977 +SELECT cast(1 as decimal(38, 1)) / cast(1 as boolean) FROM t +-- !query 1977 schema +struct<> +-- !query 1977 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 1978 +SELECT cast(1 as decimal(39, 1)) / cast(1 as boolean) FROM t +-- !query 1978 schema +struct<> +-- !query 1978 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast(1 as boolean) FROM t + + +-- !query 1979 +SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1979 schema +struct<> +-- !query 1979 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 1980 +SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1980 schema +struct<> +-- !query 1980 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 1981 +SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1981 schema +struct<> +-- !query 1981 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 1982 +SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1982 schema +struct<> +-- !query 1982 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 1983 +SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1983 schema +struct<> +-- !query 1983 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 1984 +SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1984 schema +struct<> +-- !query 1984 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 1985 +SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1985 schema +struct<> +-- !query 1985 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 1986 +SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1986 schema +struct<> +-- !query 1986 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 1987 +SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1987 schema +struct<> +-- !query 1987 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 1988 +SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1988 schema +struct<> +-- !query 1988 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 1989 +SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1989 schema +struct<> +-- !query 1989 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t + + +-- !query 1990 +SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1990 schema +struct<> +-- !query 1990 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 1991 +SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1991 schema +struct<> +-- !query 1991 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 1992 +SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1992 schema +struct<> +-- !query 1992 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 1993 +SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1993 schema +struct<> +-- !query 1993 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 1994 +SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1994 schema +struct<> +-- !query 1994 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 1995 +SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1995 schema +struct<> +-- !query 1995 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 1996 +SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1996 schema +struct<> +-- !query 1996 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 1997 +SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1997 schema +struct<> +-- !query 1997 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 1998 +SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1998 schema +struct<> +-- !query 1998 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 1999 +SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 1999 schema +struct<> +-- !query 1999 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 2000 +SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 2000 schema +struct<> +-- !query 2000 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 2001 +SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t +-- !query 2001 schema +struct<> +-- !query 2001 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t + + +-- !query 2002 +SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2002 schema +struct<> +-- !query 2002 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 2003 +SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2003 schema +struct<> +-- !query 2003 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 2004 +SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2004 schema +struct<> +-- !query 2004 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 2005 +SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2005 schema +struct<> +-- !query 2005 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 2006 +SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2006 schema +struct<> +-- !query 2006 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 2007 +SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2007 schema +struct<> +-- !query 2007 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 2008 +SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2008 schema +struct<> +-- !query 2008 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 2009 +SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2009 schema +struct<> +-- !query 2009 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 2010 +SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2010 schema +struct<> +-- !query 2010 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 2011 +SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2011 schema +struct<> +-- !query 2011 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 2012 +SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2012 schema +struct<> +-- !query 2012 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00' as date) FROM t + + +-- !query 2013 +SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2013 schema +struct<> +-- !query 2013 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 2014 +SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2014 schema +struct<> +-- !query 2014 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 2015 +SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2015 schema +struct<> +-- !query 2015 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 2016 +SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2016 schema +struct<> +-- !query 2016 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 2017 +SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2017 schema +struct<> +-- !query 2017 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 2018 +SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2018 schema +struct<> +-- !query 2018 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 2019 +SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2019 schema +struct<> +-- !query 2019 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 2020 +SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2020 schema +struct<> +-- !query 2020 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 2021 +SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2021 schema +struct<> +-- !query 2021 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 2022 +SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2022 schema +struct<> +-- !query 2022 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 2023 +SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2023 schema +struct<> +-- !query 2023 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 2024 +SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00' as date) FROM t +-- !query 2024 schema +struct<> +-- !query 2024 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00' as date) FROM t + + +-- !query 2025 +SELECT cast(1 as tinyint) % cast(1 as decimal(1, 0)) FROM t +-- !query 2025 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):decimal(1,0)> +-- !query 2025 output +0 + + +-- !query 2026 +SELECT cast(1 as tinyint) % cast(1 as decimal(3, 0)) FROM t +-- !query 2026 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) % CAST(1 AS DECIMAL(3,0))):decimal(3,0)> +-- !query 2026 output +0 + + +-- !query 2027 +SELECT cast(1 as tinyint) % cast(1 as decimal(4, 0)) FROM t +-- !query 2027 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):decimal(3,0)> +-- !query 2027 output +0 + + +-- !query 2028 +SELECT cast(1 as tinyint) % cast(1 as decimal(5, 0)) FROM t +-- !query 2028 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(3,0)> +-- !query 2028 output +0 + + +-- !query 2029 +SELECT cast(1 as tinyint) % cast(1 as decimal(6, 0)) FROM t +-- !query 2029 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(3,0)> +-- !query 2029 output +0 + + +-- !query 2030 +SELECT cast(1 as tinyint) % cast(1 as decimal(10, 0)) FROM t +-- !query 2030 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> +-- !query 2030 output +0 + + +-- !query 2031 +SELECT cast(1 as tinyint) % cast(1 as decimal(11, 0)) FROM t +-- !query 2031 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(3,0)> +-- !query 2031 output +0 + + +-- !query 2032 +SELECT cast(1 as tinyint) % cast(1 as decimal(20, 0)) FROM t +-- !query 2032 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(3,0)> +-- !query 2032 output +0 + + +-- !query 2033 +SELECT cast(1 as tinyint) % cast(1 as decimal(21, 0)) FROM t +-- !query 2033 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(3,0)> +-- !query 2033 output +0 + + +-- !query 2034 +SELECT cast(1 as tinyint) % cast(1 as decimal(38, 0)) FROM t +-- !query 2034 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(3,0)> +-- !query 2034 output +0 + + +-- !query 2035 +SELECT cast(1 as tinyint) % cast(1 as decimal(39, 0)) FROM t +-- !query 2035 schema +struct<> +-- !query 2035 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2036 +SELECT cast(1 as tinyint) % cast(1 as decimal(1, 1)) FROM t +-- !query 2036 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):decimal(1,1)> +-- !query 2036 output +NULL + + +-- !query 2037 +SELECT cast(1 as tinyint) % cast(1 as decimal(2, 1)) FROM t +-- !query 2037 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):decimal(2,1)> +-- !query 2037 output +0 + + +-- !query 2038 +SELECT cast(1 as tinyint) % cast(1 as decimal(3, 1)) FROM t +-- !query 2038 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):decimal(3,1)> +-- !query 2038 output +0 + + +-- !query 2039 +SELECT cast(1 as tinyint) % cast(1 as decimal(4, 1)) FROM t +-- !query 2039 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):decimal(4,1)> +-- !query 2039 output +0 + + +-- !query 2040 +SELECT cast(1 as tinyint) % cast(1 as decimal(5, 1)) FROM t +-- !query 2040 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):decimal(4,1)> +-- !query 2040 output +0 + + +-- !query 2041 +SELECT cast(1 as tinyint) % cast(1 as decimal(6, 1)) FROM t +-- !query 2041 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(4,1)> +-- !query 2041 output +0 + + +-- !query 2042 +SELECT cast(1 as tinyint) % cast(1 as decimal(10, 1)) FROM t +-- !query 2042 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(4,1)> +-- !query 2042 output +0 + + +-- !query 2043 +SELECT cast(1 as tinyint) % cast(1 as decimal(11, 1)) FROM t +-- !query 2043 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(4,1)> +-- !query 2043 output +0 + + +-- !query 2044 +SELECT cast(1 as tinyint) % cast(1 as decimal(20, 1)) FROM t +-- !query 2044 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(4,1)> +-- !query 2044 output +0 + + +-- !query 2045 +SELECT cast(1 as tinyint) % cast(1 as decimal(21, 1)) FROM t +-- !query 2045 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(4,1)> +-- !query 2045 output +0 + + +-- !query 2046 +SELECT cast(1 as tinyint) % cast(1 as decimal(38, 1)) FROM t +-- !query 2046 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(4,1)> +-- !query 2046 output +0 + + +-- !query 2047 +SELECT cast(1 as tinyint) % cast(1 as decimal(39, 1)) FROM t +-- !query 2047 schema +struct<> +-- !query 2047 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2048 +SELECT cast(1 as smallint) % cast(1 as decimal(1, 0)) FROM t +-- !query 2048 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):decimal(1,0)> +-- !query 2048 output +0 + + +-- !query 2049 +SELECT cast(1 as smallint) % cast(1 as decimal(3, 0)) FROM t +-- !query 2049 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(3,0)> +-- !query 2049 output +0 + + +-- !query 2050 +SELECT cast(1 as smallint) % cast(1 as decimal(4, 0)) FROM t +-- !query 2050 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(4,0)> +-- !query 2050 output +0 + + +-- !query 2051 +SELECT cast(1 as smallint) % cast(1 as decimal(5, 0)) FROM t +-- !query 2051 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) % CAST(1 AS DECIMAL(5,0))):decimal(5,0)> +-- !query 2051 output +0 + + +-- !query 2052 +SELECT cast(1 as smallint) % cast(1 as decimal(6, 0)) FROM t +-- !query 2052 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(5,0)> +-- !query 2052 output +0 + + +-- !query 2053 +SELECT cast(1 as smallint) % cast(1 as decimal(10, 0)) FROM t +-- !query 2053 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> +-- !query 2053 output +0 + + +-- !query 2054 +SELECT cast(1 as smallint) % cast(1 as decimal(11, 0)) FROM t +-- !query 2054 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(5,0)> +-- !query 2054 output +0 + + +-- !query 2055 +SELECT cast(1 as smallint) % cast(1 as decimal(20, 0)) FROM t +-- !query 2055 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(5,0)> +-- !query 2055 output +0 + + +-- !query 2056 +SELECT cast(1 as smallint) % cast(1 as decimal(21, 0)) FROM t +-- !query 2056 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(5,0)> +-- !query 2056 output +0 + + +-- !query 2057 +SELECT cast(1 as smallint) % cast(1 as decimal(38, 0)) FROM t +-- !query 2057 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(5,0)> +-- !query 2057 output +0 + + +-- !query 2058 +SELECT cast(1 as smallint) % cast(1 as decimal(39, 0)) FROM t +-- !query 2058 schema +struct<> +-- !query 2058 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2059 +SELECT cast(1 as smallint) % cast(1 as decimal(1, 1)) FROM t +-- !query 2059 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):decimal(1,1)> +-- !query 2059 output +NULL + + +-- !query 2060 +SELECT cast(1 as smallint) % cast(1 as decimal(2, 1)) FROM t +-- !query 2060 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):decimal(2,1)> +-- !query 2060 output +0 + + +-- !query 2061 +SELECT cast(1 as smallint) % cast(1 as decimal(3, 1)) FROM t +-- !query 2061 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):decimal(3,1)> +-- !query 2061 output +0 + + +-- !query 2062 +SELECT cast(1 as smallint) % cast(1 as decimal(4, 1)) FROM t +-- !query 2062 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):decimal(4,1)> +-- !query 2062 output +0 + + +-- !query 2063 +SELECT cast(1 as smallint) % cast(1 as decimal(5, 1)) FROM t +-- !query 2063 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(5,1)> +-- !query 2063 output +0 + + +-- !query 2064 +SELECT cast(1 as smallint) % cast(1 as decimal(6, 1)) FROM t +-- !query 2064 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(6,1)> +-- !query 2064 output +0 + + +-- !query 2065 +SELECT cast(1 as smallint) % cast(1 as decimal(10, 1)) FROM t +-- !query 2065 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(6,1)> +-- !query 2065 output +0 + + +-- !query 2066 +SELECT cast(1 as smallint) % cast(1 as decimal(11, 1)) FROM t +-- !query 2066 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(6,1)> +-- !query 2066 output +0 + + +-- !query 2067 +SELECT cast(1 as smallint) % cast(1 as decimal(20, 1)) FROM t +-- !query 2067 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(6,1)> +-- !query 2067 output +0 + + +-- !query 2068 +SELECT cast(1 as smallint) % cast(1 as decimal(21, 1)) FROM t +-- !query 2068 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(6,1)> +-- !query 2068 output +0 + + +-- !query 2069 +SELECT cast(1 as smallint) % cast(1 as decimal(38, 1)) FROM t +-- !query 2069 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(6,1)> +-- !query 2069 output +0 + + +-- !query 2070 +SELECT cast(1 as smallint) % cast(1 as decimal(39, 1)) FROM t +-- !query 2070 schema +struct<> +-- !query 2070 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2071 +SELECT cast(1 as int) % cast(1 as decimal(1, 0)) FROM t +-- !query 2071 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(1,0)> +-- !query 2071 output +0 + + +-- !query 2072 +SELECT cast(1 as int) % cast(1 as decimal(3, 0)) FROM t +-- !query 2072 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> +-- !query 2072 output +0 + + +-- !query 2073 +SELECT cast(1 as int) % cast(1 as decimal(4, 0)) FROM t +-- !query 2073 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(4,0)> +-- !query 2073 output +0 + + +-- !query 2074 +SELECT cast(1 as int) % cast(1 as decimal(5, 0)) FROM t +-- !query 2074 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> +-- !query 2074 output +0 + + +-- !query 2075 +SELECT cast(1 as int) % cast(1 as decimal(6, 0)) FROM t +-- !query 2075 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(6,0)> +-- !query 2075 output +0 + + +-- !query 2076 +SELECT cast(1 as int) % cast(1 as decimal(10, 0)) FROM t +-- !query 2076 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> +-- !query 2076 output +0 + + +-- !query 2077 +SELECT cast(1 as int) % cast(1 as decimal(11, 0)) FROM t +-- !query 2077 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(10,0)> +-- !query 2077 output +0 + + +-- !query 2078 +SELECT cast(1 as int) % cast(1 as decimal(20, 0)) FROM t +-- !query 2078 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> +-- !query 2078 output +0 + + +-- !query 2079 +SELECT cast(1 as int) % cast(1 as decimal(21, 0)) FROM t +-- !query 2079 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(10,0)> +-- !query 2079 output +0 + + +-- !query 2080 +SELECT cast(1 as int) % cast(1 as decimal(38, 0)) FROM t +-- !query 2080 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(10,0)> +-- !query 2080 output +0 + + +-- !query 2081 +SELECT cast(1 as int) % cast(1 as decimal(39, 0)) FROM t +-- !query 2081 schema +struct<> +-- !query 2081 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2082 +SELECT cast(1 as int) % cast(1 as decimal(1, 1)) FROM t +-- !query 2082 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(1,1)> +-- !query 2082 output +NULL + + +-- !query 2083 +SELECT cast(1 as int) % cast(1 as decimal(2, 1)) FROM t +-- !query 2083 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(2,1)> +-- !query 2083 output +0 + + +-- !query 2084 +SELECT cast(1 as int) % cast(1 as decimal(3, 1)) FROM t +-- !query 2084 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(3,1)> +-- !query 2084 output +0 + + +-- !query 2085 +SELECT cast(1 as int) % cast(1 as decimal(4, 1)) FROM t +-- !query 2085 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(4,1)> +-- !query 2085 output +0 + + +-- !query 2086 +SELECT cast(1 as int) % cast(1 as decimal(5, 1)) FROM t +-- !query 2086 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(5,1)> +-- !query 2086 output +0 + + +-- !query 2087 +SELECT cast(1 as int) % cast(1 as decimal(6, 1)) FROM t +-- !query 2087 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(6,1)> +-- !query 2087 output +0 + + +-- !query 2088 +SELECT cast(1 as int) % cast(1 as decimal(10, 1)) FROM t +-- !query 2088 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(10,1)> +-- !query 2088 output +0 + + +-- !query 2089 +SELECT cast(1 as int) % cast(1 as decimal(11, 1)) FROM t +-- !query 2089 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 2089 output +0 + + +-- !query 2090 +SELECT cast(1 as int) % cast(1 as decimal(20, 1)) FROM t +-- !query 2090 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(11,1)> +-- !query 2090 output +0 + + +-- !query 2091 +SELECT cast(1 as int) % cast(1 as decimal(21, 1)) FROM t +-- !query 2091 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(11,1)> +-- !query 2091 output +0 + + +-- !query 2092 +SELECT cast(1 as int) % cast(1 as decimal(38, 1)) FROM t +-- !query 2092 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(11,1)> +-- !query 2092 output +0 + + +-- !query 2093 +SELECT cast(1 as int) % cast(1 as decimal(39, 1)) FROM t +-- !query 2093 schema +struct<> +-- !query 2093 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2094 +SELECT cast(1 as bigint) % cast(1 as decimal(1, 0)) FROM t +-- !query 2094 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):decimal(1,0)> +-- !query 2094 output +0 + + +-- !query 2095 +SELECT cast(1 as bigint) % cast(1 as decimal(3, 0)) FROM t +-- !query 2095 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(3,0)> +-- !query 2095 output +0 + + +-- !query 2096 +SELECT cast(1 as bigint) % cast(1 as decimal(4, 0)) FROM t +-- !query 2096 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):decimal(4,0)> +-- !query 2096 output +0 + + +-- !query 2097 +SELECT cast(1 as bigint) % cast(1 as decimal(5, 0)) FROM t +-- !query 2097 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(5,0)> +-- !query 2097 output +0 + + +-- !query 2098 +SELECT cast(1 as bigint) % cast(1 as decimal(6, 0)) FROM t +-- !query 2098 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):decimal(6,0)> +-- !query 2098 output +0 + + +-- !query 2099 +SELECT cast(1 as bigint) % cast(1 as decimal(10, 0)) FROM t +-- !query 2099 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> +-- !query 2099 output +0 + + +-- !query 2100 +SELECT cast(1 as bigint) % cast(1 as decimal(11, 0)) FROM t +-- !query 2100 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):decimal(11,0)> +-- !query 2100 output +0 + + +-- !query 2101 +SELECT cast(1 as bigint) % cast(1 as decimal(20, 0)) FROM t +-- !query 2101 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) % CAST(1 AS DECIMAL(20,0))):decimal(20,0)> +-- !query 2101 output +0 + + +-- !query 2102 +SELECT cast(1 as bigint) % cast(1 as decimal(21, 0)) FROM t +-- !query 2102 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(20,0)> +-- !query 2102 output +0 + + +-- !query 2103 +SELECT cast(1 as bigint) % cast(1 as decimal(38, 0)) FROM t +-- !query 2103 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(20,0)> +-- !query 2103 output +0 + + +-- !query 2104 +SELECT cast(1 as bigint) % cast(1 as decimal(39, 0)) FROM t +-- !query 2104 schema +struct<> +-- !query 2104 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2105 +SELECT cast(1 as bigint) % cast(1 as decimal(1, 1)) FROM t +-- !query 2105 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):decimal(1,1)> +-- !query 2105 output +NULL + + +-- !query 2106 +SELECT cast(1 as bigint) % cast(1 as decimal(2, 1)) FROM t +-- !query 2106 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):decimal(2,1)> +-- !query 2106 output +0 + + +-- !query 2107 +SELECT cast(1 as bigint) % cast(1 as decimal(3, 1)) FROM t +-- !query 2107 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):decimal(3,1)> +-- !query 2107 output +0 + + +-- !query 2108 +SELECT cast(1 as bigint) % cast(1 as decimal(4, 1)) FROM t +-- !query 2108 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):decimal(4,1)> +-- !query 2108 output +0 + + +-- !query 2109 +SELECT cast(1 as bigint) % cast(1 as decimal(5, 1)) FROM t +-- !query 2109 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):decimal(5,1)> +-- !query 2109 output +0 + + +-- !query 2110 +SELECT cast(1 as bigint) % cast(1 as decimal(6, 1)) FROM t +-- !query 2110 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):decimal(6,1)> +-- !query 2110 output +0 + + +-- !query 2111 +SELECT cast(1 as bigint) % cast(1 as decimal(10, 1)) FROM t +-- !query 2111 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):decimal(10,1)> +-- !query 2111 output +0 + + +-- !query 2112 +SELECT cast(1 as bigint) % cast(1 as decimal(11, 1)) FROM t +-- !query 2112 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):decimal(11,1)> +-- !query 2112 output +0 + + +-- !query 2113 +SELECT cast(1 as bigint) % cast(1 as decimal(20, 1)) FROM t +-- !query 2113 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(20,1)> +-- !query 2113 output +0 + + +-- !query 2114 +SELECT cast(1 as bigint) % cast(1 as decimal(21, 1)) FROM t +-- !query 2114 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 2114 output +0 + + +-- !query 2115 +SELECT cast(1 as bigint) % cast(1 as decimal(38, 1)) FROM t +-- !query 2115 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(21,1)> +-- !query 2115 output +0 + + +-- !query 2116 +SELECT cast(1 as bigint) % cast(1 as decimal(39, 1)) FROM t +-- !query 2116 schema +struct<> +-- !query 2116 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2117 +SELECT cast(1 as float) % cast(1 as decimal(1, 0)) FROM t +-- !query 2117 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 2117 output +0.0 + + +-- !query 2118 +SELECT cast(1 as float) % cast(1 as decimal(3, 0)) FROM t +-- !query 2118 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 2118 output +0.0 + + +-- !query 2119 +SELECT cast(1 as float) % cast(1 as decimal(4, 0)) FROM t +-- !query 2119 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 2119 output +0.0 + + +-- !query 2120 +SELECT cast(1 as float) % cast(1 as decimal(5, 0)) FROM t +-- !query 2120 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 2120 output +0.0 + + +-- !query 2121 +SELECT cast(1 as float) % cast(1 as decimal(6, 0)) FROM t +-- !query 2121 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 2121 output +0.0 + + +-- !query 2122 +SELECT cast(1 as float) % cast(1 as decimal(10, 0)) FROM t +-- !query 2122 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 2122 output +0.0 + + +-- !query 2123 +SELECT cast(1 as float) % cast(1 as decimal(11, 0)) FROM t +-- !query 2123 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 2123 output +0.0 + + +-- !query 2124 +SELECT cast(1 as float) % cast(1 as decimal(20, 0)) FROM t +-- !query 2124 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 2124 output +0.0 + + +-- !query 2125 +SELECT cast(1 as float) % cast(1 as decimal(21, 0)) FROM t +-- !query 2125 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 2125 output +0.0 + + +-- !query 2126 +SELECT cast(1 as float) % cast(1 as decimal(38, 0)) FROM t +-- !query 2126 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 2126 output +0.0 + + +-- !query 2127 +SELECT cast(1 as float) % cast(1 as decimal(39, 0)) FROM t +-- !query 2127 schema +struct<> +-- !query 2127 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2128 +SELECT cast(1 as float) % cast(1 as decimal(1, 1)) FROM t +-- !query 2128 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 2128 output +NULL + + +-- !query 2129 +SELECT cast(1 as float) % cast(1 as decimal(2, 1)) FROM t +-- !query 2129 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 2129 output +0.0 + + +-- !query 2130 +SELECT cast(1 as float) % cast(1 as decimal(3, 1)) FROM t +-- !query 2130 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 2130 output +0.0 + + +-- !query 2131 +SELECT cast(1 as float) % cast(1 as decimal(4, 1)) FROM t +-- !query 2131 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 2131 output +0.0 + + +-- !query 2132 +SELECT cast(1 as float) % cast(1 as decimal(5, 1)) FROM t +-- !query 2132 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 2132 output +0.0 + + +-- !query 2133 +SELECT cast(1 as float) % cast(1 as decimal(6, 1)) FROM t +-- !query 2133 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 2133 output +0.0 + + +-- !query 2134 +SELECT cast(1 as float) % cast(1 as decimal(10, 1)) FROM t +-- !query 2134 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 2134 output +0.0 + + +-- !query 2135 +SELECT cast(1 as float) % cast(1 as decimal(11, 1)) FROM t +-- !query 2135 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 2135 output +0.0 + + +-- !query 2136 +SELECT cast(1 as float) % cast(1 as decimal(20, 1)) FROM t +-- !query 2136 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 2136 output +0.0 + + +-- !query 2137 +SELECT cast(1 as float) % cast(1 as decimal(21, 1)) FROM t +-- !query 2137 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 2137 output +0.0 + + +-- !query 2138 +SELECT cast(1 as float) % cast(1 as decimal(38, 1)) FROM t +-- !query 2138 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 2138 output +0.0 + + +-- !query 2139 +SELECT cast(1 as float) % cast(1 as decimal(39, 1)) FROM t +-- !query 2139 schema +struct<> +-- !query 2139 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2140 +SELECT cast(1 as double) % cast(1 as decimal(1, 0)) FROM t +-- !query 2140 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +-- !query 2140 output +0.0 + + +-- !query 2141 +SELECT cast(1 as double) % cast(1 as decimal(3, 0)) FROM t +-- !query 2141 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +-- !query 2141 output +0.0 + + +-- !query 2142 +SELECT cast(1 as double) % cast(1 as decimal(4, 0)) FROM t +-- !query 2142 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +-- !query 2142 output +0.0 + + +-- !query 2143 +SELECT cast(1 as double) % cast(1 as decimal(5, 0)) FROM t +-- !query 2143 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +-- !query 2143 output +0.0 + + +-- !query 2144 +SELECT cast(1 as double) % cast(1 as decimal(6, 0)) FROM t +-- !query 2144 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +-- !query 2144 output +0.0 + + +-- !query 2145 +SELECT cast(1 as double) % cast(1 as decimal(10, 0)) FROM t +-- !query 2145 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +-- !query 2145 output +0.0 + + +-- !query 2146 +SELECT cast(1 as double) % cast(1 as decimal(11, 0)) FROM t +-- !query 2146 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +-- !query 2146 output +0.0 + + +-- !query 2147 +SELECT cast(1 as double) % cast(1 as decimal(20, 0)) FROM t +-- !query 2147 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +-- !query 2147 output +0.0 + + +-- !query 2148 +SELECT cast(1 as double) % cast(1 as decimal(21, 0)) FROM t +-- !query 2148 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +-- !query 2148 output +0.0 + + +-- !query 2149 +SELECT cast(1 as double) % cast(1 as decimal(38, 0)) FROM t +-- !query 2149 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +-- !query 2149 output +0.0 + + +-- !query 2150 +SELECT cast(1 as double) % cast(1 as decimal(39, 0)) FROM t +-- !query 2150 schema +struct<> +-- !query 2150 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2151 +SELECT cast(1 as double) % cast(1 as decimal(1, 1)) FROM t +-- !query 2151 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +-- !query 2151 output +NULL + + +-- !query 2152 +SELECT cast(1 as double) % cast(1 as decimal(2, 1)) FROM t +-- !query 2152 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +-- !query 2152 output +0.0 + + +-- !query 2153 +SELECT cast(1 as double) % cast(1 as decimal(3, 1)) FROM t +-- !query 2153 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +-- !query 2153 output +0.0 + + +-- !query 2154 +SELECT cast(1 as double) % cast(1 as decimal(4, 1)) FROM t +-- !query 2154 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +-- !query 2154 output +0.0 + + +-- !query 2155 +SELECT cast(1 as double) % cast(1 as decimal(5, 1)) FROM t +-- !query 2155 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +-- !query 2155 output +0.0 + + +-- !query 2156 +SELECT cast(1 as double) % cast(1 as decimal(6, 1)) FROM t +-- !query 2156 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +-- !query 2156 output +0.0 + + +-- !query 2157 +SELECT cast(1 as double) % cast(1 as decimal(10, 1)) FROM t +-- !query 2157 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +-- !query 2157 output +0.0 + + +-- !query 2158 +SELECT cast(1 as double) % cast(1 as decimal(11, 1)) FROM t +-- !query 2158 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +-- !query 2158 output +0.0 + + +-- !query 2159 +SELECT cast(1 as double) % cast(1 as decimal(20, 1)) FROM t +-- !query 2159 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +-- !query 2159 output +0.0 + + +-- !query 2160 +SELECT cast(1 as double) % cast(1 as decimal(21, 1)) FROM t +-- !query 2160 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +-- !query 2160 output +0.0 + + +-- !query 2161 +SELECT cast(1 as double) % cast(1 as decimal(38, 1)) FROM t +-- !query 2161 schema +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +-- !query 2161 output +0.0 + + +-- !query 2162 +SELECT cast(1 as double) % cast(1 as decimal(39, 1)) FROM t +-- !query 2162 schema +struct<> +-- !query 2162 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2163 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 0)) FROM t +-- !query 2163 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(1,0)> +-- !query 2163 output +0 + + +-- !query 2164 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 0)) FROM t +-- !query 2164 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> +-- !query 2164 output +0 + + +-- !query 2165 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 0)) FROM t +-- !query 2165 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(4,0)> +-- !query 2165 output +0 + + +-- !query 2166 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 0)) FROM t +-- !query 2166 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> +-- !query 2166 output +0 + + +-- !query 2167 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 0)) FROM t +-- !query 2167 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(6,0)> +-- !query 2167 output +0 + + +-- !query 2168 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2168 schema +struct<(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> +-- !query 2168 output +0 + + +-- !query 2169 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 0)) FROM t +-- !query 2169 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(10,0)> +-- !query 2169 output +0 + + +-- !query 2170 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 0)) FROM t +-- !query 2170 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> +-- !query 2170 output +0 + + +-- !query 2171 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 0)) FROM t +-- !query 2171 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(10,0)> +-- !query 2171 output +0 + + +-- !query 2172 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 0)) FROM t +-- !query 2172 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(10,0)> +-- !query 2172 output +0 + + +-- !query 2173 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 0)) FROM t +-- !query 2173 schema +struct<> +-- !query 2173 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2174 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 1)) FROM t +-- !query 2174 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(1,1)> +-- !query 2174 output +NULL + + +-- !query 2175 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(2, 1)) FROM t +-- !query 2175 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(2,1)> +-- !query 2175 output +0 + + +-- !query 2176 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 1)) FROM t +-- !query 2176 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(3,1)> +-- !query 2176 output +0 + + +-- !query 2177 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 1)) FROM t +-- !query 2177 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(4,1)> +-- !query 2177 output +0 + + +-- !query 2178 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 1)) FROM t +-- !query 2178 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(5,1)> +-- !query 2178 output +0 + + +-- !query 2179 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 1)) FROM t +-- !query 2179 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(6,1)> +-- !query 2179 output +0 + + +-- !query 2180 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 1)) FROM t +-- !query 2180 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(10,1)> +-- !query 2180 output +0 + + +-- !query 2181 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 1)) FROM t +-- !query 2181 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 2181 output +0 + + +-- !query 2182 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 1)) FROM t +-- !query 2182 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(11,1)> +-- !query 2182 output +0 + + +-- !query 2183 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 1)) FROM t +-- !query 2183 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(11,1)> +-- !query 2183 output +0 + + +-- !query 2184 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 1)) FROM t +-- !query 2184 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(11,1)> +-- !query 2184 output +0 + + +-- !query 2185 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 1)) FROM t +-- !query 2185 schema +struct<> +-- !query 2185 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2186 +SELECT cast('1' as binary) % cast(1 as decimal(1, 0)) FROM t +-- !query 2186 schema +struct<> +-- !query 2186 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 2187 +SELECT cast('1' as binary) % cast(1 as decimal(3, 0)) FROM t +-- !query 2187 schema +struct<> +-- !query 2187 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 2188 +SELECT cast('1' as binary) % cast(1 as decimal(4, 0)) FROM t +-- !query 2188 schema +struct<> +-- !query 2188 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 2189 +SELECT cast('1' as binary) % cast(1 as decimal(5, 0)) FROM t +-- !query 2189 schema +struct<> +-- !query 2189 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 2190 +SELECT cast('1' as binary) % cast(1 as decimal(6, 0)) FROM t +-- !query 2190 schema +struct<> +-- !query 2190 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 2191 +SELECT cast('1' as binary) % cast(1 as decimal(10, 0)) FROM t +-- !query 2191 schema +struct<> +-- !query 2191 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 2192 +SELECT cast('1' as binary) % cast(1 as decimal(11, 0)) FROM t +-- !query 2192 schema +struct<> +-- !query 2192 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 2193 +SELECT cast('1' as binary) % cast(1 as decimal(20, 0)) FROM t +-- !query 2193 schema +struct<> +-- !query 2193 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 2194 +SELECT cast('1' as binary) % cast(1 as decimal(21, 0)) FROM t +-- !query 2194 schema +struct<> +-- !query 2194 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 2195 +SELECT cast('1' as binary) % cast(1 as decimal(38, 0)) FROM t +-- !query 2195 schema +struct<> +-- !query 2195 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 2196 +SELECT cast('1' as binary) % cast(1 as decimal(39, 0)) FROM t +-- !query 2196 schema +struct<> +-- !query 2196 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2197 +SELECT cast('1' as binary) % cast(1 as decimal(1, 1)) FROM t +-- !query 2197 schema +struct<> +-- !query 2197 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 2198 +SELECT cast('1' as binary) % cast(1 as decimal(2, 1)) FROM t +-- !query 2198 schema +struct<> +-- !query 2198 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 2199 +SELECT cast('1' as binary) % cast(1 as decimal(3, 1)) FROM t +-- !query 2199 schema +struct<> +-- !query 2199 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 2200 +SELECT cast('1' as binary) % cast(1 as decimal(4, 1)) FROM t +-- !query 2200 schema +struct<> +-- !query 2200 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 2201 +SELECT cast('1' as binary) % cast(1 as decimal(5, 1)) FROM t +-- !query 2201 schema +struct<> +-- !query 2201 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 2202 +SELECT cast('1' as binary) % cast(1 as decimal(6, 1)) FROM t +-- !query 2202 schema +struct<> +-- !query 2202 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 2203 +SELECT cast('1' as binary) % cast(1 as decimal(10, 1)) FROM t +-- !query 2203 schema +struct<> +-- !query 2203 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 2204 +SELECT cast('1' as binary) % cast(1 as decimal(11, 1)) FROM t +-- !query 2204 schema +struct<> +-- !query 2204 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 2205 +SELECT cast('1' as binary) % cast(1 as decimal(20, 1)) FROM t +-- !query 2205 schema +struct<> +-- !query 2205 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 2206 +SELECT cast('1' as binary) % cast(1 as decimal(21, 1)) FROM t +-- !query 2206 schema +struct<> +-- !query 2206 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 2207 +SELECT cast('1' as binary) % cast(1 as decimal(38, 1)) FROM t +-- !query 2207 schema +struct<> +-- !query 2207 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 2208 +SELECT cast('1' as binary) % cast(1 as decimal(39, 1)) FROM t +-- !query 2208 schema +struct<> +-- !query 2208 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2209 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 0)) FROM t +-- !query 2209 schema +struct<> +-- !query 2209 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 2210 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 0)) FROM t +-- !query 2210 schema +struct<> +-- !query 2210 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 2211 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 0)) FROM t +-- !query 2211 schema +struct<> +-- !query 2211 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 2212 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 0)) FROM t +-- !query 2212 schema +struct<> +-- !query 2212 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 2213 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 0)) FROM t +-- !query 2213 schema +struct<> +-- !query 2213 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 2214 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 0)) FROM t +-- !query 2214 schema +struct<> +-- !query 2214 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 2215 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 0)) FROM t +-- !query 2215 schema +struct<> +-- !query 2215 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 2216 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 0)) FROM t +-- !query 2216 schema +struct<> +-- !query 2216 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 2217 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 0)) FROM t +-- !query 2217 schema +struct<> +-- !query 2217 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 2218 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 0)) FROM t +-- !query 2218 schema +struct<> +-- !query 2218 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 2219 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 0)) FROM t +-- !query 2219 schema +struct<> +-- !query 2219 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2220 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 1)) FROM t +-- !query 2220 schema +struct<> +-- !query 2220 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 2221 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(2, 1)) FROM t +-- !query 2221 schema +struct<> +-- !query 2221 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 2222 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 1)) FROM t +-- !query 2222 schema +struct<> +-- !query 2222 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 2223 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 1)) FROM t +-- !query 2223 schema +struct<> +-- !query 2223 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 2224 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 1)) FROM t +-- !query 2224 schema +struct<> +-- !query 2224 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 2225 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 1)) FROM t +-- !query 2225 schema +struct<> +-- !query 2225 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 2226 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 1)) FROM t +-- !query 2226 schema +struct<> +-- !query 2226 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 2227 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 1)) FROM t +-- !query 2227 schema +struct<> +-- !query 2227 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 2228 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 1)) FROM t +-- !query 2228 schema +struct<> +-- !query 2228 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 2229 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 1)) FROM t +-- !query 2229 schema +struct<> +-- !query 2229 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 2230 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 1)) FROM t +-- !query 2230 schema +struct<> +-- !query 2230 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 2231 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 1)) FROM t +-- !query 2231 schema +struct<> +-- !query 2231 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2232 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 0)) FROM t +-- !query 2232 schema +struct<> +-- !query 2232 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 2233 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 0)) FROM t +-- !query 2233 schema +struct<> +-- !query 2233 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 2234 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 0)) FROM t +-- !query 2234 schema +struct<> +-- !query 2234 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 2235 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 0)) FROM t +-- !query 2235 schema +struct<> +-- !query 2235 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 2236 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 0)) FROM t +-- !query 2236 schema +struct<> +-- !query 2236 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 2237 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 0)) FROM t +-- !query 2237 schema +struct<> +-- !query 2237 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 2238 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 0)) FROM t +-- !query 2238 schema +struct<> +-- !query 2238 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 2239 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 0)) FROM t +-- !query 2239 schema +struct<> +-- !query 2239 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 2240 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 0)) FROM t +-- !query 2240 schema +struct<> +-- !query 2240 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 2241 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 0)) FROM t +-- !query 2241 schema +struct<> +-- !query 2241 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 2242 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 0)) FROM t +-- !query 2242 schema +struct<> +-- !query 2242 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 0)) FROM t + + +-- !query 2243 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 1)) FROM t +-- !query 2243 schema +struct<> +-- !query 2243 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 2244 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(2, 1)) FROM t +-- !query 2244 schema +struct<> +-- !query 2244 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 2245 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 1)) FROM t +-- !query 2245 schema +struct<> +-- !query 2245 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 2246 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 1)) FROM t +-- !query 2246 schema +struct<> +-- !query 2246 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 2247 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 1)) FROM t +-- !query 2247 schema +struct<> +-- !query 2247 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 2248 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 1)) FROM t +-- !query 2248 schema +struct<> +-- !query 2248 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 2249 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 1)) FROM t +-- !query 2249 schema +struct<> +-- !query 2249 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 2250 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 1)) FROM t +-- !query 2250 schema +struct<> +-- !query 2250 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 2251 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 1)) FROM t +-- !query 2251 schema +struct<> +-- !query 2251 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 2252 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 1)) FROM t +-- !query 2252 schema +struct<> +-- !query 2252 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 2253 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 1)) FROM t +-- !query 2253 schema +struct<> +-- !query 2253 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 2254 +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 1)) FROM t +-- !query 2254 schema +struct<> +-- !query 2254 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 1)) FROM t + + +-- !query 2255 +SELECT cast(1 as decimal(1, 0)) % cast(1 as tinyint) FROM t +-- !query 2255 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):decimal(1,0)> +-- !query 2255 output +0 + + +-- !query 2256 +SELECT cast(1 as decimal(3, 0)) % cast(1 as tinyint) FROM t +-- !query 2256 schema +struct<(CAST(1 AS DECIMAL(3,0)) % CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(3,0)> +-- !query 2256 output +0 + + +-- !query 2257 +SELECT cast(1 as decimal(4, 0)) % cast(1 as tinyint) FROM t +-- !query 2257 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(3,0)> +-- !query 2257 output +0 + + +-- !query 2258 +SELECT cast(1 as decimal(5, 0)) % cast(1 as tinyint) FROM t +-- !query 2258 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(3,0)> +-- !query 2258 output +0 + + +-- !query 2259 +SELECT cast(1 as decimal(6, 0)) % cast(1 as tinyint) FROM t +-- !query 2259 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(3,0)> +-- !query 2259 output +0 + + +-- !query 2260 +SELECT cast(1 as decimal(10, 0)) % cast(1 as tinyint) FROM t +-- !query 2260 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> +-- !query 2260 output +0 + + +-- !query 2261 +SELECT cast(1 as decimal(11, 0)) % cast(1 as tinyint) FROM t +-- !query 2261 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(3,0)> +-- !query 2261 output +0 + + +-- !query 2262 +SELECT cast(1 as decimal(20, 0)) % cast(1 as tinyint) FROM t +-- !query 2262 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(3,0)> +-- !query 2262 output +0 + + +-- !query 2263 +SELECT cast(1 as decimal(21, 0)) % cast(1 as tinyint) FROM t +-- !query 2263 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(3,0)> +-- !query 2263 output +0 + + +-- !query 2264 +SELECT cast(1 as decimal(38, 0)) % cast(1 as tinyint) FROM t +-- !query 2264 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(3,0)> +-- !query 2264 output +0 + + +-- !query 2265 +SELECT cast(1 as decimal(39, 0)) % cast(1 as tinyint) FROM t +-- !query 2265 schema +struct<> +-- !query 2265 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as tinyint) FROM t + + +-- !query 2266 +SELECT cast(1 as decimal(1, 1)) % cast(1 as tinyint) FROM t +-- !query 2266 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(1,1)> +-- !query 2266 output +NULL + + +-- !query 2267 +SELECT cast(1 as decimal(2, 1)) % cast(1 as tinyint) FROM t +-- !query 2267 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(2,1)> +-- !query 2267 output +0 + + +-- !query 2268 +SELECT cast(1 as decimal(3, 1)) % cast(1 as tinyint) FROM t +-- !query 2268 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(3,1)> +-- !query 2268 output +0 + + +-- !query 2269 +SELECT cast(1 as decimal(4, 1)) % cast(1 as tinyint) FROM t +-- !query 2269 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(4,1)> +-- !query 2269 output +0 + + +-- !query 2270 +SELECT cast(1 as decimal(5, 1)) % cast(1 as tinyint) FROM t +-- !query 2270 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(4,1)> +-- !query 2270 output +0 + + +-- !query 2271 +SELECT cast(1 as decimal(6, 1)) % cast(1 as tinyint) FROM t +-- !query 2271 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(4,1)> +-- !query 2271 output +0 + + +-- !query 2272 +SELECT cast(1 as decimal(10, 1)) % cast(1 as tinyint) FROM t +-- !query 2272 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):decimal(4,1)> +-- !query 2272 output +0 + + +-- !query 2273 +SELECT cast(1 as decimal(11, 1)) % cast(1 as tinyint) FROM t +-- !query 2273 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(4,1)> +-- !query 2273 output +0 + + +-- !query 2274 +SELECT cast(1 as decimal(20, 1)) % cast(1 as tinyint) FROM t +-- !query 2274 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):decimal(4,1)> +-- !query 2274 output +0 + + +-- !query 2275 +SELECT cast(1 as decimal(21, 1)) % cast(1 as tinyint) FROM t +-- !query 2275 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(4,1)> +-- !query 2275 output +0 + + +-- !query 2276 +SELECT cast(1 as decimal(38, 1)) % cast(1 as tinyint) FROM t +-- !query 2276 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(4,1)> +-- !query 2276 output +0 + + +-- !query 2277 +SELECT cast(1 as decimal(39, 1)) % cast(1 as tinyint) FROM t +-- !query 2277 schema +struct<> +-- !query 2277 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as tinyint) FROM t + + +-- !query 2278 +SELECT cast(1 as decimal(1, 0)) % cast(1 as smallint) FROM t +-- !query 2278 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(1,0)> +-- !query 2278 output +0 + + +-- !query 2279 +SELECT cast(1 as decimal(3, 0)) % cast(1 as smallint) FROM t +-- !query 2279 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(3,0)> +-- !query 2279 output +0 + + +-- !query 2280 +SELECT cast(1 as decimal(4, 0)) % cast(1 as smallint) FROM t +-- !query 2280 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(4,0)> +-- !query 2280 output +0 + + +-- !query 2281 +SELECT cast(1 as decimal(5, 0)) % cast(1 as smallint) FROM t +-- !query 2281 schema +struct<(CAST(1 AS DECIMAL(5,0)) % CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(5,0)> +-- !query 2281 output +0 + + +-- !query 2282 +SELECT cast(1 as decimal(6, 0)) % cast(1 as smallint) FROM t +-- !query 2282 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(5,0)> +-- !query 2282 output +0 + + +-- !query 2283 +SELECT cast(1 as decimal(10, 0)) % cast(1 as smallint) FROM t +-- !query 2283 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> +-- !query 2283 output +0 + + +-- !query 2284 +SELECT cast(1 as decimal(11, 0)) % cast(1 as smallint) FROM t +-- !query 2284 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(5,0)> +-- !query 2284 output +0 + + +-- !query 2285 +SELECT cast(1 as decimal(20, 0)) % cast(1 as smallint) FROM t +-- !query 2285 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(5,0)> +-- !query 2285 output +0 + + +-- !query 2286 +SELECT cast(1 as decimal(21, 0)) % cast(1 as smallint) FROM t +-- !query 2286 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(5,0)> +-- !query 2286 output +0 + + +-- !query 2287 +SELECT cast(1 as decimal(38, 0)) % cast(1 as smallint) FROM t +-- !query 2287 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(5,0)> +-- !query 2287 output +0 + + +-- !query 2288 +SELECT cast(1 as decimal(39, 0)) % cast(1 as smallint) FROM t +-- !query 2288 schema +struct<> +-- !query 2288 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as smallint) FROM t + + +-- !query 2289 +SELECT cast(1 as decimal(1, 1)) % cast(1 as smallint) FROM t +-- !query 2289 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(1,1)> +-- !query 2289 output +NULL + + +-- !query 2290 +SELECT cast(1 as decimal(2, 1)) % cast(1 as smallint) FROM t +-- !query 2290 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(2,1)> +-- !query 2290 output +0 + + +-- !query 2291 +SELECT cast(1 as decimal(3, 1)) % cast(1 as smallint) FROM t +-- !query 2291 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(3,1)> +-- !query 2291 output +0 + + +-- !query 2292 +SELECT cast(1 as decimal(4, 1)) % cast(1 as smallint) FROM t +-- !query 2292 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(4,1)> +-- !query 2292 output +0 + + +-- !query 2293 +SELECT cast(1 as decimal(5, 1)) % cast(1 as smallint) FROM t +-- !query 2293 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(5,1)> +-- !query 2293 output +0 + + +-- !query 2294 +SELECT cast(1 as decimal(6, 1)) % cast(1 as smallint) FROM t +-- !query 2294 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(6,1)> +-- !query 2294 output +0 + + +-- !query 2295 +SELECT cast(1 as decimal(10, 1)) % cast(1 as smallint) FROM t +-- !query 2295 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):decimal(6,1)> +-- !query 2295 output +0 + + +-- !query 2296 +SELECT cast(1 as decimal(11, 1)) % cast(1 as smallint) FROM t +-- !query 2296 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(6,1)> +-- !query 2296 output +0 + + +-- !query 2297 +SELECT cast(1 as decimal(20, 1)) % cast(1 as smallint) FROM t +-- !query 2297 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):decimal(6,1)> +-- !query 2297 output +0 + + +-- !query 2298 +SELECT cast(1 as decimal(21, 1)) % cast(1 as smallint) FROM t +-- !query 2298 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(6,1)> +-- !query 2298 output +0 + + +-- !query 2299 +SELECT cast(1 as decimal(38, 1)) % cast(1 as smallint) FROM t +-- !query 2299 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(6,1)> +-- !query 2299 output +0 + + +-- !query 2300 +SELECT cast(1 as decimal(39, 1)) % cast(1 as smallint) FROM t +-- !query 2300 schema +struct<> +-- !query 2300 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as smallint) FROM t + + +-- !query 2301 +SELECT cast(1 as decimal(1, 0)) % cast(1 as int) FROM t +-- !query 2301 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(1,0)> +-- !query 2301 output +0 + + +-- !query 2302 +SELECT cast(1 as decimal(3, 0)) % cast(1 as int) FROM t +-- !query 2302 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> +-- !query 2302 output +0 + + +-- !query 2303 +SELECT cast(1 as decimal(4, 0)) % cast(1 as int) FROM t +-- !query 2303 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(4,0)> +-- !query 2303 output +0 + + +-- !query 2304 +SELECT cast(1 as decimal(5, 0)) % cast(1 as int) FROM t +-- !query 2304 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> +-- !query 2304 output +0 + + +-- !query 2305 +SELECT cast(1 as decimal(6, 0)) % cast(1 as int) FROM t +-- !query 2305 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(6,0)> +-- !query 2305 output +0 + + +-- !query 2306 +SELECT cast(1 as decimal(10, 0)) % cast(1 as int) FROM t +-- !query 2306 schema +struct<(CAST(1 AS DECIMAL(10,0)) % CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(10,0)> +-- !query 2306 output +0 + + +-- !query 2307 +SELECT cast(1 as decimal(11, 0)) % cast(1 as int) FROM t +-- !query 2307 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(10,0)> +-- !query 2307 output +0 + + +-- !query 2308 +SELECT cast(1 as decimal(20, 0)) % cast(1 as int) FROM t +-- !query 2308 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> +-- !query 2308 output +0 + + +-- !query 2309 +SELECT cast(1 as decimal(21, 0)) % cast(1 as int) FROM t +-- !query 2309 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(10,0)> +-- !query 2309 output +0 + + +-- !query 2310 +SELECT cast(1 as decimal(38, 0)) % cast(1 as int) FROM t +-- !query 2310 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(10,0)> +-- !query 2310 output +0 + + +-- !query 2311 +SELECT cast(1 as decimal(39, 0)) % cast(1 as int) FROM t +-- !query 2311 schema +struct<> +-- !query 2311 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as int) FROM t + + +-- !query 2312 +SELECT cast(1 as decimal(1, 1)) % cast(1 as int) FROM t +-- !query 2312 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(1,1)> +-- !query 2312 output +NULL + + +-- !query 2313 +SELECT cast(1 as decimal(2, 1)) % cast(1 as int) FROM t +-- !query 2313 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(2,1)> +-- !query 2313 output +0 + + +-- !query 2314 +SELECT cast(1 as decimal(3, 1)) % cast(1 as int) FROM t +-- !query 2314 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(3,1)> +-- !query 2314 output +0 + + +-- !query 2315 +SELECT cast(1 as decimal(4, 1)) % cast(1 as int) FROM t +-- !query 2315 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(4,1)> +-- !query 2315 output +0 + + +-- !query 2316 +SELECT cast(1 as decimal(5, 1)) % cast(1 as int) FROM t +-- !query 2316 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(5,1)> +-- !query 2316 output +0 + + +-- !query 2317 +SELECT cast(1 as decimal(6, 1)) % cast(1 as int) FROM t +-- !query 2317 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(6,1)> +-- !query 2317 output +0 + + +-- !query 2318 +SELECT cast(1 as decimal(10, 1)) % cast(1 as int) FROM t +-- !query 2318 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(10,1)> +-- !query 2318 output +0 + + +-- !query 2319 +SELECT cast(1 as decimal(11, 1)) % cast(1 as int) FROM t +-- !query 2319 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 2319 output +0 + + +-- !query 2320 +SELECT cast(1 as decimal(20, 1)) % cast(1 as int) FROM t +-- !query 2320 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(11,1)> +-- !query 2320 output +0 + + +-- !query 2321 +SELECT cast(1 as decimal(21, 1)) % cast(1 as int) FROM t +-- !query 2321 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(11,1)> +-- !query 2321 output +0 + + +-- !query 2322 +SELECT cast(1 as decimal(38, 1)) % cast(1 as int) FROM t +-- !query 2322 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(11,1)> +-- !query 2322 output +0 + + +-- !query 2323 +SELECT cast(1 as decimal(39, 1)) % cast(1 as int) FROM t +-- !query 2323 schema +struct<> +-- !query 2323 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as int) FROM t + + +-- !query 2324 +SELECT cast(1 as decimal(1, 0)) % cast(1 as bigint) FROM t +-- !query 2324 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(1,0)> +-- !query 2324 output +0 + + +-- !query 2325 +SELECT cast(1 as decimal(3, 0)) % cast(1 as bigint) FROM t +-- !query 2325 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(3,0)> +-- !query 2325 output +0 + + +-- !query 2326 +SELECT cast(1 as decimal(4, 0)) % cast(1 as bigint) FROM t +-- !query 2326 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(4,0)> +-- !query 2326 output +0 + + +-- !query 2327 +SELECT cast(1 as decimal(5, 0)) % cast(1 as bigint) FROM t +-- !query 2327 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(5,0)> +-- !query 2327 output +0 + + +-- !query 2328 +SELECT cast(1 as decimal(6, 0)) % cast(1 as bigint) FROM t +-- !query 2328 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(6,0)> +-- !query 2328 output +0 + + +-- !query 2329 +SELECT cast(1 as decimal(10, 0)) % cast(1 as bigint) FROM t +-- !query 2329 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> +-- !query 2329 output +0 + + +-- !query 2330 +SELECT cast(1 as decimal(11, 0)) % cast(1 as bigint) FROM t +-- !query 2330 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(11,0)> +-- !query 2330 output +0 + + +-- !query 2331 +SELECT cast(1 as decimal(20, 0)) % cast(1 as bigint) FROM t +-- !query 2331 schema +struct<(CAST(1 AS DECIMAL(20,0)) % CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(20,0)> +-- !query 2331 output +0 + + +-- !query 2332 +SELECT cast(1 as decimal(21, 0)) % cast(1 as bigint) FROM t +-- !query 2332 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(20,0)> +-- !query 2332 output +0 + + +-- !query 2333 +SELECT cast(1 as decimal(38, 0)) % cast(1 as bigint) FROM t +-- !query 2333 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(20,0)> +-- !query 2333 output +0 + + +-- !query 2334 +SELECT cast(1 as decimal(39, 0)) % cast(1 as bigint) FROM t +-- !query 2334 schema +struct<> +-- !query 2334 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as bigint) FROM t + + +-- !query 2335 +SELECT cast(1 as decimal(1, 1)) % cast(1 as bigint) FROM t +-- !query 2335 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(1,1)> +-- !query 2335 output +NULL + + +-- !query 2336 +SELECT cast(1 as decimal(2, 1)) % cast(1 as bigint) FROM t +-- !query 2336 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(2,1)> +-- !query 2336 output +0 + + +-- !query 2337 +SELECT cast(1 as decimal(3, 1)) % cast(1 as bigint) FROM t +-- !query 2337 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(3,1)> +-- !query 2337 output +0 + + +-- !query 2338 +SELECT cast(1 as decimal(4, 1)) % cast(1 as bigint) FROM t +-- !query 2338 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(4,1)> +-- !query 2338 output +0 + + +-- !query 2339 +SELECT cast(1 as decimal(5, 1)) % cast(1 as bigint) FROM t +-- !query 2339 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(5,1)> +-- !query 2339 output +0 + + +-- !query 2340 +SELECT cast(1 as decimal(6, 1)) % cast(1 as bigint) FROM t +-- !query 2340 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(6,1)> +-- !query 2340 output +0 + + +-- !query 2341 +SELECT cast(1 as decimal(10, 1)) % cast(1 as bigint) FROM t +-- !query 2341 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(10,1)> +-- !query 2341 output +0 + + +-- !query 2342 +SELECT cast(1 as decimal(11, 1)) % cast(1 as bigint) FROM t +-- !query 2342 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(11,1)> +-- !query 2342 output +0 + + +-- !query 2343 +SELECT cast(1 as decimal(20, 1)) % cast(1 as bigint) FROM t +-- !query 2343 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(20,1)> +-- !query 2343 output +0 + + +-- !query 2344 +SELECT cast(1 as decimal(21, 1)) % cast(1 as bigint) FROM t +-- !query 2344 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(21,1)> +-- !query 2344 output +0 + + +-- !query 2345 +SELECT cast(1 as decimal(38, 1)) % cast(1 as bigint) FROM t +-- !query 2345 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(21,1)> +-- !query 2345 output +0 + + +-- !query 2346 +SELECT cast(1 as decimal(39, 1)) % cast(1 as bigint) FROM t +-- !query 2346 schema +struct<> +-- !query 2346 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as bigint) FROM t + + +-- !query 2347 +SELECT cast(1 as decimal(1, 0)) % cast(1 as float) FROM t +-- !query 2347 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2347 output +0.0 + + +-- !query 2348 +SELECT cast(1 as decimal(3, 0)) % cast(1 as float) FROM t +-- !query 2348 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2348 output +0.0 + + +-- !query 2349 +SELECT cast(1 as decimal(4, 0)) % cast(1 as float) FROM t +-- !query 2349 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2349 output +0.0 + + +-- !query 2350 +SELECT cast(1 as decimal(5, 0)) % cast(1 as float) FROM t +-- !query 2350 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2350 output +0.0 + + +-- !query 2351 +SELECT cast(1 as decimal(6, 0)) % cast(1 as float) FROM t +-- !query 2351 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2351 output +0.0 + + +-- !query 2352 +SELECT cast(1 as decimal(10, 0)) % cast(1 as float) FROM t +-- !query 2352 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2352 output +0.0 + + +-- !query 2353 +SELECT cast(1 as decimal(11, 0)) % cast(1 as float) FROM t +-- !query 2353 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2353 output +0.0 + + +-- !query 2354 +SELECT cast(1 as decimal(20, 0)) % cast(1 as float) FROM t +-- !query 2354 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2354 output +0.0 + + +-- !query 2355 +SELECT cast(1 as decimal(21, 0)) % cast(1 as float) FROM t +-- !query 2355 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2355 output +0.0 + + +-- !query 2356 +SELECT cast(1 as decimal(38, 0)) % cast(1 as float) FROM t +-- !query 2356 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2356 output +0.0 + + +-- !query 2357 +SELECT cast(1 as decimal(39, 0)) % cast(1 as float) FROM t +-- !query 2357 schema +struct<> +-- !query 2357 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as float) FROM t + + +-- !query 2358 +SELECT cast(1 as decimal(1, 1)) % cast(1 as float) FROM t +-- !query 2358 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2358 output +NULL + + +-- !query 2359 +SELECT cast(1 as decimal(2, 1)) % cast(1 as float) FROM t +-- !query 2359 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2359 output +0.0 + + +-- !query 2360 +SELECT cast(1 as decimal(3, 1)) % cast(1 as float) FROM t +-- !query 2360 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2360 output +0.0 + + +-- !query 2361 +SELECT cast(1 as decimal(4, 1)) % cast(1 as float) FROM t +-- !query 2361 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2361 output +0.0 + + +-- !query 2362 +SELECT cast(1 as decimal(5, 1)) % cast(1 as float) FROM t +-- !query 2362 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2362 output +0.0 + + +-- !query 2363 +SELECT cast(1 as decimal(6, 1)) % cast(1 as float) FROM t +-- !query 2363 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2363 output +0.0 + + +-- !query 2364 +SELECT cast(1 as decimal(10, 1)) % cast(1 as float) FROM t +-- !query 2364 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2364 output +0.0 + + +-- !query 2365 +SELECT cast(1 as decimal(11, 1)) % cast(1 as float) FROM t +-- !query 2365 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2365 output +0.0 + + +-- !query 2366 +SELECT cast(1 as decimal(20, 1)) % cast(1 as float) FROM t +-- !query 2366 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2366 output +0.0 + + +-- !query 2367 +SELECT cast(1 as decimal(21, 1)) % cast(1 as float) FROM t +-- !query 2367 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2367 output +0.0 + + +-- !query 2368 +SELECT cast(1 as decimal(38, 1)) % cast(1 as float) FROM t +-- !query 2368 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +-- !query 2368 output +0.0 + + +-- !query 2369 +SELECT cast(1 as decimal(39, 1)) % cast(1 as float) FROM t +-- !query 2369 schema +struct<> +-- !query 2369 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as float) FROM t + + +-- !query 2370 +SELECT cast(1 as decimal(1, 0)) % cast(1 as double) FROM t +-- !query 2370 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2370 output +0.0 + + +-- !query 2371 +SELECT cast(1 as decimal(3, 0)) % cast(1 as double) FROM t +-- !query 2371 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2371 output +0.0 + + +-- !query 2372 +SELECT cast(1 as decimal(4, 0)) % cast(1 as double) FROM t +-- !query 2372 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2372 output +0.0 + + +-- !query 2373 +SELECT cast(1 as decimal(5, 0)) % cast(1 as double) FROM t +-- !query 2373 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2373 output +0.0 + + +-- !query 2374 +SELECT cast(1 as decimal(6, 0)) % cast(1 as double) FROM t +-- !query 2374 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2374 output +0.0 + + +-- !query 2375 +SELECT cast(1 as decimal(10, 0)) % cast(1 as double) FROM t +-- !query 2375 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2375 output +0.0 + + +-- !query 2376 +SELECT cast(1 as decimal(11, 0)) % cast(1 as double) FROM t +-- !query 2376 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2376 output +0.0 + + +-- !query 2377 +SELECT cast(1 as decimal(20, 0)) % cast(1 as double) FROM t +-- !query 2377 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2377 output +0.0 + + +-- !query 2378 +SELECT cast(1 as decimal(21, 0)) % cast(1 as double) FROM t +-- !query 2378 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2378 output +0.0 + + +-- !query 2379 +SELECT cast(1 as decimal(38, 0)) % cast(1 as double) FROM t +-- !query 2379 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2379 output +0.0 + + +-- !query 2380 +SELECT cast(1 as decimal(39, 0)) % cast(1 as double) FROM t +-- !query 2380 schema +struct<> +-- !query 2380 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as double) FROM t + + +-- !query 2381 +SELECT cast(1 as decimal(1, 1)) % cast(1 as double) FROM t +-- !query 2381 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2381 output +NULL + + +-- !query 2382 +SELECT cast(1 as decimal(2, 1)) % cast(1 as double) FROM t +-- !query 2382 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2382 output +0.0 + + +-- !query 2383 +SELECT cast(1 as decimal(3, 1)) % cast(1 as double) FROM t +-- !query 2383 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2383 output +0.0 + + +-- !query 2384 +SELECT cast(1 as decimal(4, 1)) % cast(1 as double) FROM t +-- !query 2384 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2384 output +0.0 + + +-- !query 2385 +SELECT cast(1 as decimal(5, 1)) % cast(1 as double) FROM t +-- !query 2385 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2385 output +0.0 + + +-- !query 2386 +SELECT cast(1 as decimal(6, 1)) % cast(1 as double) FROM t +-- !query 2386 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2386 output +0.0 + + +-- !query 2387 +SELECT cast(1 as decimal(10, 1)) % cast(1 as double) FROM t +-- !query 2387 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2387 output +0.0 + + +-- !query 2388 +SELECT cast(1 as decimal(11, 1)) % cast(1 as double) FROM t +-- !query 2388 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2388 output +0.0 + + +-- !query 2389 +SELECT cast(1 as decimal(20, 1)) % cast(1 as double) FROM t +-- !query 2389 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2389 output +0.0 + + +-- !query 2390 +SELECT cast(1 as decimal(21, 1)) % cast(1 as double) FROM t +-- !query 2390 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2390 output +0.0 + + +-- !query 2391 +SELECT cast(1 as decimal(38, 1)) % cast(1 as double) FROM t +-- !query 2391 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> +-- !query 2391 output +0.0 + + +-- !query 2392 +SELECT cast(1 as decimal(39, 1)) % cast(1 as double) FROM t +-- !query 2392 schema +struct<> +-- !query 2392 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as double) FROM t + + +-- !query 2393 +SELECT cast(1 as decimal(1, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2393 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(1,0)> +-- !query 2393 output +0 + + +-- !query 2394 +SELECT cast(1 as decimal(3, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2394 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> +-- !query 2394 output +0 + + +-- !query 2395 +SELECT cast(1 as decimal(4, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2395 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(4,0)> +-- !query 2395 output +0 + + +-- !query 2396 +SELECT cast(1 as decimal(5, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2396 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> +-- !query 2396 output +0 + + +-- !query 2397 +SELECT cast(1 as decimal(6, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2397 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(6,0)> +-- !query 2397 output +0 + + +-- !query 2398 +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2398 schema +struct<(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> +-- !query 2398 output +0 + + +-- !query 2399 +SELECT cast(1 as decimal(11, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2399 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(10,0)> +-- !query 2399 output +0 + + +-- !query 2400 +SELECT cast(1 as decimal(20, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2400 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> +-- !query 2400 output +0 + + +-- !query 2401 +SELECT cast(1 as decimal(21, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2401 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(10,0)> +-- !query 2401 output +0 + + +-- !query 2402 +SELECT cast(1 as decimal(38, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2402 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(10,0)> +-- !query 2402 output +0 + + +-- !query 2403 +SELECT cast(1 as decimal(39, 0)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2403 schema +struct<> +-- !query 2403 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as decimal(10, 0)) FROM t + + +-- !query 2404 +SELECT cast(1 as decimal(1, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2404 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(1,1)> +-- !query 2404 output +NULL + + +-- !query 2405 +SELECT cast(1 as decimal(2, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2405 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(2,1)> +-- !query 2405 output +0 + + +-- !query 2406 +SELECT cast(1 as decimal(3, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2406 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(3,1)> +-- !query 2406 output +0 + + +-- !query 2407 +SELECT cast(1 as decimal(4, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2407 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(4,1)> +-- !query 2407 output +0 + + +-- !query 2408 +SELECT cast(1 as decimal(5, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2408 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(5,1)> +-- !query 2408 output +0 + + +-- !query 2409 +SELECT cast(1 as decimal(6, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2409 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(6,1)> +-- !query 2409 output +0 + + +-- !query 2410 +SELECT cast(1 as decimal(10, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2410 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(10,1)> +-- !query 2410 output +0 + + +-- !query 2411 +SELECT cast(1 as decimal(11, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2411 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(11,1)> +-- !query 2411 output +0 + + +-- !query 2412 +SELECT cast(1 as decimal(20, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2412 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(11,1)> +-- !query 2412 output +0 + + +-- !query 2413 +SELECT cast(1 as decimal(21, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2413 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(11,1)> +-- !query 2413 output +0 + + +-- !query 2414 +SELECT cast(1 as decimal(38, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2414 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(11,1)> +-- !query 2414 output +0 + + +-- !query 2415 +SELECT cast(1 as decimal(39, 1)) % cast(1 as decimal(10, 0)) FROM t +-- !query 2415 schema +struct<> +-- !query 2415 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as decimal(10, 0)) FROM t + + +-- !query 2416 +SELECT cast(1 as decimal(1, 0)) % cast(1 as string) FROM t +-- !query 2416 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2416 output +0.0 + + +-- !query 2417 +SELECT cast(1 as decimal(3, 0)) % cast(1 as string) FROM t +-- !query 2417 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2417 output +0.0 + + +-- !query 2418 +SELECT cast(1 as decimal(4, 0)) % cast(1 as string) FROM t +-- !query 2418 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2418 output +0.0 + + +-- !query 2419 +SELECT cast(1 as decimal(5, 0)) % cast(1 as string) FROM t +-- !query 2419 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2419 output +0.0 + + +-- !query 2420 +SELECT cast(1 as decimal(6, 0)) % cast(1 as string) FROM t +-- !query 2420 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2420 output +0.0 + + +-- !query 2421 +SELECT cast(1 as decimal(10, 0)) % cast(1 as string) FROM t +-- !query 2421 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2421 output +0.0 + + +-- !query 2422 +SELECT cast(1 as decimal(11, 0)) % cast(1 as string) FROM t +-- !query 2422 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2422 output +0.0 + + +-- !query 2423 +SELECT cast(1 as decimal(20, 0)) % cast(1 as string) FROM t +-- !query 2423 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2423 output +0.0 + + +-- !query 2424 +SELECT cast(1 as decimal(21, 0)) % cast(1 as string) FROM t +-- !query 2424 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2424 output +0.0 + + +-- !query 2425 +SELECT cast(1 as decimal(38, 0)) % cast(1 as string) FROM t +-- !query 2425 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2425 output +0.0 + + +-- !query 2426 +SELECT cast(1 as decimal(39, 0)) % cast(1 as string) FROM t +-- !query 2426 schema +struct<> +-- !query 2426 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as string) FROM t + + +-- !query 2427 +SELECT cast(1 as decimal(1, 1)) % cast(1 as string) FROM t +-- !query 2427 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2427 output +NULL + + +-- !query 2428 +SELECT cast(1 as decimal(2, 1)) % cast(1 as string) FROM t +-- !query 2428 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2428 output +0.0 + + +-- !query 2429 +SELECT cast(1 as decimal(3, 1)) % cast(1 as string) FROM t +-- !query 2429 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2429 output +0.0 + + +-- !query 2430 +SELECT cast(1 as decimal(4, 1)) % cast(1 as string) FROM t +-- !query 2430 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2430 output +0.0 + + +-- !query 2431 +SELECT cast(1 as decimal(5, 1)) % cast(1 as string) FROM t +-- !query 2431 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2431 output +0.0 + + +-- !query 2432 +SELECT cast(1 as decimal(6, 1)) % cast(1 as string) FROM t +-- !query 2432 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2432 output +0.0 + + +-- !query 2433 +SELECT cast(1 as decimal(10, 1)) % cast(1 as string) FROM t +-- !query 2433 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2433 output +0.0 + + +-- !query 2434 +SELECT cast(1 as decimal(11, 1)) % cast(1 as string) FROM t +-- !query 2434 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2434 output +0.0 + + +-- !query 2435 +SELECT cast(1 as decimal(20, 1)) % cast(1 as string) FROM t +-- !query 2435 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2435 output +0.0 + + +-- !query 2436 +SELECT cast(1 as decimal(21, 1)) % cast(1 as string) FROM t +-- !query 2436 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2436 output +0.0 + + +-- !query 2437 +SELECT cast(1 as decimal(38, 1)) % cast(1 as string) FROM t +-- !query 2437 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> +-- !query 2437 output +0.0 + + +-- !query 2438 +SELECT cast(1 as decimal(39, 1)) % cast(1 as string) FROM t +-- !query 2438 schema +struct<> +-- !query 2438 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as string) FROM t + + +-- !query 2439 +SELECT cast(1 as decimal(1, 0)) % cast('1' as binary) FROM t +-- !query 2439 schema +struct<> +-- !query 2439 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 2440 +SELECT cast(1 as decimal(3, 0)) % cast('1' as binary) FROM t +-- !query 2440 schema +struct<> +-- !query 2440 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 2441 +SELECT cast(1 as decimal(4, 0)) % cast('1' as binary) FROM t +-- !query 2441 schema +struct<> +-- !query 2441 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 2442 +SELECT cast(1 as decimal(5, 0)) % cast('1' as binary) FROM t +-- !query 2442 schema +struct<> +-- !query 2442 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 2443 +SELECT cast(1 as decimal(6, 0)) % cast('1' as binary) FROM t +-- !query 2443 schema +struct<> +-- !query 2443 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 2444 +SELECT cast(1 as decimal(10, 0)) % cast('1' as binary) FROM t +-- !query 2444 schema +struct<> +-- !query 2444 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 2445 +SELECT cast(1 as decimal(11, 0)) % cast('1' as binary) FROM t +-- !query 2445 schema +struct<> +-- !query 2445 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 2446 +SELECT cast(1 as decimal(20, 0)) % cast('1' as binary) FROM t +-- !query 2446 schema +struct<> +-- !query 2446 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 2447 +SELECT cast(1 as decimal(21, 0)) % cast('1' as binary) FROM t +-- !query 2447 schema +struct<> +-- !query 2447 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 2448 +SELECT cast(1 as decimal(38, 0)) % cast('1' as binary) FROM t +-- !query 2448 schema +struct<> +-- !query 2448 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 2449 +SELECT cast(1 as decimal(39, 0)) % cast('1' as binary) FROM t +-- !query 2449 schema +struct<> +-- !query 2449 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast('1' as binary) FROM t + + +-- !query 2450 +SELECT cast(1 as decimal(1, 1)) % cast('1' as binary) FROM t +-- !query 2450 schema +struct<> +-- !query 2450 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 2451 +SELECT cast(1 as decimal(2, 1)) % cast('1' as binary) FROM t +-- !query 2451 schema +struct<> +-- !query 2451 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 2452 +SELECT cast(1 as decimal(3, 1)) % cast('1' as binary) FROM t +-- !query 2452 schema +struct<> +-- !query 2452 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 2453 +SELECT cast(1 as decimal(4, 1)) % cast('1' as binary) FROM t +-- !query 2453 schema +struct<> +-- !query 2453 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 2454 +SELECT cast(1 as decimal(5, 1)) % cast('1' as binary) FROM t +-- !query 2454 schema +struct<> +-- !query 2454 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 2455 +SELECT cast(1 as decimal(6, 1)) % cast('1' as binary) FROM t +-- !query 2455 schema +struct<> +-- !query 2455 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 2456 +SELECT cast(1 as decimal(10, 1)) % cast('1' as binary) FROM t +-- !query 2456 schema +struct<> +-- !query 2456 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 2457 +SELECT cast(1 as decimal(11, 1)) % cast('1' as binary) FROM t +-- !query 2457 schema +struct<> +-- !query 2457 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 2458 +SELECT cast(1 as decimal(20, 1)) % cast('1' as binary) FROM t +-- !query 2458 schema +struct<> +-- !query 2458 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 2459 +SELECT cast(1 as decimal(21, 1)) % cast('1' as binary) FROM t +-- !query 2459 schema +struct<> +-- !query 2459 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 2460 +SELECT cast(1 as decimal(38, 1)) % cast('1' as binary) FROM t +-- !query 2460 schema +struct<> +-- !query 2460 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 2461 +SELECT cast(1 as decimal(39, 1)) % cast('1' as binary) FROM t +-- !query 2461 schema +struct<> +-- !query 2461 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast('1' as binary) FROM t + + +-- !query 2462 +SELECT cast(1 as decimal(1, 0)) % cast(1 as boolean) FROM t +-- !query 2462 schema +struct<> +-- !query 2462 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 2463 +SELECT cast(1 as decimal(3, 0)) % cast(1 as boolean) FROM t +-- !query 2463 schema +struct<> +-- !query 2463 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 2464 +SELECT cast(1 as decimal(4, 0)) % cast(1 as boolean) FROM t +-- !query 2464 schema +struct<> +-- !query 2464 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 2465 +SELECT cast(1 as decimal(5, 0)) % cast(1 as boolean) FROM t +-- !query 2465 schema +struct<> +-- !query 2465 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 2466 +SELECT cast(1 as decimal(6, 0)) % cast(1 as boolean) FROM t +-- !query 2466 schema +struct<> +-- !query 2466 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 2467 +SELECT cast(1 as decimal(10, 0)) % cast(1 as boolean) FROM t +-- !query 2467 schema +struct<> +-- !query 2467 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 2468 +SELECT cast(1 as decimal(11, 0)) % cast(1 as boolean) FROM t +-- !query 2468 schema +struct<> +-- !query 2468 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 2469 +SELECT cast(1 as decimal(20, 0)) % cast(1 as boolean) FROM t +-- !query 2469 schema +struct<> +-- !query 2469 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 2470 +SELECT cast(1 as decimal(21, 0)) % cast(1 as boolean) FROM t +-- !query 2470 schema +struct<> +-- !query 2470 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 2471 +SELECT cast(1 as decimal(38, 0)) % cast(1 as boolean) FROM t +-- !query 2471 schema +struct<> +-- !query 2471 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 2472 +SELECT cast(1 as decimal(39, 0)) % cast(1 as boolean) FROM t +-- !query 2472 schema +struct<> +-- !query 2472 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast(1 as boolean) FROM t + + +-- !query 2473 +SELECT cast(1 as decimal(1, 1)) % cast(1 as boolean) FROM t +-- !query 2473 schema +struct<> +-- !query 2473 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 2474 +SELECT cast(1 as decimal(2, 1)) % cast(1 as boolean) FROM t +-- !query 2474 schema +struct<> +-- !query 2474 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 2475 +SELECT cast(1 as decimal(3, 1)) % cast(1 as boolean) FROM t +-- !query 2475 schema +struct<> +-- !query 2475 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 2476 +SELECT cast(1 as decimal(4, 1)) % cast(1 as boolean) FROM t +-- !query 2476 schema +struct<> +-- !query 2476 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 2477 +SELECT cast(1 as decimal(5, 1)) % cast(1 as boolean) FROM t +-- !query 2477 schema +struct<> +-- !query 2477 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 2478 +SELECT cast(1 as decimal(6, 1)) % cast(1 as boolean) FROM t +-- !query 2478 schema +struct<> +-- !query 2478 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 2479 +SELECT cast(1 as decimal(10, 1)) % cast(1 as boolean) FROM t +-- !query 2479 schema +struct<> +-- !query 2479 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 2480 +SELECT cast(1 as decimal(11, 1)) % cast(1 as boolean) FROM t +-- !query 2480 schema +struct<> +-- !query 2480 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 2481 +SELECT cast(1 as decimal(20, 1)) % cast(1 as boolean) FROM t +-- !query 2481 schema +struct<> +-- !query 2481 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 2482 +SELECT cast(1 as decimal(21, 1)) % cast(1 as boolean) FROM t +-- !query 2482 schema +struct<> +-- !query 2482 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 2483 +SELECT cast(1 as decimal(38, 1)) % cast(1 as boolean) FROM t +-- !query 2483 schema +struct<> +-- !query 2483 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 2484 +SELECT cast(1 as decimal(39, 1)) % cast(1 as boolean) FROM t +-- !query 2484 schema +struct<> +-- !query 2484 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast(1 as boolean) FROM t + + +-- !query 2485 +SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2485 schema +struct<> +-- !query 2485 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 2486 +SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2486 schema +struct<> +-- !query 2486 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 2487 +SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2487 schema +struct<> +-- !query 2487 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 2488 +SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2488 schema +struct<> +-- !query 2488 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 2489 +SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2489 schema +struct<> +-- !query 2489 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 2490 +SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2490 schema +struct<> +-- !query 2490 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 2491 +SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2491 schema +struct<> +-- !query 2491 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 2492 +SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2492 schema +struct<> +-- !query 2492 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 2493 +SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2493 schema +struct<> +-- !query 2493 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 2494 +SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2494 schema +struct<> +-- !query 2494 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 2495 +SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2495 schema +struct<> +-- !query 2495 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 2496 +SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2496 schema +struct<> +-- !query 2496 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 2497 +SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2497 schema +struct<> +-- !query 2497 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 2498 +SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2498 schema +struct<> +-- !query 2498 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 2499 +SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2499 schema +struct<> +-- !query 2499 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 2500 +SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2500 schema +struct<> +-- !query 2500 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 2501 +SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2501 schema +struct<> +-- !query 2501 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 2502 +SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2502 schema +struct<> +-- !query 2502 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 2503 +SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2503 schema +struct<> +-- !query 2503 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 2504 +SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2504 schema +struct<> +-- !query 2504 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 2505 +SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2505 schema +struct<> +-- !query 2505 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 2506 +SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2506 schema +struct<> +-- !query 2506 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 2507 +SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 2507 schema +struct<> +-- !query 2507 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 2508 +SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2508 schema +struct<> +-- !query 2508 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 2509 +SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2509 schema +struct<> +-- !query 2509 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 2510 +SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2510 schema +struct<> +-- !query 2510 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 2511 +SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2511 schema +struct<> +-- !query 2511 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 2512 +SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2512 schema +struct<> +-- !query 2512 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 2513 +SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2513 schema +struct<> +-- !query 2513 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 2514 +SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2514 schema +struct<> +-- !query 2514 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 2515 +SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2515 schema +struct<> +-- !query 2515 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 2516 +SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2516 schema +struct<> +-- !query 2516 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 2517 +SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2517 schema +struct<> +-- !query 2517 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 2518 +SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2518 schema +struct<> +-- !query 2518 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 2519 +SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2519 schema +struct<> +-- !query 2519 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 2520 +SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2520 schema +struct<> +-- !query 2520 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 2521 +SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2521 schema +struct<> +-- !query 2521 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 2522 +SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2522 schema +struct<> +-- !query 2522 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 2523 +SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2523 schema +struct<> +-- !query 2523 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 2524 +SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2524 schema +struct<> +-- !query 2524 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 2525 +SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2525 schema +struct<> +-- !query 2525 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 2526 +SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2526 schema +struct<> +-- !query 2526 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 2527 +SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2527 schema +struct<> +-- !query 2527 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 2528 +SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2528 schema +struct<> +-- !query 2528 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 2529 +SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2529 schema +struct<> +-- !query 2529 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 2530 +SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00' as date) FROM t +-- !query 2530 schema +struct<> +-- !query 2530 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 2531 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 0))) FROM t +-- !query 2531 schema +struct +-- !query 2531 output +0 + + +-- !query 2532 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 0))) FROM t +-- !query 2532 schema +struct +-- !query 2532 output +0 + + +-- !query 2533 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 0))) FROM t +-- !query 2533 schema +struct +-- !query 2533 output +0 + + +-- !query 2534 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 0))) FROM t +-- !query 2534 schema +struct +-- !query 2534 output +0 + + +-- !query 2535 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 0))) FROM t +-- !query 2535 schema +struct +-- !query 2535 output +0 + + +-- !query 2536 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t +-- !query 2536 schema +struct +-- !query 2536 output +0 + + +-- !query 2537 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 0))) FROM t +-- !query 2537 schema +struct +-- !query 2537 output +0 + + +-- !query 2538 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 0))) FROM t +-- !query 2538 schema +struct +-- !query 2538 output +0 + + +-- !query 2539 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 0))) FROM t +-- !query 2539 schema +struct +-- !query 2539 output +0 + + +-- !query 2540 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 0))) FROM t +-- !query 2540 schema +struct +-- !query 2540 output +0 + + +-- !query 2541 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 0))) FROM t +-- !query 2541 schema +struct<> +-- !query 2541 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2542 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 1))) FROM t +-- !query 2542 schema +struct +-- !query 2542 output +NULL + + +-- !query 2543 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(2, 1))) FROM t +-- !query 2543 schema +struct +-- !query 2543 output +0 + + +-- !query 2544 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 1))) FROM t +-- !query 2544 schema +struct +-- !query 2544 output +0 + + +-- !query 2545 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 1))) FROM t +-- !query 2545 schema +struct +-- !query 2545 output +0 + + +-- !query 2546 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 1))) FROM t +-- !query 2546 schema +struct +-- !query 2546 output +0 + + +-- !query 2547 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 1))) FROM t +-- !query 2547 schema +struct +-- !query 2547 output +0 + + +-- !query 2548 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 1))) FROM t +-- !query 2548 schema +struct +-- !query 2548 output +0 + + +-- !query 2549 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 1))) FROM t +-- !query 2549 schema +struct +-- !query 2549 output +0 + + +-- !query 2550 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 1))) FROM t +-- !query 2550 schema +struct +-- !query 2550 output +0 + + +-- !query 2551 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 1))) FROM t +-- !query 2551 schema +struct +-- !query 2551 output +0 + + +-- !query 2552 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 1))) FROM t +-- !query 2552 schema +struct +-- !query 2552 output +0 + + +-- !query 2553 +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 1))) FROM t +-- !query 2553 schema +struct<> +-- !query 2553 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2554 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 0))) FROM t +-- !query 2554 schema +struct +-- !query 2554 output +0 + + +-- !query 2555 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 0))) FROM t +-- !query 2555 schema +struct +-- !query 2555 output +0 + + +-- !query 2556 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 0))) FROM t +-- !query 2556 schema +struct +-- !query 2556 output +0 + + +-- !query 2557 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 0))) FROM t +-- !query 2557 schema +struct +-- !query 2557 output +0 + + +-- !query 2558 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 0))) FROM t +-- !query 2558 schema +struct +-- !query 2558 output +0 + + +-- !query 2559 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t +-- !query 2559 schema +struct +-- !query 2559 output +0 + + +-- !query 2560 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 0))) FROM t +-- !query 2560 schema +struct +-- !query 2560 output +0 + + +-- !query 2561 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 0))) FROM t +-- !query 2561 schema +struct +-- !query 2561 output +0 + + +-- !query 2562 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 0))) FROM t +-- !query 2562 schema +struct +-- !query 2562 output +0 + + +-- !query 2563 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 0))) FROM t +-- !query 2563 schema +struct +-- !query 2563 output +0 + + +-- !query 2564 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 0))) FROM t +-- !query 2564 schema +struct<> +-- !query 2564 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2565 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 1))) FROM t +-- !query 2565 schema +struct +-- !query 2565 output +NULL + + +-- !query 2566 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(2, 1))) FROM t +-- !query 2566 schema +struct +-- !query 2566 output +0 + + +-- !query 2567 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 1))) FROM t +-- !query 2567 schema +struct +-- !query 2567 output +0 + + +-- !query 2568 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 1))) FROM t +-- !query 2568 schema +struct +-- !query 2568 output +0 + + +-- !query 2569 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 1))) FROM t +-- !query 2569 schema +struct +-- !query 2569 output +0 + + +-- !query 2570 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 1))) FROM t +-- !query 2570 schema +struct +-- !query 2570 output +0 + + +-- !query 2571 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 1))) FROM t +-- !query 2571 schema +struct +-- !query 2571 output +0 + + +-- !query 2572 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 1))) FROM t +-- !query 2572 schema +struct +-- !query 2572 output +0 + + +-- !query 2573 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 1))) FROM t +-- !query 2573 schema +struct +-- !query 2573 output +0 + + +-- !query 2574 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 1))) FROM t +-- !query 2574 schema +struct +-- !query 2574 output +0 + + +-- !query 2575 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 1))) FROM t +-- !query 2575 schema +struct +-- !query 2575 output +0 + + +-- !query 2576 +SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 1))) FROM t +-- !query 2576 schema +struct<> +-- !query 2576 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2577 +SELECT pmod(cast(1 as int), cast(1 as decimal(1, 0))) FROM t +-- !query 2577 schema +struct +-- !query 2577 output +0 + + +-- !query 2578 +SELECT pmod(cast(1 as int), cast(1 as decimal(3, 0))) FROM t +-- !query 2578 schema +struct +-- !query 2578 output +0 + + +-- !query 2579 +SELECT pmod(cast(1 as int), cast(1 as decimal(4, 0))) FROM t +-- !query 2579 schema +struct +-- !query 2579 output +0 + + +-- !query 2580 +SELECT pmod(cast(1 as int), cast(1 as decimal(5, 0))) FROM t +-- !query 2580 schema +struct +-- !query 2580 output +0 + + +-- !query 2581 +SELECT pmod(cast(1 as int), cast(1 as decimal(6, 0))) FROM t +-- !query 2581 schema +struct +-- !query 2581 output +0 + + +-- !query 2582 +SELECT pmod(cast(1 as int), cast(1 as decimal(10, 0))) FROM t +-- !query 2582 schema +struct +-- !query 2582 output +0 + + +-- !query 2583 +SELECT pmod(cast(1 as int), cast(1 as decimal(11, 0))) FROM t +-- !query 2583 schema +struct +-- !query 2583 output +0 + + +-- !query 2584 +SELECT pmod(cast(1 as int), cast(1 as decimal(20, 0))) FROM t +-- !query 2584 schema +struct +-- !query 2584 output +0 + + +-- !query 2585 +SELECT pmod(cast(1 as int), cast(1 as decimal(21, 0))) FROM t +-- !query 2585 schema +struct +-- !query 2585 output +0 + + +-- !query 2586 +SELECT pmod(cast(1 as int), cast(1 as decimal(38, 0))) FROM t +-- !query 2586 schema +struct +-- !query 2586 output +0 + + +-- !query 2587 +SELECT pmod(cast(1 as int), cast(1 as decimal(39, 0))) FROM t +-- !query 2587 schema +struct<> +-- !query 2587 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as int), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2588 +SELECT pmod(cast(1 as int), cast(1 as decimal(1, 1))) FROM t +-- !query 2588 schema +struct +-- !query 2588 output +NULL + + +-- !query 2589 +SELECT pmod(cast(1 as int), cast(1 as decimal(2, 1))) FROM t +-- !query 2589 schema +struct +-- !query 2589 output +0 + + +-- !query 2590 +SELECT pmod(cast(1 as int), cast(1 as decimal(3, 1))) FROM t +-- !query 2590 schema +struct +-- !query 2590 output +0 + + +-- !query 2591 +SELECT pmod(cast(1 as int), cast(1 as decimal(4, 1))) FROM t +-- !query 2591 schema +struct +-- !query 2591 output +0 + + +-- !query 2592 +SELECT pmod(cast(1 as int), cast(1 as decimal(5, 1))) FROM t +-- !query 2592 schema +struct +-- !query 2592 output +0 + + +-- !query 2593 +SELECT pmod(cast(1 as int), cast(1 as decimal(6, 1))) FROM t +-- !query 2593 schema +struct +-- !query 2593 output +0 + + +-- !query 2594 +SELECT pmod(cast(1 as int), cast(1 as decimal(10, 1))) FROM t +-- !query 2594 schema +struct +-- !query 2594 output +0 + + +-- !query 2595 +SELECT pmod(cast(1 as int), cast(1 as decimal(11, 1))) FROM t +-- !query 2595 schema +struct +-- !query 2595 output +0 + + +-- !query 2596 +SELECT pmod(cast(1 as int), cast(1 as decimal(20, 1))) FROM t +-- !query 2596 schema +struct +-- !query 2596 output +0 + + +-- !query 2597 +SELECT pmod(cast(1 as int), cast(1 as decimal(21, 1))) FROM t +-- !query 2597 schema +struct +-- !query 2597 output +0 + + +-- !query 2598 +SELECT pmod(cast(1 as int), cast(1 as decimal(38, 1))) FROM t +-- !query 2598 schema +struct +-- !query 2598 output +0 + + +-- !query 2599 +SELECT pmod(cast(1 as int), cast(1 as decimal(39, 1))) FROM t +-- !query 2599 schema +struct<> +-- !query 2599 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as int), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2600 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 0))) FROM t +-- !query 2600 schema +struct +-- !query 2600 output +0 + + +-- !query 2601 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 0))) FROM t +-- !query 2601 schema +struct +-- !query 2601 output +0 + + +-- !query 2602 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 0))) FROM t +-- !query 2602 schema +struct +-- !query 2602 output +0 + + +-- !query 2603 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 0))) FROM t +-- !query 2603 schema +struct +-- !query 2603 output +0 + + +-- !query 2604 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 0))) FROM t +-- !query 2604 schema +struct +-- !query 2604 output +0 + + +-- !query 2605 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t +-- !query 2605 schema +struct +-- !query 2605 output +0 + + +-- !query 2606 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 0))) FROM t +-- !query 2606 schema +struct +-- !query 2606 output +0 + + +-- !query 2607 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 0))) FROM t +-- !query 2607 schema +struct +-- !query 2607 output +0 + + +-- !query 2608 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 0))) FROM t +-- !query 2608 schema +struct +-- !query 2608 output +0 + + +-- !query 2609 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 0))) FROM t +-- !query 2609 schema +struct +-- !query 2609 output +0 + + +-- !query 2610 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 0))) FROM t +-- !query 2610 schema +struct<> +-- !query 2610 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2611 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 1))) FROM t +-- !query 2611 schema +struct +-- !query 2611 output +NULL + + +-- !query 2612 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(2, 1))) FROM t +-- !query 2612 schema +struct +-- !query 2612 output +0 + + +-- !query 2613 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 1))) FROM t +-- !query 2613 schema +struct +-- !query 2613 output +0 + + +-- !query 2614 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 1))) FROM t +-- !query 2614 schema +struct +-- !query 2614 output +0 + + +-- !query 2615 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 1))) FROM t +-- !query 2615 schema +struct +-- !query 2615 output +0 + + +-- !query 2616 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 1))) FROM t +-- !query 2616 schema +struct +-- !query 2616 output +0 + + +-- !query 2617 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 1))) FROM t +-- !query 2617 schema +struct +-- !query 2617 output +0 + + +-- !query 2618 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 1))) FROM t +-- !query 2618 schema +struct +-- !query 2618 output +0 + + +-- !query 2619 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 1))) FROM t +-- !query 2619 schema +struct +-- !query 2619 output +0 + + +-- !query 2620 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 1))) FROM t +-- !query 2620 schema +struct +-- !query 2620 output +0 + + +-- !query 2621 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 1))) FROM t +-- !query 2621 schema +struct +-- !query 2621 output +0 + + +-- !query 2622 +SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 1))) FROM t +-- !query 2622 schema +struct<> +-- !query 2622 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2623 +SELECT pmod(cast(1 as float), cast(1 as decimal(1, 0))) FROM t +-- !query 2623 schema +struct +-- !query 2623 output +0.0 + + +-- !query 2624 +SELECT pmod(cast(1 as float), cast(1 as decimal(3, 0))) FROM t +-- !query 2624 schema +struct +-- !query 2624 output +0.0 + + +-- !query 2625 +SELECT pmod(cast(1 as float), cast(1 as decimal(4, 0))) FROM t +-- !query 2625 schema +struct +-- !query 2625 output +0.0 + + +-- !query 2626 +SELECT pmod(cast(1 as float), cast(1 as decimal(5, 0))) FROM t +-- !query 2626 schema +struct +-- !query 2626 output +0.0 + + +-- !query 2627 +SELECT pmod(cast(1 as float), cast(1 as decimal(6, 0))) FROM t +-- !query 2627 schema +struct +-- !query 2627 output +0.0 + + +-- !query 2628 +SELECT pmod(cast(1 as float), cast(1 as decimal(10, 0))) FROM t +-- !query 2628 schema +struct +-- !query 2628 output +0.0 + + +-- !query 2629 +SELECT pmod(cast(1 as float), cast(1 as decimal(11, 0))) FROM t +-- !query 2629 schema +struct +-- !query 2629 output +0.0 + + +-- !query 2630 +SELECT pmod(cast(1 as float), cast(1 as decimal(20, 0))) FROM t +-- !query 2630 schema +struct +-- !query 2630 output +0.0 + + +-- !query 2631 +SELECT pmod(cast(1 as float), cast(1 as decimal(21, 0))) FROM t +-- !query 2631 schema +struct +-- !query 2631 output +0.0 + + +-- !query 2632 +SELECT pmod(cast(1 as float), cast(1 as decimal(38, 0))) FROM t +-- !query 2632 schema +struct +-- !query 2632 output +0.0 + + +-- !query 2633 +SELECT pmod(cast(1 as float), cast(1 as decimal(39, 0))) FROM t +-- !query 2633 schema +struct<> +-- !query 2633 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as float), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2634 +SELECT pmod(cast(1 as float), cast(1 as decimal(1, 1))) FROM t +-- !query 2634 schema +struct +-- !query 2634 output +NULL + + +-- !query 2635 +SELECT pmod(cast(1 as float), cast(1 as decimal(2, 1))) FROM t +-- !query 2635 schema +struct +-- !query 2635 output +0.0 + + +-- !query 2636 +SELECT pmod(cast(1 as float), cast(1 as decimal(3, 1))) FROM t +-- !query 2636 schema +struct +-- !query 2636 output +0.0 + + +-- !query 2637 +SELECT pmod(cast(1 as float), cast(1 as decimal(4, 1))) FROM t +-- !query 2637 schema +struct +-- !query 2637 output +0.0 + + +-- !query 2638 +SELECT pmod(cast(1 as float), cast(1 as decimal(5, 1))) FROM t +-- !query 2638 schema +struct +-- !query 2638 output +0.0 + + +-- !query 2639 +SELECT pmod(cast(1 as float), cast(1 as decimal(6, 1))) FROM t +-- !query 2639 schema +struct +-- !query 2639 output +0.0 + + +-- !query 2640 +SELECT pmod(cast(1 as float), cast(1 as decimal(10, 1))) FROM t +-- !query 2640 schema +struct +-- !query 2640 output +0.0 + + +-- !query 2641 +SELECT pmod(cast(1 as float), cast(1 as decimal(11, 1))) FROM t +-- !query 2641 schema +struct +-- !query 2641 output +0.0 + + +-- !query 2642 +SELECT pmod(cast(1 as float), cast(1 as decimal(20, 1))) FROM t +-- !query 2642 schema +struct +-- !query 2642 output +0.0 + + +-- !query 2643 +SELECT pmod(cast(1 as float), cast(1 as decimal(21, 1))) FROM t +-- !query 2643 schema +struct +-- !query 2643 output +0.0 + + +-- !query 2644 +SELECT pmod(cast(1 as float), cast(1 as decimal(38, 1))) FROM t +-- !query 2644 schema +struct +-- !query 2644 output +0.0 + + +-- !query 2645 +SELECT pmod(cast(1 as float), cast(1 as decimal(39, 1))) FROM t +-- !query 2645 schema +struct<> +-- !query 2645 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as float), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2646 +SELECT pmod(cast(1 as double), cast(1 as decimal(1, 0))) FROM t +-- !query 2646 schema +struct +-- !query 2646 output +0.0 + + +-- !query 2647 +SELECT pmod(cast(1 as double), cast(1 as decimal(3, 0))) FROM t +-- !query 2647 schema +struct +-- !query 2647 output +0.0 + + +-- !query 2648 +SELECT pmod(cast(1 as double), cast(1 as decimal(4, 0))) FROM t +-- !query 2648 schema +struct +-- !query 2648 output +0.0 + + +-- !query 2649 +SELECT pmod(cast(1 as double), cast(1 as decimal(5, 0))) FROM t +-- !query 2649 schema +struct +-- !query 2649 output +0.0 + + +-- !query 2650 +SELECT pmod(cast(1 as double), cast(1 as decimal(6, 0))) FROM t +-- !query 2650 schema +struct +-- !query 2650 output +0.0 + + +-- !query 2651 +SELECT pmod(cast(1 as double), cast(1 as decimal(10, 0))) FROM t +-- !query 2651 schema +struct +-- !query 2651 output +0.0 + + +-- !query 2652 +SELECT pmod(cast(1 as double), cast(1 as decimal(11, 0))) FROM t +-- !query 2652 schema +struct +-- !query 2652 output +0.0 + + +-- !query 2653 +SELECT pmod(cast(1 as double), cast(1 as decimal(20, 0))) FROM t +-- !query 2653 schema +struct +-- !query 2653 output +0.0 + + +-- !query 2654 +SELECT pmod(cast(1 as double), cast(1 as decimal(21, 0))) FROM t +-- !query 2654 schema +struct +-- !query 2654 output +0.0 + + +-- !query 2655 +SELECT pmod(cast(1 as double), cast(1 as decimal(38, 0))) FROM t +-- !query 2655 schema +struct +-- !query 2655 output +0.0 + + +-- !query 2656 +SELECT pmod(cast(1 as double), cast(1 as decimal(39, 0))) FROM t +-- !query 2656 schema +struct<> +-- !query 2656 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as double), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2657 +SELECT pmod(cast(1 as double), cast(1 as decimal(1, 1))) FROM t +-- !query 2657 schema +struct +-- !query 2657 output +NULL + + +-- !query 2658 +SELECT pmod(cast(1 as double), cast(1 as decimal(2, 1))) FROM t +-- !query 2658 schema +struct +-- !query 2658 output +0.0 + + +-- !query 2659 +SELECT pmod(cast(1 as double), cast(1 as decimal(3, 1))) FROM t +-- !query 2659 schema +struct +-- !query 2659 output +0.0 + + +-- !query 2660 +SELECT pmod(cast(1 as double), cast(1 as decimal(4, 1))) FROM t +-- !query 2660 schema +struct +-- !query 2660 output +0.0 + + +-- !query 2661 +SELECT pmod(cast(1 as double), cast(1 as decimal(5, 1))) FROM t +-- !query 2661 schema +struct +-- !query 2661 output +0.0 + + +-- !query 2662 +SELECT pmod(cast(1 as double), cast(1 as decimal(6, 1))) FROM t +-- !query 2662 schema +struct +-- !query 2662 output +0.0 + + +-- !query 2663 +SELECT pmod(cast(1 as double), cast(1 as decimal(10, 1))) FROM t +-- !query 2663 schema +struct +-- !query 2663 output +0.0 + + +-- !query 2664 +SELECT pmod(cast(1 as double), cast(1 as decimal(11, 1))) FROM t +-- !query 2664 schema +struct +-- !query 2664 output +0.0 + + +-- !query 2665 +SELECT pmod(cast(1 as double), cast(1 as decimal(20, 1))) FROM t +-- !query 2665 schema +struct +-- !query 2665 output +0.0 + + +-- !query 2666 +SELECT pmod(cast(1 as double), cast(1 as decimal(21, 1))) FROM t +-- !query 2666 schema +struct +-- !query 2666 output +0.0 + + +-- !query 2667 +SELECT pmod(cast(1 as double), cast(1 as decimal(38, 1))) FROM t +-- !query 2667 schema +struct +-- !query 2667 output +0.0 + + +-- !query 2668 +SELECT pmod(cast(1 as double), cast(1 as decimal(39, 1))) FROM t +-- !query 2668 schema +struct<> +-- !query 2668 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as double), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2669 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 0))) FROM t +-- !query 2669 schema +struct +-- !query 2669 output +0 + + +-- !query 2670 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 0))) FROM t +-- !query 2670 schema +struct +-- !query 2670 output +0 + + +-- !query 2671 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 0))) FROM t +-- !query 2671 schema +struct +-- !query 2671 output +0 + + +-- !query 2672 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 0))) FROM t +-- !query 2672 schema +struct +-- !query 2672 output +0 + + +-- !query 2673 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 0))) FROM t +-- !query 2673 schema +struct +-- !query 2673 output +0 + + +-- !query 2674 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 2674 schema +struct +-- !query 2674 output +0 + + +-- !query 2675 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 0))) FROM t +-- !query 2675 schema +struct +-- !query 2675 output +0 + + +-- !query 2676 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 0))) FROM t +-- !query 2676 schema +struct +-- !query 2676 output +0 + + +-- !query 2677 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 0))) FROM t +-- !query 2677 schema +struct +-- !query 2677 output +0 + + +-- !query 2678 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 0))) FROM t +-- !query 2678 schema +struct +-- !query 2678 output +0 + + +-- !query 2679 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 0))) FROM t +-- !query 2679 schema +struct<> +-- !query 2679 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2680 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 1))) FROM t +-- !query 2680 schema +struct +-- !query 2680 output +NULL + + +-- !query 2681 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(2, 1))) FROM t +-- !query 2681 schema +struct +-- !query 2681 output +0 + + +-- !query 2682 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 1))) FROM t +-- !query 2682 schema +struct +-- !query 2682 output +0 + + +-- !query 2683 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 1))) FROM t +-- !query 2683 schema +struct +-- !query 2683 output +0 + + +-- !query 2684 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 1))) FROM t +-- !query 2684 schema +struct +-- !query 2684 output +0 + + +-- !query 2685 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 1))) FROM t +-- !query 2685 schema +struct +-- !query 2685 output +0 + + +-- !query 2686 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 1))) FROM t +-- !query 2686 schema +struct +-- !query 2686 output +0 + + +-- !query 2687 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 1))) FROM t +-- !query 2687 schema +struct +-- !query 2687 output +0 + + +-- !query 2688 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 1))) FROM t +-- !query 2688 schema +struct +-- !query 2688 output +0 + + +-- !query 2689 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 1))) FROM t +-- !query 2689 schema +struct +-- !query 2689 output +0 + + +-- !query 2690 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 1))) FROM t +-- !query 2690 schema +struct +-- !query 2690 output +0 + + +-- !query 2691 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 1))) FROM t +-- !query 2691 schema +struct<> +-- !query 2691 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2692 +SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 0))) FROM t +-- !query 2692 schema +struct<> +-- !query 2692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 2693 +SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 0))) FROM t +-- !query 2693 schema +struct<> +-- !query 2693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 2694 +SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 0))) FROM t +-- !query 2694 schema +struct<> +-- !query 2694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 2695 +SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 0))) FROM t +-- !query 2695 schema +struct<> +-- !query 2695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 2696 +SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 0))) FROM t +-- !query 2696 schema +struct<> +-- !query 2696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 2697 +SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t +-- !query 2697 schema +struct<> +-- !query 2697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 2698 +SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 0))) FROM t +-- !query 2698 schema +struct<> +-- !query 2698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 2699 +SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 0))) FROM t +-- !query 2699 schema +struct<> +-- !query 2699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 2700 +SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 0))) FROM t +-- !query 2700 schema +struct<> +-- !query 2700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 2701 +SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 0))) FROM t +-- !query 2701 schema +struct<> +-- !query 2701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 2702 +SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 0))) FROM t +-- !query 2702 schema +struct<> +-- !query 2702 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2703 +SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 1))) FROM t +-- !query 2703 schema +struct<> +-- !query 2703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 2704 +SELECT pmod(cast('1' as binary), cast(1 as decimal(2, 1))) FROM t +-- !query 2704 schema +struct<> +-- !query 2704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 2705 +SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 1))) FROM t +-- !query 2705 schema +struct<> +-- !query 2705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 2706 +SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 1))) FROM t +-- !query 2706 schema +struct<> +-- !query 2706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 2707 +SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 1))) FROM t +-- !query 2707 schema +struct<> +-- !query 2707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 2708 +SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 1))) FROM t +-- !query 2708 schema +struct<> +-- !query 2708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 2709 +SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 1))) FROM t +-- !query 2709 schema +struct<> +-- !query 2709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 2710 +SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 1))) FROM t +-- !query 2710 schema +struct<> +-- !query 2710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 2711 +SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 1))) FROM t +-- !query 2711 schema +struct<> +-- !query 2711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 2712 +SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 1))) FROM t +-- !query 2712 schema +struct<> +-- !query 2712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 2713 +SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 1))) FROM t +-- !query 2713 schema +struct<> +-- !query 2713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 2714 +SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 1))) FROM t +-- !query 2714 schema +struct<> +-- !query 2714 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2715 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 0))) FROM t +-- !query 2715 schema +struct<> +-- !query 2715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 2716 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 0))) FROM t +-- !query 2716 schema +struct<> +-- !query 2716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 2717 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 0))) FROM t +-- !query 2717 schema +struct<> +-- !query 2717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 2718 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 0))) FROM t +-- !query 2718 schema +struct<> +-- !query 2718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 2719 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 0))) FROM t +-- !query 2719 schema +struct<> +-- !query 2719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 2720 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t +-- !query 2720 schema +struct<> +-- !query 2720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 2721 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 0))) FROM t +-- !query 2721 schema +struct<> +-- !query 2721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 2722 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 0))) FROM t +-- !query 2722 schema +struct<> +-- !query 2722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 2723 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 0))) FROM t +-- !query 2723 schema +struct<> +-- !query 2723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 2724 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 0))) FROM t +-- !query 2724 schema +struct<> +-- !query 2724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 2725 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 0))) FROM t +-- !query 2725 schema +struct<> +-- !query 2725 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2726 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 1))) FROM t +-- !query 2726 schema +struct<> +-- !query 2726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 2727 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(2, 1))) FROM t +-- !query 2727 schema +struct<> +-- !query 2727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 2728 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 1))) FROM t +-- !query 2728 schema +struct<> +-- !query 2728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 2729 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 1))) FROM t +-- !query 2729 schema +struct<> +-- !query 2729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 2730 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 1))) FROM t +-- !query 2730 schema +struct<> +-- !query 2730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 2731 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 1))) FROM t +-- !query 2731 schema +struct<> +-- !query 2731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 2732 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 1))) FROM t +-- !query 2732 schema +struct<> +-- !query 2732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 2733 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 1))) FROM t +-- !query 2733 schema +struct<> +-- !query 2733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 2734 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 1))) FROM t +-- !query 2734 schema +struct<> +-- !query 2734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 2735 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 1))) FROM t +-- !query 2735 schema +struct<> +-- !query 2735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 2736 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 1))) FROM t +-- !query 2736 schema +struct<> +-- !query 2736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 2737 +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 1))) FROM t +-- !query 2737 schema +struct<> +-- !query 2737 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2738 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 0))) FROM t +-- !query 2738 schema +struct<> +-- !query 2738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 2739 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 0))) FROM t +-- !query 2739 schema +struct<> +-- !query 2739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 2740 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 0))) FROM t +-- !query 2740 schema +struct<> +-- !query 2740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 2741 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 0))) FROM t +-- !query 2741 schema +struct<> +-- !query 2741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 2742 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 0))) FROM t +-- !query 2742 schema +struct<> +-- !query 2742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 2743 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t +-- !query 2743 schema +struct<> +-- !query 2743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 2744 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 0))) FROM t +-- !query 2744 schema +struct<> +-- !query 2744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 2745 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 0))) FROM t +-- !query 2745 schema +struct<> +-- !query 2745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 2746 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 0))) FROM t +-- !query 2746 schema +struct<> +-- !query 2746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 2747 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 0))) FROM t +-- !query 2747 schema +struct<> +-- !query 2747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 2748 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 0))) FROM t +-- !query 2748 schema +struct<> +-- !query 2748 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 0))) FROM t + + +-- !query 2749 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 1))) FROM t +-- !query 2749 schema +struct<> +-- !query 2749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 2750 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(2, 1))) FROM t +-- !query 2750 schema +struct<> +-- !query 2750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 2751 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 1))) FROM t +-- !query 2751 schema +struct<> +-- !query 2751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 2752 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 1))) FROM t +-- !query 2752 schema +struct<> +-- !query 2752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 2753 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 1))) FROM t +-- !query 2753 schema +struct<> +-- !query 2753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 2754 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 1))) FROM t +-- !query 2754 schema +struct<> +-- !query 2754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 2755 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 1))) FROM t +-- !query 2755 schema +struct<> +-- !query 2755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 2756 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 1))) FROM t +-- !query 2756 schema +struct<> +-- !query 2756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 2757 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 1))) FROM t +-- !query 2757 schema +struct<> +-- !query 2757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 2758 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 1))) FROM t +-- !query 2758 schema +struct<> +-- !query 2758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 2759 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 1))) FROM t +-- !query 2759 schema +struct<> +-- !query 2759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 2760 +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 1))) FROM t +-- !query 2760 schema +struct<> +-- !query 2760 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 1))) FROM t + + +-- !query 2761 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as tinyint)) FROM t +-- !query 2761 schema +struct +-- !query 2761 output +0 + + +-- !query 2762 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as tinyint)) FROM t +-- !query 2762 schema +struct +-- !query 2762 output +0 + + +-- !query 2763 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as tinyint)) FROM t +-- !query 2763 schema +struct +-- !query 2763 output +0 + + +-- !query 2764 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as tinyint)) FROM t +-- !query 2764 schema +struct +-- !query 2764 output +0 + + +-- !query 2765 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as tinyint)) FROM t +-- !query 2765 schema +struct +-- !query 2765 output +0 + + +-- !query 2766 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t +-- !query 2766 schema +struct +-- !query 2766 output +0 + + +-- !query 2767 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as tinyint)) FROM t +-- !query 2767 schema +struct +-- !query 2767 output +0 + + +-- !query 2768 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as tinyint)) FROM t +-- !query 2768 schema +struct +-- !query 2768 output +0 + + +-- !query 2769 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as tinyint)) FROM t +-- !query 2769 schema +struct +-- !query 2769 output +0 + + +-- !query 2770 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as tinyint)) FROM t +-- !query 2770 schema +struct +-- !query 2770 output +0 + + +-- !query 2771 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as tinyint)) FROM t +-- !query 2771 schema +struct<> +-- !query 2771 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as tinyint)) FROM t + + +-- !query 2772 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as tinyint)) FROM t +-- !query 2772 schema +struct +-- !query 2772 output +NULL + + +-- !query 2773 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as tinyint)) FROM t +-- !query 2773 schema +struct +-- !query 2773 output +0 + + +-- !query 2774 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as tinyint)) FROM t +-- !query 2774 schema +struct +-- !query 2774 output +0 + + +-- !query 2775 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as tinyint)) FROM t +-- !query 2775 schema +struct +-- !query 2775 output +0 + + +-- !query 2776 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as tinyint)) FROM t +-- !query 2776 schema +struct +-- !query 2776 output +0 + + +-- !query 2777 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as tinyint)) FROM t +-- !query 2777 schema +struct +-- !query 2777 output +0 + + +-- !query 2778 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as tinyint)) FROM t +-- !query 2778 schema +struct +-- !query 2778 output +0 + + +-- !query 2779 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as tinyint)) FROM t +-- !query 2779 schema +struct +-- !query 2779 output +0 + + +-- !query 2780 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as tinyint)) FROM t +-- !query 2780 schema +struct +-- !query 2780 output +0 + + +-- !query 2781 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as tinyint)) FROM t +-- !query 2781 schema +struct +-- !query 2781 output +0 + + +-- !query 2782 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as tinyint)) FROM t +-- !query 2782 schema +struct +-- !query 2782 output +0 + + +-- !query 2783 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as tinyint)) FROM t +-- !query 2783 schema +struct<> +-- !query 2783 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as tinyint)) FROM t + + +-- !query 2784 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as smallint)) FROM t +-- !query 2784 schema +struct +-- !query 2784 output +0 + + +-- !query 2785 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as smallint)) FROM t +-- !query 2785 schema +struct +-- !query 2785 output +0 + + +-- !query 2786 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as smallint)) FROM t +-- !query 2786 schema +struct +-- !query 2786 output +0 + + +-- !query 2787 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as smallint)) FROM t +-- !query 2787 schema +struct +-- !query 2787 output +0 + + +-- !query 2788 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as smallint)) FROM t +-- !query 2788 schema +struct +-- !query 2788 output +0 + + +-- !query 2789 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t +-- !query 2789 schema +struct +-- !query 2789 output +0 + + +-- !query 2790 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as smallint)) FROM t +-- !query 2790 schema +struct +-- !query 2790 output +0 + + +-- !query 2791 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as smallint)) FROM t +-- !query 2791 schema +struct +-- !query 2791 output +0 + + +-- !query 2792 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as smallint)) FROM t +-- !query 2792 schema +struct +-- !query 2792 output +0 + + +-- !query 2793 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as smallint)) FROM t +-- !query 2793 schema +struct +-- !query 2793 output +0 + + +-- !query 2794 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as smallint)) FROM t +-- !query 2794 schema +struct<> +-- !query 2794 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as smallint)) FROM t + + +-- !query 2795 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as smallint)) FROM t +-- !query 2795 schema +struct +-- !query 2795 output +NULL + + +-- !query 2796 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as smallint)) FROM t +-- !query 2796 schema +struct +-- !query 2796 output +0 + + +-- !query 2797 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as smallint)) FROM t +-- !query 2797 schema +struct +-- !query 2797 output +0 + + +-- !query 2798 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as smallint)) FROM t +-- !query 2798 schema +struct +-- !query 2798 output +0 + + +-- !query 2799 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as smallint)) FROM t +-- !query 2799 schema +struct +-- !query 2799 output +0 + + +-- !query 2800 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as smallint)) FROM t +-- !query 2800 schema +struct +-- !query 2800 output +0 + + +-- !query 2801 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as smallint)) FROM t +-- !query 2801 schema +struct +-- !query 2801 output +0 + + +-- !query 2802 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as smallint)) FROM t +-- !query 2802 schema +struct +-- !query 2802 output +0 + + +-- !query 2803 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as smallint)) FROM t +-- !query 2803 schema +struct +-- !query 2803 output +0 + + +-- !query 2804 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as smallint)) FROM t +-- !query 2804 schema +struct +-- !query 2804 output +0 + + +-- !query 2805 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as smallint)) FROM t +-- !query 2805 schema +struct +-- !query 2805 output +0 + + +-- !query 2806 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as smallint)) FROM t +-- !query 2806 schema +struct<> +-- !query 2806 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as smallint)) FROM t + + +-- !query 2807 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as int)) FROM t +-- !query 2807 schema +struct +-- !query 2807 output +0 + + +-- !query 2808 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as int)) FROM t +-- !query 2808 schema +struct +-- !query 2808 output +0 + + +-- !query 2809 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as int)) FROM t +-- !query 2809 schema +struct +-- !query 2809 output +0 + + +-- !query 2810 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as int)) FROM t +-- !query 2810 schema +struct +-- !query 2810 output +0 + + +-- !query 2811 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as int)) FROM t +-- !query 2811 schema +struct +-- !query 2811 output +0 + + +-- !query 2812 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t +-- !query 2812 schema +struct +-- !query 2812 output +0 + + +-- !query 2813 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as int)) FROM t +-- !query 2813 schema +struct +-- !query 2813 output +0 + + +-- !query 2814 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as int)) FROM t +-- !query 2814 schema +struct +-- !query 2814 output +0 + + +-- !query 2815 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as int)) FROM t +-- !query 2815 schema +struct +-- !query 2815 output +0 + + +-- !query 2816 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as int)) FROM t +-- !query 2816 schema +struct +-- !query 2816 output +0 + + +-- !query 2817 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as int)) FROM t +-- !query 2817 schema +struct<> +-- !query 2817 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as int)) FROM t + + +-- !query 2818 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as int)) FROM t +-- !query 2818 schema +struct +-- !query 2818 output +NULL + + +-- !query 2819 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as int)) FROM t +-- !query 2819 schema +struct +-- !query 2819 output +0 + + +-- !query 2820 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as int)) FROM t +-- !query 2820 schema +struct +-- !query 2820 output +0 + + +-- !query 2821 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as int)) FROM t +-- !query 2821 schema +struct +-- !query 2821 output +0 + + +-- !query 2822 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as int)) FROM t +-- !query 2822 schema +struct +-- !query 2822 output +0 + + +-- !query 2823 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as int)) FROM t +-- !query 2823 schema +struct +-- !query 2823 output +0 + + +-- !query 2824 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as int)) FROM t +-- !query 2824 schema +struct +-- !query 2824 output +0 + + +-- !query 2825 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as int)) FROM t +-- !query 2825 schema +struct +-- !query 2825 output +0 + + +-- !query 2826 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as int)) FROM t +-- !query 2826 schema +struct +-- !query 2826 output +0 + + +-- !query 2827 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as int)) FROM t +-- !query 2827 schema +struct +-- !query 2827 output +0 + + +-- !query 2828 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as int)) FROM t +-- !query 2828 schema +struct +-- !query 2828 output +0 + + +-- !query 2829 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as int)) FROM t +-- !query 2829 schema +struct<> +-- !query 2829 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as int)) FROM t + + +-- !query 2830 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as bigint)) FROM t +-- !query 2830 schema +struct +-- !query 2830 output +0 + + +-- !query 2831 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as bigint)) FROM t +-- !query 2831 schema +struct +-- !query 2831 output +0 + + +-- !query 2832 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as bigint)) FROM t +-- !query 2832 schema +struct +-- !query 2832 output +0 + + +-- !query 2833 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as bigint)) FROM t +-- !query 2833 schema +struct +-- !query 2833 output +0 + + +-- !query 2834 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as bigint)) FROM t +-- !query 2834 schema +struct +-- !query 2834 output +0 + + +-- !query 2835 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t +-- !query 2835 schema +struct +-- !query 2835 output +0 + + +-- !query 2836 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as bigint)) FROM t +-- !query 2836 schema +struct +-- !query 2836 output +0 + + +-- !query 2837 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as bigint)) FROM t +-- !query 2837 schema +struct +-- !query 2837 output +0 + + +-- !query 2838 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as bigint)) FROM t +-- !query 2838 schema +struct +-- !query 2838 output +0 + + +-- !query 2839 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as bigint)) FROM t +-- !query 2839 schema +struct +-- !query 2839 output +0 + + +-- !query 2840 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as bigint)) FROM t +-- !query 2840 schema +struct<> +-- !query 2840 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as bigint)) FROM t + + +-- !query 2841 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as bigint)) FROM t +-- !query 2841 schema +struct +-- !query 2841 output +NULL + + +-- !query 2842 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as bigint)) FROM t +-- !query 2842 schema +struct +-- !query 2842 output +0 + + +-- !query 2843 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as bigint)) FROM t +-- !query 2843 schema +struct +-- !query 2843 output +0 + + +-- !query 2844 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as bigint)) FROM t +-- !query 2844 schema +struct +-- !query 2844 output +0 + + +-- !query 2845 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as bigint)) FROM t +-- !query 2845 schema +struct +-- !query 2845 output +0 + + +-- !query 2846 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as bigint)) FROM t +-- !query 2846 schema +struct +-- !query 2846 output +0 + + +-- !query 2847 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as bigint)) FROM t +-- !query 2847 schema +struct +-- !query 2847 output +0 + + +-- !query 2848 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as bigint)) FROM t +-- !query 2848 schema +struct +-- !query 2848 output +0 + + +-- !query 2849 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as bigint)) FROM t +-- !query 2849 schema +struct +-- !query 2849 output +0 + + +-- !query 2850 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as bigint)) FROM t +-- !query 2850 schema +struct +-- !query 2850 output +0 + + +-- !query 2851 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as bigint)) FROM t +-- !query 2851 schema +struct +-- !query 2851 output +0 + + +-- !query 2852 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as bigint)) FROM t +-- !query 2852 schema +struct<> +-- !query 2852 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as bigint)) FROM t + + +-- !query 2853 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as float)) FROM t +-- !query 2853 schema +struct +-- !query 2853 output +0.0 + + +-- !query 2854 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as float)) FROM t +-- !query 2854 schema +struct +-- !query 2854 output +0.0 + + +-- !query 2855 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as float)) FROM t +-- !query 2855 schema +struct +-- !query 2855 output +0.0 + + +-- !query 2856 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as float)) FROM t +-- !query 2856 schema +struct +-- !query 2856 output +0.0 + + +-- !query 2857 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as float)) FROM t +-- !query 2857 schema +struct +-- !query 2857 output +0.0 + + +-- !query 2858 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t +-- !query 2858 schema +struct +-- !query 2858 output +0.0 + + +-- !query 2859 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as float)) FROM t +-- !query 2859 schema +struct +-- !query 2859 output +0.0 + + +-- !query 2860 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as float)) FROM t +-- !query 2860 schema +struct +-- !query 2860 output +0.0 + + +-- !query 2861 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as float)) FROM t +-- !query 2861 schema +struct +-- !query 2861 output +0.0 + + +-- !query 2862 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as float)) FROM t +-- !query 2862 schema +struct +-- !query 2862 output +0.0 + + +-- !query 2863 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as float)) FROM t +-- !query 2863 schema +struct<> +-- !query 2863 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as float)) FROM t + + +-- !query 2864 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as float)) FROM t +-- !query 2864 schema +struct +-- !query 2864 output +NULL + + +-- !query 2865 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as float)) FROM t +-- !query 2865 schema +struct +-- !query 2865 output +0.0 + + +-- !query 2866 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as float)) FROM t +-- !query 2866 schema +struct +-- !query 2866 output +0.0 + + +-- !query 2867 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as float)) FROM t +-- !query 2867 schema +struct +-- !query 2867 output +0.0 + + +-- !query 2868 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as float)) FROM t +-- !query 2868 schema +struct +-- !query 2868 output +0.0 + + +-- !query 2869 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as float)) FROM t +-- !query 2869 schema +struct +-- !query 2869 output +0.0 + + +-- !query 2870 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as float)) FROM t +-- !query 2870 schema +struct +-- !query 2870 output +0.0 + + +-- !query 2871 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as float)) FROM t +-- !query 2871 schema +struct +-- !query 2871 output +0.0 + + +-- !query 2872 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as float)) FROM t +-- !query 2872 schema +struct +-- !query 2872 output +0.0 + + +-- !query 2873 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as float)) FROM t +-- !query 2873 schema +struct +-- !query 2873 output +0.0 + + +-- !query 2874 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as float)) FROM t +-- !query 2874 schema +struct +-- !query 2874 output +0.0 + + +-- !query 2875 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as float)) FROM t +-- !query 2875 schema +struct<> +-- !query 2875 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as float)) FROM t + + +-- !query 2876 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as double)) FROM t +-- !query 2876 schema +struct +-- !query 2876 output +0.0 + + +-- !query 2877 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as double)) FROM t +-- !query 2877 schema +struct +-- !query 2877 output +0.0 + + +-- !query 2878 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as double)) FROM t +-- !query 2878 schema +struct +-- !query 2878 output +0.0 + + +-- !query 2879 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as double)) FROM t +-- !query 2879 schema +struct +-- !query 2879 output +0.0 + + +-- !query 2880 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as double)) FROM t +-- !query 2880 schema +struct +-- !query 2880 output +0.0 + + +-- !query 2881 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t +-- !query 2881 schema +struct +-- !query 2881 output +0.0 + + +-- !query 2882 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as double)) FROM t +-- !query 2882 schema +struct +-- !query 2882 output +0.0 + + +-- !query 2883 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as double)) FROM t +-- !query 2883 schema +struct +-- !query 2883 output +0.0 + + +-- !query 2884 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as double)) FROM t +-- !query 2884 schema +struct +-- !query 2884 output +0.0 + + +-- !query 2885 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as double)) FROM t +-- !query 2885 schema +struct +-- !query 2885 output +0.0 + + +-- !query 2886 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as double)) FROM t +-- !query 2886 schema +struct<> +-- !query 2886 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as double)) FROM t + + +-- !query 2887 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as double)) FROM t +-- !query 2887 schema +struct +-- !query 2887 output +NULL + + +-- !query 2888 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as double)) FROM t +-- !query 2888 schema +struct +-- !query 2888 output +0.0 + + +-- !query 2889 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as double)) FROM t +-- !query 2889 schema +struct +-- !query 2889 output +0.0 + + +-- !query 2890 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as double)) FROM t +-- !query 2890 schema +struct +-- !query 2890 output +0.0 + + +-- !query 2891 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as double)) FROM t +-- !query 2891 schema +struct +-- !query 2891 output +0.0 + + +-- !query 2892 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as double)) FROM t +-- !query 2892 schema +struct +-- !query 2892 output +0.0 + + +-- !query 2893 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as double)) FROM t +-- !query 2893 schema +struct +-- !query 2893 output +0.0 + + +-- !query 2894 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as double)) FROM t +-- !query 2894 schema +struct +-- !query 2894 output +0.0 + + +-- !query 2895 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as double)) FROM t +-- !query 2895 schema +struct +-- !query 2895 output +0.0 + + +-- !query 2896 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as double)) FROM t +-- !query 2896 schema +struct +-- !query 2896 output +0.0 + + +-- !query 2897 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as double)) FROM t +-- !query 2897 schema +struct +-- !query 2897 output +0.0 + + +-- !query 2898 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as double)) FROM t +-- !query 2898 schema +struct<> +-- !query 2898 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as double)) FROM t + + +-- !query 2899 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2899 schema +struct +-- !query 2899 output +0 + + +-- !query 2900 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2900 schema +struct +-- !query 2900 output +0 + + +-- !query 2901 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2901 schema +struct +-- !query 2901 output +0 + + +-- !query 2902 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2902 schema +struct +-- !query 2902 output +0 + + +-- !query 2903 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2903 schema +struct +-- !query 2903 output +0 + + +-- !query 2904 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 2904 schema +struct +-- !query 2904 output +0 + + +-- !query 2905 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 2905 schema +struct +-- !query 2905 output +0 + + +-- !query 2906 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 2906 schema +struct +-- !query 2906 output +0 + + +-- !query 2907 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 2907 schema +struct +-- !query 2907 output +0 + + +-- !query 2908 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 2908 schema +struct +-- !query 2908 output +0 + + +-- !query 2909 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 2909 schema +struct<> +-- !query 2909 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as decimal(10, 0))) FROM t + + +-- !query 2910 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2910 schema +struct +-- !query 2910 output +NULL + + +-- !query 2911 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2911 schema +struct +-- !query 2911 output +0 + + +-- !query 2912 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2912 schema +struct +-- !query 2912 output +0 + + +-- !query 2913 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2913 schema +struct +-- !query 2913 output +0 + + +-- !query 2914 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2914 schema +struct +-- !query 2914 output +0 + + +-- !query 2915 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as decimal(10, 0))) FROM t +-- !query 2915 schema +struct +-- !query 2915 output +0 + + +-- !query 2916 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as decimal(10, 0))) FROM t +-- !query 2916 schema +struct +-- !query 2916 output +0 + + +-- !query 2917 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as decimal(10, 0))) FROM t +-- !query 2917 schema +struct +-- !query 2917 output +0 + + +-- !query 2918 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as decimal(10, 0))) FROM t +-- !query 2918 schema +struct +-- !query 2918 output +0 + + +-- !query 2919 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as decimal(10, 0))) FROM t +-- !query 2919 schema +struct +-- !query 2919 output +0 + + +-- !query 2920 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as decimal(10, 0))) FROM t +-- !query 2920 schema +struct +-- !query 2920 output +0 + + +-- !query 2921 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as decimal(10, 0))) FROM t +-- !query 2921 schema +struct<> +-- !query 2921 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as decimal(10, 0))) FROM t + + +-- !query 2922 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as string)) FROM t +-- !query 2922 schema +struct +-- !query 2922 output +0.0 + + +-- !query 2923 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as string)) FROM t +-- !query 2923 schema +struct +-- !query 2923 output +0.0 + + +-- !query 2924 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as string)) FROM t +-- !query 2924 schema +struct +-- !query 2924 output +0.0 + + +-- !query 2925 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as string)) FROM t +-- !query 2925 schema +struct +-- !query 2925 output +0.0 + + +-- !query 2926 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as string)) FROM t +-- !query 2926 schema +struct +-- !query 2926 output +0.0 + + +-- !query 2927 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t +-- !query 2927 schema +struct +-- !query 2927 output +0.0 + + +-- !query 2928 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as string)) FROM t +-- !query 2928 schema +struct +-- !query 2928 output +0.0 + + +-- !query 2929 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as string)) FROM t +-- !query 2929 schema +struct +-- !query 2929 output +0.0 + + +-- !query 2930 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as string)) FROM t +-- !query 2930 schema +struct +-- !query 2930 output +0.0 + + +-- !query 2931 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as string)) FROM t +-- !query 2931 schema +struct +-- !query 2931 output +0.0 + + +-- !query 2932 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as string)) FROM t +-- !query 2932 schema +struct<> +-- !query 2932 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as string)) FROM t + + +-- !query 2933 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as string)) FROM t +-- !query 2933 schema +struct +-- !query 2933 output +NULL + + +-- !query 2934 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as string)) FROM t +-- !query 2934 schema +struct +-- !query 2934 output +0.0 + + +-- !query 2935 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as string)) FROM t +-- !query 2935 schema +struct +-- !query 2935 output +0.0 + + +-- !query 2936 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as string)) FROM t +-- !query 2936 schema +struct +-- !query 2936 output +0.0 + + +-- !query 2937 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as string)) FROM t +-- !query 2937 schema +struct +-- !query 2937 output +0.0 + + +-- !query 2938 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as string)) FROM t +-- !query 2938 schema +struct +-- !query 2938 output +0.0 + + +-- !query 2939 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as string)) FROM t +-- !query 2939 schema +struct +-- !query 2939 output +0.0 + + +-- !query 2940 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as string)) FROM t +-- !query 2940 schema +struct +-- !query 2940 output +0.0 + + +-- !query 2941 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as string)) FROM t +-- !query 2941 schema +struct +-- !query 2941 output +0.0 + + +-- !query 2942 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as string)) FROM t +-- !query 2942 schema +struct +-- !query 2942 output +0.0 + + +-- !query 2943 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as string)) FROM t +-- !query 2943 schema +struct +-- !query 2943 output +0.0 + + +-- !query 2944 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as string)) FROM t +-- !query 2944 schema +struct<> +-- !query 2944 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as string)) FROM t + + +-- !query 2945 +SELECT pmod(cast(1 as decimal(1, 0)) , cast('1' as binary)) FROM t +-- !query 2945 schema +struct<> +-- !query 2945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 2946 +SELECT pmod(cast(1 as decimal(3, 0)) , cast('1' as binary)) FROM t +-- !query 2946 schema +struct<> +-- !query 2946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 2947 +SELECT pmod(cast(1 as decimal(4, 0)) , cast('1' as binary)) FROM t +-- !query 2947 schema +struct<> +-- !query 2947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 2948 +SELECT pmod(cast(1 as decimal(5, 0)) , cast('1' as binary)) FROM t +-- !query 2948 schema +struct<> +-- !query 2948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 2949 +SELECT pmod(cast(1 as decimal(6, 0)) , cast('1' as binary)) FROM t +-- !query 2949 schema +struct<> +-- !query 2949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 2950 +SELECT pmod(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t +-- !query 2950 schema +struct<> +-- !query 2950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 2951 +SELECT pmod(cast(1 as decimal(11, 0)), cast('1' as binary)) FROM t +-- !query 2951 schema +struct<> +-- !query 2951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 2952 +SELECT pmod(cast(1 as decimal(20, 0)), cast('1' as binary)) FROM t +-- !query 2952 schema +struct<> +-- !query 2952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 2953 +SELECT pmod(cast(1 as decimal(21, 0)), cast('1' as binary)) FROM t +-- !query 2953 schema +struct<> +-- !query 2953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 2954 +SELECT pmod(cast(1 as decimal(38, 0)), cast('1' as binary)) FROM t +-- !query 2954 schema +struct<> +-- !query 2954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 2955 +SELECT pmod(cast(1 as decimal(39, 0)), cast('1' as binary)) FROM t +-- !query 2955 schema +struct<> +-- !query 2955 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast('1' as binary)) FROM t + + +-- !query 2956 +SELECT pmod(cast(1 as decimal(1, 1)) , cast('1' as binary)) FROM t +-- !query 2956 schema +struct<> +-- !query 2956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 2957 +SELECT pmod(cast(1 as decimal(2, 1)) , cast('1' as binary)) FROM t +-- !query 2957 schema +struct<> +-- !query 2957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 2958 +SELECT pmod(cast(1 as decimal(3, 1)) , cast('1' as binary)) FROM t +-- !query 2958 schema +struct<> +-- !query 2958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 2959 +SELECT pmod(cast(1 as decimal(4, 1)) , cast('1' as binary)) FROM t +-- !query 2959 schema +struct<> +-- !query 2959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 2960 +SELECT pmod(cast(1 as decimal(5, 1)) , cast('1' as binary)) FROM t +-- !query 2960 schema +struct<> +-- !query 2960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 2961 +SELECT pmod(cast(1 as decimal(6, 1)) , cast('1' as binary)) FROM t +-- !query 2961 schema +struct<> +-- !query 2961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 2962 +SELECT pmod(cast(1 as decimal(10, 1)), cast('1' as binary)) FROM t +-- !query 2962 schema +struct<> +-- !query 2962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 2963 +SELECT pmod(cast(1 as decimal(11, 1)), cast('1' as binary)) FROM t +-- !query 2963 schema +struct<> +-- !query 2963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 2964 +SELECT pmod(cast(1 as decimal(20, 1)), cast('1' as binary)) FROM t +-- !query 2964 schema +struct<> +-- !query 2964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 2965 +SELECT pmod(cast(1 as decimal(21, 1)), cast('1' as binary)) FROM t +-- !query 2965 schema +struct<> +-- !query 2965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 2966 +SELECT pmod(cast(1 as decimal(38, 1)), cast('1' as binary)) FROM t +-- !query 2966 schema +struct<> +-- !query 2966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 2967 +SELECT pmod(cast(1 as decimal(39, 1)), cast('1' as binary)) FROM t +-- !query 2967 schema +struct<> +-- !query 2967 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast('1' as binary)) FROM t + + +-- !query 2968 +SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as boolean)) FROM t +-- !query 2968 schema +struct<> +-- !query 2968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 2969 +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as boolean)) FROM t +-- !query 2969 schema +struct<> +-- !query 2969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 2970 +SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as boolean)) FROM t +-- !query 2970 schema +struct<> +-- !query 2970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 2971 +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as boolean)) FROM t +-- !query 2971 schema +struct<> +-- !query 2971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 2972 +SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as boolean)) FROM t +-- !query 2972 schema +struct<> +-- !query 2972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 2973 +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t +-- !query 2973 schema +struct<> +-- !query 2973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 2974 +SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as boolean)) FROM t +-- !query 2974 schema +struct<> +-- !query 2974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 2975 +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as boolean)) FROM t +-- !query 2975 schema +struct<> +-- !query 2975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 2976 +SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as boolean)) FROM t +-- !query 2976 schema +struct<> +-- !query 2976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 2977 +SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as boolean)) FROM t +-- !query 2977 schema +struct<> +-- !query 2977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 2978 +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as boolean)) FROM t +-- !query 2978 schema +struct<> +-- !query 2978 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as boolean)) FROM t + + +-- !query 2979 +SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as boolean)) FROM t +-- !query 2979 schema +struct<> +-- !query 2979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 2980 +SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as boolean)) FROM t +-- !query 2980 schema +struct<> +-- !query 2980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 2981 +SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as boolean)) FROM t +-- !query 2981 schema +struct<> +-- !query 2981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 2982 +SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as boolean)) FROM t +-- !query 2982 schema +struct<> +-- !query 2982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 2983 +SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as boolean)) FROM t +-- !query 2983 schema +struct<> +-- !query 2983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 2984 +SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as boolean)) FROM t +-- !query 2984 schema +struct<> +-- !query 2984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 2985 +SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as boolean)) FROM t +-- !query 2985 schema +struct<> +-- !query 2985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 2986 +SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as boolean)) FROM t +-- !query 2986 schema +struct<> +-- !query 2986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 2987 +SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as boolean)) FROM t +-- !query 2987 schema +struct<> +-- !query 2987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 2988 +SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as boolean)) FROM t +-- !query 2988 schema +struct<> +-- !query 2988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 2989 +SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as boolean)) FROM t +-- !query 2989 schema +struct<> +-- !query 2989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 2990 +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as boolean)) FROM t +-- !query 2990 schema +struct<> +-- !query 2990 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as boolean)) FROM t + + +-- !query 2991 +SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2991 schema +struct<> +-- !query 2991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 2992 +SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2992 schema +struct<> +-- !query 2992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 2993 +SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2993 schema +struct<> +-- !query 2993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 2994 +SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2994 schema +struct<> +-- !query 2994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 2995 +SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2995 schema +struct<> +-- !query 2995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 2996 +SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2996 schema +struct<> +-- !query 2996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 2997 +SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2997 schema +struct<> +-- !query 2997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 2998 +SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2998 schema +struct<> +-- !query 2998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 2999 +SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 2999 schema +struct<> +-- !query 2999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 3000 +SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3000 schema +struct<> +-- !query 3000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 3001 +SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3001 schema +struct<> +-- !query 3001 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t + + +-- !query 3002 +SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3002 schema +struct<> +-- !query 3002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 3003 +SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3003 schema +struct<> +-- !query 3003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 3004 +SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3004 schema +struct<> +-- !query 3004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 3005 +SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3005 schema +struct<> +-- !query 3005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 3006 +SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3006 schema +struct<> +-- !query 3006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 3007 +SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3007 schema +struct<> +-- !query 3007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 3008 +SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3008 schema +struct<> +-- !query 3008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 3009 +SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3009 schema +struct<> +-- !query 3009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 3010 +SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3010 schema +struct<> +-- !query 3010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 3011 +SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3011 schema +struct<> +-- !query 3011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 3012 +SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3012 schema +struct<> +-- !query 3012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 3013 +SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 3013 schema +struct<> +-- !query 3013 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t + + +-- !query 3014 +SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3014 schema +struct<> +-- !query 3014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 3015 +SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3015 schema +struct<> +-- !query 3015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 3016 +SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3016 schema +struct<> +-- !query 3016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 3017 +SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3017 schema +struct<> +-- !query 3017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 3018 +SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3018 schema +struct<> +-- !query 3018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 3019 +SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3019 schema +struct<> +-- !query 3019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 3020 +SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3020 schema +struct<> +-- !query 3020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 3021 +SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3021 schema +struct<> +-- !query 3021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 3022 +SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3022 schema +struct<> +-- !query 3022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 3023 +SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3023 schema +struct<> +-- !query 3023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 3024 +SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3024 schema +struct<> +-- !query 3024 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00' as date)) FROM t + + +-- !query 3025 +SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3025 schema +struct<> +-- !query 3025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 3026 +SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3026 schema +struct<> +-- !query 3026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 3027 +SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3027 schema +struct<> +-- !query 3027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 3028 +SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3028 schema +struct<> +-- !query 3028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 3029 +SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3029 schema +struct<> +-- !query 3029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 3030 +SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3030 schema +struct<> +-- !query 3030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 3031 +SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3031 schema +struct<> +-- !query 3031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 3032 +SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3032 schema +struct<> +-- !query 3032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 3033 +SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3033 schema +struct<> +-- !query 3033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 3034 +SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3034 schema +struct<> +-- !query 3034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 3035 +SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3035 schema +struct<> +-- !query 3035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 3036 +SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 3036 schema +struct<> +-- !query 3036 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00' as date)) FROM t + + +-- !query 3037 +SELECT cast(1 as tinyint) = cast(1 as decimal(1, 0)) FROM t +-- !query 3037 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> +-- !query 3037 output +true + + +-- !query 3038 +SELECT cast(1 as tinyint) = cast(1 as decimal(3, 0)) FROM t +-- !query 3038 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) = CAST(1 AS DECIMAL(3,0))):boolean> +-- !query 3038 output +true + + +-- !query 3039 +SELECT cast(1 as tinyint) = cast(1 as decimal(4, 0)) FROM t +-- !query 3039 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> +-- !query 3039 output +true + + +-- !query 3040 +SELECT cast(1 as tinyint) = cast(1 as decimal(5, 0)) FROM t +-- !query 3040 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3040 output +true + + +-- !query 3041 +SELECT cast(1 as tinyint) = cast(1 as decimal(6, 0)) FROM t +-- !query 3041 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 3041 output +true + + +-- !query 3042 +SELECT cast(1 as tinyint) = cast(1 as decimal(10, 0)) FROM t +-- !query 3042 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3042 output +true + + +-- !query 3043 +SELECT cast(1 as tinyint) = cast(1 as decimal(11, 0)) FROM t +-- !query 3043 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3043 output +true + + +-- !query 3044 +SELECT cast(1 as tinyint) = cast(1 as decimal(20, 0)) FROM t +-- !query 3044 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3044 output +true + + +-- !query 3045 +SELECT cast(1 as tinyint) = cast(1 as decimal(21, 0)) FROM t +-- !query 3045 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3045 output +true + + +-- !query 3046 +SELECT cast(1 as tinyint) = cast(1 as decimal(38, 0)) FROM t +-- !query 3046 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3046 output +true + + +-- !query 3047 +SELECT cast(1 as tinyint) = cast(1 as decimal(39, 0)) FROM t +-- !query 3047 schema +struct<> +-- !query 3047 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3048 +SELECT cast(1 as tinyint) = cast(1 as decimal(1, 1)) FROM t +-- !query 3048 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> +-- !query 3048 output +NULL + + +-- !query 3049 +SELECT cast(1 as tinyint) = cast(1 as decimal(2, 1)) FROM t +-- !query 3049 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> +-- !query 3049 output +true + + +-- !query 3050 +SELECT cast(1 as tinyint) = cast(1 as decimal(3, 1)) FROM t +-- !query 3050 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> +-- !query 3050 output +true + + +-- !query 3051 +SELECT cast(1 as tinyint) = cast(1 as decimal(4, 1)) FROM t +-- !query 3051 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> +-- !query 3051 output +true + + +-- !query 3052 +SELECT cast(1 as tinyint) = cast(1 as decimal(5, 1)) FROM t +-- !query 3052 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> +-- !query 3052 output +true + + +-- !query 3053 +SELECT cast(1 as tinyint) = cast(1 as decimal(6, 1)) FROM t +-- !query 3053 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 3053 output +true + + +-- !query 3054 +SELECT cast(1 as tinyint) = cast(1 as decimal(10, 1)) FROM t +-- !query 3054 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 3054 output +true + + +-- !query 3055 +SELECT cast(1 as tinyint) = cast(1 as decimal(11, 1)) FROM t +-- !query 3055 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3055 output +true + + +-- !query 3056 +SELECT cast(1 as tinyint) = cast(1 as decimal(20, 1)) FROM t +-- !query 3056 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3056 output +true + + +-- !query 3057 +SELECT cast(1 as tinyint) = cast(1 as decimal(21, 1)) FROM t +-- !query 3057 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3057 output +true + + +-- !query 3058 +SELECT cast(1 as tinyint) = cast(1 as decimal(38, 1)) FROM t +-- !query 3058 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3058 output +true + + +-- !query 3059 +SELECT cast(1 as tinyint) = cast(1 as decimal(39, 1)) FROM t +-- !query 3059 schema +struct<> +-- !query 3059 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3060 +SELECT cast(1 as smallint) = cast(1 as decimal(1, 0)) FROM t +-- !query 3060 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> +-- !query 3060 output +true + + +-- !query 3061 +SELECT cast(1 as smallint) = cast(1 as decimal(3, 0)) FROM t +-- !query 3061 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 3061 output +true + + +-- !query 3062 +SELECT cast(1 as smallint) = cast(1 as decimal(4, 0)) FROM t +-- !query 3062 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> +-- !query 3062 output +true + + +-- !query 3063 +SELECT cast(1 as smallint) = cast(1 as decimal(5, 0)) FROM t +-- !query 3063 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) = CAST(1 AS DECIMAL(5,0))):boolean> +-- !query 3063 output +true + + +-- !query 3064 +SELECT cast(1 as smallint) = cast(1 as decimal(6, 0)) FROM t +-- !query 3064 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 3064 output +true + + +-- !query 3065 +SELECT cast(1 as smallint) = cast(1 as decimal(10, 0)) FROM t +-- !query 3065 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3065 output +true + + +-- !query 3066 +SELECT cast(1 as smallint) = cast(1 as decimal(11, 0)) FROM t +-- !query 3066 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3066 output +true + + +-- !query 3067 +SELECT cast(1 as smallint) = cast(1 as decimal(20, 0)) FROM t +-- !query 3067 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3067 output +true + + +-- !query 3068 +SELECT cast(1 as smallint) = cast(1 as decimal(21, 0)) FROM t +-- !query 3068 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3068 output +true + + +-- !query 3069 +SELECT cast(1 as smallint) = cast(1 as decimal(38, 0)) FROM t +-- !query 3069 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3069 output +true + + +-- !query 3070 +SELECT cast(1 as smallint) = cast(1 as decimal(39, 0)) FROM t +-- !query 3070 schema +struct<> +-- !query 3070 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3071 +SELECT cast(1 as smallint) = cast(1 as decimal(1, 1)) FROM t +-- !query 3071 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> +-- !query 3071 output +NULL + + +-- !query 3072 +SELECT cast(1 as smallint) = cast(1 as decimal(2, 1)) FROM t +-- !query 3072 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> +-- !query 3072 output +true + + +-- !query 3073 +SELECT cast(1 as smallint) = cast(1 as decimal(3, 1)) FROM t +-- !query 3073 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> +-- !query 3073 output +true + + +-- !query 3074 +SELECT cast(1 as smallint) = cast(1 as decimal(4, 1)) FROM t +-- !query 3074 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> +-- !query 3074 output +true + + +-- !query 3075 +SELECT cast(1 as smallint) = cast(1 as decimal(5, 1)) FROM t +-- !query 3075 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> +-- !query 3075 output +true + + +-- !query 3076 +SELECT cast(1 as smallint) = cast(1 as decimal(6, 1)) FROM t +-- !query 3076 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 3076 output +true + + +-- !query 3077 +SELECT cast(1 as smallint) = cast(1 as decimal(10, 1)) FROM t +-- !query 3077 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 3077 output +true + + +-- !query 3078 +SELECT cast(1 as smallint) = cast(1 as decimal(11, 1)) FROM t +-- !query 3078 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3078 output +true + + +-- !query 3079 +SELECT cast(1 as smallint) = cast(1 as decimal(20, 1)) FROM t +-- !query 3079 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3079 output +true + + +-- !query 3080 +SELECT cast(1 as smallint) = cast(1 as decimal(21, 1)) FROM t +-- !query 3080 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3080 output +true + + +-- !query 3081 +SELECT cast(1 as smallint) = cast(1 as decimal(38, 1)) FROM t +-- !query 3081 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3081 output +true + + +-- !query 3082 +SELECT cast(1 as smallint) = cast(1 as decimal(39, 1)) FROM t +-- !query 3082 schema +struct<> +-- !query 3082 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3083 +SELECT cast(1 as int) = cast(1 as decimal(1, 0)) FROM t +-- !query 3083 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 3083 output +true + + +-- !query 3084 +SELECT cast(1 as int) = cast(1 as decimal(3, 0)) FROM t +-- !query 3084 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 3084 output +true + + +-- !query 3085 +SELECT cast(1 as int) = cast(1 as decimal(4, 0)) FROM t +-- !query 3085 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 3085 output +true + + +-- !query 3086 +SELECT cast(1 as int) = cast(1 as decimal(5, 0)) FROM t +-- !query 3086 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 3086 output +true + + +-- !query 3087 +SELECT cast(1 as int) = cast(1 as decimal(6, 0)) FROM t +-- !query 3087 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 3087 output +true + + +-- !query 3088 +SELECT cast(1 as int) = cast(1 as decimal(10, 0)) FROM t +-- !query 3088 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 3088 output +true + + +-- !query 3089 +SELECT cast(1 as int) = cast(1 as decimal(11, 0)) FROM t +-- !query 3089 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3089 output +true + + +-- !query 3090 +SELECT cast(1 as int) = cast(1 as decimal(20, 0)) FROM t +-- !query 3090 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3090 output +true + + +-- !query 3091 +SELECT cast(1 as int) = cast(1 as decimal(21, 0)) FROM t +-- !query 3091 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3091 output +true + + +-- !query 3092 +SELECT cast(1 as int) = cast(1 as decimal(38, 0)) FROM t +-- !query 3092 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3092 output +true + + +-- !query 3093 +SELECT cast(1 as int) = cast(1 as decimal(39, 0)) FROM t +-- !query 3093 schema +struct<> +-- !query 3093 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3094 +SELECT cast(1 as int) = cast(1 as decimal(1, 1)) FROM t +-- !query 3094 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 3094 output +NULL + + +-- !query 3095 +SELECT cast(1 as int) = cast(1 as decimal(2, 1)) FROM t +-- !query 3095 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 3095 output +true + + +-- !query 3096 +SELECT cast(1 as int) = cast(1 as decimal(3, 1)) FROM t +-- !query 3096 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 3096 output +true + + +-- !query 3097 +SELECT cast(1 as int) = cast(1 as decimal(4, 1)) FROM t +-- !query 3097 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 3097 output +true + + +-- !query 3098 +SELECT cast(1 as int) = cast(1 as decimal(5, 1)) FROM t +-- !query 3098 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 3098 output +true + + +-- !query 3099 +SELECT cast(1 as int) = cast(1 as decimal(6, 1)) FROM t +-- !query 3099 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 3099 output +true + + +-- !query 3100 +SELECT cast(1 as int) = cast(1 as decimal(10, 1)) FROM t +-- !query 3100 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 3100 output +true + + +-- !query 3101 +SELECT cast(1 as int) = cast(1 as decimal(11, 1)) FROM t +-- !query 3101 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3101 output +true + + +-- !query 3102 +SELECT cast(1 as int) = cast(1 as decimal(20, 1)) FROM t +-- !query 3102 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3102 output +true + + +-- !query 3103 +SELECT cast(1 as int) = cast(1 as decimal(21, 1)) FROM t +-- !query 3103 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3103 output +true + + +-- !query 3104 +SELECT cast(1 as int) = cast(1 as decimal(38, 1)) FROM t +-- !query 3104 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3104 output +true + + +-- !query 3105 +SELECT cast(1 as int) = cast(1 as decimal(39, 1)) FROM t +-- !query 3105 schema +struct<> +-- !query 3105 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3106 +SELECT cast(1 as bigint) = cast(1 as decimal(1, 0)) FROM t +-- !query 3106 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> +-- !query 3106 output +true + + +-- !query 3107 +SELECT cast(1 as bigint) = cast(1 as decimal(3, 0)) FROM t +-- !query 3107 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 3107 output +true + + +-- !query 3108 +SELECT cast(1 as bigint) = cast(1 as decimal(4, 0)) FROM t +-- !query 3108 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> +-- !query 3108 output +true + + +-- !query 3109 +SELECT cast(1 as bigint) = cast(1 as decimal(5, 0)) FROM t +-- !query 3109 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 3109 output +true + + +-- !query 3110 +SELECT cast(1 as bigint) = cast(1 as decimal(6, 0)) FROM t +-- !query 3110 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> +-- !query 3110 output +true + + +-- !query 3111 +SELECT cast(1 as bigint) = cast(1 as decimal(10, 0)) FROM t +-- !query 3111 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 3111 output +true + + +-- !query 3112 +SELECT cast(1 as bigint) = cast(1 as decimal(11, 0)) FROM t +-- !query 3112 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> +-- !query 3112 output +true + + +-- !query 3113 +SELECT cast(1 as bigint) = cast(1 as decimal(20, 0)) FROM t +-- !query 3113 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) = CAST(1 AS DECIMAL(20,0))):boolean> +-- !query 3113 output +true + + +-- !query 3114 +SELECT cast(1 as bigint) = cast(1 as decimal(21, 0)) FROM t +-- !query 3114 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3114 output +true + + +-- !query 3115 +SELECT cast(1 as bigint) = cast(1 as decimal(38, 0)) FROM t +-- !query 3115 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3115 output +true + + +-- !query 3116 +SELECT cast(1 as bigint) = cast(1 as decimal(39, 0)) FROM t +-- !query 3116 schema +struct<> +-- !query 3116 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3117 +SELECT cast(1 as bigint) = cast(1 as decimal(1, 1)) FROM t +-- !query 3117 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> +-- !query 3117 output +NULL + + +-- !query 3118 +SELECT cast(1 as bigint) = cast(1 as decimal(2, 1)) FROM t +-- !query 3118 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> +-- !query 3118 output +true + + +-- !query 3119 +SELECT cast(1 as bigint) = cast(1 as decimal(3, 1)) FROM t +-- !query 3119 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> +-- !query 3119 output +true + + +-- !query 3120 +SELECT cast(1 as bigint) = cast(1 as decimal(4, 1)) FROM t +-- !query 3120 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> +-- !query 3120 output +true + + +-- !query 3121 +SELECT cast(1 as bigint) = cast(1 as decimal(5, 1)) FROM t +-- !query 3121 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> +-- !query 3121 output +true + + +-- !query 3122 +SELECT cast(1 as bigint) = cast(1 as decimal(6, 1)) FROM t +-- !query 3122 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> +-- !query 3122 output +true + + +-- !query 3123 +SELECT cast(1 as bigint) = cast(1 as decimal(10, 1)) FROM t +-- !query 3123 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> +-- !query 3123 output +true + + +-- !query 3124 +SELECT cast(1 as bigint) = cast(1 as decimal(11, 1)) FROM t +-- !query 3124 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> +-- !query 3124 output +true + + +-- !query 3125 +SELECT cast(1 as bigint) = cast(1 as decimal(20, 1)) FROM t +-- !query 3125 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> +-- !query 3125 output +true + + +-- !query 3126 +SELECT cast(1 as bigint) = cast(1 as decimal(21, 1)) FROM t +-- !query 3126 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3126 output +true + + +-- !query 3127 +SELECT cast(1 as bigint) = cast(1 as decimal(38, 1)) FROM t +-- !query 3127 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3127 output +true + + +-- !query 3128 +SELECT cast(1 as bigint) = cast(1 as decimal(39, 1)) FROM t +-- !query 3128 schema +struct<> +-- !query 3128 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3129 +SELECT cast(1 as float) = cast(1 as decimal(1, 0)) FROM t +-- !query 3129 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 3129 output +true + + +-- !query 3130 +SELECT cast(1 as float) = cast(1 as decimal(3, 0)) FROM t +-- !query 3130 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 3130 output +true + + +-- !query 3131 +SELECT cast(1 as float) = cast(1 as decimal(4, 0)) FROM t +-- !query 3131 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 3131 output +true + + +-- !query 3132 +SELECT cast(1 as float) = cast(1 as decimal(5, 0)) FROM t +-- !query 3132 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 3132 output +true + + +-- !query 3133 +SELECT cast(1 as float) = cast(1 as decimal(6, 0)) FROM t +-- !query 3133 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 3133 output +true + + +-- !query 3134 +SELECT cast(1 as float) = cast(1 as decimal(10, 0)) FROM t +-- !query 3134 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 3134 output +true + + +-- !query 3135 +SELECT cast(1 as float) = cast(1 as decimal(11, 0)) FROM t +-- !query 3135 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 3135 output +true + + +-- !query 3136 +SELECT cast(1 as float) = cast(1 as decimal(20, 0)) FROM t +-- !query 3136 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 3136 output +true + + +-- !query 3137 +SELECT cast(1 as float) = cast(1 as decimal(21, 0)) FROM t +-- !query 3137 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 3137 output +true + + +-- !query 3138 +SELECT cast(1 as float) = cast(1 as decimal(38, 0)) FROM t +-- !query 3138 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 3138 output +true + + +-- !query 3139 +SELECT cast(1 as float) = cast(1 as decimal(39, 0)) FROM t +-- !query 3139 schema +struct<> +-- !query 3139 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3140 +SELECT cast(1 as float) = cast(1 as decimal(1, 1)) FROM t +-- !query 3140 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 3140 output +NULL + + +-- !query 3141 +SELECT cast(1 as float) = cast(1 as decimal(2, 1)) FROM t +-- !query 3141 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 3141 output +true + + +-- !query 3142 +SELECT cast(1 as float) = cast(1 as decimal(3, 1)) FROM t +-- !query 3142 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 3142 output +true + + +-- !query 3143 +SELECT cast(1 as float) = cast(1 as decimal(4, 1)) FROM t +-- !query 3143 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 3143 output +true + + +-- !query 3144 +SELECT cast(1 as float) = cast(1 as decimal(5, 1)) FROM t +-- !query 3144 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 3144 output +true + + +-- !query 3145 +SELECT cast(1 as float) = cast(1 as decimal(6, 1)) FROM t +-- !query 3145 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 3145 output +true + + +-- !query 3146 +SELECT cast(1 as float) = cast(1 as decimal(10, 1)) FROM t +-- !query 3146 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 3146 output +true + + +-- !query 3147 +SELECT cast(1 as float) = cast(1 as decimal(11, 1)) FROM t +-- !query 3147 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 3147 output +true + + +-- !query 3148 +SELECT cast(1 as float) = cast(1 as decimal(20, 1)) FROM t +-- !query 3148 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 3148 output +true + + +-- !query 3149 +SELECT cast(1 as float) = cast(1 as decimal(21, 1)) FROM t +-- !query 3149 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 3149 output +true + + +-- !query 3150 +SELECT cast(1 as float) = cast(1 as decimal(38, 1)) FROM t +-- !query 3150 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 3150 output +true + + +-- !query 3151 +SELECT cast(1 as float) = cast(1 as decimal(39, 1)) FROM t +-- !query 3151 schema +struct<> +-- !query 3151 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3152 +SELECT cast(1 as double) = cast(1 as decimal(1, 0)) FROM t +-- !query 3152 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 3152 output +true + + +-- !query 3153 +SELECT cast(1 as double) = cast(1 as decimal(3, 0)) FROM t +-- !query 3153 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 3153 output +true + + +-- !query 3154 +SELECT cast(1 as double) = cast(1 as decimal(4, 0)) FROM t +-- !query 3154 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 3154 output +true + + +-- !query 3155 +SELECT cast(1 as double) = cast(1 as decimal(5, 0)) FROM t +-- !query 3155 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 3155 output +true + + +-- !query 3156 +SELECT cast(1 as double) = cast(1 as decimal(6, 0)) FROM t +-- !query 3156 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 3156 output +true + + +-- !query 3157 +SELECT cast(1 as double) = cast(1 as decimal(10, 0)) FROM t +-- !query 3157 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 3157 output +true + + +-- !query 3158 +SELECT cast(1 as double) = cast(1 as decimal(11, 0)) FROM t +-- !query 3158 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 3158 output +true + + +-- !query 3159 +SELECT cast(1 as double) = cast(1 as decimal(20, 0)) FROM t +-- !query 3159 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 3159 output +true + + +-- !query 3160 +SELECT cast(1 as double) = cast(1 as decimal(21, 0)) FROM t +-- !query 3160 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 3160 output +true + + +-- !query 3161 +SELECT cast(1 as double) = cast(1 as decimal(38, 0)) FROM t +-- !query 3161 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 3161 output +true + + +-- !query 3162 +SELECT cast(1 as double) = cast(1 as decimal(39, 0)) FROM t +-- !query 3162 schema +struct<> +-- !query 3162 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3163 +SELECT cast(1 as double) = cast(1 as decimal(1, 1)) FROM t +-- !query 3163 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 3163 output +NULL + + +-- !query 3164 +SELECT cast(1 as double) = cast(1 as decimal(2, 1)) FROM t +-- !query 3164 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 3164 output +true + + +-- !query 3165 +SELECT cast(1 as double) = cast(1 as decimal(3, 1)) FROM t +-- !query 3165 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 3165 output +true + + +-- !query 3166 +SELECT cast(1 as double) = cast(1 as decimal(4, 1)) FROM t +-- !query 3166 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 3166 output +true + + +-- !query 3167 +SELECT cast(1 as double) = cast(1 as decimal(5, 1)) FROM t +-- !query 3167 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 3167 output +true + + +-- !query 3168 +SELECT cast(1 as double) = cast(1 as decimal(6, 1)) FROM t +-- !query 3168 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 3168 output +true + + +-- !query 3169 +SELECT cast(1 as double) = cast(1 as decimal(10, 1)) FROM t +-- !query 3169 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 3169 output +true + + +-- !query 3170 +SELECT cast(1 as double) = cast(1 as decimal(11, 1)) FROM t +-- !query 3170 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 3170 output +true + + +-- !query 3171 +SELECT cast(1 as double) = cast(1 as decimal(20, 1)) FROM t +-- !query 3171 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 3171 output +true + + +-- !query 3172 +SELECT cast(1 as double) = cast(1 as decimal(21, 1)) FROM t +-- !query 3172 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 3172 output +true + + +-- !query 3173 +SELECT cast(1 as double) = cast(1 as decimal(38, 1)) FROM t +-- !query 3173 schema +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 3173 output +true + + +-- !query 3174 +SELECT cast(1 as double) = cast(1 as decimal(39, 1)) FROM t +-- !query 3174 schema +struct<> +-- !query 3174 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3175 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 0)) FROM t +-- !query 3175 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 3175 output +true + + +-- !query 3176 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 0)) FROM t +-- !query 3176 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 3176 output +true + + +-- !query 3177 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 0)) FROM t +-- !query 3177 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 3177 output +true + + +-- !query 3178 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 0)) FROM t +-- !query 3178 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 3178 output +true + + +-- !query 3179 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 0)) FROM t +-- !query 3179 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 3179 output +true + + +-- !query 3180 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3180 schema +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 3180 output +true + + +-- !query 3181 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 0)) FROM t +-- !query 3181 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3181 output +true + + +-- !query 3182 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 0)) FROM t +-- !query 3182 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3182 output +true + + +-- !query 3183 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 0)) FROM t +-- !query 3183 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3183 output +true + + +-- !query 3184 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 0)) FROM t +-- !query 3184 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3184 output +true + + +-- !query 3185 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 0)) FROM t +-- !query 3185 schema +struct<> +-- !query 3185 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3186 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 1)) FROM t +-- !query 3186 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 3186 output +NULL + + +-- !query 3187 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(2, 1)) FROM t +-- !query 3187 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 3187 output +true + + +-- !query 3188 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 1)) FROM t +-- !query 3188 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 3188 output +true + + +-- !query 3189 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 1)) FROM t +-- !query 3189 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 3189 output +true + + +-- !query 3190 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 1)) FROM t +-- !query 3190 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 3190 output +true + + +-- !query 3191 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 1)) FROM t +-- !query 3191 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 3191 output +true + + +-- !query 3192 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 1)) FROM t +-- !query 3192 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 3192 output +true + + +-- !query 3193 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 1)) FROM t +-- !query 3193 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3193 output +true + + +-- !query 3194 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 1)) FROM t +-- !query 3194 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3194 output +true + + +-- !query 3195 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 1)) FROM t +-- !query 3195 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3195 output +true + + +-- !query 3196 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 1)) FROM t +-- !query 3196 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3196 output +true + + +-- !query 3197 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 1)) FROM t +-- !query 3197 schema +struct<> +-- !query 3197 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3198 +SELECT cast('1' as binary) = cast(1 as decimal(1, 0)) FROM t +-- !query 3198 schema +struct<> +-- !query 3198 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 3199 +SELECT cast('1' as binary) = cast(1 as decimal(3, 0)) FROM t +-- !query 3199 schema +struct<> +-- !query 3199 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 3200 +SELECT cast('1' as binary) = cast(1 as decimal(4, 0)) FROM t +-- !query 3200 schema +struct<> +-- !query 3200 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 3201 +SELECT cast('1' as binary) = cast(1 as decimal(5, 0)) FROM t +-- !query 3201 schema +struct<> +-- !query 3201 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 3202 +SELECT cast('1' as binary) = cast(1 as decimal(6, 0)) FROM t +-- !query 3202 schema +struct<> +-- !query 3202 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 3203 +SELECT cast('1' as binary) = cast(1 as decimal(10, 0)) FROM t +-- !query 3203 schema +struct<> +-- !query 3203 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 3204 +SELECT cast('1' as binary) = cast(1 as decimal(11, 0)) FROM t +-- !query 3204 schema +struct<> +-- !query 3204 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 3205 +SELECT cast('1' as binary) = cast(1 as decimal(20, 0)) FROM t +-- !query 3205 schema +struct<> +-- !query 3205 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 3206 +SELECT cast('1' as binary) = cast(1 as decimal(21, 0)) FROM t +-- !query 3206 schema +struct<> +-- !query 3206 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 3207 +SELECT cast('1' as binary) = cast(1 as decimal(38, 0)) FROM t +-- !query 3207 schema +struct<> +-- !query 3207 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 3208 +SELECT cast('1' as binary) = cast(1 as decimal(39, 0)) FROM t +-- !query 3208 schema +struct<> +-- !query 3208 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3209 +SELECT cast('1' as binary) = cast(1 as decimal(1, 1)) FROM t +-- !query 3209 schema +struct<> +-- !query 3209 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 3210 +SELECT cast('1' as binary) = cast(1 as decimal(2, 1)) FROM t +-- !query 3210 schema +struct<> +-- !query 3210 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 3211 +SELECT cast('1' as binary) = cast(1 as decimal(3, 1)) FROM t +-- !query 3211 schema +struct<> +-- !query 3211 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 3212 +SELECT cast('1' as binary) = cast(1 as decimal(4, 1)) FROM t +-- !query 3212 schema +struct<> +-- !query 3212 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 3213 +SELECT cast('1' as binary) = cast(1 as decimal(5, 1)) FROM t +-- !query 3213 schema +struct<> +-- !query 3213 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 3214 +SELECT cast('1' as binary) = cast(1 as decimal(6, 1)) FROM t +-- !query 3214 schema +struct<> +-- !query 3214 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 3215 +SELECT cast('1' as binary) = cast(1 as decimal(10, 1)) FROM t +-- !query 3215 schema +struct<> +-- !query 3215 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 3216 +SELECT cast('1' as binary) = cast(1 as decimal(11, 1)) FROM t +-- !query 3216 schema +struct<> +-- !query 3216 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 3217 +SELECT cast('1' as binary) = cast(1 as decimal(20, 1)) FROM t +-- !query 3217 schema +struct<> +-- !query 3217 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 3218 +SELECT cast('1' as binary) = cast(1 as decimal(21, 1)) FROM t +-- !query 3218 schema +struct<> +-- !query 3218 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 3219 +SELECT cast('1' as binary) = cast(1 as decimal(38, 1)) FROM t +-- !query 3219 schema +struct<> +-- !query 3219 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 3220 +SELECT cast('1' as binary) = cast(1 as decimal(39, 1)) FROM t +-- !query 3220 schema +struct<> +-- !query 3220 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3221 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 0)) FROM t +-- !query 3221 schema +struct<> +-- !query 3221 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 3222 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 0)) FROM t +-- !query 3222 schema +struct<> +-- !query 3222 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 3223 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 0)) FROM t +-- !query 3223 schema +struct<> +-- !query 3223 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 3224 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 0)) FROM t +-- !query 3224 schema +struct<> +-- !query 3224 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 3225 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 0)) FROM t +-- !query 3225 schema +struct<> +-- !query 3225 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 3226 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 0)) FROM t +-- !query 3226 schema +struct<> +-- !query 3226 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 3227 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 0)) FROM t +-- !query 3227 schema +struct<> +-- !query 3227 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 3228 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 0)) FROM t +-- !query 3228 schema +struct<> +-- !query 3228 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 3229 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 0)) FROM t +-- !query 3229 schema +struct<> +-- !query 3229 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 3230 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 0)) FROM t +-- !query 3230 schema +struct<> +-- !query 3230 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 3231 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 0)) FROM t +-- !query 3231 schema +struct<> +-- !query 3231 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3232 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 1)) FROM t +-- !query 3232 schema +struct<> +-- !query 3232 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 3233 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(2, 1)) FROM t +-- !query 3233 schema +struct<> +-- !query 3233 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 3234 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 1)) FROM t +-- !query 3234 schema +struct<> +-- !query 3234 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 3235 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 1)) FROM t +-- !query 3235 schema +struct<> +-- !query 3235 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 3236 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 1)) FROM t +-- !query 3236 schema +struct<> +-- !query 3236 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 3237 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 1)) FROM t +-- !query 3237 schema +struct<> +-- !query 3237 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 3238 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 1)) FROM t +-- !query 3238 schema +struct<> +-- !query 3238 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 3239 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 1)) FROM t +-- !query 3239 schema +struct<> +-- !query 3239 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 3240 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 1)) FROM t +-- !query 3240 schema +struct<> +-- !query 3240 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 3241 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 1)) FROM t +-- !query 3241 schema +struct<> +-- !query 3241 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 3242 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 1)) FROM t +-- !query 3242 schema +struct<> +-- !query 3242 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 3243 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 1)) FROM t +-- !query 3243 schema +struct<> +-- !query 3243 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3244 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 0)) FROM t +-- !query 3244 schema +struct<> +-- !query 3244 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 3245 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 0)) FROM t +-- !query 3245 schema +struct<> +-- !query 3245 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 3246 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 0)) FROM t +-- !query 3246 schema +struct<> +-- !query 3246 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 3247 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 0)) FROM t +-- !query 3247 schema +struct<> +-- !query 3247 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 3248 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 0)) FROM t +-- !query 3248 schema +struct<> +-- !query 3248 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 3249 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 0)) FROM t +-- !query 3249 schema +struct<> +-- !query 3249 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 3250 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 0)) FROM t +-- !query 3250 schema +struct<> +-- !query 3250 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 3251 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 0)) FROM t +-- !query 3251 schema +struct<> +-- !query 3251 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 3252 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 0)) FROM t +-- !query 3252 schema +struct<> +-- !query 3252 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 3253 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 0)) FROM t +-- !query 3253 schema +struct<> +-- !query 3253 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 3254 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 0)) FROM t +-- !query 3254 schema +struct<> +-- !query 3254 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 0)) FROM t + + +-- !query 3255 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 1)) FROM t +-- !query 3255 schema +struct<> +-- !query 3255 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 3256 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(2, 1)) FROM t +-- !query 3256 schema +struct<> +-- !query 3256 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 3257 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 1)) FROM t +-- !query 3257 schema +struct<> +-- !query 3257 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 3258 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 1)) FROM t +-- !query 3258 schema +struct<> +-- !query 3258 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 3259 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 1)) FROM t +-- !query 3259 schema +struct<> +-- !query 3259 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 3260 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 1)) FROM t +-- !query 3260 schema +struct<> +-- !query 3260 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 3261 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 1)) FROM t +-- !query 3261 schema +struct<> +-- !query 3261 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 3262 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 1)) FROM t +-- !query 3262 schema +struct<> +-- !query 3262 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 3263 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 1)) FROM t +-- !query 3263 schema +struct<> +-- !query 3263 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 3264 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 1)) FROM t +-- !query 3264 schema +struct<> +-- !query 3264 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 3265 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 1)) FROM t +-- !query 3265 schema +struct<> +-- !query 3265 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 3266 +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 1)) FROM t +-- !query 3266 schema +struct<> +-- !query 3266 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 1)) FROM t + + +-- !query 3267 +SELECT cast(1 as decimal(1, 0)) = cast(1 as tinyint) FROM t +-- !query 3267 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> +-- !query 3267 output +true + + +-- !query 3268 +SELECT cast(1 as decimal(3, 0)) = cast(1 as tinyint) FROM t +-- !query 3268 schema +struct<(CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> +-- !query 3268 output +true + + +-- !query 3269 +SELECT cast(1 as decimal(4, 0)) = cast(1 as tinyint) FROM t +-- !query 3269 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> +-- !query 3269 output +true + + +-- !query 3270 +SELECT cast(1 as decimal(5, 0)) = cast(1 as tinyint) FROM t +-- !query 3270 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 3270 output +true + + +-- !query 3271 +SELECT cast(1 as decimal(6, 0)) = cast(1 as tinyint) FROM t +-- !query 3271 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> +-- !query 3271 output +true + + +-- !query 3272 +SELECT cast(1 as decimal(10, 0)) = cast(1 as tinyint) FROM t +-- !query 3272 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 3272 output +true + + +-- !query 3273 +SELECT cast(1 as decimal(11, 0)) = cast(1 as tinyint) FROM t +-- !query 3273 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> +-- !query 3273 output +true + + +-- !query 3274 +SELECT cast(1 as decimal(20, 0)) = cast(1 as tinyint) FROM t +-- !query 3274 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 3274 output +true + + +-- !query 3275 +SELECT cast(1 as decimal(21, 0)) = cast(1 as tinyint) FROM t +-- !query 3275 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> +-- !query 3275 output +true + + +-- !query 3276 +SELECT cast(1 as decimal(38, 0)) = cast(1 as tinyint) FROM t +-- !query 3276 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> +-- !query 3276 output +true + + +-- !query 3277 +SELECT cast(1 as decimal(39, 0)) = cast(1 as tinyint) FROM t +-- !query 3277 schema +struct<> +-- !query 3277 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as tinyint) FROM t + + +-- !query 3278 +SELECT cast(1 as decimal(1, 1)) = cast(1 as tinyint) FROM t +-- !query 3278 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3278 output +NULL + + +-- !query 3279 +SELECT cast(1 as decimal(2, 1)) = cast(1 as tinyint) FROM t +-- !query 3279 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3279 output +true + + +-- !query 3280 +SELECT cast(1 as decimal(3, 1)) = cast(1 as tinyint) FROM t +-- !query 3280 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3280 output +true + + +-- !query 3281 +SELECT cast(1 as decimal(4, 1)) = cast(1 as tinyint) FROM t +-- !query 3281 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3281 output +true + + +-- !query 3282 +SELECT cast(1 as decimal(5, 1)) = cast(1 as tinyint) FROM t +-- !query 3282 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> +-- !query 3282 output +true + + +-- !query 3283 +SELECT cast(1 as decimal(6, 1)) = cast(1 as tinyint) FROM t +-- !query 3283 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> +-- !query 3283 output +true + + +-- !query 3284 +SELECT cast(1 as decimal(10, 1)) = cast(1 as tinyint) FROM t +-- !query 3284 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> +-- !query 3284 output +true + + +-- !query 3285 +SELECT cast(1 as decimal(11, 1)) = cast(1 as tinyint) FROM t +-- !query 3285 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> +-- !query 3285 output +true + + +-- !query 3286 +SELECT cast(1 as decimal(20, 1)) = cast(1 as tinyint) FROM t +-- !query 3286 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> +-- !query 3286 output +true + + +-- !query 3287 +SELECT cast(1 as decimal(21, 1)) = cast(1 as tinyint) FROM t +-- !query 3287 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> +-- !query 3287 output +true + + +-- !query 3288 +SELECT cast(1 as decimal(38, 1)) = cast(1 as tinyint) FROM t +-- !query 3288 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> +-- !query 3288 output +true + + +-- !query 3289 +SELECT cast(1 as decimal(39, 1)) = cast(1 as tinyint) FROM t +-- !query 3289 schema +struct<> +-- !query 3289 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as tinyint) FROM t + + +-- !query 3290 +SELECT cast(1 as decimal(1, 0)) = cast(1 as smallint) FROM t +-- !query 3290 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3290 output +true + + +-- !query 3291 +SELECT cast(1 as decimal(3, 0)) = cast(1 as smallint) FROM t +-- !query 3291 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3291 output +true + + +-- !query 3292 +SELECT cast(1 as decimal(4, 0)) = cast(1 as smallint) FROM t +-- !query 3292 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3292 output +true + + +-- !query 3293 +SELECT cast(1 as decimal(5, 0)) = cast(1 as smallint) FROM t +-- !query 3293 schema +struct<(CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> +-- !query 3293 output +true + + +-- !query 3294 +SELECT cast(1 as decimal(6, 0)) = cast(1 as smallint) FROM t +-- !query 3294 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> +-- !query 3294 output +true + + +-- !query 3295 +SELECT cast(1 as decimal(10, 0)) = cast(1 as smallint) FROM t +-- !query 3295 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 3295 output +true + + +-- !query 3296 +SELECT cast(1 as decimal(11, 0)) = cast(1 as smallint) FROM t +-- !query 3296 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> +-- !query 3296 output +true + + +-- !query 3297 +SELECT cast(1 as decimal(20, 0)) = cast(1 as smallint) FROM t +-- !query 3297 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 3297 output +true + + +-- !query 3298 +SELECT cast(1 as decimal(21, 0)) = cast(1 as smallint) FROM t +-- !query 3298 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> +-- !query 3298 output +true + + +-- !query 3299 +SELECT cast(1 as decimal(38, 0)) = cast(1 as smallint) FROM t +-- !query 3299 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> +-- !query 3299 output +true + + +-- !query 3300 +SELECT cast(1 as decimal(39, 0)) = cast(1 as smallint) FROM t +-- !query 3300 schema +struct<> +-- !query 3300 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as smallint) FROM t + + +-- !query 3301 +SELECT cast(1 as decimal(1, 1)) = cast(1 as smallint) FROM t +-- !query 3301 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3301 output +NULL + + +-- !query 3302 +SELECT cast(1 as decimal(2, 1)) = cast(1 as smallint) FROM t +-- !query 3302 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3302 output +true + + +-- !query 3303 +SELECT cast(1 as decimal(3, 1)) = cast(1 as smallint) FROM t +-- !query 3303 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3303 output +true + + +-- !query 3304 +SELECT cast(1 as decimal(4, 1)) = cast(1 as smallint) FROM t +-- !query 3304 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3304 output +true + + +-- !query 3305 +SELECT cast(1 as decimal(5, 1)) = cast(1 as smallint) FROM t +-- !query 3305 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3305 output +true + + +-- !query 3306 +SELECT cast(1 as decimal(6, 1)) = cast(1 as smallint) FROM t +-- !query 3306 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3306 output +true + + +-- !query 3307 +SELECT cast(1 as decimal(10, 1)) = cast(1 as smallint) FROM t +-- !query 3307 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> +-- !query 3307 output +true + + +-- !query 3308 +SELECT cast(1 as decimal(11, 1)) = cast(1 as smallint) FROM t +-- !query 3308 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> +-- !query 3308 output +true + + +-- !query 3309 +SELECT cast(1 as decimal(20, 1)) = cast(1 as smallint) FROM t +-- !query 3309 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> +-- !query 3309 output +true + + +-- !query 3310 +SELECT cast(1 as decimal(21, 1)) = cast(1 as smallint) FROM t +-- !query 3310 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> +-- !query 3310 output +true + + +-- !query 3311 +SELECT cast(1 as decimal(38, 1)) = cast(1 as smallint) FROM t +-- !query 3311 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> +-- !query 3311 output +true + + +-- !query 3312 +SELECT cast(1 as decimal(39, 1)) = cast(1 as smallint) FROM t +-- !query 3312 schema +struct<> +-- !query 3312 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as smallint) FROM t + + +-- !query 3313 +SELECT cast(1 as decimal(1, 0)) = cast(1 as int) FROM t +-- !query 3313 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3313 output +true + + +-- !query 3314 +SELECT cast(1 as decimal(3, 0)) = cast(1 as int) FROM t +-- !query 3314 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3314 output +true + + +-- !query 3315 +SELECT cast(1 as decimal(4, 0)) = cast(1 as int) FROM t +-- !query 3315 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3315 output +true + + +-- !query 3316 +SELECT cast(1 as decimal(5, 0)) = cast(1 as int) FROM t +-- !query 3316 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3316 output +true + + +-- !query 3317 +SELECT cast(1 as decimal(6, 0)) = cast(1 as int) FROM t +-- !query 3317 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3317 output +true + + +-- !query 3318 +SELECT cast(1 as decimal(10, 0)) = cast(1 as int) FROM t +-- !query 3318 schema +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> +-- !query 3318 output +true + + +-- !query 3319 +SELECT cast(1 as decimal(11, 0)) = cast(1 as int) FROM t +-- !query 3319 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 3319 output +true + + +-- !query 3320 +SELECT cast(1 as decimal(20, 0)) = cast(1 as int) FROM t +-- !query 3320 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 3320 output +true + + +-- !query 3321 +SELECT cast(1 as decimal(21, 0)) = cast(1 as int) FROM t +-- !query 3321 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 3321 output +true + + +-- !query 3322 +SELECT cast(1 as decimal(38, 0)) = cast(1 as int) FROM t +-- !query 3322 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 3322 output +true + + +-- !query 3323 +SELECT cast(1 as decimal(39, 0)) = cast(1 as int) FROM t +-- !query 3323 schema +struct<> +-- !query 3323 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as int) FROM t + + +-- !query 3324 +SELECT cast(1 as decimal(1, 1)) = cast(1 as int) FROM t +-- !query 3324 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3324 output +NULL + + +-- !query 3325 +SELECT cast(1 as decimal(2, 1)) = cast(1 as int) FROM t +-- !query 3325 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3325 output +true + + +-- !query 3326 +SELECT cast(1 as decimal(3, 1)) = cast(1 as int) FROM t +-- !query 3326 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3326 output +true + + +-- !query 3327 +SELECT cast(1 as decimal(4, 1)) = cast(1 as int) FROM t +-- !query 3327 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3327 output +true + + +-- !query 3328 +SELECT cast(1 as decimal(5, 1)) = cast(1 as int) FROM t +-- !query 3328 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3328 output +true + + +-- !query 3329 +SELECT cast(1 as decimal(6, 1)) = cast(1 as int) FROM t +-- !query 3329 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3329 output +true + + +-- !query 3330 +SELECT cast(1 as decimal(10, 1)) = cast(1 as int) FROM t +-- !query 3330 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3330 output +true + + +-- !query 3331 +SELECT cast(1 as decimal(11, 1)) = cast(1 as int) FROM t +-- !query 3331 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3331 output +true + + +-- !query 3332 +SELECT cast(1 as decimal(20, 1)) = cast(1 as int) FROM t +-- !query 3332 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 3332 output +true + + +-- !query 3333 +SELECT cast(1 as decimal(21, 1)) = cast(1 as int) FROM t +-- !query 3333 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 3333 output +true + + +-- !query 3334 +SELECT cast(1 as decimal(38, 1)) = cast(1 as int) FROM t +-- !query 3334 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 3334 output +true + + +-- !query 3335 +SELECT cast(1 as decimal(39, 1)) = cast(1 as int) FROM t +-- !query 3335 schema +struct<> +-- !query 3335 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as int) FROM t + + +-- !query 3336 +SELECT cast(1 as decimal(1, 0)) = cast(1 as bigint) FROM t +-- !query 3336 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3336 output +true + + +-- !query 3337 +SELECT cast(1 as decimal(3, 0)) = cast(1 as bigint) FROM t +-- !query 3337 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3337 output +true + + +-- !query 3338 +SELECT cast(1 as decimal(4, 0)) = cast(1 as bigint) FROM t +-- !query 3338 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3338 output +true + + +-- !query 3339 +SELECT cast(1 as decimal(5, 0)) = cast(1 as bigint) FROM t +-- !query 3339 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3339 output +true + + +-- !query 3340 +SELECT cast(1 as decimal(6, 0)) = cast(1 as bigint) FROM t +-- !query 3340 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3340 output +true + + +-- !query 3341 +SELECT cast(1 as decimal(10, 0)) = cast(1 as bigint) FROM t +-- !query 3341 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3341 output +true + + +-- !query 3342 +SELECT cast(1 as decimal(11, 0)) = cast(1 as bigint) FROM t +-- !query 3342 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3342 output +true + + +-- !query 3343 +SELECT cast(1 as decimal(20, 0)) = cast(1 as bigint) FROM t +-- !query 3343 schema +struct<(CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> +-- !query 3343 output +true + + +-- !query 3344 +SELECT cast(1 as decimal(21, 0)) = cast(1 as bigint) FROM t +-- !query 3344 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> +-- !query 3344 output +true + + +-- !query 3345 +SELECT cast(1 as decimal(38, 0)) = cast(1 as bigint) FROM t +-- !query 3345 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> +-- !query 3345 output +true + + +-- !query 3346 +SELECT cast(1 as decimal(39, 0)) = cast(1 as bigint) FROM t +-- !query 3346 schema +struct<> +-- !query 3346 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as bigint) FROM t + + +-- !query 3347 +SELECT cast(1 as decimal(1, 1)) = cast(1 as bigint) FROM t +-- !query 3347 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3347 output +NULL + + +-- !query 3348 +SELECT cast(1 as decimal(2, 1)) = cast(1 as bigint) FROM t +-- !query 3348 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3348 output +true + + +-- !query 3349 +SELECT cast(1 as decimal(3, 1)) = cast(1 as bigint) FROM t +-- !query 3349 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3349 output +true + + +-- !query 3350 +SELECT cast(1 as decimal(4, 1)) = cast(1 as bigint) FROM t +-- !query 3350 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3350 output +true + + +-- !query 3351 +SELECT cast(1 as decimal(5, 1)) = cast(1 as bigint) FROM t +-- !query 3351 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3351 output +true + + +-- !query 3352 +SELECT cast(1 as decimal(6, 1)) = cast(1 as bigint) FROM t +-- !query 3352 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3352 output +true + + +-- !query 3353 +SELECT cast(1 as decimal(10, 1)) = cast(1 as bigint) FROM t +-- !query 3353 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3353 output +true + + +-- !query 3354 +SELECT cast(1 as decimal(11, 1)) = cast(1 as bigint) FROM t +-- !query 3354 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3354 output +true + + +-- !query 3355 +SELECT cast(1 as decimal(20, 1)) = cast(1 as bigint) FROM t +-- !query 3355 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3355 output +true + + +-- !query 3356 +SELECT cast(1 as decimal(21, 1)) = cast(1 as bigint) FROM t +-- !query 3356 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3356 output +true + + +-- !query 3357 +SELECT cast(1 as decimal(38, 1)) = cast(1 as bigint) FROM t +-- !query 3357 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> +-- !query 3357 output +true + + +-- !query 3358 +SELECT cast(1 as decimal(39, 1)) = cast(1 as bigint) FROM t +-- !query 3358 schema +struct<> +-- !query 3358 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as bigint) FROM t + + +-- !query 3359 +SELECT cast(1 as decimal(1, 0)) = cast(1 as float) FROM t +-- !query 3359 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3359 output +true + + +-- !query 3360 +SELECT cast(1 as decimal(3, 0)) = cast(1 as float) FROM t +-- !query 3360 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3360 output +true + + +-- !query 3361 +SELECT cast(1 as decimal(4, 0)) = cast(1 as float) FROM t +-- !query 3361 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3361 output +true + + +-- !query 3362 +SELECT cast(1 as decimal(5, 0)) = cast(1 as float) FROM t +-- !query 3362 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3362 output +true + + +-- !query 3363 +SELECT cast(1 as decimal(6, 0)) = cast(1 as float) FROM t +-- !query 3363 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3363 output +true + + +-- !query 3364 +SELECT cast(1 as decimal(10, 0)) = cast(1 as float) FROM t +-- !query 3364 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3364 output +true + + +-- !query 3365 +SELECT cast(1 as decimal(11, 0)) = cast(1 as float) FROM t +-- !query 3365 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3365 output +true + + +-- !query 3366 +SELECT cast(1 as decimal(20, 0)) = cast(1 as float) FROM t +-- !query 3366 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3366 output +true + + +-- !query 3367 +SELECT cast(1 as decimal(21, 0)) = cast(1 as float) FROM t +-- !query 3367 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3367 output +true + + +-- !query 3368 +SELECT cast(1 as decimal(38, 0)) = cast(1 as float) FROM t +-- !query 3368 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3368 output +true + + +-- !query 3369 +SELECT cast(1 as decimal(39, 0)) = cast(1 as float) FROM t +-- !query 3369 schema +struct<> +-- !query 3369 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as float) FROM t + + +-- !query 3370 +SELECT cast(1 as decimal(1, 1)) = cast(1 as float) FROM t +-- !query 3370 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3370 output +NULL + + +-- !query 3371 +SELECT cast(1 as decimal(2, 1)) = cast(1 as float) FROM t +-- !query 3371 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3371 output +true + + +-- !query 3372 +SELECT cast(1 as decimal(3, 1)) = cast(1 as float) FROM t +-- !query 3372 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3372 output +true + + +-- !query 3373 +SELECT cast(1 as decimal(4, 1)) = cast(1 as float) FROM t +-- !query 3373 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3373 output +true + + +-- !query 3374 +SELECT cast(1 as decimal(5, 1)) = cast(1 as float) FROM t +-- !query 3374 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3374 output +true + + +-- !query 3375 +SELECT cast(1 as decimal(6, 1)) = cast(1 as float) FROM t +-- !query 3375 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3375 output +true + + +-- !query 3376 +SELECT cast(1 as decimal(10, 1)) = cast(1 as float) FROM t +-- !query 3376 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3376 output +true + + +-- !query 3377 +SELECT cast(1 as decimal(11, 1)) = cast(1 as float) FROM t +-- !query 3377 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3377 output +true + + +-- !query 3378 +SELECT cast(1 as decimal(20, 1)) = cast(1 as float) FROM t +-- !query 3378 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3378 output +true + + +-- !query 3379 +SELECT cast(1 as decimal(21, 1)) = cast(1 as float) FROM t +-- !query 3379 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3379 output +true + + +-- !query 3380 +SELECT cast(1 as decimal(38, 1)) = cast(1 as float) FROM t +-- !query 3380 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3380 output +true + + +-- !query 3381 +SELECT cast(1 as decimal(39, 1)) = cast(1 as float) FROM t +-- !query 3381 schema +struct<> +-- !query 3381 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as float) FROM t + + +-- !query 3382 +SELECT cast(1 as decimal(1, 0)) = cast(1 as double) FROM t +-- !query 3382 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3382 output +true + + +-- !query 3383 +SELECT cast(1 as decimal(3, 0)) = cast(1 as double) FROM t +-- !query 3383 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3383 output +true + + +-- !query 3384 +SELECT cast(1 as decimal(4, 0)) = cast(1 as double) FROM t +-- !query 3384 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3384 output +true + + +-- !query 3385 +SELECT cast(1 as decimal(5, 0)) = cast(1 as double) FROM t +-- !query 3385 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3385 output +true + + +-- !query 3386 +SELECT cast(1 as decimal(6, 0)) = cast(1 as double) FROM t +-- !query 3386 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3386 output +true + + +-- !query 3387 +SELECT cast(1 as decimal(10, 0)) = cast(1 as double) FROM t +-- !query 3387 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3387 output +true + + +-- !query 3388 +SELECT cast(1 as decimal(11, 0)) = cast(1 as double) FROM t +-- !query 3388 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3388 output +true + + +-- !query 3389 +SELECT cast(1 as decimal(20, 0)) = cast(1 as double) FROM t +-- !query 3389 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3389 output +true + + +-- !query 3390 +SELECT cast(1 as decimal(21, 0)) = cast(1 as double) FROM t +-- !query 3390 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3390 output +true + + +-- !query 3391 +SELECT cast(1 as decimal(38, 0)) = cast(1 as double) FROM t +-- !query 3391 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3391 output +true + + +-- !query 3392 +SELECT cast(1 as decimal(39, 0)) = cast(1 as double) FROM t +-- !query 3392 schema +struct<> +-- !query 3392 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as double) FROM t + + +-- !query 3393 +SELECT cast(1 as decimal(1, 1)) = cast(1 as double) FROM t +-- !query 3393 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3393 output +NULL + + +-- !query 3394 +SELECT cast(1 as decimal(2, 1)) = cast(1 as double) FROM t +-- !query 3394 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3394 output +true + + +-- !query 3395 +SELECT cast(1 as decimal(3, 1)) = cast(1 as double) FROM t +-- !query 3395 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3395 output +true + + +-- !query 3396 +SELECT cast(1 as decimal(4, 1)) = cast(1 as double) FROM t +-- !query 3396 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3396 output +true + + +-- !query 3397 +SELECT cast(1 as decimal(5, 1)) = cast(1 as double) FROM t +-- !query 3397 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3397 output +true + + +-- !query 3398 +SELECT cast(1 as decimal(6, 1)) = cast(1 as double) FROM t +-- !query 3398 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3398 output +true + + +-- !query 3399 +SELECT cast(1 as decimal(10, 1)) = cast(1 as double) FROM t +-- !query 3399 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3399 output +true + + +-- !query 3400 +SELECT cast(1 as decimal(11, 1)) = cast(1 as double) FROM t +-- !query 3400 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3400 output +true + + +-- !query 3401 +SELECT cast(1 as decimal(20, 1)) = cast(1 as double) FROM t +-- !query 3401 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3401 output +true + + +-- !query 3402 +SELECT cast(1 as decimal(21, 1)) = cast(1 as double) FROM t +-- !query 3402 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3402 output +true + + +-- !query 3403 +SELECT cast(1 as decimal(38, 1)) = cast(1 as double) FROM t +-- !query 3403 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> +-- !query 3403 output +true + + +-- !query 3404 +SELECT cast(1 as decimal(39, 1)) = cast(1 as double) FROM t +-- !query 3404 schema +struct<> +-- !query 3404 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as double) FROM t + + +-- !query 3405 +SELECT cast(1 as decimal(1, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3405 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3405 output +true + + +-- !query 3406 +SELECT cast(1 as decimal(3, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3406 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3406 output +true + + +-- !query 3407 +SELECT cast(1 as decimal(4, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3407 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3407 output +true + + +-- !query 3408 +SELECT cast(1 as decimal(5, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3408 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3408 output +true + + +-- !query 3409 +SELECT cast(1 as decimal(6, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3409 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3409 output +true + + +-- !query 3410 +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3410 schema +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 3410 output +true + + +-- !query 3411 +SELECT cast(1 as decimal(11, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3411 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 3411 output +true + + +-- !query 3412 +SELECT cast(1 as decimal(20, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3412 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 3412 output +true + + +-- !query 3413 +SELECT cast(1 as decimal(21, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3413 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 3413 output +true + + +-- !query 3414 +SELECT cast(1 as decimal(38, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3414 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 3414 output +true + + +-- !query 3415 +SELECT cast(1 as decimal(39, 0)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3415 schema +struct<> +-- !query 3415 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as decimal(10, 0)) FROM t + + +-- !query 3416 +SELECT cast(1 as decimal(1, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3416 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3416 output +NULL + + +-- !query 3417 +SELECT cast(1 as decimal(2, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3417 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3417 output +true + + +-- !query 3418 +SELECT cast(1 as decimal(3, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3418 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3418 output +true + + +-- !query 3419 +SELECT cast(1 as decimal(4, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3419 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3419 output +true + + +-- !query 3420 +SELECT cast(1 as decimal(5, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3420 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3420 output +true + + +-- !query 3421 +SELECT cast(1 as decimal(6, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3421 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3421 output +true + + +-- !query 3422 +SELECT cast(1 as decimal(10, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3422 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3422 output +true + + +-- !query 3423 +SELECT cast(1 as decimal(11, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3423 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3423 output +true + + +-- !query 3424 +SELECT cast(1 as decimal(20, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3424 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 3424 output +true + + +-- !query 3425 +SELECT cast(1 as decimal(21, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3425 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 3425 output +true + + +-- !query 3426 +SELECT cast(1 as decimal(38, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3426 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 3426 output +true + + +-- !query 3427 +SELECT cast(1 as decimal(39, 1)) = cast(1 as decimal(10, 0)) FROM t +-- !query 3427 schema +struct<> +-- !query 3427 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as decimal(10, 0)) FROM t + + +-- !query 3428 +SELECT cast(1 as decimal(1, 0)) = cast(1 as string) FROM t +-- !query 3428 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3428 output +true + + +-- !query 3429 +SELECT cast(1 as decimal(3, 0)) = cast(1 as string) FROM t +-- !query 3429 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3429 output +true + + +-- !query 3430 +SELECT cast(1 as decimal(4, 0)) = cast(1 as string) FROM t +-- !query 3430 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3430 output +true + + +-- !query 3431 +SELECT cast(1 as decimal(5, 0)) = cast(1 as string) FROM t +-- !query 3431 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3431 output +true + + +-- !query 3432 +SELECT cast(1 as decimal(6, 0)) = cast(1 as string) FROM t +-- !query 3432 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3432 output +true + + +-- !query 3433 +SELECT cast(1 as decimal(10, 0)) = cast(1 as string) FROM t +-- !query 3433 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3433 output +true + + +-- !query 3434 +SELECT cast(1 as decimal(11, 0)) = cast(1 as string) FROM t +-- !query 3434 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3434 output +true + + +-- !query 3435 +SELECT cast(1 as decimal(20, 0)) = cast(1 as string) FROM t +-- !query 3435 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3435 output +true + + +-- !query 3436 +SELECT cast(1 as decimal(21, 0)) = cast(1 as string) FROM t +-- !query 3436 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3436 output +true + + +-- !query 3437 +SELECT cast(1 as decimal(38, 0)) = cast(1 as string) FROM t +-- !query 3437 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3437 output +true + + +-- !query 3438 +SELECT cast(1 as decimal(39, 0)) = cast(1 as string) FROM t +-- !query 3438 schema +struct<> +-- !query 3438 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as string) FROM t + + +-- !query 3439 +SELECT cast(1 as decimal(1, 1)) = cast(1 as string) FROM t +-- !query 3439 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3439 output +NULL + + +-- !query 3440 +SELECT cast(1 as decimal(2, 1)) = cast(1 as string) FROM t +-- !query 3440 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3440 output +true + + +-- !query 3441 +SELECT cast(1 as decimal(3, 1)) = cast(1 as string) FROM t +-- !query 3441 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3441 output +true + + +-- !query 3442 +SELECT cast(1 as decimal(4, 1)) = cast(1 as string) FROM t +-- !query 3442 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3442 output +true + + +-- !query 3443 +SELECT cast(1 as decimal(5, 1)) = cast(1 as string) FROM t +-- !query 3443 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3443 output +true + + +-- !query 3444 +SELECT cast(1 as decimal(6, 1)) = cast(1 as string) FROM t +-- !query 3444 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3444 output +true + + +-- !query 3445 +SELECT cast(1 as decimal(10, 1)) = cast(1 as string) FROM t +-- !query 3445 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3445 output +true + + +-- !query 3446 +SELECT cast(1 as decimal(11, 1)) = cast(1 as string) FROM t +-- !query 3446 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3446 output +true + + +-- !query 3447 +SELECT cast(1 as decimal(20, 1)) = cast(1 as string) FROM t +-- !query 3447 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3447 output +true + + +-- !query 3448 +SELECT cast(1 as decimal(21, 1)) = cast(1 as string) FROM t +-- !query 3448 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3448 output +true + + +-- !query 3449 +SELECT cast(1 as decimal(38, 1)) = cast(1 as string) FROM t +-- !query 3449 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3449 output +true + + +-- !query 3450 +SELECT cast(1 as decimal(39, 1)) = cast(1 as string) FROM t +-- !query 3450 schema +struct<> +-- !query 3450 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as string) FROM t + + +-- !query 3451 +SELECT cast(1 as decimal(1, 0)) = cast('1' as binary) FROM t +-- !query 3451 schema +struct<> +-- !query 3451 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 3452 +SELECT cast(1 as decimal(3, 0)) = cast('1' as binary) FROM t +-- !query 3452 schema +struct<> +-- !query 3452 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 3453 +SELECT cast(1 as decimal(4, 0)) = cast('1' as binary) FROM t +-- !query 3453 schema +struct<> +-- !query 3453 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 3454 +SELECT cast(1 as decimal(5, 0)) = cast('1' as binary) FROM t +-- !query 3454 schema +struct<> +-- !query 3454 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 3455 +SELECT cast(1 as decimal(6, 0)) = cast('1' as binary) FROM t +-- !query 3455 schema +struct<> +-- !query 3455 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 3456 +SELECT cast(1 as decimal(10, 0)) = cast('1' as binary) FROM t +-- !query 3456 schema +struct<> +-- !query 3456 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 3457 +SELECT cast(1 as decimal(11, 0)) = cast('1' as binary) FROM t +-- !query 3457 schema +struct<> +-- !query 3457 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 3458 +SELECT cast(1 as decimal(20, 0)) = cast('1' as binary) FROM t +-- !query 3458 schema +struct<> +-- !query 3458 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 3459 +SELECT cast(1 as decimal(21, 0)) = cast('1' as binary) FROM t +-- !query 3459 schema +struct<> +-- !query 3459 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 3460 +SELECT cast(1 as decimal(38, 0)) = cast('1' as binary) FROM t +-- !query 3460 schema +struct<> +-- !query 3460 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 3461 +SELECT cast(1 as decimal(39, 0)) = cast('1' as binary) FROM t +-- !query 3461 schema +struct<> +-- !query 3461 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast('1' as binary) FROM t + + +-- !query 3462 +SELECT cast(1 as decimal(1, 1)) = cast('1' as binary) FROM t +-- !query 3462 schema +struct<> +-- !query 3462 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 3463 +SELECT cast(1 as decimal(2, 1)) = cast('1' as binary) FROM t +-- !query 3463 schema +struct<> +-- !query 3463 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 3464 +SELECT cast(1 as decimal(3, 1)) = cast('1' as binary) FROM t +-- !query 3464 schema +struct<> +-- !query 3464 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 3465 +SELECT cast(1 as decimal(4, 1)) = cast('1' as binary) FROM t +-- !query 3465 schema +struct<> +-- !query 3465 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 3466 +SELECT cast(1 as decimal(5, 1)) = cast('1' as binary) FROM t +-- !query 3466 schema +struct<> +-- !query 3466 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 3467 +SELECT cast(1 as decimal(6, 1)) = cast('1' as binary) FROM t +-- !query 3467 schema +struct<> +-- !query 3467 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 3468 +SELECT cast(1 as decimal(10, 1)) = cast('1' as binary) FROM t +-- !query 3468 schema +struct<> +-- !query 3468 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 3469 +SELECT cast(1 as decimal(11, 1)) = cast('1' as binary) FROM t +-- !query 3469 schema +struct<> +-- !query 3469 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 3470 +SELECT cast(1 as decimal(20, 1)) = cast('1' as binary) FROM t +-- !query 3470 schema +struct<> +-- !query 3470 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 3471 +SELECT cast(1 as decimal(21, 1)) = cast('1' as binary) FROM t +-- !query 3471 schema +struct<> +-- !query 3471 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 3472 +SELECT cast(1 as decimal(38, 1)) = cast('1' as binary) FROM t +-- !query 3472 schema +struct<> +-- !query 3472 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 3473 +SELECT cast(1 as decimal(39, 1)) = cast('1' as binary) FROM t +-- !query 3473 schema +struct<> +-- !query 3473 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast('1' as binary) FROM t + + +-- !query 3474 +SELECT cast(1 as decimal(1, 0)) = cast(1 as boolean) FROM t +-- !query 3474 schema +struct<(CAST(1 AS DECIMAL(1,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,0))):boolean> +-- !query 3474 output +true + + +-- !query 3475 +SELECT cast(1 as decimal(3, 0)) = cast(1 as boolean) FROM t +-- !query 3475 schema +struct<(CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0))):boolean> +-- !query 3475 output +true + + +-- !query 3476 +SELECT cast(1 as decimal(4, 0)) = cast(1 as boolean) FROM t +-- !query 3476 schema +struct<(CAST(1 AS DECIMAL(4,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,0))):boolean> +-- !query 3476 output +true + + +-- !query 3477 +SELECT cast(1 as decimal(5, 0)) = cast(1 as boolean) FROM t +-- !query 3477 schema +struct<(CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0))):boolean> +-- !query 3477 output +true + + +-- !query 3478 +SELECT cast(1 as decimal(6, 0)) = cast(1 as boolean) FROM t +-- !query 3478 schema +struct<(CAST(1 AS DECIMAL(6,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,0))):boolean> +-- !query 3478 output +true + + +-- !query 3479 +SELECT cast(1 as decimal(10, 0)) = cast(1 as boolean) FROM t +-- !query 3479 schema +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0))):boolean> +-- !query 3479 output +true + + +-- !query 3480 +SELECT cast(1 as decimal(11, 0)) = cast(1 as boolean) FROM t +-- !query 3480 schema +struct<(CAST(1 AS DECIMAL(11,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,0))):boolean> +-- !query 3480 output +true + + +-- !query 3481 +SELECT cast(1 as decimal(20, 0)) = cast(1 as boolean) FROM t +-- !query 3481 schema +struct<(CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0))):boolean> +-- !query 3481 output +true + + +-- !query 3482 +SELECT cast(1 as decimal(21, 0)) = cast(1 as boolean) FROM t +-- !query 3482 schema +struct<(CAST(1 AS DECIMAL(21,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,0))):boolean> +-- !query 3482 output +true + + +-- !query 3483 +SELECT cast(1 as decimal(38, 0)) = cast(1 as boolean) FROM t +-- !query 3483 schema +struct<(CAST(1 AS DECIMAL(38,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,0))):boolean> +-- !query 3483 output +true + + +-- !query 3484 +SELECT cast(1 as decimal(39, 0)) = cast(1 as boolean) FROM t +-- !query 3484 schema +struct<> +-- !query 3484 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast(1 as boolean) FROM t + + +-- !query 3485 +SELECT cast(1 as decimal(1, 1)) = cast(1 as boolean) FROM t +-- !query 3485 schema +struct<(CAST(1 AS DECIMAL(1,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,1))):boolean> +-- !query 3485 output +NULL + + +-- !query 3486 +SELECT cast(1 as decimal(2, 1)) = cast(1 as boolean) FROM t +-- !query 3486 schema +struct<(CAST(1 AS DECIMAL(2,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(2,1))):boolean> +-- !query 3486 output +true + + +-- !query 3487 +SELECT cast(1 as decimal(3, 1)) = cast(1 as boolean) FROM t +-- !query 3487 schema +struct<(CAST(1 AS DECIMAL(3,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,1))):boolean> +-- !query 3487 output +true + + +-- !query 3488 +SELECT cast(1 as decimal(4, 1)) = cast(1 as boolean) FROM t +-- !query 3488 schema +struct<(CAST(1 AS DECIMAL(4,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,1))):boolean> +-- !query 3488 output +true + + +-- !query 3489 +SELECT cast(1 as decimal(5, 1)) = cast(1 as boolean) FROM t +-- !query 3489 schema +struct<(CAST(1 AS DECIMAL(5,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,1))):boolean> +-- !query 3489 output +true + + +-- !query 3490 +SELECT cast(1 as decimal(6, 1)) = cast(1 as boolean) FROM t +-- !query 3490 schema +struct<(CAST(1 AS DECIMAL(6,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,1))):boolean> +-- !query 3490 output +true + + +-- !query 3491 +SELECT cast(1 as decimal(10, 1)) = cast(1 as boolean) FROM t +-- !query 3491 schema +struct<(CAST(1 AS DECIMAL(10,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,1))):boolean> +-- !query 3491 output +true + + +-- !query 3492 +SELECT cast(1 as decimal(11, 1)) = cast(1 as boolean) FROM t +-- !query 3492 schema +struct<(CAST(1 AS DECIMAL(11,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,1))):boolean> +-- !query 3492 output +true + + +-- !query 3493 +SELECT cast(1 as decimal(20, 1)) = cast(1 as boolean) FROM t +-- !query 3493 schema +struct<(CAST(1 AS DECIMAL(20,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,1))):boolean> +-- !query 3493 output +true + + +-- !query 3494 +SELECT cast(1 as decimal(21, 1)) = cast(1 as boolean) FROM t +-- !query 3494 schema +struct<(CAST(1 AS DECIMAL(21,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,1))):boolean> +-- !query 3494 output +true + + +-- !query 3495 +SELECT cast(1 as decimal(38, 1)) = cast(1 as boolean) FROM t +-- !query 3495 schema +struct<(CAST(1 AS DECIMAL(38,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,1))):boolean> +-- !query 3495 output +true + + +-- !query 3496 +SELECT cast(1 as decimal(39, 1)) = cast(1 as boolean) FROM t +-- !query 3496 schema +struct<> +-- !query 3496 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast(1 as boolean) FROM t + + +-- !query 3497 +SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3497 schema +struct<> +-- !query 3497 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 3498 +SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3498 schema +struct<> +-- !query 3498 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 3499 +SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3499 schema +struct<> +-- !query 3499 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 3500 +SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3500 schema +struct<> +-- !query 3500 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 3501 +SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3501 schema +struct<> +-- !query 3501 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 3502 +SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3502 schema +struct<> +-- !query 3502 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 3503 +SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3503 schema +struct<> +-- !query 3503 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 3504 +SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3504 schema +struct<> +-- !query 3504 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 3505 +SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3505 schema +struct<> +-- !query 3505 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 3506 +SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3506 schema +struct<> +-- !query 3506 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 3507 +SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3507 schema +struct<> +-- !query 3507 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 3508 +SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3508 schema +struct<> +-- !query 3508 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 3509 +SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3509 schema +struct<> +-- !query 3509 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 3510 +SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3510 schema +struct<> +-- !query 3510 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 3511 +SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3511 schema +struct<> +-- !query 3511 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 3512 +SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3512 schema +struct<> +-- !query 3512 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 3513 +SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3513 schema +struct<> +-- !query 3513 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 3514 +SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3514 schema +struct<> +-- !query 3514 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 3515 +SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3515 schema +struct<> +-- !query 3515 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 3516 +SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3516 schema +struct<> +-- !query 3516 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 3517 +SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3517 schema +struct<> +-- !query 3517 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 3518 +SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3518 schema +struct<> +-- !query 3518 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 3519 +SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 3519 schema +struct<> +-- !query 3519 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 3520 +SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3520 schema +struct<> +-- !query 3520 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 3521 +SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3521 schema +struct<> +-- !query 3521 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 3522 +SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3522 schema +struct<> +-- !query 3522 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 3523 +SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3523 schema +struct<> +-- !query 3523 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 3524 +SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3524 schema +struct<> +-- !query 3524 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 3525 +SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3525 schema +struct<> +-- !query 3525 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 3526 +SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3526 schema +struct<> +-- !query 3526 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 3527 +SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3527 schema +struct<> +-- !query 3527 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 3528 +SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3528 schema +struct<> +-- !query 3528 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 3529 +SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3529 schema +struct<> +-- !query 3529 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 3530 +SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3530 schema +struct<> +-- !query 3530 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 3531 +SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3531 schema +struct<> +-- !query 3531 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 3532 +SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3532 schema +struct<> +-- !query 3532 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 3533 +SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3533 schema +struct<> +-- !query 3533 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 3534 +SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3534 schema +struct<> +-- !query 3534 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 3535 +SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3535 schema +struct<> +-- !query 3535 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 3536 +SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3536 schema +struct<> +-- !query 3536 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 3537 +SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3537 schema +struct<> +-- !query 3537 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 3538 +SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3538 schema +struct<> +-- !query 3538 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 3539 +SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3539 schema +struct<> +-- !query 3539 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 3540 +SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3540 schema +struct<> +-- !query 3540 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 3541 +SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3541 schema +struct<> +-- !query 3541 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 3542 +SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00' as date) FROM t +-- !query 3542 schema +struct<> +-- !query 3542 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 3543 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3543 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> +-- !query 3543 output +true + + +-- !query 3544 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3544 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) <=> CAST(1 AS DECIMAL(3,0))):boolean> +-- !query 3544 output +true + + +-- !query 3545 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3545 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> +-- !query 3545 output +true + + +-- !query 3546 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3546 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3546 output +true + + +-- !query 3547 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3547 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 3547 output +true + + +-- !query 3548 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3548 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3548 output +true + + +-- !query 3549 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3549 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3549 output +true + + +-- !query 3550 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3550 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3550 output +true + + +-- !query 3551 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3551 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3551 output +true + + +-- !query 3552 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3552 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3552 output +true + + +-- !query 3553 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3553 schema +struct<> +-- !query 3553 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3554 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3554 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> +-- !query 3554 output +false + + +-- !query 3555 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3555 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> +-- !query 3555 output +true + + +-- !query 3556 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3556 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> +-- !query 3556 output +true + + +-- !query 3557 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3557 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> +-- !query 3557 output +true + + +-- !query 3558 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3558 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> +-- !query 3558 output +true + + +-- !query 3559 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3559 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 3559 output +true + + +-- !query 3560 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3560 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 3560 output +true + + +-- !query 3561 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3561 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3561 output +true + + +-- !query 3562 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3562 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3562 output +true + + +-- !query 3563 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3563 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3563 output +true + + +-- !query 3564 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3564 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3564 output +true + + +-- !query 3565 +SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3565 schema +struct<> +-- !query 3565 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3566 +SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3566 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> +-- !query 3566 output +true + + +-- !query 3567 +SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3567 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 3567 output +true + + +-- !query 3568 +SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3568 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> +-- !query 3568 output +true + + +-- !query 3569 +SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3569 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) <=> CAST(1 AS DECIMAL(5,0))):boolean> +-- !query 3569 output +true + + +-- !query 3570 +SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3570 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 3570 output +true + + +-- !query 3571 +SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3571 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3571 output +true + + +-- !query 3572 +SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3572 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3572 output +true + + +-- !query 3573 +SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3573 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3573 output +true + + +-- !query 3574 +SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3574 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3574 output +true + + +-- !query 3575 +SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3575 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3575 output +true + + +-- !query 3576 +SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3576 schema +struct<> +-- !query 3576 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3577 +SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3577 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> +-- !query 3577 output +false + + +-- !query 3578 +SELECT cast(1 as smallint) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3578 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> +-- !query 3578 output +true + + +-- !query 3579 +SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3579 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> +-- !query 3579 output +true + + +-- !query 3580 +SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3580 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> +-- !query 3580 output +true + + +-- !query 3581 +SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3581 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> +-- !query 3581 output +true + + +-- !query 3582 +SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3582 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 3582 output +true + + +-- !query 3583 +SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3583 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 3583 output +true + + +-- !query 3584 +SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3584 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3584 output +true + + +-- !query 3585 +SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3585 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3585 output +true + + +-- !query 3586 +SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3586 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3586 output +true + + +-- !query 3587 +SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3587 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3587 output +true + + +-- !query 3588 +SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3588 schema +struct<> +-- !query 3588 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3589 +SELECT cast(1 as int) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3589 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 3589 output +true + + +-- !query 3590 +SELECT cast(1 as int) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3590 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 3590 output +true + + +-- !query 3591 +SELECT cast(1 as int) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3591 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 3591 output +true + + +-- !query 3592 +SELECT cast(1 as int) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3592 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 3592 output +true + + +-- !query 3593 +SELECT cast(1 as int) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3593 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 3593 output +true + + +-- !query 3594 +SELECT cast(1 as int) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3594 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 3594 output +true + + +-- !query 3595 +SELECT cast(1 as int) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3595 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3595 output +true + + +-- !query 3596 +SELECT cast(1 as int) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3596 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3596 output +true + + +-- !query 3597 +SELECT cast(1 as int) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3597 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3597 output +true + + +-- !query 3598 +SELECT cast(1 as int) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3598 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3598 output +true + + +-- !query 3599 +SELECT cast(1 as int) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3599 schema +struct<> +-- !query 3599 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3600 +SELECT cast(1 as int) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3600 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 3600 output +false + + +-- !query 3601 +SELECT cast(1 as int) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3601 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 3601 output +true + + +-- !query 3602 +SELECT cast(1 as int) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3602 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 3602 output +true + + +-- !query 3603 +SELECT cast(1 as int) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3603 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 3603 output +true + + +-- !query 3604 +SELECT cast(1 as int) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3604 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 3604 output +true + + +-- !query 3605 +SELECT cast(1 as int) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3605 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 3605 output +true + + +-- !query 3606 +SELECT cast(1 as int) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3606 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 3606 output +true + + +-- !query 3607 +SELECT cast(1 as int) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3607 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3607 output +true + + +-- !query 3608 +SELECT cast(1 as int) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3608 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3608 output +true + + +-- !query 3609 +SELECT cast(1 as int) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3609 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3609 output +true + + +-- !query 3610 +SELECT cast(1 as int) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3610 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3610 output +true + + +-- !query 3611 +SELECT cast(1 as int) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3611 schema +struct<> +-- !query 3611 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3612 +SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3612 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> +-- !query 3612 output +true + + +-- !query 3613 +SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3613 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 3613 output +true + + +-- !query 3614 +SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3614 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> +-- !query 3614 output +true + + +-- !query 3615 +SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3615 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 3615 output +true + + +-- !query 3616 +SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3616 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> +-- !query 3616 output +true + + +-- !query 3617 +SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3617 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 3617 output +true + + +-- !query 3618 +SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3618 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> +-- !query 3618 output +true + + +-- !query 3619 +SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3619 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) <=> CAST(1 AS DECIMAL(20,0))):boolean> +-- !query 3619 output +true + + +-- !query 3620 +SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3620 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3620 output +true + + +-- !query 3621 +SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3621 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3621 output +true + + +-- !query 3622 +SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3622 schema +struct<> +-- !query 3622 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3623 +SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3623 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> +-- !query 3623 output +false + + +-- !query 3624 +SELECT cast(1 as bigint) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3624 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> +-- !query 3624 output +true + + +-- !query 3625 +SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3625 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> +-- !query 3625 output +true + + +-- !query 3626 +SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3626 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> +-- !query 3626 output +true + + +-- !query 3627 +SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3627 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> +-- !query 3627 output +true + + +-- !query 3628 +SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3628 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> +-- !query 3628 output +true + + +-- !query 3629 +SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3629 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> +-- !query 3629 output +true + + +-- !query 3630 +SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3630 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> +-- !query 3630 output +true + + +-- !query 3631 +SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3631 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> +-- !query 3631 output +true + + +-- !query 3632 +SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3632 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3632 output +true + + +-- !query 3633 +SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3633 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3633 output +true + + +-- !query 3634 +SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3634 schema +struct<> +-- !query 3634 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3635 +SELECT cast(1 as float) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3635 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 3635 output +true + + +-- !query 3636 +SELECT cast(1 as float) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3636 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 3636 output +true + + +-- !query 3637 +SELECT cast(1 as float) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3637 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 3637 output +true + + +-- !query 3638 +SELECT cast(1 as float) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3638 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 3638 output +true + + +-- !query 3639 +SELECT cast(1 as float) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3639 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 3639 output +true + + +-- !query 3640 +SELECT cast(1 as float) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3640 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 3640 output +true + + +-- !query 3641 +SELECT cast(1 as float) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3641 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 3641 output +true + + +-- !query 3642 +SELECT cast(1 as float) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3642 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 3642 output +true + + +-- !query 3643 +SELECT cast(1 as float) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3643 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 3643 output +true + + +-- !query 3644 +SELECT cast(1 as float) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3644 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 3644 output +true + + +-- !query 3645 +SELECT cast(1 as float) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3645 schema +struct<> +-- !query 3645 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3646 +SELECT cast(1 as float) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3646 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 3646 output +false + + +-- !query 3647 +SELECT cast(1 as float) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3647 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 3647 output +true + + +-- !query 3648 +SELECT cast(1 as float) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3648 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 3648 output +true + + +-- !query 3649 +SELECT cast(1 as float) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3649 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 3649 output +true + + +-- !query 3650 +SELECT cast(1 as float) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3650 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 3650 output +true + + +-- !query 3651 +SELECT cast(1 as float) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3651 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 3651 output +true + + +-- !query 3652 +SELECT cast(1 as float) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3652 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 3652 output +true + + +-- !query 3653 +SELECT cast(1 as float) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3653 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 3653 output +true + + +-- !query 3654 +SELECT cast(1 as float) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3654 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 3654 output +true + + +-- !query 3655 +SELECT cast(1 as float) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3655 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 3655 output +true + + +-- !query 3656 +SELECT cast(1 as float) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3656 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 3656 output +true + + +-- !query 3657 +SELECT cast(1 as float) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3657 schema +struct<> +-- !query 3657 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3658 +SELECT cast(1 as double) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3658 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 3658 output +true + + +-- !query 3659 +SELECT cast(1 as double) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3659 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 3659 output +true + + +-- !query 3660 +SELECT cast(1 as double) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3660 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 3660 output +true + + +-- !query 3661 +SELECT cast(1 as double) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3661 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 3661 output +true + + +-- !query 3662 +SELECT cast(1 as double) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3662 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 3662 output +true + + +-- !query 3663 +SELECT cast(1 as double) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3663 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 3663 output +true + + +-- !query 3664 +SELECT cast(1 as double) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3664 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 3664 output +true + + +-- !query 3665 +SELECT cast(1 as double) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3665 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 3665 output +true + + +-- !query 3666 +SELECT cast(1 as double) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3666 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 3666 output +true + + +-- !query 3667 +SELECT cast(1 as double) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3667 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 3667 output +true + + +-- !query 3668 +SELECT cast(1 as double) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3668 schema +struct<> +-- !query 3668 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3669 +SELECT cast(1 as double) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3669 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 3669 output +false + + +-- !query 3670 +SELECT cast(1 as double) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3670 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 3670 output +true + + +-- !query 3671 +SELECT cast(1 as double) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3671 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 3671 output +true + + +-- !query 3672 +SELECT cast(1 as double) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3672 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 3672 output +true + + +-- !query 3673 +SELECT cast(1 as double) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3673 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 3673 output +true + + +-- !query 3674 +SELECT cast(1 as double) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3674 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 3674 output +true + + +-- !query 3675 +SELECT cast(1 as double) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3675 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 3675 output +true + + +-- !query 3676 +SELECT cast(1 as double) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3676 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 3676 output +true + + +-- !query 3677 +SELECT cast(1 as double) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3677 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 3677 output +true + + +-- !query 3678 +SELECT cast(1 as double) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3678 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 3678 output +true + + +-- !query 3679 +SELECT cast(1 as double) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3679 schema +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 3679 output +true + + +-- !query 3680 +SELECT cast(1 as double) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3680 schema +struct<> +-- !query 3680 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3681 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3681 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 3681 output +true + + +-- !query 3682 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3682 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 3682 output +true + + +-- !query 3683 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3683 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 3683 output +true + + +-- !query 3684 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3684 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 3684 output +true + + +-- !query 3685 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3685 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 3685 output +true + + +-- !query 3686 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3686 schema +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 3686 output +true + + +-- !query 3687 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3687 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 3687 output +true + + +-- !query 3688 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3688 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3688 output +true + + +-- !query 3689 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3689 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 3689 output +true + + +-- !query 3690 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3690 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 3690 output +true + + +-- !query 3691 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3691 schema +struct<> +-- !query 3691 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3692 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3692 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 3692 output +false + + +-- !query 3693 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3693 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 3693 output +true + + +-- !query 3694 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3694 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 3694 output +true + + +-- !query 3695 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3695 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 3695 output +true + + +-- !query 3696 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3696 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 3696 output +true + + +-- !query 3697 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3697 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 3697 output +true + + +-- !query 3698 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3698 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 3698 output +true + + +-- !query 3699 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3699 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 3699 output +true + + +-- !query 3700 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3700 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 3700 output +true + + +-- !query 3701 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3701 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 3701 output +true + + +-- !query 3702 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3702 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 3702 output +true + + +-- !query 3703 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3703 schema +struct<> +-- !query 3703 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3704 +SELECT cast('1' as binary) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3704 schema +struct<> +-- !query 3704 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 3705 +SELECT cast('1' as binary) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3705 schema +struct<> +-- !query 3705 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 3706 +SELECT cast('1' as binary) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3706 schema +struct<> +-- !query 3706 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 3707 +SELECT cast('1' as binary) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3707 schema +struct<> +-- !query 3707 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 3708 +SELECT cast('1' as binary) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3708 schema +struct<> +-- !query 3708 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 3709 +SELECT cast('1' as binary) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3709 schema +struct<> +-- !query 3709 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 3710 +SELECT cast('1' as binary) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3710 schema +struct<> +-- !query 3710 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 3711 +SELECT cast('1' as binary) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3711 schema +struct<> +-- !query 3711 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 3712 +SELECT cast('1' as binary) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3712 schema +struct<> +-- !query 3712 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 3713 +SELECT cast('1' as binary) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3713 schema +struct<> +-- !query 3713 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 3714 +SELECT cast('1' as binary) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3714 schema +struct<> +-- !query 3714 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3715 +SELECT cast('1' as binary) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3715 schema +struct<> +-- !query 3715 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 3716 +SELECT cast('1' as binary) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3716 schema +struct<> +-- !query 3716 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 3717 +SELECT cast('1' as binary) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3717 schema +struct<> +-- !query 3717 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 3718 +SELECT cast('1' as binary) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3718 schema +struct<> +-- !query 3718 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 3719 +SELECT cast('1' as binary) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3719 schema +struct<> +-- !query 3719 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 3720 +SELECT cast('1' as binary) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3720 schema +struct<> +-- !query 3720 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 3721 +SELECT cast('1' as binary) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3721 schema +struct<> +-- !query 3721 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 3722 +SELECT cast('1' as binary) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3722 schema +struct<> +-- !query 3722 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 3723 +SELECT cast('1' as binary) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3723 schema +struct<> +-- !query 3723 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 3724 +SELECT cast('1' as binary) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3724 schema +struct<> +-- !query 3724 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 3725 +SELECT cast('1' as binary) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3725 schema +struct<> +-- !query 3725 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 3726 +SELECT cast('1' as binary) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3726 schema +struct<> +-- !query 3726 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3727 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3727 schema +struct<> +-- !query 3727 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 3728 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3728 schema +struct<> +-- !query 3728 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 3729 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3729 schema +struct<> +-- !query 3729 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 3730 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3730 schema +struct<> +-- !query 3730 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 3731 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3731 schema +struct<> +-- !query 3731 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 3732 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3732 schema +struct<> +-- !query 3732 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 3733 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3733 schema +struct<> +-- !query 3733 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 3734 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3734 schema +struct<> +-- !query 3734 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 3735 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3735 schema +struct<> +-- !query 3735 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 3736 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3736 schema +struct<> +-- !query 3736 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 3737 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3737 schema +struct<> +-- !query 3737 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3738 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3738 schema +struct<> +-- !query 3738 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 3739 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3739 schema +struct<> +-- !query 3739 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 3740 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3740 schema +struct<> +-- !query 3740 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 3741 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3741 schema +struct<> +-- !query 3741 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 3742 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3742 schema +struct<> +-- !query 3742 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 3743 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3743 schema +struct<> +-- !query 3743 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 3744 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3744 schema +struct<> +-- !query 3744 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 3745 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3745 schema +struct<> +-- !query 3745 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 3746 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3746 schema +struct<> +-- !query 3746 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 3747 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3747 schema +struct<> +-- !query 3747 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 3748 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3748 schema +struct<> +-- !query 3748 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 3749 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3749 schema +struct<> +-- !query 3749 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3750 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 0)) FROM t +-- !query 3750 schema +struct<> +-- !query 3750 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 3751 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 0)) FROM t +-- !query 3751 schema +struct<> +-- !query 3751 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 3752 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 0)) FROM t +-- !query 3752 schema +struct<> +-- !query 3752 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 3753 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 0)) FROM t +-- !query 3753 schema +struct<> +-- !query 3753 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 3754 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 0)) FROM t +-- !query 3754 schema +struct<> +-- !query 3754 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 3755 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3755 schema +struct<> +-- !query 3755 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 3756 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 0)) FROM t +-- !query 3756 schema +struct<> +-- !query 3756 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 3757 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 0)) FROM t +-- !query 3757 schema +struct<> +-- !query 3757 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 3758 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 0)) FROM t +-- !query 3758 schema +struct<> +-- !query 3758 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 3759 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 0)) FROM t +-- !query 3759 schema +struct<> +-- !query 3759 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 3760 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 0)) FROM t +-- !query 3760 schema +struct<> +-- !query 3760 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 0)) FROM t + + +-- !query 3761 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 1)) FROM t +-- !query 3761 schema +struct<> +-- !query 3761 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 3762 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(2, 1)) FROM t +-- !query 3762 schema +struct<> +-- !query 3762 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 3763 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 1)) FROM t +-- !query 3763 schema +struct<> +-- !query 3763 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 3764 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 1)) FROM t +-- !query 3764 schema +struct<> +-- !query 3764 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 3765 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 1)) FROM t +-- !query 3765 schema +struct<> +-- !query 3765 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 3766 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 1)) FROM t +-- !query 3766 schema +struct<> +-- !query 3766 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 3767 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 1)) FROM t +-- !query 3767 schema +struct<> +-- !query 3767 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 3768 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 1)) FROM t +-- !query 3768 schema +struct<> +-- !query 3768 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 3769 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 1)) FROM t +-- !query 3769 schema +struct<> +-- !query 3769 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 3770 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 1)) FROM t +-- !query 3770 schema +struct<> +-- !query 3770 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 3771 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 1)) FROM t +-- !query 3771 schema +struct<> +-- !query 3771 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 3772 +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 1)) FROM t +-- !query 3772 schema +struct<> +-- !query 3772 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 1)) FROM t + + +-- !query 3773 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3773 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> +-- !query 3773 output +true + + +-- !query 3774 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3774 schema +struct<(CAST(1 AS DECIMAL(3,0)) <=> CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> +-- !query 3774 output +true + + +-- !query 3775 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3775 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> +-- !query 3775 output +true + + +-- !query 3776 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3776 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 3776 output +true + + +-- !query 3777 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3777 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> +-- !query 3777 output +true + + +-- !query 3778 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3778 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 3778 output +true + + +-- !query 3779 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3779 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> +-- !query 3779 output +true + + +-- !query 3780 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3780 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 3780 output +true + + +-- !query 3781 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3781 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> +-- !query 3781 output +true + + +-- !query 3782 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3782 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> +-- !query 3782 output +true + + +-- !query 3783 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as tinyint) FROM t +-- !query 3783 schema +struct<> +-- !query 3783 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as tinyint) FROM t + + +-- !query 3784 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3784 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3784 output +false + + +-- !query 3785 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3785 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3785 output +true + + +-- !query 3786 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3786 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3786 output +true + + +-- !query 3787 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3787 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 3787 output +true + + +-- !query 3788 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3788 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> +-- !query 3788 output +true + + +-- !query 3789 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3789 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> +-- !query 3789 output +true + + +-- !query 3790 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3790 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> +-- !query 3790 output +true + + +-- !query 3791 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3791 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> +-- !query 3791 output +true + + +-- !query 3792 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3792 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> +-- !query 3792 output +true + + +-- !query 3793 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3793 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> +-- !query 3793 output +true + + +-- !query 3794 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3794 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> +-- !query 3794 output +true + + +-- !query 3795 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as tinyint) FROM t +-- !query 3795 schema +struct<> +-- !query 3795 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as tinyint) FROM t + + +-- !query 3796 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as smallint) FROM t +-- !query 3796 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3796 output +true + + +-- !query 3797 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as smallint) FROM t +-- !query 3797 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3797 output +true + + +-- !query 3798 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as smallint) FROM t +-- !query 3798 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 3798 output +true + + +-- !query 3799 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as smallint) FROM t +-- !query 3799 schema +struct<(CAST(1 AS DECIMAL(5,0)) <=> CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> +-- !query 3799 output +true + + +-- !query 3800 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as smallint) FROM t +-- !query 3800 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> +-- !query 3800 output +true + + +-- !query 3801 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as smallint) FROM t +-- !query 3801 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 3801 output +true + + +-- !query 3802 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as smallint) FROM t +-- !query 3802 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> +-- !query 3802 output +true + + +-- !query 3803 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as smallint) FROM t +-- !query 3803 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 3803 output +true + + +-- !query 3804 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as smallint) FROM t +-- !query 3804 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> +-- !query 3804 output +true + + +-- !query 3805 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as smallint) FROM t +-- !query 3805 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> +-- !query 3805 output +true + + +-- !query 3806 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as smallint) FROM t +-- !query 3806 schema +struct<> +-- !query 3806 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as smallint) FROM t + + +-- !query 3807 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as smallint) FROM t +-- !query 3807 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3807 output +false + + +-- !query 3808 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as smallint) FROM t +-- !query 3808 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3808 output +true + + +-- !query 3809 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as smallint) FROM t +-- !query 3809 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3809 output +true + + +-- !query 3810 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as smallint) FROM t +-- !query 3810 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3810 output +true + + +-- !query 3811 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as smallint) FROM t +-- !query 3811 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3811 output +true + + +-- !query 3812 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as smallint) FROM t +-- !query 3812 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 3812 output +true + + +-- !query 3813 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as smallint) FROM t +-- !query 3813 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> +-- !query 3813 output +true + + +-- !query 3814 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as smallint) FROM t +-- !query 3814 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> +-- !query 3814 output +true + + +-- !query 3815 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as smallint) FROM t +-- !query 3815 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> +-- !query 3815 output +true + + +-- !query 3816 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as smallint) FROM t +-- !query 3816 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> +-- !query 3816 output +true + + +-- !query 3817 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as smallint) FROM t +-- !query 3817 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> +-- !query 3817 output +true + + +-- !query 3818 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as smallint) FROM t +-- !query 3818 schema +struct<> +-- !query 3818 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as smallint) FROM t + + +-- !query 3819 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as int) FROM t +-- !query 3819 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3819 output +true + + +-- !query 3820 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as int) FROM t +-- !query 3820 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3820 output +true + + +-- !query 3821 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as int) FROM t +-- !query 3821 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3821 output +true + + +-- !query 3822 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as int) FROM t +-- !query 3822 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3822 output +true + + +-- !query 3823 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as int) FROM t +-- !query 3823 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3823 output +true + + +-- !query 3824 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as int) FROM t +-- !query 3824 schema +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> +-- !query 3824 output +true + + +-- !query 3825 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as int) FROM t +-- !query 3825 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 3825 output +true + + +-- !query 3826 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as int) FROM t +-- !query 3826 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 3826 output +true + + +-- !query 3827 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as int) FROM t +-- !query 3827 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 3827 output +true + + +-- !query 3828 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as int) FROM t +-- !query 3828 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 3828 output +true + + +-- !query 3829 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as int) FROM t +-- !query 3829 schema +struct<> +-- !query 3829 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as int) FROM t + + +-- !query 3830 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as int) FROM t +-- !query 3830 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3830 output +false + + +-- !query 3831 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as int) FROM t +-- !query 3831 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3831 output +true + + +-- !query 3832 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as int) FROM t +-- !query 3832 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3832 output +true + + +-- !query 3833 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as int) FROM t +-- !query 3833 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3833 output +true + + +-- !query 3834 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as int) FROM t +-- !query 3834 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3834 output +true + + +-- !query 3835 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as int) FROM t +-- !query 3835 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3835 output +true + + +-- !query 3836 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as int) FROM t +-- !query 3836 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3836 output +true + + +-- !query 3837 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as int) FROM t +-- !query 3837 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3837 output +true + + +-- !query 3838 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as int) FROM t +-- !query 3838 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 3838 output +true + + +-- !query 3839 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as int) FROM t +-- !query 3839 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 3839 output +true + + +-- !query 3840 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as int) FROM t +-- !query 3840 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 3840 output +true + + +-- !query 3841 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as int) FROM t +-- !query 3841 schema +struct<> +-- !query 3841 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as int) FROM t + + +-- !query 3842 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as bigint) FROM t +-- !query 3842 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3842 output +true + + +-- !query 3843 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as bigint) FROM t +-- !query 3843 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3843 output +true + + +-- !query 3844 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as bigint) FROM t +-- !query 3844 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3844 output +true + + +-- !query 3845 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as bigint) FROM t +-- !query 3845 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3845 output +true + + +-- !query 3846 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as bigint) FROM t +-- !query 3846 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3846 output +true + + +-- !query 3847 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as bigint) FROM t +-- !query 3847 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3847 output +true + + +-- !query 3848 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as bigint) FROM t +-- !query 3848 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 3848 output +true + + +-- !query 3849 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as bigint) FROM t +-- !query 3849 schema +struct<(CAST(1 AS DECIMAL(20,0)) <=> CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> +-- !query 3849 output +true + + +-- !query 3850 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as bigint) FROM t +-- !query 3850 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> +-- !query 3850 output +true + + +-- !query 3851 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as bigint) FROM t +-- !query 3851 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> +-- !query 3851 output +true + + +-- !query 3852 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as bigint) FROM t +-- !query 3852 schema +struct<> +-- !query 3852 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as bigint) FROM t + + +-- !query 3853 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as bigint) FROM t +-- !query 3853 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3853 output +false + + +-- !query 3854 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as bigint) FROM t +-- !query 3854 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3854 output +true + + +-- !query 3855 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as bigint) FROM t +-- !query 3855 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3855 output +true + + +-- !query 3856 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as bigint) FROM t +-- !query 3856 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3856 output +true + + +-- !query 3857 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as bigint) FROM t +-- !query 3857 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3857 output +true + + +-- !query 3858 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as bigint) FROM t +-- !query 3858 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3858 output +true + + +-- !query 3859 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as bigint) FROM t +-- !query 3859 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3859 output +true + + +-- !query 3860 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as bigint) FROM t +-- !query 3860 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3860 output +true + + +-- !query 3861 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as bigint) FROM t +-- !query 3861 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3861 output +true + + +-- !query 3862 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as bigint) FROM t +-- !query 3862 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 3862 output +true + + +-- !query 3863 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as bigint) FROM t +-- !query 3863 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> +-- !query 3863 output +true + + +-- !query 3864 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as bigint) FROM t +-- !query 3864 schema +struct<> +-- !query 3864 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as bigint) FROM t + + +-- !query 3865 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as float) FROM t +-- !query 3865 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3865 output +true + + +-- !query 3866 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as float) FROM t +-- !query 3866 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3866 output +true + + +-- !query 3867 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as float) FROM t +-- !query 3867 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3867 output +true + + +-- !query 3868 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as float) FROM t +-- !query 3868 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3868 output +true + + +-- !query 3869 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as float) FROM t +-- !query 3869 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3869 output +true + + +-- !query 3870 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as float) FROM t +-- !query 3870 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3870 output +true + + +-- !query 3871 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as float) FROM t +-- !query 3871 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3871 output +true + + +-- !query 3872 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as float) FROM t +-- !query 3872 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3872 output +true + + +-- !query 3873 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as float) FROM t +-- !query 3873 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3873 output +true + + +-- !query 3874 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as float) FROM t +-- !query 3874 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3874 output +true + + +-- !query 3875 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as float) FROM t +-- !query 3875 schema +struct<> +-- !query 3875 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as float) FROM t + + +-- !query 3876 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as float) FROM t +-- !query 3876 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3876 output +false + + +-- !query 3877 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as float) FROM t +-- !query 3877 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3877 output +true + + +-- !query 3878 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as float) FROM t +-- !query 3878 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3878 output +true + + +-- !query 3879 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as float) FROM t +-- !query 3879 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3879 output +true + + +-- !query 3880 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as float) FROM t +-- !query 3880 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3880 output +true + + +-- !query 3881 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as float) FROM t +-- !query 3881 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3881 output +true + + +-- !query 3882 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as float) FROM t +-- !query 3882 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3882 output +true + + +-- !query 3883 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as float) FROM t +-- !query 3883 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3883 output +true + + +-- !query 3884 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as float) FROM t +-- !query 3884 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3884 output +true + + +-- !query 3885 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as float) FROM t +-- !query 3885 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3885 output +true + + +-- !query 3886 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as float) FROM t +-- !query 3886 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 3886 output +true + + +-- !query 3887 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as float) FROM t +-- !query 3887 schema +struct<> +-- !query 3887 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as float) FROM t + + +-- !query 3888 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as double) FROM t +-- !query 3888 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3888 output +true + + +-- !query 3889 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as double) FROM t +-- !query 3889 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3889 output +true + + +-- !query 3890 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as double) FROM t +-- !query 3890 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3890 output +true + + +-- !query 3891 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as double) FROM t +-- !query 3891 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3891 output +true + + +-- !query 3892 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as double) FROM t +-- !query 3892 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3892 output +true + + +-- !query 3893 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as double) FROM t +-- !query 3893 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3893 output +true + + +-- !query 3894 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as double) FROM t +-- !query 3894 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3894 output +true + + +-- !query 3895 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as double) FROM t +-- !query 3895 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3895 output +true + + +-- !query 3896 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as double) FROM t +-- !query 3896 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3896 output +true + + +-- !query 3897 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as double) FROM t +-- !query 3897 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3897 output +true + + +-- !query 3898 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as double) FROM t +-- !query 3898 schema +struct<> +-- !query 3898 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as double) FROM t + + +-- !query 3899 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as double) FROM t +-- !query 3899 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3899 output +false + + +-- !query 3900 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as double) FROM t +-- !query 3900 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3900 output +true + + +-- !query 3901 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as double) FROM t +-- !query 3901 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3901 output +true + + +-- !query 3902 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as double) FROM t +-- !query 3902 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3902 output +true + + +-- !query 3903 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as double) FROM t +-- !query 3903 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3903 output +true + + +-- !query 3904 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as double) FROM t +-- !query 3904 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3904 output +true + + +-- !query 3905 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as double) FROM t +-- !query 3905 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3905 output +true + + +-- !query 3906 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as double) FROM t +-- !query 3906 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3906 output +true + + +-- !query 3907 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as double) FROM t +-- !query 3907 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3907 output +true + + +-- !query 3908 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as double) FROM t +-- !query 3908 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3908 output +true + + +-- !query 3909 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as double) FROM t +-- !query 3909 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> +-- !query 3909 output +true + + +-- !query 3910 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as double) FROM t +-- !query 3910 schema +struct<> +-- !query 3910 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as double) FROM t + + +-- !query 3911 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3911 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3911 output +true + + +-- !query 3912 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3912 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3912 output +true + + +-- !query 3913 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3913 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3913 output +true + + +-- !query 3914 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3914 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3914 output +true + + +-- !query 3915 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3915 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 3915 output +true + + +-- !query 3916 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3916 schema +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 3916 output +true + + +-- !query 3917 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3917 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 3917 output +true + + +-- !query 3918 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3918 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 3918 output +true + + +-- !query 3919 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3919 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 3919 output +true + + +-- !query 3920 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3920 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 3920 output +true + + +-- !query 3921 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3921 schema +struct<> +-- !query 3921 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as decimal(10, 0)) FROM t + + +-- !query 3922 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3922 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3922 output +false + + +-- !query 3923 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3923 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3923 output +true + + +-- !query 3924 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3924 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3924 output +true + + +-- !query 3925 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3925 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3925 output +true + + +-- !query 3926 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3926 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3926 output +true + + +-- !query 3927 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3927 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3927 output +true + + +-- !query 3928 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3928 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3928 output +true + + +-- !query 3929 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3929 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 3929 output +true + + +-- !query 3930 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3930 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 3930 output +true + + +-- !query 3931 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3931 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 3931 output +true + + +-- !query 3932 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3932 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 3932 output +true + + +-- !query 3933 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as decimal(10, 0)) FROM t +-- !query 3933 schema +struct<> +-- !query 3933 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as decimal(10, 0)) FROM t + + +-- !query 3934 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as string) FROM t +-- !query 3934 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3934 output +true + + +-- !query 3935 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as string) FROM t +-- !query 3935 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3935 output +true + + +-- !query 3936 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as string) FROM t +-- !query 3936 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3936 output +true + + +-- !query 3937 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as string) FROM t +-- !query 3937 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3937 output +true + + +-- !query 3938 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as string) FROM t +-- !query 3938 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3938 output +true + + +-- !query 3939 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as string) FROM t +-- !query 3939 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3939 output +true + + +-- !query 3940 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as string) FROM t +-- !query 3940 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3940 output +true + + +-- !query 3941 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as string) FROM t +-- !query 3941 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3941 output +true + + +-- !query 3942 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as string) FROM t +-- !query 3942 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3942 output +true + + +-- !query 3943 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as string) FROM t +-- !query 3943 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3943 output +true + + +-- !query 3944 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as string) FROM t +-- !query 3944 schema +struct<> +-- !query 3944 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as string) FROM t + + +-- !query 3945 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as string) FROM t +-- !query 3945 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3945 output +false + + +-- !query 3946 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as string) FROM t +-- !query 3946 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3946 output +true + + +-- !query 3947 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as string) FROM t +-- !query 3947 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3947 output +true + + +-- !query 3948 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as string) FROM t +-- !query 3948 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3948 output +true + + +-- !query 3949 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as string) FROM t +-- !query 3949 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3949 output +true + + +-- !query 3950 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as string) FROM t +-- !query 3950 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3950 output +true + + +-- !query 3951 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as string) FROM t +-- !query 3951 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3951 output +true + + +-- !query 3952 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as string) FROM t +-- !query 3952 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3952 output +true + + +-- !query 3953 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as string) FROM t +-- !query 3953 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3953 output +true + + +-- !query 3954 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as string) FROM t +-- !query 3954 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3954 output +true + + +-- !query 3955 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as string) FROM t +-- !query 3955 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 3955 output +true + + +-- !query 3956 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as string) FROM t +-- !query 3956 schema +struct<> +-- !query 3956 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as string) FROM t + + +-- !query 3957 +SELECT cast(1 as decimal(1, 0)) <=> cast('1' as binary) FROM t +-- !query 3957 schema +struct<> +-- !query 3957 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <=> CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 3958 +SELECT cast(1 as decimal(3, 0)) <=> cast('1' as binary) FROM t +-- !query 3958 schema +struct<> +-- !query 3958 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 3959 +SELECT cast(1 as decimal(4, 0)) <=> cast('1' as binary) FROM t +-- !query 3959 schema +struct<> +-- !query 3959 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <=> CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 3960 +SELECT cast(1 as decimal(5, 0)) <=> cast('1' as binary) FROM t +-- !query 3960 schema +struct<> +-- !query 3960 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 3961 +SELECT cast(1 as decimal(6, 0)) <=> cast('1' as binary) FROM t +-- !query 3961 schema +struct<> +-- !query 3961 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <=> CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 3962 +SELECT cast(1 as decimal(10, 0)) <=> cast('1' as binary) FROM t +-- !query 3962 schema +struct<> +-- !query 3962 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 3963 +SELECT cast(1 as decimal(11, 0)) <=> cast('1' as binary) FROM t +-- !query 3963 schema +struct<> +-- !query 3963 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <=> CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 3964 +SELECT cast(1 as decimal(20, 0)) <=> cast('1' as binary) FROM t +-- !query 3964 schema +struct<> +-- !query 3964 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 3965 +SELECT cast(1 as decimal(21, 0)) <=> cast('1' as binary) FROM t +-- !query 3965 schema +struct<> +-- !query 3965 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <=> CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 3966 +SELECT cast(1 as decimal(38, 0)) <=> cast('1' as binary) FROM t +-- !query 3966 schema +struct<> +-- !query 3966 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <=> CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 3967 +SELECT cast(1 as decimal(39, 0)) <=> cast('1' as binary) FROM t +-- !query 3967 schema +struct<> +-- !query 3967 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast('1' as binary) FROM t + + +-- !query 3968 +SELECT cast(1 as decimal(1, 1)) <=> cast('1' as binary) FROM t +-- !query 3968 schema +struct<> +-- !query 3968 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <=> CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 3969 +SELECT cast(1 as decimal(2, 1)) <=> cast('1' as binary) FROM t +-- !query 3969 schema +struct<> +-- !query 3969 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <=> CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 3970 +SELECT cast(1 as decimal(3, 1)) <=> cast('1' as binary) FROM t +-- !query 3970 schema +struct<> +-- !query 3970 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <=> CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 3971 +SELECT cast(1 as decimal(4, 1)) <=> cast('1' as binary) FROM t +-- !query 3971 schema +struct<> +-- !query 3971 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <=> CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 3972 +SELECT cast(1 as decimal(5, 1)) <=> cast('1' as binary) FROM t +-- !query 3972 schema +struct<> +-- !query 3972 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <=> CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 3973 +SELECT cast(1 as decimal(6, 1)) <=> cast('1' as binary) FROM t +-- !query 3973 schema +struct<> +-- !query 3973 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <=> CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 3974 +SELECT cast(1 as decimal(10, 1)) <=> cast('1' as binary) FROM t +-- !query 3974 schema +struct<> +-- !query 3974 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <=> CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 3975 +SELECT cast(1 as decimal(11, 1)) <=> cast('1' as binary) FROM t +-- !query 3975 schema +struct<> +-- !query 3975 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <=> CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 3976 +SELECT cast(1 as decimal(20, 1)) <=> cast('1' as binary) FROM t +-- !query 3976 schema +struct<> +-- !query 3976 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <=> CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 3977 +SELECT cast(1 as decimal(21, 1)) <=> cast('1' as binary) FROM t +-- !query 3977 schema +struct<> +-- !query 3977 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <=> CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 3978 +SELECT cast(1 as decimal(38, 1)) <=> cast('1' as binary) FROM t +-- !query 3978 schema +struct<> +-- !query 3978 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <=> CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 3979 +SELECT cast(1 as decimal(39, 1)) <=> cast('1' as binary) FROM t +-- !query 3979 schema +struct<> +-- !query 3979 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast('1' as binary) FROM t + + +-- !query 3980 +SELECT cast(1 as decimal(1, 0)) <=> cast(1 as boolean) FROM t +-- !query 3980 schema +struct<(CAST(1 AS DECIMAL(1,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,0))):boolean> +-- !query 3980 output +true + + +-- !query 3981 +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as boolean) FROM t +-- !query 3981 schema +struct<(CAST(1 AS DECIMAL(3,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0))):boolean> +-- !query 3981 output +true + + +-- !query 3982 +SELECT cast(1 as decimal(4, 0)) <=> cast(1 as boolean) FROM t +-- !query 3982 schema +struct<(CAST(1 AS DECIMAL(4,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,0))):boolean> +-- !query 3982 output +true + + +-- !query 3983 +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as boolean) FROM t +-- !query 3983 schema +struct<(CAST(1 AS DECIMAL(5,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0))):boolean> +-- !query 3983 output +true + + +-- !query 3984 +SELECT cast(1 as decimal(6, 0)) <=> cast(1 as boolean) FROM t +-- !query 3984 schema +struct<(CAST(1 AS DECIMAL(6,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,0))):boolean> +-- !query 3984 output +true + + +-- !query 3985 +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as boolean) FROM t +-- !query 3985 schema +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0))):boolean> +-- !query 3985 output +true + + +-- !query 3986 +SELECT cast(1 as decimal(11, 0)) <=> cast(1 as boolean) FROM t +-- !query 3986 schema +struct<(CAST(1 AS DECIMAL(11,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,0))):boolean> +-- !query 3986 output +true + + +-- !query 3987 +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as boolean) FROM t +-- !query 3987 schema +struct<(CAST(1 AS DECIMAL(20,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0))):boolean> +-- !query 3987 output +true + + +-- !query 3988 +SELECT cast(1 as decimal(21, 0)) <=> cast(1 as boolean) FROM t +-- !query 3988 schema +struct<(CAST(1 AS DECIMAL(21,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,0))):boolean> +-- !query 3988 output +true + + +-- !query 3989 +SELECT cast(1 as decimal(38, 0)) <=> cast(1 as boolean) FROM t +-- !query 3989 schema +struct<(CAST(1 AS DECIMAL(38,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,0))):boolean> +-- !query 3989 output +true + + +-- !query 3990 +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as boolean) FROM t +-- !query 3990 schema +struct<> +-- !query 3990 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast(1 as boolean) FROM t + + +-- !query 3991 +SELECT cast(1 as decimal(1, 1)) <=> cast(1 as boolean) FROM t +-- !query 3991 schema +struct<(CAST(1 AS DECIMAL(1,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,1))):boolean> +-- !query 3991 output +true + + +-- !query 3992 +SELECT cast(1 as decimal(2, 1)) <=> cast(1 as boolean) FROM t +-- !query 3992 schema +struct<(CAST(1 AS DECIMAL(2,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(2,1))):boolean> +-- !query 3992 output +true + + +-- !query 3993 +SELECT cast(1 as decimal(3, 1)) <=> cast(1 as boolean) FROM t +-- !query 3993 schema +struct<(CAST(1 AS DECIMAL(3,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,1))):boolean> +-- !query 3993 output +true + + +-- !query 3994 +SELECT cast(1 as decimal(4, 1)) <=> cast(1 as boolean) FROM t +-- !query 3994 schema +struct<(CAST(1 AS DECIMAL(4,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,1))):boolean> +-- !query 3994 output +true + + +-- !query 3995 +SELECT cast(1 as decimal(5, 1)) <=> cast(1 as boolean) FROM t +-- !query 3995 schema +struct<(CAST(1 AS DECIMAL(5,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,1))):boolean> +-- !query 3995 output +true + + +-- !query 3996 +SELECT cast(1 as decimal(6, 1)) <=> cast(1 as boolean) FROM t +-- !query 3996 schema +struct<(CAST(1 AS DECIMAL(6,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,1))):boolean> +-- !query 3996 output +true + + +-- !query 3997 +SELECT cast(1 as decimal(10, 1)) <=> cast(1 as boolean) FROM t +-- !query 3997 schema +struct<(CAST(1 AS DECIMAL(10,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,1))):boolean> +-- !query 3997 output +true + + +-- !query 3998 +SELECT cast(1 as decimal(11, 1)) <=> cast(1 as boolean) FROM t +-- !query 3998 schema +struct<(CAST(1 AS DECIMAL(11,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,1))):boolean> +-- !query 3998 output +true + + +-- !query 3999 +SELECT cast(1 as decimal(20, 1)) <=> cast(1 as boolean) FROM t +-- !query 3999 schema +struct<(CAST(1 AS DECIMAL(20,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,1))):boolean> +-- !query 3999 output +true + + +-- !query 4000 +SELECT cast(1 as decimal(21, 1)) <=> cast(1 as boolean) FROM t +-- !query 4000 schema +struct<(CAST(1 AS DECIMAL(21,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,1))):boolean> +-- !query 4000 output +true + + +-- !query 4001 +SELECT cast(1 as decimal(38, 1)) <=> cast(1 as boolean) FROM t +-- !query 4001 schema +struct<(CAST(1 AS DECIMAL(38,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,1))):boolean> +-- !query 4001 output +true + + +-- !query 4002 +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as boolean) FROM t +-- !query 4002 schema +struct<> +-- !query 4002 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast(1 as boolean) FROM t + + +-- !query 4003 +SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4003 schema +struct<> +-- !query 4003 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 4004 +SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4004 schema +struct<> +-- !query 4004 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 4005 +SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4005 schema +struct<> +-- !query 4005 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 4006 +SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4006 schema +struct<> +-- !query 4006 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 4007 +SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4007 schema +struct<> +-- !query 4007 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 4008 +SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4008 schema +struct<> +-- !query 4008 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 4009 +SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4009 schema +struct<> +-- !query 4009 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 4010 +SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4010 schema +struct<> +-- !query 4010 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 4011 +SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4011 schema +struct<> +-- !query 4011 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 4012 +SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4012 schema +struct<> +-- !query 4012 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 4013 +SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4013 schema +struct<> +-- !query 4013 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 4014 +SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4014 schema +struct<> +-- !query 4014 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 4015 +SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4015 schema +struct<> +-- !query 4015 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 4016 +SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4016 schema +struct<> +-- !query 4016 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 4017 +SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4017 schema +struct<> +-- !query 4017 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 4018 +SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4018 schema +struct<> +-- !query 4018 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 4019 +SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4019 schema +struct<> +-- !query 4019 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 4020 +SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4020 schema +struct<> +-- !query 4020 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 4021 +SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4021 schema +struct<> +-- !query 4021 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 4022 +SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4022 schema +struct<> +-- !query 4022 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 4023 +SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4023 schema +struct<> +-- !query 4023 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 4024 +SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4024 schema +struct<> +-- !query 4024 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 4025 +SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4025 schema +struct<> +-- !query 4025 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 4026 +SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4026 schema +struct<> +-- !query 4026 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 4027 +SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4027 schema +struct<> +-- !query 4027 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 4028 +SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4028 schema +struct<> +-- !query 4028 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 4029 +SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4029 schema +struct<> +-- !query 4029 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 4030 +SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4030 schema +struct<> +-- !query 4030 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 4031 +SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4031 schema +struct<> +-- !query 4031 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 4032 +SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4032 schema +struct<> +-- !query 4032 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 4033 +SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4033 schema +struct<> +-- !query 4033 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 4034 +SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4034 schema +struct<> +-- !query 4034 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 4035 +SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4035 schema +struct<> +-- !query 4035 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 4036 +SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4036 schema +struct<> +-- !query 4036 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 4037 +SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4037 schema +struct<> +-- !query 4037 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 4038 +SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4038 schema +struct<> +-- !query 4038 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 4039 +SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4039 schema +struct<> +-- !query 4039 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 4040 +SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4040 schema +struct<> +-- !query 4040 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 4041 +SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4041 schema +struct<> +-- !query 4041 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 4042 +SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4042 schema +struct<> +-- !query 4042 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 4043 +SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4043 schema +struct<> +-- !query 4043 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 4044 +SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4044 schema +struct<> +-- !query 4044 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 4045 +SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4045 schema +struct<> +-- !query 4045 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 4046 +SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4046 schema +struct<> +-- !query 4046 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 4047 +SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4047 schema +struct<> +-- !query 4047 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 4048 +SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4048 schema +struct<> +-- !query 4048 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 4049 +SELECT cast(1 as tinyint) < cast(1 as decimal(1, 0)) FROM t +-- !query 4049 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> +-- !query 4049 output +false + + +-- !query 4050 +SELECT cast(1 as tinyint) < cast(1 as decimal(3, 0)) FROM t +-- !query 4050 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) < CAST(1 AS DECIMAL(3,0))):boolean> +-- !query 4050 output +false + + +-- !query 4051 +SELECT cast(1 as tinyint) < cast(1 as decimal(4, 0)) FROM t +-- !query 4051 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> +-- !query 4051 output +false + + +-- !query 4052 +SELECT cast(1 as tinyint) < cast(1 as decimal(5, 0)) FROM t +-- !query 4052 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4052 output +false + + +-- !query 4053 +SELECT cast(1 as tinyint) < cast(1 as decimal(6, 0)) FROM t +-- !query 4053 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 4053 output +false + + +-- !query 4054 +SELECT cast(1 as tinyint) < cast(1 as decimal(10, 0)) FROM t +-- !query 4054 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4054 output +false + + +-- !query 4055 +SELECT cast(1 as tinyint) < cast(1 as decimal(11, 0)) FROM t +-- !query 4055 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4055 output +false + + +-- !query 4056 +SELECT cast(1 as tinyint) < cast(1 as decimal(20, 0)) FROM t +-- !query 4056 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4056 output +false + + +-- !query 4057 +SELECT cast(1 as tinyint) < cast(1 as decimal(21, 0)) FROM t +-- !query 4057 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4057 output +false + + +-- !query 4058 +SELECT cast(1 as tinyint) < cast(1 as decimal(38, 0)) FROM t +-- !query 4058 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4058 output +false + + +-- !query 4059 +SELECT cast(1 as tinyint) < cast(1 as decimal(39, 0)) FROM t +-- !query 4059 schema +struct<> +-- !query 4059 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4060 +SELECT cast(1 as tinyint) < cast(1 as decimal(1, 1)) FROM t +-- !query 4060 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> +-- !query 4060 output +NULL + + +-- !query 4061 +SELECT cast(1 as tinyint) < cast(1 as decimal(2, 1)) FROM t +-- !query 4061 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> +-- !query 4061 output +false + + +-- !query 4062 +SELECT cast(1 as tinyint) < cast(1 as decimal(3, 1)) FROM t +-- !query 4062 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> +-- !query 4062 output +false + + +-- !query 4063 +SELECT cast(1 as tinyint) < cast(1 as decimal(4, 1)) FROM t +-- !query 4063 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> +-- !query 4063 output +false + + +-- !query 4064 +SELECT cast(1 as tinyint) < cast(1 as decimal(5, 1)) FROM t +-- !query 4064 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> +-- !query 4064 output +false + + +-- !query 4065 +SELECT cast(1 as tinyint) < cast(1 as decimal(6, 1)) FROM t +-- !query 4065 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 4065 output +false + + +-- !query 4066 +SELECT cast(1 as tinyint) < cast(1 as decimal(10, 1)) FROM t +-- !query 4066 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 4066 output +false + + +-- !query 4067 +SELECT cast(1 as tinyint) < cast(1 as decimal(11, 1)) FROM t +-- !query 4067 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4067 output +false + + +-- !query 4068 +SELECT cast(1 as tinyint) < cast(1 as decimal(20, 1)) FROM t +-- !query 4068 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4068 output +false + + +-- !query 4069 +SELECT cast(1 as tinyint) < cast(1 as decimal(21, 1)) FROM t +-- !query 4069 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4069 output +false + + +-- !query 4070 +SELECT cast(1 as tinyint) < cast(1 as decimal(38, 1)) FROM t +-- !query 4070 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4070 output +false + + +-- !query 4071 +SELECT cast(1 as tinyint) < cast(1 as decimal(39, 1)) FROM t +-- !query 4071 schema +struct<> +-- !query 4071 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4072 +SELECT cast(1 as smallint) < cast(1 as decimal(1, 0)) FROM t +-- !query 4072 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> +-- !query 4072 output +false + + +-- !query 4073 +SELECT cast(1 as smallint) < cast(1 as decimal(3, 0)) FROM t +-- !query 4073 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 4073 output +false + + +-- !query 4074 +SELECT cast(1 as smallint) < cast(1 as decimal(4, 0)) FROM t +-- !query 4074 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> +-- !query 4074 output +false + + +-- !query 4075 +SELECT cast(1 as smallint) < cast(1 as decimal(5, 0)) FROM t +-- !query 4075 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) < CAST(1 AS DECIMAL(5,0))):boolean> +-- !query 4075 output +false + + +-- !query 4076 +SELECT cast(1 as smallint) < cast(1 as decimal(6, 0)) FROM t +-- !query 4076 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 4076 output +false + + +-- !query 4077 +SELECT cast(1 as smallint) < cast(1 as decimal(10, 0)) FROM t +-- !query 4077 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4077 output +false + + +-- !query 4078 +SELECT cast(1 as smallint) < cast(1 as decimal(11, 0)) FROM t +-- !query 4078 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4078 output +false + + +-- !query 4079 +SELECT cast(1 as smallint) < cast(1 as decimal(20, 0)) FROM t +-- !query 4079 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4079 output +false + + +-- !query 4080 +SELECT cast(1 as smallint) < cast(1 as decimal(21, 0)) FROM t +-- !query 4080 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4080 output +false + + +-- !query 4081 +SELECT cast(1 as smallint) < cast(1 as decimal(38, 0)) FROM t +-- !query 4081 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4081 output +false + + +-- !query 4082 +SELECT cast(1 as smallint) < cast(1 as decimal(39, 0)) FROM t +-- !query 4082 schema +struct<> +-- !query 4082 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4083 +SELECT cast(1 as smallint) < cast(1 as decimal(1, 1)) FROM t +-- !query 4083 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> +-- !query 4083 output +NULL + + +-- !query 4084 +SELECT cast(1 as smallint) < cast(1 as decimal(2, 1)) FROM t +-- !query 4084 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> +-- !query 4084 output +false + + +-- !query 4085 +SELECT cast(1 as smallint) < cast(1 as decimal(3, 1)) FROM t +-- !query 4085 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> +-- !query 4085 output +false + + +-- !query 4086 +SELECT cast(1 as smallint) < cast(1 as decimal(4, 1)) FROM t +-- !query 4086 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> +-- !query 4086 output +false + + +-- !query 4087 +SELECT cast(1 as smallint) < cast(1 as decimal(5, 1)) FROM t +-- !query 4087 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> +-- !query 4087 output +false + + +-- !query 4088 +SELECT cast(1 as smallint) < cast(1 as decimal(6, 1)) FROM t +-- !query 4088 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 4088 output +false + + +-- !query 4089 +SELECT cast(1 as smallint) < cast(1 as decimal(10, 1)) FROM t +-- !query 4089 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 4089 output +false + + +-- !query 4090 +SELECT cast(1 as smallint) < cast(1 as decimal(11, 1)) FROM t +-- !query 4090 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4090 output +false + + +-- !query 4091 +SELECT cast(1 as smallint) < cast(1 as decimal(20, 1)) FROM t +-- !query 4091 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4091 output +false + + +-- !query 4092 +SELECT cast(1 as smallint) < cast(1 as decimal(21, 1)) FROM t +-- !query 4092 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4092 output +false + + +-- !query 4093 +SELECT cast(1 as smallint) < cast(1 as decimal(38, 1)) FROM t +-- !query 4093 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4093 output +false + + +-- !query 4094 +SELECT cast(1 as smallint) < cast(1 as decimal(39, 1)) FROM t +-- !query 4094 schema +struct<> +-- !query 4094 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4095 +SELECT cast(1 as int) < cast(1 as decimal(1, 0)) FROM t +-- !query 4095 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 4095 output +false + + +-- !query 4096 +SELECT cast(1 as int) < cast(1 as decimal(3, 0)) FROM t +-- !query 4096 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 4096 output +false + + +-- !query 4097 +SELECT cast(1 as int) < cast(1 as decimal(4, 0)) FROM t +-- !query 4097 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 4097 output +false + + +-- !query 4098 +SELECT cast(1 as int) < cast(1 as decimal(5, 0)) FROM t +-- !query 4098 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 4098 output +false + + +-- !query 4099 +SELECT cast(1 as int) < cast(1 as decimal(6, 0)) FROM t +-- !query 4099 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 4099 output +false + + +-- !query 4100 +SELECT cast(1 as int) < cast(1 as decimal(10, 0)) FROM t +-- !query 4100 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 4100 output +false + + +-- !query 4101 +SELECT cast(1 as int) < cast(1 as decimal(11, 0)) FROM t +-- !query 4101 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4101 output +false + + +-- !query 4102 +SELECT cast(1 as int) < cast(1 as decimal(20, 0)) FROM t +-- !query 4102 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4102 output +false + + +-- !query 4103 +SELECT cast(1 as int) < cast(1 as decimal(21, 0)) FROM t +-- !query 4103 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4103 output +false + + +-- !query 4104 +SELECT cast(1 as int) < cast(1 as decimal(38, 0)) FROM t +-- !query 4104 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4104 output +false + + +-- !query 4105 +SELECT cast(1 as int) < cast(1 as decimal(39, 0)) FROM t +-- !query 4105 schema +struct<> +-- !query 4105 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4106 +SELECT cast(1 as int) < cast(1 as decimal(1, 1)) FROM t +-- !query 4106 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 4106 output +NULL + + +-- !query 4107 +SELECT cast(1 as int) < cast(1 as decimal(2, 1)) FROM t +-- !query 4107 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 4107 output +false + + +-- !query 4108 +SELECT cast(1 as int) < cast(1 as decimal(3, 1)) FROM t +-- !query 4108 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 4108 output +false + + +-- !query 4109 +SELECT cast(1 as int) < cast(1 as decimal(4, 1)) FROM t +-- !query 4109 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 4109 output +false + + +-- !query 4110 +SELECT cast(1 as int) < cast(1 as decimal(5, 1)) FROM t +-- !query 4110 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 4110 output +false + + +-- !query 4111 +SELECT cast(1 as int) < cast(1 as decimal(6, 1)) FROM t +-- !query 4111 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 4111 output +false + + +-- !query 4112 +SELECT cast(1 as int) < cast(1 as decimal(10, 1)) FROM t +-- !query 4112 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 4112 output +false + + +-- !query 4113 +SELECT cast(1 as int) < cast(1 as decimal(11, 1)) FROM t +-- !query 4113 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4113 output +false + + +-- !query 4114 +SELECT cast(1 as int) < cast(1 as decimal(20, 1)) FROM t +-- !query 4114 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4114 output +false + + +-- !query 4115 +SELECT cast(1 as int) < cast(1 as decimal(21, 1)) FROM t +-- !query 4115 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4115 output +false + + +-- !query 4116 +SELECT cast(1 as int) < cast(1 as decimal(38, 1)) FROM t +-- !query 4116 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4116 output +false + + +-- !query 4117 +SELECT cast(1 as int) < cast(1 as decimal(39, 1)) FROM t +-- !query 4117 schema +struct<> +-- !query 4117 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4118 +SELECT cast(1 as bigint) < cast(1 as decimal(1, 0)) FROM t +-- !query 4118 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> +-- !query 4118 output +false + + +-- !query 4119 +SELECT cast(1 as bigint) < cast(1 as decimal(3, 0)) FROM t +-- !query 4119 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 4119 output +false + + +-- !query 4120 +SELECT cast(1 as bigint) < cast(1 as decimal(4, 0)) FROM t +-- !query 4120 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> +-- !query 4120 output +false + + +-- !query 4121 +SELECT cast(1 as bigint) < cast(1 as decimal(5, 0)) FROM t +-- !query 4121 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 4121 output +false + + +-- !query 4122 +SELECT cast(1 as bigint) < cast(1 as decimal(6, 0)) FROM t +-- !query 4122 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> +-- !query 4122 output +false + + +-- !query 4123 +SELECT cast(1 as bigint) < cast(1 as decimal(10, 0)) FROM t +-- !query 4123 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 4123 output +false + + +-- !query 4124 +SELECT cast(1 as bigint) < cast(1 as decimal(11, 0)) FROM t +-- !query 4124 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> +-- !query 4124 output +false + + +-- !query 4125 +SELECT cast(1 as bigint) < cast(1 as decimal(20, 0)) FROM t +-- !query 4125 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) < CAST(1 AS DECIMAL(20,0))):boolean> +-- !query 4125 output +false + + +-- !query 4126 +SELECT cast(1 as bigint) < cast(1 as decimal(21, 0)) FROM t +-- !query 4126 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4126 output +false + + +-- !query 4127 +SELECT cast(1 as bigint) < cast(1 as decimal(38, 0)) FROM t +-- !query 4127 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4127 output +false + + +-- !query 4128 +SELECT cast(1 as bigint) < cast(1 as decimal(39, 0)) FROM t +-- !query 4128 schema +struct<> +-- !query 4128 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4129 +SELECT cast(1 as bigint) < cast(1 as decimal(1, 1)) FROM t +-- !query 4129 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> +-- !query 4129 output +NULL + + +-- !query 4130 +SELECT cast(1 as bigint) < cast(1 as decimal(2, 1)) FROM t +-- !query 4130 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> +-- !query 4130 output +false + + +-- !query 4131 +SELECT cast(1 as bigint) < cast(1 as decimal(3, 1)) FROM t +-- !query 4131 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> +-- !query 4131 output +false + + +-- !query 4132 +SELECT cast(1 as bigint) < cast(1 as decimal(4, 1)) FROM t +-- !query 4132 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> +-- !query 4132 output +false + + +-- !query 4133 +SELECT cast(1 as bigint) < cast(1 as decimal(5, 1)) FROM t +-- !query 4133 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> +-- !query 4133 output +false + + +-- !query 4134 +SELECT cast(1 as bigint) < cast(1 as decimal(6, 1)) FROM t +-- !query 4134 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> +-- !query 4134 output +false + + +-- !query 4135 +SELECT cast(1 as bigint) < cast(1 as decimal(10, 1)) FROM t +-- !query 4135 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> +-- !query 4135 output +false + + +-- !query 4136 +SELECT cast(1 as bigint) < cast(1 as decimal(11, 1)) FROM t +-- !query 4136 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> +-- !query 4136 output +false + + +-- !query 4137 +SELECT cast(1 as bigint) < cast(1 as decimal(20, 1)) FROM t +-- !query 4137 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> +-- !query 4137 output +false + + +-- !query 4138 +SELECT cast(1 as bigint) < cast(1 as decimal(21, 1)) FROM t +-- !query 4138 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4138 output +false + + +-- !query 4139 +SELECT cast(1 as bigint) < cast(1 as decimal(38, 1)) FROM t +-- !query 4139 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4139 output +false + + +-- !query 4140 +SELECT cast(1 as bigint) < cast(1 as decimal(39, 1)) FROM t +-- !query 4140 schema +struct<> +-- !query 4140 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4141 +SELECT cast(1 as float) < cast(1 as decimal(1, 0)) FROM t +-- !query 4141 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 4141 output +false + + +-- !query 4142 +SELECT cast(1 as float) < cast(1 as decimal(3, 0)) FROM t +-- !query 4142 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 4142 output +false + + +-- !query 4143 +SELECT cast(1 as float) < cast(1 as decimal(4, 0)) FROM t +-- !query 4143 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 4143 output +false + + +-- !query 4144 +SELECT cast(1 as float) < cast(1 as decimal(5, 0)) FROM t +-- !query 4144 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 4144 output +false + + +-- !query 4145 +SELECT cast(1 as float) < cast(1 as decimal(6, 0)) FROM t +-- !query 4145 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 4145 output +false + + +-- !query 4146 +SELECT cast(1 as float) < cast(1 as decimal(10, 0)) FROM t +-- !query 4146 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 4146 output +false + + +-- !query 4147 +SELECT cast(1 as float) < cast(1 as decimal(11, 0)) FROM t +-- !query 4147 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 4147 output +false + + +-- !query 4148 +SELECT cast(1 as float) < cast(1 as decimal(20, 0)) FROM t +-- !query 4148 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 4148 output +false + + +-- !query 4149 +SELECT cast(1 as float) < cast(1 as decimal(21, 0)) FROM t +-- !query 4149 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 4149 output +false + + +-- !query 4150 +SELECT cast(1 as float) < cast(1 as decimal(38, 0)) FROM t +-- !query 4150 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 4150 output +false + + +-- !query 4151 +SELECT cast(1 as float) < cast(1 as decimal(39, 0)) FROM t +-- !query 4151 schema +struct<> +-- !query 4151 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4152 +SELECT cast(1 as float) < cast(1 as decimal(1, 1)) FROM t +-- !query 4152 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 4152 output +NULL + + +-- !query 4153 +SELECT cast(1 as float) < cast(1 as decimal(2, 1)) FROM t +-- !query 4153 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 4153 output +false + + +-- !query 4154 +SELECT cast(1 as float) < cast(1 as decimal(3, 1)) FROM t +-- !query 4154 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 4154 output +false + + +-- !query 4155 +SELECT cast(1 as float) < cast(1 as decimal(4, 1)) FROM t +-- !query 4155 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 4155 output +false + + +-- !query 4156 +SELECT cast(1 as float) < cast(1 as decimal(5, 1)) FROM t +-- !query 4156 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 4156 output +false + + +-- !query 4157 +SELECT cast(1 as float) < cast(1 as decimal(6, 1)) FROM t +-- !query 4157 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 4157 output +false + + +-- !query 4158 +SELECT cast(1 as float) < cast(1 as decimal(10, 1)) FROM t +-- !query 4158 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 4158 output +false + + +-- !query 4159 +SELECT cast(1 as float) < cast(1 as decimal(11, 1)) FROM t +-- !query 4159 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 4159 output +false + + +-- !query 4160 +SELECT cast(1 as float) < cast(1 as decimal(20, 1)) FROM t +-- !query 4160 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 4160 output +false + + +-- !query 4161 +SELECT cast(1 as float) < cast(1 as decimal(21, 1)) FROM t +-- !query 4161 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 4161 output +false + + +-- !query 4162 +SELECT cast(1 as float) < cast(1 as decimal(38, 1)) FROM t +-- !query 4162 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 4162 output +false + + +-- !query 4163 +SELECT cast(1 as float) < cast(1 as decimal(39, 1)) FROM t +-- !query 4163 schema +struct<> +-- !query 4163 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4164 +SELECT cast(1 as double) < cast(1 as decimal(1, 0)) FROM t +-- !query 4164 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 4164 output +false + + +-- !query 4165 +SELECT cast(1 as double) < cast(1 as decimal(3, 0)) FROM t +-- !query 4165 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 4165 output +false + + +-- !query 4166 +SELECT cast(1 as double) < cast(1 as decimal(4, 0)) FROM t +-- !query 4166 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 4166 output +false + + +-- !query 4167 +SELECT cast(1 as double) < cast(1 as decimal(5, 0)) FROM t +-- !query 4167 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 4167 output +false + + +-- !query 4168 +SELECT cast(1 as double) < cast(1 as decimal(6, 0)) FROM t +-- !query 4168 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 4168 output +false + + +-- !query 4169 +SELECT cast(1 as double) < cast(1 as decimal(10, 0)) FROM t +-- !query 4169 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 4169 output +false + + +-- !query 4170 +SELECT cast(1 as double) < cast(1 as decimal(11, 0)) FROM t +-- !query 4170 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 4170 output +false + + +-- !query 4171 +SELECT cast(1 as double) < cast(1 as decimal(20, 0)) FROM t +-- !query 4171 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 4171 output +false + + +-- !query 4172 +SELECT cast(1 as double) < cast(1 as decimal(21, 0)) FROM t +-- !query 4172 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 4172 output +false + + +-- !query 4173 +SELECT cast(1 as double) < cast(1 as decimal(38, 0)) FROM t +-- !query 4173 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 4173 output +false + + +-- !query 4174 +SELECT cast(1 as double) < cast(1 as decimal(39, 0)) FROM t +-- !query 4174 schema +struct<> +-- !query 4174 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4175 +SELECT cast(1 as double) < cast(1 as decimal(1, 1)) FROM t +-- !query 4175 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 4175 output +NULL + + +-- !query 4176 +SELECT cast(1 as double) < cast(1 as decimal(2, 1)) FROM t +-- !query 4176 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 4176 output +false + + +-- !query 4177 +SELECT cast(1 as double) < cast(1 as decimal(3, 1)) FROM t +-- !query 4177 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 4177 output +false + + +-- !query 4178 +SELECT cast(1 as double) < cast(1 as decimal(4, 1)) FROM t +-- !query 4178 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 4178 output +false + + +-- !query 4179 +SELECT cast(1 as double) < cast(1 as decimal(5, 1)) FROM t +-- !query 4179 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 4179 output +false + + +-- !query 4180 +SELECT cast(1 as double) < cast(1 as decimal(6, 1)) FROM t +-- !query 4180 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 4180 output +false + + +-- !query 4181 +SELECT cast(1 as double) < cast(1 as decimal(10, 1)) FROM t +-- !query 4181 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 4181 output +false + + +-- !query 4182 +SELECT cast(1 as double) < cast(1 as decimal(11, 1)) FROM t +-- !query 4182 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 4182 output +false + + +-- !query 4183 +SELECT cast(1 as double) < cast(1 as decimal(20, 1)) FROM t +-- !query 4183 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 4183 output +false + + +-- !query 4184 +SELECT cast(1 as double) < cast(1 as decimal(21, 1)) FROM t +-- !query 4184 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 4184 output +false + + +-- !query 4185 +SELECT cast(1 as double) < cast(1 as decimal(38, 1)) FROM t +-- !query 4185 schema +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 4185 output +false + + +-- !query 4186 +SELECT cast(1 as double) < cast(1 as decimal(39, 1)) FROM t +-- !query 4186 schema +struct<> +-- !query 4186 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4187 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 0)) FROM t +-- !query 4187 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 4187 output +false + + +-- !query 4188 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 0)) FROM t +-- !query 4188 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 4188 output +false + + +-- !query 4189 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 0)) FROM t +-- !query 4189 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 4189 output +false + + +-- !query 4190 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 0)) FROM t +-- !query 4190 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 4190 output +false + + +-- !query 4191 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 0)) FROM t +-- !query 4191 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 4191 output +false + + +-- !query 4192 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4192 schema +struct<(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 4192 output +false + + +-- !query 4193 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 0)) FROM t +-- !query 4193 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4193 output +false + + +-- !query 4194 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 0)) FROM t +-- !query 4194 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4194 output +false + + +-- !query 4195 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 0)) FROM t +-- !query 4195 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4195 output +false + + +-- !query 4196 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 0)) FROM t +-- !query 4196 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4196 output +false + + +-- !query 4197 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 0)) FROM t +-- !query 4197 schema +struct<> +-- !query 4197 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4198 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 1)) FROM t +-- !query 4198 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 4198 output +NULL + + +-- !query 4199 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(2, 1)) FROM t +-- !query 4199 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 4199 output +false + + +-- !query 4200 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 1)) FROM t +-- !query 4200 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 4200 output +false + + +-- !query 4201 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 1)) FROM t +-- !query 4201 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 4201 output +false + + +-- !query 4202 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 1)) FROM t +-- !query 4202 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 4202 output +false + + +-- !query 4203 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 1)) FROM t +-- !query 4203 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 4203 output +false + + +-- !query 4204 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 1)) FROM t +-- !query 4204 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 4204 output +false + + +-- !query 4205 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 1)) FROM t +-- !query 4205 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4205 output +false + + +-- !query 4206 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 1)) FROM t +-- !query 4206 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4206 output +false + + +-- !query 4207 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 1)) FROM t +-- !query 4207 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4207 output +false + + +-- !query 4208 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 1)) FROM t +-- !query 4208 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4208 output +false + + +-- !query 4209 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 1)) FROM t +-- !query 4209 schema +struct<> +-- !query 4209 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4210 +SELECT cast('1' as binary) < cast(1 as decimal(1, 0)) FROM t +-- !query 4210 schema +struct<> +-- !query 4210 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 4211 +SELECT cast('1' as binary) < cast(1 as decimal(3, 0)) FROM t +-- !query 4211 schema +struct<> +-- !query 4211 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 4212 +SELECT cast('1' as binary) < cast(1 as decimal(4, 0)) FROM t +-- !query 4212 schema +struct<> +-- !query 4212 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 4213 +SELECT cast('1' as binary) < cast(1 as decimal(5, 0)) FROM t +-- !query 4213 schema +struct<> +-- !query 4213 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 4214 +SELECT cast('1' as binary) < cast(1 as decimal(6, 0)) FROM t +-- !query 4214 schema +struct<> +-- !query 4214 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 4215 +SELECT cast('1' as binary) < cast(1 as decimal(10, 0)) FROM t +-- !query 4215 schema +struct<> +-- !query 4215 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 4216 +SELECT cast('1' as binary) < cast(1 as decimal(11, 0)) FROM t +-- !query 4216 schema +struct<> +-- !query 4216 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 4217 +SELECT cast('1' as binary) < cast(1 as decimal(20, 0)) FROM t +-- !query 4217 schema +struct<> +-- !query 4217 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 4218 +SELECT cast('1' as binary) < cast(1 as decimal(21, 0)) FROM t +-- !query 4218 schema +struct<> +-- !query 4218 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 4219 +SELECT cast('1' as binary) < cast(1 as decimal(38, 0)) FROM t +-- !query 4219 schema +struct<> +-- !query 4219 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 4220 +SELECT cast('1' as binary) < cast(1 as decimal(39, 0)) FROM t +-- !query 4220 schema +struct<> +-- !query 4220 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4221 +SELECT cast('1' as binary) < cast(1 as decimal(1, 1)) FROM t +-- !query 4221 schema +struct<> +-- !query 4221 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 4222 +SELECT cast('1' as binary) < cast(1 as decimal(2, 1)) FROM t +-- !query 4222 schema +struct<> +-- !query 4222 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 4223 +SELECT cast('1' as binary) < cast(1 as decimal(3, 1)) FROM t +-- !query 4223 schema +struct<> +-- !query 4223 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 4224 +SELECT cast('1' as binary) < cast(1 as decimal(4, 1)) FROM t +-- !query 4224 schema +struct<> +-- !query 4224 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 4225 +SELECT cast('1' as binary) < cast(1 as decimal(5, 1)) FROM t +-- !query 4225 schema +struct<> +-- !query 4225 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 4226 +SELECT cast('1' as binary) < cast(1 as decimal(6, 1)) FROM t +-- !query 4226 schema +struct<> +-- !query 4226 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 4227 +SELECT cast('1' as binary) < cast(1 as decimal(10, 1)) FROM t +-- !query 4227 schema +struct<> +-- !query 4227 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 4228 +SELECT cast('1' as binary) < cast(1 as decimal(11, 1)) FROM t +-- !query 4228 schema +struct<> +-- !query 4228 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 4229 +SELECT cast('1' as binary) < cast(1 as decimal(20, 1)) FROM t +-- !query 4229 schema +struct<> +-- !query 4229 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 4230 +SELECT cast('1' as binary) < cast(1 as decimal(21, 1)) FROM t +-- !query 4230 schema +struct<> +-- !query 4230 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 4231 +SELECT cast('1' as binary) < cast(1 as decimal(38, 1)) FROM t +-- !query 4231 schema +struct<> +-- !query 4231 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 4232 +SELECT cast('1' as binary) < cast(1 as decimal(39, 1)) FROM t +-- !query 4232 schema +struct<> +-- !query 4232 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4233 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 0)) FROM t +-- !query 4233 schema +struct<> +-- !query 4233 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 4234 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 0)) FROM t +-- !query 4234 schema +struct<> +-- !query 4234 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 4235 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 0)) FROM t +-- !query 4235 schema +struct<> +-- !query 4235 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 4236 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 0)) FROM t +-- !query 4236 schema +struct<> +-- !query 4236 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 4237 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 0)) FROM t +-- !query 4237 schema +struct<> +-- !query 4237 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 4238 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 0)) FROM t +-- !query 4238 schema +struct<> +-- !query 4238 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 4239 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 0)) FROM t +-- !query 4239 schema +struct<> +-- !query 4239 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 4240 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 0)) FROM t +-- !query 4240 schema +struct<> +-- !query 4240 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 4241 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 0)) FROM t +-- !query 4241 schema +struct<> +-- !query 4241 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 4242 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 0)) FROM t +-- !query 4242 schema +struct<> +-- !query 4242 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 4243 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 0)) FROM t +-- !query 4243 schema +struct<> +-- !query 4243 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4244 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 1)) FROM t +-- !query 4244 schema +struct<> +-- !query 4244 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 4245 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(2, 1)) FROM t +-- !query 4245 schema +struct<> +-- !query 4245 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 4246 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 1)) FROM t +-- !query 4246 schema +struct<> +-- !query 4246 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 4247 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 1)) FROM t +-- !query 4247 schema +struct<> +-- !query 4247 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 4248 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 1)) FROM t +-- !query 4248 schema +struct<> +-- !query 4248 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 4249 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 1)) FROM t +-- !query 4249 schema +struct<> +-- !query 4249 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 4250 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 1)) FROM t +-- !query 4250 schema +struct<> +-- !query 4250 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 4251 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 1)) FROM t +-- !query 4251 schema +struct<> +-- !query 4251 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 4252 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 1)) FROM t +-- !query 4252 schema +struct<> +-- !query 4252 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 4253 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 1)) FROM t +-- !query 4253 schema +struct<> +-- !query 4253 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 4254 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 1)) FROM t +-- !query 4254 schema +struct<> +-- !query 4254 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 4255 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 1)) FROM t +-- !query 4255 schema +struct<> +-- !query 4255 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4256 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 0)) FROM t +-- !query 4256 schema +struct<> +-- !query 4256 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 4257 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 0)) FROM t +-- !query 4257 schema +struct<> +-- !query 4257 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 4258 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 0)) FROM t +-- !query 4258 schema +struct<> +-- !query 4258 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 4259 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 0)) FROM t +-- !query 4259 schema +struct<> +-- !query 4259 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 4260 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 0)) FROM t +-- !query 4260 schema +struct<> +-- !query 4260 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 4261 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 0)) FROM t +-- !query 4261 schema +struct<> +-- !query 4261 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 4262 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 0)) FROM t +-- !query 4262 schema +struct<> +-- !query 4262 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 4263 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 0)) FROM t +-- !query 4263 schema +struct<> +-- !query 4263 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 4264 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 0)) FROM t +-- !query 4264 schema +struct<> +-- !query 4264 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 4265 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 0)) FROM t +-- !query 4265 schema +struct<> +-- !query 4265 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 4266 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 0)) FROM t +-- !query 4266 schema +struct<> +-- !query 4266 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 0)) FROM t + + +-- !query 4267 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 1)) FROM t +-- !query 4267 schema +struct<> +-- !query 4267 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 4268 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(2, 1)) FROM t +-- !query 4268 schema +struct<> +-- !query 4268 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 4269 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 1)) FROM t +-- !query 4269 schema +struct<> +-- !query 4269 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 4270 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 1)) FROM t +-- !query 4270 schema +struct<> +-- !query 4270 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 4271 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 1)) FROM t +-- !query 4271 schema +struct<> +-- !query 4271 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 4272 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 1)) FROM t +-- !query 4272 schema +struct<> +-- !query 4272 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 4273 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 1)) FROM t +-- !query 4273 schema +struct<> +-- !query 4273 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 4274 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 1)) FROM t +-- !query 4274 schema +struct<> +-- !query 4274 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 4275 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 1)) FROM t +-- !query 4275 schema +struct<> +-- !query 4275 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 4276 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 1)) FROM t +-- !query 4276 schema +struct<> +-- !query 4276 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 4277 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 1)) FROM t +-- !query 4277 schema +struct<> +-- !query 4277 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 4278 +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 1)) FROM t +-- !query 4278 schema +struct<> +-- !query 4278 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 1)) FROM t + + +-- !query 4279 +SELECT cast(1 as decimal(1, 0)) < cast(1 as tinyint) FROM t +-- !query 4279 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> +-- !query 4279 output +false + + +-- !query 4280 +SELECT cast(1 as decimal(3, 0)) < cast(1 as tinyint) FROM t +-- !query 4280 schema +struct<(CAST(1 AS DECIMAL(3,0)) < CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> +-- !query 4280 output +false + + +-- !query 4281 +SELECT cast(1 as decimal(4, 0)) < cast(1 as tinyint) FROM t +-- !query 4281 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> +-- !query 4281 output +false + + +-- !query 4282 +SELECT cast(1 as decimal(5, 0)) < cast(1 as tinyint) FROM t +-- !query 4282 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 4282 output +false + + +-- !query 4283 +SELECT cast(1 as decimal(6, 0)) < cast(1 as tinyint) FROM t +-- !query 4283 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> +-- !query 4283 output +false + + +-- !query 4284 +SELECT cast(1 as decimal(10, 0)) < cast(1 as tinyint) FROM t +-- !query 4284 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 4284 output +false + + +-- !query 4285 +SELECT cast(1 as decimal(11, 0)) < cast(1 as tinyint) FROM t +-- !query 4285 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> +-- !query 4285 output +false + + +-- !query 4286 +SELECT cast(1 as decimal(20, 0)) < cast(1 as tinyint) FROM t +-- !query 4286 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 4286 output +false + + +-- !query 4287 +SELECT cast(1 as decimal(21, 0)) < cast(1 as tinyint) FROM t +-- !query 4287 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> +-- !query 4287 output +false + + +-- !query 4288 +SELECT cast(1 as decimal(38, 0)) < cast(1 as tinyint) FROM t +-- !query 4288 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> +-- !query 4288 output +false + + +-- !query 4289 +SELECT cast(1 as decimal(39, 0)) < cast(1 as tinyint) FROM t +-- !query 4289 schema +struct<> +-- !query 4289 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as tinyint) FROM t + + +-- !query 4290 +SELECT cast(1 as decimal(1, 1)) < cast(1 as tinyint) FROM t +-- !query 4290 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4290 output +NULL + + +-- !query 4291 +SELECT cast(1 as decimal(2, 1)) < cast(1 as tinyint) FROM t +-- !query 4291 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4291 output +false + + +-- !query 4292 +SELECT cast(1 as decimal(3, 1)) < cast(1 as tinyint) FROM t +-- !query 4292 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4292 output +false + + +-- !query 4293 +SELECT cast(1 as decimal(4, 1)) < cast(1 as tinyint) FROM t +-- !query 4293 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4293 output +false + + +-- !query 4294 +SELECT cast(1 as decimal(5, 1)) < cast(1 as tinyint) FROM t +-- !query 4294 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> +-- !query 4294 output +false + + +-- !query 4295 +SELECT cast(1 as decimal(6, 1)) < cast(1 as tinyint) FROM t +-- !query 4295 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> +-- !query 4295 output +false + + +-- !query 4296 +SELECT cast(1 as decimal(10, 1)) < cast(1 as tinyint) FROM t +-- !query 4296 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> +-- !query 4296 output +false + + +-- !query 4297 +SELECT cast(1 as decimal(11, 1)) < cast(1 as tinyint) FROM t +-- !query 4297 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> +-- !query 4297 output +false + + +-- !query 4298 +SELECT cast(1 as decimal(20, 1)) < cast(1 as tinyint) FROM t +-- !query 4298 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> +-- !query 4298 output +false + + +-- !query 4299 +SELECT cast(1 as decimal(21, 1)) < cast(1 as tinyint) FROM t +-- !query 4299 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> +-- !query 4299 output +false + + +-- !query 4300 +SELECT cast(1 as decimal(38, 1)) < cast(1 as tinyint) FROM t +-- !query 4300 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> +-- !query 4300 output +false + + +-- !query 4301 +SELECT cast(1 as decimal(39, 1)) < cast(1 as tinyint) FROM t +-- !query 4301 schema +struct<> +-- !query 4301 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as tinyint) FROM t + + +-- !query 4302 +SELECT cast(1 as decimal(1, 0)) < cast(1 as smallint) FROM t +-- !query 4302 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4302 output +false + + +-- !query 4303 +SELECT cast(1 as decimal(3, 0)) < cast(1 as smallint) FROM t +-- !query 4303 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4303 output +false + + +-- !query 4304 +SELECT cast(1 as decimal(4, 0)) < cast(1 as smallint) FROM t +-- !query 4304 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4304 output +false + + +-- !query 4305 +SELECT cast(1 as decimal(5, 0)) < cast(1 as smallint) FROM t +-- !query 4305 schema +struct<(CAST(1 AS DECIMAL(5,0)) < CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> +-- !query 4305 output +false + + +-- !query 4306 +SELECT cast(1 as decimal(6, 0)) < cast(1 as smallint) FROM t +-- !query 4306 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> +-- !query 4306 output +false + + +-- !query 4307 +SELECT cast(1 as decimal(10, 0)) < cast(1 as smallint) FROM t +-- !query 4307 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 4307 output +false + + +-- !query 4308 +SELECT cast(1 as decimal(11, 0)) < cast(1 as smallint) FROM t +-- !query 4308 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> +-- !query 4308 output +false + + +-- !query 4309 +SELECT cast(1 as decimal(20, 0)) < cast(1 as smallint) FROM t +-- !query 4309 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 4309 output +false + + +-- !query 4310 +SELECT cast(1 as decimal(21, 0)) < cast(1 as smallint) FROM t +-- !query 4310 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> +-- !query 4310 output +false + + +-- !query 4311 +SELECT cast(1 as decimal(38, 0)) < cast(1 as smallint) FROM t +-- !query 4311 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> +-- !query 4311 output +false + + +-- !query 4312 +SELECT cast(1 as decimal(39, 0)) < cast(1 as smallint) FROM t +-- !query 4312 schema +struct<> +-- !query 4312 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as smallint) FROM t + + +-- !query 4313 +SELECT cast(1 as decimal(1, 1)) < cast(1 as smallint) FROM t +-- !query 4313 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4313 output +NULL + + +-- !query 4314 +SELECT cast(1 as decimal(2, 1)) < cast(1 as smallint) FROM t +-- !query 4314 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4314 output +false + + +-- !query 4315 +SELECT cast(1 as decimal(3, 1)) < cast(1 as smallint) FROM t +-- !query 4315 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4315 output +false + + +-- !query 4316 +SELECT cast(1 as decimal(4, 1)) < cast(1 as smallint) FROM t +-- !query 4316 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4316 output +false + + +-- !query 4317 +SELECT cast(1 as decimal(5, 1)) < cast(1 as smallint) FROM t +-- !query 4317 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4317 output +false + + +-- !query 4318 +SELECT cast(1 as decimal(6, 1)) < cast(1 as smallint) FROM t +-- !query 4318 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4318 output +false + + +-- !query 4319 +SELECT cast(1 as decimal(10, 1)) < cast(1 as smallint) FROM t +-- !query 4319 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> +-- !query 4319 output +false + + +-- !query 4320 +SELECT cast(1 as decimal(11, 1)) < cast(1 as smallint) FROM t +-- !query 4320 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> +-- !query 4320 output +false + + +-- !query 4321 +SELECT cast(1 as decimal(20, 1)) < cast(1 as smallint) FROM t +-- !query 4321 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> +-- !query 4321 output +false + + +-- !query 4322 +SELECT cast(1 as decimal(21, 1)) < cast(1 as smallint) FROM t +-- !query 4322 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> +-- !query 4322 output +false + + +-- !query 4323 +SELECT cast(1 as decimal(38, 1)) < cast(1 as smallint) FROM t +-- !query 4323 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> +-- !query 4323 output +false + + +-- !query 4324 +SELECT cast(1 as decimal(39, 1)) < cast(1 as smallint) FROM t +-- !query 4324 schema +struct<> +-- !query 4324 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as smallint) FROM t + + +-- !query 4325 +SELECT cast(1 as decimal(1, 0)) < cast(1 as int) FROM t +-- !query 4325 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4325 output +false + + +-- !query 4326 +SELECT cast(1 as decimal(3, 0)) < cast(1 as int) FROM t +-- !query 4326 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4326 output +false + + +-- !query 4327 +SELECT cast(1 as decimal(4, 0)) < cast(1 as int) FROM t +-- !query 4327 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4327 output +false + + +-- !query 4328 +SELECT cast(1 as decimal(5, 0)) < cast(1 as int) FROM t +-- !query 4328 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4328 output +false + + +-- !query 4329 +SELECT cast(1 as decimal(6, 0)) < cast(1 as int) FROM t +-- !query 4329 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4329 output +false + + +-- !query 4330 +SELECT cast(1 as decimal(10, 0)) < cast(1 as int) FROM t +-- !query 4330 schema +struct<(CAST(1 AS DECIMAL(10,0)) < CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> +-- !query 4330 output +false + + +-- !query 4331 +SELECT cast(1 as decimal(11, 0)) < cast(1 as int) FROM t +-- !query 4331 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 4331 output +false + + +-- !query 4332 +SELECT cast(1 as decimal(20, 0)) < cast(1 as int) FROM t +-- !query 4332 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 4332 output +false + + +-- !query 4333 +SELECT cast(1 as decimal(21, 0)) < cast(1 as int) FROM t +-- !query 4333 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 4333 output +false + + +-- !query 4334 +SELECT cast(1 as decimal(38, 0)) < cast(1 as int) FROM t +-- !query 4334 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 4334 output +false + + +-- !query 4335 +SELECT cast(1 as decimal(39, 0)) < cast(1 as int) FROM t +-- !query 4335 schema +struct<> +-- !query 4335 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as int) FROM t + + +-- !query 4336 +SELECT cast(1 as decimal(1, 1)) < cast(1 as int) FROM t +-- !query 4336 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4336 output +NULL + + +-- !query 4337 +SELECT cast(1 as decimal(2, 1)) < cast(1 as int) FROM t +-- !query 4337 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4337 output +false + + +-- !query 4338 +SELECT cast(1 as decimal(3, 1)) < cast(1 as int) FROM t +-- !query 4338 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4338 output +false + + +-- !query 4339 +SELECT cast(1 as decimal(4, 1)) < cast(1 as int) FROM t +-- !query 4339 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4339 output +false + + +-- !query 4340 +SELECT cast(1 as decimal(5, 1)) < cast(1 as int) FROM t +-- !query 4340 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4340 output +false + + +-- !query 4341 +SELECT cast(1 as decimal(6, 1)) < cast(1 as int) FROM t +-- !query 4341 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4341 output +false + + +-- !query 4342 +SELECT cast(1 as decimal(10, 1)) < cast(1 as int) FROM t +-- !query 4342 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4342 output +false + + +-- !query 4343 +SELECT cast(1 as decimal(11, 1)) < cast(1 as int) FROM t +-- !query 4343 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4343 output +false + + +-- !query 4344 +SELECT cast(1 as decimal(20, 1)) < cast(1 as int) FROM t +-- !query 4344 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 4344 output +false + + +-- !query 4345 +SELECT cast(1 as decimal(21, 1)) < cast(1 as int) FROM t +-- !query 4345 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 4345 output +false + + +-- !query 4346 +SELECT cast(1 as decimal(38, 1)) < cast(1 as int) FROM t +-- !query 4346 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 4346 output +false + + +-- !query 4347 +SELECT cast(1 as decimal(39, 1)) < cast(1 as int) FROM t +-- !query 4347 schema +struct<> +-- !query 4347 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as int) FROM t + + +-- !query 4348 +SELECT cast(1 as decimal(1, 0)) < cast(1 as bigint) FROM t +-- !query 4348 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4348 output +false + + +-- !query 4349 +SELECT cast(1 as decimal(3, 0)) < cast(1 as bigint) FROM t +-- !query 4349 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4349 output +false + + +-- !query 4350 +SELECT cast(1 as decimal(4, 0)) < cast(1 as bigint) FROM t +-- !query 4350 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4350 output +false + + +-- !query 4351 +SELECT cast(1 as decimal(5, 0)) < cast(1 as bigint) FROM t +-- !query 4351 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4351 output +false + + +-- !query 4352 +SELECT cast(1 as decimal(6, 0)) < cast(1 as bigint) FROM t +-- !query 4352 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4352 output +false + + +-- !query 4353 +SELECT cast(1 as decimal(10, 0)) < cast(1 as bigint) FROM t +-- !query 4353 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4353 output +false + + +-- !query 4354 +SELECT cast(1 as decimal(11, 0)) < cast(1 as bigint) FROM t +-- !query 4354 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4354 output +false + + +-- !query 4355 +SELECT cast(1 as decimal(20, 0)) < cast(1 as bigint) FROM t +-- !query 4355 schema +struct<(CAST(1 AS DECIMAL(20,0)) < CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> +-- !query 4355 output +false + + +-- !query 4356 +SELECT cast(1 as decimal(21, 0)) < cast(1 as bigint) FROM t +-- !query 4356 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> +-- !query 4356 output +false + + +-- !query 4357 +SELECT cast(1 as decimal(38, 0)) < cast(1 as bigint) FROM t +-- !query 4357 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> +-- !query 4357 output +false + + +-- !query 4358 +SELECT cast(1 as decimal(39, 0)) < cast(1 as bigint) FROM t +-- !query 4358 schema +struct<> +-- !query 4358 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as bigint) FROM t + + +-- !query 4359 +SELECT cast(1 as decimal(1, 1)) < cast(1 as bigint) FROM t +-- !query 4359 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4359 output +NULL + + +-- !query 4360 +SELECT cast(1 as decimal(2, 1)) < cast(1 as bigint) FROM t +-- !query 4360 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4360 output +false + + +-- !query 4361 +SELECT cast(1 as decimal(3, 1)) < cast(1 as bigint) FROM t +-- !query 4361 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4361 output +false + + +-- !query 4362 +SELECT cast(1 as decimal(4, 1)) < cast(1 as bigint) FROM t +-- !query 4362 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4362 output +false + + +-- !query 4363 +SELECT cast(1 as decimal(5, 1)) < cast(1 as bigint) FROM t +-- !query 4363 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4363 output +false + + +-- !query 4364 +SELECT cast(1 as decimal(6, 1)) < cast(1 as bigint) FROM t +-- !query 4364 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4364 output +false + + +-- !query 4365 +SELECT cast(1 as decimal(10, 1)) < cast(1 as bigint) FROM t +-- !query 4365 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4365 output +false + + +-- !query 4366 +SELECT cast(1 as decimal(11, 1)) < cast(1 as bigint) FROM t +-- !query 4366 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4366 output +false + + +-- !query 4367 +SELECT cast(1 as decimal(20, 1)) < cast(1 as bigint) FROM t +-- !query 4367 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4367 output +false + + +-- !query 4368 +SELECT cast(1 as decimal(21, 1)) < cast(1 as bigint) FROM t +-- !query 4368 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4368 output +false + + +-- !query 4369 +SELECT cast(1 as decimal(38, 1)) < cast(1 as bigint) FROM t +-- !query 4369 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> +-- !query 4369 output +false + + +-- !query 4370 +SELECT cast(1 as decimal(39, 1)) < cast(1 as bigint) FROM t +-- !query 4370 schema +struct<> +-- !query 4370 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as bigint) FROM t + + +-- !query 4371 +SELECT cast(1 as decimal(1, 0)) < cast(1 as float) FROM t +-- !query 4371 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4371 output +false + + +-- !query 4372 +SELECT cast(1 as decimal(3, 0)) < cast(1 as float) FROM t +-- !query 4372 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4372 output +false + + +-- !query 4373 +SELECT cast(1 as decimal(4, 0)) < cast(1 as float) FROM t +-- !query 4373 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4373 output +false + + +-- !query 4374 +SELECT cast(1 as decimal(5, 0)) < cast(1 as float) FROM t +-- !query 4374 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4374 output +false + + +-- !query 4375 +SELECT cast(1 as decimal(6, 0)) < cast(1 as float) FROM t +-- !query 4375 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4375 output +false + + +-- !query 4376 +SELECT cast(1 as decimal(10, 0)) < cast(1 as float) FROM t +-- !query 4376 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4376 output +false + + +-- !query 4377 +SELECT cast(1 as decimal(11, 0)) < cast(1 as float) FROM t +-- !query 4377 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4377 output +false + + +-- !query 4378 +SELECT cast(1 as decimal(20, 0)) < cast(1 as float) FROM t +-- !query 4378 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4378 output +false + + +-- !query 4379 +SELECT cast(1 as decimal(21, 0)) < cast(1 as float) FROM t +-- !query 4379 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4379 output +false + + +-- !query 4380 +SELECT cast(1 as decimal(38, 0)) < cast(1 as float) FROM t +-- !query 4380 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4380 output +false + + +-- !query 4381 +SELECT cast(1 as decimal(39, 0)) < cast(1 as float) FROM t +-- !query 4381 schema +struct<> +-- !query 4381 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as float) FROM t + + +-- !query 4382 +SELECT cast(1 as decimal(1, 1)) < cast(1 as float) FROM t +-- !query 4382 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4382 output +NULL + + +-- !query 4383 +SELECT cast(1 as decimal(2, 1)) < cast(1 as float) FROM t +-- !query 4383 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4383 output +false + + +-- !query 4384 +SELECT cast(1 as decimal(3, 1)) < cast(1 as float) FROM t +-- !query 4384 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4384 output +false + + +-- !query 4385 +SELECT cast(1 as decimal(4, 1)) < cast(1 as float) FROM t +-- !query 4385 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4385 output +false + + +-- !query 4386 +SELECT cast(1 as decimal(5, 1)) < cast(1 as float) FROM t +-- !query 4386 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4386 output +false + + +-- !query 4387 +SELECT cast(1 as decimal(6, 1)) < cast(1 as float) FROM t +-- !query 4387 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4387 output +false + + +-- !query 4388 +SELECT cast(1 as decimal(10, 1)) < cast(1 as float) FROM t +-- !query 4388 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4388 output +false + + +-- !query 4389 +SELECT cast(1 as decimal(11, 1)) < cast(1 as float) FROM t +-- !query 4389 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4389 output +false + + +-- !query 4390 +SELECT cast(1 as decimal(20, 1)) < cast(1 as float) FROM t +-- !query 4390 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4390 output +false + + +-- !query 4391 +SELECT cast(1 as decimal(21, 1)) < cast(1 as float) FROM t +-- !query 4391 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4391 output +false + + +-- !query 4392 +SELECT cast(1 as decimal(38, 1)) < cast(1 as float) FROM t +-- !query 4392 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4392 output +false + + +-- !query 4393 +SELECT cast(1 as decimal(39, 1)) < cast(1 as float) FROM t +-- !query 4393 schema +struct<> +-- !query 4393 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as float) FROM t + + +-- !query 4394 +SELECT cast(1 as decimal(1, 0)) < cast(1 as double) FROM t +-- !query 4394 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4394 output +false + + +-- !query 4395 +SELECT cast(1 as decimal(3, 0)) < cast(1 as double) FROM t +-- !query 4395 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4395 output +false + + +-- !query 4396 +SELECT cast(1 as decimal(4, 0)) < cast(1 as double) FROM t +-- !query 4396 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4396 output +false + + +-- !query 4397 +SELECT cast(1 as decimal(5, 0)) < cast(1 as double) FROM t +-- !query 4397 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4397 output +false + + +-- !query 4398 +SELECT cast(1 as decimal(6, 0)) < cast(1 as double) FROM t +-- !query 4398 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4398 output +false + + +-- !query 4399 +SELECT cast(1 as decimal(10, 0)) < cast(1 as double) FROM t +-- !query 4399 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4399 output +false + + +-- !query 4400 +SELECT cast(1 as decimal(11, 0)) < cast(1 as double) FROM t +-- !query 4400 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4400 output +false + + +-- !query 4401 +SELECT cast(1 as decimal(20, 0)) < cast(1 as double) FROM t +-- !query 4401 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4401 output +false + + +-- !query 4402 +SELECT cast(1 as decimal(21, 0)) < cast(1 as double) FROM t +-- !query 4402 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4402 output +false + + +-- !query 4403 +SELECT cast(1 as decimal(38, 0)) < cast(1 as double) FROM t +-- !query 4403 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4403 output +false + + +-- !query 4404 +SELECT cast(1 as decimal(39, 0)) < cast(1 as double) FROM t +-- !query 4404 schema +struct<> +-- !query 4404 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as double) FROM t + + +-- !query 4405 +SELECT cast(1 as decimal(1, 1)) < cast(1 as double) FROM t +-- !query 4405 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4405 output +NULL + + +-- !query 4406 +SELECT cast(1 as decimal(2, 1)) < cast(1 as double) FROM t +-- !query 4406 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4406 output +false + + +-- !query 4407 +SELECT cast(1 as decimal(3, 1)) < cast(1 as double) FROM t +-- !query 4407 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4407 output +false + + +-- !query 4408 +SELECT cast(1 as decimal(4, 1)) < cast(1 as double) FROM t +-- !query 4408 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4408 output +false + + +-- !query 4409 +SELECT cast(1 as decimal(5, 1)) < cast(1 as double) FROM t +-- !query 4409 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4409 output +false + + +-- !query 4410 +SELECT cast(1 as decimal(6, 1)) < cast(1 as double) FROM t +-- !query 4410 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4410 output +false + + +-- !query 4411 +SELECT cast(1 as decimal(10, 1)) < cast(1 as double) FROM t +-- !query 4411 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4411 output +false + + +-- !query 4412 +SELECT cast(1 as decimal(11, 1)) < cast(1 as double) FROM t +-- !query 4412 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4412 output +false + + +-- !query 4413 +SELECT cast(1 as decimal(20, 1)) < cast(1 as double) FROM t +-- !query 4413 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4413 output +false + + +-- !query 4414 +SELECT cast(1 as decimal(21, 1)) < cast(1 as double) FROM t +-- !query 4414 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4414 output +false + + +-- !query 4415 +SELECT cast(1 as decimal(38, 1)) < cast(1 as double) FROM t +-- !query 4415 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> +-- !query 4415 output +false + + +-- !query 4416 +SELECT cast(1 as decimal(39, 1)) < cast(1 as double) FROM t +-- !query 4416 schema +struct<> +-- !query 4416 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as double) FROM t + + +-- !query 4417 +SELECT cast(1 as decimal(1, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4417 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4417 output +false + + +-- !query 4418 +SELECT cast(1 as decimal(3, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4418 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4418 output +false + + +-- !query 4419 +SELECT cast(1 as decimal(4, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4419 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4419 output +false + + +-- !query 4420 +SELECT cast(1 as decimal(5, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4420 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4420 output +false + + +-- !query 4421 +SELECT cast(1 as decimal(6, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4421 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4421 output +false + + +-- !query 4422 +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4422 schema +struct<(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 4422 output +false + + +-- !query 4423 +SELECT cast(1 as decimal(11, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4423 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 4423 output +false + + +-- !query 4424 +SELECT cast(1 as decimal(20, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4424 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 4424 output +false + + +-- !query 4425 +SELECT cast(1 as decimal(21, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4425 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 4425 output +false + + +-- !query 4426 +SELECT cast(1 as decimal(38, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4426 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 4426 output +false + + +-- !query 4427 +SELECT cast(1 as decimal(39, 0)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4427 schema +struct<> +-- !query 4427 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as decimal(10, 0)) FROM t + + +-- !query 4428 +SELECT cast(1 as decimal(1, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4428 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4428 output +NULL + + +-- !query 4429 +SELECT cast(1 as decimal(2, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4429 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4429 output +false + + +-- !query 4430 +SELECT cast(1 as decimal(3, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4430 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4430 output +false + + +-- !query 4431 +SELECT cast(1 as decimal(4, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4431 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4431 output +false + + +-- !query 4432 +SELECT cast(1 as decimal(5, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4432 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4432 output +false + + +-- !query 4433 +SELECT cast(1 as decimal(6, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4433 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4433 output +false + + +-- !query 4434 +SELECT cast(1 as decimal(10, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4434 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4434 output +false + + +-- !query 4435 +SELECT cast(1 as decimal(11, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4435 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4435 output +false + + +-- !query 4436 +SELECT cast(1 as decimal(20, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4436 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 4436 output +false + + +-- !query 4437 +SELECT cast(1 as decimal(21, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4437 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 4437 output +false + + +-- !query 4438 +SELECT cast(1 as decimal(38, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4438 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 4438 output +false + + +-- !query 4439 +SELECT cast(1 as decimal(39, 1)) < cast(1 as decimal(10, 0)) FROM t +-- !query 4439 schema +struct<> +-- !query 4439 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as decimal(10, 0)) FROM t + + +-- !query 4440 +SELECT cast(1 as decimal(1, 0)) < cast(1 as string) FROM t +-- !query 4440 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4440 output +false + + +-- !query 4441 +SELECT cast(1 as decimal(3, 0)) < cast(1 as string) FROM t +-- !query 4441 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4441 output +false + + +-- !query 4442 +SELECT cast(1 as decimal(4, 0)) < cast(1 as string) FROM t +-- !query 4442 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4442 output +false + + +-- !query 4443 +SELECT cast(1 as decimal(5, 0)) < cast(1 as string) FROM t +-- !query 4443 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4443 output +false + + +-- !query 4444 +SELECT cast(1 as decimal(6, 0)) < cast(1 as string) FROM t +-- !query 4444 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4444 output +false + + +-- !query 4445 +SELECT cast(1 as decimal(10, 0)) < cast(1 as string) FROM t +-- !query 4445 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4445 output +false + + +-- !query 4446 +SELECT cast(1 as decimal(11, 0)) < cast(1 as string) FROM t +-- !query 4446 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4446 output +false + + +-- !query 4447 +SELECT cast(1 as decimal(20, 0)) < cast(1 as string) FROM t +-- !query 4447 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4447 output +false + + +-- !query 4448 +SELECT cast(1 as decimal(21, 0)) < cast(1 as string) FROM t +-- !query 4448 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4448 output +false + + +-- !query 4449 +SELECT cast(1 as decimal(38, 0)) < cast(1 as string) FROM t +-- !query 4449 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4449 output +false + + +-- !query 4450 +SELECT cast(1 as decimal(39, 0)) < cast(1 as string) FROM t +-- !query 4450 schema +struct<> +-- !query 4450 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as string) FROM t + + +-- !query 4451 +SELECT cast(1 as decimal(1, 1)) < cast(1 as string) FROM t +-- !query 4451 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4451 output +NULL + + +-- !query 4452 +SELECT cast(1 as decimal(2, 1)) < cast(1 as string) FROM t +-- !query 4452 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4452 output +false + + +-- !query 4453 +SELECT cast(1 as decimal(3, 1)) < cast(1 as string) FROM t +-- !query 4453 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4453 output +false + + +-- !query 4454 +SELECT cast(1 as decimal(4, 1)) < cast(1 as string) FROM t +-- !query 4454 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4454 output +false + + +-- !query 4455 +SELECT cast(1 as decimal(5, 1)) < cast(1 as string) FROM t +-- !query 4455 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4455 output +false + + +-- !query 4456 +SELECT cast(1 as decimal(6, 1)) < cast(1 as string) FROM t +-- !query 4456 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4456 output +false + + +-- !query 4457 +SELECT cast(1 as decimal(10, 1)) < cast(1 as string) FROM t +-- !query 4457 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4457 output +false + + +-- !query 4458 +SELECT cast(1 as decimal(11, 1)) < cast(1 as string) FROM t +-- !query 4458 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4458 output +false + + +-- !query 4459 +SELECT cast(1 as decimal(20, 1)) < cast(1 as string) FROM t +-- !query 4459 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4459 output +false + + +-- !query 4460 +SELECT cast(1 as decimal(21, 1)) < cast(1 as string) FROM t +-- !query 4460 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4460 output +false + + +-- !query 4461 +SELECT cast(1 as decimal(38, 1)) < cast(1 as string) FROM t +-- !query 4461 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4461 output +false + + +-- !query 4462 +SELECT cast(1 as decimal(39, 1)) < cast(1 as string) FROM t +-- !query 4462 schema +struct<> +-- !query 4462 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as string) FROM t + + +-- !query 4463 +SELECT cast(1 as decimal(1, 0)) < cast('1' as binary) FROM t +-- !query 4463 schema +struct<> +-- !query 4463 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 4464 +SELECT cast(1 as decimal(3, 0)) < cast('1' as binary) FROM t +-- !query 4464 schema +struct<> +-- !query 4464 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 4465 +SELECT cast(1 as decimal(4, 0)) < cast('1' as binary) FROM t +-- !query 4465 schema +struct<> +-- !query 4465 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 4466 +SELECT cast(1 as decimal(5, 0)) < cast('1' as binary) FROM t +-- !query 4466 schema +struct<> +-- !query 4466 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 4467 +SELECT cast(1 as decimal(6, 0)) < cast('1' as binary) FROM t +-- !query 4467 schema +struct<> +-- !query 4467 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 4468 +SELECT cast(1 as decimal(10, 0)) < cast('1' as binary) FROM t +-- !query 4468 schema +struct<> +-- !query 4468 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 4469 +SELECT cast(1 as decimal(11, 0)) < cast('1' as binary) FROM t +-- !query 4469 schema +struct<> +-- !query 4469 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 4470 +SELECT cast(1 as decimal(20, 0)) < cast('1' as binary) FROM t +-- !query 4470 schema +struct<> +-- !query 4470 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 4471 +SELECT cast(1 as decimal(21, 0)) < cast('1' as binary) FROM t +-- !query 4471 schema +struct<> +-- !query 4471 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 4472 +SELECT cast(1 as decimal(38, 0)) < cast('1' as binary) FROM t +-- !query 4472 schema +struct<> +-- !query 4472 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 4473 +SELECT cast(1 as decimal(39, 0)) < cast('1' as binary) FROM t +-- !query 4473 schema +struct<> +-- !query 4473 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast('1' as binary) FROM t + + +-- !query 4474 +SELECT cast(1 as decimal(1, 1)) < cast('1' as binary) FROM t +-- !query 4474 schema +struct<> +-- !query 4474 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 4475 +SELECT cast(1 as decimal(2, 1)) < cast('1' as binary) FROM t +-- !query 4475 schema +struct<> +-- !query 4475 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 4476 +SELECT cast(1 as decimal(3, 1)) < cast('1' as binary) FROM t +-- !query 4476 schema +struct<> +-- !query 4476 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 4477 +SELECT cast(1 as decimal(4, 1)) < cast('1' as binary) FROM t +-- !query 4477 schema +struct<> +-- !query 4477 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 4478 +SELECT cast(1 as decimal(5, 1)) < cast('1' as binary) FROM t +-- !query 4478 schema +struct<> +-- !query 4478 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 4479 +SELECT cast(1 as decimal(6, 1)) < cast('1' as binary) FROM t +-- !query 4479 schema +struct<> +-- !query 4479 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 4480 +SELECT cast(1 as decimal(10, 1)) < cast('1' as binary) FROM t +-- !query 4480 schema +struct<> +-- !query 4480 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 4481 +SELECT cast(1 as decimal(11, 1)) < cast('1' as binary) FROM t +-- !query 4481 schema +struct<> +-- !query 4481 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 4482 +SELECT cast(1 as decimal(20, 1)) < cast('1' as binary) FROM t +-- !query 4482 schema +struct<> +-- !query 4482 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 4483 +SELECT cast(1 as decimal(21, 1)) < cast('1' as binary) FROM t +-- !query 4483 schema +struct<> +-- !query 4483 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 4484 +SELECT cast(1 as decimal(38, 1)) < cast('1' as binary) FROM t +-- !query 4484 schema +struct<> +-- !query 4484 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 4485 +SELECT cast(1 as decimal(39, 1)) < cast('1' as binary) FROM t +-- !query 4485 schema +struct<> +-- !query 4485 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast('1' as binary) FROM t + + +-- !query 4486 +SELECT cast(1 as decimal(1, 0)) < cast(1 as boolean) FROM t +-- !query 4486 schema +struct<> +-- !query 4486 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 4487 +SELECT cast(1 as decimal(3, 0)) < cast(1 as boolean) FROM t +-- !query 4487 schema +struct<> +-- !query 4487 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 4488 +SELECT cast(1 as decimal(4, 0)) < cast(1 as boolean) FROM t +-- !query 4488 schema +struct<> +-- !query 4488 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 4489 +SELECT cast(1 as decimal(5, 0)) < cast(1 as boolean) FROM t +-- !query 4489 schema +struct<> +-- !query 4489 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 4490 +SELECT cast(1 as decimal(6, 0)) < cast(1 as boolean) FROM t +-- !query 4490 schema +struct<> +-- !query 4490 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 4491 +SELECT cast(1 as decimal(10, 0)) < cast(1 as boolean) FROM t +-- !query 4491 schema +struct<> +-- !query 4491 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 4492 +SELECT cast(1 as decimal(11, 0)) < cast(1 as boolean) FROM t +-- !query 4492 schema +struct<> +-- !query 4492 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 4493 +SELECT cast(1 as decimal(20, 0)) < cast(1 as boolean) FROM t +-- !query 4493 schema +struct<> +-- !query 4493 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 4494 +SELECT cast(1 as decimal(21, 0)) < cast(1 as boolean) FROM t +-- !query 4494 schema +struct<> +-- !query 4494 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 4495 +SELECT cast(1 as decimal(38, 0)) < cast(1 as boolean) FROM t +-- !query 4495 schema +struct<> +-- !query 4495 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 4496 +SELECT cast(1 as decimal(39, 0)) < cast(1 as boolean) FROM t +-- !query 4496 schema +struct<> +-- !query 4496 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast(1 as boolean) FROM t + + +-- !query 4497 +SELECT cast(1 as decimal(1, 1)) < cast(1 as boolean) FROM t +-- !query 4497 schema +struct<> +-- !query 4497 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 4498 +SELECT cast(1 as decimal(2, 1)) < cast(1 as boolean) FROM t +-- !query 4498 schema +struct<> +-- !query 4498 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 4499 +SELECT cast(1 as decimal(3, 1)) < cast(1 as boolean) FROM t +-- !query 4499 schema +struct<> +-- !query 4499 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 4500 +SELECT cast(1 as decimal(4, 1)) < cast(1 as boolean) FROM t +-- !query 4500 schema +struct<> +-- !query 4500 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 4501 +SELECT cast(1 as decimal(5, 1)) < cast(1 as boolean) FROM t +-- !query 4501 schema +struct<> +-- !query 4501 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 4502 +SELECT cast(1 as decimal(6, 1)) < cast(1 as boolean) FROM t +-- !query 4502 schema +struct<> +-- !query 4502 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 4503 +SELECT cast(1 as decimal(10, 1)) < cast(1 as boolean) FROM t +-- !query 4503 schema +struct<> +-- !query 4503 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 4504 +SELECT cast(1 as decimal(11, 1)) < cast(1 as boolean) FROM t +-- !query 4504 schema +struct<> +-- !query 4504 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 4505 +SELECT cast(1 as decimal(20, 1)) < cast(1 as boolean) FROM t +-- !query 4505 schema +struct<> +-- !query 4505 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 4506 +SELECT cast(1 as decimal(21, 1)) < cast(1 as boolean) FROM t +-- !query 4506 schema +struct<> +-- !query 4506 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 4507 +SELECT cast(1 as decimal(38, 1)) < cast(1 as boolean) FROM t +-- !query 4507 schema +struct<> +-- !query 4507 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 4508 +SELECT cast(1 as decimal(39, 1)) < cast(1 as boolean) FROM t +-- !query 4508 schema +struct<> +-- !query 4508 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast(1 as boolean) FROM t + + +-- !query 4509 +SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4509 schema +struct<> +-- !query 4509 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 4510 +SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4510 schema +struct<> +-- !query 4510 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 4511 +SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4511 schema +struct<> +-- !query 4511 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 4512 +SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4512 schema +struct<> +-- !query 4512 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 4513 +SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4513 schema +struct<> +-- !query 4513 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 4514 +SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4514 schema +struct<> +-- !query 4514 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 4515 +SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4515 schema +struct<> +-- !query 4515 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 4516 +SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4516 schema +struct<> +-- !query 4516 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 4517 +SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4517 schema +struct<> +-- !query 4517 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 4518 +SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4518 schema +struct<> +-- !query 4518 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 4519 +SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4519 schema +struct<> +-- !query 4519 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 4520 +SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4520 schema +struct<> +-- !query 4520 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 4521 +SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4521 schema +struct<> +-- !query 4521 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 4522 +SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4522 schema +struct<> +-- !query 4522 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 4523 +SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4523 schema +struct<> +-- !query 4523 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 4524 +SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4524 schema +struct<> +-- !query 4524 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 4525 +SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4525 schema +struct<> +-- !query 4525 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 4526 +SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4526 schema +struct<> +-- !query 4526 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 4527 +SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4527 schema +struct<> +-- !query 4527 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 4528 +SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4528 schema +struct<> +-- !query 4528 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 4529 +SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4529 schema +struct<> +-- !query 4529 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 4530 +SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4530 schema +struct<> +-- !query 4530 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 4531 +SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 4531 schema +struct<> +-- !query 4531 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 4532 +SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4532 schema +struct<> +-- !query 4532 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 4533 +SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4533 schema +struct<> +-- !query 4533 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 4534 +SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4534 schema +struct<> +-- !query 4534 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 4535 +SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4535 schema +struct<> +-- !query 4535 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 4536 +SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4536 schema +struct<> +-- !query 4536 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 4537 +SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4537 schema +struct<> +-- !query 4537 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 4538 +SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4538 schema +struct<> +-- !query 4538 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 4539 +SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4539 schema +struct<> +-- !query 4539 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 4540 +SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4540 schema +struct<> +-- !query 4540 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 4541 +SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4541 schema +struct<> +-- !query 4541 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 4542 +SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4542 schema +struct<> +-- !query 4542 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 4543 +SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4543 schema +struct<> +-- !query 4543 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 4544 +SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4544 schema +struct<> +-- !query 4544 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 4545 +SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4545 schema +struct<> +-- !query 4545 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 4546 +SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4546 schema +struct<> +-- !query 4546 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 4547 +SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4547 schema +struct<> +-- !query 4547 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 4548 +SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4548 schema +struct<> +-- !query 4548 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 4549 +SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4549 schema +struct<> +-- !query 4549 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 4550 +SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4550 schema +struct<> +-- !query 4550 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 4551 +SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4551 schema +struct<> +-- !query 4551 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 4552 +SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4552 schema +struct<> +-- !query 4552 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 4553 +SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4553 schema +struct<> +-- !query 4553 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 4554 +SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00' as date) FROM t +-- !query 4554 schema +struct<> +-- !query 4554 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 4555 +SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4555 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> +-- !query 4555 output +true + + +-- !query 4556 +SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4556 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) <= CAST(1 AS DECIMAL(3,0))):boolean> +-- !query 4556 output +true + + +-- !query 4557 +SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4557 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> +-- !query 4557 output +true + + +-- !query 4558 +SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4558 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4558 output +true + + +-- !query 4559 +SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4559 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 4559 output +true + + +-- !query 4560 +SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4560 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4560 output +true + + +-- !query 4561 +SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4561 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4561 output +true + + +-- !query 4562 +SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4562 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4562 output +true + + +-- !query 4563 +SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4563 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4563 output +true + + +-- !query 4564 +SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4564 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4564 output +true + + +-- !query 4565 +SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4565 schema +struct<> +-- !query 4565 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4566 +SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4566 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> +-- !query 4566 output +NULL + + +-- !query 4567 +SELECT cast(1 as tinyint) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4567 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> +-- !query 4567 output +true + + +-- !query 4568 +SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4568 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> +-- !query 4568 output +true + + +-- !query 4569 +SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4569 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> +-- !query 4569 output +true + + +-- !query 4570 +SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4570 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> +-- !query 4570 output +true + + +-- !query 4571 +SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4571 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 4571 output +true + + +-- !query 4572 +SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4572 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 4572 output +true + + +-- !query 4573 +SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4573 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4573 output +true + + +-- !query 4574 +SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4574 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4574 output +true + + +-- !query 4575 +SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4575 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4575 output +true + + +-- !query 4576 +SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4576 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4576 output +true + + +-- !query 4577 +SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4577 schema +struct<> +-- !query 4577 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4578 +SELECT cast(1 as smallint) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4578 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> +-- !query 4578 output +true + + +-- !query 4579 +SELECT cast(1 as smallint) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4579 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 4579 output +true + + +-- !query 4580 +SELECT cast(1 as smallint) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4580 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> +-- !query 4580 output +true + + +-- !query 4581 +SELECT cast(1 as smallint) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4581 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) <= CAST(1 AS DECIMAL(5,0))):boolean> +-- !query 4581 output +true + + +-- !query 4582 +SELECT cast(1 as smallint) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4582 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 4582 output +true + + +-- !query 4583 +SELECT cast(1 as smallint) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4583 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4583 output +true + + +-- !query 4584 +SELECT cast(1 as smallint) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4584 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4584 output +true + + +-- !query 4585 +SELECT cast(1 as smallint) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4585 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4585 output +true + + +-- !query 4586 +SELECT cast(1 as smallint) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4586 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4586 output +true + + +-- !query 4587 +SELECT cast(1 as smallint) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4587 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4587 output +true + + +-- !query 4588 +SELECT cast(1 as smallint) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4588 schema +struct<> +-- !query 4588 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4589 +SELECT cast(1 as smallint) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4589 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> +-- !query 4589 output +NULL + + +-- !query 4590 +SELECT cast(1 as smallint) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4590 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> +-- !query 4590 output +true + + +-- !query 4591 +SELECT cast(1 as smallint) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4591 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> +-- !query 4591 output +true + + +-- !query 4592 +SELECT cast(1 as smallint) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4592 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> +-- !query 4592 output +true + + +-- !query 4593 +SELECT cast(1 as smallint) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4593 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> +-- !query 4593 output +true + + +-- !query 4594 +SELECT cast(1 as smallint) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4594 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 4594 output +true + + +-- !query 4595 +SELECT cast(1 as smallint) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4595 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 4595 output +true + + +-- !query 4596 +SELECT cast(1 as smallint) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4596 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4596 output +true + + +-- !query 4597 +SELECT cast(1 as smallint) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4597 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4597 output +true + + +-- !query 4598 +SELECT cast(1 as smallint) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4598 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4598 output +true + + +-- !query 4599 +SELECT cast(1 as smallint) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4599 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4599 output +true + + +-- !query 4600 +SELECT cast(1 as smallint) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4600 schema +struct<> +-- !query 4600 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4601 +SELECT cast(1 as int) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4601 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 4601 output +true + + +-- !query 4602 +SELECT cast(1 as int) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4602 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 4602 output +true + + +-- !query 4603 +SELECT cast(1 as int) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4603 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 4603 output +true + + +-- !query 4604 +SELECT cast(1 as int) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4604 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 4604 output +true + + +-- !query 4605 +SELECT cast(1 as int) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4605 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 4605 output +true + + +-- !query 4606 +SELECT cast(1 as int) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4606 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 4606 output +true + + +-- !query 4607 +SELECT cast(1 as int) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4607 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4607 output +true + + +-- !query 4608 +SELECT cast(1 as int) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4608 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4608 output +true + + +-- !query 4609 +SELECT cast(1 as int) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4609 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4609 output +true + + +-- !query 4610 +SELECT cast(1 as int) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4610 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4610 output +true + + +-- !query 4611 +SELECT cast(1 as int) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4611 schema +struct<> +-- !query 4611 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4612 +SELECT cast(1 as int) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4612 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 4612 output +NULL + + +-- !query 4613 +SELECT cast(1 as int) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4613 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 4613 output +true + + +-- !query 4614 +SELECT cast(1 as int) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4614 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 4614 output +true + + +-- !query 4615 +SELECT cast(1 as int) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4615 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 4615 output +true + + +-- !query 4616 +SELECT cast(1 as int) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4616 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 4616 output +true + + +-- !query 4617 +SELECT cast(1 as int) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4617 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 4617 output +true + + +-- !query 4618 +SELECT cast(1 as int) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4618 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 4618 output +true + + +-- !query 4619 +SELECT cast(1 as int) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4619 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4619 output +true + + +-- !query 4620 +SELECT cast(1 as int) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4620 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4620 output +true + + +-- !query 4621 +SELECT cast(1 as int) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4621 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4621 output +true + + +-- !query 4622 +SELECT cast(1 as int) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4622 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4622 output +true + + +-- !query 4623 +SELECT cast(1 as int) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4623 schema +struct<> +-- !query 4623 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4624 +SELECT cast(1 as bigint) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4624 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> +-- !query 4624 output +true + + +-- !query 4625 +SELECT cast(1 as bigint) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4625 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 4625 output +true + + +-- !query 4626 +SELECT cast(1 as bigint) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4626 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> +-- !query 4626 output +true + + +-- !query 4627 +SELECT cast(1 as bigint) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4627 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 4627 output +true + + +-- !query 4628 +SELECT cast(1 as bigint) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4628 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> +-- !query 4628 output +true + + +-- !query 4629 +SELECT cast(1 as bigint) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4629 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 4629 output +true + + +-- !query 4630 +SELECT cast(1 as bigint) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4630 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> +-- !query 4630 output +true + + +-- !query 4631 +SELECT cast(1 as bigint) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4631 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) <= CAST(1 AS DECIMAL(20,0))):boolean> +-- !query 4631 output +true + + +-- !query 4632 +SELECT cast(1 as bigint) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4632 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4632 output +true + + +-- !query 4633 +SELECT cast(1 as bigint) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4633 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4633 output +true + + +-- !query 4634 +SELECT cast(1 as bigint) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4634 schema +struct<> +-- !query 4634 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4635 +SELECT cast(1 as bigint) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4635 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> +-- !query 4635 output +NULL + + +-- !query 4636 +SELECT cast(1 as bigint) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4636 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> +-- !query 4636 output +true + + +-- !query 4637 +SELECT cast(1 as bigint) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4637 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> +-- !query 4637 output +true + + +-- !query 4638 +SELECT cast(1 as bigint) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4638 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> +-- !query 4638 output +true + + +-- !query 4639 +SELECT cast(1 as bigint) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4639 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> +-- !query 4639 output +true + + +-- !query 4640 +SELECT cast(1 as bigint) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4640 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> +-- !query 4640 output +true + + +-- !query 4641 +SELECT cast(1 as bigint) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4641 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> +-- !query 4641 output +true + + +-- !query 4642 +SELECT cast(1 as bigint) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4642 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> +-- !query 4642 output +true + + +-- !query 4643 +SELECT cast(1 as bigint) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4643 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> +-- !query 4643 output +true + + +-- !query 4644 +SELECT cast(1 as bigint) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4644 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4644 output +true + + +-- !query 4645 +SELECT cast(1 as bigint) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4645 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4645 output +true + + +-- !query 4646 +SELECT cast(1 as bigint) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4646 schema +struct<> +-- !query 4646 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4647 +SELECT cast(1 as float) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4647 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 4647 output +true + + +-- !query 4648 +SELECT cast(1 as float) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4648 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 4648 output +true + + +-- !query 4649 +SELECT cast(1 as float) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4649 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 4649 output +true + + +-- !query 4650 +SELECT cast(1 as float) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4650 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 4650 output +true + + +-- !query 4651 +SELECT cast(1 as float) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4651 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 4651 output +true + + +-- !query 4652 +SELECT cast(1 as float) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4652 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 4652 output +true + + +-- !query 4653 +SELECT cast(1 as float) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4653 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 4653 output +true + + +-- !query 4654 +SELECT cast(1 as float) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4654 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 4654 output +true + + +-- !query 4655 +SELECT cast(1 as float) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4655 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 4655 output +true + + +-- !query 4656 +SELECT cast(1 as float) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4656 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 4656 output +true + + +-- !query 4657 +SELECT cast(1 as float) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4657 schema +struct<> +-- !query 4657 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4658 +SELECT cast(1 as float) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4658 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 4658 output +NULL + + +-- !query 4659 +SELECT cast(1 as float) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4659 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 4659 output +true + + +-- !query 4660 +SELECT cast(1 as float) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4660 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 4660 output +true + + +-- !query 4661 +SELECT cast(1 as float) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4661 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 4661 output +true + + +-- !query 4662 +SELECT cast(1 as float) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4662 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 4662 output +true + + +-- !query 4663 +SELECT cast(1 as float) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4663 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 4663 output +true + + +-- !query 4664 +SELECT cast(1 as float) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4664 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 4664 output +true + + +-- !query 4665 +SELECT cast(1 as float) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4665 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 4665 output +true + + +-- !query 4666 +SELECT cast(1 as float) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4666 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 4666 output +true + + +-- !query 4667 +SELECT cast(1 as float) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4667 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 4667 output +true + + +-- !query 4668 +SELECT cast(1 as float) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4668 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 4668 output +true + + +-- !query 4669 +SELECT cast(1 as float) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4669 schema +struct<> +-- !query 4669 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4670 +SELECT cast(1 as double) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4670 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 4670 output +true + + +-- !query 4671 +SELECT cast(1 as double) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4671 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 4671 output +true + + +-- !query 4672 +SELECT cast(1 as double) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4672 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 4672 output +true + + +-- !query 4673 +SELECT cast(1 as double) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4673 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 4673 output +true + + +-- !query 4674 +SELECT cast(1 as double) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4674 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 4674 output +true + + +-- !query 4675 +SELECT cast(1 as double) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4675 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 4675 output +true + + +-- !query 4676 +SELECT cast(1 as double) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4676 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 4676 output +true + + +-- !query 4677 +SELECT cast(1 as double) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4677 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 4677 output +true + + +-- !query 4678 +SELECT cast(1 as double) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4678 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 4678 output +true + + +-- !query 4679 +SELECT cast(1 as double) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4679 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 4679 output +true + + +-- !query 4680 +SELECT cast(1 as double) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4680 schema +struct<> +-- !query 4680 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4681 +SELECT cast(1 as double) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4681 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 4681 output +NULL + + +-- !query 4682 +SELECT cast(1 as double) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4682 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 4682 output +true + + +-- !query 4683 +SELECT cast(1 as double) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4683 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 4683 output +true + + +-- !query 4684 +SELECT cast(1 as double) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4684 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 4684 output +true + + +-- !query 4685 +SELECT cast(1 as double) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4685 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 4685 output +true + + +-- !query 4686 +SELECT cast(1 as double) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4686 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 4686 output +true + + +-- !query 4687 +SELECT cast(1 as double) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4687 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 4687 output +true + + +-- !query 4688 +SELECT cast(1 as double) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4688 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 4688 output +true + + +-- !query 4689 +SELECT cast(1 as double) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4689 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 4689 output +true + + +-- !query 4690 +SELECT cast(1 as double) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4690 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 4690 output +true + + +-- !query 4691 +SELECT cast(1 as double) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4691 schema +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 4691 output +true + + +-- !query 4692 +SELECT cast(1 as double) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4692 schema +struct<> +-- !query 4692 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4693 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4693 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 4693 output +true + + +-- !query 4694 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4694 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 4694 output +true + + +-- !query 4695 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4695 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 4695 output +true + + +-- !query 4696 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4696 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 4696 output +true + + +-- !query 4697 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4697 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 4697 output +true + + +-- !query 4698 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4698 schema +struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 4698 output +true + + +-- !query 4699 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4699 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 4699 output +true + + +-- !query 4700 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4700 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4700 output +true + + +-- !query 4701 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4701 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 4701 output +true + + +-- !query 4702 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4702 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 4702 output +true + + +-- !query 4703 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4703 schema +struct<> +-- !query 4703 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4704 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4704 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 4704 output +NULL + + +-- !query 4705 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4705 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 4705 output +true + + +-- !query 4706 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4706 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 4706 output +true + + +-- !query 4707 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4707 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 4707 output +true + + +-- !query 4708 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4708 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 4708 output +true + + +-- !query 4709 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4709 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 4709 output +true + + +-- !query 4710 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4710 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 4710 output +true + + +-- !query 4711 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4711 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 4711 output +true + + +-- !query 4712 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4712 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 4712 output +true + + +-- !query 4713 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4713 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 4713 output +true + + +-- !query 4714 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4714 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 4714 output +true + + +-- !query 4715 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4715 schema +struct<> +-- !query 4715 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4716 +SELECT cast('1' as binary) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4716 schema +struct<> +-- !query 4716 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 4717 +SELECT cast('1' as binary) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4717 schema +struct<> +-- !query 4717 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 4718 +SELECT cast('1' as binary) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4718 schema +struct<> +-- !query 4718 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 4719 +SELECT cast('1' as binary) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4719 schema +struct<> +-- !query 4719 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 4720 +SELECT cast('1' as binary) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4720 schema +struct<> +-- !query 4720 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 4721 +SELECT cast('1' as binary) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4721 schema +struct<> +-- !query 4721 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 4722 +SELECT cast('1' as binary) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4722 schema +struct<> +-- !query 4722 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 4723 +SELECT cast('1' as binary) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4723 schema +struct<> +-- !query 4723 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 4724 +SELECT cast('1' as binary) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4724 schema +struct<> +-- !query 4724 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 4725 +SELECT cast('1' as binary) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4725 schema +struct<> +-- !query 4725 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 4726 +SELECT cast('1' as binary) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4726 schema +struct<> +-- !query 4726 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4727 +SELECT cast('1' as binary) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4727 schema +struct<> +-- !query 4727 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 4728 +SELECT cast('1' as binary) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4728 schema +struct<> +-- !query 4728 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 4729 +SELECT cast('1' as binary) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4729 schema +struct<> +-- !query 4729 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 4730 +SELECT cast('1' as binary) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4730 schema +struct<> +-- !query 4730 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 4731 +SELECT cast('1' as binary) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4731 schema +struct<> +-- !query 4731 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 4732 +SELECT cast('1' as binary) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4732 schema +struct<> +-- !query 4732 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 4733 +SELECT cast('1' as binary) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4733 schema +struct<> +-- !query 4733 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 4734 +SELECT cast('1' as binary) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4734 schema +struct<> +-- !query 4734 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 4735 +SELECT cast('1' as binary) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4735 schema +struct<> +-- !query 4735 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 4736 +SELECT cast('1' as binary) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4736 schema +struct<> +-- !query 4736 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 4737 +SELECT cast('1' as binary) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4737 schema +struct<> +-- !query 4737 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 4738 +SELECT cast('1' as binary) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4738 schema +struct<> +-- !query 4738 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4739 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4739 schema +struct<> +-- !query 4739 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 4740 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4740 schema +struct<> +-- !query 4740 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 4741 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4741 schema +struct<> +-- !query 4741 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 4742 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4742 schema +struct<> +-- !query 4742 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 4743 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4743 schema +struct<> +-- !query 4743 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 4744 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4744 schema +struct<> +-- !query 4744 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 4745 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4745 schema +struct<> +-- !query 4745 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 4746 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4746 schema +struct<> +-- !query 4746 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 4747 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4747 schema +struct<> +-- !query 4747 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 4748 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4748 schema +struct<> +-- !query 4748 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 4749 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4749 schema +struct<> +-- !query 4749 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4750 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4750 schema +struct<> +-- !query 4750 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 4751 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4751 schema +struct<> +-- !query 4751 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 4752 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4752 schema +struct<> +-- !query 4752 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 4753 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4753 schema +struct<> +-- !query 4753 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 4754 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4754 schema +struct<> +-- !query 4754 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 4755 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4755 schema +struct<> +-- !query 4755 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 4756 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4756 schema +struct<> +-- !query 4756 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 4757 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4757 schema +struct<> +-- !query 4757 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 4758 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4758 schema +struct<> +-- !query 4758 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 4759 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4759 schema +struct<> +-- !query 4759 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 4760 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4760 schema +struct<> +-- !query 4760 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 4761 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4761 schema +struct<> +-- !query 4761 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4762 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 0)) FROM t +-- !query 4762 schema +struct<> +-- !query 4762 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 4763 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 0)) FROM t +-- !query 4763 schema +struct<> +-- !query 4763 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 4764 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 0)) FROM t +-- !query 4764 schema +struct<> +-- !query 4764 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 4765 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 0)) FROM t +-- !query 4765 schema +struct<> +-- !query 4765 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 4766 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 0)) FROM t +-- !query 4766 schema +struct<> +-- !query 4766 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 4767 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4767 schema +struct<> +-- !query 4767 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 4768 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 0)) FROM t +-- !query 4768 schema +struct<> +-- !query 4768 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 4769 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 0)) FROM t +-- !query 4769 schema +struct<> +-- !query 4769 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 4770 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 0)) FROM t +-- !query 4770 schema +struct<> +-- !query 4770 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 4771 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 0)) FROM t +-- !query 4771 schema +struct<> +-- !query 4771 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 4772 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 0)) FROM t +-- !query 4772 schema +struct<> +-- !query 4772 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 0)) FROM t + + +-- !query 4773 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 1)) FROM t +-- !query 4773 schema +struct<> +-- !query 4773 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 4774 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(2, 1)) FROM t +-- !query 4774 schema +struct<> +-- !query 4774 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 4775 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 1)) FROM t +-- !query 4775 schema +struct<> +-- !query 4775 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 4776 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 1)) FROM t +-- !query 4776 schema +struct<> +-- !query 4776 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 4777 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 1)) FROM t +-- !query 4777 schema +struct<> +-- !query 4777 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 4778 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 1)) FROM t +-- !query 4778 schema +struct<> +-- !query 4778 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 4779 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 1)) FROM t +-- !query 4779 schema +struct<> +-- !query 4779 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 4780 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 1)) FROM t +-- !query 4780 schema +struct<> +-- !query 4780 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 4781 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 1)) FROM t +-- !query 4781 schema +struct<> +-- !query 4781 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 4782 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 1)) FROM t +-- !query 4782 schema +struct<> +-- !query 4782 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 4783 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 1)) FROM t +-- !query 4783 schema +struct<> +-- !query 4783 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 4784 +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 1)) FROM t +-- !query 4784 schema +struct<> +-- !query 4784 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 1)) FROM t + + +-- !query 4785 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as tinyint) FROM t +-- !query 4785 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> +-- !query 4785 output +true + + +-- !query 4786 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as tinyint) FROM t +-- !query 4786 schema +struct<(CAST(1 AS DECIMAL(3,0)) <= CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> +-- !query 4786 output +true + + +-- !query 4787 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as tinyint) FROM t +-- !query 4787 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> +-- !query 4787 output +true + + +-- !query 4788 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as tinyint) FROM t +-- !query 4788 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 4788 output +true + + +-- !query 4789 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as tinyint) FROM t +-- !query 4789 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> +-- !query 4789 output +true + + +-- !query 4790 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as tinyint) FROM t +-- !query 4790 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 4790 output +true + + +-- !query 4791 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as tinyint) FROM t +-- !query 4791 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> +-- !query 4791 output +true + + +-- !query 4792 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as tinyint) FROM t +-- !query 4792 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 4792 output +true + + +-- !query 4793 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as tinyint) FROM t +-- !query 4793 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> +-- !query 4793 output +true + + +-- !query 4794 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as tinyint) FROM t +-- !query 4794 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> +-- !query 4794 output +true + + +-- !query 4795 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as tinyint) FROM t +-- !query 4795 schema +struct<> +-- !query 4795 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as tinyint) FROM t + + +-- !query 4796 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as tinyint) FROM t +-- !query 4796 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4796 output +NULL + + +-- !query 4797 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as tinyint) FROM t +-- !query 4797 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4797 output +true + + +-- !query 4798 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as tinyint) FROM t +-- !query 4798 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4798 output +true + + +-- !query 4799 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as tinyint) FROM t +-- !query 4799 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 4799 output +true + + +-- !query 4800 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as tinyint) FROM t +-- !query 4800 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> +-- !query 4800 output +true + + +-- !query 4801 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as tinyint) FROM t +-- !query 4801 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> +-- !query 4801 output +true + + +-- !query 4802 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as tinyint) FROM t +-- !query 4802 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> +-- !query 4802 output +true + + +-- !query 4803 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as tinyint) FROM t +-- !query 4803 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> +-- !query 4803 output +true + + +-- !query 4804 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as tinyint) FROM t +-- !query 4804 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> +-- !query 4804 output +true + + +-- !query 4805 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as tinyint) FROM t +-- !query 4805 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> +-- !query 4805 output +true + + +-- !query 4806 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as tinyint) FROM t +-- !query 4806 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> +-- !query 4806 output +true + + +-- !query 4807 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as tinyint) FROM t +-- !query 4807 schema +struct<> +-- !query 4807 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as tinyint) FROM t + + +-- !query 4808 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as smallint) FROM t +-- !query 4808 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4808 output +true + + +-- !query 4809 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as smallint) FROM t +-- !query 4809 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4809 output +true + + +-- !query 4810 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as smallint) FROM t +-- !query 4810 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 4810 output +true + + +-- !query 4811 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as smallint) FROM t +-- !query 4811 schema +struct<(CAST(1 AS DECIMAL(5,0)) <= CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> +-- !query 4811 output +true + + +-- !query 4812 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as smallint) FROM t +-- !query 4812 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> +-- !query 4812 output +true + + +-- !query 4813 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as smallint) FROM t +-- !query 4813 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 4813 output +true + + +-- !query 4814 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as smallint) FROM t +-- !query 4814 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> +-- !query 4814 output +true + + +-- !query 4815 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as smallint) FROM t +-- !query 4815 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 4815 output +true + + +-- !query 4816 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as smallint) FROM t +-- !query 4816 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> +-- !query 4816 output +true + + +-- !query 4817 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as smallint) FROM t +-- !query 4817 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> +-- !query 4817 output +true + + +-- !query 4818 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as smallint) FROM t +-- !query 4818 schema +struct<> +-- !query 4818 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as smallint) FROM t + + +-- !query 4819 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as smallint) FROM t +-- !query 4819 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4819 output +NULL + + +-- !query 4820 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as smallint) FROM t +-- !query 4820 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4820 output +true + + +-- !query 4821 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as smallint) FROM t +-- !query 4821 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4821 output +true + + +-- !query 4822 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as smallint) FROM t +-- !query 4822 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4822 output +true + + +-- !query 4823 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as smallint) FROM t +-- !query 4823 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4823 output +true + + +-- !query 4824 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as smallint) FROM t +-- !query 4824 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 4824 output +true + + +-- !query 4825 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as smallint) FROM t +-- !query 4825 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> +-- !query 4825 output +true + + +-- !query 4826 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as smallint) FROM t +-- !query 4826 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> +-- !query 4826 output +true + + +-- !query 4827 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as smallint) FROM t +-- !query 4827 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> +-- !query 4827 output +true + + +-- !query 4828 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as smallint) FROM t +-- !query 4828 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> +-- !query 4828 output +true + + +-- !query 4829 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as smallint) FROM t +-- !query 4829 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> +-- !query 4829 output +true + + +-- !query 4830 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as smallint) FROM t +-- !query 4830 schema +struct<> +-- !query 4830 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as smallint) FROM t + + +-- !query 4831 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as int) FROM t +-- !query 4831 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4831 output +true + + +-- !query 4832 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as int) FROM t +-- !query 4832 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4832 output +true + + +-- !query 4833 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as int) FROM t +-- !query 4833 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4833 output +true + + +-- !query 4834 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as int) FROM t +-- !query 4834 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4834 output +true + + +-- !query 4835 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as int) FROM t +-- !query 4835 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4835 output +true + + +-- !query 4836 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as int) FROM t +-- !query 4836 schema +struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> +-- !query 4836 output +true + + +-- !query 4837 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as int) FROM t +-- !query 4837 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 4837 output +true + + +-- !query 4838 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as int) FROM t +-- !query 4838 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 4838 output +true + + +-- !query 4839 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as int) FROM t +-- !query 4839 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 4839 output +true + + +-- !query 4840 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as int) FROM t +-- !query 4840 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 4840 output +true + + +-- !query 4841 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as int) FROM t +-- !query 4841 schema +struct<> +-- !query 4841 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as int) FROM t + + +-- !query 4842 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as int) FROM t +-- !query 4842 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4842 output +NULL + + +-- !query 4843 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as int) FROM t +-- !query 4843 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4843 output +true + + +-- !query 4844 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as int) FROM t +-- !query 4844 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4844 output +true + + +-- !query 4845 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as int) FROM t +-- !query 4845 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4845 output +true + + +-- !query 4846 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as int) FROM t +-- !query 4846 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4846 output +true + + +-- !query 4847 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as int) FROM t +-- !query 4847 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4847 output +true + + +-- !query 4848 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as int) FROM t +-- !query 4848 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4848 output +true + + +-- !query 4849 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as int) FROM t +-- !query 4849 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4849 output +true + + +-- !query 4850 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as int) FROM t +-- !query 4850 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 4850 output +true + + +-- !query 4851 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as int) FROM t +-- !query 4851 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 4851 output +true + + +-- !query 4852 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as int) FROM t +-- !query 4852 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 4852 output +true + + +-- !query 4853 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as int) FROM t +-- !query 4853 schema +struct<> +-- !query 4853 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as int) FROM t + + +-- !query 4854 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as bigint) FROM t +-- !query 4854 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4854 output +true + + +-- !query 4855 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as bigint) FROM t +-- !query 4855 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4855 output +true + + +-- !query 4856 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as bigint) FROM t +-- !query 4856 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4856 output +true + + +-- !query 4857 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as bigint) FROM t +-- !query 4857 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4857 output +true + + +-- !query 4858 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as bigint) FROM t +-- !query 4858 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4858 output +true + + +-- !query 4859 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as bigint) FROM t +-- !query 4859 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4859 output +true + + +-- !query 4860 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as bigint) FROM t +-- !query 4860 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 4860 output +true + + +-- !query 4861 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as bigint) FROM t +-- !query 4861 schema +struct<(CAST(1 AS DECIMAL(20,0)) <= CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> +-- !query 4861 output +true + + +-- !query 4862 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as bigint) FROM t +-- !query 4862 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> +-- !query 4862 output +true + + +-- !query 4863 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as bigint) FROM t +-- !query 4863 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> +-- !query 4863 output +true + + +-- !query 4864 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as bigint) FROM t +-- !query 4864 schema +struct<> +-- !query 4864 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as bigint) FROM t + + +-- !query 4865 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as bigint) FROM t +-- !query 4865 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4865 output +NULL + + +-- !query 4866 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as bigint) FROM t +-- !query 4866 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4866 output +true + + +-- !query 4867 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as bigint) FROM t +-- !query 4867 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4867 output +true + + +-- !query 4868 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as bigint) FROM t +-- !query 4868 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4868 output +true + + +-- !query 4869 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as bigint) FROM t +-- !query 4869 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4869 output +true + + +-- !query 4870 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as bigint) FROM t +-- !query 4870 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4870 output +true + + +-- !query 4871 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as bigint) FROM t +-- !query 4871 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4871 output +true + + +-- !query 4872 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as bigint) FROM t +-- !query 4872 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4872 output +true + + +-- !query 4873 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as bigint) FROM t +-- !query 4873 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4873 output +true + + +-- !query 4874 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as bigint) FROM t +-- !query 4874 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 4874 output +true + + +-- !query 4875 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as bigint) FROM t +-- !query 4875 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> +-- !query 4875 output +true + + +-- !query 4876 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as bigint) FROM t +-- !query 4876 schema +struct<> +-- !query 4876 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as bigint) FROM t + + +-- !query 4877 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as float) FROM t +-- !query 4877 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4877 output +true + + +-- !query 4878 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as float) FROM t +-- !query 4878 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4878 output +true + + +-- !query 4879 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as float) FROM t +-- !query 4879 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4879 output +true + + +-- !query 4880 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as float) FROM t +-- !query 4880 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4880 output +true + + +-- !query 4881 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as float) FROM t +-- !query 4881 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4881 output +true + + +-- !query 4882 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as float) FROM t +-- !query 4882 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4882 output +true + + +-- !query 4883 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as float) FROM t +-- !query 4883 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4883 output +true + + +-- !query 4884 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as float) FROM t +-- !query 4884 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4884 output +true + + +-- !query 4885 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as float) FROM t +-- !query 4885 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4885 output +true + + +-- !query 4886 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as float) FROM t +-- !query 4886 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4886 output +true + + +-- !query 4887 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as float) FROM t +-- !query 4887 schema +struct<> +-- !query 4887 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as float) FROM t + + +-- !query 4888 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as float) FROM t +-- !query 4888 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4888 output +NULL + + +-- !query 4889 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as float) FROM t +-- !query 4889 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4889 output +true + + +-- !query 4890 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as float) FROM t +-- !query 4890 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4890 output +true + + +-- !query 4891 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as float) FROM t +-- !query 4891 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4891 output +true + + +-- !query 4892 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as float) FROM t +-- !query 4892 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4892 output +true + + +-- !query 4893 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as float) FROM t +-- !query 4893 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4893 output +true + + +-- !query 4894 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as float) FROM t +-- !query 4894 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4894 output +true + + +-- !query 4895 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as float) FROM t +-- !query 4895 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4895 output +true + + +-- !query 4896 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as float) FROM t +-- !query 4896 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4896 output +true + + +-- !query 4897 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as float) FROM t +-- !query 4897 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4897 output +true + + +-- !query 4898 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as float) FROM t +-- !query 4898 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 4898 output +true + + +-- !query 4899 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as float) FROM t +-- !query 4899 schema +struct<> +-- !query 4899 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as float) FROM t + + +-- !query 4900 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as double) FROM t +-- !query 4900 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4900 output +true + + +-- !query 4901 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as double) FROM t +-- !query 4901 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4901 output +true + + +-- !query 4902 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as double) FROM t +-- !query 4902 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4902 output +true + + +-- !query 4903 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as double) FROM t +-- !query 4903 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4903 output +true + + +-- !query 4904 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as double) FROM t +-- !query 4904 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4904 output +true + + +-- !query 4905 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as double) FROM t +-- !query 4905 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4905 output +true + + +-- !query 4906 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as double) FROM t +-- !query 4906 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4906 output +true + + +-- !query 4907 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as double) FROM t +-- !query 4907 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4907 output +true + + +-- !query 4908 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as double) FROM t +-- !query 4908 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4908 output +true + + +-- !query 4909 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as double) FROM t +-- !query 4909 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4909 output +true + + +-- !query 4910 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as double) FROM t +-- !query 4910 schema +struct<> +-- !query 4910 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as double) FROM t + + +-- !query 4911 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as double) FROM t +-- !query 4911 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4911 output +NULL + + +-- !query 4912 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as double) FROM t +-- !query 4912 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4912 output +true + + +-- !query 4913 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as double) FROM t +-- !query 4913 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4913 output +true + + +-- !query 4914 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as double) FROM t +-- !query 4914 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4914 output +true + + +-- !query 4915 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as double) FROM t +-- !query 4915 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4915 output +true + + +-- !query 4916 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as double) FROM t +-- !query 4916 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4916 output +true + + +-- !query 4917 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as double) FROM t +-- !query 4917 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4917 output +true + + +-- !query 4918 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as double) FROM t +-- !query 4918 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4918 output +true + + +-- !query 4919 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as double) FROM t +-- !query 4919 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4919 output +true + + +-- !query 4920 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as double) FROM t +-- !query 4920 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4920 output +true + + +-- !query 4921 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as double) FROM t +-- !query 4921 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> +-- !query 4921 output +true + + +-- !query 4922 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as double) FROM t +-- !query 4922 schema +struct<> +-- !query 4922 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as double) FROM t + + +-- !query 4923 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4923 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4923 output +true + + +-- !query 4924 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4924 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4924 output +true + + +-- !query 4925 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4925 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4925 output +true + + +-- !query 4926 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4926 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4926 output +true + + +-- !query 4927 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4927 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 4927 output +true + + +-- !query 4928 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4928 schema +struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 4928 output +true + + +-- !query 4929 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4929 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 4929 output +true + + +-- !query 4930 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4930 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 4930 output +true + + +-- !query 4931 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4931 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 4931 output +true + + +-- !query 4932 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4932 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 4932 output +true + + +-- !query 4933 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4933 schema +struct<> +-- !query 4933 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as decimal(10, 0)) FROM t + + +-- !query 4934 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4934 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4934 output +NULL + + +-- !query 4935 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4935 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4935 output +true + + +-- !query 4936 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4936 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4936 output +true + + +-- !query 4937 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4937 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4937 output +true + + +-- !query 4938 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4938 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4938 output +true + + +-- !query 4939 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4939 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4939 output +true + + +-- !query 4940 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4940 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4940 output +true + + +-- !query 4941 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4941 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 4941 output +true + + +-- !query 4942 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4942 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 4942 output +true + + +-- !query 4943 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4943 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 4943 output +true + + +-- !query 4944 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4944 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 4944 output +true + + +-- !query 4945 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as decimal(10, 0)) FROM t +-- !query 4945 schema +struct<> +-- !query 4945 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as decimal(10, 0)) FROM t + + +-- !query 4946 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as string) FROM t +-- !query 4946 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4946 output +true + + +-- !query 4947 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as string) FROM t +-- !query 4947 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4947 output +true + + +-- !query 4948 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as string) FROM t +-- !query 4948 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4948 output +true + + +-- !query 4949 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as string) FROM t +-- !query 4949 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4949 output +true + + +-- !query 4950 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as string) FROM t +-- !query 4950 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4950 output +true + + +-- !query 4951 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as string) FROM t +-- !query 4951 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4951 output +true + + +-- !query 4952 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as string) FROM t +-- !query 4952 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4952 output +true + + +-- !query 4953 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as string) FROM t +-- !query 4953 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4953 output +true + + +-- !query 4954 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as string) FROM t +-- !query 4954 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4954 output +true + + +-- !query 4955 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as string) FROM t +-- !query 4955 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4955 output +true + + +-- !query 4956 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as string) FROM t +-- !query 4956 schema +struct<> +-- !query 4956 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as string) FROM t + + +-- !query 4957 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as string) FROM t +-- !query 4957 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4957 output +NULL + + +-- !query 4958 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as string) FROM t +-- !query 4958 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4958 output +true + + +-- !query 4959 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as string) FROM t +-- !query 4959 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4959 output +true + + +-- !query 4960 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as string) FROM t +-- !query 4960 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4960 output +true + + +-- !query 4961 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as string) FROM t +-- !query 4961 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4961 output +true + + +-- !query 4962 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as string) FROM t +-- !query 4962 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4962 output +true + + +-- !query 4963 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as string) FROM t +-- !query 4963 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4963 output +true + + +-- !query 4964 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as string) FROM t +-- !query 4964 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4964 output +true + + +-- !query 4965 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as string) FROM t +-- !query 4965 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4965 output +true + + +-- !query 4966 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as string) FROM t +-- !query 4966 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4966 output +true + + +-- !query 4967 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as string) FROM t +-- !query 4967 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 4967 output +true + + +-- !query 4968 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as string) FROM t +-- !query 4968 schema +struct<> +-- !query 4968 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as string) FROM t + + +-- !query 4969 +SELECT cast(1 as decimal(1, 0)) <= cast('1' as binary) FROM t +-- !query 4969 schema +struct<> +-- !query 4969 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 4970 +SELECT cast(1 as decimal(3, 0)) <= cast('1' as binary) FROM t +-- !query 4970 schema +struct<> +-- !query 4970 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 4971 +SELECT cast(1 as decimal(4, 0)) <= cast('1' as binary) FROM t +-- !query 4971 schema +struct<> +-- !query 4971 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 4972 +SELECT cast(1 as decimal(5, 0)) <= cast('1' as binary) FROM t +-- !query 4972 schema +struct<> +-- !query 4972 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 4973 +SELECT cast(1 as decimal(6, 0)) <= cast('1' as binary) FROM t +-- !query 4973 schema +struct<> +-- !query 4973 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 4974 +SELECT cast(1 as decimal(10, 0)) <= cast('1' as binary) FROM t +-- !query 4974 schema +struct<> +-- !query 4974 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 4975 +SELECT cast(1 as decimal(11, 0)) <= cast('1' as binary) FROM t +-- !query 4975 schema +struct<> +-- !query 4975 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 4976 +SELECT cast(1 as decimal(20, 0)) <= cast('1' as binary) FROM t +-- !query 4976 schema +struct<> +-- !query 4976 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 4977 +SELECT cast(1 as decimal(21, 0)) <= cast('1' as binary) FROM t +-- !query 4977 schema +struct<> +-- !query 4977 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 4978 +SELECT cast(1 as decimal(38, 0)) <= cast('1' as binary) FROM t +-- !query 4978 schema +struct<> +-- !query 4978 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 4979 +SELECT cast(1 as decimal(39, 0)) <= cast('1' as binary) FROM t +-- !query 4979 schema +struct<> +-- !query 4979 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast('1' as binary) FROM t + + +-- !query 4980 +SELECT cast(1 as decimal(1, 1)) <= cast('1' as binary) FROM t +-- !query 4980 schema +struct<> +-- !query 4980 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 4981 +SELECT cast(1 as decimal(2, 1)) <= cast('1' as binary) FROM t +-- !query 4981 schema +struct<> +-- !query 4981 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 4982 +SELECT cast(1 as decimal(3, 1)) <= cast('1' as binary) FROM t +-- !query 4982 schema +struct<> +-- !query 4982 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 4983 +SELECT cast(1 as decimal(4, 1)) <= cast('1' as binary) FROM t +-- !query 4983 schema +struct<> +-- !query 4983 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 4984 +SELECT cast(1 as decimal(5, 1)) <= cast('1' as binary) FROM t +-- !query 4984 schema +struct<> +-- !query 4984 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 4985 +SELECT cast(1 as decimal(6, 1)) <= cast('1' as binary) FROM t +-- !query 4985 schema +struct<> +-- !query 4985 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 4986 +SELECT cast(1 as decimal(10, 1)) <= cast('1' as binary) FROM t +-- !query 4986 schema +struct<> +-- !query 4986 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 4987 +SELECT cast(1 as decimal(11, 1)) <= cast('1' as binary) FROM t +-- !query 4987 schema +struct<> +-- !query 4987 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 4988 +SELECT cast(1 as decimal(20, 1)) <= cast('1' as binary) FROM t +-- !query 4988 schema +struct<> +-- !query 4988 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 4989 +SELECT cast(1 as decimal(21, 1)) <= cast('1' as binary) FROM t +-- !query 4989 schema +struct<> +-- !query 4989 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 4990 +SELECT cast(1 as decimal(38, 1)) <= cast('1' as binary) FROM t +-- !query 4990 schema +struct<> +-- !query 4990 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 4991 +SELECT cast(1 as decimal(39, 1)) <= cast('1' as binary) FROM t +-- !query 4991 schema +struct<> +-- !query 4991 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast('1' as binary) FROM t + + +-- !query 4992 +SELECT cast(1 as decimal(1, 0)) <= cast(1 as boolean) FROM t +-- !query 4992 schema +struct<> +-- !query 4992 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 4993 +SELECT cast(1 as decimal(3, 0)) <= cast(1 as boolean) FROM t +-- !query 4993 schema +struct<> +-- !query 4993 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 4994 +SELECT cast(1 as decimal(4, 0)) <= cast(1 as boolean) FROM t +-- !query 4994 schema +struct<> +-- !query 4994 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 4995 +SELECT cast(1 as decimal(5, 0)) <= cast(1 as boolean) FROM t +-- !query 4995 schema +struct<> +-- !query 4995 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 4996 +SELECT cast(1 as decimal(6, 0)) <= cast(1 as boolean) FROM t +-- !query 4996 schema +struct<> +-- !query 4996 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 4997 +SELECT cast(1 as decimal(10, 0)) <= cast(1 as boolean) FROM t +-- !query 4997 schema +struct<> +-- !query 4997 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 4998 +SELECT cast(1 as decimal(11, 0)) <= cast(1 as boolean) FROM t +-- !query 4998 schema +struct<> +-- !query 4998 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 4999 +SELECT cast(1 as decimal(20, 0)) <= cast(1 as boolean) FROM t +-- !query 4999 schema +struct<> +-- !query 4999 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 5000 +SELECT cast(1 as decimal(21, 0)) <= cast(1 as boolean) FROM t +-- !query 5000 schema +struct<> +-- !query 5000 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 5001 +SELECT cast(1 as decimal(38, 0)) <= cast(1 as boolean) FROM t +-- !query 5001 schema +struct<> +-- !query 5001 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 5002 +SELECT cast(1 as decimal(39, 0)) <= cast(1 as boolean) FROM t +-- !query 5002 schema +struct<> +-- !query 5002 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast(1 as boolean) FROM t + + +-- !query 5003 +SELECT cast(1 as decimal(1, 1)) <= cast(1 as boolean) FROM t +-- !query 5003 schema +struct<> +-- !query 5003 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 5004 +SELECT cast(1 as decimal(2, 1)) <= cast(1 as boolean) FROM t +-- !query 5004 schema +struct<> +-- !query 5004 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 5005 +SELECT cast(1 as decimal(3, 1)) <= cast(1 as boolean) FROM t +-- !query 5005 schema +struct<> +-- !query 5005 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 5006 +SELECT cast(1 as decimal(4, 1)) <= cast(1 as boolean) FROM t +-- !query 5006 schema +struct<> +-- !query 5006 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 5007 +SELECT cast(1 as decimal(5, 1)) <= cast(1 as boolean) FROM t +-- !query 5007 schema +struct<> +-- !query 5007 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 5008 +SELECT cast(1 as decimal(6, 1)) <= cast(1 as boolean) FROM t +-- !query 5008 schema +struct<> +-- !query 5008 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 5009 +SELECT cast(1 as decimal(10, 1)) <= cast(1 as boolean) FROM t +-- !query 5009 schema +struct<> +-- !query 5009 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 5010 +SELECT cast(1 as decimal(11, 1)) <= cast(1 as boolean) FROM t +-- !query 5010 schema +struct<> +-- !query 5010 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 5011 +SELECT cast(1 as decimal(20, 1)) <= cast(1 as boolean) FROM t +-- !query 5011 schema +struct<> +-- !query 5011 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 5012 +SELECT cast(1 as decimal(21, 1)) <= cast(1 as boolean) FROM t +-- !query 5012 schema +struct<> +-- !query 5012 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 5013 +SELECT cast(1 as decimal(38, 1)) <= cast(1 as boolean) FROM t +-- !query 5013 schema +struct<> +-- !query 5013 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 5014 +SELECT cast(1 as decimal(39, 1)) <= cast(1 as boolean) FROM t +-- !query 5014 schema +struct<> +-- !query 5014 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast(1 as boolean) FROM t + + +-- !query 5015 +SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5015 schema +struct<> +-- !query 5015 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 5016 +SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5016 schema +struct<> +-- !query 5016 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 5017 +SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5017 schema +struct<> +-- !query 5017 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 5018 +SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5018 schema +struct<> +-- !query 5018 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 5019 +SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5019 schema +struct<> +-- !query 5019 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 5020 +SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5020 schema +struct<> +-- !query 5020 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 5021 +SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5021 schema +struct<> +-- !query 5021 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 5022 +SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5022 schema +struct<> +-- !query 5022 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 5023 +SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5023 schema +struct<> +-- !query 5023 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 5024 +SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5024 schema +struct<> +-- !query 5024 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 5025 +SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5025 schema +struct<> +-- !query 5025 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 5026 +SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5026 schema +struct<> +-- !query 5026 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 5027 +SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5027 schema +struct<> +-- !query 5027 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 5028 +SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5028 schema +struct<> +-- !query 5028 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 5029 +SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5029 schema +struct<> +-- !query 5029 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 5030 +SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5030 schema +struct<> +-- !query 5030 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 5031 +SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5031 schema +struct<> +-- !query 5031 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 5032 +SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5032 schema +struct<> +-- !query 5032 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 5033 +SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5033 schema +struct<> +-- !query 5033 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 5034 +SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5034 schema +struct<> +-- !query 5034 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 5035 +SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5035 schema +struct<> +-- !query 5035 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 5036 +SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5036 schema +struct<> +-- !query 5036 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 5037 +SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5037 schema +struct<> +-- !query 5037 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 5038 +SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5038 schema +struct<> +-- !query 5038 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 5039 +SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5039 schema +struct<> +-- !query 5039 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 5040 +SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5040 schema +struct<> +-- !query 5040 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 5041 +SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5041 schema +struct<> +-- !query 5041 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 5042 +SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5042 schema +struct<> +-- !query 5042 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 5043 +SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5043 schema +struct<> +-- !query 5043 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 5044 +SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5044 schema +struct<> +-- !query 5044 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 5045 +SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5045 schema +struct<> +-- !query 5045 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 5046 +SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5046 schema +struct<> +-- !query 5046 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 5047 +SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5047 schema +struct<> +-- !query 5047 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 5048 +SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5048 schema +struct<> +-- !query 5048 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 5049 +SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5049 schema +struct<> +-- !query 5049 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 5050 +SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5050 schema +struct<> +-- !query 5050 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 5051 +SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5051 schema +struct<> +-- !query 5051 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 5052 +SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5052 schema +struct<> +-- !query 5052 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 5053 +SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5053 schema +struct<> +-- !query 5053 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 5054 +SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5054 schema +struct<> +-- !query 5054 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 5055 +SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5055 schema +struct<> +-- !query 5055 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 5056 +SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5056 schema +struct<> +-- !query 5056 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 5057 +SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5057 schema +struct<> +-- !query 5057 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 5058 +SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5058 schema +struct<> +-- !query 5058 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 5059 +SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5059 schema +struct<> +-- !query 5059 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 5060 +SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5060 schema +struct<> +-- !query 5060 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 5061 +SELECT cast(1 as tinyint) > cast(1 as decimal(1, 0)) FROM t +-- !query 5061 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> +-- !query 5061 output +false + + +-- !query 5062 +SELECT cast(1 as tinyint) > cast(1 as decimal(3, 0)) FROM t +-- !query 5062 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) > CAST(1 AS DECIMAL(3,0))):boolean> +-- !query 5062 output +false + + +-- !query 5063 +SELECT cast(1 as tinyint) > cast(1 as decimal(4, 0)) FROM t +-- !query 5063 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> +-- !query 5063 output +false + + +-- !query 5064 +SELECT cast(1 as tinyint) > cast(1 as decimal(5, 0)) FROM t +-- !query 5064 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5064 output +false + + +-- !query 5065 +SELECT cast(1 as tinyint) > cast(1 as decimal(6, 0)) FROM t +-- !query 5065 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 5065 output +false + + +-- !query 5066 +SELECT cast(1 as tinyint) > cast(1 as decimal(10, 0)) FROM t +-- !query 5066 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5066 output +false + + +-- !query 5067 +SELECT cast(1 as tinyint) > cast(1 as decimal(11, 0)) FROM t +-- !query 5067 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5067 output +false + + +-- !query 5068 +SELECT cast(1 as tinyint) > cast(1 as decimal(20, 0)) FROM t +-- !query 5068 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5068 output +false + + +-- !query 5069 +SELECT cast(1 as tinyint) > cast(1 as decimal(21, 0)) FROM t +-- !query 5069 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5069 output +false + + +-- !query 5070 +SELECT cast(1 as tinyint) > cast(1 as decimal(38, 0)) FROM t +-- !query 5070 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5070 output +false + + +-- !query 5071 +SELECT cast(1 as tinyint) > cast(1 as decimal(39, 0)) FROM t +-- !query 5071 schema +struct<> +-- !query 5071 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5072 +SELECT cast(1 as tinyint) > cast(1 as decimal(1, 1)) FROM t +-- !query 5072 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> +-- !query 5072 output +NULL + + +-- !query 5073 +SELECT cast(1 as tinyint) > cast(1 as decimal(2, 1)) FROM t +-- !query 5073 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> +-- !query 5073 output +false + + +-- !query 5074 +SELECT cast(1 as tinyint) > cast(1 as decimal(3, 1)) FROM t +-- !query 5074 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> +-- !query 5074 output +false + + +-- !query 5075 +SELECT cast(1 as tinyint) > cast(1 as decimal(4, 1)) FROM t +-- !query 5075 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> +-- !query 5075 output +false + + +-- !query 5076 +SELECT cast(1 as tinyint) > cast(1 as decimal(5, 1)) FROM t +-- !query 5076 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> +-- !query 5076 output +false + + +-- !query 5077 +SELECT cast(1 as tinyint) > cast(1 as decimal(6, 1)) FROM t +-- !query 5077 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 5077 output +false + + +-- !query 5078 +SELECT cast(1 as tinyint) > cast(1 as decimal(10, 1)) FROM t +-- !query 5078 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 5078 output +false + + +-- !query 5079 +SELECT cast(1 as tinyint) > cast(1 as decimal(11, 1)) FROM t +-- !query 5079 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5079 output +false + + +-- !query 5080 +SELECT cast(1 as tinyint) > cast(1 as decimal(20, 1)) FROM t +-- !query 5080 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5080 output +false + + +-- !query 5081 +SELECT cast(1 as tinyint) > cast(1 as decimal(21, 1)) FROM t +-- !query 5081 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5081 output +false + + +-- !query 5082 +SELECT cast(1 as tinyint) > cast(1 as decimal(38, 1)) FROM t +-- !query 5082 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5082 output +false + + +-- !query 5083 +SELECT cast(1 as tinyint) > cast(1 as decimal(39, 1)) FROM t +-- !query 5083 schema +struct<> +-- !query 5083 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5084 +SELECT cast(1 as smallint) > cast(1 as decimal(1, 0)) FROM t +-- !query 5084 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> +-- !query 5084 output +false + + +-- !query 5085 +SELECT cast(1 as smallint) > cast(1 as decimal(3, 0)) FROM t +-- !query 5085 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 5085 output +false + + +-- !query 5086 +SELECT cast(1 as smallint) > cast(1 as decimal(4, 0)) FROM t +-- !query 5086 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> +-- !query 5086 output +false + + +-- !query 5087 +SELECT cast(1 as smallint) > cast(1 as decimal(5, 0)) FROM t +-- !query 5087 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) > CAST(1 AS DECIMAL(5,0))):boolean> +-- !query 5087 output +false + + +-- !query 5088 +SELECT cast(1 as smallint) > cast(1 as decimal(6, 0)) FROM t +-- !query 5088 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 5088 output +false + + +-- !query 5089 +SELECT cast(1 as smallint) > cast(1 as decimal(10, 0)) FROM t +-- !query 5089 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5089 output +false + + +-- !query 5090 +SELECT cast(1 as smallint) > cast(1 as decimal(11, 0)) FROM t +-- !query 5090 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5090 output +false + + +-- !query 5091 +SELECT cast(1 as smallint) > cast(1 as decimal(20, 0)) FROM t +-- !query 5091 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5091 output +false + + +-- !query 5092 +SELECT cast(1 as smallint) > cast(1 as decimal(21, 0)) FROM t +-- !query 5092 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5092 output +false + + +-- !query 5093 +SELECT cast(1 as smallint) > cast(1 as decimal(38, 0)) FROM t +-- !query 5093 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5093 output +false + + +-- !query 5094 +SELECT cast(1 as smallint) > cast(1 as decimal(39, 0)) FROM t +-- !query 5094 schema +struct<> +-- !query 5094 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5095 +SELECT cast(1 as smallint) > cast(1 as decimal(1, 1)) FROM t +-- !query 5095 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> +-- !query 5095 output +NULL + + +-- !query 5096 +SELECT cast(1 as smallint) > cast(1 as decimal(2, 1)) FROM t +-- !query 5096 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> +-- !query 5096 output +false + + +-- !query 5097 +SELECT cast(1 as smallint) > cast(1 as decimal(3, 1)) FROM t +-- !query 5097 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> +-- !query 5097 output +false + + +-- !query 5098 +SELECT cast(1 as smallint) > cast(1 as decimal(4, 1)) FROM t +-- !query 5098 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> +-- !query 5098 output +false + + +-- !query 5099 +SELECT cast(1 as smallint) > cast(1 as decimal(5, 1)) FROM t +-- !query 5099 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> +-- !query 5099 output +false + + +-- !query 5100 +SELECT cast(1 as smallint) > cast(1 as decimal(6, 1)) FROM t +-- !query 5100 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 5100 output +false + + +-- !query 5101 +SELECT cast(1 as smallint) > cast(1 as decimal(10, 1)) FROM t +-- !query 5101 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 5101 output +false + + +-- !query 5102 +SELECT cast(1 as smallint) > cast(1 as decimal(11, 1)) FROM t +-- !query 5102 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5102 output +false + + +-- !query 5103 +SELECT cast(1 as smallint) > cast(1 as decimal(20, 1)) FROM t +-- !query 5103 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5103 output +false + + +-- !query 5104 +SELECT cast(1 as smallint) > cast(1 as decimal(21, 1)) FROM t +-- !query 5104 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5104 output +false + + +-- !query 5105 +SELECT cast(1 as smallint) > cast(1 as decimal(38, 1)) FROM t +-- !query 5105 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5105 output +false + + +-- !query 5106 +SELECT cast(1 as smallint) > cast(1 as decimal(39, 1)) FROM t +-- !query 5106 schema +struct<> +-- !query 5106 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5107 +SELECT cast(1 as int) > cast(1 as decimal(1, 0)) FROM t +-- !query 5107 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 5107 output +false + + +-- !query 5108 +SELECT cast(1 as int) > cast(1 as decimal(3, 0)) FROM t +-- !query 5108 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 5108 output +false + + +-- !query 5109 +SELECT cast(1 as int) > cast(1 as decimal(4, 0)) FROM t +-- !query 5109 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 5109 output +false + + +-- !query 5110 +SELECT cast(1 as int) > cast(1 as decimal(5, 0)) FROM t +-- !query 5110 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 5110 output +false + + +-- !query 5111 +SELECT cast(1 as int) > cast(1 as decimal(6, 0)) FROM t +-- !query 5111 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 5111 output +false + + +-- !query 5112 +SELECT cast(1 as int) > cast(1 as decimal(10, 0)) FROM t +-- !query 5112 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 5112 output +false + + +-- !query 5113 +SELECT cast(1 as int) > cast(1 as decimal(11, 0)) FROM t +-- !query 5113 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5113 output +false + + +-- !query 5114 +SELECT cast(1 as int) > cast(1 as decimal(20, 0)) FROM t +-- !query 5114 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5114 output +false + + +-- !query 5115 +SELECT cast(1 as int) > cast(1 as decimal(21, 0)) FROM t +-- !query 5115 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5115 output +false + + +-- !query 5116 +SELECT cast(1 as int) > cast(1 as decimal(38, 0)) FROM t +-- !query 5116 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5116 output +false + + +-- !query 5117 +SELECT cast(1 as int) > cast(1 as decimal(39, 0)) FROM t +-- !query 5117 schema +struct<> +-- !query 5117 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5118 +SELECT cast(1 as int) > cast(1 as decimal(1, 1)) FROM t +-- !query 5118 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 5118 output +NULL + + +-- !query 5119 +SELECT cast(1 as int) > cast(1 as decimal(2, 1)) FROM t +-- !query 5119 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 5119 output +false + + +-- !query 5120 +SELECT cast(1 as int) > cast(1 as decimal(3, 1)) FROM t +-- !query 5120 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 5120 output +false + + +-- !query 5121 +SELECT cast(1 as int) > cast(1 as decimal(4, 1)) FROM t +-- !query 5121 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 5121 output +false + + +-- !query 5122 +SELECT cast(1 as int) > cast(1 as decimal(5, 1)) FROM t +-- !query 5122 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 5122 output +false + + +-- !query 5123 +SELECT cast(1 as int) > cast(1 as decimal(6, 1)) FROM t +-- !query 5123 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 5123 output +false + + +-- !query 5124 +SELECT cast(1 as int) > cast(1 as decimal(10, 1)) FROM t +-- !query 5124 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 5124 output +false + + +-- !query 5125 +SELECT cast(1 as int) > cast(1 as decimal(11, 1)) FROM t +-- !query 5125 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5125 output +false + + +-- !query 5126 +SELECT cast(1 as int) > cast(1 as decimal(20, 1)) FROM t +-- !query 5126 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5126 output +false + + +-- !query 5127 +SELECT cast(1 as int) > cast(1 as decimal(21, 1)) FROM t +-- !query 5127 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5127 output +false + + +-- !query 5128 +SELECT cast(1 as int) > cast(1 as decimal(38, 1)) FROM t +-- !query 5128 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5128 output +false + + +-- !query 5129 +SELECT cast(1 as int) > cast(1 as decimal(39, 1)) FROM t +-- !query 5129 schema +struct<> +-- !query 5129 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5130 +SELECT cast(1 as bigint) > cast(1 as decimal(1, 0)) FROM t +-- !query 5130 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> +-- !query 5130 output +false + + +-- !query 5131 +SELECT cast(1 as bigint) > cast(1 as decimal(3, 0)) FROM t +-- !query 5131 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 5131 output +false + + +-- !query 5132 +SELECT cast(1 as bigint) > cast(1 as decimal(4, 0)) FROM t +-- !query 5132 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> +-- !query 5132 output +false + + +-- !query 5133 +SELECT cast(1 as bigint) > cast(1 as decimal(5, 0)) FROM t +-- !query 5133 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 5133 output +false + + +-- !query 5134 +SELECT cast(1 as bigint) > cast(1 as decimal(6, 0)) FROM t +-- !query 5134 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> +-- !query 5134 output +false + + +-- !query 5135 +SELECT cast(1 as bigint) > cast(1 as decimal(10, 0)) FROM t +-- !query 5135 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 5135 output +false + + +-- !query 5136 +SELECT cast(1 as bigint) > cast(1 as decimal(11, 0)) FROM t +-- !query 5136 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> +-- !query 5136 output +false + + +-- !query 5137 +SELECT cast(1 as bigint) > cast(1 as decimal(20, 0)) FROM t +-- !query 5137 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) > CAST(1 AS DECIMAL(20,0))):boolean> +-- !query 5137 output +false + + +-- !query 5138 +SELECT cast(1 as bigint) > cast(1 as decimal(21, 0)) FROM t +-- !query 5138 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5138 output +false + + +-- !query 5139 +SELECT cast(1 as bigint) > cast(1 as decimal(38, 0)) FROM t +-- !query 5139 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5139 output +false + + +-- !query 5140 +SELECT cast(1 as bigint) > cast(1 as decimal(39, 0)) FROM t +-- !query 5140 schema +struct<> +-- !query 5140 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5141 +SELECT cast(1 as bigint) > cast(1 as decimal(1, 1)) FROM t +-- !query 5141 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> +-- !query 5141 output +NULL + + +-- !query 5142 +SELECT cast(1 as bigint) > cast(1 as decimal(2, 1)) FROM t +-- !query 5142 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> +-- !query 5142 output +false + + +-- !query 5143 +SELECT cast(1 as bigint) > cast(1 as decimal(3, 1)) FROM t +-- !query 5143 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> +-- !query 5143 output +false + + +-- !query 5144 +SELECT cast(1 as bigint) > cast(1 as decimal(4, 1)) FROM t +-- !query 5144 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> +-- !query 5144 output +false + + +-- !query 5145 +SELECT cast(1 as bigint) > cast(1 as decimal(5, 1)) FROM t +-- !query 5145 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> +-- !query 5145 output +false + + +-- !query 5146 +SELECT cast(1 as bigint) > cast(1 as decimal(6, 1)) FROM t +-- !query 5146 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> +-- !query 5146 output +false + + +-- !query 5147 +SELECT cast(1 as bigint) > cast(1 as decimal(10, 1)) FROM t +-- !query 5147 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> +-- !query 5147 output +false + + +-- !query 5148 +SELECT cast(1 as bigint) > cast(1 as decimal(11, 1)) FROM t +-- !query 5148 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> +-- !query 5148 output +false + + +-- !query 5149 +SELECT cast(1 as bigint) > cast(1 as decimal(20, 1)) FROM t +-- !query 5149 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> +-- !query 5149 output +false + + +-- !query 5150 +SELECT cast(1 as bigint) > cast(1 as decimal(21, 1)) FROM t +-- !query 5150 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5150 output +false + + +-- !query 5151 +SELECT cast(1 as bigint) > cast(1 as decimal(38, 1)) FROM t +-- !query 5151 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5151 output +false + + +-- !query 5152 +SELECT cast(1 as bigint) > cast(1 as decimal(39, 1)) FROM t +-- !query 5152 schema +struct<> +-- !query 5152 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5153 +SELECT cast(1 as float) > cast(1 as decimal(1, 0)) FROM t +-- !query 5153 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 5153 output +false + + +-- !query 5154 +SELECT cast(1 as float) > cast(1 as decimal(3, 0)) FROM t +-- !query 5154 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 5154 output +false + + +-- !query 5155 +SELECT cast(1 as float) > cast(1 as decimal(4, 0)) FROM t +-- !query 5155 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 5155 output +false + + +-- !query 5156 +SELECT cast(1 as float) > cast(1 as decimal(5, 0)) FROM t +-- !query 5156 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 5156 output +false + + +-- !query 5157 +SELECT cast(1 as float) > cast(1 as decimal(6, 0)) FROM t +-- !query 5157 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 5157 output +false + + +-- !query 5158 +SELECT cast(1 as float) > cast(1 as decimal(10, 0)) FROM t +-- !query 5158 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 5158 output +false + + +-- !query 5159 +SELECT cast(1 as float) > cast(1 as decimal(11, 0)) FROM t +-- !query 5159 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 5159 output +false + + +-- !query 5160 +SELECT cast(1 as float) > cast(1 as decimal(20, 0)) FROM t +-- !query 5160 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 5160 output +false + + +-- !query 5161 +SELECT cast(1 as float) > cast(1 as decimal(21, 0)) FROM t +-- !query 5161 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 5161 output +false + + +-- !query 5162 +SELECT cast(1 as float) > cast(1 as decimal(38, 0)) FROM t +-- !query 5162 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 5162 output +false + + +-- !query 5163 +SELECT cast(1 as float) > cast(1 as decimal(39, 0)) FROM t +-- !query 5163 schema +struct<> +-- !query 5163 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5164 +SELECT cast(1 as float) > cast(1 as decimal(1, 1)) FROM t +-- !query 5164 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 5164 output +NULL + + +-- !query 5165 +SELECT cast(1 as float) > cast(1 as decimal(2, 1)) FROM t +-- !query 5165 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 5165 output +false + + +-- !query 5166 +SELECT cast(1 as float) > cast(1 as decimal(3, 1)) FROM t +-- !query 5166 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 5166 output +false + + +-- !query 5167 +SELECT cast(1 as float) > cast(1 as decimal(4, 1)) FROM t +-- !query 5167 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 5167 output +false + + +-- !query 5168 +SELECT cast(1 as float) > cast(1 as decimal(5, 1)) FROM t +-- !query 5168 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 5168 output +false + + +-- !query 5169 +SELECT cast(1 as float) > cast(1 as decimal(6, 1)) FROM t +-- !query 5169 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 5169 output +false + + +-- !query 5170 +SELECT cast(1 as float) > cast(1 as decimal(10, 1)) FROM t +-- !query 5170 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 5170 output +false + + +-- !query 5171 +SELECT cast(1 as float) > cast(1 as decimal(11, 1)) FROM t +-- !query 5171 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 5171 output +false + + +-- !query 5172 +SELECT cast(1 as float) > cast(1 as decimal(20, 1)) FROM t +-- !query 5172 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 5172 output +false + + +-- !query 5173 +SELECT cast(1 as float) > cast(1 as decimal(21, 1)) FROM t +-- !query 5173 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 5173 output +false + + +-- !query 5174 +SELECT cast(1 as float) > cast(1 as decimal(38, 1)) FROM t +-- !query 5174 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 5174 output +false + + +-- !query 5175 +SELECT cast(1 as float) > cast(1 as decimal(39, 1)) FROM t +-- !query 5175 schema +struct<> +-- !query 5175 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5176 +SELECT cast(1 as double) > cast(1 as decimal(1, 0)) FROM t +-- !query 5176 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 5176 output +false + + +-- !query 5177 +SELECT cast(1 as double) > cast(1 as decimal(3, 0)) FROM t +-- !query 5177 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 5177 output +false + + +-- !query 5178 +SELECT cast(1 as double) > cast(1 as decimal(4, 0)) FROM t +-- !query 5178 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 5178 output +false + + +-- !query 5179 +SELECT cast(1 as double) > cast(1 as decimal(5, 0)) FROM t +-- !query 5179 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 5179 output +false + + +-- !query 5180 +SELECT cast(1 as double) > cast(1 as decimal(6, 0)) FROM t +-- !query 5180 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 5180 output +false + + +-- !query 5181 +SELECT cast(1 as double) > cast(1 as decimal(10, 0)) FROM t +-- !query 5181 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 5181 output +false + + +-- !query 5182 +SELECT cast(1 as double) > cast(1 as decimal(11, 0)) FROM t +-- !query 5182 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 5182 output +false + + +-- !query 5183 +SELECT cast(1 as double) > cast(1 as decimal(20, 0)) FROM t +-- !query 5183 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 5183 output +false + + +-- !query 5184 +SELECT cast(1 as double) > cast(1 as decimal(21, 0)) FROM t +-- !query 5184 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 5184 output +false + + +-- !query 5185 +SELECT cast(1 as double) > cast(1 as decimal(38, 0)) FROM t +-- !query 5185 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 5185 output +false + + +-- !query 5186 +SELECT cast(1 as double) > cast(1 as decimal(39, 0)) FROM t +-- !query 5186 schema +struct<> +-- !query 5186 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5187 +SELECT cast(1 as double) > cast(1 as decimal(1, 1)) FROM t +-- !query 5187 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 5187 output +NULL + + +-- !query 5188 +SELECT cast(1 as double) > cast(1 as decimal(2, 1)) FROM t +-- !query 5188 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 5188 output +false + + +-- !query 5189 +SELECT cast(1 as double) > cast(1 as decimal(3, 1)) FROM t +-- !query 5189 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 5189 output +false + + +-- !query 5190 +SELECT cast(1 as double) > cast(1 as decimal(4, 1)) FROM t +-- !query 5190 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 5190 output +false + + +-- !query 5191 +SELECT cast(1 as double) > cast(1 as decimal(5, 1)) FROM t +-- !query 5191 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 5191 output +false + + +-- !query 5192 +SELECT cast(1 as double) > cast(1 as decimal(6, 1)) FROM t +-- !query 5192 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 5192 output +false + + +-- !query 5193 +SELECT cast(1 as double) > cast(1 as decimal(10, 1)) FROM t +-- !query 5193 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 5193 output +false + + +-- !query 5194 +SELECT cast(1 as double) > cast(1 as decimal(11, 1)) FROM t +-- !query 5194 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 5194 output +false + + +-- !query 5195 +SELECT cast(1 as double) > cast(1 as decimal(20, 1)) FROM t +-- !query 5195 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 5195 output +false + + +-- !query 5196 +SELECT cast(1 as double) > cast(1 as decimal(21, 1)) FROM t +-- !query 5196 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 5196 output +false + + +-- !query 5197 +SELECT cast(1 as double) > cast(1 as decimal(38, 1)) FROM t +-- !query 5197 schema +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 5197 output +false + + +-- !query 5198 +SELECT cast(1 as double) > cast(1 as decimal(39, 1)) FROM t +-- !query 5198 schema +struct<> +-- !query 5198 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5199 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 0)) FROM t +-- !query 5199 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 5199 output +false + + +-- !query 5200 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 0)) FROM t +-- !query 5200 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 5200 output +false + + +-- !query 5201 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 0)) FROM t +-- !query 5201 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 5201 output +false + + +-- !query 5202 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 0)) FROM t +-- !query 5202 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 5202 output +false + + +-- !query 5203 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 0)) FROM t +-- !query 5203 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 5203 output +false + + +-- !query 5204 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5204 schema +struct<(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 5204 output +false + + +-- !query 5205 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 0)) FROM t +-- !query 5205 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5205 output +false + + +-- !query 5206 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 0)) FROM t +-- !query 5206 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5206 output +false + + +-- !query 5207 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 0)) FROM t +-- !query 5207 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5207 output +false + + +-- !query 5208 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 0)) FROM t +-- !query 5208 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5208 output +false + + +-- !query 5209 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 0)) FROM t +-- !query 5209 schema +struct<> +-- !query 5209 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5210 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 1)) FROM t +-- !query 5210 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 5210 output +NULL + + +-- !query 5211 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(2, 1)) FROM t +-- !query 5211 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 5211 output +false + + +-- !query 5212 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 1)) FROM t +-- !query 5212 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 5212 output +false + + +-- !query 5213 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 1)) FROM t +-- !query 5213 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 5213 output +false + + +-- !query 5214 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 1)) FROM t +-- !query 5214 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 5214 output +false + + +-- !query 5215 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 1)) FROM t +-- !query 5215 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 5215 output +false + + +-- !query 5216 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 1)) FROM t +-- !query 5216 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 5216 output +false + + +-- !query 5217 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 1)) FROM t +-- !query 5217 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5217 output +false + + +-- !query 5218 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 1)) FROM t +-- !query 5218 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5218 output +false + + +-- !query 5219 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 1)) FROM t +-- !query 5219 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5219 output +false + + +-- !query 5220 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 1)) FROM t +-- !query 5220 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5220 output +false + + +-- !query 5221 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 1)) FROM t +-- !query 5221 schema +struct<> +-- !query 5221 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5222 +SELECT cast('1' as binary) > cast(1 as decimal(1, 0)) FROM t +-- !query 5222 schema +struct<> +-- !query 5222 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 5223 +SELECT cast('1' as binary) > cast(1 as decimal(3, 0)) FROM t +-- !query 5223 schema +struct<> +-- !query 5223 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 5224 +SELECT cast('1' as binary) > cast(1 as decimal(4, 0)) FROM t +-- !query 5224 schema +struct<> +-- !query 5224 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 5225 +SELECT cast('1' as binary) > cast(1 as decimal(5, 0)) FROM t +-- !query 5225 schema +struct<> +-- !query 5225 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 5226 +SELECT cast('1' as binary) > cast(1 as decimal(6, 0)) FROM t +-- !query 5226 schema +struct<> +-- !query 5226 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 5227 +SELECT cast('1' as binary) > cast(1 as decimal(10, 0)) FROM t +-- !query 5227 schema +struct<> +-- !query 5227 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 5228 +SELECT cast('1' as binary) > cast(1 as decimal(11, 0)) FROM t +-- !query 5228 schema +struct<> +-- !query 5228 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 5229 +SELECT cast('1' as binary) > cast(1 as decimal(20, 0)) FROM t +-- !query 5229 schema +struct<> +-- !query 5229 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 5230 +SELECT cast('1' as binary) > cast(1 as decimal(21, 0)) FROM t +-- !query 5230 schema +struct<> +-- !query 5230 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 5231 +SELECT cast('1' as binary) > cast(1 as decimal(38, 0)) FROM t +-- !query 5231 schema +struct<> +-- !query 5231 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 5232 +SELECT cast('1' as binary) > cast(1 as decimal(39, 0)) FROM t +-- !query 5232 schema +struct<> +-- !query 5232 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5233 +SELECT cast('1' as binary) > cast(1 as decimal(1, 1)) FROM t +-- !query 5233 schema +struct<> +-- !query 5233 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 5234 +SELECT cast('1' as binary) > cast(1 as decimal(2, 1)) FROM t +-- !query 5234 schema +struct<> +-- !query 5234 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 5235 +SELECT cast('1' as binary) > cast(1 as decimal(3, 1)) FROM t +-- !query 5235 schema +struct<> +-- !query 5235 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 5236 +SELECT cast('1' as binary) > cast(1 as decimal(4, 1)) FROM t +-- !query 5236 schema +struct<> +-- !query 5236 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 5237 +SELECT cast('1' as binary) > cast(1 as decimal(5, 1)) FROM t +-- !query 5237 schema +struct<> +-- !query 5237 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 5238 +SELECT cast('1' as binary) > cast(1 as decimal(6, 1)) FROM t +-- !query 5238 schema +struct<> +-- !query 5238 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 5239 +SELECT cast('1' as binary) > cast(1 as decimal(10, 1)) FROM t +-- !query 5239 schema +struct<> +-- !query 5239 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 5240 +SELECT cast('1' as binary) > cast(1 as decimal(11, 1)) FROM t +-- !query 5240 schema +struct<> +-- !query 5240 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 5241 +SELECT cast('1' as binary) > cast(1 as decimal(20, 1)) FROM t +-- !query 5241 schema +struct<> +-- !query 5241 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 5242 +SELECT cast('1' as binary) > cast(1 as decimal(21, 1)) FROM t +-- !query 5242 schema +struct<> +-- !query 5242 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 5243 +SELECT cast('1' as binary) > cast(1 as decimal(38, 1)) FROM t +-- !query 5243 schema +struct<> +-- !query 5243 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 5244 +SELECT cast('1' as binary) > cast(1 as decimal(39, 1)) FROM t +-- !query 5244 schema +struct<> +-- !query 5244 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5245 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 0)) FROM t +-- !query 5245 schema +struct<> +-- !query 5245 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 5246 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 0)) FROM t +-- !query 5246 schema +struct<> +-- !query 5246 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 5247 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 0)) FROM t +-- !query 5247 schema +struct<> +-- !query 5247 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 5248 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 0)) FROM t +-- !query 5248 schema +struct<> +-- !query 5248 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 5249 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 0)) FROM t +-- !query 5249 schema +struct<> +-- !query 5249 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 5250 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 0)) FROM t +-- !query 5250 schema +struct<> +-- !query 5250 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 5251 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 0)) FROM t +-- !query 5251 schema +struct<> +-- !query 5251 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 5252 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 0)) FROM t +-- !query 5252 schema +struct<> +-- !query 5252 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 5253 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 0)) FROM t +-- !query 5253 schema +struct<> +-- !query 5253 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 5254 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 0)) FROM t +-- !query 5254 schema +struct<> +-- !query 5254 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 5255 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 0)) FROM t +-- !query 5255 schema +struct<> +-- !query 5255 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5256 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 1)) FROM t +-- !query 5256 schema +struct<> +-- !query 5256 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 5257 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(2, 1)) FROM t +-- !query 5257 schema +struct<> +-- !query 5257 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 5258 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 1)) FROM t +-- !query 5258 schema +struct<> +-- !query 5258 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 5259 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 1)) FROM t +-- !query 5259 schema +struct<> +-- !query 5259 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 5260 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 1)) FROM t +-- !query 5260 schema +struct<> +-- !query 5260 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 5261 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 1)) FROM t +-- !query 5261 schema +struct<> +-- !query 5261 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 5262 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 1)) FROM t +-- !query 5262 schema +struct<> +-- !query 5262 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 5263 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 1)) FROM t +-- !query 5263 schema +struct<> +-- !query 5263 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 5264 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 1)) FROM t +-- !query 5264 schema +struct<> +-- !query 5264 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 5265 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 1)) FROM t +-- !query 5265 schema +struct<> +-- !query 5265 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 5266 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 1)) FROM t +-- !query 5266 schema +struct<> +-- !query 5266 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 5267 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 1)) FROM t +-- !query 5267 schema +struct<> +-- !query 5267 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5268 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 0)) FROM t +-- !query 5268 schema +struct<> +-- !query 5268 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 5269 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 0)) FROM t +-- !query 5269 schema +struct<> +-- !query 5269 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 5270 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 0)) FROM t +-- !query 5270 schema +struct<> +-- !query 5270 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 5271 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 0)) FROM t +-- !query 5271 schema +struct<> +-- !query 5271 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 5272 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 0)) FROM t +-- !query 5272 schema +struct<> +-- !query 5272 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 5273 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 0)) FROM t +-- !query 5273 schema +struct<> +-- !query 5273 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 5274 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 0)) FROM t +-- !query 5274 schema +struct<> +-- !query 5274 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 5275 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 0)) FROM t +-- !query 5275 schema +struct<> +-- !query 5275 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 5276 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 0)) FROM t +-- !query 5276 schema +struct<> +-- !query 5276 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 5277 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 0)) FROM t +-- !query 5277 schema +struct<> +-- !query 5277 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 5278 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 0)) FROM t +-- !query 5278 schema +struct<> +-- !query 5278 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 0)) FROM t + + +-- !query 5279 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 1)) FROM t +-- !query 5279 schema +struct<> +-- !query 5279 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 5280 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(2, 1)) FROM t +-- !query 5280 schema +struct<> +-- !query 5280 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 5281 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 1)) FROM t +-- !query 5281 schema +struct<> +-- !query 5281 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 5282 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 1)) FROM t +-- !query 5282 schema +struct<> +-- !query 5282 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 5283 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 1)) FROM t +-- !query 5283 schema +struct<> +-- !query 5283 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 5284 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 1)) FROM t +-- !query 5284 schema +struct<> +-- !query 5284 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 5285 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 1)) FROM t +-- !query 5285 schema +struct<> +-- !query 5285 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 5286 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 1)) FROM t +-- !query 5286 schema +struct<> +-- !query 5286 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 5287 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 1)) FROM t +-- !query 5287 schema +struct<> +-- !query 5287 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 5288 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 1)) FROM t +-- !query 5288 schema +struct<> +-- !query 5288 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 5289 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 1)) FROM t +-- !query 5289 schema +struct<> +-- !query 5289 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 5290 +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 1)) FROM t +-- !query 5290 schema +struct<> +-- !query 5290 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 1)) FROM t + + +-- !query 5291 +SELECT cast(1 as decimal(1, 0)) > cast(1 as tinyint) FROM t +-- !query 5291 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> +-- !query 5291 output +false + + +-- !query 5292 +SELECT cast(1 as decimal(3, 0)) > cast(1 as tinyint) FROM t +-- !query 5292 schema +struct<(CAST(1 AS DECIMAL(3,0)) > CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> +-- !query 5292 output +false + + +-- !query 5293 +SELECT cast(1 as decimal(4, 0)) > cast(1 as tinyint) FROM t +-- !query 5293 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> +-- !query 5293 output +false + + +-- !query 5294 +SELECT cast(1 as decimal(5, 0)) > cast(1 as tinyint) FROM t +-- !query 5294 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 5294 output +false + + +-- !query 5295 +SELECT cast(1 as decimal(6, 0)) > cast(1 as tinyint) FROM t +-- !query 5295 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> +-- !query 5295 output +false + + +-- !query 5296 +SELECT cast(1 as decimal(10, 0)) > cast(1 as tinyint) FROM t +-- !query 5296 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 5296 output +false + + +-- !query 5297 +SELECT cast(1 as decimal(11, 0)) > cast(1 as tinyint) FROM t +-- !query 5297 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> +-- !query 5297 output +false + + +-- !query 5298 +SELECT cast(1 as decimal(20, 0)) > cast(1 as tinyint) FROM t +-- !query 5298 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 5298 output +false + + +-- !query 5299 +SELECT cast(1 as decimal(21, 0)) > cast(1 as tinyint) FROM t +-- !query 5299 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> +-- !query 5299 output +false + + +-- !query 5300 +SELECT cast(1 as decimal(38, 0)) > cast(1 as tinyint) FROM t +-- !query 5300 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> +-- !query 5300 output +false + + +-- !query 5301 +SELECT cast(1 as decimal(39, 0)) > cast(1 as tinyint) FROM t +-- !query 5301 schema +struct<> +-- !query 5301 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as tinyint) FROM t + + +-- !query 5302 +SELECT cast(1 as decimal(1, 1)) > cast(1 as tinyint) FROM t +-- !query 5302 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5302 output +NULL + + +-- !query 5303 +SELECT cast(1 as decimal(2, 1)) > cast(1 as tinyint) FROM t +-- !query 5303 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5303 output +false + + +-- !query 5304 +SELECT cast(1 as decimal(3, 1)) > cast(1 as tinyint) FROM t +-- !query 5304 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5304 output +false + + +-- !query 5305 +SELECT cast(1 as decimal(4, 1)) > cast(1 as tinyint) FROM t +-- !query 5305 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5305 output +false + + +-- !query 5306 +SELECT cast(1 as decimal(5, 1)) > cast(1 as tinyint) FROM t +-- !query 5306 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> +-- !query 5306 output +false + + +-- !query 5307 +SELECT cast(1 as decimal(6, 1)) > cast(1 as tinyint) FROM t +-- !query 5307 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> +-- !query 5307 output +false + + +-- !query 5308 +SELECT cast(1 as decimal(10, 1)) > cast(1 as tinyint) FROM t +-- !query 5308 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> +-- !query 5308 output +false + + +-- !query 5309 +SELECT cast(1 as decimal(11, 1)) > cast(1 as tinyint) FROM t +-- !query 5309 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> +-- !query 5309 output +false + + +-- !query 5310 +SELECT cast(1 as decimal(20, 1)) > cast(1 as tinyint) FROM t +-- !query 5310 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> +-- !query 5310 output +false + + +-- !query 5311 +SELECT cast(1 as decimal(21, 1)) > cast(1 as tinyint) FROM t +-- !query 5311 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> +-- !query 5311 output +false + + +-- !query 5312 +SELECT cast(1 as decimal(38, 1)) > cast(1 as tinyint) FROM t +-- !query 5312 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> +-- !query 5312 output +false + + +-- !query 5313 +SELECT cast(1 as decimal(39, 1)) > cast(1 as tinyint) FROM t +-- !query 5313 schema +struct<> +-- !query 5313 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as tinyint) FROM t + + +-- !query 5314 +SELECT cast(1 as decimal(1, 0)) > cast(1 as smallint) FROM t +-- !query 5314 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5314 output +false + + +-- !query 5315 +SELECT cast(1 as decimal(3, 0)) > cast(1 as smallint) FROM t +-- !query 5315 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5315 output +false + + +-- !query 5316 +SELECT cast(1 as decimal(4, 0)) > cast(1 as smallint) FROM t +-- !query 5316 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5316 output +false + + +-- !query 5317 +SELECT cast(1 as decimal(5, 0)) > cast(1 as smallint) FROM t +-- !query 5317 schema +struct<(CAST(1 AS DECIMAL(5,0)) > CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> +-- !query 5317 output +false + + +-- !query 5318 +SELECT cast(1 as decimal(6, 0)) > cast(1 as smallint) FROM t +-- !query 5318 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> +-- !query 5318 output +false + + +-- !query 5319 +SELECT cast(1 as decimal(10, 0)) > cast(1 as smallint) FROM t +-- !query 5319 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 5319 output +false + + +-- !query 5320 +SELECT cast(1 as decimal(11, 0)) > cast(1 as smallint) FROM t +-- !query 5320 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> +-- !query 5320 output +false + + +-- !query 5321 +SELECT cast(1 as decimal(20, 0)) > cast(1 as smallint) FROM t +-- !query 5321 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 5321 output +false + + +-- !query 5322 +SELECT cast(1 as decimal(21, 0)) > cast(1 as smallint) FROM t +-- !query 5322 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> +-- !query 5322 output +false + + +-- !query 5323 +SELECT cast(1 as decimal(38, 0)) > cast(1 as smallint) FROM t +-- !query 5323 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> +-- !query 5323 output +false + + +-- !query 5324 +SELECT cast(1 as decimal(39, 0)) > cast(1 as smallint) FROM t +-- !query 5324 schema +struct<> +-- !query 5324 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as smallint) FROM t + + +-- !query 5325 +SELECT cast(1 as decimal(1, 1)) > cast(1 as smallint) FROM t +-- !query 5325 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5325 output +NULL + + +-- !query 5326 +SELECT cast(1 as decimal(2, 1)) > cast(1 as smallint) FROM t +-- !query 5326 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5326 output +false + + +-- !query 5327 +SELECT cast(1 as decimal(3, 1)) > cast(1 as smallint) FROM t +-- !query 5327 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5327 output +false + + +-- !query 5328 +SELECT cast(1 as decimal(4, 1)) > cast(1 as smallint) FROM t +-- !query 5328 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5328 output +false + + +-- !query 5329 +SELECT cast(1 as decimal(5, 1)) > cast(1 as smallint) FROM t +-- !query 5329 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5329 output +false + + +-- !query 5330 +SELECT cast(1 as decimal(6, 1)) > cast(1 as smallint) FROM t +-- !query 5330 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5330 output +false + + +-- !query 5331 +SELECT cast(1 as decimal(10, 1)) > cast(1 as smallint) FROM t +-- !query 5331 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> +-- !query 5331 output +false + + +-- !query 5332 +SELECT cast(1 as decimal(11, 1)) > cast(1 as smallint) FROM t +-- !query 5332 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> +-- !query 5332 output +false + + +-- !query 5333 +SELECT cast(1 as decimal(20, 1)) > cast(1 as smallint) FROM t +-- !query 5333 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> +-- !query 5333 output +false + + +-- !query 5334 +SELECT cast(1 as decimal(21, 1)) > cast(1 as smallint) FROM t +-- !query 5334 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> +-- !query 5334 output +false + + +-- !query 5335 +SELECT cast(1 as decimal(38, 1)) > cast(1 as smallint) FROM t +-- !query 5335 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> +-- !query 5335 output +false + + +-- !query 5336 +SELECT cast(1 as decimal(39, 1)) > cast(1 as smallint) FROM t +-- !query 5336 schema +struct<> +-- !query 5336 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as smallint) FROM t + + +-- !query 5337 +SELECT cast(1 as decimal(1, 0)) > cast(1 as int) FROM t +-- !query 5337 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5337 output +false + + +-- !query 5338 +SELECT cast(1 as decimal(3, 0)) > cast(1 as int) FROM t +-- !query 5338 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5338 output +false + + +-- !query 5339 +SELECT cast(1 as decimal(4, 0)) > cast(1 as int) FROM t +-- !query 5339 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5339 output +false + + +-- !query 5340 +SELECT cast(1 as decimal(5, 0)) > cast(1 as int) FROM t +-- !query 5340 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5340 output +false + + +-- !query 5341 +SELECT cast(1 as decimal(6, 0)) > cast(1 as int) FROM t +-- !query 5341 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5341 output +false + + +-- !query 5342 +SELECT cast(1 as decimal(10, 0)) > cast(1 as int) FROM t +-- !query 5342 schema +struct<(CAST(1 AS DECIMAL(10,0)) > CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> +-- !query 5342 output +false + + +-- !query 5343 +SELECT cast(1 as decimal(11, 0)) > cast(1 as int) FROM t +-- !query 5343 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 5343 output +false + + +-- !query 5344 +SELECT cast(1 as decimal(20, 0)) > cast(1 as int) FROM t +-- !query 5344 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 5344 output +false + + +-- !query 5345 +SELECT cast(1 as decimal(21, 0)) > cast(1 as int) FROM t +-- !query 5345 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 5345 output +false + + +-- !query 5346 +SELECT cast(1 as decimal(38, 0)) > cast(1 as int) FROM t +-- !query 5346 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 5346 output +false + + +-- !query 5347 +SELECT cast(1 as decimal(39, 0)) > cast(1 as int) FROM t +-- !query 5347 schema +struct<> +-- !query 5347 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as int) FROM t + + +-- !query 5348 +SELECT cast(1 as decimal(1, 1)) > cast(1 as int) FROM t +-- !query 5348 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5348 output +NULL + + +-- !query 5349 +SELECT cast(1 as decimal(2, 1)) > cast(1 as int) FROM t +-- !query 5349 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5349 output +false + + +-- !query 5350 +SELECT cast(1 as decimal(3, 1)) > cast(1 as int) FROM t +-- !query 5350 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5350 output +false + + +-- !query 5351 +SELECT cast(1 as decimal(4, 1)) > cast(1 as int) FROM t +-- !query 5351 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5351 output +false + + +-- !query 5352 +SELECT cast(1 as decimal(5, 1)) > cast(1 as int) FROM t +-- !query 5352 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5352 output +false + + +-- !query 5353 +SELECT cast(1 as decimal(6, 1)) > cast(1 as int) FROM t +-- !query 5353 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5353 output +false + + +-- !query 5354 +SELECT cast(1 as decimal(10, 1)) > cast(1 as int) FROM t +-- !query 5354 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5354 output +false + + +-- !query 5355 +SELECT cast(1 as decimal(11, 1)) > cast(1 as int) FROM t +-- !query 5355 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5355 output +false + + +-- !query 5356 +SELECT cast(1 as decimal(20, 1)) > cast(1 as int) FROM t +-- !query 5356 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 5356 output +false + + +-- !query 5357 +SELECT cast(1 as decimal(21, 1)) > cast(1 as int) FROM t +-- !query 5357 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 5357 output +false + + +-- !query 5358 +SELECT cast(1 as decimal(38, 1)) > cast(1 as int) FROM t +-- !query 5358 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 5358 output +false + + +-- !query 5359 +SELECT cast(1 as decimal(39, 1)) > cast(1 as int) FROM t +-- !query 5359 schema +struct<> +-- !query 5359 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as int) FROM t + + +-- !query 5360 +SELECT cast(1 as decimal(1, 0)) > cast(1 as bigint) FROM t +-- !query 5360 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5360 output +false + + +-- !query 5361 +SELECT cast(1 as decimal(3, 0)) > cast(1 as bigint) FROM t +-- !query 5361 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5361 output +false + + +-- !query 5362 +SELECT cast(1 as decimal(4, 0)) > cast(1 as bigint) FROM t +-- !query 5362 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5362 output +false + + +-- !query 5363 +SELECT cast(1 as decimal(5, 0)) > cast(1 as bigint) FROM t +-- !query 5363 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5363 output +false + + +-- !query 5364 +SELECT cast(1 as decimal(6, 0)) > cast(1 as bigint) FROM t +-- !query 5364 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5364 output +false + + +-- !query 5365 +SELECT cast(1 as decimal(10, 0)) > cast(1 as bigint) FROM t +-- !query 5365 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5365 output +false + + +-- !query 5366 +SELECT cast(1 as decimal(11, 0)) > cast(1 as bigint) FROM t +-- !query 5366 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5366 output +false + + +-- !query 5367 +SELECT cast(1 as decimal(20, 0)) > cast(1 as bigint) FROM t +-- !query 5367 schema +struct<(CAST(1 AS DECIMAL(20,0)) > CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> +-- !query 5367 output +false + + +-- !query 5368 +SELECT cast(1 as decimal(21, 0)) > cast(1 as bigint) FROM t +-- !query 5368 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> +-- !query 5368 output +false + + +-- !query 5369 +SELECT cast(1 as decimal(38, 0)) > cast(1 as bigint) FROM t +-- !query 5369 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> +-- !query 5369 output +false + + +-- !query 5370 +SELECT cast(1 as decimal(39, 0)) > cast(1 as bigint) FROM t +-- !query 5370 schema +struct<> +-- !query 5370 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as bigint) FROM t + + +-- !query 5371 +SELECT cast(1 as decimal(1, 1)) > cast(1 as bigint) FROM t +-- !query 5371 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5371 output +NULL + + +-- !query 5372 +SELECT cast(1 as decimal(2, 1)) > cast(1 as bigint) FROM t +-- !query 5372 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5372 output +false + + +-- !query 5373 +SELECT cast(1 as decimal(3, 1)) > cast(1 as bigint) FROM t +-- !query 5373 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5373 output +false + + +-- !query 5374 +SELECT cast(1 as decimal(4, 1)) > cast(1 as bigint) FROM t +-- !query 5374 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5374 output +false + + +-- !query 5375 +SELECT cast(1 as decimal(5, 1)) > cast(1 as bigint) FROM t +-- !query 5375 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5375 output +false + + +-- !query 5376 +SELECT cast(1 as decimal(6, 1)) > cast(1 as bigint) FROM t +-- !query 5376 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5376 output +false + + +-- !query 5377 +SELECT cast(1 as decimal(10, 1)) > cast(1 as bigint) FROM t +-- !query 5377 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5377 output +false + + +-- !query 5378 +SELECT cast(1 as decimal(11, 1)) > cast(1 as bigint) FROM t +-- !query 5378 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5378 output +false + + +-- !query 5379 +SELECT cast(1 as decimal(20, 1)) > cast(1 as bigint) FROM t +-- !query 5379 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5379 output +false + + +-- !query 5380 +SELECT cast(1 as decimal(21, 1)) > cast(1 as bigint) FROM t +-- !query 5380 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5380 output +false + + +-- !query 5381 +SELECT cast(1 as decimal(38, 1)) > cast(1 as bigint) FROM t +-- !query 5381 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> +-- !query 5381 output +false + + +-- !query 5382 +SELECT cast(1 as decimal(39, 1)) > cast(1 as bigint) FROM t +-- !query 5382 schema +struct<> +-- !query 5382 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as bigint) FROM t + + +-- !query 5383 +SELECT cast(1 as decimal(1, 0)) > cast(1 as float) FROM t +-- !query 5383 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5383 output +false + + +-- !query 5384 +SELECT cast(1 as decimal(3, 0)) > cast(1 as float) FROM t +-- !query 5384 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5384 output +false + + +-- !query 5385 +SELECT cast(1 as decimal(4, 0)) > cast(1 as float) FROM t +-- !query 5385 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5385 output +false + + +-- !query 5386 +SELECT cast(1 as decimal(5, 0)) > cast(1 as float) FROM t +-- !query 5386 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5386 output +false + + +-- !query 5387 +SELECT cast(1 as decimal(6, 0)) > cast(1 as float) FROM t +-- !query 5387 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5387 output +false + + +-- !query 5388 +SELECT cast(1 as decimal(10, 0)) > cast(1 as float) FROM t +-- !query 5388 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5388 output +false + + +-- !query 5389 +SELECT cast(1 as decimal(11, 0)) > cast(1 as float) FROM t +-- !query 5389 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5389 output +false + + +-- !query 5390 +SELECT cast(1 as decimal(20, 0)) > cast(1 as float) FROM t +-- !query 5390 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5390 output +false + + +-- !query 5391 +SELECT cast(1 as decimal(21, 0)) > cast(1 as float) FROM t +-- !query 5391 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5391 output +false + + +-- !query 5392 +SELECT cast(1 as decimal(38, 0)) > cast(1 as float) FROM t +-- !query 5392 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5392 output +false + + +-- !query 5393 +SELECT cast(1 as decimal(39, 0)) > cast(1 as float) FROM t +-- !query 5393 schema +struct<> +-- !query 5393 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as float) FROM t + + +-- !query 5394 +SELECT cast(1 as decimal(1, 1)) > cast(1 as float) FROM t +-- !query 5394 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5394 output +NULL + + +-- !query 5395 +SELECT cast(1 as decimal(2, 1)) > cast(1 as float) FROM t +-- !query 5395 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5395 output +false + + +-- !query 5396 +SELECT cast(1 as decimal(3, 1)) > cast(1 as float) FROM t +-- !query 5396 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5396 output +false + + +-- !query 5397 +SELECT cast(1 as decimal(4, 1)) > cast(1 as float) FROM t +-- !query 5397 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5397 output +false + + +-- !query 5398 +SELECT cast(1 as decimal(5, 1)) > cast(1 as float) FROM t +-- !query 5398 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5398 output +false + + +-- !query 5399 +SELECT cast(1 as decimal(6, 1)) > cast(1 as float) FROM t +-- !query 5399 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5399 output +false + + +-- !query 5400 +SELECT cast(1 as decimal(10, 1)) > cast(1 as float) FROM t +-- !query 5400 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5400 output +false + + +-- !query 5401 +SELECT cast(1 as decimal(11, 1)) > cast(1 as float) FROM t +-- !query 5401 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5401 output +false + + +-- !query 5402 +SELECT cast(1 as decimal(20, 1)) > cast(1 as float) FROM t +-- !query 5402 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5402 output +false + + +-- !query 5403 +SELECT cast(1 as decimal(21, 1)) > cast(1 as float) FROM t +-- !query 5403 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5403 output +false + + +-- !query 5404 +SELECT cast(1 as decimal(38, 1)) > cast(1 as float) FROM t +-- !query 5404 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5404 output +false + + +-- !query 5405 +SELECT cast(1 as decimal(39, 1)) > cast(1 as float) FROM t +-- !query 5405 schema +struct<> +-- !query 5405 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as float) FROM t + + +-- !query 5406 +SELECT cast(1 as decimal(1, 0)) > cast(1 as double) FROM t +-- !query 5406 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5406 output +false + + +-- !query 5407 +SELECT cast(1 as decimal(3, 0)) > cast(1 as double) FROM t +-- !query 5407 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5407 output +false + + +-- !query 5408 +SELECT cast(1 as decimal(4, 0)) > cast(1 as double) FROM t +-- !query 5408 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5408 output +false + + +-- !query 5409 +SELECT cast(1 as decimal(5, 0)) > cast(1 as double) FROM t +-- !query 5409 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5409 output +false + + +-- !query 5410 +SELECT cast(1 as decimal(6, 0)) > cast(1 as double) FROM t +-- !query 5410 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5410 output +false + + +-- !query 5411 +SELECT cast(1 as decimal(10, 0)) > cast(1 as double) FROM t +-- !query 5411 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5411 output +false + + +-- !query 5412 +SELECT cast(1 as decimal(11, 0)) > cast(1 as double) FROM t +-- !query 5412 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5412 output +false + + +-- !query 5413 +SELECT cast(1 as decimal(20, 0)) > cast(1 as double) FROM t +-- !query 5413 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5413 output +false + + +-- !query 5414 +SELECT cast(1 as decimal(21, 0)) > cast(1 as double) FROM t +-- !query 5414 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5414 output +false + + +-- !query 5415 +SELECT cast(1 as decimal(38, 0)) > cast(1 as double) FROM t +-- !query 5415 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5415 output +false + + +-- !query 5416 +SELECT cast(1 as decimal(39, 0)) > cast(1 as double) FROM t +-- !query 5416 schema +struct<> +-- !query 5416 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as double) FROM t + + +-- !query 5417 +SELECT cast(1 as decimal(1, 1)) > cast(1 as double) FROM t +-- !query 5417 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5417 output +NULL + + +-- !query 5418 +SELECT cast(1 as decimal(2, 1)) > cast(1 as double) FROM t +-- !query 5418 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5418 output +false + + +-- !query 5419 +SELECT cast(1 as decimal(3, 1)) > cast(1 as double) FROM t +-- !query 5419 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5419 output +false + + +-- !query 5420 +SELECT cast(1 as decimal(4, 1)) > cast(1 as double) FROM t +-- !query 5420 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5420 output +false + + +-- !query 5421 +SELECT cast(1 as decimal(5, 1)) > cast(1 as double) FROM t +-- !query 5421 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5421 output +false + + +-- !query 5422 +SELECT cast(1 as decimal(6, 1)) > cast(1 as double) FROM t +-- !query 5422 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5422 output +false + + +-- !query 5423 +SELECT cast(1 as decimal(10, 1)) > cast(1 as double) FROM t +-- !query 5423 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5423 output +false + + +-- !query 5424 +SELECT cast(1 as decimal(11, 1)) > cast(1 as double) FROM t +-- !query 5424 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5424 output +false + + +-- !query 5425 +SELECT cast(1 as decimal(20, 1)) > cast(1 as double) FROM t +-- !query 5425 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5425 output +false + + +-- !query 5426 +SELECT cast(1 as decimal(21, 1)) > cast(1 as double) FROM t +-- !query 5426 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5426 output +false + + +-- !query 5427 +SELECT cast(1 as decimal(38, 1)) > cast(1 as double) FROM t +-- !query 5427 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> +-- !query 5427 output +false + + +-- !query 5428 +SELECT cast(1 as decimal(39, 1)) > cast(1 as double) FROM t +-- !query 5428 schema +struct<> +-- !query 5428 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as double) FROM t + + +-- !query 5429 +SELECT cast(1 as decimal(1, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5429 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5429 output +false + + +-- !query 5430 +SELECT cast(1 as decimal(3, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5430 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5430 output +false + + +-- !query 5431 +SELECT cast(1 as decimal(4, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5431 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5431 output +false + + +-- !query 5432 +SELECT cast(1 as decimal(5, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5432 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5432 output +false + + +-- !query 5433 +SELECT cast(1 as decimal(6, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5433 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5433 output +false + + +-- !query 5434 +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5434 schema +struct<(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 5434 output +false + + +-- !query 5435 +SELECT cast(1 as decimal(11, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5435 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 5435 output +false + + +-- !query 5436 +SELECT cast(1 as decimal(20, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5436 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 5436 output +false + + +-- !query 5437 +SELECT cast(1 as decimal(21, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5437 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 5437 output +false + + +-- !query 5438 +SELECT cast(1 as decimal(38, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5438 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 5438 output +false + + +-- !query 5439 +SELECT cast(1 as decimal(39, 0)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5439 schema +struct<> +-- !query 5439 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as decimal(10, 0)) FROM t + + +-- !query 5440 +SELECT cast(1 as decimal(1, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5440 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5440 output +NULL + + +-- !query 5441 +SELECT cast(1 as decimal(2, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5441 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5441 output +false + + +-- !query 5442 +SELECT cast(1 as decimal(3, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5442 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5442 output +false + + +-- !query 5443 +SELECT cast(1 as decimal(4, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5443 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5443 output +false + + +-- !query 5444 +SELECT cast(1 as decimal(5, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5444 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5444 output +false + + +-- !query 5445 +SELECT cast(1 as decimal(6, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5445 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5445 output +false + + +-- !query 5446 +SELECT cast(1 as decimal(10, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5446 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5446 output +false + + +-- !query 5447 +SELECT cast(1 as decimal(11, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5447 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5447 output +false + + +-- !query 5448 +SELECT cast(1 as decimal(20, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5448 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 5448 output +false + + +-- !query 5449 +SELECT cast(1 as decimal(21, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5449 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 5449 output +false + + +-- !query 5450 +SELECT cast(1 as decimal(38, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5450 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 5450 output +false + + +-- !query 5451 +SELECT cast(1 as decimal(39, 1)) > cast(1 as decimal(10, 0)) FROM t +-- !query 5451 schema +struct<> +-- !query 5451 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as decimal(10, 0)) FROM t + + +-- !query 5452 +SELECT cast(1 as decimal(1, 0)) > cast(1 as string) FROM t +-- !query 5452 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5452 output +false + + +-- !query 5453 +SELECT cast(1 as decimal(3, 0)) > cast(1 as string) FROM t +-- !query 5453 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5453 output +false + + +-- !query 5454 +SELECT cast(1 as decimal(4, 0)) > cast(1 as string) FROM t +-- !query 5454 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5454 output +false + + +-- !query 5455 +SELECT cast(1 as decimal(5, 0)) > cast(1 as string) FROM t +-- !query 5455 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5455 output +false + + +-- !query 5456 +SELECT cast(1 as decimal(6, 0)) > cast(1 as string) FROM t +-- !query 5456 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5456 output +false + + +-- !query 5457 +SELECT cast(1 as decimal(10, 0)) > cast(1 as string) FROM t +-- !query 5457 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5457 output +false + + +-- !query 5458 +SELECT cast(1 as decimal(11, 0)) > cast(1 as string) FROM t +-- !query 5458 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5458 output +false + + +-- !query 5459 +SELECT cast(1 as decimal(20, 0)) > cast(1 as string) FROM t +-- !query 5459 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5459 output +false + + +-- !query 5460 +SELECT cast(1 as decimal(21, 0)) > cast(1 as string) FROM t +-- !query 5460 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5460 output +false + + +-- !query 5461 +SELECT cast(1 as decimal(38, 0)) > cast(1 as string) FROM t +-- !query 5461 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5461 output +false + + +-- !query 5462 +SELECT cast(1 as decimal(39, 0)) > cast(1 as string) FROM t +-- !query 5462 schema +struct<> +-- !query 5462 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as string) FROM t + + +-- !query 5463 +SELECT cast(1 as decimal(1, 1)) > cast(1 as string) FROM t +-- !query 5463 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5463 output +NULL + + +-- !query 5464 +SELECT cast(1 as decimal(2, 1)) > cast(1 as string) FROM t +-- !query 5464 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5464 output +false + + +-- !query 5465 +SELECT cast(1 as decimal(3, 1)) > cast(1 as string) FROM t +-- !query 5465 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5465 output +false + + +-- !query 5466 +SELECT cast(1 as decimal(4, 1)) > cast(1 as string) FROM t +-- !query 5466 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5466 output +false + + +-- !query 5467 +SELECT cast(1 as decimal(5, 1)) > cast(1 as string) FROM t +-- !query 5467 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5467 output +false + + +-- !query 5468 +SELECT cast(1 as decimal(6, 1)) > cast(1 as string) FROM t +-- !query 5468 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5468 output +false + + +-- !query 5469 +SELECT cast(1 as decimal(10, 1)) > cast(1 as string) FROM t +-- !query 5469 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5469 output +false + + +-- !query 5470 +SELECT cast(1 as decimal(11, 1)) > cast(1 as string) FROM t +-- !query 5470 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5470 output +false + + +-- !query 5471 +SELECT cast(1 as decimal(20, 1)) > cast(1 as string) FROM t +-- !query 5471 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5471 output +false + + +-- !query 5472 +SELECT cast(1 as decimal(21, 1)) > cast(1 as string) FROM t +-- !query 5472 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5472 output +false + + +-- !query 5473 +SELECT cast(1 as decimal(38, 1)) > cast(1 as string) FROM t +-- !query 5473 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5473 output +false + + +-- !query 5474 +SELECT cast(1 as decimal(39, 1)) > cast(1 as string) FROM t +-- !query 5474 schema +struct<> +-- !query 5474 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as string) FROM t + + +-- !query 5475 +SELECT cast(1 as decimal(1, 0)) > cast('1' as binary) FROM t +-- !query 5475 schema +struct<> +-- !query 5475 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 5476 +SELECT cast(1 as decimal(3, 0)) > cast('1' as binary) FROM t +-- !query 5476 schema +struct<> +-- !query 5476 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 5477 +SELECT cast(1 as decimal(4, 0)) > cast('1' as binary) FROM t +-- !query 5477 schema +struct<> +-- !query 5477 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 5478 +SELECT cast(1 as decimal(5, 0)) > cast('1' as binary) FROM t +-- !query 5478 schema +struct<> +-- !query 5478 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 5479 +SELECT cast(1 as decimal(6, 0)) > cast('1' as binary) FROM t +-- !query 5479 schema +struct<> +-- !query 5479 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 5480 +SELECT cast(1 as decimal(10, 0)) > cast('1' as binary) FROM t +-- !query 5480 schema +struct<> +-- !query 5480 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 5481 +SELECT cast(1 as decimal(11, 0)) > cast('1' as binary) FROM t +-- !query 5481 schema +struct<> +-- !query 5481 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 5482 +SELECT cast(1 as decimal(20, 0)) > cast('1' as binary) FROM t +-- !query 5482 schema +struct<> +-- !query 5482 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 5483 +SELECT cast(1 as decimal(21, 0)) > cast('1' as binary) FROM t +-- !query 5483 schema +struct<> +-- !query 5483 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 5484 +SELECT cast(1 as decimal(38, 0)) > cast('1' as binary) FROM t +-- !query 5484 schema +struct<> +-- !query 5484 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 5485 +SELECT cast(1 as decimal(39, 0)) > cast('1' as binary) FROM t +-- !query 5485 schema +struct<> +-- !query 5485 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast('1' as binary) FROM t + + +-- !query 5486 +SELECT cast(1 as decimal(1, 1)) > cast('1' as binary) FROM t +-- !query 5486 schema +struct<> +-- !query 5486 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 5487 +SELECT cast(1 as decimal(2, 1)) > cast('1' as binary) FROM t +-- !query 5487 schema +struct<> +-- !query 5487 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 5488 +SELECT cast(1 as decimal(3, 1)) > cast('1' as binary) FROM t +-- !query 5488 schema +struct<> +-- !query 5488 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 5489 +SELECT cast(1 as decimal(4, 1)) > cast('1' as binary) FROM t +-- !query 5489 schema +struct<> +-- !query 5489 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 5490 +SELECT cast(1 as decimal(5, 1)) > cast('1' as binary) FROM t +-- !query 5490 schema +struct<> +-- !query 5490 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 5491 +SELECT cast(1 as decimal(6, 1)) > cast('1' as binary) FROM t +-- !query 5491 schema +struct<> +-- !query 5491 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 5492 +SELECT cast(1 as decimal(10, 1)) > cast('1' as binary) FROM t +-- !query 5492 schema +struct<> +-- !query 5492 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 5493 +SELECT cast(1 as decimal(11, 1)) > cast('1' as binary) FROM t +-- !query 5493 schema +struct<> +-- !query 5493 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 5494 +SELECT cast(1 as decimal(20, 1)) > cast('1' as binary) FROM t +-- !query 5494 schema +struct<> +-- !query 5494 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 5495 +SELECT cast(1 as decimal(21, 1)) > cast('1' as binary) FROM t +-- !query 5495 schema +struct<> +-- !query 5495 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 5496 +SELECT cast(1 as decimal(38, 1)) > cast('1' as binary) FROM t +-- !query 5496 schema +struct<> +-- !query 5496 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 5497 +SELECT cast(1 as decimal(39, 1)) > cast('1' as binary) FROM t +-- !query 5497 schema +struct<> +-- !query 5497 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast('1' as binary) FROM t + + +-- !query 5498 +SELECT cast(1 as decimal(1, 0)) > cast(1 as boolean) FROM t +-- !query 5498 schema +struct<> +-- !query 5498 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 5499 +SELECT cast(1 as decimal(3, 0)) > cast(1 as boolean) FROM t +-- !query 5499 schema +struct<> +-- !query 5499 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 5500 +SELECT cast(1 as decimal(4, 0)) > cast(1 as boolean) FROM t +-- !query 5500 schema +struct<> +-- !query 5500 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 5501 +SELECT cast(1 as decimal(5, 0)) > cast(1 as boolean) FROM t +-- !query 5501 schema +struct<> +-- !query 5501 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 5502 +SELECT cast(1 as decimal(6, 0)) > cast(1 as boolean) FROM t +-- !query 5502 schema +struct<> +-- !query 5502 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 5503 +SELECT cast(1 as decimal(10, 0)) > cast(1 as boolean) FROM t +-- !query 5503 schema +struct<> +-- !query 5503 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 5504 +SELECT cast(1 as decimal(11, 0)) > cast(1 as boolean) FROM t +-- !query 5504 schema +struct<> +-- !query 5504 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 5505 +SELECT cast(1 as decimal(20, 0)) > cast(1 as boolean) FROM t +-- !query 5505 schema +struct<> +-- !query 5505 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 5506 +SELECT cast(1 as decimal(21, 0)) > cast(1 as boolean) FROM t +-- !query 5506 schema +struct<> +-- !query 5506 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 5507 +SELECT cast(1 as decimal(38, 0)) > cast(1 as boolean) FROM t +-- !query 5507 schema +struct<> +-- !query 5507 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 5508 +SELECT cast(1 as decimal(39, 0)) > cast(1 as boolean) FROM t +-- !query 5508 schema +struct<> +-- !query 5508 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast(1 as boolean) FROM t + + +-- !query 5509 +SELECT cast(1 as decimal(1, 1)) > cast(1 as boolean) FROM t +-- !query 5509 schema +struct<> +-- !query 5509 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 5510 +SELECT cast(1 as decimal(2, 1)) > cast(1 as boolean) FROM t +-- !query 5510 schema +struct<> +-- !query 5510 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 5511 +SELECT cast(1 as decimal(3, 1)) > cast(1 as boolean) FROM t +-- !query 5511 schema +struct<> +-- !query 5511 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 5512 +SELECT cast(1 as decimal(4, 1)) > cast(1 as boolean) FROM t +-- !query 5512 schema +struct<> +-- !query 5512 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 5513 +SELECT cast(1 as decimal(5, 1)) > cast(1 as boolean) FROM t +-- !query 5513 schema +struct<> +-- !query 5513 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 5514 +SELECT cast(1 as decimal(6, 1)) > cast(1 as boolean) FROM t +-- !query 5514 schema +struct<> +-- !query 5514 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 5515 +SELECT cast(1 as decimal(10, 1)) > cast(1 as boolean) FROM t +-- !query 5515 schema +struct<> +-- !query 5515 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 5516 +SELECT cast(1 as decimal(11, 1)) > cast(1 as boolean) FROM t +-- !query 5516 schema +struct<> +-- !query 5516 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 5517 +SELECT cast(1 as decimal(20, 1)) > cast(1 as boolean) FROM t +-- !query 5517 schema +struct<> +-- !query 5517 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 5518 +SELECT cast(1 as decimal(21, 1)) > cast(1 as boolean) FROM t +-- !query 5518 schema +struct<> +-- !query 5518 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 5519 +SELECT cast(1 as decimal(38, 1)) > cast(1 as boolean) FROM t +-- !query 5519 schema +struct<> +-- !query 5519 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 5520 +SELECT cast(1 as decimal(39, 1)) > cast(1 as boolean) FROM t +-- !query 5520 schema +struct<> +-- !query 5520 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast(1 as boolean) FROM t + + +-- !query 5521 +SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5521 schema +struct<> +-- !query 5521 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 5522 +SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5522 schema +struct<> +-- !query 5522 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 5523 +SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5523 schema +struct<> +-- !query 5523 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 5524 +SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5524 schema +struct<> +-- !query 5524 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 5525 +SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5525 schema +struct<> +-- !query 5525 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 5526 +SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5526 schema +struct<> +-- !query 5526 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 5527 +SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5527 schema +struct<> +-- !query 5527 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 5528 +SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5528 schema +struct<> +-- !query 5528 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 5529 +SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5529 schema +struct<> +-- !query 5529 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 5530 +SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5530 schema +struct<> +-- !query 5530 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 5531 +SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5531 schema +struct<> +-- !query 5531 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 5532 +SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5532 schema +struct<> +-- !query 5532 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 5533 +SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5533 schema +struct<> +-- !query 5533 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 5534 +SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5534 schema +struct<> +-- !query 5534 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 5535 +SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5535 schema +struct<> +-- !query 5535 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 5536 +SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5536 schema +struct<> +-- !query 5536 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 5537 +SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5537 schema +struct<> +-- !query 5537 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 5538 +SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5538 schema +struct<> +-- !query 5538 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 5539 +SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5539 schema +struct<> +-- !query 5539 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 5540 +SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5540 schema +struct<> +-- !query 5540 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 5541 +SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5541 schema +struct<> +-- !query 5541 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 5542 +SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5542 schema +struct<> +-- !query 5542 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 5543 +SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 5543 schema +struct<> +-- !query 5543 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 5544 +SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5544 schema +struct<> +-- !query 5544 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 5545 +SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5545 schema +struct<> +-- !query 5545 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 5546 +SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5546 schema +struct<> +-- !query 5546 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 5547 +SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5547 schema +struct<> +-- !query 5547 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 5548 +SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5548 schema +struct<> +-- !query 5548 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 5549 +SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5549 schema +struct<> +-- !query 5549 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 5550 +SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5550 schema +struct<> +-- !query 5550 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 5551 +SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5551 schema +struct<> +-- !query 5551 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 5552 +SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5552 schema +struct<> +-- !query 5552 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 5553 +SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5553 schema +struct<> +-- !query 5553 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 5554 +SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5554 schema +struct<> +-- !query 5554 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 5555 +SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5555 schema +struct<> +-- !query 5555 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 5556 +SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5556 schema +struct<> +-- !query 5556 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 5557 +SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5557 schema +struct<> +-- !query 5557 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 5558 +SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5558 schema +struct<> +-- !query 5558 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 5559 +SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5559 schema +struct<> +-- !query 5559 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 5560 +SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5560 schema +struct<> +-- !query 5560 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 5561 +SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5561 schema +struct<> +-- !query 5561 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 5562 +SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5562 schema +struct<> +-- !query 5562 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 5563 +SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5563 schema +struct<> +-- !query 5563 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 5564 +SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5564 schema +struct<> +-- !query 5564 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 5565 +SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5565 schema +struct<> +-- !query 5565 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 5566 +SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00' as date) FROM t +-- !query 5566 schema +struct<> +-- !query 5566 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 5567 +SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5567 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> +-- !query 5567 output +true + + +-- !query 5568 +SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5568 schema +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) >= CAST(1 AS DECIMAL(3,0))):boolean> +-- !query 5568 output +true + + +-- !query 5569 +SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5569 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> +-- !query 5569 output +true + + +-- !query 5570 +SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5570 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5570 output +true + + +-- !query 5571 +SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5571 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 5571 output +true + + +-- !query 5572 +SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5572 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5572 output +true + + +-- !query 5573 +SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5573 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5573 output +true + + +-- !query 5574 +SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5574 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5574 output +true + + +-- !query 5575 +SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5575 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5575 output +true + + +-- !query 5576 +SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5576 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5576 output +true + + +-- !query 5577 +SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5577 schema +struct<> +-- !query 5577 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5578 +SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5578 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> +-- !query 5578 output +NULL + + +-- !query 5579 +SELECT cast(1 as tinyint) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5579 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> +-- !query 5579 output +true + + +-- !query 5580 +SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5580 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> +-- !query 5580 output +true + + +-- !query 5581 +SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5581 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> +-- !query 5581 output +true + + +-- !query 5582 +SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5582 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> +-- !query 5582 output +true + + +-- !query 5583 +SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5583 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 5583 output +true + + +-- !query 5584 +SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5584 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 5584 output +true + + +-- !query 5585 +SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5585 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5585 output +true + + +-- !query 5586 +SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5586 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5586 output +true + + +-- !query 5587 +SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5587 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5587 output +true + + +-- !query 5588 +SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5588 schema +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5588 output +true + + +-- !query 5589 +SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5589 schema +struct<> +-- !query 5589 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5590 +SELECT cast(1 as smallint) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5590 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> +-- !query 5590 output +true + + +-- !query 5591 +SELECT cast(1 as smallint) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5591 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 5591 output +true + + +-- !query 5592 +SELECT cast(1 as smallint) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5592 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> +-- !query 5592 output +true + + +-- !query 5593 +SELECT cast(1 as smallint) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5593 schema +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) >= CAST(1 AS DECIMAL(5,0))):boolean> +-- !query 5593 output +true + + +-- !query 5594 +SELECT cast(1 as smallint) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5594 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> +-- !query 5594 output +true + + +-- !query 5595 +SELECT cast(1 as smallint) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5595 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5595 output +true + + +-- !query 5596 +SELECT cast(1 as smallint) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5596 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5596 output +true + + +-- !query 5597 +SELECT cast(1 as smallint) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5597 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5597 output +true + + +-- !query 5598 +SELECT cast(1 as smallint) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5598 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5598 output +true + + +-- !query 5599 +SELECT cast(1 as smallint) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5599 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5599 output +true + + +-- !query 5600 +SELECT cast(1 as smallint) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5600 schema +struct<> +-- !query 5600 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5601 +SELECT cast(1 as smallint) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5601 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> +-- !query 5601 output +NULL + + +-- !query 5602 +SELECT cast(1 as smallint) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5602 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> +-- !query 5602 output +true + + +-- !query 5603 +SELECT cast(1 as smallint) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5603 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> +-- !query 5603 output +true + + +-- !query 5604 +SELECT cast(1 as smallint) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5604 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> +-- !query 5604 output +true + + +-- !query 5605 +SELECT cast(1 as smallint) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5605 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> +-- !query 5605 output +true + + +-- !query 5606 +SELECT cast(1 as smallint) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5606 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> +-- !query 5606 output +true + + +-- !query 5607 +SELECT cast(1 as smallint) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5607 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> +-- !query 5607 output +true + + +-- !query 5608 +SELECT cast(1 as smallint) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5608 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5608 output +true + + +-- !query 5609 +SELECT cast(1 as smallint) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5609 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5609 output +true + + +-- !query 5610 +SELECT cast(1 as smallint) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5610 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5610 output +true + + +-- !query 5611 +SELECT cast(1 as smallint) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5611 schema +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5611 output +true + + +-- !query 5612 +SELECT cast(1 as smallint) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5612 schema +struct<> +-- !query 5612 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5613 +SELECT cast(1 as int) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5613 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 5613 output +true + + +-- !query 5614 +SELECT cast(1 as int) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5614 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 5614 output +true + + +-- !query 5615 +SELECT cast(1 as int) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5615 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 5615 output +true + + +-- !query 5616 +SELECT cast(1 as int) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5616 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 5616 output +true + + +-- !query 5617 +SELECT cast(1 as int) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5617 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 5617 output +true + + +-- !query 5618 +SELECT cast(1 as int) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5618 schema +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 5618 output +true + + +-- !query 5619 +SELECT cast(1 as int) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5619 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5619 output +true + + +-- !query 5620 +SELECT cast(1 as int) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5620 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5620 output +true + + +-- !query 5621 +SELECT cast(1 as int) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5621 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5621 output +true + + +-- !query 5622 +SELECT cast(1 as int) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5622 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5622 output +true + + +-- !query 5623 +SELECT cast(1 as int) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5623 schema +struct<> +-- !query 5623 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5624 +SELECT cast(1 as int) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5624 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 5624 output +NULL + + +-- !query 5625 +SELECT cast(1 as int) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5625 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 5625 output +true + + +-- !query 5626 +SELECT cast(1 as int) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5626 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 5626 output +true + + +-- !query 5627 +SELECT cast(1 as int) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5627 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 5627 output +true + + +-- !query 5628 +SELECT cast(1 as int) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5628 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 5628 output +true + + +-- !query 5629 +SELECT cast(1 as int) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5629 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 5629 output +true + + +-- !query 5630 +SELECT cast(1 as int) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5630 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 5630 output +true + + +-- !query 5631 +SELECT cast(1 as int) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5631 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5631 output +true + + +-- !query 5632 +SELECT cast(1 as int) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5632 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5632 output +true + + +-- !query 5633 +SELECT cast(1 as int) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5633 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5633 output +true + + +-- !query 5634 +SELECT cast(1 as int) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5634 schema +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5634 output +true + + +-- !query 5635 +SELECT cast(1 as int) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5635 schema +struct<> +-- !query 5635 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5636 +SELECT cast(1 as bigint) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5636 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> +-- !query 5636 output +true + + +-- !query 5637 +SELECT cast(1 as bigint) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5637 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 5637 output +true + + +-- !query 5638 +SELECT cast(1 as bigint) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5638 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> +-- !query 5638 output +true + + +-- !query 5639 +SELECT cast(1 as bigint) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5639 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 5639 output +true + + +-- !query 5640 +SELECT cast(1 as bigint) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5640 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> +-- !query 5640 output +true + + +-- !query 5641 +SELECT cast(1 as bigint) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5641 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 5641 output +true + + +-- !query 5642 +SELECT cast(1 as bigint) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5642 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> +-- !query 5642 output +true + + +-- !query 5643 +SELECT cast(1 as bigint) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5643 schema +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) >= CAST(1 AS DECIMAL(20,0))):boolean> +-- !query 5643 output +true + + +-- !query 5644 +SELECT cast(1 as bigint) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5644 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5644 output +true + + +-- !query 5645 +SELECT cast(1 as bigint) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5645 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5645 output +true + + +-- !query 5646 +SELECT cast(1 as bigint) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5646 schema +struct<> +-- !query 5646 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5647 +SELECT cast(1 as bigint) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5647 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> +-- !query 5647 output +NULL + + +-- !query 5648 +SELECT cast(1 as bigint) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5648 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> +-- !query 5648 output +true + + +-- !query 5649 +SELECT cast(1 as bigint) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5649 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> +-- !query 5649 output +true + + +-- !query 5650 +SELECT cast(1 as bigint) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5650 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> +-- !query 5650 output +true + + +-- !query 5651 +SELECT cast(1 as bigint) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5651 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> +-- !query 5651 output +true + + +-- !query 5652 +SELECT cast(1 as bigint) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5652 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> +-- !query 5652 output +true + + +-- !query 5653 +SELECT cast(1 as bigint) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5653 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> +-- !query 5653 output +true + + +-- !query 5654 +SELECT cast(1 as bigint) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5654 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> +-- !query 5654 output +true + + +-- !query 5655 +SELECT cast(1 as bigint) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5655 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> +-- !query 5655 output +true + + +-- !query 5656 +SELECT cast(1 as bigint) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5656 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5656 output +true + + +-- !query 5657 +SELECT cast(1 as bigint) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5657 schema +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5657 output +true + + +-- !query 5658 +SELECT cast(1 as bigint) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5658 schema +struct<> +-- !query 5658 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5659 +SELECT cast(1 as float) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5659 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 5659 output +true + + +-- !query 5660 +SELECT cast(1 as float) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5660 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 5660 output +true + + +-- !query 5661 +SELECT cast(1 as float) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5661 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 5661 output +true + + +-- !query 5662 +SELECT cast(1 as float) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5662 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 5662 output +true + + +-- !query 5663 +SELECT cast(1 as float) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5663 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 5663 output +true + + +-- !query 5664 +SELECT cast(1 as float) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5664 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 5664 output +true + + +-- !query 5665 +SELECT cast(1 as float) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5665 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 5665 output +true + + +-- !query 5666 +SELECT cast(1 as float) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5666 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 5666 output +true + + +-- !query 5667 +SELECT cast(1 as float) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5667 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 5667 output +true + + +-- !query 5668 +SELECT cast(1 as float) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5668 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 5668 output +true + + +-- !query 5669 +SELECT cast(1 as float) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5669 schema +struct<> +-- !query 5669 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5670 +SELECT cast(1 as float) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5670 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 5670 output +NULL + + +-- !query 5671 +SELECT cast(1 as float) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5671 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 5671 output +true + + +-- !query 5672 +SELECT cast(1 as float) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5672 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 5672 output +true + + +-- !query 5673 +SELECT cast(1 as float) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5673 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 5673 output +true + + +-- !query 5674 +SELECT cast(1 as float) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5674 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 5674 output +true + + +-- !query 5675 +SELECT cast(1 as float) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5675 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 5675 output +true + + +-- !query 5676 +SELECT cast(1 as float) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5676 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 5676 output +true + + +-- !query 5677 +SELECT cast(1 as float) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5677 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 5677 output +true + + +-- !query 5678 +SELECT cast(1 as float) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5678 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 5678 output +true + + +-- !query 5679 +SELECT cast(1 as float) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5679 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 5679 output +true + + +-- !query 5680 +SELECT cast(1 as float) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5680 schema +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 5680 output +true + + +-- !query 5681 +SELECT cast(1 as float) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5681 schema +struct<> +-- !query 5681 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5682 +SELECT cast(1 as double) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5682 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> +-- !query 5682 output +true + + +-- !query 5683 +SELECT cast(1 as double) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5683 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> +-- !query 5683 output +true + + +-- !query 5684 +SELECT cast(1 as double) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5684 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> +-- !query 5684 output +true + + +-- !query 5685 +SELECT cast(1 as double) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5685 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> +-- !query 5685 output +true + + +-- !query 5686 +SELECT cast(1 as double) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5686 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> +-- !query 5686 output +true + + +-- !query 5687 +SELECT cast(1 as double) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5687 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> +-- !query 5687 output +true + + +-- !query 5688 +SELECT cast(1 as double) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5688 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> +-- !query 5688 output +true + + +-- !query 5689 +SELECT cast(1 as double) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5689 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> +-- !query 5689 output +true + + +-- !query 5690 +SELECT cast(1 as double) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5690 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> +-- !query 5690 output +true + + +-- !query 5691 +SELECT cast(1 as double) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5691 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> +-- !query 5691 output +true + + +-- !query 5692 +SELECT cast(1 as double) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5692 schema +struct<> +-- !query 5692 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5693 +SELECT cast(1 as double) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5693 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> +-- !query 5693 output +NULL + + +-- !query 5694 +SELECT cast(1 as double) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5694 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> +-- !query 5694 output +true + + +-- !query 5695 +SELECT cast(1 as double) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5695 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> +-- !query 5695 output +true + + +-- !query 5696 +SELECT cast(1 as double) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5696 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> +-- !query 5696 output +true + + +-- !query 5697 +SELECT cast(1 as double) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5697 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> +-- !query 5697 output +true + + +-- !query 5698 +SELECT cast(1 as double) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5698 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> +-- !query 5698 output +true + + +-- !query 5699 +SELECT cast(1 as double) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5699 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> +-- !query 5699 output +true + + +-- !query 5700 +SELECT cast(1 as double) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5700 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> +-- !query 5700 output +true + + +-- !query 5701 +SELECT cast(1 as double) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5701 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> +-- !query 5701 output +true + + +-- !query 5702 +SELECT cast(1 as double) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5702 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> +-- !query 5702 output +true + + +-- !query 5703 +SELECT cast(1 as double) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5703 schema +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> +-- !query 5703 output +true + + +-- !query 5704 +SELECT cast(1 as double) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5704 schema +struct<> +-- !query 5704 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5705 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5705 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> +-- !query 5705 output +true + + +-- !query 5706 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5706 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 5706 output +true + + +-- !query 5707 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5707 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> +-- !query 5707 output +true + + +-- !query 5708 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5708 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 5708 output +true + + +-- !query 5709 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5709 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> +-- !query 5709 output +true + + +-- !query 5710 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5710 schema +struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 5710 output +true + + +-- !query 5711 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5711 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> +-- !query 5711 output +true + + +-- !query 5712 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5712 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5712 output +true + + +-- !query 5713 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5713 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> +-- !query 5713 output +true + + +-- !query 5714 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5714 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> +-- !query 5714 output +true + + +-- !query 5715 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5715 schema +struct<> +-- !query 5715 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5716 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5716 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> +-- !query 5716 output +NULL + + +-- !query 5717 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5717 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> +-- !query 5717 output +true + + +-- !query 5718 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5718 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> +-- !query 5718 output +true + + +-- !query 5719 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5719 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> +-- !query 5719 output +true + + +-- !query 5720 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5720 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> +-- !query 5720 output +true + + +-- !query 5721 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5721 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> +-- !query 5721 output +true + + +-- !query 5722 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5722 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> +-- !query 5722 output +true + + +-- !query 5723 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5723 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> +-- !query 5723 output +true + + +-- !query 5724 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5724 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> +-- !query 5724 output +true + + +-- !query 5725 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5725 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> +-- !query 5725 output +true + + +-- !query 5726 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5726 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> +-- !query 5726 output +true + + +-- !query 5727 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5727 schema +struct<> +-- !query 5727 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5728 +SELECT cast('1' as binary) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5728 schema +struct<> +-- !query 5728 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 5729 +SELECT cast('1' as binary) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5729 schema +struct<> +-- !query 5729 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 5730 +SELECT cast('1' as binary) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5730 schema +struct<> +-- !query 5730 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 5731 +SELECT cast('1' as binary) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5731 schema +struct<> +-- !query 5731 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 5732 +SELECT cast('1' as binary) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5732 schema +struct<> +-- !query 5732 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 5733 +SELECT cast('1' as binary) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5733 schema +struct<> +-- !query 5733 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 5734 +SELECT cast('1' as binary) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5734 schema +struct<> +-- !query 5734 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 5735 +SELECT cast('1' as binary) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5735 schema +struct<> +-- !query 5735 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 5736 +SELECT cast('1' as binary) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5736 schema +struct<> +-- !query 5736 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 5737 +SELECT cast('1' as binary) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5737 schema +struct<> +-- !query 5737 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 5738 +SELECT cast('1' as binary) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5738 schema +struct<> +-- !query 5738 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5739 +SELECT cast('1' as binary) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5739 schema +struct<> +-- !query 5739 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 5740 +SELECT cast('1' as binary) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5740 schema +struct<> +-- !query 5740 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 5741 +SELECT cast('1' as binary) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5741 schema +struct<> +-- !query 5741 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 5742 +SELECT cast('1' as binary) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5742 schema +struct<> +-- !query 5742 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 5743 +SELECT cast('1' as binary) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5743 schema +struct<> +-- !query 5743 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 5744 +SELECT cast('1' as binary) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5744 schema +struct<> +-- !query 5744 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 5745 +SELECT cast('1' as binary) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5745 schema +struct<> +-- !query 5745 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 5746 +SELECT cast('1' as binary) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5746 schema +struct<> +-- !query 5746 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 5747 +SELECT cast('1' as binary) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5747 schema +struct<> +-- !query 5747 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 5748 +SELECT cast('1' as binary) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5748 schema +struct<> +-- !query 5748 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 5749 +SELECT cast('1' as binary) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5749 schema +struct<> +-- !query 5749 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 5750 +SELECT cast('1' as binary) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5750 schema +struct<> +-- !query 5750 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5751 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5751 schema +struct<> +-- !query 5751 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 5752 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5752 schema +struct<> +-- !query 5752 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 5753 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5753 schema +struct<> +-- !query 5753 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 5754 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5754 schema +struct<> +-- !query 5754 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 5755 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5755 schema +struct<> +-- !query 5755 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 5756 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5756 schema +struct<> +-- !query 5756 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 5757 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5757 schema +struct<> +-- !query 5757 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 5758 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5758 schema +struct<> +-- !query 5758 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 5759 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5759 schema +struct<> +-- !query 5759 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 5760 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5760 schema +struct<> +-- !query 5760 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 5761 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5761 schema +struct<> +-- !query 5761 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5762 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5762 schema +struct<> +-- !query 5762 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 5763 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5763 schema +struct<> +-- !query 5763 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 5764 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5764 schema +struct<> +-- !query 5764 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 5765 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5765 schema +struct<> +-- !query 5765 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 5766 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5766 schema +struct<> +-- !query 5766 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 5767 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5767 schema +struct<> +-- !query 5767 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 5768 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5768 schema +struct<> +-- !query 5768 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 5769 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5769 schema +struct<> +-- !query 5769 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 5770 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5770 schema +struct<> +-- !query 5770 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 5771 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5771 schema +struct<> +-- !query 5771 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 5772 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5772 schema +struct<> +-- !query 5772 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 5773 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5773 schema +struct<> +-- !query 5773 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5774 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 0)) FROM t +-- !query 5774 schema +struct<> +-- !query 5774 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 5775 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 0)) FROM t +-- !query 5775 schema +struct<> +-- !query 5775 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 5776 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 0)) FROM t +-- !query 5776 schema +struct<> +-- !query 5776 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 5777 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 0)) FROM t +-- !query 5777 schema +struct<> +-- !query 5777 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 5778 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 0)) FROM t +-- !query 5778 schema +struct<> +-- !query 5778 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 5779 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5779 schema +struct<> +-- !query 5779 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 5780 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 0)) FROM t +-- !query 5780 schema +struct<> +-- !query 5780 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 5781 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 0)) FROM t +-- !query 5781 schema +struct<> +-- !query 5781 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 5782 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 0)) FROM t +-- !query 5782 schema +struct<> +-- !query 5782 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 5783 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 0)) FROM t +-- !query 5783 schema +struct<> +-- !query 5783 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 5784 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 0)) FROM t +-- !query 5784 schema +struct<> +-- !query 5784 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 0)) FROM t + + +-- !query 5785 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 1)) FROM t +-- !query 5785 schema +struct<> +-- !query 5785 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 5786 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(2, 1)) FROM t +-- !query 5786 schema +struct<> +-- !query 5786 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 5787 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 1)) FROM t +-- !query 5787 schema +struct<> +-- !query 5787 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 5788 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 1)) FROM t +-- !query 5788 schema +struct<> +-- !query 5788 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 5789 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 1)) FROM t +-- !query 5789 schema +struct<> +-- !query 5789 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 5790 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 1)) FROM t +-- !query 5790 schema +struct<> +-- !query 5790 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 5791 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 1)) FROM t +-- !query 5791 schema +struct<> +-- !query 5791 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 5792 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 1)) FROM t +-- !query 5792 schema +struct<> +-- !query 5792 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 5793 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 1)) FROM t +-- !query 5793 schema +struct<> +-- !query 5793 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 5794 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 1)) FROM t +-- !query 5794 schema +struct<> +-- !query 5794 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 5795 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 1)) FROM t +-- !query 5795 schema +struct<> +-- !query 5795 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 5796 +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 1)) FROM t +-- !query 5796 schema +struct<> +-- !query 5796 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 1)) FROM t + + +-- !query 5797 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as tinyint) FROM t +-- !query 5797 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> +-- !query 5797 output +true + + +-- !query 5798 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as tinyint) FROM t +-- !query 5798 schema +struct<(CAST(1 AS DECIMAL(3,0)) >= CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> +-- !query 5798 output +true + + +-- !query 5799 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as tinyint) FROM t +-- !query 5799 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> +-- !query 5799 output +true + + +-- !query 5800 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as tinyint) FROM t +-- !query 5800 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> +-- !query 5800 output +true + + +-- !query 5801 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as tinyint) FROM t +-- !query 5801 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> +-- !query 5801 output +true + + +-- !query 5802 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as tinyint) FROM t +-- !query 5802 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> +-- !query 5802 output +true + + +-- !query 5803 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as tinyint) FROM t +-- !query 5803 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> +-- !query 5803 output +true + + +-- !query 5804 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as tinyint) FROM t +-- !query 5804 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> +-- !query 5804 output +true + + +-- !query 5805 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as tinyint) FROM t +-- !query 5805 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> +-- !query 5805 output +true + + +-- !query 5806 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as tinyint) FROM t +-- !query 5806 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> +-- !query 5806 output +true + + +-- !query 5807 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as tinyint) FROM t +-- !query 5807 schema +struct<> +-- !query 5807 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as tinyint) FROM t + + +-- !query 5808 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as tinyint) FROM t +-- !query 5808 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5808 output +NULL + + +-- !query 5809 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as tinyint) FROM t +-- !query 5809 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5809 output +true + + +-- !query 5810 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as tinyint) FROM t +-- !query 5810 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5810 output +true + + +-- !query 5811 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as tinyint) FROM t +-- !query 5811 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> +-- !query 5811 output +true + + +-- !query 5812 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as tinyint) FROM t +-- !query 5812 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> +-- !query 5812 output +true + + +-- !query 5813 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as tinyint) FROM t +-- !query 5813 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> +-- !query 5813 output +true + + +-- !query 5814 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as tinyint) FROM t +-- !query 5814 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> +-- !query 5814 output +true + + +-- !query 5815 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as tinyint) FROM t +-- !query 5815 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> +-- !query 5815 output +true + + +-- !query 5816 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as tinyint) FROM t +-- !query 5816 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> +-- !query 5816 output +true + + +-- !query 5817 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as tinyint) FROM t +-- !query 5817 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> +-- !query 5817 output +true + + +-- !query 5818 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as tinyint) FROM t +-- !query 5818 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> +-- !query 5818 output +true + + +-- !query 5819 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as tinyint) FROM t +-- !query 5819 schema +struct<> +-- !query 5819 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as tinyint) FROM t + + +-- !query 5820 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as smallint) FROM t +-- !query 5820 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5820 output +true + + +-- !query 5821 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as smallint) FROM t +-- !query 5821 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5821 output +true + + +-- !query 5822 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as smallint) FROM t +-- !query 5822 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> +-- !query 5822 output +true + + +-- !query 5823 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as smallint) FROM t +-- !query 5823 schema +struct<(CAST(1 AS DECIMAL(5,0)) >= CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> +-- !query 5823 output +true + + +-- !query 5824 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as smallint) FROM t +-- !query 5824 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> +-- !query 5824 output +true + + +-- !query 5825 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as smallint) FROM t +-- !query 5825 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> +-- !query 5825 output +true + + +-- !query 5826 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as smallint) FROM t +-- !query 5826 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> +-- !query 5826 output +true + + +-- !query 5827 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as smallint) FROM t +-- !query 5827 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> +-- !query 5827 output +true + + +-- !query 5828 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as smallint) FROM t +-- !query 5828 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> +-- !query 5828 output +true + + +-- !query 5829 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as smallint) FROM t +-- !query 5829 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> +-- !query 5829 output +true + + +-- !query 5830 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as smallint) FROM t +-- !query 5830 schema +struct<> +-- !query 5830 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as smallint) FROM t + + +-- !query 5831 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as smallint) FROM t +-- !query 5831 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5831 output +NULL + + +-- !query 5832 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as smallint) FROM t +-- !query 5832 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5832 output +true + + +-- !query 5833 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as smallint) FROM t +-- !query 5833 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5833 output +true + + +-- !query 5834 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as smallint) FROM t +-- !query 5834 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5834 output +true + + +-- !query 5835 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as smallint) FROM t +-- !query 5835 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5835 output +true + + +-- !query 5836 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as smallint) FROM t +-- !query 5836 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> +-- !query 5836 output +true + + +-- !query 5837 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as smallint) FROM t +-- !query 5837 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> +-- !query 5837 output +true + + +-- !query 5838 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as smallint) FROM t +-- !query 5838 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> +-- !query 5838 output +true + + +-- !query 5839 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as smallint) FROM t +-- !query 5839 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> +-- !query 5839 output +true + + +-- !query 5840 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as smallint) FROM t +-- !query 5840 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> +-- !query 5840 output +true + + +-- !query 5841 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as smallint) FROM t +-- !query 5841 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> +-- !query 5841 output +true + + +-- !query 5842 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as smallint) FROM t +-- !query 5842 schema +struct<> +-- !query 5842 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as smallint) FROM t + + +-- !query 5843 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as int) FROM t +-- !query 5843 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5843 output +true + + +-- !query 5844 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as int) FROM t +-- !query 5844 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5844 output +true + + +-- !query 5845 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as int) FROM t +-- !query 5845 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5845 output +true + + +-- !query 5846 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as int) FROM t +-- !query 5846 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5846 output +true + + +-- !query 5847 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as int) FROM t +-- !query 5847 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5847 output +true + + +-- !query 5848 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as int) FROM t +-- !query 5848 schema +struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> +-- !query 5848 output +true + + +-- !query 5849 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as int) FROM t +-- !query 5849 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 5849 output +true + + +-- !query 5850 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as int) FROM t +-- !query 5850 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 5850 output +true + + +-- !query 5851 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as int) FROM t +-- !query 5851 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 5851 output +true + + +-- !query 5852 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as int) FROM t +-- !query 5852 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 5852 output +true + + +-- !query 5853 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as int) FROM t +-- !query 5853 schema +struct<> +-- !query 5853 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as int) FROM t + + +-- !query 5854 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as int) FROM t +-- !query 5854 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5854 output +NULL + + +-- !query 5855 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as int) FROM t +-- !query 5855 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5855 output +true + + +-- !query 5856 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as int) FROM t +-- !query 5856 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5856 output +true + + +-- !query 5857 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as int) FROM t +-- !query 5857 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5857 output +true + + +-- !query 5858 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as int) FROM t +-- !query 5858 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5858 output +true + + +-- !query 5859 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as int) FROM t +-- !query 5859 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5859 output +true + + +-- !query 5860 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as int) FROM t +-- !query 5860 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5860 output +true + + +-- !query 5861 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as int) FROM t +-- !query 5861 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5861 output +true + + +-- !query 5862 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as int) FROM t +-- !query 5862 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 5862 output +true + + +-- !query 5863 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as int) FROM t +-- !query 5863 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 5863 output +true + + +-- !query 5864 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as int) FROM t +-- !query 5864 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 5864 output +true + + +-- !query 5865 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as int) FROM t +-- !query 5865 schema +struct<> +-- !query 5865 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as int) FROM t + + +-- !query 5866 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as bigint) FROM t +-- !query 5866 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5866 output +true + + +-- !query 5867 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as bigint) FROM t +-- !query 5867 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5867 output +true + + +-- !query 5868 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as bigint) FROM t +-- !query 5868 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5868 output +true + + +-- !query 5869 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as bigint) FROM t +-- !query 5869 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5869 output +true + + +-- !query 5870 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as bigint) FROM t +-- !query 5870 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5870 output +true + + +-- !query 5871 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as bigint) FROM t +-- !query 5871 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5871 output +true + + +-- !query 5872 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as bigint) FROM t +-- !query 5872 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> +-- !query 5872 output +true + + +-- !query 5873 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as bigint) FROM t +-- !query 5873 schema +struct<(CAST(1 AS DECIMAL(20,0)) >= CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> +-- !query 5873 output +true + + +-- !query 5874 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as bigint) FROM t +-- !query 5874 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> +-- !query 5874 output +true + + +-- !query 5875 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as bigint) FROM t +-- !query 5875 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> +-- !query 5875 output +true + + +-- !query 5876 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as bigint) FROM t +-- !query 5876 schema +struct<> +-- !query 5876 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as bigint) FROM t + + +-- !query 5877 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as bigint) FROM t +-- !query 5877 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5877 output +NULL + + +-- !query 5878 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as bigint) FROM t +-- !query 5878 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5878 output +true + + +-- !query 5879 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as bigint) FROM t +-- !query 5879 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5879 output +true + + +-- !query 5880 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as bigint) FROM t +-- !query 5880 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5880 output +true + + +-- !query 5881 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as bigint) FROM t +-- !query 5881 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5881 output +true + + +-- !query 5882 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as bigint) FROM t +-- !query 5882 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5882 output +true + + +-- !query 5883 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as bigint) FROM t +-- !query 5883 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5883 output +true + + +-- !query 5884 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as bigint) FROM t +-- !query 5884 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5884 output +true + + +-- !query 5885 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as bigint) FROM t +-- !query 5885 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5885 output +true + + +-- !query 5886 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as bigint) FROM t +-- !query 5886 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> +-- !query 5886 output +true + + +-- !query 5887 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as bigint) FROM t +-- !query 5887 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> +-- !query 5887 output +true + + +-- !query 5888 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as bigint) FROM t +-- !query 5888 schema +struct<> +-- !query 5888 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as bigint) FROM t + + +-- !query 5889 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as float) FROM t +-- !query 5889 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5889 output +true + + +-- !query 5890 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as float) FROM t +-- !query 5890 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5890 output +true + + +-- !query 5891 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as float) FROM t +-- !query 5891 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5891 output +true + + +-- !query 5892 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as float) FROM t +-- !query 5892 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5892 output +true + + +-- !query 5893 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as float) FROM t +-- !query 5893 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5893 output +true + + +-- !query 5894 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as float) FROM t +-- !query 5894 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5894 output +true + + +-- !query 5895 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as float) FROM t +-- !query 5895 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5895 output +true + + +-- !query 5896 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as float) FROM t +-- !query 5896 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5896 output +true + + +-- !query 5897 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as float) FROM t +-- !query 5897 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5897 output +true + + +-- !query 5898 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as float) FROM t +-- !query 5898 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5898 output +true + + +-- !query 5899 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as float) FROM t +-- !query 5899 schema +struct<> +-- !query 5899 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as float) FROM t + + +-- !query 5900 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as float) FROM t +-- !query 5900 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5900 output +NULL + + +-- !query 5901 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as float) FROM t +-- !query 5901 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5901 output +true + + +-- !query 5902 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as float) FROM t +-- !query 5902 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5902 output +true + + +-- !query 5903 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as float) FROM t +-- !query 5903 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5903 output +true + + +-- !query 5904 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as float) FROM t +-- !query 5904 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5904 output +true + + +-- !query 5905 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as float) FROM t +-- !query 5905 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5905 output +true + + +-- !query 5906 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as float) FROM t +-- !query 5906 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5906 output +true + + +-- !query 5907 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as float) FROM t +-- !query 5907 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5907 output +true + + +-- !query 5908 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as float) FROM t +-- !query 5908 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5908 output +true + + +-- !query 5909 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as float) FROM t +-- !query 5909 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5909 output +true + + +-- !query 5910 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as float) FROM t +-- !query 5910 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> +-- !query 5910 output +true + + +-- !query 5911 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as float) FROM t +-- !query 5911 schema +struct<> +-- !query 5911 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as float) FROM t + + +-- !query 5912 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as double) FROM t +-- !query 5912 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5912 output +true + + +-- !query 5913 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as double) FROM t +-- !query 5913 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5913 output +true + + +-- !query 5914 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as double) FROM t +-- !query 5914 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5914 output +true + + +-- !query 5915 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as double) FROM t +-- !query 5915 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5915 output +true + + +-- !query 5916 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as double) FROM t +-- !query 5916 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5916 output +true + + +-- !query 5917 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as double) FROM t +-- !query 5917 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5917 output +true + + +-- !query 5918 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as double) FROM t +-- !query 5918 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5918 output +true + + +-- !query 5919 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as double) FROM t +-- !query 5919 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5919 output +true + + +-- !query 5920 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as double) FROM t +-- !query 5920 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5920 output +true + + +-- !query 5921 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as double) FROM t +-- !query 5921 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5921 output +true + + +-- !query 5922 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as double) FROM t +-- !query 5922 schema +struct<> +-- !query 5922 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as double) FROM t + + +-- !query 5923 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as double) FROM t +-- !query 5923 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5923 output +NULL + + +-- !query 5924 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as double) FROM t +-- !query 5924 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5924 output +true + + +-- !query 5925 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as double) FROM t +-- !query 5925 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5925 output +true + + +-- !query 5926 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as double) FROM t +-- !query 5926 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5926 output +true + + +-- !query 5927 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as double) FROM t +-- !query 5927 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5927 output +true + + +-- !query 5928 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as double) FROM t +-- !query 5928 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5928 output +true + + +-- !query 5929 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as double) FROM t +-- !query 5929 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5929 output +true + + +-- !query 5930 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as double) FROM t +-- !query 5930 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5930 output +true + + +-- !query 5931 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as double) FROM t +-- !query 5931 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5931 output +true + + +-- !query 5932 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as double) FROM t +-- !query 5932 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5932 output +true + + +-- !query 5933 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as double) FROM t +-- !query 5933 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> +-- !query 5933 output +true + + +-- !query 5934 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as double) FROM t +-- !query 5934 schema +struct<> +-- !query 5934 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as double) FROM t + + +-- !query 5935 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5935 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5935 output +true + + +-- !query 5936 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5936 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5936 output +true + + +-- !query 5937 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5937 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5937 output +true + + +-- !query 5938 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5938 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5938 output +true + + +-- !query 5939 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5939 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> +-- !query 5939 output +true + + +-- !query 5940 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5940 schema +struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> +-- !query 5940 output +true + + +-- !query 5941 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5941 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> +-- !query 5941 output +true + + +-- !query 5942 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5942 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> +-- !query 5942 output +true + + +-- !query 5943 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5943 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> +-- !query 5943 output +true + + +-- !query 5944 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5944 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> +-- !query 5944 output +true + + +-- !query 5945 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5945 schema +struct<> +-- !query 5945 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as decimal(10, 0)) FROM t + + +-- !query 5946 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5946 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5946 output +NULL + + +-- !query 5947 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5947 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5947 output +true + + +-- !query 5948 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5948 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5948 output +true + + +-- !query 5949 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5949 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5949 output +true + + +-- !query 5950 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5950 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5950 output +true + + +-- !query 5951 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5951 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5951 output +true + + +-- !query 5952 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5952 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5952 output +true + + +-- !query 5953 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5953 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> +-- !query 5953 output +true + + +-- !query 5954 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5954 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> +-- !query 5954 output +true + + +-- !query 5955 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5955 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> +-- !query 5955 output +true + + +-- !query 5956 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5956 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> +-- !query 5956 output +true + + +-- !query 5957 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as decimal(10, 0)) FROM t +-- !query 5957 schema +struct<> +-- !query 5957 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as decimal(10, 0)) FROM t + + +-- !query 5958 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as string) FROM t +-- !query 5958 schema +struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5958 output +true + + +-- !query 5959 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as string) FROM t +-- !query 5959 schema +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5959 output +true + + +-- !query 5960 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as string) FROM t +-- !query 5960 schema +struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5960 output +true + + +-- !query 5961 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as string) FROM t +-- !query 5961 schema +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5961 output +true + + +-- !query 5962 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as string) FROM t +-- !query 5962 schema +struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5962 output +true + + +-- !query 5963 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as string) FROM t +-- !query 5963 schema +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5963 output +true + + +-- !query 5964 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as string) FROM t +-- !query 5964 schema +struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5964 output +true + + +-- !query 5965 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as string) FROM t +-- !query 5965 schema +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5965 output +true + + +-- !query 5966 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as string) FROM t +-- !query 5966 schema +struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5966 output +true + + +-- !query 5967 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as string) FROM t +-- !query 5967 schema +struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5967 output +true + + +-- !query 5968 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as string) FROM t +-- !query 5968 schema +struct<> +-- !query 5968 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as string) FROM t + + +-- !query 5969 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as string) FROM t +-- !query 5969 schema +struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5969 output +NULL + + +-- !query 5970 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as string) FROM t +-- !query 5970 schema +struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5970 output +true + + +-- !query 5971 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as string) FROM t +-- !query 5971 schema +struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5971 output +true + + +-- !query 5972 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as string) FROM t +-- !query 5972 schema +struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5972 output +true + + +-- !query 5973 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as string) FROM t +-- !query 5973 schema +struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5973 output +true + + +-- !query 5974 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as string) FROM t +-- !query 5974 schema +struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5974 output +true + + +-- !query 5975 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as string) FROM t +-- !query 5975 schema +struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5975 output +true + + +-- !query 5976 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as string) FROM t +-- !query 5976 schema +struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5976 output +true + + +-- !query 5977 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as string) FROM t +-- !query 5977 schema +struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5977 output +true + + +-- !query 5978 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as string) FROM t +-- !query 5978 schema +struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5978 output +true + + +-- !query 5979 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as string) FROM t +-- !query 5979 schema +struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> +-- !query 5979 output +true + + +-- !query 5980 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as string) FROM t +-- !query 5980 schema +struct<> +-- !query 5980 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as string) FROM t + + +-- !query 5981 +SELECT cast(1 as decimal(1, 0)) >= cast('1' as binary) FROM t +-- !query 5981 schema +struct<> +-- !query 5981 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 5982 +SELECT cast(1 as decimal(3, 0)) >= cast('1' as binary) FROM t +-- !query 5982 schema +struct<> +-- !query 5982 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 5983 +SELECT cast(1 as decimal(4, 0)) >= cast('1' as binary) FROM t +-- !query 5983 schema +struct<> +-- !query 5983 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 5984 +SELECT cast(1 as decimal(5, 0)) >= cast('1' as binary) FROM t +-- !query 5984 schema +struct<> +-- !query 5984 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 5985 +SELECT cast(1 as decimal(6, 0)) >= cast('1' as binary) FROM t +-- !query 5985 schema +struct<> +-- !query 5985 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 5986 +SELECT cast(1 as decimal(10, 0)) >= cast('1' as binary) FROM t +-- !query 5986 schema +struct<> +-- !query 5986 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 5987 +SELECT cast(1 as decimal(11, 0)) >= cast('1' as binary) FROM t +-- !query 5987 schema +struct<> +-- !query 5987 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 5988 +SELECT cast(1 as decimal(20, 0)) >= cast('1' as binary) FROM t +-- !query 5988 schema +struct<> +-- !query 5988 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 5989 +SELECT cast(1 as decimal(21, 0)) >= cast('1' as binary) FROM t +-- !query 5989 schema +struct<> +-- !query 5989 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 5990 +SELECT cast(1 as decimal(38, 0)) >= cast('1' as binary) FROM t +-- !query 5990 schema +struct<> +-- !query 5990 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 5991 +SELECT cast(1 as decimal(39, 0)) >= cast('1' as binary) FROM t +-- !query 5991 schema +struct<> +-- !query 5991 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast('1' as binary) FROM t + + +-- !query 5992 +SELECT cast(1 as decimal(1, 1)) >= cast('1' as binary) FROM t +-- !query 5992 schema +struct<> +-- !query 5992 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 5993 +SELECT cast(1 as decimal(2, 1)) >= cast('1' as binary) FROM t +-- !query 5993 schema +struct<> +-- !query 5993 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 5994 +SELECT cast(1 as decimal(3, 1)) >= cast('1' as binary) FROM t +-- !query 5994 schema +struct<> +-- !query 5994 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 5995 +SELECT cast(1 as decimal(4, 1)) >= cast('1' as binary) FROM t +-- !query 5995 schema +struct<> +-- !query 5995 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 5996 +SELECT cast(1 as decimal(5, 1)) >= cast('1' as binary) FROM t +-- !query 5996 schema +struct<> +-- !query 5996 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 5997 +SELECT cast(1 as decimal(6, 1)) >= cast('1' as binary) FROM t +-- !query 5997 schema +struct<> +-- !query 5997 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 5998 +SELECT cast(1 as decimal(10, 1)) >= cast('1' as binary) FROM t +-- !query 5998 schema +struct<> +-- !query 5998 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 5999 +SELECT cast(1 as decimal(11, 1)) >= cast('1' as binary) FROM t +-- !query 5999 schema +struct<> +-- !query 5999 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 6000 +SELECT cast(1 as decimal(20, 1)) >= cast('1' as binary) FROM t +-- !query 6000 schema +struct<> +-- !query 6000 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 6001 +SELECT cast(1 as decimal(21, 1)) >= cast('1' as binary) FROM t +-- !query 6001 schema +struct<> +-- !query 6001 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 6002 +SELECT cast(1 as decimal(38, 1)) >= cast('1' as binary) FROM t +-- !query 6002 schema +struct<> +-- !query 6002 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 6003 +SELECT cast(1 as decimal(39, 1)) >= cast('1' as binary) FROM t +-- !query 6003 schema +struct<> +-- !query 6003 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast('1' as binary) FROM t + + +-- !query 6004 +SELECT cast(1 as decimal(1, 0)) >= cast(1 as boolean) FROM t +-- !query 6004 schema +struct<> +-- !query 6004 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 + + +-- !query 6005 +SELECT cast(1 as decimal(3, 0)) >= cast(1 as boolean) FROM t +-- !query 6005 schema +struct<> +-- !query 6005 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 + + +-- !query 6006 +SELECT cast(1 as decimal(4, 0)) >= cast(1 as boolean) FROM t +-- !query 6006 schema +struct<> +-- !query 6006 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 + + +-- !query 6007 +SELECT cast(1 as decimal(5, 0)) >= cast(1 as boolean) FROM t +-- !query 6007 schema +struct<> +-- !query 6007 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 + + +-- !query 6008 +SELECT cast(1 as decimal(6, 0)) >= cast(1 as boolean) FROM t +-- !query 6008 schema +struct<> +-- !query 6008 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 + + +-- !query 6009 +SELECT cast(1 as decimal(10, 0)) >= cast(1 as boolean) FROM t +-- !query 6009 schema +struct<> +-- !query 6009 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 + + +-- !query 6010 +SELECT cast(1 as decimal(11, 0)) >= cast(1 as boolean) FROM t +-- !query 6010 schema +struct<> +-- !query 6010 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 + + +-- !query 6011 +SELECT cast(1 as decimal(20, 0)) >= cast(1 as boolean) FROM t +-- !query 6011 schema +struct<> +-- !query 6011 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 + + +-- !query 6012 +SELECT cast(1 as decimal(21, 0)) >= cast(1 as boolean) FROM t +-- !query 6012 schema +struct<> +-- !query 6012 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 + + +-- !query 6013 +SELECT cast(1 as decimal(38, 0)) >= cast(1 as boolean) FROM t +-- !query 6013 schema +struct<> +-- !query 6013 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 + + +-- !query 6014 +SELECT cast(1 as decimal(39, 0)) >= cast(1 as boolean) FROM t +-- !query 6014 schema +struct<> +-- !query 6014 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast(1 as boolean) FROM t + + +-- !query 6015 +SELECT cast(1 as decimal(1, 1)) >= cast(1 as boolean) FROM t +-- !query 6015 schema +struct<> +-- !query 6015 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 + + +-- !query 6016 +SELECT cast(1 as decimal(2, 1)) >= cast(1 as boolean) FROM t +-- !query 6016 schema +struct<> +-- !query 6016 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 + + +-- !query 6017 +SELECT cast(1 as decimal(3, 1)) >= cast(1 as boolean) FROM t +-- !query 6017 schema +struct<> +-- !query 6017 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 + + +-- !query 6018 +SELECT cast(1 as decimal(4, 1)) >= cast(1 as boolean) FROM t +-- !query 6018 schema +struct<> +-- !query 6018 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 + + +-- !query 6019 +SELECT cast(1 as decimal(5, 1)) >= cast(1 as boolean) FROM t +-- !query 6019 schema +struct<> +-- !query 6019 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 + + +-- !query 6020 +SELECT cast(1 as decimal(6, 1)) >= cast(1 as boolean) FROM t +-- !query 6020 schema +struct<> +-- !query 6020 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 + + +-- !query 6021 +SELECT cast(1 as decimal(10, 1)) >= cast(1 as boolean) FROM t +-- !query 6021 schema +struct<> +-- !query 6021 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 + + +-- !query 6022 +SELECT cast(1 as decimal(11, 1)) >= cast(1 as boolean) FROM t +-- !query 6022 schema +struct<> +-- !query 6022 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 + + +-- !query 6023 +SELECT cast(1 as decimal(20, 1)) >= cast(1 as boolean) FROM t +-- !query 6023 schema +struct<> +-- !query 6023 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 + + +-- !query 6024 +SELECT cast(1 as decimal(21, 1)) >= cast(1 as boolean) FROM t +-- !query 6024 schema +struct<> +-- !query 6024 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 + + +-- !query 6025 +SELECT cast(1 as decimal(38, 1)) >= cast(1 as boolean) FROM t +-- !query 6025 schema +struct<> +-- !query 6025 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 + + +-- !query 6026 +SELECT cast(1 as decimal(39, 1)) >= cast(1 as boolean) FROM t +-- !query 6026 schema +struct<> +-- !query 6026 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast(1 as boolean) FROM t + + +-- !query 6027 +SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6027 schema +struct<> +-- !query 6027 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 6028 +SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6028 schema +struct<> +-- !query 6028 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 6029 +SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6029 schema +struct<> +-- !query 6029 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 6030 +SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6030 schema +struct<> +-- !query 6030 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 6031 +SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6031 schema +struct<> +-- !query 6031 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 6032 +SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6032 schema +struct<> +-- !query 6032 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 6033 +SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6033 schema +struct<> +-- !query 6033 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 6034 +SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6034 schema +struct<> +-- !query 6034 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 6035 +SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6035 schema +struct<> +-- !query 6035 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 6036 +SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6036 schema +struct<> +-- !query 6036 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 6037 +SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6037 schema +struct<> +-- !query 6037 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 6038 +SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6038 schema +struct<> +-- !query 6038 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 6039 +SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6039 schema +struct<> +-- !query 6039 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 6040 +SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6040 schema +struct<> +-- !query 6040 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 6041 +SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6041 schema +struct<> +-- !query 6041 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 6042 +SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6042 schema +struct<> +-- !query 6042 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 6043 +SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6043 schema +struct<> +-- !query 6043 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 6044 +SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6044 schema +struct<> +-- !query 6044 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 6045 +SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6045 schema +struct<> +-- !query 6045 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 6046 +SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6046 schema +struct<> +-- !query 6046 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 6047 +SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6047 schema +struct<> +-- !query 6047 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 6048 +SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6048 schema +struct<> +-- !query 6048 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 6049 +SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6049 schema +struct<> +-- !query 6049 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 6050 +SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6050 schema +struct<> +-- !query 6050 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 6051 +SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6051 schema +struct<> +-- !query 6051 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 6052 +SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6052 schema +struct<> +-- !query 6052 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 6053 +SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6053 schema +struct<> +-- !query 6053 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 6054 +SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6054 schema +struct<> +-- !query 6054 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 6055 +SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6055 schema +struct<> +-- !query 6055 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 6056 +SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6056 schema +struct<> +-- !query 6056 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 6057 +SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6057 schema +struct<> +-- !query 6057 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 6058 +SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6058 schema +struct<> +-- !query 6058 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 6059 +SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6059 schema +struct<> +-- !query 6059 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 6060 +SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6060 schema +struct<> +-- !query 6060 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 6061 +SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6061 schema +struct<> +-- !query 6061 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 6062 +SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6062 schema +struct<> +-- !query 6062 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 6063 +SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6063 schema +struct<> +-- !query 6063 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 6064 +SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6064 schema +struct<> +-- !query 6064 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 6065 +SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6065 schema +struct<> +-- !query 6065 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 6066 +SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6066 schema +struct<> +-- !query 6066 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 6067 +SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6067 schema +struct<> +-- !query 6067 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 6068 +SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6068 schema +struct<> +-- !query 6068 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 6069 +SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6069 schema +struct<> +-- !query 6069 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 6070 +SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6070 schema +struct<> +-- !query 6070 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 6071 +SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6071 schema +struct<> +-- !query 6071 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 6072 +SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6072 schema +struct<> +-- !query 6072 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 6073 +SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6073 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)))):boolean> +-- !query 6073 output +false + + +-- !query 6074 +SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6074 schema +struct<(NOT (CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) = CAST(1 AS DECIMAL(3,0)))):boolean> +-- !query 6074 output +false + + +-- !query 6075 +SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6075 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)))):boolean> +-- !query 6075 output +false + + +-- !query 6076 +SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6076 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6076 output +false + + +-- !query 6077 +SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6077 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)))):boolean> +-- !query 6077 output +false + + +-- !query 6078 +SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6078 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6078 output +false + + +-- !query 6079 +SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6079 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6079 output +false + + +-- !query 6080 +SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6080 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6080 output +false + + +-- !query 6081 +SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6081 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6081 output +false + + +-- !query 6082 +SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6082 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6082 output +false + + +-- !query 6083 +SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6083 schema +struct<> +-- !query 6083 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6084 +SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6084 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)))):boolean> +-- !query 6084 output +NULL + + +-- !query 6085 +SELECT cast(1 as tinyint) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6085 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)))):boolean> +-- !query 6085 output +false + + +-- !query 6086 +SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6086 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)))):boolean> +-- !query 6086 output +false + + +-- !query 6087 +SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6087 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)))):boolean> +-- !query 6087 output +false + + +-- !query 6088 +SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6088 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)))):boolean> +-- !query 6088 output +false + + +-- !query 6089 +SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6089 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)))):boolean> +-- !query 6089 output +false + + +-- !query 6090 +SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6090 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)))):boolean> +-- !query 6090 output +false + + +-- !query 6091 +SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6091 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6091 output +false + + +-- !query 6092 +SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6092 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> +-- !query 6092 output +false + + +-- !query 6093 +SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6093 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6093 output +false + + +-- !query 6094 +SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6094 schema +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> +-- !query 6094 output +false + + +-- !query 6095 +SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6095 schema +struct<> +-- !query 6095 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6096 +SELECT cast(1 as smallint) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6096 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6096 output +false + + +-- !query 6097 +SELECT cast(1 as smallint) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6097 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6097 output +false + + +-- !query 6098 +SELECT cast(1 as smallint) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6098 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6098 output +false + + +-- !query 6099 +SELECT cast(1 as smallint) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6099 schema +struct<(NOT (CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) = CAST(1 AS DECIMAL(5,0)))):boolean> +-- !query 6099 output +false + + +-- !query 6100 +SELECT cast(1 as smallint) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6100 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)))):boolean> +-- !query 6100 output +false + + +-- !query 6101 +SELECT cast(1 as smallint) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6101 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6101 output +false + + +-- !query 6102 +SELECT cast(1 as smallint) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6102 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6102 output +false + + +-- !query 6103 +SELECT cast(1 as smallint) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6103 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6103 output +false + + +-- !query 6104 +SELECT cast(1 as smallint) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6104 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6104 output +false + + +-- !query 6105 +SELECT cast(1 as smallint) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6105 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6105 output +false + + +-- !query 6106 +SELECT cast(1 as smallint) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6106 schema +struct<> +-- !query 6106 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6107 +SELECT cast(1 as smallint) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6107 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)))):boolean> +-- !query 6107 output +NULL + + +-- !query 6108 +SELECT cast(1 as smallint) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6108 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)))):boolean> +-- !query 6108 output +false + + +-- !query 6109 +SELECT cast(1 as smallint) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6109 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)))):boolean> +-- !query 6109 output +false + + +-- !query 6110 +SELECT cast(1 as smallint) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6110 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)))):boolean> +-- !query 6110 output +false + + +-- !query 6111 +SELECT cast(1 as smallint) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6111 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)))):boolean> +-- !query 6111 output +false + + +-- !query 6112 +SELECT cast(1 as smallint) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6112 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)))):boolean> +-- !query 6112 output +false + + +-- !query 6113 +SELECT cast(1 as smallint) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6113 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)))):boolean> +-- !query 6113 output +false + + +-- !query 6114 +SELECT cast(1 as smallint) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6114 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6114 output +false + + +-- !query 6115 +SELECT cast(1 as smallint) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6115 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> +-- !query 6115 output +false + + +-- !query 6116 +SELECT cast(1 as smallint) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6116 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6116 output +false + + +-- !query 6117 +SELECT cast(1 as smallint) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6117 schema +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> +-- !query 6117 output +false + + +-- !query 6118 +SELECT cast(1 as smallint) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6118 schema +struct<> +-- !query 6118 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as smallint) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6119 +SELECT cast(1 as int) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6119 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6119 output +false + + +-- !query 6120 +SELECT cast(1 as int) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6120 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6120 output +false + + +-- !query 6121 +SELECT cast(1 as int) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6121 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6121 output +false + + +-- !query 6122 +SELECT cast(1 as int) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6122 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6122 output +false + + +-- !query 6123 +SELECT cast(1 as int) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6123 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6123 output +false + + +-- !query 6124 +SELECT cast(1 as int) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6124 schema +struct<(NOT (CAST(CAST(1 AS INT) AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> +-- !query 6124 output +false + + +-- !query 6125 +SELECT cast(1 as int) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6125 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6125 output +false + + +-- !query 6126 +SELECT cast(1 as int) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6126 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6126 output +false + + +-- !query 6127 +SELECT cast(1 as int) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6127 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6127 output +false + + +-- !query 6128 +SELECT cast(1 as int) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6128 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6128 output +false + + +-- !query 6129 +SELECT cast(1 as int) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6129 schema +struct<> +-- !query 6129 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6130 +SELECT cast(1 as int) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6130 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6130 output +NULL + + +-- !query 6131 +SELECT cast(1 as int) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6131 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6131 output +false + + +-- !query 6132 +SELECT cast(1 as int) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6132 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6132 output +false + + +-- !query 6133 +SELECT cast(1 as int) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6133 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6133 output +false + + +-- !query 6134 +SELECT cast(1 as int) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6134 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6134 output +false + + +-- !query 6135 +SELECT cast(1 as int) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6135 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6135 output +false + + +-- !query 6136 +SELECT cast(1 as int) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6136 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6136 output +false + + +-- !query 6137 +SELECT cast(1 as int) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6137 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6137 output +false + + +-- !query 6138 +SELECT cast(1 as int) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6138 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> +-- !query 6138 output +false + + +-- !query 6139 +SELECT cast(1 as int) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6139 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6139 output +false + + +-- !query 6140 +SELECT cast(1 as int) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6140 schema +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> +-- !query 6140 output +false + + +-- !query 6141 +SELECT cast(1 as int) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6141 schema +struct<> +-- !query 6141 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as int) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6142 +SELECT cast(1 as bigint) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6142 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6142 output +false + + +-- !query 6143 +SELECT cast(1 as bigint) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6143 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6143 output +false + + +-- !query 6144 +SELECT cast(1 as bigint) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6144 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6144 output +false + + +-- !query 6145 +SELECT cast(1 as bigint) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6145 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6145 output +false + + +-- !query 6146 +SELECT cast(1 as bigint) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6146 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6146 output +false + + +-- !query 6147 +SELECT cast(1 as bigint) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6147 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6147 output +false + + +-- !query 6148 +SELECT cast(1 as bigint) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6148 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6148 output +false + + +-- !query 6149 +SELECT cast(1 as bigint) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6149 schema +struct<(NOT (CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) = CAST(1 AS DECIMAL(20,0)))):boolean> +-- !query 6149 output +false + + +-- !query 6150 +SELECT cast(1 as bigint) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6150 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6150 output +false + + +-- !query 6151 +SELECT cast(1 as bigint) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6151 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6151 output +false + + +-- !query 6152 +SELECT cast(1 as bigint) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6152 schema +struct<> +-- !query 6152 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6153 +SELECT cast(1 as bigint) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6153 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6153 output +NULL + + +-- !query 6154 +SELECT cast(1 as bigint) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6154 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6154 output +false + + +-- !query 6155 +SELECT cast(1 as bigint) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6155 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6155 output +false + + +-- !query 6156 +SELECT cast(1 as bigint) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6156 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6156 output +false + + +-- !query 6157 +SELECT cast(1 as bigint) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6157 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6157 output +false + + +-- !query 6158 +SELECT cast(1 as bigint) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6158 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6158 output +false + + +-- !query 6159 +SELECT cast(1 as bigint) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6159 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6159 output +false + + +-- !query 6160 +SELECT cast(1 as bigint) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6160 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6160 output +false + + +-- !query 6161 +SELECT cast(1 as bigint) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6161 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6161 output +false + + +-- !query 6162 +SELECT cast(1 as bigint) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6162 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6162 output +false + + +-- !query 6163 +SELECT cast(1 as bigint) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6163 schema +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> +-- !query 6163 output +false + + +-- !query 6164 +SELECT cast(1 as bigint) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6164 schema +struct<> +-- !query 6164 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as bigint) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6165 +SELECT cast(1 as float) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6165 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE))):boolean> +-- !query 6165 output +false + + +-- !query 6166 +SELECT cast(1 as float) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6166 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE))):boolean> +-- !query 6166 output +false + + +-- !query 6167 +SELECT cast(1 as float) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6167 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE))):boolean> +-- !query 6167 output +false + + +-- !query 6168 +SELECT cast(1 as float) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6168 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE))):boolean> +-- !query 6168 output +false + + +-- !query 6169 +SELECT cast(1 as float) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6169 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE))):boolean> +-- !query 6169 output +false + + +-- !query 6170 +SELECT cast(1 as float) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6170 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE))):boolean> +-- !query 6170 output +false + + +-- !query 6171 +SELECT cast(1 as float) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6171 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE))):boolean> +-- !query 6171 output +false + + +-- !query 6172 +SELECT cast(1 as float) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6172 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE))):boolean> +-- !query 6172 output +false + + +-- !query 6173 +SELECT cast(1 as float) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6173 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE))):boolean> +-- !query 6173 output +false + + +-- !query 6174 +SELECT cast(1 as float) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6174 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE))):boolean> +-- !query 6174 output +false + + +-- !query 6175 +SELECT cast(1 as float) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6175 schema +struct<> +-- !query 6175 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6176 +SELECT cast(1 as float) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6176 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE))):boolean> +-- !query 6176 output +NULL + + +-- !query 6177 +SELECT cast(1 as float) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6177 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE))):boolean> +-- !query 6177 output +false + + +-- !query 6178 +SELECT cast(1 as float) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6178 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE))):boolean> +-- !query 6178 output +false + + +-- !query 6179 +SELECT cast(1 as float) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6179 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE))):boolean> +-- !query 6179 output +false + + +-- !query 6180 +SELECT cast(1 as float) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6180 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE))):boolean> +-- !query 6180 output +false + + +-- !query 6181 +SELECT cast(1 as float) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6181 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE))):boolean> +-- !query 6181 output +false + + +-- !query 6182 +SELECT cast(1 as float) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6182 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE))):boolean> +-- !query 6182 output +false + + +-- !query 6183 +SELECT cast(1 as float) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6183 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE))):boolean> +-- !query 6183 output +false + + +-- !query 6184 +SELECT cast(1 as float) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6184 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE))):boolean> +-- !query 6184 output +false + + +-- !query 6185 +SELECT cast(1 as float) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6185 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE))):boolean> +-- !query 6185 output +false + + +-- !query 6186 +SELECT cast(1 as float) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6186 schema +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE))):boolean> +-- !query 6186 output +false + + +-- !query 6187 +SELECT cast(1 as float) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6187 schema +struct<> +-- !query 6187 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as float) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6188 +SELECT cast(1 as double) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6188 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE))):boolean> +-- !query 6188 output +false + + +-- !query 6189 +SELECT cast(1 as double) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6189 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE))):boolean> +-- !query 6189 output +false + + +-- !query 6190 +SELECT cast(1 as double) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6190 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE))):boolean> +-- !query 6190 output +false + + +-- !query 6191 +SELECT cast(1 as double) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6191 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE))):boolean> +-- !query 6191 output +false + + +-- !query 6192 +SELECT cast(1 as double) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6192 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE))):boolean> +-- !query 6192 output +false + + +-- !query 6193 +SELECT cast(1 as double) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6193 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE))):boolean> +-- !query 6193 output +false + + +-- !query 6194 +SELECT cast(1 as double) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6194 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE))):boolean> +-- !query 6194 output +false + + +-- !query 6195 +SELECT cast(1 as double) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6195 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE))):boolean> +-- !query 6195 output +false + + +-- !query 6196 +SELECT cast(1 as double) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6196 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE))):boolean> +-- !query 6196 output +false + + +-- !query 6197 +SELECT cast(1 as double) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6197 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE))):boolean> +-- !query 6197 output +false + + +-- !query 6198 +SELECT cast(1 as double) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6198 schema +struct<> +-- !query 6198 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6199 +SELECT cast(1 as double) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6199 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE))):boolean> +-- !query 6199 output +NULL + + +-- !query 6200 +SELECT cast(1 as double) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6200 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE))):boolean> +-- !query 6200 output +false + + +-- !query 6201 +SELECT cast(1 as double) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6201 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE))):boolean> +-- !query 6201 output +false + + +-- !query 6202 +SELECT cast(1 as double) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6202 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE))):boolean> +-- !query 6202 output +false + + +-- !query 6203 +SELECT cast(1 as double) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6203 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE))):boolean> +-- !query 6203 output +false + + +-- !query 6204 +SELECT cast(1 as double) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6204 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE))):boolean> +-- !query 6204 output +false + + +-- !query 6205 +SELECT cast(1 as double) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6205 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE))):boolean> +-- !query 6205 output +false + + +-- !query 6206 +SELECT cast(1 as double) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6206 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE))):boolean> +-- !query 6206 output +false + + +-- !query 6207 +SELECT cast(1 as double) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6207 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE))):boolean> +-- !query 6207 output +false + + +-- !query 6208 +SELECT cast(1 as double) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6208 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE))):boolean> +-- !query 6208 output +false + + +-- !query 6209 +SELECT cast(1 as double) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6209 schema +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE))):boolean> +-- !query 6209 output +false + + +-- !query 6210 +SELECT cast(1 as double) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6210 schema +struct<> +-- !query 6210 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as double) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6211 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6211 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6211 output +false + + +-- !query 6212 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6212 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6212 output +false + + +-- !query 6213 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6213 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6213 output +false + + +-- !query 6214 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6214 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6214 output +false + + +-- !query 6215 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6215 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6215 output +false + + +-- !query 6216 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6216 schema +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> +-- !query 6216 output +false + + +-- !query 6217 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6217 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6217 output +false + + +-- !query 6218 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6218 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6218 output +false + + +-- !query 6219 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6219 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6219 output +false + + +-- !query 6220 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6220 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6220 output +false + + +-- !query 6221 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6221 schema +struct<> +-- !query 6221 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6222 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6222 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6222 output +NULL + + +-- !query 6223 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6223 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6223 output +false + + +-- !query 6224 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6224 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6224 output +false + + +-- !query 6225 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6225 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6225 output +false + + +-- !query 6226 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6226 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6226 output +false + + +-- !query 6227 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6227 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6227 output +false + + +-- !query 6228 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6228 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6228 output +false + + +-- !query 6229 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6229 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> +-- !query 6229 output +false + + +-- !query 6230 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6230 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> +-- !query 6230 output +false + + +-- !query 6231 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6231 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> +-- !query 6231 output +false + + +-- !query 6232 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6232 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> +-- !query 6232 output +false + + +-- !query 6233 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6233 schema +struct<> +-- !query 6233 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6234 +SELECT cast('1' as binary) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6234 schema +struct<> +-- !query 6234 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 + + +-- !query 6235 +SELECT cast('1' as binary) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6235 schema +struct<> +-- !query 6235 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 + + +-- !query 6236 +SELECT cast('1' as binary) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6236 schema +struct<> +-- !query 6236 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 + + +-- !query 6237 +SELECT cast('1' as binary) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6237 schema +struct<> +-- !query 6237 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 + + +-- !query 6238 +SELECT cast('1' as binary) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6238 schema +struct<> +-- !query 6238 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 + + +-- !query 6239 +SELECT cast('1' as binary) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6239 schema +struct<> +-- !query 6239 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 + + +-- !query 6240 +SELECT cast('1' as binary) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6240 schema +struct<> +-- !query 6240 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 + + +-- !query 6241 +SELECT cast('1' as binary) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6241 schema +struct<> +-- !query 6241 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 + + +-- !query 6242 +SELECT cast('1' as binary) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6242 schema +struct<> +-- !query 6242 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 + + +-- !query 6243 +SELECT cast('1' as binary) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6243 schema +struct<> +-- !query 6243 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 + + +-- !query 6244 +SELECT cast('1' as binary) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6244 schema +struct<> +-- !query 6244 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6245 +SELECT cast('1' as binary) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6245 schema +struct<> +-- !query 6245 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 + + +-- !query 6246 +SELECT cast('1' as binary) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6246 schema +struct<> +-- !query 6246 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 + + +-- !query 6247 +SELECT cast('1' as binary) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6247 schema +struct<> +-- !query 6247 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 + + +-- !query 6248 +SELECT cast('1' as binary) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6248 schema +struct<> +-- !query 6248 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 + + +-- !query 6249 +SELECT cast('1' as binary) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6249 schema +struct<> +-- !query 6249 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 + + +-- !query 6250 +SELECT cast('1' as binary) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6250 schema +struct<> +-- !query 6250 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 + + +-- !query 6251 +SELECT cast('1' as binary) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6251 schema +struct<> +-- !query 6251 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 + + +-- !query 6252 +SELECT cast('1' as binary) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6252 schema +struct<> +-- !query 6252 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 + + +-- !query 6253 +SELECT cast('1' as binary) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6253 schema +struct<> +-- !query 6253 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 + + +-- !query 6254 +SELECT cast('1' as binary) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6254 schema +struct<> +-- !query 6254 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 + + +-- !query 6255 +SELECT cast('1' as binary) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6255 schema +struct<> +-- !query 6255 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 + + +-- !query 6256 +SELECT cast('1' as binary) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6256 schema +struct<> +-- !query 6256 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('1' as binary) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6257 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6257 schema +struct<> +-- !query 6257 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 + + +-- !query 6258 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6258 schema +struct<> +-- !query 6258 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 + + +-- !query 6259 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6259 schema +struct<> +-- !query 6259 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 + + +-- !query 6260 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6260 schema +struct<> +-- !query 6260 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 + + +-- !query 6261 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6261 schema +struct<> +-- !query 6261 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 + + +-- !query 6262 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6262 schema +struct<> +-- !query 6262 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 + + +-- !query 6263 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6263 schema +struct<> +-- !query 6263 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 + + +-- !query 6264 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6264 schema +struct<> +-- !query 6264 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 + + +-- !query 6265 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6265 schema +struct<> +-- !query 6265 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 + + +-- !query 6266 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6266 schema +struct<> +-- !query 6266 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 + + +-- !query 6267 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6267 schema +struct<> +-- !query 6267 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6268 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6268 schema +struct<> +-- !query 6268 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 + + +-- !query 6269 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6269 schema +struct<> +-- !query 6269 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 + + +-- !query 6270 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6270 schema +struct<> +-- !query 6270 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 + + +-- !query 6271 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6271 schema +struct<> +-- !query 6271 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 + + +-- !query 6272 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6272 schema +struct<> +-- !query 6272 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 + + +-- !query 6273 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6273 schema +struct<> +-- !query 6273 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 + + +-- !query 6274 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6274 schema +struct<> +-- !query 6274 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 + + +-- !query 6275 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6275 schema +struct<> +-- !query 6275 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 + + +-- !query 6276 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6276 schema +struct<> +-- !query 6276 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 + + +-- !query 6277 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6277 schema +struct<> +-- !query 6277 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 + + +-- !query 6278 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6278 schema +struct<> +-- !query 6278 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 + + +-- !query 6279 +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6279 schema +struct<> +-- !query 6279 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6280 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 0)) FROM t +-- !query 6280 schema +struct<> +-- !query 6280 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 + + +-- !query 6281 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 0)) FROM t +-- !query 6281 schema +struct<> +-- !query 6281 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + + +-- !query 6282 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 0)) FROM t +-- !query 6282 schema +struct<> +-- !query 6282 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 + + +-- !query 6283 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 0)) FROM t +-- !query 6283 schema +struct<> +-- !query 6283 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 + + +-- !query 6284 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 0)) FROM t +-- !query 6284 schema +struct<> +-- !query 6284 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 + + +-- !query 6285 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6285 schema +struct<> +-- !query 6285 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 + + +-- !query 6286 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 0)) FROM t +-- !query 6286 schema +struct<> +-- !query 6286 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 + + +-- !query 6287 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 0)) FROM t +-- !query 6287 schema +struct<> +-- !query 6287 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 + + +-- !query 6288 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 0)) FROM t +-- !query 6288 schema +struct<> +-- !query 6288 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 + + +-- !query 6289 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 0)) FROM t +-- !query 6289 schema +struct<> +-- !query 6289 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 + + +-- !query 6290 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 0)) FROM t +-- !query 6290 schema +struct<> +-- !query 6290 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 0)) FROM t + + +-- !query 6291 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 1)) FROM t +-- !query 6291 schema +struct<> +-- !query 6291 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 + + +-- !query 6292 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(2, 1)) FROM t +-- !query 6292 schema +struct<> +-- !query 6292 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 + + +-- !query 6293 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 1)) FROM t +-- !query 6293 schema +struct<> +-- !query 6293 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 + + +-- !query 6294 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 1)) FROM t +-- !query 6294 schema +struct<> +-- !query 6294 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 + + +-- !query 6295 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 1)) FROM t +-- !query 6295 schema +struct<> +-- !query 6295 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 + + +-- !query 6296 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 1)) FROM t +-- !query 6296 schema +struct<> +-- !query 6296 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 + + +-- !query 6297 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 1)) FROM t +-- !query 6297 schema +struct<> +-- !query 6297 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 + + +-- !query 6298 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 1)) FROM t +-- !query 6298 schema +struct<> +-- !query 6298 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 + + +-- !query 6299 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 1)) FROM t +-- !query 6299 schema +struct<> +-- !query 6299 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 + + +-- !query 6300 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 1)) FROM t +-- !query 6300 schema +struct<> +-- !query 6300 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 + + +-- !query 6301 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 1)) FROM t +-- !query 6301 schema +struct<> +-- !query 6301 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 + + +-- !query 6302 +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 1)) FROM t +-- !query 6302 schema +struct<> +-- !query 6302 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 1)) FROM t + + +-- !query 6303 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as tinyint) FROM t +-- !query 6303 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)))):boolean> +-- !query 6303 output +false + + +-- !query 6304 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as tinyint) FROM t +-- !query 6304 schema +struct<(NOT (CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)))):boolean> +-- !query 6304 output +false + + +-- !query 6305 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as tinyint) FROM t +-- !query 6305 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)))):boolean> +-- !query 6305 output +false + + +-- !query 6306 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as tinyint) FROM t +-- !query 6306 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6306 output +false + + +-- !query 6307 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as tinyint) FROM t +-- !query 6307 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)))):boolean> +-- !query 6307 output +false + + +-- !query 6308 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as tinyint) FROM t +-- !query 6308 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6308 output +false + + +-- !query 6309 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as tinyint) FROM t +-- !query 6309 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6309 output +false + + +-- !query 6310 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as tinyint) FROM t +-- !query 6310 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6310 output +false + + +-- !query 6311 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as tinyint) FROM t +-- !query 6311 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6311 output +false + + +-- !query 6312 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as tinyint) FROM t +-- !query 6312 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6312 output +false + + +-- !query 6313 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as tinyint) FROM t +-- !query 6313 schema +struct<> +-- !query 6313 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as tinyint) FROM t + + +-- !query 6314 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as tinyint) FROM t +-- !query 6314 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> +-- !query 6314 output +NULL + + +-- !query 6315 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as tinyint) FROM t +-- !query 6315 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> +-- !query 6315 output +false + + +-- !query 6316 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as tinyint) FROM t +-- !query 6316 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> +-- !query 6316 output +false + + +-- !query 6317 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as tinyint) FROM t +-- !query 6317 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> +-- !query 6317 output +false + + +-- !query 6318 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as tinyint) FROM t +-- !query 6318 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)))):boolean> +-- !query 6318 output +false + + +-- !query 6319 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as tinyint) FROM t +-- !query 6319 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)))):boolean> +-- !query 6319 output +false + + +-- !query 6320 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as tinyint) FROM t +-- !query 6320 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)))):boolean> +-- !query 6320 output +false + + +-- !query 6321 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as tinyint) FROM t +-- !query 6321 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6321 output +false + + +-- !query 6322 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as tinyint) FROM t +-- !query 6322 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)))):boolean> +-- !query 6322 output +false + + +-- !query 6323 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as tinyint) FROM t +-- !query 6323 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6323 output +false + + +-- !query 6324 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as tinyint) FROM t +-- !query 6324 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)))):boolean> +-- !query 6324 output +false + + +-- !query 6325 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as tinyint) FROM t +-- !query 6325 schema +struct<> +-- !query 6325 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as tinyint) FROM t + + +-- !query 6326 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as smallint) FROM t +-- !query 6326 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6326 output +false + + +-- !query 6327 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as smallint) FROM t +-- !query 6327 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6327 output +false + + +-- !query 6328 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as smallint) FROM t +-- !query 6328 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> +-- !query 6328 output +false + + +-- !query 6329 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as smallint) FROM t +-- !query 6329 schema +struct<(NOT (CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)))):boolean> +-- !query 6329 output +false + + +-- !query 6330 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as smallint) FROM t +-- !query 6330 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)))):boolean> +-- !query 6330 output +false + + +-- !query 6331 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as smallint) FROM t +-- !query 6331 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6331 output +false + + +-- !query 6332 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as smallint) FROM t +-- !query 6332 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6332 output +false + + +-- !query 6333 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as smallint) FROM t +-- !query 6333 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6333 output +false + + +-- !query 6334 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as smallint) FROM t +-- !query 6334 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6334 output +false + + +-- !query 6335 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as smallint) FROM t +-- !query 6335 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6335 output +false + + +-- !query 6336 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as smallint) FROM t +-- !query 6336 schema +struct<> +-- !query 6336 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as smallint) FROM t + + +-- !query 6337 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as smallint) FROM t +-- !query 6337 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> +-- !query 6337 output +NULL + + +-- !query 6338 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as smallint) FROM t +-- !query 6338 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> +-- !query 6338 output +false + + +-- !query 6339 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as smallint) FROM t +-- !query 6339 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> +-- !query 6339 output +false + + +-- !query 6340 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as smallint) FROM t +-- !query 6340 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> +-- !query 6340 output +false + + +-- !query 6341 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as smallint) FROM t +-- !query 6341 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> +-- !query 6341 output +false + + +-- !query 6342 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as smallint) FROM t +-- !query 6342 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> +-- !query 6342 output +false + + +-- !query 6343 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as smallint) FROM t +-- !query 6343 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)))):boolean> +-- !query 6343 output +false + + +-- !query 6344 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as smallint) FROM t +-- !query 6344 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6344 output +false + + +-- !query 6345 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as smallint) FROM t +-- !query 6345 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)))):boolean> +-- !query 6345 output +false + + +-- !query 6346 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as smallint) FROM t +-- !query 6346 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6346 output +false + + +-- !query 6347 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as smallint) FROM t +-- !query 6347 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)))):boolean> +-- !query 6347 output +false + + +-- !query 6348 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as smallint) FROM t +-- !query 6348 schema +struct<> +-- !query 6348 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as smallint) FROM t + + +-- !query 6349 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as int) FROM t +-- !query 6349 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6349 output +false + + +-- !query 6350 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as int) FROM t +-- !query 6350 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6350 output +false + + +-- !query 6351 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as int) FROM t +-- !query 6351 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6351 output +false + + +-- !query 6352 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as int) FROM t +-- !query 6352 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6352 output +false + + +-- !query 6353 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as int) FROM t +-- !query 6353 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6353 output +false + + +-- !query 6354 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as int) FROM t +-- !query 6354 schema +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS INT) AS DECIMAL(10,0)))):boolean> +-- !query 6354 output +false + + +-- !query 6355 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as int) FROM t +-- !query 6355 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6355 output +false + + +-- !query 6356 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as int) FROM t +-- !query 6356 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6356 output +false + + +-- !query 6357 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as int) FROM t +-- !query 6357 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6357 output +false + + +-- !query 6358 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as int) FROM t +-- !query 6358 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6358 output +false + + +-- !query 6359 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as int) FROM t +-- !query 6359 schema +struct<> +-- !query 6359 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as int) FROM t + + +-- !query 6360 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as int) FROM t +-- !query 6360 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6360 output +NULL + + +-- !query 6361 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as int) FROM t +-- !query 6361 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6361 output +false + + +-- !query 6362 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as int) FROM t +-- !query 6362 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6362 output +false + + +-- !query 6363 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as int) FROM t +-- !query 6363 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6363 output +false + + +-- !query 6364 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as int) FROM t +-- !query 6364 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6364 output +false + + +-- !query 6365 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as int) FROM t +-- !query 6365 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6365 output +false + + +-- !query 6366 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as int) FROM t +-- !query 6366 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6366 output +false + + +-- !query 6367 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as int) FROM t +-- !query 6367 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6367 output +false + + +-- !query 6368 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as int) FROM t +-- !query 6368 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)))):boolean> +-- !query 6368 output +false + + +-- !query 6369 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as int) FROM t +-- !query 6369 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6369 output +false + + +-- !query 6370 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as int) FROM t +-- !query 6370 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)))):boolean> +-- !query 6370 output +false + + +-- !query 6371 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as int) FROM t +-- !query 6371 schema +struct<> +-- !query 6371 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as int) FROM t + + +-- !query 6372 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as bigint) FROM t +-- !query 6372 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6372 output +false + + +-- !query 6373 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as bigint) FROM t +-- !query 6373 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6373 output +false + + +-- !query 6374 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as bigint) FROM t +-- !query 6374 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6374 output +false + + +-- !query 6375 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as bigint) FROM t +-- !query 6375 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6375 output +false + + +-- !query 6376 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as bigint) FROM t +-- !query 6376 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6376 output +false + + +-- !query 6377 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as bigint) FROM t +-- !query 6377 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6377 output +false + + +-- !query 6378 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as bigint) FROM t +-- !query 6378 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6378 output +false + + +-- !query 6379 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as bigint) FROM t +-- !query 6379 schema +struct<(NOT (CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)))):boolean> +-- !query 6379 output +false + + +-- !query 6380 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as bigint) FROM t +-- !query 6380 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6380 output +false + + +-- !query 6381 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as bigint) FROM t +-- !query 6381 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6381 output +false + + +-- !query 6382 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as bigint) FROM t +-- !query 6382 schema +struct<> +-- !query 6382 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as bigint) FROM t + + +-- !query 6383 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as bigint) FROM t +-- !query 6383 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6383 output +NULL + + +-- !query 6384 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as bigint) FROM t +-- !query 6384 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6384 output +false + + +-- !query 6385 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as bigint) FROM t +-- !query 6385 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6385 output +false + + +-- !query 6386 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as bigint) FROM t +-- !query 6386 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6386 output +false + + +-- !query 6387 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as bigint) FROM t +-- !query 6387 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6387 output +false + + +-- !query 6388 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as bigint) FROM t +-- !query 6388 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6388 output +false + + +-- !query 6389 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as bigint) FROM t +-- !query 6389 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6389 output +false + + +-- !query 6390 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as bigint) FROM t +-- !query 6390 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6390 output +false + + +-- !query 6391 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as bigint) FROM t +-- !query 6391 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6391 output +false + + +-- !query 6392 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as bigint) FROM t +-- !query 6392 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6392 output +false + + +-- !query 6393 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as bigint) FROM t +-- !query 6393 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)))):boolean> +-- !query 6393 output +false + + +-- !query 6394 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as bigint) FROM t +-- !query 6394 schema +struct<> +-- !query 6394 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as bigint) FROM t + + +-- !query 6395 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as float) FROM t +-- !query 6395 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6395 output +false + + +-- !query 6396 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as float) FROM t +-- !query 6396 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6396 output +false + + +-- !query 6397 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as float) FROM t +-- !query 6397 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6397 output +false + + +-- !query 6398 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as float) FROM t +-- !query 6398 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6398 output +false + + +-- !query 6399 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as float) FROM t +-- !query 6399 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6399 output +false + + +-- !query 6400 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as float) FROM t +-- !query 6400 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6400 output +false + + +-- !query 6401 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as float) FROM t +-- !query 6401 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6401 output +false + + +-- !query 6402 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as float) FROM t +-- !query 6402 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6402 output +false + + +-- !query 6403 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as float) FROM t +-- !query 6403 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6403 output +false + + +-- !query 6404 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as float) FROM t +-- !query 6404 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6404 output +false + + +-- !query 6405 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as float) FROM t +-- !query 6405 schema +struct<> +-- !query 6405 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as float) FROM t + + +-- !query 6406 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as float) FROM t +-- !query 6406 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6406 output +NULL + + +-- !query 6407 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as float) FROM t +-- !query 6407 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6407 output +false + + +-- !query 6408 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as float) FROM t +-- !query 6408 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6408 output +false + + +-- !query 6409 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as float) FROM t +-- !query 6409 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6409 output +false + + +-- !query 6410 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as float) FROM t +-- !query 6410 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6410 output +false + + +-- !query 6411 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as float) FROM t +-- !query 6411 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6411 output +false + + +-- !query 6412 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as float) FROM t +-- !query 6412 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6412 output +false + + +-- !query 6413 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as float) FROM t +-- !query 6413 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6413 output +false + + +-- !query 6414 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as float) FROM t +-- !query 6414 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6414 output +false + + +-- !query 6415 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as float) FROM t +-- !query 6415 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6415 output +false + + +-- !query 6416 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as float) FROM t +-- !query 6416 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> +-- !query 6416 output +false + + +-- !query 6417 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as float) FROM t +-- !query 6417 schema +struct<> +-- !query 6417 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as float) FROM t + + +-- !query 6418 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as double) FROM t +-- !query 6418 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6418 output +false + + +-- !query 6419 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as double) FROM t +-- !query 6419 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6419 output +false + + +-- !query 6420 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as double) FROM t +-- !query 6420 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6420 output +false + + +-- !query 6421 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as double) FROM t +-- !query 6421 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6421 output +false + + +-- !query 6422 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as double) FROM t +-- !query 6422 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6422 output +false + + +-- !query 6423 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as double) FROM t +-- !query 6423 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6423 output +false + + +-- !query 6424 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as double) FROM t +-- !query 6424 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6424 output +false + + +-- !query 6425 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as double) FROM t +-- !query 6425 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6425 output +false + + +-- !query 6426 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as double) FROM t +-- !query 6426 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6426 output +false + + +-- !query 6427 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as double) FROM t +-- !query 6427 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6427 output +false + + +-- !query 6428 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as double) FROM t +-- !query 6428 schema +struct<> +-- !query 6428 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as double) FROM t + + +-- !query 6429 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as double) FROM t +-- !query 6429 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6429 output +NULL + + +-- !query 6430 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as double) FROM t +-- !query 6430 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6430 output +false + + +-- !query 6431 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as double) FROM t +-- !query 6431 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6431 output +false + + +-- !query 6432 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as double) FROM t +-- !query 6432 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6432 output +false + + +-- !query 6433 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as double) FROM t +-- !query 6433 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6433 output +false + + +-- !query 6434 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as double) FROM t +-- !query 6434 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6434 output +false + + +-- !query 6435 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as double) FROM t +-- !query 6435 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6435 output +false + + +-- !query 6436 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as double) FROM t +-- !query 6436 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6436 output +false + + +-- !query 6437 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as double) FROM t +-- !query 6437 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6437 output +false + + +-- !query 6438 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as double) FROM t +-- !query 6438 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6438 output +false + + +-- !query 6439 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as double) FROM t +-- !query 6439 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> +-- !query 6439 output +false + + +-- !query 6440 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as double) FROM t +-- !query 6440 schema +struct<> +-- !query 6440 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as double) FROM t + + +-- !query 6441 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6441 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6441 output +false + + +-- !query 6442 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6442 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6442 output +false + + +-- !query 6443 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6443 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6443 output +false + + +-- !query 6444 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6444 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6444 output +false + + +-- !query 6445 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6445 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> +-- !query 6445 output +false + + +-- !query 6446 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6446 schema +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> +-- !query 6446 output +false + + +-- !query 6447 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6447 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)))):boolean> +-- !query 6447 output +false + + +-- !query 6448 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6448 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> +-- !query 6448 output +false + + +-- !query 6449 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6449 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)))):boolean> +-- !query 6449 output +false + + +-- !query 6450 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6450 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)))):boolean> +-- !query 6450 output +false + + +-- !query 6451 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6451 schema +struct<> +-- !query 6451 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as decimal(10, 0)) FROM t + + +-- !query 6452 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6452 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6452 output +NULL + + +-- !query 6453 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6453 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6453 output +false + + +-- !query 6454 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6454 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6454 output +false + + +-- !query 6455 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6455 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6455 output +false + + +-- !query 6456 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6456 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6456 output +false + + +-- !query 6457 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6457 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6457 output +false + + +-- !query 6458 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6458 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6458 output +false + + +-- !query 6459 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6459 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> +-- !query 6459 output +false + + +-- !query 6460 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6460 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)))):boolean> +-- !query 6460 output +false + + +-- !query 6461 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6461 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)))):boolean> +-- !query 6461 output +false + + +-- !query 6462 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6462 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)))):boolean> +-- !query 6462 output +false + + +-- !query 6463 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as decimal(10, 0)) FROM t +-- !query 6463 schema +struct<> +-- !query 6463 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as decimal(10, 0)) FROM t + + +-- !query 6464 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as string) FROM t +-- !query 6464 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6464 output +false + + +-- !query 6465 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as string) FROM t +-- !query 6465 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6465 output +false + + +-- !query 6466 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as string) FROM t +-- !query 6466 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6466 output +false + + +-- !query 6467 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as string) FROM t +-- !query 6467 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6467 output +false + + +-- !query 6468 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as string) FROM t +-- !query 6468 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6468 output +false + + +-- !query 6469 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as string) FROM t +-- !query 6469 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6469 output +false + + +-- !query 6470 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as string) FROM t +-- !query 6470 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6470 output +false + + +-- !query 6471 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as string) FROM t +-- !query 6471 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6471 output +false + + +-- !query 6472 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as string) FROM t +-- !query 6472 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6472 output +false + + +-- !query 6473 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as string) FROM t +-- !query 6473 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6473 output +false + + +-- !query 6474 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as string) FROM t +-- !query 6474 schema +struct<> +-- !query 6474 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as string) FROM t + + +-- !query 6475 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as string) FROM t +-- !query 6475 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6475 output +NULL + + +-- !query 6476 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as string) FROM t +-- !query 6476 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6476 output +false + + +-- !query 6477 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as string) FROM t +-- !query 6477 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6477 output +false + + +-- !query 6478 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as string) FROM t +-- !query 6478 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6478 output +false + + +-- !query 6479 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as string) FROM t +-- !query 6479 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6479 output +false + + +-- !query 6480 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as string) FROM t +-- !query 6480 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6480 output +false + + +-- !query 6481 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as string) FROM t +-- !query 6481 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6481 output +false + + +-- !query 6482 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as string) FROM t +-- !query 6482 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6482 output +false + + +-- !query 6483 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as string) FROM t +-- !query 6483 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6483 output +false + + +-- !query 6484 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as string) FROM t +-- !query 6484 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6484 output +false + + +-- !query 6485 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as string) FROM t +-- !query 6485 schema +struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> +-- !query 6485 output +false + + +-- !query 6486 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as string) FROM t +-- !query 6486 schema +struct<> +-- !query 6486 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as string) FROM t + + +-- !query 6487 +SELECT cast(1 as decimal(1, 0)) <> cast('1' as binary) FROM t +-- !query 6487 schema +struct<> +-- !query 6487 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 + + +-- !query 6488 +SELECT cast(1 as decimal(3, 0)) <> cast('1' as binary) FROM t +-- !query 6488 schema +struct<> +-- !query 6488 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 + + +-- !query 6489 +SELECT cast(1 as decimal(4, 0)) <> cast('1' as binary) FROM t +-- !query 6489 schema +struct<> +-- !query 6489 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 + + +-- !query 6490 +SELECT cast(1 as decimal(5, 0)) <> cast('1' as binary) FROM t +-- !query 6490 schema +struct<> +-- !query 6490 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 + + +-- !query 6491 +SELECT cast(1 as decimal(6, 0)) <> cast('1' as binary) FROM t +-- !query 6491 schema +struct<> +-- !query 6491 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 + + +-- !query 6492 +SELECT cast(1 as decimal(10, 0)) <> cast('1' as binary) FROM t +-- !query 6492 schema +struct<> +-- !query 6492 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 + + +-- !query 6493 +SELECT cast(1 as decimal(11, 0)) <> cast('1' as binary) FROM t +-- !query 6493 schema +struct<> +-- !query 6493 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 + + +-- !query 6494 +SELECT cast(1 as decimal(20, 0)) <> cast('1' as binary) FROM t +-- !query 6494 schema +struct<> +-- !query 6494 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 + + +-- !query 6495 +SELECT cast(1 as decimal(21, 0)) <> cast('1' as binary) FROM t +-- !query 6495 schema +struct<> +-- !query 6495 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 + + +-- !query 6496 +SELECT cast(1 as decimal(38, 0)) <> cast('1' as binary) FROM t +-- !query 6496 schema +struct<> +-- !query 6496 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 + + +-- !query 6497 +SELECT cast(1 as decimal(39, 0)) <> cast('1' as binary) FROM t +-- !query 6497 schema +struct<> +-- !query 6497 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast('1' as binary) FROM t + + +-- !query 6498 +SELECT cast(1 as decimal(1, 1)) <> cast('1' as binary) FROM t +-- !query 6498 schema +struct<> +-- !query 6498 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 + + +-- !query 6499 +SELECT cast(1 as decimal(2, 1)) <> cast('1' as binary) FROM t +-- !query 6499 schema +struct<> +-- !query 6499 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 + + +-- !query 6500 +SELECT cast(1 as decimal(3, 1)) <> cast('1' as binary) FROM t +-- !query 6500 schema +struct<> +-- !query 6500 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 + + +-- !query 6501 +SELECT cast(1 as decimal(4, 1)) <> cast('1' as binary) FROM t +-- !query 6501 schema +struct<> +-- !query 6501 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 + + +-- !query 6502 +SELECT cast(1 as decimal(5, 1)) <> cast('1' as binary) FROM t +-- !query 6502 schema +struct<> +-- !query 6502 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 + + +-- !query 6503 +SELECT cast(1 as decimal(6, 1)) <> cast('1' as binary) FROM t +-- !query 6503 schema +struct<> +-- !query 6503 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 + + +-- !query 6504 +SELECT cast(1 as decimal(10, 1)) <> cast('1' as binary) FROM t +-- !query 6504 schema +struct<> +-- !query 6504 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 + + +-- !query 6505 +SELECT cast(1 as decimal(11, 1)) <> cast('1' as binary) FROM t +-- !query 6505 schema +struct<> +-- !query 6505 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 + + +-- !query 6506 +SELECT cast(1 as decimal(20, 1)) <> cast('1' as binary) FROM t +-- !query 6506 schema +struct<> +-- !query 6506 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 + + +-- !query 6507 +SELECT cast(1 as decimal(21, 1)) <> cast('1' as binary) FROM t +-- !query 6507 schema +struct<> +-- !query 6507 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 + + +-- !query 6508 +SELECT cast(1 as decimal(38, 1)) <> cast('1' as binary) FROM t +-- !query 6508 schema +struct<> +-- !query 6508 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 + + +-- !query 6509 +SELECT cast(1 as decimal(39, 1)) <> cast('1' as binary) FROM t +-- !query 6509 schema +struct<> +-- !query 6509 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast('1' as binary) FROM t + + +-- !query 6510 +SELECT cast(1 as decimal(1, 0)) <> cast(1 as boolean) FROM t +-- !query 6510 schema +struct<(NOT (CAST(1 AS DECIMAL(1,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,0)))):boolean> +-- !query 6510 output +false + + +-- !query 6511 +SELECT cast(1 as decimal(3, 0)) <> cast(1 as boolean) FROM t +-- !query 6511 schema +struct<(NOT (CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0)))):boolean> +-- !query 6511 output +false + + +-- !query 6512 +SELECT cast(1 as decimal(4, 0)) <> cast(1 as boolean) FROM t +-- !query 6512 schema +struct<(NOT (CAST(1 AS DECIMAL(4,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,0)))):boolean> +-- !query 6512 output +false + + +-- !query 6513 +SELECT cast(1 as decimal(5, 0)) <> cast(1 as boolean) FROM t +-- !query 6513 schema +struct<(NOT (CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0)))):boolean> +-- !query 6513 output +false + + +-- !query 6514 +SELECT cast(1 as decimal(6, 0)) <> cast(1 as boolean) FROM t +-- !query 6514 schema +struct<(NOT (CAST(1 AS DECIMAL(6,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,0)))):boolean> +-- !query 6514 output +false + + +-- !query 6515 +SELECT cast(1 as decimal(10, 0)) <> cast(1 as boolean) FROM t +-- !query 6515 schema +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0)))):boolean> +-- !query 6515 output +false + + +-- !query 6516 +SELECT cast(1 as decimal(11, 0)) <> cast(1 as boolean) FROM t +-- !query 6516 schema +struct<(NOT (CAST(1 AS DECIMAL(11,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,0)))):boolean> +-- !query 6516 output +false + + +-- !query 6517 +SELECT cast(1 as decimal(20, 0)) <> cast(1 as boolean) FROM t +-- !query 6517 schema +struct<(NOT (CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0)))):boolean> +-- !query 6517 output +false + + +-- !query 6518 +SELECT cast(1 as decimal(21, 0)) <> cast(1 as boolean) FROM t +-- !query 6518 schema +struct<(NOT (CAST(1 AS DECIMAL(21,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,0)))):boolean> +-- !query 6518 output +false + + +-- !query 6519 +SELECT cast(1 as decimal(38, 0)) <> cast(1 as boolean) FROM t +-- !query 6519 schema +struct<(NOT (CAST(1 AS DECIMAL(38,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,0)))):boolean> +-- !query 6519 output +false + + +-- !query 6520 +SELECT cast(1 as decimal(39, 0)) <> cast(1 as boolean) FROM t +-- !query 6520 schema +struct<> +-- !query 6520 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast(1 as boolean) FROM t + + +-- !query 6521 +SELECT cast(1 as decimal(1, 1)) <> cast(1 as boolean) FROM t +-- !query 6521 schema +struct<(NOT (CAST(1 AS DECIMAL(1,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,1)))):boolean> +-- !query 6521 output +NULL + + +-- !query 6522 +SELECT cast(1 as decimal(2, 1)) <> cast(1 as boolean) FROM t +-- !query 6522 schema +struct<(NOT (CAST(1 AS DECIMAL(2,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(2,1)))):boolean> +-- !query 6522 output +false + + +-- !query 6523 +SELECT cast(1 as decimal(3, 1)) <> cast(1 as boolean) FROM t +-- !query 6523 schema +struct<(NOT (CAST(1 AS DECIMAL(3,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,1)))):boolean> +-- !query 6523 output +false + + +-- !query 6524 +SELECT cast(1 as decimal(4, 1)) <> cast(1 as boolean) FROM t +-- !query 6524 schema +struct<(NOT (CAST(1 AS DECIMAL(4,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,1)))):boolean> +-- !query 6524 output +false + + +-- !query 6525 +SELECT cast(1 as decimal(5, 1)) <> cast(1 as boolean) FROM t +-- !query 6525 schema +struct<(NOT (CAST(1 AS DECIMAL(5,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,1)))):boolean> +-- !query 6525 output +false + + +-- !query 6526 +SELECT cast(1 as decimal(6, 1)) <> cast(1 as boolean) FROM t +-- !query 6526 schema +struct<(NOT (CAST(1 AS DECIMAL(6,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,1)))):boolean> +-- !query 6526 output +false + + +-- !query 6527 +SELECT cast(1 as decimal(10, 1)) <> cast(1 as boolean) FROM t +-- !query 6527 schema +struct<(NOT (CAST(1 AS DECIMAL(10,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,1)))):boolean> +-- !query 6527 output +false + + +-- !query 6528 +SELECT cast(1 as decimal(11, 1)) <> cast(1 as boolean) FROM t +-- !query 6528 schema +struct<(NOT (CAST(1 AS DECIMAL(11,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,1)))):boolean> +-- !query 6528 output +false + + +-- !query 6529 +SELECT cast(1 as decimal(20, 1)) <> cast(1 as boolean) FROM t +-- !query 6529 schema +struct<(NOT (CAST(1 AS DECIMAL(20,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,1)))):boolean> +-- !query 6529 output +false + + +-- !query 6530 +SELECT cast(1 as decimal(21, 1)) <> cast(1 as boolean) FROM t +-- !query 6530 schema +struct<(NOT (CAST(1 AS DECIMAL(21,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,1)))):boolean> +-- !query 6530 output +false + + +-- !query 6531 +SELECT cast(1 as decimal(38, 1)) <> cast(1 as boolean) FROM t +-- !query 6531 schema +struct<(NOT (CAST(1 AS DECIMAL(38,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,1)))):boolean> +-- !query 6531 output +false + + +-- !query 6532 +SELECT cast(1 as decimal(39, 1)) <> cast(1 as boolean) FROM t +-- !query 6532 schema +struct<> +-- !query 6532 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast(1 as boolean) FROM t + + +-- !query 6533 +SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6533 schema +struct<> +-- !query 6533 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 + + +-- !query 6534 +SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6534 schema +struct<> +-- !query 6534 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 + + +-- !query 6535 +SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6535 schema +struct<> +-- !query 6535 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 + + +-- !query 6536 +SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6536 schema +struct<> +-- !query 6536 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 + + +-- !query 6537 +SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6537 schema +struct<> +-- !query 6537 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 + + +-- !query 6538 +SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6538 schema +struct<> +-- !query 6538 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 + + +-- !query 6539 +SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6539 schema +struct<> +-- !query 6539 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 + + +-- !query 6540 +SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6540 schema +struct<> +-- !query 6540 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 + + +-- !query 6541 +SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6541 schema +struct<> +-- !query 6541 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 + + +-- !query 6542 +SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6542 schema +struct<> +-- !query 6542 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 + + +-- !query 6543 +SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6543 schema +struct<> +-- !query 6543 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 6544 +SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6544 schema +struct<> +-- !query 6544 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 + + +-- !query 6545 +SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6545 schema +struct<> +-- !query 6545 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 + + +-- !query 6546 +SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6546 schema +struct<> +-- !query 6546 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 + + +-- !query 6547 +SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6547 schema +struct<> +-- !query 6547 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 + + +-- !query 6548 +SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6548 schema +struct<> +-- !query 6548 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 + + +-- !query 6549 +SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6549 schema +struct<> +-- !query 6549 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 + + +-- !query 6550 +SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6550 schema +struct<> +-- !query 6550 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 + + +-- !query 6551 +SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6551 schema +struct<> +-- !query 6551 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 + + +-- !query 6552 +SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6552 schema +struct<> +-- !query 6552 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 + + +-- !query 6553 +SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6553 schema +struct<> +-- !query 6553 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 + + +-- !query 6554 +SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6554 schema +struct<> +-- !query 6554 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 + + +-- !query 6555 +SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t +-- !query 6555 schema +struct<> +-- !query 6555 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t + + +-- !query 6556 +SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6556 schema +struct<> +-- !query 6556 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 + + +-- !query 6557 +SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6557 schema +struct<> +-- !query 6557 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 + + +-- !query 6558 +SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6558 schema +struct<> +-- !query 6558 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 + + +-- !query 6559 +SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6559 schema +struct<> +-- !query 6559 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 + + +-- !query 6560 +SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6560 schema +struct<> +-- !query 6560 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 + + +-- !query 6561 +SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6561 schema +struct<> +-- !query 6561 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 + + +-- !query 6562 +SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6562 schema +struct<> +-- !query 6562 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 + + +-- !query 6563 +SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6563 schema +struct<> +-- !query 6563 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 + + +-- !query 6564 +SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6564 schema +struct<> +-- !query 6564 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 + + +-- !query 6565 +SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6565 schema +struct<> +-- !query 6565 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 + + +-- !query 6566 +SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6566 schema +struct<> +-- !query 6566 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t + + +-- !query 6567 +SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6567 schema +struct<> +-- !query 6567 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 + + +-- !query 6568 +SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6568 schema +struct<> +-- !query 6568 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 + + +-- !query 6569 +SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6569 schema +struct<> +-- !query 6569 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 + + +-- !query 6570 +SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6570 schema +struct<> +-- !query 6570 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 + + +-- !query 6571 +SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6571 schema +struct<> +-- !query 6571 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 + + +-- !query 6572 +SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6572 schema +struct<> +-- !query 6572 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 + + +-- !query 6573 +SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6573 schema +struct<> +-- !query 6573 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 + + +-- !query 6574 +SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6574 schema +struct<> +-- !query 6574 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 + + +-- !query 6575 +SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6575 schema +struct<> +-- !query 6575 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 + + +-- !query 6576 +SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6576 schema +struct<> +-- !query 6576 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 + + +-- !query 6577 +SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6577 schema +struct<> +-- !query 6577 output +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 + + +-- !query 6578 +SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t +-- !query 6578 schema +struct<> +-- !query 6578 output +org.apache.spark.sql.catalyst.parser.ParseException + +DecimalType can only support precision up to 38 +== SQL == +SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out new file mode 100644 index 0000000000000..676360172b35c --- /dev/null +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out @@ -0,0 +1,187611 @@ +-- Automatically generated by SQLQueryTestSuite +-- Number of queries: 21493 + + +-- !query 0 +CREATE TEMPORARY VIEW t AS SELECT 1 +-- !query 0 schema +struct<> +-- !query 0 output + + + +-- !query 1 +SELECT array(cast(1 as tinyint), cast(1 as tinyint)) FROM t +-- !query 1 schema +struct> +-- !query 1 output +[1,1] + + +-- !query 2 +SELECT array(cast(1 as tinyint), cast(1 as smallint)) FROM t +-- !query 2 schema +struct> +-- !query 2 output +[1,1] + + +-- !query 3 +SELECT array(cast(1 as tinyint), cast(1 as int)) FROM t +-- !query 3 schema +struct> +-- !query 3 output +[1,1] + + +-- !query 4 +SELECT array(cast(1 as tinyint), cast(1 as bigint)) FROM t +-- !query 4 schema +struct> +-- !query 4 output +[1,1] + + +-- !query 5 +SELECT array(cast(1 as tinyint), cast(1 as float)) FROM t +-- !query 5 schema +struct> +-- !query 5 output +[1.0,1.0] + + +-- !query 6 +SELECT array(cast(1 as tinyint), cast(1 as double)) FROM t +-- !query 6 schema +struct> +-- !query 6 output +[1.0,1.0] + + +-- !query 7 +SELECT array(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t +-- !query 7 schema +struct> +-- !query 7 output +[1,1] + + +-- !query 8 +SELECT array(cast(1 as tinyint), cast(1 as string)) FROM t +-- !query 8 schema +struct> +-- !query 8 output +["1","1"] + + +-- !query 9 +SELECT array(cast(1 as tinyint), cast('1' as binary)) FROM t +-- !query 9 schema +struct<> +-- !query 9 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS TINYINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, binary]; line 1 pos 7 + + +-- !query 10 +SELECT array(cast(1 as tinyint), cast(1 as boolean)) FROM t +-- !query 10 schema +struct<> +-- !query 10 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, boolean]; line 1 pos 7 + + +-- !query 11 +SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 11 schema +struct<> +-- !query 11 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12 +SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 12 schema +struct<> +-- !query 12 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, date]; line 1 pos 7 + + +-- !query 13 +SELECT array(cast(1 as smallint), cast(1 as tinyint)) FROM t +-- !query 13 schema +struct> +-- !query 13 output +[1,1] + + +-- !query 14 +SELECT array(cast(1 as smallint), cast(1 as smallint)) FROM t +-- !query 14 schema +struct> +-- !query 14 output +[1,1] + + +-- !query 15 +SELECT array(cast(1 as smallint), cast(1 as int)) FROM t +-- !query 15 schema +struct> +-- !query 15 output +[1,1] + + +-- !query 16 +SELECT array(cast(1 as smallint), cast(1 as bigint)) FROM t +-- !query 16 schema +struct> +-- !query 16 output +[1,1] + + +-- !query 17 +SELECT array(cast(1 as smallint), cast(1 as float)) FROM t +-- !query 17 schema +struct> +-- !query 17 output +[1.0,1.0] + + +-- !query 18 +SELECT array(cast(1 as smallint), cast(1 as double)) FROM t +-- !query 18 schema +struct> +-- !query 18 output +[1.0,1.0] + + +-- !query 19 +SELECT array(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t +-- !query 19 schema +struct> +-- !query 19 output +[1,1] + + +-- !query 20 +SELECT array(cast(1 as smallint), cast(1 as string)) FROM t +-- !query 20 schema +struct> +-- !query 20 output +["1","1"] + + +-- !query 21 +SELECT array(cast(1 as smallint), cast('1' as binary)) FROM t +-- !query 21 schema +struct<> +-- !query 21 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS SMALLINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, binary]; line 1 pos 7 + + +-- !query 22 +SELECT array(cast(1 as smallint), cast(1 as boolean)) FROM t +-- !query 22 schema +struct<> +-- !query 22 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, boolean]; line 1 pos 7 + + +-- !query 23 +SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 23 schema +struct<> +-- !query 23 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, timestamp]; line 1 pos 7 + + +-- !query 24 +SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 24 schema +struct<> +-- !query 24 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, date]; line 1 pos 7 + + +-- !query 25 +SELECT array(cast(1 as int), cast(1 as tinyint)) FROM t +-- !query 25 schema +struct> +-- !query 25 output +[1,1] + + +-- !query 26 +SELECT array(cast(1 as int), cast(1 as smallint)) FROM t +-- !query 26 schema +struct> +-- !query 26 output +[1,1] + + +-- !query 27 +SELECT array(cast(1 as int), cast(1 as int)) FROM t +-- !query 27 schema +struct> +-- !query 27 output +[1,1] + + +-- !query 28 +SELECT array(cast(1 as int), cast(1 as bigint)) FROM t +-- !query 28 schema +struct> +-- !query 28 output +[1,1] + + +-- !query 29 +SELECT array(cast(1 as int), cast(1 as float)) FROM t +-- !query 29 schema +struct> +-- !query 29 output +[1.0,1.0] + + +-- !query 30 +SELECT array(cast(1 as int), cast(1 as double)) FROM t +-- !query 30 schema +struct> +-- !query 30 output +[1.0,1.0] + + +-- !query 31 +SELECT array(cast(1 as int), cast(1 as decimal(10, 0))) FROM t +-- !query 31 schema +struct> +-- !query 31 output +[1,1] + + +-- !query 32 +SELECT array(cast(1 as int), cast(1 as string)) FROM t +-- !query 32 schema +struct> +-- !query 32 output +["1","1"] + + +-- !query 33 +SELECT array(cast(1 as int), cast('1' as binary)) FROM t +-- !query 33 schema +struct<> +-- !query 33 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS INT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [int, binary]; line 1 pos 7 + + +-- !query 34 +SELECT array(cast(1 as int), cast(1 as boolean)) FROM t +-- !query 34 schema +struct<> +-- !query 34 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS INT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [int, boolean]; line 1 pos 7 + + +-- !query 35 +SELECT array(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 35 schema +struct<> +-- !query 35 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [int, timestamp]; line 1 pos 7 + + +-- !query 36 +SELECT array(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 36 schema +struct<> +-- !query 36 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [int, date]; line 1 pos 7 + + +-- !query 37 +SELECT array(cast(1 as bigint), cast(1 as tinyint)) FROM t +-- !query 37 schema +struct> +-- !query 37 output +[1,1] + + +-- !query 38 +SELECT array(cast(1 as bigint), cast(1 as smallint)) FROM t +-- !query 38 schema +struct> +-- !query 38 output +[1,1] + + +-- !query 39 +SELECT array(cast(1 as bigint), cast(1 as int)) FROM t +-- !query 39 schema +struct> +-- !query 39 output +[1,1] + + +-- !query 40 +SELECT array(cast(1 as bigint), cast(1 as bigint)) FROM t +-- !query 40 schema +struct> +-- !query 40 output +[1,1] + + +-- !query 41 +SELECT array(cast(1 as bigint), cast(1 as float)) FROM t +-- !query 41 schema +struct> +-- !query 41 output +[1.0,1.0] + + +-- !query 42 +SELECT array(cast(1 as bigint), cast(1 as double)) FROM t +-- !query 42 schema +struct> +-- !query 42 output +[1.0,1.0] + + +-- !query 43 +SELECT array(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t +-- !query 43 schema +struct> +-- !query 43 output +[1,1] + + +-- !query 44 +SELECT array(cast(1 as bigint), cast(1 as string)) FROM t +-- !query 44 schema +struct> +-- !query 44 output +["1","1"] + + +-- !query 45 +SELECT array(cast(1 as bigint), cast('1' as binary)) FROM t +-- !query 45 schema +struct<> +-- !query 45 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BIGINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, binary]; line 1 pos 7 + + +-- !query 46 +SELECT array(cast(1 as bigint), cast(1 as boolean)) FROM t +-- !query 46 schema +struct<> +-- !query 46 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, boolean]; line 1 pos 7 + + +-- !query 47 +SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 47 schema +struct<> +-- !query 47 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, timestamp]; line 1 pos 7 + + +-- !query 48 +SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 48 schema +struct<> +-- !query 48 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, date]; line 1 pos 7 + + +-- !query 49 +SELECT array(cast(1 as float), cast(1 as tinyint)) FROM t +-- !query 49 schema +struct> +-- !query 49 output +[1.0,1.0] + + +-- !query 50 +SELECT array(cast(1 as float), cast(1 as smallint)) FROM t +-- !query 50 schema +struct> +-- !query 50 output +[1.0,1.0] + + +-- !query 51 +SELECT array(cast(1 as float), cast(1 as int)) FROM t +-- !query 51 schema +struct> +-- !query 51 output +[1.0,1.0] + + +-- !query 52 +SELECT array(cast(1 as float), cast(1 as bigint)) FROM t +-- !query 52 schema +struct> +-- !query 52 output +[1.0,1.0] + + +-- !query 53 +SELECT array(cast(1 as float), cast(1 as float)) FROM t +-- !query 53 schema +struct> +-- !query 53 output +[1.0,1.0] + + +-- !query 54 +SELECT array(cast(1 as float), cast(1 as double)) FROM t +-- !query 54 schema +struct> +-- !query 54 output +[1.0,1.0] + + +-- !query 55 +SELECT array(cast(1 as float), cast(1 as decimal(10, 0))) FROM t +-- !query 55 schema +struct> +-- !query 55 output +[1.0,1.0] + + +-- !query 56 +SELECT array(cast(1 as float), cast(1 as string)) FROM t +-- !query 56 schema +struct> +-- !query 56 output +["1.0","1"] + + +-- !query 57 +SELECT array(cast(1 as float), cast('1' as binary)) FROM t +-- !query 57 schema +struct<> +-- !query 57 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS FLOAT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [float, binary]; line 1 pos 7 + + +-- !query 58 +SELECT array(cast(1 as float), cast(1 as boolean)) FROM t +-- !query 58 schema +struct<> +-- !query 58 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [float, boolean]; line 1 pos 7 + + +-- !query 59 +SELECT array(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 59 schema +struct<> +-- !query 59 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [float, timestamp]; line 1 pos 7 + + +-- !query 60 +SELECT array(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 60 schema +struct<> +-- !query 60 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [float, date]; line 1 pos 7 + + +-- !query 61 +SELECT array(cast(1 as double), cast(1 as tinyint)) FROM t +-- !query 61 schema +struct> +-- !query 61 output +[1.0,1.0] + + +-- !query 62 +SELECT array(cast(1 as double), cast(1 as smallint)) FROM t +-- !query 62 schema +struct> +-- !query 62 output +[1.0,1.0] + + +-- !query 63 +SELECT array(cast(1 as double), cast(1 as int)) FROM t +-- !query 63 schema +struct> +-- !query 63 output +[1.0,1.0] + + +-- !query 64 +SELECT array(cast(1 as double), cast(1 as bigint)) FROM t +-- !query 64 schema +struct> +-- !query 64 output +[1.0,1.0] + + +-- !query 65 +SELECT array(cast(1 as double), cast(1 as float)) FROM t +-- !query 65 schema +struct> +-- !query 65 output +[1.0,1.0] + + +-- !query 66 +SELECT array(cast(1 as double), cast(1 as double)) FROM t +-- !query 66 schema +struct> +-- !query 66 output +[1.0,1.0] + + +-- !query 67 +SELECT array(cast(1 as double), cast(1 as decimal(10, 0))) FROM t +-- !query 67 schema +struct> +-- !query 67 output +[1.0,1.0] + + +-- !query 68 +SELECT array(cast(1 as double), cast(1 as string)) FROM t +-- !query 68 schema +struct> +-- !query 68 output +["1.0","1"] + + +-- !query 69 +SELECT array(cast(1 as double), cast('1' as binary)) FROM t +-- !query 69 schema +struct<> +-- !query 69 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DOUBLE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [double, binary]; line 1 pos 7 + + +-- !query 70 +SELECT array(cast(1 as double), cast(1 as boolean)) FROM t +-- !query 70 schema +struct<> +-- !query 70 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [double, boolean]; line 1 pos 7 + + +-- !query 71 +SELECT array(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 71 schema +struct<> +-- !query 71 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [double, timestamp]; line 1 pos 7 + + +-- !query 72 +SELECT array(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 72 schema +struct<> +-- !query 72 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [double, date]; line 1 pos 7 + + +-- !query 73 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t +-- !query 73 schema +struct> +-- !query 73 output +[1,1] + + +-- !query 74 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t +-- !query 74 schema +struct> +-- !query 74 output +[1,1] + + +-- !query 75 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t +-- !query 75 schema +struct> +-- !query 75 output +[1,1] + + +-- !query 76 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t +-- !query 76 schema +struct> +-- !query 76 output +[1,1] + + +-- !query 77 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t +-- !query 77 schema +struct> +-- !query 77 output +[1.0,1.0] + + +-- !query 78 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t +-- !query 78 schema +struct> +-- !query 78 output +[1.0,1.0] + + +-- !query 79 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t +-- !query 79 schema +struct> +-- !query 79 output +[1,1] + + +-- !query 80 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t +-- !query 80 schema +struct> +-- !query 80 output +["1","1"] + + +-- !query 81 +SELECT array(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t +-- !query 81 schema +struct<> +-- !query 81 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 82 +SELECT array(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t +-- !query 82 schema +struct<> +-- !query 82 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 83 +SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 83 schema +struct<> +-- !query 83 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 84 +SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 84 schema +struct<> +-- !query 84 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), date]; line 1 pos 7 + + +-- !query 85 +SELECT array(cast(1 as string), cast(1 as tinyint)) FROM t +-- !query 85 schema +struct> +-- !query 85 output +["1","1"] + + +-- !query 86 +SELECT array(cast(1 as string), cast(1 as smallint)) FROM t +-- !query 86 schema +struct> +-- !query 86 output +["1","1"] + + +-- !query 87 +SELECT array(cast(1 as string), cast(1 as int)) FROM t +-- !query 87 schema +struct> +-- !query 87 output +["1","1"] + + +-- !query 88 +SELECT array(cast(1 as string), cast(1 as bigint)) FROM t +-- !query 88 schema +struct> +-- !query 88 output +["1","1"] + + +-- !query 89 +SELECT array(cast(1 as string), cast(1 as float)) FROM t +-- !query 89 schema +struct> +-- !query 89 output +["1","1.0"] + + +-- !query 90 +SELECT array(cast(1 as string), cast(1 as double)) FROM t +-- !query 90 schema +struct> +-- !query 90 output +["1","1.0"] + + +-- !query 91 +SELECT array(cast(1 as string), cast(1 as decimal(10, 0))) FROM t +-- !query 91 schema +struct> +-- !query 91 output +["1","1"] + + +-- !query 92 +SELECT array(cast(1 as string), cast(1 as string)) FROM t +-- !query 92 schema +struct> +-- !query 92 output +["1","1"] + + +-- !query 93 +SELECT array(cast(1 as string), cast('1' as binary)) FROM t +-- !query 93 schema +struct<> +-- !query 93 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS STRING), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [string, binary]; line 1 pos 7 + + +-- !query 94 +SELECT array(cast(1 as string), cast(1 as boolean)) FROM t +-- !query 94 schema +struct<> +-- !query 94 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS STRING), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [string, boolean]; line 1 pos 7 + + +-- !query 95 +SELECT array(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 95 schema +struct> +-- !query 95 output +["1","2017-12-11 09:30:00"] + + +-- !query 96 +SELECT array(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 96 schema +struct> +-- !query 96 output +["1","2017-12-11"] + + +-- !query 97 +SELECT array(cast('1' as binary), cast(1 as tinyint)) FROM t +-- !query 97 schema +struct<> +-- !query 97 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, tinyint]; line 1 pos 7 + + +-- !query 98 +SELECT array(cast('1' as binary), cast(1 as smallint)) FROM t +-- !query 98 schema +struct<> +-- !query 98 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, smallint]; line 1 pos 7 + + +-- !query 99 +SELECT array(cast('1' as binary), cast(1 as int)) FROM t +-- !query 99 schema +struct<> +-- !query 99 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, int]; line 1 pos 7 + + +-- !query 100 +SELECT array(cast('1' as binary), cast(1 as bigint)) FROM t +-- !query 100 schema +struct<> +-- !query 100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, bigint]; line 1 pos 7 + + +-- !query 101 +SELECT array(cast('1' as binary), cast(1 as float)) FROM t +-- !query 101 schema +struct<> +-- !query 101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, float]; line 1 pos 7 + + +-- !query 102 +SELECT array(cast('1' as binary), cast(1 as double)) FROM t +-- !query 102 schema +struct<> +-- !query 102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, double]; line 1 pos 7 + + +-- !query 103 +SELECT array(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t +-- !query 103 schema +struct<> +-- !query 103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 104 +SELECT array(cast('1' as binary), cast(1 as string)) FROM t +-- !query 104 schema +struct<> +-- !query 104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS STRING))' due to data type mismatch: input to function array should all be the same type, but it's [binary, string]; line 1 pos 7 + + +-- !query 105 +SELECT array(cast('1' as binary), cast('1' as binary)) FROM t +-- !query 105 schema +struct> +-- !query 105 output +[[B@501a5f1f,[B@3cd4595f] + + +-- !query 106 +SELECT array(cast('1' as binary), cast(1 as boolean)) FROM t +-- !query 106 schema +struct<> +-- !query 106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [binary, boolean]; line 1 pos 7 + + +-- !query 107 +SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 107 schema +struct<> +-- !query 107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [binary, timestamp]; line 1 pos 7 + + +-- !query 108 +SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 108 schema +struct<> +-- !query 108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, date]; line 1 pos 7 + + +-- !query 109 +SELECT array(cast(1 as boolean), cast(1 as tinyint)) FROM t +-- !query 109 schema +struct<> +-- !query 109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, tinyint]; line 1 pos 7 + + +-- !query 110 +SELECT array(cast(1 as boolean), cast(1 as smallint)) FROM t +-- !query 110 schema +struct<> +-- !query 110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, smallint]; line 1 pos 7 + + +-- !query 111 +SELECT array(cast(1 as boolean), cast(1 as int)) FROM t +-- !query 111 schema +struct<> +-- !query 111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, int]; line 1 pos 7 + + +-- !query 112 +SELECT array(cast(1 as boolean), cast(1 as bigint)) FROM t +-- !query 112 schema +struct<> +-- !query 112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, bigint]; line 1 pos 7 + + +-- !query 113 +SELECT array(cast(1 as boolean), cast(1 as float)) FROM t +-- !query 113 schema +struct<> +-- !query 113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, float]; line 1 pos 7 + + +-- !query 114 +SELECT array(cast(1 as boolean), cast(1 as double)) FROM t +-- !query 114 schema +struct<> +-- !query 114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, double]; line 1 pos 7 + + +-- !query 115 +SELECT array(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t +-- !query 115 schema +struct<> +-- !query 115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 116 +SELECT array(cast(1 as boolean), cast(1 as string)) FROM t +-- !query 116 schema +struct<> +-- !query 116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS STRING))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, string]; line 1 pos 7 + + +-- !query 117 +SELECT array(cast(1 as boolean), cast('1' as binary)) FROM t +-- !query 117 schema +struct<> +-- !query 117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, binary]; line 1 pos 7 + + +-- !query 118 +SELECT array(cast(1 as boolean), cast(1 as boolean)) FROM t +-- !query 118 schema +struct> +-- !query 118 output +[true,true] + + +-- !query 119 +SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 119 schema +struct<> +-- !query 119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, timestamp]; line 1 pos 7 + + +-- !query 120 +SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 120 schema +struct<> +-- !query 120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, date]; line 1 pos 7 + + +-- !query 121 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t +-- !query 121 schema +struct<> +-- !query 121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, tinyint]; line 1 pos 7 + + +-- !query 122 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t +-- !query 122 schema +struct<> +-- !query 122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, smallint]; line 1 pos 7 + + +-- !query 123 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t +-- !query 123 schema +struct<> +-- !query 123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, int]; line 1 pos 7 + + +-- !query 124 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t +-- !query 124 schema +struct<> +-- !query 124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, bigint]; line 1 pos 7 + + +-- !query 125 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t +-- !query 125 schema +struct<> +-- !query 125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, float]; line 1 pos 7 + + +-- !query 126 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t +-- !query 126 schema +struct<> +-- !query 126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, double]; line 1 pos 7 + + +-- !query 127 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t +-- !query 127 schema +struct<> +-- !query 127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 128 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t +-- !query 128 schema +struct> +-- !query 128 output +["2017-12-11 09:30:00","1"] + + +-- !query 129 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary)) FROM t +-- !query 129 schema +struct<> +-- !query 129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, binary]; line 1 pos 7 + + +-- !query 130 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t +-- !query 130 schema +struct<> +-- !query 130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, boolean]; line 1 pos 7 + + +-- !query 131 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 131 schema +struct> +-- !query 131 output +[2017-12-11 09:30:00.0,2017-12-11 09:30:00.0] + + +-- !query 132 +SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 132 schema +struct> +-- !query 132 output +[2017-12-11 09:30:00.0,2017-12-11 00:00:00.0] + + +-- !query 133 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t +-- !query 133 schema +struct<> +-- !query 133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [date, tinyint]; line 1 pos 7 + + +-- !query 134 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t +-- !query 134 schema +struct<> +-- !query 134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [date, smallint]; line 1 pos 7 + + +-- !query 135 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t +-- !query 135 schema +struct<> +-- !query 135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [date, int]; line 1 pos 7 + + +-- !query 136 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t +-- !query 136 schema +struct<> +-- !query 136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [date, bigint]; line 1 pos 7 + + +-- !query 137 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t +-- !query 137 schema +struct<> +-- !query 137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [date, float]; line 1 pos 7 + + +-- !query 138 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t +-- !query 138 schema +struct<> +-- !query 138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [date, double]; line 1 pos 7 + + +-- !query 139 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t +-- !query 139 schema +struct<> +-- !query 139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 140 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t +-- !query 140 schema +struct> +-- !query 140 output +["2017-12-11","1"] + + +-- !query 141 +SELECT array(cast('2017-12-11 09:30:00' as date), cast('1' as binary)) FROM t +-- !query 141 schema +struct<> +-- !query 141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [date, binary]; line 1 pos 7 + + +-- !query 142 +SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t +-- !query 142 schema +struct<> +-- !query 142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [date, boolean]; line 1 pos 7 + + +-- !query 143 +SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 143 schema +struct> +-- !query 143 output +[2017-12-11 00:00:00.0,2017-12-11 09:30:00.0] + + +-- !query 144 +SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 144 schema +struct> +-- !query 144 output +[2017-12-11,2017-12-11] + + +-- !query 145 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 145 schema +struct> +-- !query 145 output +{1:1,2:2} + + +-- !query 146 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 146 schema +struct> +-- !query 146 output +{1:1,2:2} + + +-- !query 147 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 147 schema +struct> +-- !query 147 output +{1:1,2:2} + + +-- !query 148 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 148 schema +struct> +-- !query 148 output +{1:1,2:2} + + +-- !query 149 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 149 schema +struct> +-- !query 149 output +{1:1.0,2:2.0} + + +-- !query 150 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 150 schema +struct> +-- !query 150 output +{1:1.0,2:2.0} + + +-- !query 151 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 151 schema +struct> +-- !query 151 output +{1:1,2:2} + + +-- !query 152 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 152 schema +struct> +-- !query 152 output +{1:"1",2:"2"} + + +-- !query 153 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 153 schema +struct<> +-- !query 153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 154 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 154 schema +struct<> +-- !query 154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 155 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 155 schema +struct<> +-- !query 155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 156 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 156 schema +struct<> +-- !query 156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 157 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 157 schema +struct> +-- !query 157 output +{1:1,2:2} + + +-- !query 158 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 158 schema +struct> +-- !query 158 output +{1:1,2:2} + + +-- !query 159 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 159 schema +struct> +-- !query 159 output +{1:1,2:2} + + +-- !query 160 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 160 schema +struct> +-- !query 160 output +{1:1,2:2} + + +-- !query 161 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 161 schema +struct> +-- !query 161 output +{1:1.0,2:2.0} + + +-- !query 162 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 162 schema +struct> +-- !query 162 output +{1:1.0,2:2.0} + + +-- !query 163 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 163 schema +struct> +-- !query 163 output +{1:1,2:2} + + +-- !query 164 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 164 schema +struct> +-- !query 164 output +{1:"1",2:"2"} + + +-- !query 165 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 165 schema +struct<> +-- !query 165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 166 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 166 schema +struct<> +-- !query 166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 167 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 167 schema +struct<> +-- !query 167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 168 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 168 schema +struct<> +-- !query 168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 169 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 169 schema +struct> +-- !query 169 output +{1:1,2:2} + + +-- !query 170 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 170 schema +struct> +-- !query 170 output +{1:1,2:2} + + +-- !query 171 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 171 schema +struct> +-- !query 171 output +{1:1,2:2} + + +-- !query 172 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 172 schema +struct> +-- !query 172 output +{1:1,2:2} + + +-- !query 173 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 173 schema +struct> +-- !query 173 output +{1:1.0,2:2.0} + + +-- !query 174 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 174 schema +struct> +-- !query 174 output +{1:1.0,2:2.0} + + +-- !query 175 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 175 schema +struct> +-- !query 175 output +{1:1,2:2} + + +-- !query 176 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 176 schema +struct> +-- !query 176 output +{1:"1",2:"2"} + + +-- !query 177 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 177 schema +struct<> +-- !query 177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 178 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 178 schema +struct<> +-- !query 178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 179 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 179 schema +struct<> +-- !query 179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 180 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 180 schema +struct<> +-- !query 180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 181 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 181 schema +struct> +-- !query 181 output +{1:1,2:2} + + +-- !query 182 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 182 schema +struct> +-- !query 182 output +{1:1,2:2} + + +-- !query 183 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 183 schema +struct> +-- !query 183 output +{1:1,2:2} + + +-- !query 184 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 184 schema +struct> +-- !query 184 output +{1:1,2:2} + + +-- !query 185 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 185 schema +struct> +-- !query 185 output +{1:1.0,2:2.0} + + +-- !query 186 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 186 schema +struct> +-- !query 186 output +{1:1.0,2:2.0} + + +-- !query 187 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 187 schema +struct> +-- !query 187 output +{1:1,2:2} + + +-- !query 188 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 188 schema +struct> +-- !query 188 output +{1:"1",2:"2"} + + +-- !query 189 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 189 schema +struct<> +-- !query 189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 190 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 190 schema +struct<> +-- !query 190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 191 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 191 schema +struct<> +-- !query 191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 192 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 192 schema +struct<> +-- !query 192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 193 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 193 schema +struct> +-- !query 193 output +{1.0:1,2.0:2} + + +-- !query 194 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 194 schema +struct> +-- !query 194 output +{1.0:1,2.0:2} + + +-- !query 195 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 195 schema +struct> +-- !query 195 output +{1.0:1,2.0:2} + + +-- !query 196 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 196 schema +struct> +-- !query 196 output +{1.0:1,2.0:2} + + +-- !query 197 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 197 schema +struct> +-- !query 197 output +{1.0:1.0,2.0:2.0} + + +-- !query 198 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 198 schema +struct> +-- !query 198 output +{1.0:1.0,2.0:2.0} + + +-- !query 199 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 199 schema +struct> +-- !query 199 output +{1.0:1,2.0:2} + + +-- !query 200 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 200 schema +struct> +-- !query 200 output +{1.0:"1",2.0:"2"} + + +-- !query 201 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 201 schema +struct<> +-- !query 201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 202 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 202 schema +struct<> +-- !query 202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 203 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 203 schema +struct<> +-- !query 203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 204 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 204 schema +struct<> +-- !query 204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 205 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 205 schema +struct> +-- !query 205 output +{1.0:1,2.0:2} + + +-- !query 206 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 206 schema +struct> +-- !query 206 output +{1.0:1,2.0:2} + + +-- !query 207 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 207 schema +struct> +-- !query 207 output +{1.0:1,2.0:2} + + +-- !query 208 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 208 schema +struct> +-- !query 208 output +{1.0:1,2.0:2} + + +-- !query 209 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 209 schema +struct> +-- !query 209 output +{1.0:1.0,2.0:2.0} + + +-- !query 210 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 210 schema +struct> +-- !query 210 output +{1.0:1.0,2.0:2.0} + + +-- !query 211 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 211 schema +struct> +-- !query 211 output +{1.0:1,2.0:2} + + +-- !query 212 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 212 schema +struct> +-- !query 212 output +{1.0:"1",2.0:"2"} + + +-- !query 213 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 213 schema +struct<> +-- !query 213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 214 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 214 schema +struct<> +-- !query 214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 215 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 215 schema +struct<> +-- !query 215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 216 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 216 schema +struct<> +-- !query 216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 217 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 217 schema +struct> +-- !query 217 output +{1:1,2:2} + + +-- !query 218 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 218 schema +struct> +-- !query 218 output +{1:1,2:2} + + +-- !query 219 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 219 schema +struct> +-- !query 219 output +{1:1,2:2} + + +-- !query 220 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 220 schema +struct> +-- !query 220 output +{1:1,2:2} + + +-- !query 221 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 221 schema +struct> +-- !query 221 output +{1:1.0,2:2.0} + + +-- !query 222 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 222 schema +struct> +-- !query 222 output +{1:1.0,2:2.0} + + +-- !query 223 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 223 schema +struct> +-- !query 223 output +{1:1,2:2} + + +-- !query 224 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 224 schema +struct> +-- !query 224 output +{1:"1",2:"2"} + + +-- !query 225 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 225 schema +struct<> +-- !query 225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 226 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 226 schema +struct<> +-- !query 226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 227 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 227 schema +struct<> +-- !query 227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 228 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 228 schema +struct<> +-- !query 228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 229 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 229 schema +struct> +-- !query 229 output +{"1":1,"2":2} + + +-- !query 230 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 230 schema +struct> +-- !query 230 output +{"1":1,"2":2} + + +-- !query 231 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 231 schema +struct> +-- !query 231 output +{"1":1,"2":2} + + +-- !query 232 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 232 schema +struct> +-- !query 232 output +{"1":1,"2":2} + + +-- !query 233 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 233 schema +struct> +-- !query 233 output +{"1":1.0,"2":2.0} + + +-- !query 234 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 234 schema +struct> +-- !query 234 output +{"1":1.0,"2":2.0} + + +-- !query 235 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 235 schema +struct> +-- !query 235 output +{"1":1,"2":2} + + +-- !query 236 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 236 schema +struct> +-- !query 236 output +{"1":"1","2":"2"} + + +-- !query 237 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 237 schema +struct<> +-- !query 237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 238 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 238 schema +struct<> +-- !query 238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 239 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 239 schema +struct<> +-- !query 239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 240 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 240 schema +struct<> +-- !query 240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 241 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 241 schema +struct<> +-- !query 241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 242 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 242 schema +struct<> +-- !query 242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 243 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 243 schema +struct<> +-- !query 243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 244 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 244 schema +struct<> +-- !query 244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 245 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 245 schema +struct<> +-- !query 245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 246 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 246 schema +struct<> +-- !query 246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 247 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 247 schema +struct<> +-- !query 247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 248 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 248 schema +struct<> +-- !query 248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 249 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 249 schema +struct<> +-- !query 249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 250 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 250 schema +struct<> +-- !query 250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 251 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 251 schema +struct<> +-- !query 251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 252 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 252 schema +struct<> +-- !query 252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 253 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 253 schema +struct<> +-- !query 253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 254 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 254 schema +struct<> +-- !query 254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 255 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 255 schema +struct<> +-- !query 255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 256 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 256 schema +struct<> +-- !query 256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 257 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 257 schema +struct<> +-- !query 257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 258 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 258 schema +struct<> +-- !query 258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 259 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 259 schema +struct<> +-- !query 259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 260 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 260 schema +struct<> +-- !query 260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 261 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 261 schema +struct<> +-- !query 261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 262 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 262 schema +struct<> +-- !query 262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 263 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 263 schema +struct<> +-- !query 263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 264 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 264 schema +struct<> +-- !query 264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 265 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 265 schema +struct<> +-- !query 265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 266 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 266 schema +struct<> +-- !query 266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 267 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 267 schema +struct<> +-- !query 267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 268 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 268 schema +struct<> +-- !query 268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 269 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 269 schema +struct<> +-- !query 269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 270 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 270 schema +struct<> +-- !query 270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 271 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 271 schema +struct<> +-- !query 271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 272 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 272 schema +struct<> +-- !query 272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 273 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 273 schema +struct<> +-- !query 273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 274 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 274 schema +struct<> +-- !query 274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 275 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 275 schema +struct<> +-- !query 275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 276 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 276 schema +struct<> +-- !query 276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 277 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 277 schema +struct<> +-- !query 277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 278 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 278 schema +struct<> +-- !query 278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 279 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 279 schema +struct<> +-- !query 279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 280 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 280 schema +struct<> +-- !query 280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 281 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 281 schema +struct<> +-- !query 281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 282 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 282 schema +struct<> +-- !query 282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 283 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 283 schema +struct<> +-- !query 283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 284 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 284 schema +struct<> +-- !query 284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 285 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 285 schema +struct<> +-- !query 285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 286 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 286 schema +struct<> +-- !query 286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 287 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 287 schema +struct<> +-- !query 287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 288 +SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 288 schema +struct<> +-- !query 288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 289 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 289 schema +struct> +-- !query 289 output +{1:1,2:2} + + +-- !query 290 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 290 schema +struct> +-- !query 290 output +{1:1,2:2} + + +-- !query 291 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 291 schema +struct> +-- !query 291 output +{1:1,2:2} + + +-- !query 292 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 292 schema +struct> +-- !query 292 output +{1:1,2:2} + + +-- !query 293 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 293 schema +struct> +-- !query 293 output +{1:1.0,2:2.0} + + +-- !query 294 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 294 schema +struct> +-- !query 294 output +{1:1.0,2:2.0} + + +-- !query 295 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 295 schema +struct> +-- !query 295 output +{1:1,2:2} + + +-- !query 296 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 296 schema +struct> +-- !query 296 output +{1:"1",2:"2"} + + +-- !query 297 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 297 schema +struct<> +-- !query 297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 298 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 298 schema +struct<> +-- !query 298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 299 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 299 schema +struct<> +-- !query 299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 300 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 300 schema +struct<> +-- !query 300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 301 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 301 schema +struct> +-- !query 301 output +{1:1,2:2} + + +-- !query 302 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 302 schema +struct> +-- !query 302 output +{1:1,2:2} + + +-- !query 303 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 303 schema +struct> +-- !query 303 output +{1:1,2:2} + + +-- !query 304 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 304 schema +struct> +-- !query 304 output +{1:1,2:2} + + +-- !query 305 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 305 schema +struct> +-- !query 305 output +{1:1.0,2:2.0} + + +-- !query 306 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 306 schema +struct> +-- !query 306 output +{1:1.0,2:2.0} + + +-- !query 307 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 307 schema +struct> +-- !query 307 output +{1:1,2:2} + + +-- !query 308 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 308 schema +struct> +-- !query 308 output +{1:"1",2:"2"} + + +-- !query 309 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 309 schema +struct<> +-- !query 309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 310 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 310 schema +struct<> +-- !query 310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 311 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 311 schema +struct<> +-- !query 311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 312 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 312 schema +struct<> +-- !query 312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 313 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 313 schema +struct> +-- !query 313 output +{1:1,2:2} + + +-- !query 314 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 314 schema +struct> +-- !query 314 output +{1:1,2:2} + + +-- !query 315 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 315 schema +struct> +-- !query 315 output +{1:1,2:2} + + +-- !query 316 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 316 schema +struct> +-- !query 316 output +{1:1,2:2} + + +-- !query 317 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 317 schema +struct> +-- !query 317 output +{1:1.0,2:2.0} + + +-- !query 318 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 318 schema +struct> +-- !query 318 output +{1:1.0,2:2.0} + + +-- !query 319 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 319 schema +struct> +-- !query 319 output +{1:1,2:2} + + +-- !query 320 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 320 schema +struct> +-- !query 320 output +{1:"1",2:"2"} + + +-- !query 321 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 321 schema +struct<> +-- !query 321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 322 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 322 schema +struct<> +-- !query 322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 323 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 323 schema +struct<> +-- !query 323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 324 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 324 schema +struct<> +-- !query 324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 325 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 325 schema +struct> +-- !query 325 output +{1:1,2:2} + + +-- !query 326 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 326 schema +struct> +-- !query 326 output +{1:1,2:2} + + +-- !query 327 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 327 schema +struct> +-- !query 327 output +{1:1,2:2} + + +-- !query 328 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 328 schema +struct> +-- !query 328 output +{1:1,2:2} + + +-- !query 329 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 329 schema +struct> +-- !query 329 output +{1:1.0,2:2.0} + + +-- !query 330 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 330 schema +struct> +-- !query 330 output +{1:1.0,2:2.0} + + +-- !query 331 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 331 schema +struct> +-- !query 331 output +{1:1,2:2} + + +-- !query 332 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 332 schema +struct> +-- !query 332 output +{1:"1",2:"2"} + + +-- !query 333 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 333 schema +struct<> +-- !query 333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 334 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 334 schema +struct<> +-- !query 334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 335 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 335 schema +struct<> +-- !query 335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 336 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 336 schema +struct<> +-- !query 336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 337 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 337 schema +struct> +-- !query 337 output +{1.0:1,2.0:2} + + +-- !query 338 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 338 schema +struct> +-- !query 338 output +{1.0:1,2.0:2} + + +-- !query 339 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 339 schema +struct> +-- !query 339 output +{1.0:1,2.0:2} + + +-- !query 340 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 340 schema +struct> +-- !query 340 output +{1.0:1,2.0:2} + + +-- !query 341 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 341 schema +struct> +-- !query 341 output +{1.0:1.0,2.0:2.0} + + +-- !query 342 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 342 schema +struct> +-- !query 342 output +{1.0:1.0,2.0:2.0} + + +-- !query 343 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 343 schema +struct> +-- !query 343 output +{1.0:1,2.0:2} + + +-- !query 344 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 344 schema +struct> +-- !query 344 output +{1.0:"1",2.0:"2"} + + +-- !query 345 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 345 schema +struct<> +-- !query 345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 346 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 346 schema +struct<> +-- !query 346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 347 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 347 schema +struct<> +-- !query 347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 348 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 348 schema +struct<> +-- !query 348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 349 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 349 schema +struct> +-- !query 349 output +{1.0:1,2.0:2} + + +-- !query 350 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 350 schema +struct> +-- !query 350 output +{1.0:1,2.0:2} + + +-- !query 351 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 351 schema +struct> +-- !query 351 output +{1.0:1,2.0:2} + + +-- !query 352 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 352 schema +struct> +-- !query 352 output +{1.0:1,2.0:2} + + +-- !query 353 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 353 schema +struct> +-- !query 353 output +{1.0:1.0,2.0:2.0} + + +-- !query 354 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 354 schema +struct> +-- !query 354 output +{1.0:1.0,2.0:2.0} + + +-- !query 355 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 355 schema +struct> +-- !query 355 output +{1.0:1,2.0:2} + + +-- !query 356 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 356 schema +struct> +-- !query 356 output +{1.0:"1",2.0:"2"} + + +-- !query 357 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 357 schema +struct<> +-- !query 357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 358 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 358 schema +struct<> +-- !query 358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 359 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 359 schema +struct<> +-- !query 359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 360 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 360 schema +struct<> +-- !query 360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 361 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 361 schema +struct> +-- !query 361 output +{1:1,2:2} + + +-- !query 362 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 362 schema +struct> +-- !query 362 output +{1:1,2:2} + + +-- !query 363 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 363 schema +struct> +-- !query 363 output +{1:1,2:2} + + +-- !query 364 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 364 schema +struct> +-- !query 364 output +{1:1,2:2} + + +-- !query 365 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 365 schema +struct> +-- !query 365 output +{1:1.0,2:2.0} + + +-- !query 366 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 366 schema +struct> +-- !query 366 output +{1:1.0,2:2.0} + + +-- !query 367 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 367 schema +struct> +-- !query 367 output +{1:1,2:2} + + +-- !query 368 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 368 schema +struct> +-- !query 368 output +{1:"1",2:"2"} + + +-- !query 369 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 369 schema +struct<> +-- !query 369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 370 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 370 schema +struct<> +-- !query 370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 371 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 371 schema +struct<> +-- !query 371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 372 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 372 schema +struct<> +-- !query 372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 373 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 373 schema +struct> +-- !query 373 output +{"1":1,"2":2} + + +-- !query 374 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 374 schema +struct> +-- !query 374 output +{"1":1,"2":2} + + +-- !query 375 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 375 schema +struct> +-- !query 375 output +{"1":1,"2":2} + + +-- !query 376 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 376 schema +struct> +-- !query 376 output +{"1":1,"2":2} + + +-- !query 377 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 377 schema +struct> +-- !query 377 output +{"1":1.0,"2":2.0} + + +-- !query 378 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 378 schema +struct> +-- !query 378 output +{"1":1.0,"2":2.0} + + +-- !query 379 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 379 schema +struct> +-- !query 379 output +{"1":1,"2":2} + + +-- !query 380 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 380 schema +struct> +-- !query 380 output +{"1":"1","2":"2"} + + +-- !query 381 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 381 schema +struct<> +-- !query 381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 382 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 382 schema +struct<> +-- !query 382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 383 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 383 schema +struct<> +-- !query 383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 384 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 384 schema +struct<> +-- !query 384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 385 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 385 schema +struct<> +-- !query 385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 386 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 386 schema +struct<> +-- !query 386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 387 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 387 schema +struct<> +-- !query 387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 388 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 388 schema +struct<> +-- !query 388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 389 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 389 schema +struct<> +-- !query 389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 390 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 390 schema +struct<> +-- !query 390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 391 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 391 schema +struct<> +-- !query 391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 392 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 392 schema +struct<> +-- !query 392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 393 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 393 schema +struct<> +-- !query 393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 394 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 394 schema +struct<> +-- !query 394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 395 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 395 schema +struct<> +-- !query 395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 396 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 396 schema +struct<> +-- !query 396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 397 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 397 schema +struct<> +-- !query 397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 398 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 398 schema +struct<> +-- !query 398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 399 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 399 schema +struct<> +-- !query 399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 400 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 400 schema +struct<> +-- !query 400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 401 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 401 schema +struct<> +-- !query 401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 402 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 402 schema +struct<> +-- !query 402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 403 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 403 schema +struct<> +-- !query 403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 404 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 404 schema +struct<> +-- !query 404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 405 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 405 schema +struct<> +-- !query 405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 406 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 406 schema +struct<> +-- !query 406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 407 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 407 schema +struct<> +-- !query 407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 408 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 408 schema +struct<> +-- !query 408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 409 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 409 schema +struct<> +-- !query 409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 410 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 410 schema +struct<> +-- !query 410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 411 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 411 schema +struct<> +-- !query 411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 412 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 412 schema +struct<> +-- !query 412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 413 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 413 schema +struct<> +-- !query 413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 414 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 414 schema +struct<> +-- !query 414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 415 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 415 schema +struct<> +-- !query 415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 416 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 416 schema +struct<> +-- !query 416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 417 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 417 schema +struct<> +-- !query 417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 418 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 418 schema +struct<> +-- !query 418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 419 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 419 schema +struct<> +-- !query 419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 420 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 420 schema +struct<> +-- !query 420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 421 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 421 schema +struct<> +-- !query 421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 422 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 422 schema +struct<> +-- !query 422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 423 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 423 schema +struct<> +-- !query 423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 424 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 424 schema +struct<> +-- !query 424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 425 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 425 schema +struct<> +-- !query 425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 426 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 426 schema +struct<> +-- !query 426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 427 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 427 schema +struct<> +-- !query 427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 428 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 428 schema +struct<> +-- !query 428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 429 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 429 schema +struct<> +-- !query 429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 430 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 430 schema +struct<> +-- !query 430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 431 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 431 schema +struct<> +-- !query 431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 432 +SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 432 schema +struct<> +-- !query 432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 433 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 433 schema +struct> +-- !query 433 output +{1:1,2:2} + + +-- !query 434 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 434 schema +struct> +-- !query 434 output +{1:1,2:2} + + +-- !query 435 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 435 schema +struct> +-- !query 435 output +{1:1,2:2} + + +-- !query 436 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 436 schema +struct> +-- !query 436 output +{1:1,2:2} + + +-- !query 437 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 437 schema +struct> +-- !query 437 output +{1:1.0,2:2.0} + + +-- !query 438 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 438 schema +struct> +-- !query 438 output +{1:1.0,2:2.0} + + +-- !query 439 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 439 schema +struct> +-- !query 439 output +{1:1,2:2} + + +-- !query 440 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 440 schema +struct> +-- !query 440 output +{1:"1",2:"2"} + + +-- !query 441 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 441 schema +struct<> +-- !query 441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 442 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 442 schema +struct<> +-- !query 442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 443 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 443 schema +struct<> +-- !query 443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 444 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 444 schema +struct<> +-- !query 444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 445 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 445 schema +struct> +-- !query 445 output +{1:1,2:2} + + +-- !query 446 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 446 schema +struct> +-- !query 446 output +{1:1,2:2} + + +-- !query 447 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 447 schema +struct> +-- !query 447 output +{1:1,2:2} + + +-- !query 448 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 448 schema +struct> +-- !query 448 output +{1:1,2:2} + + +-- !query 449 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 449 schema +struct> +-- !query 449 output +{1:1.0,2:2.0} + + +-- !query 450 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 450 schema +struct> +-- !query 450 output +{1:1.0,2:2.0} + + +-- !query 451 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 451 schema +struct> +-- !query 451 output +{1:1,2:2} + + +-- !query 452 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 452 schema +struct> +-- !query 452 output +{1:"1",2:"2"} + + +-- !query 453 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 453 schema +struct<> +-- !query 453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 454 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 454 schema +struct<> +-- !query 454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 455 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 455 schema +struct<> +-- !query 455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 456 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 456 schema +struct<> +-- !query 456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 457 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 457 schema +struct> +-- !query 457 output +{1:1,2:2} + + +-- !query 458 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 458 schema +struct> +-- !query 458 output +{1:1,2:2} + + +-- !query 459 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 459 schema +struct> +-- !query 459 output +{1:1,2:2} + + +-- !query 460 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 460 schema +struct> +-- !query 460 output +{1:1,2:2} + + +-- !query 461 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 461 schema +struct> +-- !query 461 output +{1:1.0,2:2.0} + + +-- !query 462 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 462 schema +struct> +-- !query 462 output +{1:1.0,2:2.0} + + +-- !query 463 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 463 schema +struct> +-- !query 463 output +{1:1,2:2} + + +-- !query 464 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 464 schema +struct> +-- !query 464 output +{1:"1",2:"2"} + + +-- !query 465 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 465 schema +struct<> +-- !query 465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 466 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 466 schema +struct<> +-- !query 466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 467 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 467 schema +struct<> +-- !query 467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 468 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 468 schema +struct<> +-- !query 468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 469 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 469 schema +struct> +-- !query 469 output +{1:1,2:2} + + +-- !query 470 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 470 schema +struct> +-- !query 470 output +{1:1,2:2} + + +-- !query 471 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 471 schema +struct> +-- !query 471 output +{1:1,2:2} + + +-- !query 472 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 472 schema +struct> +-- !query 472 output +{1:1,2:2} + + +-- !query 473 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 473 schema +struct> +-- !query 473 output +{1:1.0,2:2.0} + + +-- !query 474 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 474 schema +struct> +-- !query 474 output +{1:1.0,2:2.0} + + +-- !query 475 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 475 schema +struct> +-- !query 475 output +{1:1,2:2} + + +-- !query 476 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 476 schema +struct> +-- !query 476 output +{1:"1",2:"2"} + + +-- !query 477 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 477 schema +struct<> +-- !query 477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 478 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 478 schema +struct<> +-- !query 478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 479 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 479 schema +struct<> +-- !query 479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 480 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 480 schema +struct<> +-- !query 480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 481 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 481 schema +struct> +-- !query 481 output +{1.0:1,2.0:2} + + +-- !query 482 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 482 schema +struct> +-- !query 482 output +{1.0:1,2.0:2} + + +-- !query 483 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 483 schema +struct> +-- !query 483 output +{1.0:1,2.0:2} + + +-- !query 484 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 484 schema +struct> +-- !query 484 output +{1.0:1,2.0:2} + + +-- !query 485 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 485 schema +struct> +-- !query 485 output +{1.0:1.0,2.0:2.0} + + +-- !query 486 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 486 schema +struct> +-- !query 486 output +{1.0:1.0,2.0:2.0} + + +-- !query 487 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 487 schema +struct> +-- !query 487 output +{1.0:1,2.0:2} + + +-- !query 488 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 488 schema +struct> +-- !query 488 output +{1.0:"1",2.0:"2"} + + +-- !query 489 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 489 schema +struct<> +-- !query 489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 490 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 490 schema +struct<> +-- !query 490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 491 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 491 schema +struct<> +-- !query 491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 492 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 492 schema +struct<> +-- !query 492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 493 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 493 schema +struct> +-- !query 493 output +{1.0:1,2.0:2} + + +-- !query 494 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 494 schema +struct> +-- !query 494 output +{1.0:1,2.0:2} + + +-- !query 495 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 495 schema +struct> +-- !query 495 output +{1.0:1,2.0:2} + + +-- !query 496 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 496 schema +struct> +-- !query 496 output +{1.0:1,2.0:2} + + +-- !query 497 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 497 schema +struct> +-- !query 497 output +{1.0:1.0,2.0:2.0} + + +-- !query 498 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 498 schema +struct> +-- !query 498 output +{1.0:1.0,2.0:2.0} + + +-- !query 499 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 499 schema +struct> +-- !query 499 output +{1.0:1,2.0:2} + + +-- !query 500 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 500 schema +struct> +-- !query 500 output +{1.0:"1",2.0:"2"} + + +-- !query 501 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 501 schema +struct<> +-- !query 501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 502 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 502 schema +struct<> +-- !query 502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 503 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 503 schema +struct<> +-- !query 503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 504 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 504 schema +struct<> +-- !query 504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 505 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 505 schema +struct> +-- !query 505 output +{1:1,2:2} + + +-- !query 506 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 506 schema +struct> +-- !query 506 output +{1:1,2:2} + + +-- !query 507 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 507 schema +struct> +-- !query 507 output +{1:1,2:2} + + +-- !query 508 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 508 schema +struct> +-- !query 508 output +{1:1,2:2} + + +-- !query 509 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 509 schema +struct> +-- !query 509 output +{1:1.0,2:2.0} + + +-- !query 510 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 510 schema +struct> +-- !query 510 output +{1:1.0,2:2.0} + + +-- !query 511 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 511 schema +struct> +-- !query 511 output +{1:1,2:2} + + +-- !query 512 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 512 schema +struct> +-- !query 512 output +{1:"1",2:"2"} + + +-- !query 513 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 513 schema +struct<> +-- !query 513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 514 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 514 schema +struct<> +-- !query 514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 515 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 515 schema +struct<> +-- !query 515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 516 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 516 schema +struct<> +-- !query 516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 517 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 517 schema +struct> +-- !query 517 output +{"1":1,"2":2} + + +-- !query 518 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 518 schema +struct> +-- !query 518 output +{"1":1,"2":2} + + +-- !query 519 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 519 schema +struct> +-- !query 519 output +{"1":1,"2":2} + + +-- !query 520 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 520 schema +struct> +-- !query 520 output +{"1":1,"2":2} + + +-- !query 521 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 521 schema +struct> +-- !query 521 output +{"1":1.0,"2":2.0} + + +-- !query 522 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 522 schema +struct> +-- !query 522 output +{"1":1.0,"2":2.0} + + +-- !query 523 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 523 schema +struct> +-- !query 523 output +{"1":1,"2":2} + + +-- !query 524 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 524 schema +struct> +-- !query 524 output +{"1":"1","2":"2"} + + +-- !query 525 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 525 schema +struct<> +-- !query 525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 526 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 526 schema +struct<> +-- !query 526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 527 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 527 schema +struct<> +-- !query 527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 528 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 528 schema +struct<> +-- !query 528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 529 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 529 schema +struct<> +-- !query 529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 530 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 530 schema +struct<> +-- !query 530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 531 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 531 schema +struct<> +-- !query 531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 532 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 532 schema +struct<> +-- !query 532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 533 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 533 schema +struct<> +-- !query 533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 534 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 534 schema +struct<> +-- !query 534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 535 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 535 schema +struct<> +-- !query 535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 536 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 536 schema +struct<> +-- !query 536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 537 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 537 schema +struct<> +-- !query 537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 538 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 538 schema +struct<> +-- !query 538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 539 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 539 schema +struct<> +-- !query 539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 540 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 540 schema +struct<> +-- !query 540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 541 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 541 schema +struct<> +-- !query 541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 542 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 542 schema +struct<> +-- !query 542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 543 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 543 schema +struct<> +-- !query 543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 544 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 544 schema +struct<> +-- !query 544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 545 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 545 schema +struct<> +-- !query 545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 546 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 546 schema +struct<> +-- !query 546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 547 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 547 schema +struct<> +-- !query 547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 548 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 548 schema +struct<> +-- !query 548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 549 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 549 schema +struct<> +-- !query 549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 550 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 550 schema +struct<> +-- !query 550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 551 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 551 schema +struct<> +-- !query 551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 552 +SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 552 schema +struct<> +-- !query 552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 553 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 553 schema +struct<> +-- !query 553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 554 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 554 schema +struct<> +-- !query 554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 555 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 555 schema +struct<> +-- !query 555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 556 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 556 schema +struct<> +-- !query 556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 557 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 557 schema +struct<> +-- !query 557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 558 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 558 schema +struct<> +-- !query 558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 559 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 559 schema +struct<> +-- !query 559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 560 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 560 schema +struct<> +-- !query 560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 561 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 561 schema +struct<> +-- !query 561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 562 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 562 schema +struct<> +-- !query 562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 563 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 563 schema +struct<> +-- !query 563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 564 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 564 schema +struct<> +-- !query 564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 565 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 565 schema +struct<> +-- !query 565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 566 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 566 schema +struct<> +-- !query 566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 567 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 567 schema +struct<> +-- !query 567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 568 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 568 schema +struct<> +-- !query 568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 569 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 569 schema +struct<> +-- !query 569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 570 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 570 schema +struct<> +-- !query 570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 571 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 571 schema +struct<> +-- !query 571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 572 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 572 schema +struct<> +-- !query 572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 573 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 573 schema +struct<> +-- !query 573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 574 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 574 schema +struct<> +-- !query 574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 575 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 575 schema +struct<> +-- !query 575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 576 +SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 576 schema +struct<> +-- !query 576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 577 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 577 schema +struct> +-- !query 577 output +{1:1,2:2} + + +-- !query 578 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 578 schema +struct> +-- !query 578 output +{1:1,2:2} + + +-- !query 579 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 579 schema +struct> +-- !query 579 output +{1:1,2:2} + + +-- !query 580 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 580 schema +struct> +-- !query 580 output +{1:1,2:2} + + +-- !query 581 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 581 schema +struct> +-- !query 581 output +{1:1.0,2:2.0} + + +-- !query 582 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 582 schema +struct> +-- !query 582 output +{1:1.0,2:2.0} + + +-- !query 583 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 583 schema +struct> +-- !query 583 output +{1:1,2:2} + + +-- !query 584 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 584 schema +struct> +-- !query 584 output +{1:"1",2:"2"} + + +-- !query 585 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 585 schema +struct<> +-- !query 585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 586 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 586 schema +struct<> +-- !query 586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 587 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 587 schema +struct<> +-- !query 587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 588 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 588 schema +struct<> +-- !query 588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 589 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 589 schema +struct> +-- !query 589 output +{1:1,2:2} + + +-- !query 590 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 590 schema +struct> +-- !query 590 output +{1:1,2:2} + + +-- !query 591 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 591 schema +struct> +-- !query 591 output +{1:1,2:2} + + +-- !query 592 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 592 schema +struct> +-- !query 592 output +{1:1,2:2} + + +-- !query 593 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 593 schema +struct> +-- !query 593 output +{1:1.0,2:2.0} + + +-- !query 594 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 594 schema +struct> +-- !query 594 output +{1:1.0,2:2.0} + + +-- !query 595 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 595 schema +struct> +-- !query 595 output +{1:1,2:2} + + +-- !query 596 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 596 schema +struct> +-- !query 596 output +{1:"1",2:"2"} + + +-- !query 597 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 597 schema +struct<> +-- !query 597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 598 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 598 schema +struct<> +-- !query 598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 599 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 599 schema +struct<> +-- !query 599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 600 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 600 schema +struct<> +-- !query 600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 601 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 601 schema +struct> +-- !query 601 output +{1:1,2:2} + + +-- !query 602 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 602 schema +struct> +-- !query 602 output +{1:1,2:2} + + +-- !query 603 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 603 schema +struct> +-- !query 603 output +{1:1,2:2} + + +-- !query 604 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 604 schema +struct> +-- !query 604 output +{1:1,2:2} + + +-- !query 605 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 605 schema +struct> +-- !query 605 output +{1:1.0,2:2.0} + + +-- !query 606 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 606 schema +struct> +-- !query 606 output +{1:1.0,2:2.0} + + +-- !query 607 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 607 schema +struct> +-- !query 607 output +{1:1,2:2} + + +-- !query 608 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 608 schema +struct> +-- !query 608 output +{1:"1",2:"2"} + + +-- !query 609 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 609 schema +struct<> +-- !query 609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 610 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 610 schema +struct<> +-- !query 610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 611 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 611 schema +struct<> +-- !query 611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 612 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 612 schema +struct<> +-- !query 612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 613 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 613 schema +struct> +-- !query 613 output +{1:1,2:2} + + +-- !query 614 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 614 schema +struct> +-- !query 614 output +{1:1,2:2} + + +-- !query 615 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 615 schema +struct> +-- !query 615 output +{1:1,2:2} + + +-- !query 616 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 616 schema +struct> +-- !query 616 output +{1:1,2:2} + + +-- !query 617 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 617 schema +struct> +-- !query 617 output +{1:1.0,2:2.0} + + +-- !query 618 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 618 schema +struct> +-- !query 618 output +{1:1.0,2:2.0} + + +-- !query 619 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 619 schema +struct> +-- !query 619 output +{1:1,2:2} + + +-- !query 620 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 620 schema +struct> +-- !query 620 output +{1:"1",2:"2"} + + +-- !query 621 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 621 schema +struct<> +-- !query 621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 622 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 622 schema +struct<> +-- !query 622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 623 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 623 schema +struct<> +-- !query 623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 624 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 624 schema +struct<> +-- !query 624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 625 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 625 schema +struct> +-- !query 625 output +{1.0:1,2.0:2} + + +-- !query 626 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 626 schema +struct> +-- !query 626 output +{1.0:1,2.0:2} + + +-- !query 627 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 627 schema +struct> +-- !query 627 output +{1.0:1,2.0:2} + + +-- !query 628 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 628 schema +struct> +-- !query 628 output +{1.0:1,2.0:2} + + +-- !query 629 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 629 schema +struct> +-- !query 629 output +{1.0:1.0,2.0:2.0} + + +-- !query 630 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 630 schema +struct> +-- !query 630 output +{1.0:1.0,2.0:2.0} + + +-- !query 631 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 631 schema +struct> +-- !query 631 output +{1.0:1,2.0:2} + + +-- !query 632 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 632 schema +struct> +-- !query 632 output +{1.0:"1",2.0:"2"} + + +-- !query 633 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 633 schema +struct<> +-- !query 633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 634 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 634 schema +struct<> +-- !query 634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 635 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 635 schema +struct<> +-- !query 635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 636 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 636 schema +struct<> +-- !query 636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 637 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 637 schema +struct> +-- !query 637 output +{1.0:1,2.0:2} + + +-- !query 638 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 638 schema +struct> +-- !query 638 output +{1.0:1,2.0:2} + + +-- !query 639 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 639 schema +struct> +-- !query 639 output +{1.0:1,2.0:2} + + +-- !query 640 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 640 schema +struct> +-- !query 640 output +{1.0:1,2.0:2} + + +-- !query 641 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 641 schema +struct> +-- !query 641 output +{1.0:1.0,2.0:2.0} + + +-- !query 642 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 642 schema +struct> +-- !query 642 output +{1.0:1.0,2.0:2.0} + + +-- !query 643 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 643 schema +struct> +-- !query 643 output +{1.0:1,2.0:2} + + +-- !query 644 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 644 schema +struct> +-- !query 644 output +{1.0:"1",2.0:"2"} + + +-- !query 645 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 645 schema +struct<> +-- !query 645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 646 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 646 schema +struct<> +-- !query 646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 647 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 647 schema +struct<> +-- !query 647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 648 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 648 schema +struct<> +-- !query 648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 649 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 649 schema +struct> +-- !query 649 output +{1:1,2:2} + + +-- !query 650 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 650 schema +struct> +-- !query 650 output +{1:1,2:2} + + +-- !query 651 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 651 schema +struct> +-- !query 651 output +{1:1,2:2} + + +-- !query 652 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 652 schema +struct> +-- !query 652 output +{1:1,2:2} + + +-- !query 653 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 653 schema +struct> +-- !query 653 output +{1:1.0,2:2.0} + + +-- !query 654 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 654 schema +struct> +-- !query 654 output +{1:1.0,2:2.0} + + +-- !query 655 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 655 schema +struct> +-- !query 655 output +{1:1,2:2} + + +-- !query 656 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 656 schema +struct> +-- !query 656 output +{1:"1",2:"2"} + + +-- !query 657 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 657 schema +struct<> +-- !query 657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 658 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 658 schema +struct<> +-- !query 658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 659 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 659 schema +struct<> +-- !query 659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 660 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 660 schema +struct<> +-- !query 660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 661 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 661 schema +struct> +-- !query 661 output +{"1":1,"2":2} + + +-- !query 662 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 662 schema +struct> +-- !query 662 output +{"1":1,"2":2} + + +-- !query 663 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 663 schema +struct> +-- !query 663 output +{"1":1,"2":2} + + +-- !query 664 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 664 schema +struct> +-- !query 664 output +{"1":1,"2":2} + + +-- !query 665 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 665 schema +struct> +-- !query 665 output +{"1":1.0,"2":2.0} + + +-- !query 666 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 666 schema +struct> +-- !query 666 output +{"1":1.0,"2":2.0} + + +-- !query 667 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 667 schema +struct> +-- !query 667 output +{"1":1,"2":2} + + +-- !query 668 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 668 schema +struct> +-- !query 668 output +{"1":"1","2":"2"} + + +-- !query 669 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 669 schema +struct<> +-- !query 669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 670 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 670 schema +struct<> +-- !query 670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 671 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 671 schema +struct<> +-- !query 671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 672 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 672 schema +struct<> +-- !query 672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 673 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 673 schema +struct<> +-- !query 673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 674 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 674 schema +struct<> +-- !query 674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 675 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 675 schema +struct<> +-- !query 675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 676 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 676 schema +struct<> +-- !query 676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 677 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 677 schema +struct<> +-- !query 677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 678 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 678 schema +struct<> +-- !query 678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 679 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 679 schema +struct<> +-- !query 679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 680 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 680 schema +struct<> +-- !query 680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 681 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 681 schema +struct<> +-- !query 681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 682 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 682 schema +struct<> +-- !query 682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 683 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 683 schema +struct<> +-- !query 683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 684 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 684 schema +struct<> +-- !query 684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 685 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 685 schema +struct<> +-- !query 685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 686 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 686 schema +struct<> +-- !query 686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 687 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 687 schema +struct<> +-- !query 687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 688 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 688 schema +struct<> +-- !query 688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 689 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 689 schema +struct<> +-- !query 689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 690 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 690 schema +struct<> +-- !query 690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 691 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 691 schema +struct<> +-- !query 691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 692 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 692 schema +struct<> +-- !query 692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 693 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 693 schema +struct<> +-- !query 693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 694 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 694 schema +struct<> +-- !query 694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 695 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 695 schema +struct<> +-- !query 695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 696 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 696 schema +struct<> +-- !query 696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 697 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 697 schema +struct<> +-- !query 697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 698 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 698 schema +struct<> +-- !query 698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 699 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 699 schema +struct<> +-- !query 699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 700 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 700 schema +struct<> +-- !query 700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 701 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 701 schema +struct<> +-- !query 701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 702 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 702 schema +struct<> +-- !query 702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 703 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 703 schema +struct<> +-- !query 703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 704 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 704 schema +struct<> +-- !query 704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 705 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 705 schema +struct<> +-- !query 705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 706 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 706 schema +struct<> +-- !query 706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 707 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 707 schema +struct<> +-- !query 707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 708 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 708 schema +struct<> +-- !query 708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 709 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 709 schema +struct<> +-- !query 709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 710 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 710 schema +struct<> +-- !query 710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 711 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 711 schema +struct<> +-- !query 711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 712 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 712 schema +struct<> +-- !query 712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 713 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 713 schema +struct<> +-- !query 713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 714 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 714 schema +struct<> +-- !query 714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 715 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 715 schema +struct<> +-- !query 715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 716 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 716 schema +struct<> +-- !query 716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 717 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 717 schema +struct<> +-- !query 717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 718 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 718 schema +struct<> +-- !query 718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 719 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 719 schema +struct<> +-- !query 719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 720 +SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 720 schema +struct<> +-- !query 720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 721 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 721 schema +struct> +-- !query 721 output +{1:1.0,2:2.0} + + +-- !query 722 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 722 schema +struct> +-- !query 722 output +{1:1.0,2:2.0} + + +-- !query 723 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 723 schema +struct> +-- !query 723 output +{1:1.0,2:2.0} + + +-- !query 724 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 724 schema +struct> +-- !query 724 output +{1:1.0,2:2.0} + + +-- !query 725 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 725 schema +struct> +-- !query 725 output +{1:1.0,2:2.0} + + +-- !query 726 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 726 schema +struct> +-- !query 726 output +{1:1.0,2:2.0} + + +-- !query 727 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 727 schema +struct> +-- !query 727 output +{1:1.0,2:2.0} + + +-- !query 728 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 728 schema +struct> +-- !query 728 output +{1:"1.0",2:"2"} + + +-- !query 729 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 729 schema +struct<> +-- !query 729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 730 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 730 schema +struct<> +-- !query 730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 731 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 731 schema +struct<> +-- !query 731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 732 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 732 schema +struct<> +-- !query 732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 733 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 733 schema +struct> +-- !query 733 output +{1:1.0,2:2.0} + + +-- !query 734 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 734 schema +struct> +-- !query 734 output +{1:1.0,2:2.0} + + +-- !query 735 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 735 schema +struct> +-- !query 735 output +{1:1.0,2:2.0} + + +-- !query 736 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 736 schema +struct> +-- !query 736 output +{1:1.0,2:2.0} + + +-- !query 737 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 737 schema +struct> +-- !query 737 output +{1:1.0,2:2.0} + + +-- !query 738 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 738 schema +struct> +-- !query 738 output +{1:1.0,2:2.0} + + +-- !query 739 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 739 schema +struct> +-- !query 739 output +{1:1.0,2:2.0} + + +-- !query 740 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 740 schema +struct> +-- !query 740 output +{1:"1.0",2:"2"} + + +-- !query 741 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 741 schema +struct<> +-- !query 741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 742 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 742 schema +struct<> +-- !query 742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 743 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 743 schema +struct<> +-- !query 743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 744 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 744 schema +struct<> +-- !query 744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 745 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 745 schema +struct> +-- !query 745 output +{1:1.0,2:2.0} + + +-- !query 746 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 746 schema +struct> +-- !query 746 output +{1:1.0,2:2.0} + + +-- !query 747 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 747 schema +struct> +-- !query 747 output +{1:1.0,2:2.0} + + +-- !query 748 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 748 schema +struct> +-- !query 748 output +{1:1.0,2:2.0} + + +-- !query 749 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 749 schema +struct> +-- !query 749 output +{1:1.0,2:2.0} + + +-- !query 750 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 750 schema +struct> +-- !query 750 output +{1:1.0,2:2.0} + + +-- !query 751 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 751 schema +struct> +-- !query 751 output +{1:1.0,2:2.0} + + +-- !query 752 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 752 schema +struct> +-- !query 752 output +{1:"1.0",2:"2"} + + +-- !query 753 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 753 schema +struct<> +-- !query 753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 754 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 754 schema +struct<> +-- !query 754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 755 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 755 schema +struct<> +-- !query 755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 756 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 756 schema +struct<> +-- !query 756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 757 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 757 schema +struct> +-- !query 757 output +{1:1.0,2:2.0} + + +-- !query 758 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 758 schema +struct> +-- !query 758 output +{1:1.0,2:2.0} + + +-- !query 759 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 759 schema +struct> +-- !query 759 output +{1:1.0,2:2.0} + + +-- !query 760 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 760 schema +struct> +-- !query 760 output +{1:1.0,2:2.0} + + +-- !query 761 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 761 schema +struct> +-- !query 761 output +{1:1.0,2:2.0} + + +-- !query 762 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 762 schema +struct> +-- !query 762 output +{1:1.0,2:2.0} + + +-- !query 763 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 763 schema +struct> +-- !query 763 output +{1:1.0,2:2.0} + + +-- !query 764 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 764 schema +struct> +-- !query 764 output +{1:"1.0",2:"2"} + + +-- !query 765 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 765 schema +struct<> +-- !query 765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 766 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 766 schema +struct<> +-- !query 766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 767 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 767 schema +struct<> +-- !query 767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 768 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 768 schema +struct<> +-- !query 768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 769 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 769 schema +struct> +-- !query 769 output +{1.0:1.0,2.0:2.0} + + +-- !query 770 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 770 schema +struct> +-- !query 770 output +{1.0:1.0,2.0:2.0} + + +-- !query 771 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 771 schema +struct> +-- !query 771 output +{1.0:1.0,2.0:2.0} + + +-- !query 772 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 772 schema +struct> +-- !query 772 output +{1.0:1.0,2.0:2.0} + + +-- !query 773 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 773 schema +struct> +-- !query 773 output +{1.0:1.0,2.0:2.0} + + +-- !query 774 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 774 schema +struct> +-- !query 774 output +{1.0:1.0,2.0:2.0} + + +-- !query 775 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 775 schema +struct> +-- !query 775 output +{1.0:1.0,2.0:2.0} + + +-- !query 776 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 776 schema +struct> +-- !query 776 output +{1.0:"1.0",2.0:"2"} + + +-- !query 777 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 777 schema +struct<> +-- !query 777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 778 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 778 schema +struct<> +-- !query 778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 779 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 779 schema +struct<> +-- !query 779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 780 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 780 schema +struct<> +-- !query 780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 781 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 781 schema +struct> +-- !query 781 output +{1.0:1.0,2.0:2.0} + + +-- !query 782 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 782 schema +struct> +-- !query 782 output +{1.0:1.0,2.0:2.0} + + +-- !query 783 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 783 schema +struct> +-- !query 783 output +{1.0:1.0,2.0:2.0} + + +-- !query 784 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 784 schema +struct> +-- !query 784 output +{1.0:1.0,2.0:2.0} + + +-- !query 785 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 785 schema +struct> +-- !query 785 output +{1.0:1.0,2.0:2.0} + + +-- !query 786 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 786 schema +struct> +-- !query 786 output +{1.0:1.0,2.0:2.0} + + +-- !query 787 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 787 schema +struct> +-- !query 787 output +{1.0:1.0,2.0:2.0} + + +-- !query 788 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 788 schema +struct> +-- !query 788 output +{1.0:"1.0",2.0:"2"} + + +-- !query 789 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 789 schema +struct<> +-- !query 789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 790 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 790 schema +struct<> +-- !query 790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 791 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 791 schema +struct<> +-- !query 791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 792 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 792 schema +struct<> +-- !query 792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 793 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 793 schema +struct> +-- !query 793 output +{1:1.0,2:2.0} + + +-- !query 794 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 794 schema +struct> +-- !query 794 output +{1:1.0,2:2.0} + + +-- !query 795 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 795 schema +struct> +-- !query 795 output +{1:1.0,2:2.0} + + +-- !query 796 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 796 schema +struct> +-- !query 796 output +{1:1.0,2:2.0} + + +-- !query 797 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 797 schema +struct> +-- !query 797 output +{1:1.0,2:2.0} + + +-- !query 798 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 798 schema +struct> +-- !query 798 output +{1:1.0,2:2.0} + + +-- !query 799 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 799 schema +struct> +-- !query 799 output +{1:1.0,2:2.0} + + +-- !query 800 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 800 schema +struct> +-- !query 800 output +{1:"1.0",2:"2"} + + +-- !query 801 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 801 schema +struct<> +-- !query 801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 802 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 802 schema +struct<> +-- !query 802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 803 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 803 schema +struct<> +-- !query 803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 804 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 804 schema +struct<> +-- !query 804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 805 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 805 schema +struct> +-- !query 805 output +{"1":1.0,"2":2.0} + + +-- !query 806 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 806 schema +struct> +-- !query 806 output +{"1":1.0,"2":2.0} + + +-- !query 807 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 807 schema +struct> +-- !query 807 output +{"1":1.0,"2":2.0} + + +-- !query 808 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 808 schema +struct> +-- !query 808 output +{"1":1.0,"2":2.0} + + +-- !query 809 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 809 schema +struct> +-- !query 809 output +{"1":1.0,"2":2.0} + + +-- !query 810 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 810 schema +struct> +-- !query 810 output +{"1":1.0,"2":2.0} + + +-- !query 811 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 811 schema +struct> +-- !query 811 output +{"1":1.0,"2":2.0} + + +-- !query 812 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 812 schema +struct> +-- !query 812 output +{"1":"1.0","2":"2"} + + +-- !query 813 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 813 schema +struct<> +-- !query 813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 814 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 814 schema +struct<> +-- !query 814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 815 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 815 schema +struct<> +-- !query 815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 816 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 816 schema +struct<> +-- !query 816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 817 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 817 schema +struct<> +-- !query 817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 818 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 818 schema +struct<> +-- !query 818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 819 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 819 schema +struct<> +-- !query 819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 820 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 820 schema +struct<> +-- !query 820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 821 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 821 schema +struct<> +-- !query 821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 822 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 822 schema +struct<> +-- !query 822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 823 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 823 schema +struct<> +-- !query 823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 824 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 824 schema +struct<> +-- !query 824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 825 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 825 schema +struct<> +-- !query 825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 826 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 826 schema +struct<> +-- !query 826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 827 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 827 schema +struct<> +-- !query 827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 828 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 828 schema +struct<> +-- !query 828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 829 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 829 schema +struct<> +-- !query 829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 830 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 830 schema +struct<> +-- !query 830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 831 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 831 schema +struct<> +-- !query 831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 832 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 832 schema +struct<> +-- !query 832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 833 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 833 schema +struct<> +-- !query 833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 834 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 834 schema +struct<> +-- !query 834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 835 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 835 schema +struct<> +-- !query 835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 836 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 836 schema +struct<> +-- !query 836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 837 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 837 schema +struct<> +-- !query 837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 838 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 838 schema +struct<> +-- !query 838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 839 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 839 schema +struct<> +-- !query 839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 840 +SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 840 schema +struct<> +-- !query 840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 841 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 841 schema +struct<> +-- !query 841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 842 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 842 schema +struct<> +-- !query 842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 843 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 843 schema +struct<> +-- !query 843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 844 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 844 schema +struct<> +-- !query 844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 845 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 845 schema +struct<> +-- !query 845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 846 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 846 schema +struct<> +-- !query 846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 847 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 847 schema +struct<> +-- !query 847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 848 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 848 schema +struct<> +-- !query 848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 849 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 849 schema +struct<> +-- !query 849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 850 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 850 schema +struct<> +-- !query 850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 851 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 851 schema +struct<> +-- !query 851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 852 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 852 schema +struct<> +-- !query 852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 853 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 853 schema +struct<> +-- !query 853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 854 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 854 schema +struct<> +-- !query 854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 855 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 855 schema +struct<> +-- !query 855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 856 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 856 schema +struct<> +-- !query 856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 857 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 857 schema +struct<> +-- !query 857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 858 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 858 schema +struct<> +-- !query 858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 859 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 859 schema +struct<> +-- !query 859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 860 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 860 schema +struct<> +-- !query 860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 861 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 861 schema +struct<> +-- !query 861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 862 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 862 schema +struct<> +-- !query 862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 863 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 863 schema +struct<> +-- !query 863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 864 +SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 864 schema +struct<> +-- !query 864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 865 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 865 schema +struct> +-- !query 865 output +{1:1.0,2:2.0} + + +-- !query 866 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 866 schema +struct> +-- !query 866 output +{1:1.0,2:2.0} + + +-- !query 867 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 867 schema +struct> +-- !query 867 output +{1:1.0,2:2.0} + + +-- !query 868 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 868 schema +struct> +-- !query 868 output +{1:1.0,2:2.0} + + +-- !query 869 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 869 schema +struct> +-- !query 869 output +{1:1.0,2:2.0} + + +-- !query 870 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 870 schema +struct> +-- !query 870 output +{1:1.0,2:2.0} + + +-- !query 871 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 871 schema +struct> +-- !query 871 output +{1:1.0,2:2.0} + + +-- !query 872 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 872 schema +struct> +-- !query 872 output +{1:"1.0",2:"2"} + + +-- !query 873 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 873 schema +struct<> +-- !query 873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 874 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 874 schema +struct<> +-- !query 874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 875 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 875 schema +struct<> +-- !query 875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 876 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 876 schema +struct<> +-- !query 876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 877 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 877 schema +struct> +-- !query 877 output +{1:1.0,2:2.0} + + +-- !query 878 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 878 schema +struct> +-- !query 878 output +{1:1.0,2:2.0} + + +-- !query 879 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 879 schema +struct> +-- !query 879 output +{1:1.0,2:2.0} + + +-- !query 880 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 880 schema +struct> +-- !query 880 output +{1:1.0,2:2.0} + + +-- !query 881 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 881 schema +struct> +-- !query 881 output +{1:1.0,2:2.0} + + +-- !query 882 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 882 schema +struct> +-- !query 882 output +{1:1.0,2:2.0} + + +-- !query 883 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 883 schema +struct> +-- !query 883 output +{1:1.0,2:2.0} + + +-- !query 884 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 884 schema +struct> +-- !query 884 output +{1:"1.0",2:"2"} + + +-- !query 885 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 885 schema +struct<> +-- !query 885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 886 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 886 schema +struct<> +-- !query 886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 887 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 887 schema +struct<> +-- !query 887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 888 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 888 schema +struct<> +-- !query 888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 889 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 889 schema +struct> +-- !query 889 output +{1:1.0,2:2.0} + + +-- !query 890 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 890 schema +struct> +-- !query 890 output +{1:1.0,2:2.0} + + +-- !query 891 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 891 schema +struct> +-- !query 891 output +{1:1.0,2:2.0} + + +-- !query 892 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 892 schema +struct> +-- !query 892 output +{1:1.0,2:2.0} + + +-- !query 893 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 893 schema +struct> +-- !query 893 output +{1:1.0,2:2.0} + + +-- !query 894 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 894 schema +struct> +-- !query 894 output +{1:1.0,2:2.0} + + +-- !query 895 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 895 schema +struct> +-- !query 895 output +{1:1.0,2:2.0} + + +-- !query 896 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 896 schema +struct> +-- !query 896 output +{1:"1.0",2:"2"} + + +-- !query 897 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 897 schema +struct<> +-- !query 897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 898 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 898 schema +struct<> +-- !query 898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 899 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 899 schema +struct<> +-- !query 899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 900 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 900 schema +struct<> +-- !query 900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 901 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 901 schema +struct> +-- !query 901 output +{1:1.0,2:2.0} + + +-- !query 902 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 902 schema +struct> +-- !query 902 output +{1:1.0,2:2.0} + + +-- !query 903 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 903 schema +struct> +-- !query 903 output +{1:1.0,2:2.0} + + +-- !query 904 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 904 schema +struct> +-- !query 904 output +{1:1.0,2:2.0} + + +-- !query 905 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 905 schema +struct> +-- !query 905 output +{1:1.0,2:2.0} + + +-- !query 906 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 906 schema +struct> +-- !query 906 output +{1:1.0,2:2.0} + + +-- !query 907 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 907 schema +struct> +-- !query 907 output +{1:1.0,2:2.0} + + +-- !query 908 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 908 schema +struct> +-- !query 908 output +{1:"1.0",2:"2"} + + +-- !query 909 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 909 schema +struct<> +-- !query 909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 910 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 910 schema +struct<> +-- !query 910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 911 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 911 schema +struct<> +-- !query 911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 912 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 912 schema +struct<> +-- !query 912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 913 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 913 schema +struct> +-- !query 913 output +{1.0:1.0,2.0:2.0} + + +-- !query 914 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 914 schema +struct> +-- !query 914 output +{1.0:1.0,2.0:2.0} + + +-- !query 915 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 915 schema +struct> +-- !query 915 output +{1.0:1.0,2.0:2.0} + + +-- !query 916 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 916 schema +struct> +-- !query 916 output +{1.0:1.0,2.0:2.0} + + +-- !query 917 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 917 schema +struct> +-- !query 917 output +{1.0:1.0,2.0:2.0} + + +-- !query 918 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 918 schema +struct> +-- !query 918 output +{1.0:1.0,2.0:2.0} + + +-- !query 919 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 919 schema +struct> +-- !query 919 output +{1.0:1.0,2.0:2.0} + + +-- !query 920 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 920 schema +struct> +-- !query 920 output +{1.0:"1.0",2.0:"2"} + + +-- !query 921 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 921 schema +struct<> +-- !query 921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 922 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 922 schema +struct<> +-- !query 922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 923 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 923 schema +struct<> +-- !query 923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 924 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 924 schema +struct<> +-- !query 924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 925 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 925 schema +struct> +-- !query 925 output +{1.0:1.0,2.0:2.0} + + +-- !query 926 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 926 schema +struct> +-- !query 926 output +{1.0:1.0,2.0:2.0} + + +-- !query 927 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 927 schema +struct> +-- !query 927 output +{1.0:1.0,2.0:2.0} + + +-- !query 928 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 928 schema +struct> +-- !query 928 output +{1.0:1.0,2.0:2.0} + + +-- !query 929 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 929 schema +struct> +-- !query 929 output +{1.0:1.0,2.0:2.0} + + +-- !query 930 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 930 schema +struct> +-- !query 930 output +{1.0:1.0,2.0:2.0} + + +-- !query 931 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 931 schema +struct> +-- !query 931 output +{1.0:1.0,2.0:2.0} + + +-- !query 932 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 932 schema +struct> +-- !query 932 output +{1.0:"1.0",2.0:"2"} + + +-- !query 933 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 933 schema +struct<> +-- !query 933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 934 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 934 schema +struct<> +-- !query 934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 935 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 935 schema +struct<> +-- !query 935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 936 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 936 schema +struct<> +-- !query 936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 937 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 937 schema +struct> +-- !query 937 output +{1:1.0,2:2.0} + + +-- !query 938 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 938 schema +struct> +-- !query 938 output +{1:1.0,2:2.0} + + +-- !query 939 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 939 schema +struct> +-- !query 939 output +{1:1.0,2:2.0} + + +-- !query 940 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 940 schema +struct> +-- !query 940 output +{1:1.0,2:2.0} + + +-- !query 941 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 941 schema +struct> +-- !query 941 output +{1:1.0,2:2.0} + + +-- !query 942 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 942 schema +struct> +-- !query 942 output +{1:1.0,2:2.0} + + +-- !query 943 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 943 schema +struct> +-- !query 943 output +{1:1.0,2:2.0} + + +-- !query 944 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 944 schema +struct> +-- !query 944 output +{1:"1.0",2:"2"} + + +-- !query 945 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 945 schema +struct<> +-- !query 945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 946 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 946 schema +struct<> +-- !query 946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 947 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 947 schema +struct<> +-- !query 947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 948 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 948 schema +struct<> +-- !query 948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 949 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 949 schema +struct> +-- !query 949 output +{"1":1.0,"2":2.0} + + +-- !query 950 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 950 schema +struct> +-- !query 950 output +{"1":1.0,"2":2.0} + + +-- !query 951 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 951 schema +struct> +-- !query 951 output +{"1":1.0,"2":2.0} + + +-- !query 952 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 952 schema +struct> +-- !query 952 output +{"1":1.0,"2":2.0} + + +-- !query 953 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 953 schema +struct> +-- !query 953 output +{"1":1.0,"2":2.0} + + +-- !query 954 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 954 schema +struct> +-- !query 954 output +{"1":1.0,"2":2.0} + + +-- !query 955 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 955 schema +struct> +-- !query 955 output +{"1":1.0,"2":2.0} + + +-- !query 956 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 956 schema +struct> +-- !query 956 output +{"1":"1.0","2":"2"} + + +-- !query 957 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 957 schema +struct<> +-- !query 957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 958 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 958 schema +struct<> +-- !query 958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 959 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 959 schema +struct<> +-- !query 959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 960 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 960 schema +struct<> +-- !query 960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 961 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 961 schema +struct<> +-- !query 961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 962 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 962 schema +struct<> +-- !query 962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 963 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 963 schema +struct<> +-- !query 963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 964 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 964 schema +struct<> +-- !query 964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 965 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 965 schema +struct<> +-- !query 965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 966 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 966 schema +struct<> +-- !query 966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 967 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 967 schema +struct<> +-- !query 967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 968 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 968 schema +struct<> +-- !query 968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 969 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 969 schema +struct<> +-- !query 969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 970 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 970 schema +struct<> +-- !query 970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 971 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 971 schema +struct<> +-- !query 971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 972 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 972 schema +struct<> +-- !query 972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 973 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 973 schema +struct<> +-- !query 973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 974 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 974 schema +struct<> +-- !query 974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 975 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 975 schema +struct<> +-- !query 975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 976 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 976 schema +struct<> +-- !query 976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 977 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 977 schema +struct<> +-- !query 977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 978 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 978 schema +struct<> +-- !query 978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 979 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 979 schema +struct<> +-- !query 979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 980 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 980 schema +struct<> +-- !query 980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 981 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 981 schema +struct<> +-- !query 981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 982 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 982 schema +struct<> +-- !query 982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 983 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 983 schema +struct<> +-- !query 983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 984 +SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 984 schema +struct<> +-- !query 984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 985 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 985 schema +struct<> +-- !query 985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 986 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 986 schema +struct<> +-- !query 986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 987 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 987 schema +struct<> +-- !query 987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 988 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 988 schema +struct<> +-- !query 988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 989 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 989 schema +struct<> +-- !query 989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 990 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 990 schema +struct<> +-- !query 990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 991 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 991 schema +struct<> +-- !query 991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 992 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 992 schema +struct<> +-- !query 992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 993 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 993 schema +struct<> +-- !query 993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 994 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 994 schema +struct<> +-- !query 994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 995 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 995 schema +struct<> +-- !query 995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 996 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 996 schema +struct<> +-- !query 996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 997 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 997 schema +struct<> +-- !query 997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 998 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 998 schema +struct<> +-- !query 998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 999 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 999 schema +struct<> +-- !query 999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1000 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 1000 schema +struct<> +-- !query 1000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1001 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 1001 schema +struct<> +-- !query 1001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1002 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 1002 schema +struct<> +-- !query 1002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1003 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 1003 schema +struct<> +-- !query 1003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1004 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 1004 schema +struct<> +-- !query 1004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1005 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 1005 schema +struct<> +-- !query 1005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1006 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 1006 schema +struct<> +-- !query 1006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1007 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1007 schema +struct<> +-- !query 1007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1008 +SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1008 schema +struct<> +-- !query 1008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1009 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 1009 schema +struct> +-- !query 1009 output +{1:1,2:2} + + +-- !query 1010 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 1010 schema +struct> +-- !query 1010 output +{1:1,2:2} + + +-- !query 1011 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 1011 schema +struct> +-- !query 1011 output +{1:1,2:2} + + +-- !query 1012 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 1012 schema +struct> +-- !query 1012 output +{1:1,2:2} + + +-- !query 1013 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 1013 schema +struct> +-- !query 1013 output +{1:1.0,2:2.0} + + +-- !query 1014 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 1014 schema +struct> +-- !query 1014 output +{1:1.0,2:2.0} + + +-- !query 1015 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 1015 schema +struct> +-- !query 1015 output +{1:1,2:2} + + +-- !query 1016 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 1016 schema +struct> +-- !query 1016 output +{1:"1",2:"2"} + + +-- !query 1017 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 1017 schema +struct<> +-- !query 1017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1018 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 1018 schema +struct<> +-- !query 1018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1019 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1019 schema +struct<> +-- !query 1019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1020 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1020 schema +struct<> +-- !query 1020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1021 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 1021 schema +struct> +-- !query 1021 output +{1:1,2:2} + + +-- !query 1022 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 1022 schema +struct> +-- !query 1022 output +{1:1,2:2} + + +-- !query 1023 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 1023 schema +struct> +-- !query 1023 output +{1:1,2:2} + + +-- !query 1024 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 1024 schema +struct> +-- !query 1024 output +{1:1,2:2} + + +-- !query 1025 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 1025 schema +struct> +-- !query 1025 output +{1:1.0,2:2.0} + + +-- !query 1026 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 1026 schema +struct> +-- !query 1026 output +{1:1.0,2:2.0} + + +-- !query 1027 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 1027 schema +struct> +-- !query 1027 output +{1:1,2:2} + + +-- !query 1028 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 1028 schema +struct> +-- !query 1028 output +{1:"1",2:"2"} + + +-- !query 1029 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 1029 schema +struct<> +-- !query 1029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1030 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 1030 schema +struct<> +-- !query 1030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1031 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1031 schema +struct<> +-- !query 1031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1032 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1032 schema +struct<> +-- !query 1032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1033 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 1033 schema +struct> +-- !query 1033 output +{1:1,2:2} + + +-- !query 1034 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 1034 schema +struct> +-- !query 1034 output +{1:1,2:2} + + +-- !query 1035 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 1035 schema +struct> +-- !query 1035 output +{1:1,2:2} + + +-- !query 1036 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 1036 schema +struct> +-- !query 1036 output +{1:1,2:2} + + +-- !query 1037 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 1037 schema +struct> +-- !query 1037 output +{1:1.0,2:2.0} + + +-- !query 1038 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 1038 schema +struct> +-- !query 1038 output +{1:1.0,2:2.0} + + +-- !query 1039 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 1039 schema +struct> +-- !query 1039 output +{1:1,2:2} + + +-- !query 1040 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 1040 schema +struct> +-- !query 1040 output +{1:"1",2:"2"} + + +-- !query 1041 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 1041 schema +struct<> +-- !query 1041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1042 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 1042 schema +struct<> +-- !query 1042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1043 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1043 schema +struct<> +-- !query 1043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1044 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1044 schema +struct<> +-- !query 1044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1045 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 1045 schema +struct> +-- !query 1045 output +{1:1,2:2} + + +-- !query 1046 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 1046 schema +struct> +-- !query 1046 output +{1:1,2:2} + + +-- !query 1047 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 1047 schema +struct> +-- !query 1047 output +{1:1,2:2} + + +-- !query 1048 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 1048 schema +struct> +-- !query 1048 output +{1:1,2:2} + + +-- !query 1049 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 1049 schema +struct> +-- !query 1049 output +{1:1.0,2:2.0} + + +-- !query 1050 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 1050 schema +struct> +-- !query 1050 output +{1:1.0,2:2.0} + + +-- !query 1051 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 1051 schema +struct> +-- !query 1051 output +{1:1,2:2} + + +-- !query 1052 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 1052 schema +struct> +-- !query 1052 output +{1:"1",2:"2"} + + +-- !query 1053 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 1053 schema +struct<> +-- !query 1053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1054 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 1054 schema +struct<> +-- !query 1054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1055 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1055 schema +struct<> +-- !query 1055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1056 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1056 schema +struct<> +-- !query 1056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1057 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 1057 schema +struct> +-- !query 1057 output +{1.0:1,2.0:2} + + +-- !query 1058 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 1058 schema +struct> +-- !query 1058 output +{1.0:1,2.0:2} + + +-- !query 1059 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 1059 schema +struct> +-- !query 1059 output +{1.0:1,2.0:2} + + +-- !query 1060 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 1060 schema +struct> +-- !query 1060 output +{1.0:1,2.0:2} + + +-- !query 1061 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 1061 schema +struct> +-- !query 1061 output +{1.0:1.0,2.0:2.0} + + +-- !query 1062 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 1062 schema +struct> +-- !query 1062 output +{1.0:1.0,2.0:2.0} + + +-- !query 1063 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 1063 schema +struct> +-- !query 1063 output +{1.0:1,2.0:2} + + +-- !query 1064 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 1064 schema +struct> +-- !query 1064 output +{1.0:"1",2.0:"2"} + + +-- !query 1065 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 1065 schema +struct<> +-- !query 1065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1066 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 1066 schema +struct<> +-- !query 1066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1067 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1067 schema +struct<> +-- !query 1067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1068 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1068 schema +struct<> +-- !query 1068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1069 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 1069 schema +struct> +-- !query 1069 output +{1.0:1,2.0:2} + + +-- !query 1070 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 1070 schema +struct> +-- !query 1070 output +{1.0:1,2.0:2} + + +-- !query 1071 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 1071 schema +struct> +-- !query 1071 output +{1.0:1,2.0:2} + + +-- !query 1072 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 1072 schema +struct> +-- !query 1072 output +{1.0:1,2.0:2} + + +-- !query 1073 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 1073 schema +struct> +-- !query 1073 output +{1.0:1.0,2.0:2.0} + + +-- !query 1074 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 1074 schema +struct> +-- !query 1074 output +{1.0:1.0,2.0:2.0} + + +-- !query 1075 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 1075 schema +struct> +-- !query 1075 output +{1.0:1,2.0:2} + + +-- !query 1076 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 1076 schema +struct> +-- !query 1076 output +{1.0:"1",2.0:"2"} + + +-- !query 1077 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 1077 schema +struct<> +-- !query 1077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1078 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 1078 schema +struct<> +-- !query 1078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1079 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1079 schema +struct<> +-- !query 1079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1080 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1080 schema +struct<> +-- !query 1080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1081 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 1081 schema +struct> +-- !query 1081 output +{1:1,2:2} + + +-- !query 1082 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 1082 schema +struct> +-- !query 1082 output +{1:1,2:2} + + +-- !query 1083 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 1083 schema +struct> +-- !query 1083 output +{1:1,2:2} + + +-- !query 1084 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 1084 schema +struct> +-- !query 1084 output +{1:1,2:2} + + +-- !query 1085 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 1085 schema +struct> +-- !query 1085 output +{1:1.0,2:2.0} + + +-- !query 1086 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 1086 schema +struct> +-- !query 1086 output +{1:1.0,2:2.0} + + +-- !query 1087 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 1087 schema +struct> +-- !query 1087 output +{1:1,2:2} + + +-- !query 1088 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 1088 schema +struct> +-- !query 1088 output +{1:"1",2:"2"} + + +-- !query 1089 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 1089 schema +struct<> +-- !query 1089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1090 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 1090 schema +struct<> +-- !query 1090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1091 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1091 schema +struct<> +-- !query 1091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1092 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1092 schema +struct<> +-- !query 1092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1093 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 1093 schema +struct> +-- !query 1093 output +{"1":1,"2":2} + + +-- !query 1094 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 1094 schema +struct> +-- !query 1094 output +{"1":1,"2":2} + + +-- !query 1095 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 1095 schema +struct> +-- !query 1095 output +{"1":1,"2":2} + + +-- !query 1096 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 1096 schema +struct> +-- !query 1096 output +{"1":1,"2":2} + + +-- !query 1097 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 1097 schema +struct> +-- !query 1097 output +{"1":1.0,"2":2.0} + + +-- !query 1098 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 1098 schema +struct> +-- !query 1098 output +{"1":1.0,"2":2.0} + + +-- !query 1099 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 1099 schema +struct> +-- !query 1099 output +{"1":1,"2":2} + + +-- !query 1100 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 1100 schema +struct> +-- !query 1100 output +{"1":"1","2":"2"} + + +-- !query 1101 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 1101 schema +struct<> +-- !query 1101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 1102 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 1102 schema +struct<> +-- !query 1102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 1103 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1103 schema +struct<> +-- !query 1103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 1104 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1104 schema +struct<> +-- !query 1104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 1105 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 1105 schema +struct<> +-- !query 1105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1106 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 1106 schema +struct<> +-- !query 1106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1107 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 1107 schema +struct<> +-- !query 1107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1108 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 1108 schema +struct<> +-- !query 1108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1109 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 1109 schema +struct<> +-- !query 1109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1110 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 1110 schema +struct<> +-- !query 1110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1111 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 1111 schema +struct<> +-- !query 1111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1112 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 1112 schema +struct<> +-- !query 1112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1113 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 1113 schema +struct<> +-- !query 1113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1114 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 1114 schema +struct<> +-- !query 1114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1115 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1115 schema +struct<> +-- !query 1115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1116 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1116 schema +struct<> +-- !query 1116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1117 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 1117 schema +struct<> +-- !query 1117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1118 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 1118 schema +struct<> +-- !query 1118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1119 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 1119 schema +struct<> +-- !query 1119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1120 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 1120 schema +struct<> +-- !query 1120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1121 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 1121 schema +struct<> +-- !query 1121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1122 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 1122 schema +struct<> +-- !query 1122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1123 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 1123 schema +struct<> +-- !query 1123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1124 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 1124 schema +struct<> +-- !query 1124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1125 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 1125 schema +struct<> +-- !query 1125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1126 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 1126 schema +struct<> +-- !query 1126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1127 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1127 schema +struct<> +-- !query 1127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1128 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1128 schema +struct<> +-- !query 1128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1129 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 1129 schema +struct<> +-- !query 1129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1130 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 1130 schema +struct<> +-- !query 1130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1131 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 1131 schema +struct<> +-- !query 1131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1132 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 1132 schema +struct<> +-- !query 1132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1133 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 1133 schema +struct<> +-- !query 1133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1134 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 1134 schema +struct<> +-- !query 1134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1135 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 1135 schema +struct<> +-- !query 1135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1136 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 1136 schema +struct<> +-- !query 1136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1137 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 1137 schema +struct<> +-- !query 1137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1138 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 1138 schema +struct<> +-- !query 1138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1139 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1139 schema +struct<> +-- !query 1139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1140 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1140 schema +struct<> +-- !query 1140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1141 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 1141 schema +struct<> +-- !query 1141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1142 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 1142 schema +struct<> +-- !query 1142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1143 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 1143 schema +struct<> +-- !query 1143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1144 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 1144 schema +struct<> +-- !query 1144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1145 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 1145 schema +struct<> +-- !query 1145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1146 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 1146 schema +struct<> +-- !query 1146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1147 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 1147 schema +struct<> +-- !query 1147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1148 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 1148 schema +struct<> +-- !query 1148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1149 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 1149 schema +struct<> +-- !query 1149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1150 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 1150 schema +struct<> +-- !query 1150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1151 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1151 schema +struct<> +-- !query 1151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1152 +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1152 schema +struct<> +-- !query 1152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1153 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 1153 schema +struct> +-- !query 1153 output +{1:"1",2:"2"} + + +-- !query 1154 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 1154 schema +struct> +-- !query 1154 output +{1:"1",2:"2"} + + +-- !query 1155 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 1155 schema +struct> +-- !query 1155 output +{1:"1",2:"2"} + + +-- !query 1156 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 1156 schema +struct> +-- !query 1156 output +{1:"1",2:"2"} + + +-- !query 1157 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 1157 schema +struct> +-- !query 1157 output +{1:"1",2:"2.0"} + + +-- !query 1158 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 1158 schema +struct> +-- !query 1158 output +{1:"1",2:"2.0"} + + +-- !query 1159 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 1159 schema +struct> +-- !query 1159 output +{1:"1",2:"2"} + + +-- !query 1160 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 1160 schema +struct> +-- !query 1160 output +{1:"1",2:"2"} + + +-- !query 1161 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 1161 schema +struct<> +-- !query 1161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1162 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 1162 schema +struct<> +-- !query 1162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1163 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1163 schema +struct> +-- !query 1163 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 1164 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1164 schema +struct> +-- !query 1164 output +{1:"1",2:"2017-12-12"} + + +-- !query 1165 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 1165 schema +struct> +-- !query 1165 output +{1:"1",2:"2"} + + +-- !query 1166 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 1166 schema +struct> +-- !query 1166 output +{1:"1",2:"2"} + + +-- !query 1167 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 1167 schema +struct> +-- !query 1167 output +{1:"1",2:"2"} + + +-- !query 1168 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 1168 schema +struct> +-- !query 1168 output +{1:"1",2:"2"} + + +-- !query 1169 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 1169 schema +struct> +-- !query 1169 output +{1:"1",2:"2.0"} + + +-- !query 1170 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 1170 schema +struct> +-- !query 1170 output +{1:"1",2:"2.0"} + + +-- !query 1171 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 1171 schema +struct> +-- !query 1171 output +{1:"1",2:"2"} + + +-- !query 1172 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 1172 schema +struct> +-- !query 1172 output +{1:"1",2:"2"} + + +-- !query 1173 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 1173 schema +struct<> +-- !query 1173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1174 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 1174 schema +struct<> +-- !query 1174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1175 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1175 schema +struct> +-- !query 1175 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 1176 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1176 schema +struct> +-- !query 1176 output +{1:"1",2:"2017-12-12"} + + +-- !query 1177 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 1177 schema +struct> +-- !query 1177 output +{1:"1",2:"2"} + + +-- !query 1178 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 1178 schema +struct> +-- !query 1178 output +{1:"1",2:"2"} + + +-- !query 1179 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 1179 schema +struct> +-- !query 1179 output +{1:"1",2:"2"} + + +-- !query 1180 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 1180 schema +struct> +-- !query 1180 output +{1:"1",2:"2"} + + +-- !query 1181 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 1181 schema +struct> +-- !query 1181 output +{1:"1",2:"2.0"} + + +-- !query 1182 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 1182 schema +struct> +-- !query 1182 output +{1:"1",2:"2.0"} + + +-- !query 1183 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 1183 schema +struct> +-- !query 1183 output +{1:"1",2:"2"} + + +-- !query 1184 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 1184 schema +struct> +-- !query 1184 output +{1:"1",2:"2"} + + +-- !query 1185 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 1185 schema +struct<> +-- !query 1185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1186 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 1186 schema +struct<> +-- !query 1186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1187 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1187 schema +struct> +-- !query 1187 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 1188 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1188 schema +struct> +-- !query 1188 output +{1:"1",2:"2017-12-12"} + + +-- !query 1189 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 1189 schema +struct> +-- !query 1189 output +{1:"1",2:"2"} + + +-- !query 1190 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 1190 schema +struct> +-- !query 1190 output +{1:"1",2:"2"} + + +-- !query 1191 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 1191 schema +struct> +-- !query 1191 output +{1:"1",2:"2"} + + +-- !query 1192 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 1192 schema +struct> +-- !query 1192 output +{1:"1",2:"2"} + + +-- !query 1193 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 1193 schema +struct> +-- !query 1193 output +{1:"1",2:"2.0"} + + +-- !query 1194 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 1194 schema +struct> +-- !query 1194 output +{1:"1",2:"2.0"} + + +-- !query 1195 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 1195 schema +struct> +-- !query 1195 output +{1:"1",2:"2"} + + +-- !query 1196 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 1196 schema +struct> +-- !query 1196 output +{1:"1",2:"2"} + + +-- !query 1197 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 1197 schema +struct<> +-- !query 1197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1198 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 1198 schema +struct<> +-- !query 1198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1199 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1199 schema +struct> +-- !query 1199 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 1200 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1200 schema +struct> +-- !query 1200 output +{1:"1",2:"2017-12-12"} + + +-- !query 1201 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 1201 schema +struct> +-- !query 1201 output +{1.0:"1",2.0:"2"} + + +-- !query 1202 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 1202 schema +struct> +-- !query 1202 output +{1.0:"1",2.0:"2"} + + +-- !query 1203 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 1203 schema +struct> +-- !query 1203 output +{1.0:"1",2.0:"2"} + + +-- !query 1204 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 1204 schema +struct> +-- !query 1204 output +{1.0:"1",2.0:"2"} + + +-- !query 1205 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 1205 schema +struct> +-- !query 1205 output +{1.0:"1",2.0:"2.0"} + + +-- !query 1206 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 1206 schema +struct> +-- !query 1206 output +{1.0:"1",2.0:"2.0"} + + +-- !query 1207 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 1207 schema +struct> +-- !query 1207 output +{1.0:"1",2.0:"2"} + + +-- !query 1208 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 1208 schema +struct> +-- !query 1208 output +{1.0:"1",2.0:"2"} + + +-- !query 1209 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 1209 schema +struct<> +-- !query 1209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1210 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 1210 schema +struct<> +-- !query 1210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1211 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1211 schema +struct> +-- !query 1211 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 1212 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1212 schema +struct> +-- !query 1212 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 1213 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 1213 schema +struct> +-- !query 1213 output +{1.0:"1",2.0:"2"} + + +-- !query 1214 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 1214 schema +struct> +-- !query 1214 output +{1.0:"1",2.0:"2"} + + +-- !query 1215 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 1215 schema +struct> +-- !query 1215 output +{1.0:"1",2.0:"2"} + + +-- !query 1216 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 1216 schema +struct> +-- !query 1216 output +{1.0:"1",2.0:"2"} + + +-- !query 1217 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 1217 schema +struct> +-- !query 1217 output +{1.0:"1",2.0:"2.0"} + + +-- !query 1218 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 1218 schema +struct> +-- !query 1218 output +{1.0:"1",2.0:"2.0"} + + +-- !query 1219 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 1219 schema +struct> +-- !query 1219 output +{1.0:"1",2.0:"2"} + + +-- !query 1220 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 1220 schema +struct> +-- !query 1220 output +{1.0:"1",2.0:"2"} + + +-- !query 1221 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 1221 schema +struct<> +-- !query 1221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1222 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 1222 schema +struct<> +-- !query 1222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1223 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1223 schema +struct> +-- !query 1223 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 1224 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1224 schema +struct> +-- !query 1224 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 1225 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 1225 schema +struct> +-- !query 1225 output +{1:"1",2:"2"} + + +-- !query 1226 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 1226 schema +struct> +-- !query 1226 output +{1:"1",2:"2"} + + +-- !query 1227 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 1227 schema +struct> +-- !query 1227 output +{1:"1",2:"2"} + + +-- !query 1228 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 1228 schema +struct> +-- !query 1228 output +{1:"1",2:"2"} + + +-- !query 1229 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 1229 schema +struct> +-- !query 1229 output +{1:"1",2:"2.0"} + + +-- !query 1230 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 1230 schema +struct> +-- !query 1230 output +{1:"1",2:"2.0"} + + +-- !query 1231 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 1231 schema +struct> +-- !query 1231 output +{1:"1",2:"2"} + + +-- !query 1232 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 1232 schema +struct> +-- !query 1232 output +{1:"1",2:"2"} + + +-- !query 1233 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 1233 schema +struct<> +-- !query 1233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1234 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 1234 schema +struct<> +-- !query 1234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1235 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1235 schema +struct> +-- !query 1235 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 1236 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1236 schema +struct> +-- !query 1236 output +{1:"1",2:"2017-12-12"} + + +-- !query 1237 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 1237 schema +struct> +-- !query 1237 output +{"1":"1","2":"2"} + + +-- !query 1238 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 1238 schema +struct> +-- !query 1238 output +{"1":"1","2":"2"} + + +-- !query 1239 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 1239 schema +struct> +-- !query 1239 output +{"1":"1","2":"2"} + + +-- !query 1240 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 1240 schema +struct> +-- !query 1240 output +{"1":"1","2":"2"} + + +-- !query 1241 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 1241 schema +struct> +-- !query 1241 output +{"1":"1","2":"2.0"} + + +-- !query 1242 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 1242 schema +struct> +-- !query 1242 output +{"1":"1","2":"2.0"} + + +-- !query 1243 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 1243 schema +struct> +-- !query 1243 output +{"1":"1","2":"2"} + + +-- !query 1244 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 1244 schema +struct> +-- !query 1244 output +{"1":"1","2":"2"} + + +-- !query 1245 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 1245 schema +struct<> +-- !query 1245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 1246 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 1246 schema +struct<> +-- !query 1246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 1247 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1247 schema +struct> +-- !query 1247 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 1248 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1248 schema +struct> +-- !query 1248 output +{"1":"1","2":"2017-12-12"} + + +-- !query 1249 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 1249 schema +struct<> +-- !query 1249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1250 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 1250 schema +struct<> +-- !query 1250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1251 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 1251 schema +struct<> +-- !query 1251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1252 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 1252 schema +struct<> +-- !query 1252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1253 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 1253 schema +struct<> +-- !query 1253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1254 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 1254 schema +struct<> +-- !query 1254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1255 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 1255 schema +struct<> +-- !query 1255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1256 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 1256 schema +struct<> +-- !query 1256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1257 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 1257 schema +struct<> +-- !query 1257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1258 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 1258 schema +struct<> +-- !query 1258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1259 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1259 schema +struct<> +-- !query 1259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1260 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1260 schema +struct<> +-- !query 1260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1261 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 1261 schema +struct<> +-- !query 1261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1262 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 1262 schema +struct<> +-- !query 1262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1263 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 1263 schema +struct<> +-- !query 1263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1264 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 1264 schema +struct<> +-- !query 1264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1265 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 1265 schema +struct<> +-- !query 1265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1266 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 1266 schema +struct<> +-- !query 1266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1267 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 1267 schema +struct<> +-- !query 1267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1268 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 1268 schema +struct<> +-- !query 1268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1269 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 1269 schema +struct<> +-- !query 1269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1270 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 1270 schema +struct<> +-- !query 1270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1271 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1271 schema +struct<> +-- !query 1271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1272 +SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1272 schema +struct<> +-- !query 1272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1273 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 1273 schema +struct<> +-- !query 1273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1274 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 1274 schema +struct<> +-- !query 1274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1275 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 1275 schema +struct<> +-- !query 1275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1276 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 1276 schema +struct<> +-- !query 1276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1277 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 1277 schema +struct<> +-- !query 1277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1278 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 1278 schema +struct<> +-- !query 1278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1279 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 1279 schema +struct<> +-- !query 1279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1280 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 1280 schema +struct<> +-- !query 1280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1281 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 1281 schema +struct<> +-- !query 1281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1282 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 1282 schema +struct<> +-- !query 1282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1283 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1283 schema +struct<> +-- !query 1283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1284 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1284 schema +struct<> +-- !query 1284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1285 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 1285 schema +struct<> +-- !query 1285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1286 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 1286 schema +struct<> +-- !query 1286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1287 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 1287 schema +struct<> +-- !query 1287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1288 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 1288 schema +struct<> +-- !query 1288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1289 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 1289 schema +struct<> +-- !query 1289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1290 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 1290 schema +struct<> +-- !query 1290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1291 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 1291 schema +struct<> +-- !query 1291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1292 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 1292 schema +struct<> +-- !query 1292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1293 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 1293 schema +struct<> +-- !query 1293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1294 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 1294 schema +struct<> +-- !query 1294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1295 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1295 schema +struct<> +-- !query 1295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1296 +SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1296 schema +struct<> +-- !query 1296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1297 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 1297 schema +struct<> +-- !query 1297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1298 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 1298 schema +struct<> +-- !query 1298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1299 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 1299 schema +struct<> +-- !query 1299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1300 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 1300 schema +struct<> +-- !query 1300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1301 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 1301 schema +struct<> +-- !query 1301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1302 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 1302 schema +struct<> +-- !query 1302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1303 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 1303 schema +struct<> +-- !query 1303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1304 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 1304 schema +struct<> +-- !query 1304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1305 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 1305 schema +struct> +-- !query 1305 output +{1:[B@43d1bd1a,2:[B@8321064} + + +-- !query 1306 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 1306 schema +struct<> +-- !query 1306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1307 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1307 schema +struct<> +-- !query 1307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1308 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1308 schema +struct<> +-- !query 1308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1309 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 1309 schema +struct<> +-- !query 1309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1310 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 1310 schema +struct<> +-- !query 1310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1311 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 1311 schema +struct<> +-- !query 1311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1312 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 1312 schema +struct<> +-- !query 1312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1313 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 1313 schema +struct<> +-- !query 1313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1314 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 1314 schema +struct<> +-- !query 1314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1315 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 1315 schema +struct<> +-- !query 1315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1316 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 1316 schema +struct<> +-- !query 1316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1317 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 1317 schema +struct> +-- !query 1317 output +{1:[B@65b7cc5f,2:[B@4a773d82} + + +-- !query 1318 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 1318 schema +struct<> +-- !query 1318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1319 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1319 schema +struct<> +-- !query 1319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1320 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1320 schema +struct<> +-- !query 1320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1321 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 1321 schema +struct<> +-- !query 1321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1322 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 1322 schema +struct<> +-- !query 1322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1323 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 1323 schema +struct<> +-- !query 1323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1324 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 1324 schema +struct<> +-- !query 1324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1325 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 1325 schema +struct<> +-- !query 1325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1326 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 1326 schema +struct<> +-- !query 1326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1327 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 1327 schema +struct<> +-- !query 1327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1328 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 1328 schema +struct<> +-- !query 1328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1329 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 1329 schema +struct> +-- !query 1329 output +{1:[B@737a0a51,2:[B@2b53f2f4} + + +-- !query 1330 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 1330 schema +struct<> +-- !query 1330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1331 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1331 schema +struct<> +-- !query 1331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1332 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1332 schema +struct<> +-- !query 1332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1333 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 1333 schema +struct<> +-- !query 1333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1334 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 1334 schema +struct<> +-- !query 1334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1335 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 1335 schema +struct<> +-- !query 1335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1336 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 1336 schema +struct<> +-- !query 1336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1337 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 1337 schema +struct<> +-- !query 1337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1338 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 1338 schema +struct<> +-- !query 1338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1339 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 1339 schema +struct<> +-- !query 1339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1340 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 1340 schema +struct<> +-- !query 1340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1341 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 1341 schema +struct> +-- !query 1341 output +{1:[B@49bfcfd0,2:[B@5859e36e} + + +-- !query 1342 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 1342 schema +struct<> +-- !query 1342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1343 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1343 schema +struct<> +-- !query 1343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1344 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1344 schema +struct<> +-- !query 1344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1345 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 1345 schema +struct<> +-- !query 1345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1346 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 1346 schema +struct<> +-- !query 1346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1347 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 1347 schema +struct<> +-- !query 1347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1348 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 1348 schema +struct<> +-- !query 1348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1349 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 1349 schema +struct<> +-- !query 1349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1350 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 1350 schema +struct<> +-- !query 1350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1351 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 1351 schema +struct<> +-- !query 1351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1352 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 1352 schema +struct<> +-- !query 1352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1353 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 1353 schema +struct> +-- !query 1353 output +{1.0:[B@430f7b84,2.0:[B@3048a3d6} + + +-- !query 1354 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 1354 schema +struct<> +-- !query 1354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1355 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1355 schema +struct<> +-- !query 1355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1356 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1356 schema +struct<> +-- !query 1356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1357 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 1357 schema +struct<> +-- !query 1357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1358 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 1358 schema +struct<> +-- !query 1358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1359 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 1359 schema +struct<> +-- !query 1359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1360 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 1360 schema +struct<> +-- !query 1360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1361 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 1361 schema +struct<> +-- !query 1361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1362 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 1362 schema +struct<> +-- !query 1362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1363 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 1363 schema +struct<> +-- !query 1363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1364 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 1364 schema +struct<> +-- !query 1364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1365 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 1365 schema +struct> +-- !query 1365 output +{1.0:[B@37f9242c,2.0:[B@363a119c} + + +-- !query 1366 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 1366 schema +struct<> +-- !query 1366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1367 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1367 schema +struct<> +-- !query 1367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1368 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1368 schema +struct<> +-- !query 1368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1369 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 1369 schema +struct<> +-- !query 1369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1370 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 1370 schema +struct<> +-- !query 1370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1371 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 1371 schema +struct<> +-- !query 1371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1372 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 1372 schema +struct<> +-- !query 1372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1373 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 1373 schema +struct<> +-- !query 1373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1374 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 1374 schema +struct<> +-- !query 1374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1375 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 1375 schema +struct<> +-- !query 1375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1376 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 1376 schema +struct<> +-- !query 1376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1377 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 1377 schema +struct> +-- !query 1377 output +{1:[B@296b201b,2:[B@4165a9dd} + + +-- !query 1378 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 1378 schema +struct<> +-- !query 1378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1379 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1379 schema +struct<> +-- !query 1379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1380 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1380 schema +struct<> +-- !query 1380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1381 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 1381 schema +struct<> +-- !query 1381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 1382 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 1382 schema +struct<> +-- !query 1382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 1383 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 1383 schema +struct<> +-- !query 1383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 1384 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 1384 schema +struct<> +-- !query 1384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 1385 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 1385 schema +struct<> +-- !query 1385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 1386 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 1386 schema +struct<> +-- !query 1386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 1387 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 1387 schema +struct<> +-- !query 1387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 1388 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 1388 schema +struct<> +-- !query 1388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 1389 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 1389 schema +struct> +-- !query 1389 output +{"1":[B@329ffa13,"2":[B@e1b0dfd} + + +-- !query 1390 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 1390 schema +struct<> +-- !query 1390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 1391 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1391 schema +struct<> +-- !query 1391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 1392 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1392 schema +struct<> +-- !query 1392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 1393 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 1393 schema +struct<> +-- !query 1393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1394 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 1394 schema +struct<> +-- !query 1394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1395 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 1395 schema +struct<> +-- !query 1395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1396 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 1396 schema +struct<> +-- !query 1396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1397 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 1397 schema +struct<> +-- !query 1397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1398 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 1398 schema +struct<> +-- !query 1398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1399 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 1399 schema +struct<> +-- !query 1399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1400 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 1400 schema +struct<> +-- !query 1400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1401 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 1401 schema +struct<> +-- !query 1401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1402 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 1402 schema +struct<> +-- !query 1402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1403 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1403 schema +struct<> +-- !query 1403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1404 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1404 schema +struct<> +-- !query 1404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1405 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 1405 schema +struct<> +-- !query 1405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1406 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 1406 schema +struct<> +-- !query 1406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1407 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 1407 schema +struct<> +-- !query 1407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1408 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 1408 schema +struct<> +-- !query 1408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1409 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 1409 schema +struct<> +-- !query 1409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1410 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 1410 schema +struct<> +-- !query 1410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1411 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 1411 schema +struct<> +-- !query 1411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1412 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 1412 schema +struct<> +-- !query 1412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1413 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 1413 schema +struct<> +-- !query 1413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1414 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 1414 schema +struct<> +-- !query 1414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1415 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1415 schema +struct<> +-- !query 1415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1416 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1416 schema +struct<> +-- !query 1416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1417 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 1417 schema +struct<> +-- !query 1417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1418 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 1418 schema +struct<> +-- !query 1418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1419 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 1419 schema +struct<> +-- !query 1419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1420 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 1420 schema +struct<> +-- !query 1420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1421 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 1421 schema +struct<> +-- !query 1421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1422 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 1422 schema +struct<> +-- !query 1422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1423 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 1423 schema +struct<> +-- !query 1423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1424 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 1424 schema +struct<> +-- !query 1424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1425 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 1425 schema +struct<> +-- !query 1425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1426 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 1426 schema +struct<> +-- !query 1426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1427 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1427 schema +struct<> +-- !query 1427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1428 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1428 schema +struct<> +-- !query 1428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1429 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 1429 schema +struct<> +-- !query 1429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1430 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 1430 schema +struct<> +-- !query 1430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1431 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 1431 schema +struct<> +-- !query 1431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1432 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 1432 schema +struct<> +-- !query 1432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1433 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 1433 schema +struct<> +-- !query 1433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1434 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 1434 schema +struct<> +-- !query 1434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1435 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 1435 schema +struct<> +-- !query 1435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1436 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 1436 schema +struct<> +-- !query 1436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1437 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 1437 schema +struct<> +-- !query 1437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1438 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 1438 schema +struct<> +-- !query 1438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1439 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1439 schema +struct<> +-- !query 1439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1440 +SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1440 schema +struct<> +-- !query 1440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1441 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 1441 schema +struct<> +-- !query 1441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1442 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 1442 schema +struct<> +-- !query 1442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1443 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 1443 schema +struct<> +-- !query 1443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1444 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 1444 schema +struct<> +-- !query 1444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1445 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 1445 schema +struct<> +-- !query 1445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1446 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 1446 schema +struct<> +-- !query 1446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1447 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 1447 schema +struct<> +-- !query 1447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1448 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 1448 schema +struct<> +-- !query 1448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1449 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 1449 schema +struct<> +-- !query 1449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1450 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 1450 schema +struct> +-- !query 1450 output +{1:true,2:true} + + +-- !query 1451 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1451 schema +struct<> +-- !query 1451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1452 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1452 schema +struct<> +-- !query 1452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1453 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 1453 schema +struct<> +-- !query 1453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1454 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 1454 schema +struct<> +-- !query 1454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1455 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 1455 schema +struct<> +-- !query 1455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1456 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 1456 schema +struct<> +-- !query 1456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1457 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 1457 schema +struct<> +-- !query 1457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1458 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 1458 schema +struct<> +-- !query 1458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1459 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 1459 schema +struct<> +-- !query 1459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1460 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 1460 schema +struct<> +-- !query 1460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1461 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 1461 schema +struct<> +-- !query 1461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1462 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 1462 schema +struct> +-- !query 1462 output +{1:true,2:true} + + +-- !query 1463 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1463 schema +struct<> +-- !query 1463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1464 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1464 schema +struct<> +-- !query 1464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1465 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 1465 schema +struct<> +-- !query 1465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1466 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 1466 schema +struct<> +-- !query 1466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1467 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 1467 schema +struct<> +-- !query 1467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1468 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 1468 schema +struct<> +-- !query 1468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1469 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 1469 schema +struct<> +-- !query 1469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1470 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 1470 schema +struct<> +-- !query 1470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1471 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 1471 schema +struct<> +-- !query 1471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1472 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 1472 schema +struct<> +-- !query 1472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1473 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 1473 schema +struct<> +-- !query 1473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1474 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 1474 schema +struct> +-- !query 1474 output +{1:true,2:true} + + +-- !query 1475 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1475 schema +struct<> +-- !query 1475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1476 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1476 schema +struct<> +-- !query 1476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1477 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 1477 schema +struct<> +-- !query 1477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1478 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 1478 schema +struct<> +-- !query 1478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1479 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 1479 schema +struct<> +-- !query 1479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1480 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 1480 schema +struct<> +-- !query 1480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1481 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 1481 schema +struct<> +-- !query 1481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1482 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 1482 schema +struct<> +-- !query 1482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1483 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 1483 schema +struct<> +-- !query 1483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1484 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 1484 schema +struct<> +-- !query 1484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1485 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 1485 schema +struct<> +-- !query 1485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1486 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 1486 schema +struct> +-- !query 1486 output +{1:true,2:true} + + +-- !query 1487 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1487 schema +struct<> +-- !query 1487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1488 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1488 schema +struct<> +-- !query 1488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1489 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 1489 schema +struct<> +-- !query 1489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1490 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 1490 schema +struct<> +-- !query 1490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1491 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 1491 schema +struct<> +-- !query 1491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1492 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 1492 schema +struct<> +-- !query 1492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1493 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 1493 schema +struct<> +-- !query 1493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1494 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 1494 schema +struct<> +-- !query 1494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1495 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 1495 schema +struct<> +-- !query 1495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1496 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 1496 schema +struct<> +-- !query 1496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1497 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 1497 schema +struct<> +-- !query 1497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1498 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 1498 schema +struct> +-- !query 1498 output +{1.0:true,2.0:true} + + +-- !query 1499 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1499 schema +struct<> +-- !query 1499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1500 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1500 schema +struct<> +-- !query 1500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1501 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 1501 schema +struct<> +-- !query 1501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1502 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 1502 schema +struct<> +-- !query 1502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1503 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 1503 schema +struct<> +-- !query 1503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1504 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 1504 schema +struct<> +-- !query 1504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1505 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 1505 schema +struct<> +-- !query 1505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1506 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 1506 schema +struct<> +-- !query 1506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1507 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 1507 schema +struct<> +-- !query 1507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1508 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 1508 schema +struct<> +-- !query 1508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1509 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 1509 schema +struct<> +-- !query 1509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1510 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 1510 schema +struct> +-- !query 1510 output +{1.0:true,2.0:true} + + +-- !query 1511 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1511 schema +struct<> +-- !query 1511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1512 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1512 schema +struct<> +-- !query 1512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1513 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 1513 schema +struct<> +-- !query 1513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1514 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 1514 schema +struct<> +-- !query 1514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1515 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 1515 schema +struct<> +-- !query 1515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1516 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 1516 schema +struct<> +-- !query 1516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1517 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 1517 schema +struct<> +-- !query 1517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1518 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 1518 schema +struct<> +-- !query 1518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1519 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 1519 schema +struct<> +-- !query 1519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1520 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 1520 schema +struct<> +-- !query 1520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1521 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 1521 schema +struct<> +-- !query 1521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1522 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 1522 schema +struct> +-- !query 1522 output +{1:true,2:true} + + +-- !query 1523 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1523 schema +struct<> +-- !query 1523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1524 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1524 schema +struct<> +-- !query 1524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1525 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 1525 schema +struct<> +-- !query 1525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 1526 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 1526 schema +struct<> +-- !query 1526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 1527 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 1527 schema +struct<> +-- !query 1527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 1528 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 1528 schema +struct<> +-- !query 1528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 1529 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 1529 schema +struct<> +-- !query 1529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 1530 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 1530 schema +struct<> +-- !query 1530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 1531 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 1531 schema +struct<> +-- !query 1531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 1532 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 1532 schema +struct<> +-- !query 1532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 1533 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 1533 schema +struct<> +-- !query 1533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 1534 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 1534 schema +struct> +-- !query 1534 output +{"1":true,"2":true} + + +-- !query 1535 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1535 schema +struct<> +-- !query 1535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 1536 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1536 schema +struct<> +-- !query 1536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 1537 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 1537 schema +struct<> +-- !query 1537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1538 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 1538 schema +struct<> +-- !query 1538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1539 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 1539 schema +struct<> +-- !query 1539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1540 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 1540 schema +struct<> +-- !query 1540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1541 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 1541 schema +struct<> +-- !query 1541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1542 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 1542 schema +struct<> +-- !query 1542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1543 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 1543 schema +struct<> +-- !query 1543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1544 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 1544 schema +struct<> +-- !query 1544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1545 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 1545 schema +struct<> +-- !query 1545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1546 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 1546 schema +struct<> +-- !query 1546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1547 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1547 schema +struct<> +-- !query 1547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1548 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1548 schema +struct<> +-- !query 1548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1549 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 1549 schema +struct<> +-- !query 1549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1550 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 1550 schema +struct<> +-- !query 1550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1551 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 1551 schema +struct<> +-- !query 1551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1552 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 1552 schema +struct<> +-- !query 1552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1553 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 1553 schema +struct<> +-- !query 1553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1554 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 1554 schema +struct<> +-- !query 1554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1555 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 1555 schema +struct<> +-- !query 1555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1556 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 1556 schema +struct<> +-- !query 1556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1557 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 1557 schema +struct<> +-- !query 1557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1558 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 1558 schema +struct<> +-- !query 1558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1559 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1559 schema +struct<> +-- !query 1559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1560 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1560 schema +struct<> +-- !query 1560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1561 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 1561 schema +struct<> +-- !query 1561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1562 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 1562 schema +struct<> +-- !query 1562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1563 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 1563 schema +struct<> +-- !query 1563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1564 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 1564 schema +struct<> +-- !query 1564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1565 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 1565 schema +struct<> +-- !query 1565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1566 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 1566 schema +struct<> +-- !query 1566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1567 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 1567 schema +struct<> +-- !query 1567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1568 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 1568 schema +struct<> +-- !query 1568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1569 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 1569 schema +struct<> +-- !query 1569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1570 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 1570 schema +struct<> +-- !query 1570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1571 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1571 schema +struct<> +-- !query 1571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1572 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1572 schema +struct<> +-- !query 1572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1573 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 1573 schema +struct<> +-- !query 1573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1574 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 1574 schema +struct<> +-- !query 1574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1575 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 1575 schema +struct<> +-- !query 1575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1576 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 1576 schema +struct<> +-- !query 1576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1577 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 1577 schema +struct<> +-- !query 1577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1578 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 1578 schema +struct<> +-- !query 1578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1579 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 1579 schema +struct<> +-- !query 1579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1580 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 1580 schema +struct<> +-- !query 1580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1581 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 1581 schema +struct<> +-- !query 1581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1582 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 1582 schema +struct<> +-- !query 1582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1583 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1583 schema +struct<> +-- !query 1583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1584 +SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1584 schema +struct<> +-- !query 1584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1585 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 1585 schema +struct<> +-- !query 1585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1586 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 1586 schema +struct<> +-- !query 1586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1587 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 1587 schema +struct<> +-- !query 1587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1588 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 1588 schema +struct<> +-- !query 1588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1589 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 1589 schema +struct<> +-- !query 1589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1590 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 1590 schema +struct<> +-- !query 1590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1591 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 1591 schema +struct<> +-- !query 1591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1592 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 1592 schema +struct> +-- !query 1592 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 1593 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 1593 schema +struct<> +-- !query 1593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1594 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 1594 schema +struct<> +-- !query 1594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1595 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1595 schema +struct> +-- !query 1595 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1596 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1596 schema +struct> +-- !query 1596 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 1597 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 1597 schema +struct<> +-- !query 1597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1598 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 1598 schema +struct<> +-- !query 1598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1599 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 1599 schema +struct<> +-- !query 1599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1600 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 1600 schema +struct<> +-- !query 1600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1601 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 1601 schema +struct<> +-- !query 1601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1602 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 1602 schema +struct<> +-- !query 1602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1603 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 1603 schema +struct<> +-- !query 1603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1604 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 1604 schema +struct> +-- !query 1604 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 1605 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 1605 schema +struct<> +-- !query 1605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1606 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 1606 schema +struct<> +-- !query 1606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1607 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1607 schema +struct> +-- !query 1607 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1608 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1608 schema +struct> +-- !query 1608 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 1609 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 1609 schema +struct<> +-- !query 1609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1610 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 1610 schema +struct<> +-- !query 1610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1611 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 1611 schema +struct<> +-- !query 1611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1612 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 1612 schema +struct<> +-- !query 1612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1613 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 1613 schema +struct<> +-- !query 1613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1614 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 1614 schema +struct<> +-- !query 1614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1615 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 1615 schema +struct<> +-- !query 1615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1616 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 1616 schema +struct> +-- !query 1616 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 1617 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 1617 schema +struct<> +-- !query 1617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1618 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 1618 schema +struct<> +-- !query 1618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1619 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1619 schema +struct> +-- !query 1619 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1620 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1620 schema +struct> +-- !query 1620 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 1621 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 1621 schema +struct<> +-- !query 1621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1622 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 1622 schema +struct<> +-- !query 1622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1623 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 1623 schema +struct<> +-- !query 1623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1624 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 1624 schema +struct<> +-- !query 1624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1625 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 1625 schema +struct<> +-- !query 1625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1626 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 1626 schema +struct<> +-- !query 1626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1627 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 1627 schema +struct<> +-- !query 1627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1628 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 1628 schema +struct> +-- !query 1628 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 1629 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 1629 schema +struct<> +-- !query 1629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1630 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 1630 schema +struct<> +-- !query 1630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1631 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1631 schema +struct> +-- !query 1631 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1632 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1632 schema +struct> +-- !query 1632 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 1633 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 1633 schema +struct<> +-- !query 1633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1634 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 1634 schema +struct<> +-- !query 1634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1635 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 1635 schema +struct<> +-- !query 1635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1636 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 1636 schema +struct<> +-- !query 1636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1637 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 1637 schema +struct<> +-- !query 1637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1638 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 1638 schema +struct<> +-- !query 1638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1639 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 1639 schema +struct<> +-- !query 1639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1640 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 1640 schema +struct> +-- !query 1640 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 1641 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 1641 schema +struct<> +-- !query 1641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1642 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 1642 schema +struct<> +-- !query 1642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1643 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1643 schema +struct> +-- !query 1643 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 1644 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1644 schema +struct> +-- !query 1644 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 1645 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 1645 schema +struct<> +-- !query 1645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1646 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 1646 schema +struct<> +-- !query 1646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1647 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 1647 schema +struct<> +-- !query 1647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1648 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 1648 schema +struct<> +-- !query 1648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1649 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 1649 schema +struct<> +-- !query 1649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1650 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 1650 schema +struct<> +-- !query 1650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1651 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 1651 schema +struct<> +-- !query 1651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1652 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 1652 schema +struct> +-- !query 1652 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 1653 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 1653 schema +struct<> +-- !query 1653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1654 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 1654 schema +struct<> +-- !query 1654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1655 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1655 schema +struct> +-- !query 1655 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 1656 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1656 schema +struct> +-- !query 1656 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 1657 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 1657 schema +struct<> +-- !query 1657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1658 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 1658 schema +struct<> +-- !query 1658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1659 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 1659 schema +struct<> +-- !query 1659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1660 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 1660 schema +struct<> +-- !query 1660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1661 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 1661 schema +struct<> +-- !query 1661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1662 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 1662 schema +struct<> +-- !query 1662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1663 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 1663 schema +struct<> +-- !query 1663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1664 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 1664 schema +struct> +-- !query 1664 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 1665 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 1665 schema +struct<> +-- !query 1665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1666 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 1666 schema +struct<> +-- !query 1666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1667 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1667 schema +struct> +-- !query 1667 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1668 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1668 schema +struct> +-- !query 1668 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 1669 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 1669 schema +struct<> +-- !query 1669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 1670 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 1670 schema +struct<> +-- !query 1670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 1671 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 1671 schema +struct<> +-- !query 1671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 1672 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 1672 schema +struct<> +-- !query 1672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 1673 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 1673 schema +struct<> +-- !query 1673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 1674 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 1674 schema +struct<> +-- !query 1674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 1675 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 1675 schema +struct<> +-- !query 1675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 1676 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 1676 schema +struct> +-- !query 1676 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 1677 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 1677 schema +struct<> +-- !query 1677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 1678 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 1678 schema +struct<> +-- !query 1678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 1679 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1679 schema +struct> +-- !query 1679 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 1680 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1680 schema +struct> +-- !query 1680 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 1681 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 1681 schema +struct<> +-- !query 1681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1682 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 1682 schema +struct<> +-- !query 1682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1683 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 1683 schema +struct<> +-- !query 1683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1684 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 1684 schema +struct<> +-- !query 1684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1685 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 1685 schema +struct<> +-- !query 1685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1686 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 1686 schema +struct<> +-- !query 1686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1687 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 1687 schema +struct<> +-- !query 1687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1688 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 1688 schema +struct<> +-- !query 1688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1689 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 1689 schema +struct<> +-- !query 1689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1690 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 1690 schema +struct<> +-- !query 1690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1691 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1691 schema +struct<> +-- !query 1691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1692 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1692 schema +struct<> +-- !query 1692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1693 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 1693 schema +struct<> +-- !query 1693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1694 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 1694 schema +struct<> +-- !query 1694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1695 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 1695 schema +struct<> +-- !query 1695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1696 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 1696 schema +struct<> +-- !query 1696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1697 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 1697 schema +struct<> +-- !query 1697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1698 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 1698 schema +struct<> +-- !query 1698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1699 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 1699 schema +struct<> +-- !query 1699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1700 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 1700 schema +struct<> +-- !query 1700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1701 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 1701 schema +struct<> +-- !query 1701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1702 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 1702 schema +struct<> +-- !query 1702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1703 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1703 schema +struct<> +-- !query 1703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1704 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1704 schema +struct<> +-- !query 1704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1705 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 1705 schema +struct<> +-- !query 1705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1706 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 1706 schema +struct<> +-- !query 1706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1707 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 1707 schema +struct<> +-- !query 1707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1708 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 1708 schema +struct<> +-- !query 1708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1709 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 1709 schema +struct<> +-- !query 1709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1710 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 1710 schema +struct<> +-- !query 1710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1711 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 1711 schema +struct<> +-- !query 1711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1712 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 1712 schema +struct<> +-- !query 1712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1713 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 1713 schema +struct<> +-- !query 1713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1714 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 1714 schema +struct<> +-- !query 1714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1715 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1715 schema +struct<> +-- !query 1715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1716 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1716 schema +struct<> +-- !query 1716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1717 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 1717 schema +struct<> +-- !query 1717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1718 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 1718 schema +struct<> +-- !query 1718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1719 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 1719 schema +struct<> +-- !query 1719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1720 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 1720 schema +struct<> +-- !query 1720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1721 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 1721 schema +struct<> +-- !query 1721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1722 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 1722 schema +struct<> +-- !query 1722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1723 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 1723 schema +struct<> +-- !query 1723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1724 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 1724 schema +struct<> +-- !query 1724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1725 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 1725 schema +struct<> +-- !query 1725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1726 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 1726 schema +struct<> +-- !query 1726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1727 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1727 schema +struct<> +-- !query 1727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1728 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1728 schema +struct<> +-- !query 1728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1729 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 1729 schema +struct<> +-- !query 1729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1730 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 1730 schema +struct<> +-- !query 1730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1731 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 1731 schema +struct<> +-- !query 1731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1732 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 1732 schema +struct<> +-- !query 1732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1733 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 1733 schema +struct<> +-- !query 1733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1734 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 1734 schema +struct<> +-- !query 1734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1735 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 1735 schema +struct<> +-- !query 1735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1736 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 1736 schema +struct> +-- !query 1736 output +{1:"2017-12-11",2:"2"} + + +-- !query 1737 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 1737 schema +struct<> +-- !query 1737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1738 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 1738 schema +struct<> +-- !query 1738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1739 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1739 schema +struct> +-- !query 1739 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1740 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1740 schema +struct> +-- !query 1740 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 1741 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 1741 schema +struct<> +-- !query 1741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1742 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 1742 schema +struct<> +-- !query 1742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1743 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 1743 schema +struct<> +-- !query 1743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1744 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 1744 schema +struct<> +-- !query 1744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1745 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 1745 schema +struct<> +-- !query 1745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1746 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 1746 schema +struct<> +-- !query 1746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1747 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 1747 schema +struct<> +-- !query 1747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1748 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 1748 schema +struct> +-- !query 1748 output +{1:"2017-12-11",2:"2"} + + +-- !query 1749 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 1749 schema +struct<> +-- !query 1749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1750 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 1750 schema +struct<> +-- !query 1750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1751 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1751 schema +struct> +-- !query 1751 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1752 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1752 schema +struct> +-- !query 1752 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 1753 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 1753 schema +struct<> +-- !query 1753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1754 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 1754 schema +struct<> +-- !query 1754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1755 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 1755 schema +struct<> +-- !query 1755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1756 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 1756 schema +struct<> +-- !query 1756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1757 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 1757 schema +struct<> +-- !query 1757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1758 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 1758 schema +struct<> +-- !query 1758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1759 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 1759 schema +struct<> +-- !query 1759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1760 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 1760 schema +struct> +-- !query 1760 output +{1:"2017-12-11",2:"2"} + + +-- !query 1761 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 1761 schema +struct<> +-- !query 1761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1762 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 1762 schema +struct<> +-- !query 1762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1763 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1763 schema +struct> +-- !query 1763 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1764 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1764 schema +struct> +-- !query 1764 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 1765 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 1765 schema +struct<> +-- !query 1765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1766 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 1766 schema +struct<> +-- !query 1766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1767 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 1767 schema +struct<> +-- !query 1767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1768 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 1768 schema +struct<> +-- !query 1768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1769 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 1769 schema +struct<> +-- !query 1769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1770 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 1770 schema +struct<> +-- !query 1770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1771 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 1771 schema +struct<> +-- !query 1771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1772 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 1772 schema +struct> +-- !query 1772 output +{1:"2017-12-11",2:"2"} + + +-- !query 1773 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 1773 schema +struct<> +-- !query 1773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1774 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 1774 schema +struct<> +-- !query 1774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1775 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1775 schema +struct> +-- !query 1775 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1776 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1776 schema +struct> +-- !query 1776 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 1777 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 1777 schema +struct<> +-- !query 1777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1778 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 1778 schema +struct<> +-- !query 1778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1779 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 1779 schema +struct<> +-- !query 1779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1780 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 1780 schema +struct<> +-- !query 1780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1781 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 1781 schema +struct<> +-- !query 1781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1782 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 1782 schema +struct<> +-- !query 1782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1783 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 1783 schema +struct<> +-- !query 1783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1784 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 1784 schema +struct> +-- !query 1784 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 1785 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 1785 schema +struct<> +-- !query 1785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1786 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 1786 schema +struct<> +-- !query 1786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1787 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1787 schema +struct> +-- !query 1787 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 1788 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1788 schema +struct> +-- !query 1788 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 1789 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 1789 schema +struct<> +-- !query 1789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1790 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 1790 schema +struct<> +-- !query 1790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1791 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 1791 schema +struct<> +-- !query 1791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1792 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 1792 schema +struct<> +-- !query 1792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1793 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 1793 schema +struct<> +-- !query 1793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1794 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 1794 schema +struct<> +-- !query 1794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1795 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 1795 schema +struct<> +-- !query 1795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1796 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 1796 schema +struct> +-- !query 1796 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 1797 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 1797 schema +struct<> +-- !query 1797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1798 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 1798 schema +struct<> +-- !query 1798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1799 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1799 schema +struct> +-- !query 1799 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 1800 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1800 schema +struct> +-- !query 1800 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 1801 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 1801 schema +struct<> +-- !query 1801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1802 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 1802 schema +struct<> +-- !query 1802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1803 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 1803 schema +struct<> +-- !query 1803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1804 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 1804 schema +struct<> +-- !query 1804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1805 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 1805 schema +struct<> +-- !query 1805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1806 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 1806 schema +struct<> +-- !query 1806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1807 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 1807 schema +struct<> +-- !query 1807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1808 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 1808 schema +struct> +-- !query 1808 output +{1:"2017-12-11",2:"2"} + + +-- !query 1809 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 1809 schema +struct<> +-- !query 1809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1810 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 1810 schema +struct<> +-- !query 1810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1811 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1811 schema +struct> +-- !query 1811 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 1812 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1812 schema +struct> +-- !query 1812 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 1813 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 1813 schema +struct<> +-- !query 1813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 1814 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 1814 schema +struct<> +-- !query 1814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 1815 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 1815 schema +struct<> +-- !query 1815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 1816 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 1816 schema +struct<> +-- !query 1816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 1817 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 1817 schema +struct<> +-- !query 1817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 1818 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 1818 schema +struct<> +-- !query 1818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 1819 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 1819 schema +struct<> +-- !query 1819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 1820 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 1820 schema +struct> +-- !query 1820 output +{"1":"2017-12-11","2":"2"} + + +-- !query 1821 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 1821 schema +struct<> +-- !query 1821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 1822 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 1822 schema +struct<> +-- !query 1822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 1823 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1823 schema +struct> +-- !query 1823 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 1824 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1824 schema +struct> +-- !query 1824 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 1825 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 1825 schema +struct<> +-- !query 1825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1826 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 1826 schema +struct<> +-- !query 1826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1827 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 1827 schema +struct<> +-- !query 1827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1828 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 1828 schema +struct<> +-- !query 1828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1829 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 1829 schema +struct<> +-- !query 1829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1830 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 1830 schema +struct<> +-- !query 1830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1831 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 1831 schema +struct<> +-- !query 1831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1832 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 1832 schema +struct<> +-- !query 1832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1833 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 1833 schema +struct<> +-- !query 1833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1834 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 1834 schema +struct<> +-- !query 1834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1835 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1835 schema +struct<> +-- !query 1835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1836 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1836 schema +struct<> +-- !query 1836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1837 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 1837 schema +struct<> +-- !query 1837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1838 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 1838 schema +struct<> +-- !query 1838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1839 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 1839 schema +struct<> +-- !query 1839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1840 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 1840 schema +struct<> +-- !query 1840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1841 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 1841 schema +struct<> +-- !query 1841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1842 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 1842 schema +struct<> +-- !query 1842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1843 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 1843 schema +struct<> +-- !query 1843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1844 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 1844 schema +struct<> +-- !query 1844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1845 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 1845 schema +struct<> +-- !query 1845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1846 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 1846 schema +struct<> +-- !query 1846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1847 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1847 schema +struct<> +-- !query 1847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1848 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1848 schema +struct<> +-- !query 1848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1849 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 1849 schema +struct<> +-- !query 1849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1850 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 1850 schema +struct<> +-- !query 1850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1851 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 1851 schema +struct<> +-- !query 1851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1852 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 1852 schema +struct<> +-- !query 1852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1853 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 1853 schema +struct<> +-- !query 1853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1854 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 1854 schema +struct<> +-- !query 1854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1855 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 1855 schema +struct<> +-- !query 1855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1856 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 1856 schema +struct<> +-- !query 1856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1857 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 1857 schema +struct<> +-- !query 1857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1858 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 1858 schema +struct<> +-- !query 1858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1859 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1859 schema +struct<> +-- !query 1859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1860 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1860 schema +struct<> +-- !query 1860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1861 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 1861 schema +struct<> +-- !query 1861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1862 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 1862 schema +struct<> +-- !query 1862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1863 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 1863 schema +struct<> +-- !query 1863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1864 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 1864 schema +struct<> +-- !query 1864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1865 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 1865 schema +struct<> +-- !query 1865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1866 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 1866 schema +struct<> +-- !query 1866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1867 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 1867 schema +struct<> +-- !query 1867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1868 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 1868 schema +struct<> +-- !query 1868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1869 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 1869 schema +struct<> +-- !query 1869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1870 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 1870 schema +struct<> +-- !query 1870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1871 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1871 schema +struct<> +-- !query 1871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1872 +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1872 schema +struct<> +-- !query 1872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1873 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 1873 schema +struct> +-- !query 1873 output +{1:1,2:2} + + +-- !query 1874 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 1874 schema +struct> +-- !query 1874 output +{1:1,2:2} + + +-- !query 1875 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 1875 schema +struct> +-- !query 1875 output +{1:1,2:2} + + +-- !query 1876 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 1876 schema +struct> +-- !query 1876 output +{1:1,2:2} + + +-- !query 1877 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 1877 schema +struct> +-- !query 1877 output +{1:1.0,2:2.0} + + +-- !query 1878 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 1878 schema +struct> +-- !query 1878 output +{1:1.0,2:2.0} + + +-- !query 1879 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 1879 schema +struct> +-- !query 1879 output +{1:1,2:2} + + +-- !query 1880 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 1880 schema +struct> +-- !query 1880 output +{1:"1",2:"2"} + + +-- !query 1881 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 1881 schema +struct<> +-- !query 1881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1882 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 1882 schema +struct<> +-- !query 1882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1883 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1883 schema +struct<> +-- !query 1883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1884 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1884 schema +struct<> +-- !query 1884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1885 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 1885 schema +struct> +-- !query 1885 output +{1:1,2:2} + + +-- !query 1886 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 1886 schema +struct> +-- !query 1886 output +{1:1,2:2} + + +-- !query 1887 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 1887 schema +struct> +-- !query 1887 output +{1:1,2:2} + + +-- !query 1888 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 1888 schema +struct> +-- !query 1888 output +{1:1,2:2} + + +-- !query 1889 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 1889 schema +struct> +-- !query 1889 output +{1:1.0,2:2.0} + + +-- !query 1890 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 1890 schema +struct> +-- !query 1890 output +{1:1.0,2:2.0} + + +-- !query 1891 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 1891 schema +struct> +-- !query 1891 output +{1:1,2:2} + + +-- !query 1892 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 1892 schema +struct> +-- !query 1892 output +{1:"1",2:"2"} + + +-- !query 1893 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 1893 schema +struct<> +-- !query 1893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1894 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 1894 schema +struct<> +-- !query 1894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1895 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1895 schema +struct<> +-- !query 1895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1896 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1896 schema +struct<> +-- !query 1896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1897 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 1897 schema +struct> +-- !query 1897 output +{1:1,2:2} + + +-- !query 1898 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 1898 schema +struct> +-- !query 1898 output +{1:1,2:2} + + +-- !query 1899 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 1899 schema +struct> +-- !query 1899 output +{1:1,2:2} + + +-- !query 1900 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 1900 schema +struct> +-- !query 1900 output +{1:1,2:2} + + +-- !query 1901 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 1901 schema +struct> +-- !query 1901 output +{1:1.0,2:2.0} + + +-- !query 1902 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 1902 schema +struct> +-- !query 1902 output +{1:1.0,2:2.0} + + +-- !query 1903 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 1903 schema +struct> +-- !query 1903 output +{1:1,2:2} + + +-- !query 1904 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 1904 schema +struct> +-- !query 1904 output +{1:"1",2:"2"} + + +-- !query 1905 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 1905 schema +struct<> +-- !query 1905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1906 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 1906 schema +struct<> +-- !query 1906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1907 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1907 schema +struct<> +-- !query 1907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1908 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1908 schema +struct<> +-- !query 1908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1909 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 1909 schema +struct> +-- !query 1909 output +{1:1,2:2} + + +-- !query 1910 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 1910 schema +struct> +-- !query 1910 output +{1:1,2:2} + + +-- !query 1911 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 1911 schema +struct> +-- !query 1911 output +{1:1,2:2} + + +-- !query 1912 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 1912 schema +struct> +-- !query 1912 output +{1:1,2:2} + + +-- !query 1913 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 1913 schema +struct> +-- !query 1913 output +{1:1.0,2:2.0} + + +-- !query 1914 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 1914 schema +struct> +-- !query 1914 output +{1:1.0,2:2.0} + + +-- !query 1915 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 1915 schema +struct> +-- !query 1915 output +{1:1,2:2} + + +-- !query 1916 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 1916 schema +struct> +-- !query 1916 output +{1:"1",2:"2"} + + +-- !query 1917 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 1917 schema +struct<> +-- !query 1917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1918 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 1918 schema +struct<> +-- !query 1918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1919 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1919 schema +struct<> +-- !query 1919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1920 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1920 schema +struct<> +-- !query 1920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1921 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 1921 schema +struct> +-- !query 1921 output +{1.0:1,2.0:2} + + +-- !query 1922 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 1922 schema +struct> +-- !query 1922 output +{1.0:1,2.0:2} + + +-- !query 1923 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 1923 schema +struct> +-- !query 1923 output +{1.0:1,2.0:2} + + +-- !query 1924 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 1924 schema +struct> +-- !query 1924 output +{1.0:1,2.0:2} + + +-- !query 1925 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 1925 schema +struct> +-- !query 1925 output +{1.0:1.0,2.0:2.0} + + +-- !query 1926 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 1926 schema +struct> +-- !query 1926 output +{1.0:1.0,2.0:2.0} + + +-- !query 1927 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 1927 schema +struct> +-- !query 1927 output +{1.0:1,2.0:2} + + +-- !query 1928 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 1928 schema +struct> +-- !query 1928 output +{1.0:"1",2.0:"2"} + + +-- !query 1929 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 1929 schema +struct<> +-- !query 1929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1930 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 1930 schema +struct<> +-- !query 1930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1931 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1931 schema +struct<> +-- !query 1931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1932 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1932 schema +struct<> +-- !query 1932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1933 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 1933 schema +struct> +-- !query 1933 output +{1.0:1,2.0:2} + + +-- !query 1934 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 1934 schema +struct> +-- !query 1934 output +{1.0:1,2.0:2} + + +-- !query 1935 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 1935 schema +struct> +-- !query 1935 output +{1.0:1,2.0:2} + + +-- !query 1936 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 1936 schema +struct> +-- !query 1936 output +{1.0:1,2.0:2} + + +-- !query 1937 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 1937 schema +struct> +-- !query 1937 output +{1.0:1.0,2.0:2.0} + + +-- !query 1938 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 1938 schema +struct> +-- !query 1938 output +{1.0:1.0,2.0:2.0} + + +-- !query 1939 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 1939 schema +struct> +-- !query 1939 output +{1.0:1,2.0:2} + + +-- !query 1940 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 1940 schema +struct> +-- !query 1940 output +{1.0:"1",2.0:"2"} + + +-- !query 1941 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 1941 schema +struct<> +-- !query 1941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1942 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 1942 schema +struct<> +-- !query 1942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1943 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1943 schema +struct<> +-- !query 1943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1944 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1944 schema +struct<> +-- !query 1944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1945 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 1945 schema +struct> +-- !query 1945 output +{1:1,2:2} + + +-- !query 1946 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 1946 schema +struct> +-- !query 1946 output +{1:1,2:2} + + +-- !query 1947 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 1947 schema +struct> +-- !query 1947 output +{1:1,2:2} + + +-- !query 1948 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 1948 schema +struct> +-- !query 1948 output +{1:1,2:2} + + +-- !query 1949 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 1949 schema +struct> +-- !query 1949 output +{1:1.0,2:2.0} + + +-- !query 1950 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 1950 schema +struct> +-- !query 1950 output +{1:1.0,2:2.0} + + +-- !query 1951 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 1951 schema +struct> +-- !query 1951 output +{1:1,2:2} + + +-- !query 1952 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 1952 schema +struct> +-- !query 1952 output +{1:"1",2:"2"} + + +-- !query 1953 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 1953 schema +struct<> +-- !query 1953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1954 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 1954 schema +struct<> +-- !query 1954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1955 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1955 schema +struct<> +-- !query 1955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1956 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1956 schema +struct<> +-- !query 1956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1957 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 1957 schema +struct> +-- !query 1957 output +{"1":1,"2":2} + + +-- !query 1958 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 1958 schema +struct> +-- !query 1958 output +{"1":1,"2":2} + + +-- !query 1959 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 1959 schema +struct> +-- !query 1959 output +{"1":1,"2":2} + + +-- !query 1960 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 1960 schema +struct> +-- !query 1960 output +{"1":1,"2":2} + + +-- !query 1961 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 1961 schema +struct> +-- !query 1961 output +{"1":1.0,"2":2.0} + + +-- !query 1962 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 1962 schema +struct> +-- !query 1962 output +{"1":1.0,"2":2.0} + + +-- !query 1963 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 1963 schema +struct> +-- !query 1963 output +{"1":1,"2":2} + + +-- !query 1964 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 1964 schema +struct> +-- !query 1964 output +{"1":"1","2":"2"} + + +-- !query 1965 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 1965 schema +struct<> +-- !query 1965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 1966 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 1966 schema +struct<> +-- !query 1966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 1967 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1967 schema +struct<> +-- !query 1967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 1968 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1968 schema +struct<> +-- !query 1968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 1969 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 1969 schema +struct<> +-- !query 1969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1970 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 1970 schema +struct<> +-- !query 1970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1971 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 1971 schema +struct<> +-- !query 1971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1972 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 1972 schema +struct<> +-- !query 1972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1973 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 1973 schema +struct<> +-- !query 1973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1974 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 1974 schema +struct<> +-- !query 1974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1975 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 1975 schema +struct<> +-- !query 1975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1976 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 1976 schema +struct<> +-- !query 1976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1977 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 1977 schema +struct<> +-- !query 1977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1978 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 1978 schema +struct<> +-- !query 1978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1979 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1979 schema +struct<> +-- !query 1979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1980 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1980 schema +struct<> +-- !query 1980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 1981 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 1981 schema +struct<> +-- !query 1981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1982 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 1982 schema +struct<> +-- !query 1982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1983 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 1983 schema +struct<> +-- !query 1983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1984 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 1984 schema +struct<> +-- !query 1984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1985 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 1985 schema +struct<> +-- !query 1985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1986 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 1986 schema +struct<> +-- !query 1986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1987 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 1987 schema +struct<> +-- !query 1987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1988 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 1988 schema +struct<> +-- !query 1988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1989 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 1989 schema +struct<> +-- !query 1989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1990 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 1990 schema +struct<> +-- !query 1990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1991 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 1991 schema +struct<> +-- !query 1991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1992 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 1992 schema +struct<> +-- !query 1992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 1993 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 1993 schema +struct<> +-- !query 1993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 1994 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 1994 schema +struct<> +-- !query 1994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 1995 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 1995 schema +struct<> +-- !query 1995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 1996 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 1996 schema +struct<> +-- !query 1996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 1997 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 1997 schema +struct<> +-- !query 1997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 1998 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 1998 schema +struct<> +-- !query 1998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 1999 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 1999 schema +struct<> +-- !query 1999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2000 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 2000 schema +struct<> +-- !query 2000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2001 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 2001 schema +struct<> +-- !query 2001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2002 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 2002 schema +struct<> +-- !query 2002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2003 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2003 schema +struct<> +-- !query 2003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2004 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2004 schema +struct<> +-- !query 2004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2005 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 2005 schema +struct<> +-- !query 2005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2006 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 2006 schema +struct<> +-- !query 2006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2007 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 2007 schema +struct<> +-- !query 2007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2008 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 2008 schema +struct<> +-- !query 2008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2009 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 2009 schema +struct<> +-- !query 2009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2010 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 2010 schema +struct<> +-- !query 2010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2011 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 2011 schema +struct<> +-- !query 2011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2012 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 2012 schema +struct<> +-- !query 2012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2013 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 2013 schema +struct<> +-- !query 2013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2014 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 2014 schema +struct<> +-- !query 2014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2015 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2015 schema +struct<> +-- !query 2015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2016 +SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2016 schema +struct<> +-- !query 2016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2017 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 2017 schema +struct> +-- !query 2017 output +{1:1,2:2} + + +-- !query 2018 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 2018 schema +struct> +-- !query 2018 output +{1:1,2:2} + + +-- !query 2019 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 2019 schema +struct> +-- !query 2019 output +{1:1,2:2} + + +-- !query 2020 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 2020 schema +struct> +-- !query 2020 output +{1:1,2:2} + + +-- !query 2021 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 2021 schema +struct> +-- !query 2021 output +{1:1.0,2:2.0} + + +-- !query 2022 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 2022 schema +struct> +-- !query 2022 output +{1:1.0,2:2.0} + + +-- !query 2023 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 2023 schema +struct> +-- !query 2023 output +{1:1,2:2} + + +-- !query 2024 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 2024 schema +struct> +-- !query 2024 output +{1:"1",2:"2"} + + +-- !query 2025 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 2025 schema +struct<> +-- !query 2025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2026 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 2026 schema +struct<> +-- !query 2026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2027 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2027 schema +struct<> +-- !query 2027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2028 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2028 schema +struct<> +-- !query 2028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2029 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 2029 schema +struct> +-- !query 2029 output +{1:1,2:2} + + +-- !query 2030 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 2030 schema +struct> +-- !query 2030 output +{1:1,2:2} + + +-- !query 2031 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 2031 schema +struct> +-- !query 2031 output +{1:1,2:2} + + +-- !query 2032 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 2032 schema +struct> +-- !query 2032 output +{1:1,2:2} + + +-- !query 2033 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 2033 schema +struct> +-- !query 2033 output +{1:1.0,2:2.0} + + +-- !query 2034 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 2034 schema +struct> +-- !query 2034 output +{1:1.0,2:2.0} + + +-- !query 2035 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 2035 schema +struct> +-- !query 2035 output +{1:1,2:2} + + +-- !query 2036 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 2036 schema +struct> +-- !query 2036 output +{1:"1",2:"2"} + + +-- !query 2037 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 2037 schema +struct<> +-- !query 2037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2038 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 2038 schema +struct<> +-- !query 2038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2039 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2039 schema +struct<> +-- !query 2039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2040 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2040 schema +struct<> +-- !query 2040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2041 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 2041 schema +struct> +-- !query 2041 output +{1:1,2:2} + + +-- !query 2042 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 2042 schema +struct> +-- !query 2042 output +{1:1,2:2} + + +-- !query 2043 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 2043 schema +struct> +-- !query 2043 output +{1:1,2:2} + + +-- !query 2044 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 2044 schema +struct> +-- !query 2044 output +{1:1,2:2} + + +-- !query 2045 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 2045 schema +struct> +-- !query 2045 output +{1:1.0,2:2.0} + + +-- !query 2046 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 2046 schema +struct> +-- !query 2046 output +{1:1.0,2:2.0} + + +-- !query 2047 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 2047 schema +struct> +-- !query 2047 output +{1:1,2:2} + + +-- !query 2048 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 2048 schema +struct> +-- !query 2048 output +{1:"1",2:"2"} + + +-- !query 2049 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 2049 schema +struct<> +-- !query 2049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2050 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 2050 schema +struct<> +-- !query 2050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2051 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2051 schema +struct<> +-- !query 2051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2052 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2052 schema +struct<> +-- !query 2052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2053 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 2053 schema +struct> +-- !query 2053 output +{1:1,2:2} + + +-- !query 2054 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 2054 schema +struct> +-- !query 2054 output +{1:1,2:2} + + +-- !query 2055 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 2055 schema +struct> +-- !query 2055 output +{1:1,2:2} + + +-- !query 2056 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 2056 schema +struct> +-- !query 2056 output +{1:1,2:2} + + +-- !query 2057 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 2057 schema +struct> +-- !query 2057 output +{1:1.0,2:2.0} + + +-- !query 2058 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 2058 schema +struct> +-- !query 2058 output +{1:1.0,2:2.0} + + +-- !query 2059 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 2059 schema +struct> +-- !query 2059 output +{1:1,2:2} + + +-- !query 2060 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 2060 schema +struct> +-- !query 2060 output +{1:"1",2:"2"} + + +-- !query 2061 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 2061 schema +struct<> +-- !query 2061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2062 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 2062 schema +struct<> +-- !query 2062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2063 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2063 schema +struct<> +-- !query 2063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2064 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2064 schema +struct<> +-- !query 2064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2065 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 2065 schema +struct> +-- !query 2065 output +{1.0:1,2.0:2} + + +-- !query 2066 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 2066 schema +struct> +-- !query 2066 output +{1.0:1,2.0:2} + + +-- !query 2067 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 2067 schema +struct> +-- !query 2067 output +{1.0:1,2.0:2} + + +-- !query 2068 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 2068 schema +struct> +-- !query 2068 output +{1.0:1,2.0:2} + + +-- !query 2069 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 2069 schema +struct> +-- !query 2069 output +{1.0:1.0,2.0:2.0} + + +-- !query 2070 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 2070 schema +struct> +-- !query 2070 output +{1.0:1.0,2.0:2.0} + + +-- !query 2071 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 2071 schema +struct> +-- !query 2071 output +{1.0:1,2.0:2} + + +-- !query 2072 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 2072 schema +struct> +-- !query 2072 output +{1.0:"1",2.0:"2"} + + +-- !query 2073 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 2073 schema +struct<> +-- !query 2073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2074 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 2074 schema +struct<> +-- !query 2074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2075 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2075 schema +struct<> +-- !query 2075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2076 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2076 schema +struct<> +-- !query 2076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2077 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 2077 schema +struct> +-- !query 2077 output +{1.0:1,2.0:2} + + +-- !query 2078 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 2078 schema +struct> +-- !query 2078 output +{1.0:1,2.0:2} + + +-- !query 2079 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 2079 schema +struct> +-- !query 2079 output +{1.0:1,2.0:2} + + +-- !query 2080 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 2080 schema +struct> +-- !query 2080 output +{1.0:1,2.0:2} + + +-- !query 2081 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 2081 schema +struct> +-- !query 2081 output +{1.0:1.0,2.0:2.0} + + +-- !query 2082 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 2082 schema +struct> +-- !query 2082 output +{1.0:1.0,2.0:2.0} + + +-- !query 2083 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 2083 schema +struct> +-- !query 2083 output +{1.0:1,2.0:2} + + +-- !query 2084 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 2084 schema +struct> +-- !query 2084 output +{1.0:"1",2.0:"2"} + + +-- !query 2085 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 2085 schema +struct<> +-- !query 2085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2086 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 2086 schema +struct<> +-- !query 2086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2087 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2087 schema +struct<> +-- !query 2087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2088 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2088 schema +struct<> +-- !query 2088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2089 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 2089 schema +struct> +-- !query 2089 output +{1:1,2:2} + + +-- !query 2090 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 2090 schema +struct> +-- !query 2090 output +{1:1,2:2} + + +-- !query 2091 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 2091 schema +struct> +-- !query 2091 output +{1:1,2:2} + + +-- !query 2092 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 2092 schema +struct> +-- !query 2092 output +{1:1,2:2} + + +-- !query 2093 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 2093 schema +struct> +-- !query 2093 output +{1:1.0,2:2.0} + + +-- !query 2094 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 2094 schema +struct> +-- !query 2094 output +{1:1.0,2:2.0} + + +-- !query 2095 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 2095 schema +struct> +-- !query 2095 output +{1:1,2:2} + + +-- !query 2096 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 2096 schema +struct> +-- !query 2096 output +{1:"1",2:"2"} + + +-- !query 2097 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 2097 schema +struct<> +-- !query 2097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2098 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 2098 schema +struct<> +-- !query 2098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2099 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2099 schema +struct<> +-- !query 2099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2100 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2100 schema +struct<> +-- !query 2100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2101 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 2101 schema +struct> +-- !query 2101 output +{"1":1,"2":2} + + +-- !query 2102 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 2102 schema +struct> +-- !query 2102 output +{"1":1,"2":2} + + +-- !query 2103 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 2103 schema +struct> +-- !query 2103 output +{"1":1,"2":2} + + +-- !query 2104 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 2104 schema +struct> +-- !query 2104 output +{"1":1,"2":2} + + +-- !query 2105 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 2105 schema +struct> +-- !query 2105 output +{"1":1.0,"2":2.0} + + +-- !query 2106 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 2106 schema +struct> +-- !query 2106 output +{"1":1.0,"2":2.0} + + +-- !query 2107 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 2107 schema +struct> +-- !query 2107 output +{"1":1,"2":2} + + +-- !query 2108 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 2108 schema +struct> +-- !query 2108 output +{"1":"1","2":"2"} + + +-- !query 2109 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 2109 schema +struct<> +-- !query 2109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2110 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 2110 schema +struct<> +-- !query 2110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2111 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2111 schema +struct<> +-- !query 2111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2112 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2112 schema +struct<> +-- !query 2112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2113 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 2113 schema +struct<> +-- !query 2113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2114 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 2114 schema +struct<> +-- !query 2114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2115 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 2115 schema +struct<> +-- !query 2115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2116 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 2116 schema +struct<> +-- !query 2116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2117 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 2117 schema +struct<> +-- !query 2117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2118 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 2118 schema +struct<> +-- !query 2118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2119 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 2119 schema +struct<> +-- !query 2119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2120 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 2120 schema +struct<> +-- !query 2120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2121 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 2121 schema +struct<> +-- !query 2121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2122 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 2122 schema +struct<> +-- !query 2122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2123 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2123 schema +struct<> +-- !query 2123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2124 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2124 schema +struct<> +-- !query 2124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2125 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 2125 schema +struct<> +-- !query 2125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2126 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 2126 schema +struct<> +-- !query 2126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2127 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 2127 schema +struct<> +-- !query 2127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2128 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 2128 schema +struct<> +-- !query 2128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2129 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 2129 schema +struct<> +-- !query 2129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2130 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 2130 schema +struct<> +-- !query 2130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2131 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 2131 schema +struct<> +-- !query 2131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2132 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 2132 schema +struct<> +-- !query 2132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2133 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 2133 schema +struct<> +-- !query 2133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2134 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 2134 schema +struct<> +-- !query 2134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2135 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2135 schema +struct<> +-- !query 2135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2136 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2136 schema +struct<> +-- !query 2136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2137 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 2137 schema +struct<> +-- !query 2137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2138 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 2138 schema +struct<> +-- !query 2138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2139 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 2139 schema +struct<> +-- !query 2139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2140 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 2140 schema +struct<> +-- !query 2140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2141 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 2141 schema +struct<> +-- !query 2141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2142 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 2142 schema +struct<> +-- !query 2142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2143 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 2143 schema +struct<> +-- !query 2143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2144 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 2144 schema +struct<> +-- !query 2144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2145 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 2145 schema +struct<> +-- !query 2145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2146 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 2146 schema +struct<> +-- !query 2146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2147 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2147 schema +struct<> +-- !query 2147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2148 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2148 schema +struct<> +-- !query 2148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2149 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 2149 schema +struct<> +-- !query 2149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2150 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 2150 schema +struct<> +-- !query 2150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2151 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 2151 schema +struct<> +-- !query 2151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2152 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 2152 schema +struct<> +-- !query 2152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2153 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 2153 schema +struct<> +-- !query 2153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2154 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 2154 schema +struct<> +-- !query 2154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2155 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 2155 schema +struct<> +-- !query 2155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2156 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 2156 schema +struct<> +-- !query 2156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2157 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 2157 schema +struct<> +-- !query 2157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2158 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 2158 schema +struct<> +-- !query 2158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2159 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2159 schema +struct<> +-- !query 2159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2160 +SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2160 schema +struct<> +-- !query 2160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2161 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 2161 schema +struct> +-- !query 2161 output +{1:1,2:2} + + +-- !query 2162 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 2162 schema +struct> +-- !query 2162 output +{1:1,2:2} + + +-- !query 2163 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 2163 schema +struct> +-- !query 2163 output +{1:1,2:2} + + +-- !query 2164 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 2164 schema +struct> +-- !query 2164 output +{1:1,2:2} + + +-- !query 2165 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 2165 schema +struct> +-- !query 2165 output +{1:1.0,2:2.0} + + +-- !query 2166 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 2166 schema +struct> +-- !query 2166 output +{1:1.0,2:2.0} + + +-- !query 2167 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 2167 schema +struct> +-- !query 2167 output +{1:1,2:2} + + +-- !query 2168 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 2168 schema +struct> +-- !query 2168 output +{1:"1",2:"2"} + + +-- !query 2169 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 2169 schema +struct<> +-- !query 2169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2170 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 2170 schema +struct<> +-- !query 2170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2171 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2171 schema +struct<> +-- !query 2171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2172 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2172 schema +struct<> +-- !query 2172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2173 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 2173 schema +struct> +-- !query 2173 output +{1:1,2:2} + + +-- !query 2174 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 2174 schema +struct> +-- !query 2174 output +{1:1,2:2} + + +-- !query 2175 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 2175 schema +struct> +-- !query 2175 output +{1:1,2:2} + + +-- !query 2176 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 2176 schema +struct> +-- !query 2176 output +{1:1,2:2} + + +-- !query 2177 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 2177 schema +struct> +-- !query 2177 output +{1:1.0,2:2.0} + + +-- !query 2178 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 2178 schema +struct> +-- !query 2178 output +{1:1.0,2:2.0} + + +-- !query 2179 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 2179 schema +struct> +-- !query 2179 output +{1:1,2:2} + + +-- !query 2180 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 2180 schema +struct> +-- !query 2180 output +{1:"1",2:"2"} + + +-- !query 2181 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 2181 schema +struct<> +-- !query 2181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2182 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 2182 schema +struct<> +-- !query 2182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2183 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2183 schema +struct<> +-- !query 2183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2184 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2184 schema +struct<> +-- !query 2184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2185 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 2185 schema +struct> +-- !query 2185 output +{1:1,2:2} + + +-- !query 2186 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 2186 schema +struct> +-- !query 2186 output +{1:1,2:2} + + +-- !query 2187 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 2187 schema +struct> +-- !query 2187 output +{1:1,2:2} + + +-- !query 2188 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 2188 schema +struct> +-- !query 2188 output +{1:1,2:2} + + +-- !query 2189 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 2189 schema +struct> +-- !query 2189 output +{1:1.0,2:2.0} + + +-- !query 2190 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 2190 schema +struct> +-- !query 2190 output +{1:1.0,2:2.0} + + +-- !query 2191 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 2191 schema +struct> +-- !query 2191 output +{1:1,2:2} + + +-- !query 2192 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 2192 schema +struct> +-- !query 2192 output +{1:"1",2:"2"} + + +-- !query 2193 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 2193 schema +struct<> +-- !query 2193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2194 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 2194 schema +struct<> +-- !query 2194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2195 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2195 schema +struct<> +-- !query 2195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2196 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2196 schema +struct<> +-- !query 2196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2197 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 2197 schema +struct> +-- !query 2197 output +{1:1,2:2} + + +-- !query 2198 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 2198 schema +struct> +-- !query 2198 output +{1:1,2:2} + + +-- !query 2199 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 2199 schema +struct> +-- !query 2199 output +{1:1,2:2} + + +-- !query 2200 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 2200 schema +struct> +-- !query 2200 output +{1:1,2:2} + + +-- !query 2201 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 2201 schema +struct> +-- !query 2201 output +{1:1.0,2:2.0} + + +-- !query 2202 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 2202 schema +struct> +-- !query 2202 output +{1:1.0,2:2.0} + + +-- !query 2203 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 2203 schema +struct> +-- !query 2203 output +{1:1,2:2} + + +-- !query 2204 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 2204 schema +struct> +-- !query 2204 output +{1:"1",2:"2"} + + +-- !query 2205 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 2205 schema +struct<> +-- !query 2205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2206 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 2206 schema +struct<> +-- !query 2206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2207 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2207 schema +struct<> +-- !query 2207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2208 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2208 schema +struct<> +-- !query 2208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2209 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 2209 schema +struct> +-- !query 2209 output +{1.0:1,2.0:2} + + +-- !query 2210 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 2210 schema +struct> +-- !query 2210 output +{1.0:1,2.0:2} + + +-- !query 2211 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 2211 schema +struct> +-- !query 2211 output +{1.0:1,2.0:2} + + +-- !query 2212 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 2212 schema +struct> +-- !query 2212 output +{1.0:1,2.0:2} + + +-- !query 2213 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 2213 schema +struct> +-- !query 2213 output +{1.0:1.0,2.0:2.0} + + +-- !query 2214 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 2214 schema +struct> +-- !query 2214 output +{1.0:1.0,2.0:2.0} + + +-- !query 2215 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 2215 schema +struct> +-- !query 2215 output +{1.0:1,2.0:2} + + +-- !query 2216 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 2216 schema +struct> +-- !query 2216 output +{1.0:"1",2.0:"2"} + + +-- !query 2217 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 2217 schema +struct<> +-- !query 2217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2218 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 2218 schema +struct<> +-- !query 2218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2219 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2219 schema +struct<> +-- !query 2219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2220 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2220 schema +struct<> +-- !query 2220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2221 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 2221 schema +struct> +-- !query 2221 output +{1.0:1,2.0:2} + + +-- !query 2222 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 2222 schema +struct> +-- !query 2222 output +{1.0:1,2.0:2} + + +-- !query 2223 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 2223 schema +struct> +-- !query 2223 output +{1.0:1,2.0:2} + + +-- !query 2224 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 2224 schema +struct> +-- !query 2224 output +{1.0:1,2.0:2} + + +-- !query 2225 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 2225 schema +struct> +-- !query 2225 output +{1.0:1.0,2.0:2.0} + + +-- !query 2226 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 2226 schema +struct> +-- !query 2226 output +{1.0:1.0,2.0:2.0} + + +-- !query 2227 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 2227 schema +struct> +-- !query 2227 output +{1.0:1,2.0:2} + + +-- !query 2228 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 2228 schema +struct> +-- !query 2228 output +{1.0:"1",2.0:"2"} + + +-- !query 2229 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 2229 schema +struct<> +-- !query 2229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2230 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 2230 schema +struct<> +-- !query 2230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2231 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2231 schema +struct<> +-- !query 2231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2232 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2232 schema +struct<> +-- !query 2232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2233 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 2233 schema +struct> +-- !query 2233 output +{1:1,2:2} + + +-- !query 2234 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 2234 schema +struct> +-- !query 2234 output +{1:1,2:2} + + +-- !query 2235 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 2235 schema +struct> +-- !query 2235 output +{1:1,2:2} + + +-- !query 2236 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 2236 schema +struct> +-- !query 2236 output +{1:1,2:2} + + +-- !query 2237 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 2237 schema +struct> +-- !query 2237 output +{1:1.0,2:2.0} + + +-- !query 2238 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 2238 schema +struct> +-- !query 2238 output +{1:1.0,2:2.0} + + +-- !query 2239 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 2239 schema +struct> +-- !query 2239 output +{1:1,2:2} + + +-- !query 2240 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 2240 schema +struct> +-- !query 2240 output +{1:"1",2:"2"} + + +-- !query 2241 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 2241 schema +struct<> +-- !query 2241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2242 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 2242 schema +struct<> +-- !query 2242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2243 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2243 schema +struct<> +-- !query 2243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2244 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2244 schema +struct<> +-- !query 2244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2245 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 2245 schema +struct> +-- !query 2245 output +{"1":1,"2":2} + + +-- !query 2246 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 2246 schema +struct> +-- !query 2246 output +{"1":1,"2":2} + + +-- !query 2247 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 2247 schema +struct> +-- !query 2247 output +{"1":1,"2":2} + + +-- !query 2248 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 2248 schema +struct> +-- !query 2248 output +{"1":1,"2":2} + + +-- !query 2249 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 2249 schema +struct> +-- !query 2249 output +{"1":1.0,"2":2.0} + + +-- !query 2250 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 2250 schema +struct> +-- !query 2250 output +{"1":1.0,"2":2.0} + + +-- !query 2251 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 2251 schema +struct> +-- !query 2251 output +{"1":1,"2":2} + + +-- !query 2252 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 2252 schema +struct> +-- !query 2252 output +{"1":"1","2":"2"} + + +-- !query 2253 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 2253 schema +struct<> +-- !query 2253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 2254 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 2254 schema +struct<> +-- !query 2254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 2255 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2255 schema +struct<> +-- !query 2255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 2256 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2256 schema +struct<> +-- !query 2256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 2257 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 2257 schema +struct<> +-- !query 2257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2258 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 2258 schema +struct<> +-- !query 2258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2259 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 2259 schema +struct<> +-- !query 2259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2260 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 2260 schema +struct<> +-- !query 2260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2261 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 2261 schema +struct<> +-- !query 2261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2262 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 2262 schema +struct<> +-- !query 2262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2263 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 2263 schema +struct<> +-- !query 2263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2264 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 2264 schema +struct<> +-- !query 2264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2265 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 2265 schema +struct<> +-- !query 2265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2266 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 2266 schema +struct<> +-- !query 2266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2267 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2267 schema +struct<> +-- !query 2267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2268 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2268 schema +struct<> +-- !query 2268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2269 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 2269 schema +struct<> +-- !query 2269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2270 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 2270 schema +struct<> +-- !query 2270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2271 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 2271 schema +struct<> +-- !query 2271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2272 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 2272 schema +struct<> +-- !query 2272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2273 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 2273 schema +struct<> +-- !query 2273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2274 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 2274 schema +struct<> +-- !query 2274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2275 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 2275 schema +struct<> +-- !query 2275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2276 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 2276 schema +struct<> +-- !query 2276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2277 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 2277 schema +struct<> +-- !query 2277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2278 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 2278 schema +struct<> +-- !query 2278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2279 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2279 schema +struct<> +-- !query 2279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2280 +SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2280 schema +struct<> +-- !query 2280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2281 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 2281 schema +struct<> +-- !query 2281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2282 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 2282 schema +struct<> +-- !query 2282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2283 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 2283 schema +struct<> +-- !query 2283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2284 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 2284 schema +struct<> +-- !query 2284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2285 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 2285 schema +struct<> +-- !query 2285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2286 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 2286 schema +struct<> +-- !query 2286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2287 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 2287 schema +struct<> +-- !query 2287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2288 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 2288 schema +struct<> +-- !query 2288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2289 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 2289 schema +struct<> +-- !query 2289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2290 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 2290 schema +struct<> +-- !query 2290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2291 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2291 schema +struct<> +-- !query 2291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2292 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2292 schema +struct<> +-- !query 2292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2293 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 2293 schema +struct<> +-- !query 2293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2294 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 2294 schema +struct<> +-- !query 2294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2295 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 2295 schema +struct<> +-- !query 2295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2296 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 2296 schema +struct<> +-- !query 2296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2297 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 2297 schema +struct<> +-- !query 2297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2298 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 2298 schema +struct<> +-- !query 2298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2299 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 2299 schema +struct<> +-- !query 2299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2300 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 2300 schema +struct<> +-- !query 2300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2301 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 2301 schema +struct<> +-- !query 2301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2302 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 2302 schema +struct<> +-- !query 2302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2303 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2303 schema +struct<> +-- !query 2303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2304 +SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2304 schema +struct<> +-- !query 2304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2305 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 2305 schema +struct> +-- !query 2305 output +{1:1,2:2} + + +-- !query 2306 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 2306 schema +struct> +-- !query 2306 output +{1:1,2:2} + + +-- !query 2307 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 2307 schema +struct> +-- !query 2307 output +{1:1,2:2} + + +-- !query 2308 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 2308 schema +struct> +-- !query 2308 output +{1:1,2:2} + + +-- !query 2309 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 2309 schema +struct> +-- !query 2309 output +{1:1.0,2:2.0} + + +-- !query 2310 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 2310 schema +struct> +-- !query 2310 output +{1:1.0,2:2.0} + + +-- !query 2311 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 2311 schema +struct> +-- !query 2311 output +{1:1,2:2} + + +-- !query 2312 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 2312 schema +struct> +-- !query 2312 output +{1:"1",2:"2"} + + +-- !query 2313 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 2313 schema +struct<> +-- !query 2313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2314 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 2314 schema +struct<> +-- !query 2314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2315 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2315 schema +struct<> +-- !query 2315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2316 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2316 schema +struct<> +-- !query 2316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2317 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 2317 schema +struct> +-- !query 2317 output +{1:1,2:2} + + +-- !query 2318 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 2318 schema +struct> +-- !query 2318 output +{1:1,2:2} + + +-- !query 2319 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 2319 schema +struct> +-- !query 2319 output +{1:1,2:2} + + +-- !query 2320 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 2320 schema +struct> +-- !query 2320 output +{1:1,2:2} + + +-- !query 2321 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 2321 schema +struct> +-- !query 2321 output +{1:1.0,2:2.0} + + +-- !query 2322 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 2322 schema +struct> +-- !query 2322 output +{1:1.0,2:2.0} + + +-- !query 2323 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 2323 schema +struct> +-- !query 2323 output +{1:1,2:2} + + +-- !query 2324 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 2324 schema +struct> +-- !query 2324 output +{1:"1",2:"2"} + + +-- !query 2325 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 2325 schema +struct<> +-- !query 2325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2326 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 2326 schema +struct<> +-- !query 2326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2327 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2327 schema +struct<> +-- !query 2327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2328 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2328 schema +struct<> +-- !query 2328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2329 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 2329 schema +struct> +-- !query 2329 output +{1:1,2:2} + + +-- !query 2330 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 2330 schema +struct> +-- !query 2330 output +{1:1,2:2} + + +-- !query 2331 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 2331 schema +struct> +-- !query 2331 output +{1:1,2:2} + + +-- !query 2332 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 2332 schema +struct> +-- !query 2332 output +{1:1,2:2} + + +-- !query 2333 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 2333 schema +struct> +-- !query 2333 output +{1:1.0,2:2.0} + + +-- !query 2334 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 2334 schema +struct> +-- !query 2334 output +{1:1.0,2:2.0} + + +-- !query 2335 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 2335 schema +struct> +-- !query 2335 output +{1:1,2:2} + + +-- !query 2336 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 2336 schema +struct> +-- !query 2336 output +{1:"1",2:"2"} + + +-- !query 2337 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 2337 schema +struct<> +-- !query 2337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2338 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 2338 schema +struct<> +-- !query 2338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2339 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2339 schema +struct<> +-- !query 2339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2340 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2340 schema +struct<> +-- !query 2340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2341 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 2341 schema +struct> +-- !query 2341 output +{1:1,2:2} + + +-- !query 2342 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 2342 schema +struct> +-- !query 2342 output +{1:1,2:2} + + +-- !query 2343 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 2343 schema +struct> +-- !query 2343 output +{1:1,2:2} + + +-- !query 2344 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 2344 schema +struct> +-- !query 2344 output +{1:1,2:2} + + +-- !query 2345 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 2345 schema +struct> +-- !query 2345 output +{1:1.0,2:2.0} + + +-- !query 2346 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 2346 schema +struct> +-- !query 2346 output +{1:1.0,2:2.0} + + +-- !query 2347 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 2347 schema +struct> +-- !query 2347 output +{1:1,2:2} + + +-- !query 2348 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 2348 schema +struct> +-- !query 2348 output +{1:"1",2:"2"} + + +-- !query 2349 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 2349 schema +struct<> +-- !query 2349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2350 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 2350 schema +struct<> +-- !query 2350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2351 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2351 schema +struct<> +-- !query 2351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2352 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2352 schema +struct<> +-- !query 2352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2353 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 2353 schema +struct> +-- !query 2353 output +{1.0:1,2.0:2} + + +-- !query 2354 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 2354 schema +struct> +-- !query 2354 output +{1.0:1,2.0:2} + + +-- !query 2355 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 2355 schema +struct> +-- !query 2355 output +{1.0:1,2.0:2} + + +-- !query 2356 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 2356 schema +struct> +-- !query 2356 output +{1.0:1,2.0:2} + + +-- !query 2357 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 2357 schema +struct> +-- !query 2357 output +{1.0:1.0,2.0:2.0} + + +-- !query 2358 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 2358 schema +struct> +-- !query 2358 output +{1.0:1.0,2.0:2.0} + + +-- !query 2359 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 2359 schema +struct> +-- !query 2359 output +{1.0:1,2.0:2} + + +-- !query 2360 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 2360 schema +struct> +-- !query 2360 output +{1.0:"1",2.0:"2"} + + +-- !query 2361 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 2361 schema +struct<> +-- !query 2361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2362 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 2362 schema +struct<> +-- !query 2362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2363 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2363 schema +struct<> +-- !query 2363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2364 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2364 schema +struct<> +-- !query 2364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2365 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 2365 schema +struct> +-- !query 2365 output +{1.0:1,2.0:2} + + +-- !query 2366 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 2366 schema +struct> +-- !query 2366 output +{1.0:1,2.0:2} + + +-- !query 2367 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 2367 schema +struct> +-- !query 2367 output +{1.0:1,2.0:2} + + +-- !query 2368 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 2368 schema +struct> +-- !query 2368 output +{1.0:1,2.0:2} + + +-- !query 2369 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 2369 schema +struct> +-- !query 2369 output +{1.0:1.0,2.0:2.0} + + +-- !query 2370 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 2370 schema +struct> +-- !query 2370 output +{1.0:1.0,2.0:2.0} + + +-- !query 2371 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 2371 schema +struct> +-- !query 2371 output +{1.0:1,2.0:2} + + +-- !query 2372 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 2372 schema +struct> +-- !query 2372 output +{1.0:"1",2.0:"2"} + + +-- !query 2373 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 2373 schema +struct<> +-- !query 2373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2374 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 2374 schema +struct<> +-- !query 2374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2375 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2375 schema +struct<> +-- !query 2375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2376 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2376 schema +struct<> +-- !query 2376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2377 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 2377 schema +struct> +-- !query 2377 output +{1:1,2:2} + + +-- !query 2378 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 2378 schema +struct> +-- !query 2378 output +{1:1,2:2} + + +-- !query 2379 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 2379 schema +struct> +-- !query 2379 output +{1:1,2:2} + + +-- !query 2380 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 2380 schema +struct> +-- !query 2380 output +{1:1,2:2} + + +-- !query 2381 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 2381 schema +struct> +-- !query 2381 output +{1:1.0,2:2.0} + + +-- !query 2382 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 2382 schema +struct> +-- !query 2382 output +{1:1.0,2:2.0} + + +-- !query 2383 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 2383 schema +struct> +-- !query 2383 output +{1:1,2:2} + + +-- !query 2384 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 2384 schema +struct> +-- !query 2384 output +{1:"1",2:"2"} + + +-- !query 2385 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 2385 schema +struct<> +-- !query 2385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2386 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 2386 schema +struct<> +-- !query 2386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2387 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2387 schema +struct<> +-- !query 2387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2388 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2388 schema +struct<> +-- !query 2388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2389 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 2389 schema +struct> +-- !query 2389 output +{"1":1,"2":2} + + +-- !query 2390 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 2390 schema +struct> +-- !query 2390 output +{"1":1,"2":2} + + +-- !query 2391 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 2391 schema +struct> +-- !query 2391 output +{"1":1,"2":2} + + +-- !query 2392 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 2392 schema +struct> +-- !query 2392 output +{"1":1,"2":2} + + +-- !query 2393 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 2393 schema +struct> +-- !query 2393 output +{"1":1.0,"2":2.0} + + +-- !query 2394 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 2394 schema +struct> +-- !query 2394 output +{"1":1.0,"2":2.0} + + +-- !query 2395 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 2395 schema +struct> +-- !query 2395 output +{"1":1,"2":2} + + +-- !query 2396 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 2396 schema +struct> +-- !query 2396 output +{"1":"1","2":"2"} + + +-- !query 2397 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 2397 schema +struct<> +-- !query 2397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 2398 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 2398 schema +struct<> +-- !query 2398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 2399 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2399 schema +struct<> +-- !query 2399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 2400 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2400 schema +struct<> +-- !query 2400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 2401 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 2401 schema +struct<> +-- !query 2401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2402 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 2402 schema +struct<> +-- !query 2402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2403 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 2403 schema +struct<> +-- !query 2403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2404 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 2404 schema +struct<> +-- !query 2404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2405 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 2405 schema +struct<> +-- !query 2405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2406 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 2406 schema +struct<> +-- !query 2406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2407 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 2407 schema +struct<> +-- !query 2407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2408 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 2408 schema +struct<> +-- !query 2408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2409 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 2409 schema +struct<> +-- !query 2409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2410 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 2410 schema +struct<> +-- !query 2410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2411 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2411 schema +struct<> +-- !query 2411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2412 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2412 schema +struct<> +-- !query 2412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2413 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 2413 schema +struct<> +-- !query 2413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2414 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 2414 schema +struct<> +-- !query 2414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2415 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 2415 schema +struct<> +-- !query 2415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2416 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 2416 schema +struct<> +-- !query 2416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2417 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 2417 schema +struct<> +-- !query 2417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2418 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 2418 schema +struct<> +-- !query 2418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2419 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 2419 schema +struct<> +-- !query 2419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2420 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 2420 schema +struct<> +-- !query 2420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2421 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 2421 schema +struct<> +-- !query 2421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2422 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 2422 schema +struct<> +-- !query 2422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2423 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2423 schema +struct<> +-- !query 2423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2424 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2424 schema +struct<> +-- !query 2424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2425 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 2425 schema +struct<> +-- !query 2425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2426 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 2426 schema +struct<> +-- !query 2426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2427 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 2427 schema +struct<> +-- !query 2427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2428 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 2428 schema +struct<> +-- !query 2428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2429 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 2429 schema +struct<> +-- !query 2429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2430 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 2430 schema +struct<> +-- !query 2430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2431 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 2431 schema +struct<> +-- !query 2431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2432 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 2432 schema +struct<> +-- !query 2432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2433 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 2433 schema +struct<> +-- !query 2433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2434 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 2434 schema +struct<> +-- !query 2434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2435 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2435 schema +struct<> +-- !query 2435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2436 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2436 schema +struct<> +-- !query 2436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2437 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 2437 schema +struct<> +-- !query 2437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2438 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 2438 schema +struct<> +-- !query 2438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2439 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 2439 schema +struct<> +-- !query 2439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2440 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 2440 schema +struct<> +-- !query 2440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2441 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 2441 schema +struct<> +-- !query 2441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2442 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 2442 schema +struct<> +-- !query 2442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2443 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 2443 schema +struct<> +-- !query 2443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2444 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 2444 schema +struct<> +-- !query 2444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2445 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 2445 schema +struct<> +-- !query 2445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2446 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 2446 schema +struct<> +-- !query 2446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2447 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2447 schema +struct<> +-- !query 2447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2448 +SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2448 schema +struct<> +-- !query 2448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2449 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 2449 schema +struct> +-- !query 2449 output +{1:1.0,2:2.0} + + +-- !query 2450 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 2450 schema +struct> +-- !query 2450 output +{1:1.0,2:2.0} + + +-- !query 2451 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 2451 schema +struct> +-- !query 2451 output +{1:1.0,2:2.0} + + +-- !query 2452 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 2452 schema +struct> +-- !query 2452 output +{1:1.0,2:2.0} + + +-- !query 2453 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 2453 schema +struct> +-- !query 2453 output +{1:1.0,2:2.0} + + +-- !query 2454 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 2454 schema +struct> +-- !query 2454 output +{1:1.0,2:2.0} + + +-- !query 2455 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 2455 schema +struct> +-- !query 2455 output +{1:1.0,2:2.0} + + +-- !query 2456 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 2456 schema +struct> +-- !query 2456 output +{1:"1.0",2:"2"} + + +-- !query 2457 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 2457 schema +struct<> +-- !query 2457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2458 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 2458 schema +struct<> +-- !query 2458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2459 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2459 schema +struct<> +-- !query 2459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2460 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2460 schema +struct<> +-- !query 2460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2461 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 2461 schema +struct> +-- !query 2461 output +{1:1.0,2:2.0} + + +-- !query 2462 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 2462 schema +struct> +-- !query 2462 output +{1:1.0,2:2.0} + + +-- !query 2463 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 2463 schema +struct> +-- !query 2463 output +{1:1.0,2:2.0} + + +-- !query 2464 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 2464 schema +struct> +-- !query 2464 output +{1:1.0,2:2.0} + + +-- !query 2465 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 2465 schema +struct> +-- !query 2465 output +{1:1.0,2:2.0} + + +-- !query 2466 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 2466 schema +struct> +-- !query 2466 output +{1:1.0,2:2.0} + + +-- !query 2467 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 2467 schema +struct> +-- !query 2467 output +{1:1.0,2:2.0} + + +-- !query 2468 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 2468 schema +struct> +-- !query 2468 output +{1:"1.0",2:"2"} + + +-- !query 2469 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 2469 schema +struct<> +-- !query 2469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2470 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 2470 schema +struct<> +-- !query 2470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2471 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2471 schema +struct<> +-- !query 2471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2472 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2472 schema +struct<> +-- !query 2472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2473 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 2473 schema +struct> +-- !query 2473 output +{1:1.0,2:2.0} + + +-- !query 2474 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 2474 schema +struct> +-- !query 2474 output +{1:1.0,2:2.0} + + +-- !query 2475 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 2475 schema +struct> +-- !query 2475 output +{1:1.0,2:2.0} + + +-- !query 2476 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 2476 schema +struct> +-- !query 2476 output +{1:1.0,2:2.0} + + +-- !query 2477 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 2477 schema +struct> +-- !query 2477 output +{1:1.0,2:2.0} + + +-- !query 2478 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 2478 schema +struct> +-- !query 2478 output +{1:1.0,2:2.0} + + +-- !query 2479 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 2479 schema +struct> +-- !query 2479 output +{1:1.0,2:2.0} + + +-- !query 2480 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 2480 schema +struct> +-- !query 2480 output +{1:"1.0",2:"2"} + + +-- !query 2481 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 2481 schema +struct<> +-- !query 2481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2482 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 2482 schema +struct<> +-- !query 2482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2483 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2483 schema +struct<> +-- !query 2483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2484 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2484 schema +struct<> +-- !query 2484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2485 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 2485 schema +struct> +-- !query 2485 output +{1:1.0,2:2.0} + + +-- !query 2486 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 2486 schema +struct> +-- !query 2486 output +{1:1.0,2:2.0} + + +-- !query 2487 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 2487 schema +struct> +-- !query 2487 output +{1:1.0,2:2.0} + + +-- !query 2488 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 2488 schema +struct> +-- !query 2488 output +{1:1.0,2:2.0} + + +-- !query 2489 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 2489 schema +struct> +-- !query 2489 output +{1:1.0,2:2.0} + + +-- !query 2490 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 2490 schema +struct> +-- !query 2490 output +{1:1.0,2:2.0} + + +-- !query 2491 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 2491 schema +struct> +-- !query 2491 output +{1:1.0,2:2.0} + + +-- !query 2492 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 2492 schema +struct> +-- !query 2492 output +{1:"1.0",2:"2"} + + +-- !query 2493 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 2493 schema +struct<> +-- !query 2493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2494 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 2494 schema +struct<> +-- !query 2494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2495 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2495 schema +struct<> +-- !query 2495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2496 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2496 schema +struct<> +-- !query 2496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2497 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 2497 schema +struct> +-- !query 2497 output +{1.0:1.0,2.0:2.0} + + +-- !query 2498 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 2498 schema +struct> +-- !query 2498 output +{1.0:1.0,2.0:2.0} + + +-- !query 2499 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 2499 schema +struct> +-- !query 2499 output +{1.0:1.0,2.0:2.0} + + +-- !query 2500 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 2500 schema +struct> +-- !query 2500 output +{1.0:1.0,2.0:2.0} + + +-- !query 2501 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 2501 schema +struct> +-- !query 2501 output +{1.0:1.0,2.0:2.0} + + +-- !query 2502 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 2502 schema +struct> +-- !query 2502 output +{1.0:1.0,2.0:2.0} + + +-- !query 2503 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 2503 schema +struct> +-- !query 2503 output +{1.0:1.0,2.0:2.0} + + +-- !query 2504 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 2504 schema +struct> +-- !query 2504 output +{1.0:"1.0",2.0:"2"} + + +-- !query 2505 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 2505 schema +struct<> +-- !query 2505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2506 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 2506 schema +struct<> +-- !query 2506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2507 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2507 schema +struct<> +-- !query 2507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2508 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2508 schema +struct<> +-- !query 2508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2509 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 2509 schema +struct> +-- !query 2509 output +{1.0:1.0,2.0:2.0} + + +-- !query 2510 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 2510 schema +struct> +-- !query 2510 output +{1.0:1.0,2.0:2.0} + + +-- !query 2511 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 2511 schema +struct> +-- !query 2511 output +{1.0:1.0,2.0:2.0} + + +-- !query 2512 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 2512 schema +struct> +-- !query 2512 output +{1.0:1.0,2.0:2.0} + + +-- !query 2513 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 2513 schema +struct> +-- !query 2513 output +{1.0:1.0,2.0:2.0} + + +-- !query 2514 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 2514 schema +struct> +-- !query 2514 output +{1.0:1.0,2.0:2.0} + + +-- !query 2515 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 2515 schema +struct> +-- !query 2515 output +{1.0:1.0,2.0:2.0} + + +-- !query 2516 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 2516 schema +struct> +-- !query 2516 output +{1.0:"1.0",2.0:"2"} + + +-- !query 2517 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 2517 schema +struct<> +-- !query 2517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2518 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 2518 schema +struct<> +-- !query 2518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2519 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2519 schema +struct<> +-- !query 2519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2520 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2520 schema +struct<> +-- !query 2520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2521 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 2521 schema +struct> +-- !query 2521 output +{1:1.0,2:2.0} + + +-- !query 2522 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 2522 schema +struct> +-- !query 2522 output +{1:1.0,2:2.0} + + +-- !query 2523 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 2523 schema +struct> +-- !query 2523 output +{1:1.0,2:2.0} + + +-- !query 2524 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 2524 schema +struct> +-- !query 2524 output +{1:1.0,2:2.0} + + +-- !query 2525 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 2525 schema +struct> +-- !query 2525 output +{1:1.0,2:2.0} + + +-- !query 2526 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 2526 schema +struct> +-- !query 2526 output +{1:1.0,2:2.0} + + +-- !query 2527 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 2527 schema +struct> +-- !query 2527 output +{1:1.0,2:2.0} + + +-- !query 2528 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 2528 schema +struct> +-- !query 2528 output +{1:"1.0",2:"2"} + + +-- !query 2529 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 2529 schema +struct<> +-- !query 2529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2530 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 2530 schema +struct<> +-- !query 2530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2531 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2531 schema +struct<> +-- !query 2531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2532 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2532 schema +struct<> +-- !query 2532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2533 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 2533 schema +struct> +-- !query 2533 output +{"1":1.0,"2":2.0} + + +-- !query 2534 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 2534 schema +struct> +-- !query 2534 output +{"1":1.0,"2":2.0} + + +-- !query 2535 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 2535 schema +struct> +-- !query 2535 output +{"1":1.0,"2":2.0} + + +-- !query 2536 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 2536 schema +struct> +-- !query 2536 output +{"1":1.0,"2":2.0} + + +-- !query 2537 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 2537 schema +struct> +-- !query 2537 output +{"1":1.0,"2":2.0} + + +-- !query 2538 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 2538 schema +struct> +-- !query 2538 output +{"1":1.0,"2":2.0} + + +-- !query 2539 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 2539 schema +struct> +-- !query 2539 output +{"1":1.0,"2":2.0} + + +-- !query 2540 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 2540 schema +struct> +-- !query 2540 output +{"1":"1.0","2":"2"} + + +-- !query 2541 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 2541 schema +struct<> +-- !query 2541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 2542 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 2542 schema +struct<> +-- !query 2542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 2543 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2543 schema +struct<> +-- !query 2543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 2544 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2544 schema +struct<> +-- !query 2544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 2545 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 2545 schema +struct<> +-- !query 2545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2546 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 2546 schema +struct<> +-- !query 2546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2547 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 2547 schema +struct<> +-- !query 2547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2548 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 2548 schema +struct<> +-- !query 2548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2549 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 2549 schema +struct<> +-- !query 2549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2550 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 2550 schema +struct<> +-- !query 2550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2551 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 2551 schema +struct<> +-- !query 2551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2552 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 2552 schema +struct<> +-- !query 2552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2553 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 2553 schema +struct<> +-- !query 2553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2554 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 2554 schema +struct<> +-- !query 2554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2555 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2555 schema +struct<> +-- !query 2555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2556 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2556 schema +struct<> +-- !query 2556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2557 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 2557 schema +struct<> +-- !query 2557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2558 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 2558 schema +struct<> +-- !query 2558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2559 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 2559 schema +struct<> +-- !query 2559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2560 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 2560 schema +struct<> +-- !query 2560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2561 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 2561 schema +struct<> +-- !query 2561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2562 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 2562 schema +struct<> +-- !query 2562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2563 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 2563 schema +struct<> +-- !query 2563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2564 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 2564 schema +struct<> +-- !query 2564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2565 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 2565 schema +struct<> +-- !query 2565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2566 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 2566 schema +struct<> +-- !query 2566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2567 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2567 schema +struct<> +-- !query 2567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2568 +SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2568 schema +struct<> +-- !query 2568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2569 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 2569 schema +struct<> +-- !query 2569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2570 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 2570 schema +struct<> +-- !query 2570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2571 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 2571 schema +struct<> +-- !query 2571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2572 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 2572 schema +struct<> +-- !query 2572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2573 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 2573 schema +struct<> +-- !query 2573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2574 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 2574 schema +struct<> +-- !query 2574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2575 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 2575 schema +struct<> +-- !query 2575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2576 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 2576 schema +struct<> +-- !query 2576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2577 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 2577 schema +struct<> +-- !query 2577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2578 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 2578 schema +struct<> +-- !query 2578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2579 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2579 schema +struct<> +-- !query 2579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2580 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2580 schema +struct<> +-- !query 2580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2581 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 2581 schema +struct<> +-- !query 2581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2582 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 2582 schema +struct<> +-- !query 2582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2583 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 2583 schema +struct<> +-- !query 2583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2584 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 2584 schema +struct<> +-- !query 2584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2585 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 2585 schema +struct<> +-- !query 2585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2586 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 2586 schema +struct<> +-- !query 2586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2587 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 2587 schema +struct<> +-- !query 2587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2588 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 2588 schema +struct<> +-- !query 2588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2589 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 2589 schema +struct<> +-- !query 2589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2590 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 2590 schema +struct<> +-- !query 2590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2591 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2591 schema +struct<> +-- !query 2591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2592 +SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2592 schema +struct<> +-- !query 2592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2593 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 2593 schema +struct> +-- !query 2593 output +{1:1.0,2:2.0} + + +-- !query 2594 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 2594 schema +struct> +-- !query 2594 output +{1:1.0,2:2.0} + + +-- !query 2595 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 2595 schema +struct> +-- !query 2595 output +{1:1.0,2:2.0} + + +-- !query 2596 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 2596 schema +struct> +-- !query 2596 output +{1:1.0,2:2.0} + + +-- !query 2597 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 2597 schema +struct> +-- !query 2597 output +{1:1.0,2:2.0} + + +-- !query 2598 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 2598 schema +struct> +-- !query 2598 output +{1:1.0,2:2.0} + + +-- !query 2599 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 2599 schema +struct> +-- !query 2599 output +{1:1.0,2:2.0} + + +-- !query 2600 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 2600 schema +struct> +-- !query 2600 output +{1:"1.0",2:"2"} + + +-- !query 2601 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 2601 schema +struct<> +-- !query 2601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2602 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 2602 schema +struct<> +-- !query 2602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2603 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2603 schema +struct<> +-- !query 2603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2604 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2604 schema +struct<> +-- !query 2604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2605 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 2605 schema +struct> +-- !query 2605 output +{1:1.0,2:2.0} + + +-- !query 2606 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 2606 schema +struct> +-- !query 2606 output +{1:1.0,2:2.0} + + +-- !query 2607 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 2607 schema +struct> +-- !query 2607 output +{1:1.0,2:2.0} + + +-- !query 2608 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 2608 schema +struct> +-- !query 2608 output +{1:1.0,2:2.0} + + +-- !query 2609 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 2609 schema +struct> +-- !query 2609 output +{1:1.0,2:2.0} + + +-- !query 2610 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 2610 schema +struct> +-- !query 2610 output +{1:1.0,2:2.0} + + +-- !query 2611 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 2611 schema +struct> +-- !query 2611 output +{1:1.0,2:2.0} + + +-- !query 2612 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 2612 schema +struct> +-- !query 2612 output +{1:"1.0",2:"2"} + + +-- !query 2613 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 2613 schema +struct<> +-- !query 2613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2614 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 2614 schema +struct<> +-- !query 2614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2615 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2615 schema +struct<> +-- !query 2615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2616 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2616 schema +struct<> +-- !query 2616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2617 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 2617 schema +struct> +-- !query 2617 output +{1:1.0,2:2.0} + + +-- !query 2618 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 2618 schema +struct> +-- !query 2618 output +{1:1.0,2:2.0} + + +-- !query 2619 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 2619 schema +struct> +-- !query 2619 output +{1:1.0,2:2.0} + + +-- !query 2620 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 2620 schema +struct> +-- !query 2620 output +{1:1.0,2:2.0} + + +-- !query 2621 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 2621 schema +struct> +-- !query 2621 output +{1:1.0,2:2.0} + + +-- !query 2622 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 2622 schema +struct> +-- !query 2622 output +{1:1.0,2:2.0} + + +-- !query 2623 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 2623 schema +struct> +-- !query 2623 output +{1:1.0,2:2.0} + + +-- !query 2624 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 2624 schema +struct> +-- !query 2624 output +{1:"1.0",2:"2"} + + +-- !query 2625 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 2625 schema +struct<> +-- !query 2625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2626 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 2626 schema +struct<> +-- !query 2626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2627 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2627 schema +struct<> +-- !query 2627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2628 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2628 schema +struct<> +-- !query 2628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2629 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 2629 schema +struct> +-- !query 2629 output +{1:1.0,2:2.0} + + +-- !query 2630 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 2630 schema +struct> +-- !query 2630 output +{1:1.0,2:2.0} + + +-- !query 2631 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 2631 schema +struct> +-- !query 2631 output +{1:1.0,2:2.0} + + +-- !query 2632 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 2632 schema +struct> +-- !query 2632 output +{1:1.0,2:2.0} + + +-- !query 2633 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 2633 schema +struct> +-- !query 2633 output +{1:1.0,2:2.0} + + +-- !query 2634 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 2634 schema +struct> +-- !query 2634 output +{1:1.0,2:2.0} + + +-- !query 2635 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 2635 schema +struct> +-- !query 2635 output +{1:1.0,2:2.0} + + +-- !query 2636 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 2636 schema +struct> +-- !query 2636 output +{1:"1.0",2:"2"} + + +-- !query 2637 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 2637 schema +struct<> +-- !query 2637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2638 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 2638 schema +struct<> +-- !query 2638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2639 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2639 schema +struct<> +-- !query 2639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2640 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2640 schema +struct<> +-- !query 2640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2641 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 2641 schema +struct> +-- !query 2641 output +{1.0:1.0,2.0:2.0} + + +-- !query 2642 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 2642 schema +struct> +-- !query 2642 output +{1.0:1.0,2.0:2.0} + + +-- !query 2643 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 2643 schema +struct> +-- !query 2643 output +{1.0:1.0,2.0:2.0} + + +-- !query 2644 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 2644 schema +struct> +-- !query 2644 output +{1.0:1.0,2.0:2.0} + + +-- !query 2645 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 2645 schema +struct> +-- !query 2645 output +{1.0:1.0,2.0:2.0} + + +-- !query 2646 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 2646 schema +struct> +-- !query 2646 output +{1.0:1.0,2.0:2.0} + + +-- !query 2647 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 2647 schema +struct> +-- !query 2647 output +{1.0:1.0,2.0:2.0} + + +-- !query 2648 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 2648 schema +struct> +-- !query 2648 output +{1.0:"1.0",2.0:"2"} + + +-- !query 2649 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 2649 schema +struct<> +-- !query 2649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2650 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 2650 schema +struct<> +-- !query 2650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2651 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2651 schema +struct<> +-- !query 2651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2652 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2652 schema +struct<> +-- !query 2652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2653 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 2653 schema +struct> +-- !query 2653 output +{1.0:1.0,2.0:2.0} + + +-- !query 2654 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 2654 schema +struct> +-- !query 2654 output +{1.0:1.0,2.0:2.0} + + +-- !query 2655 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 2655 schema +struct> +-- !query 2655 output +{1.0:1.0,2.0:2.0} + + +-- !query 2656 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 2656 schema +struct> +-- !query 2656 output +{1.0:1.0,2.0:2.0} + + +-- !query 2657 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 2657 schema +struct> +-- !query 2657 output +{1.0:1.0,2.0:2.0} + + +-- !query 2658 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 2658 schema +struct> +-- !query 2658 output +{1.0:1.0,2.0:2.0} + + +-- !query 2659 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 2659 schema +struct> +-- !query 2659 output +{1.0:1.0,2.0:2.0} + + +-- !query 2660 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 2660 schema +struct> +-- !query 2660 output +{1.0:"1.0",2.0:"2"} + + +-- !query 2661 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 2661 schema +struct<> +-- !query 2661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2662 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 2662 schema +struct<> +-- !query 2662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2663 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2663 schema +struct<> +-- !query 2663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2664 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2664 schema +struct<> +-- !query 2664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2665 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 2665 schema +struct> +-- !query 2665 output +{1:1.0,2:2.0} + + +-- !query 2666 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 2666 schema +struct> +-- !query 2666 output +{1:1.0,2:2.0} + + +-- !query 2667 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 2667 schema +struct> +-- !query 2667 output +{1:1.0,2:2.0} + + +-- !query 2668 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 2668 schema +struct> +-- !query 2668 output +{1:1.0,2:2.0} + + +-- !query 2669 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 2669 schema +struct> +-- !query 2669 output +{1:1.0,2:2.0} + + +-- !query 2670 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 2670 schema +struct> +-- !query 2670 output +{1:1.0,2:2.0} + + +-- !query 2671 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 2671 schema +struct> +-- !query 2671 output +{1:1.0,2:2.0} + + +-- !query 2672 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 2672 schema +struct> +-- !query 2672 output +{1:"1.0",2:"2"} + + +-- !query 2673 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 2673 schema +struct<> +-- !query 2673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2674 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 2674 schema +struct<> +-- !query 2674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2675 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2675 schema +struct<> +-- !query 2675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2676 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2676 schema +struct<> +-- !query 2676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2677 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 2677 schema +struct> +-- !query 2677 output +{"1":1.0,"2":2.0} + + +-- !query 2678 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 2678 schema +struct> +-- !query 2678 output +{"1":1.0,"2":2.0} + + +-- !query 2679 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 2679 schema +struct> +-- !query 2679 output +{"1":1.0,"2":2.0} + + +-- !query 2680 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 2680 schema +struct> +-- !query 2680 output +{"1":1.0,"2":2.0} + + +-- !query 2681 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 2681 schema +struct> +-- !query 2681 output +{"1":1.0,"2":2.0} + + +-- !query 2682 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 2682 schema +struct> +-- !query 2682 output +{"1":1.0,"2":2.0} + + +-- !query 2683 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 2683 schema +struct> +-- !query 2683 output +{"1":1.0,"2":2.0} + + +-- !query 2684 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 2684 schema +struct> +-- !query 2684 output +{"1":"1.0","2":"2"} + + +-- !query 2685 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 2685 schema +struct<> +-- !query 2685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 2686 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 2686 schema +struct<> +-- !query 2686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 2687 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2687 schema +struct<> +-- !query 2687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 2688 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2688 schema +struct<> +-- !query 2688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 2689 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 2689 schema +struct<> +-- !query 2689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2690 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 2690 schema +struct<> +-- !query 2690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2691 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 2691 schema +struct<> +-- !query 2691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2692 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 2692 schema +struct<> +-- !query 2692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2693 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 2693 schema +struct<> +-- !query 2693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2694 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 2694 schema +struct<> +-- !query 2694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2695 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 2695 schema +struct<> +-- !query 2695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2696 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 2696 schema +struct<> +-- !query 2696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2697 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 2697 schema +struct<> +-- !query 2697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2698 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 2698 schema +struct<> +-- !query 2698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2699 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2699 schema +struct<> +-- !query 2699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2700 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2700 schema +struct<> +-- !query 2700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2701 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 2701 schema +struct<> +-- !query 2701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2702 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 2702 schema +struct<> +-- !query 2702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2703 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 2703 schema +struct<> +-- !query 2703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2704 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 2704 schema +struct<> +-- !query 2704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2705 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 2705 schema +struct<> +-- !query 2705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2706 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 2706 schema +struct<> +-- !query 2706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2707 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 2707 schema +struct<> +-- !query 2707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2708 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 2708 schema +struct<> +-- !query 2708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2709 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 2709 schema +struct<> +-- !query 2709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2710 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 2710 schema +struct<> +-- !query 2710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2711 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2711 schema +struct<> +-- !query 2711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2712 +SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2712 schema +struct<> +-- !query 2712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2713 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 2713 schema +struct<> +-- !query 2713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2714 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 2714 schema +struct<> +-- !query 2714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2715 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 2715 schema +struct<> +-- !query 2715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2716 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 2716 schema +struct<> +-- !query 2716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2717 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 2717 schema +struct<> +-- !query 2717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2718 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 2718 schema +struct<> +-- !query 2718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2719 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 2719 schema +struct<> +-- !query 2719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2720 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 2720 schema +struct<> +-- !query 2720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2721 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 2721 schema +struct<> +-- !query 2721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2722 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 2722 schema +struct<> +-- !query 2722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2723 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2723 schema +struct<> +-- !query 2723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2724 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2724 schema +struct<> +-- !query 2724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2725 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 2725 schema +struct<> +-- !query 2725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2726 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 2726 schema +struct<> +-- !query 2726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2727 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 2727 schema +struct<> +-- !query 2727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2728 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 2728 schema +struct<> +-- !query 2728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2729 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 2729 schema +struct<> +-- !query 2729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2730 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 2730 schema +struct<> +-- !query 2730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2731 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 2731 schema +struct<> +-- !query 2731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2732 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 2732 schema +struct<> +-- !query 2732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2733 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 2733 schema +struct<> +-- !query 2733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2734 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 2734 schema +struct<> +-- !query 2734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2735 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2735 schema +struct<> +-- !query 2735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2736 +SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2736 schema +struct<> +-- !query 2736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2737 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 2737 schema +struct> +-- !query 2737 output +{1:1,2:2} + + +-- !query 2738 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 2738 schema +struct> +-- !query 2738 output +{1:1,2:2} + + +-- !query 2739 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 2739 schema +struct> +-- !query 2739 output +{1:1,2:2} + + +-- !query 2740 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 2740 schema +struct> +-- !query 2740 output +{1:1,2:2} + + +-- !query 2741 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 2741 schema +struct> +-- !query 2741 output +{1:1.0,2:2.0} + + +-- !query 2742 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 2742 schema +struct> +-- !query 2742 output +{1:1.0,2:2.0} + + +-- !query 2743 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 2743 schema +struct> +-- !query 2743 output +{1:1,2:2} + + +-- !query 2744 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 2744 schema +struct> +-- !query 2744 output +{1:"1",2:"2"} + + +-- !query 2745 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 2745 schema +struct<> +-- !query 2745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2746 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 2746 schema +struct<> +-- !query 2746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2747 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2747 schema +struct<> +-- !query 2747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2748 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2748 schema +struct<> +-- !query 2748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2749 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 2749 schema +struct> +-- !query 2749 output +{1:1,2:2} + + +-- !query 2750 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 2750 schema +struct> +-- !query 2750 output +{1:1,2:2} + + +-- !query 2751 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 2751 schema +struct> +-- !query 2751 output +{1:1,2:2} + + +-- !query 2752 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 2752 schema +struct> +-- !query 2752 output +{1:1,2:2} + + +-- !query 2753 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 2753 schema +struct> +-- !query 2753 output +{1:1.0,2:2.0} + + +-- !query 2754 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 2754 schema +struct> +-- !query 2754 output +{1:1.0,2:2.0} + + +-- !query 2755 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 2755 schema +struct> +-- !query 2755 output +{1:1,2:2} + + +-- !query 2756 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 2756 schema +struct> +-- !query 2756 output +{1:"1",2:"2"} + + +-- !query 2757 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 2757 schema +struct<> +-- !query 2757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2758 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 2758 schema +struct<> +-- !query 2758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2759 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2759 schema +struct<> +-- !query 2759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2760 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2760 schema +struct<> +-- !query 2760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2761 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 2761 schema +struct> +-- !query 2761 output +{1:1,2:2} + + +-- !query 2762 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 2762 schema +struct> +-- !query 2762 output +{1:1,2:2} + + +-- !query 2763 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 2763 schema +struct> +-- !query 2763 output +{1:1,2:2} + + +-- !query 2764 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 2764 schema +struct> +-- !query 2764 output +{1:1,2:2} + + +-- !query 2765 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 2765 schema +struct> +-- !query 2765 output +{1:1.0,2:2.0} + + +-- !query 2766 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 2766 schema +struct> +-- !query 2766 output +{1:1.0,2:2.0} + + +-- !query 2767 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 2767 schema +struct> +-- !query 2767 output +{1:1,2:2} + + +-- !query 2768 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 2768 schema +struct> +-- !query 2768 output +{1:"1",2:"2"} + + +-- !query 2769 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 2769 schema +struct<> +-- !query 2769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2770 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 2770 schema +struct<> +-- !query 2770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2771 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2771 schema +struct<> +-- !query 2771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2772 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2772 schema +struct<> +-- !query 2772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2773 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 2773 schema +struct> +-- !query 2773 output +{1:1,2:2} + + +-- !query 2774 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 2774 schema +struct> +-- !query 2774 output +{1:1,2:2} + + +-- !query 2775 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 2775 schema +struct> +-- !query 2775 output +{1:1,2:2} + + +-- !query 2776 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 2776 schema +struct> +-- !query 2776 output +{1:1,2:2} + + +-- !query 2777 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 2777 schema +struct> +-- !query 2777 output +{1:1.0,2:2.0} + + +-- !query 2778 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 2778 schema +struct> +-- !query 2778 output +{1:1.0,2:2.0} + + +-- !query 2779 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 2779 schema +struct> +-- !query 2779 output +{1:1,2:2} + + +-- !query 2780 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 2780 schema +struct> +-- !query 2780 output +{1:"1",2:"2"} + + +-- !query 2781 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 2781 schema +struct<> +-- !query 2781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2782 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 2782 schema +struct<> +-- !query 2782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2783 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2783 schema +struct<> +-- !query 2783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2784 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2784 schema +struct<> +-- !query 2784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2785 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 2785 schema +struct> +-- !query 2785 output +{1.0:1,2.0:2} + + +-- !query 2786 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 2786 schema +struct> +-- !query 2786 output +{1.0:1,2.0:2} + + +-- !query 2787 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 2787 schema +struct> +-- !query 2787 output +{1.0:1,2.0:2} + + +-- !query 2788 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 2788 schema +struct> +-- !query 2788 output +{1.0:1,2.0:2} + + +-- !query 2789 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 2789 schema +struct> +-- !query 2789 output +{1.0:1.0,2.0:2.0} + + +-- !query 2790 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 2790 schema +struct> +-- !query 2790 output +{1.0:1.0,2.0:2.0} + + +-- !query 2791 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 2791 schema +struct> +-- !query 2791 output +{1.0:1,2.0:2} + + +-- !query 2792 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 2792 schema +struct> +-- !query 2792 output +{1.0:"1",2.0:"2"} + + +-- !query 2793 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 2793 schema +struct<> +-- !query 2793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2794 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 2794 schema +struct<> +-- !query 2794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2795 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2795 schema +struct<> +-- !query 2795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2796 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2796 schema +struct<> +-- !query 2796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2797 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 2797 schema +struct> +-- !query 2797 output +{1.0:1,2.0:2} + + +-- !query 2798 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 2798 schema +struct> +-- !query 2798 output +{1.0:1,2.0:2} + + +-- !query 2799 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 2799 schema +struct> +-- !query 2799 output +{1.0:1,2.0:2} + + +-- !query 2800 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 2800 schema +struct> +-- !query 2800 output +{1.0:1,2.0:2} + + +-- !query 2801 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 2801 schema +struct> +-- !query 2801 output +{1.0:1.0,2.0:2.0} + + +-- !query 2802 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 2802 schema +struct> +-- !query 2802 output +{1.0:1.0,2.0:2.0} + + +-- !query 2803 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 2803 schema +struct> +-- !query 2803 output +{1.0:1,2.0:2} + + +-- !query 2804 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 2804 schema +struct> +-- !query 2804 output +{1.0:"1",2.0:"2"} + + +-- !query 2805 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 2805 schema +struct<> +-- !query 2805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2806 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 2806 schema +struct<> +-- !query 2806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2807 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2807 schema +struct<> +-- !query 2807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2808 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2808 schema +struct<> +-- !query 2808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2809 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 2809 schema +struct> +-- !query 2809 output +{1:1,2:2} + + +-- !query 2810 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 2810 schema +struct> +-- !query 2810 output +{1:1,2:2} + + +-- !query 2811 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 2811 schema +struct> +-- !query 2811 output +{1:1,2:2} + + +-- !query 2812 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 2812 schema +struct> +-- !query 2812 output +{1:1,2:2} + + +-- !query 2813 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 2813 schema +struct> +-- !query 2813 output +{1:1.0,2:2.0} + + +-- !query 2814 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 2814 schema +struct> +-- !query 2814 output +{1:1.0,2:2.0} + + +-- !query 2815 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 2815 schema +struct> +-- !query 2815 output +{1:1,2:2} + + +-- !query 2816 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 2816 schema +struct> +-- !query 2816 output +{1:"1",2:"2"} + + +-- !query 2817 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 2817 schema +struct<> +-- !query 2817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2818 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 2818 schema +struct<> +-- !query 2818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2819 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2819 schema +struct<> +-- !query 2819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2820 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2820 schema +struct<> +-- !query 2820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2821 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 2821 schema +struct> +-- !query 2821 output +{"1":1,"2":2} + + +-- !query 2822 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 2822 schema +struct> +-- !query 2822 output +{"1":1,"2":2} + + +-- !query 2823 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 2823 schema +struct> +-- !query 2823 output +{"1":1,"2":2} + + +-- !query 2824 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 2824 schema +struct> +-- !query 2824 output +{"1":1,"2":2} + + +-- !query 2825 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 2825 schema +struct> +-- !query 2825 output +{"1":1.0,"2":2.0} + + +-- !query 2826 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 2826 schema +struct> +-- !query 2826 output +{"1":1.0,"2":2.0} + + +-- !query 2827 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 2827 schema +struct> +-- !query 2827 output +{"1":1,"2":2} + + +-- !query 2828 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 2828 schema +struct> +-- !query 2828 output +{"1":"1","2":"2"} + + +-- !query 2829 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 2829 schema +struct<> +-- !query 2829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 2830 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 2830 schema +struct<> +-- !query 2830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 2831 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2831 schema +struct<> +-- !query 2831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 2832 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2832 schema +struct<> +-- !query 2832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 2833 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 2833 schema +struct<> +-- !query 2833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2834 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 2834 schema +struct<> +-- !query 2834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2835 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 2835 schema +struct<> +-- !query 2835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2836 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 2836 schema +struct<> +-- !query 2836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2837 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 2837 schema +struct<> +-- !query 2837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2838 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 2838 schema +struct<> +-- !query 2838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2839 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 2839 schema +struct<> +-- !query 2839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2840 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 2840 schema +struct<> +-- !query 2840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2841 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 2841 schema +struct<> +-- !query 2841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2842 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 2842 schema +struct<> +-- !query 2842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2843 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2843 schema +struct<> +-- !query 2843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2844 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2844 schema +struct<> +-- !query 2844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2845 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 2845 schema +struct<> +-- !query 2845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2846 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 2846 schema +struct<> +-- !query 2846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2847 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 2847 schema +struct<> +-- !query 2847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2848 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 2848 schema +struct<> +-- !query 2848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2849 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 2849 schema +struct<> +-- !query 2849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2850 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 2850 schema +struct<> +-- !query 2850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2851 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 2851 schema +struct<> +-- !query 2851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2852 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 2852 schema +struct<> +-- !query 2852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2853 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 2853 schema +struct<> +-- !query 2853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2854 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 2854 schema +struct<> +-- !query 2854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2855 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2855 schema +struct<> +-- !query 2855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2856 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2856 schema +struct<> +-- !query 2856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2857 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 2857 schema +struct<> +-- !query 2857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2858 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 2858 schema +struct<> +-- !query 2858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2859 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 2859 schema +struct<> +-- !query 2859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2860 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 2860 schema +struct<> +-- !query 2860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2861 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 2861 schema +struct<> +-- !query 2861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2862 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 2862 schema +struct<> +-- !query 2862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2863 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 2863 schema +struct<> +-- !query 2863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2864 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 2864 schema +struct<> +-- !query 2864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2865 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 2865 schema +struct<> +-- !query 2865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2866 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 2866 schema +struct<> +-- !query 2866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2867 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2867 schema +struct<> +-- !query 2867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2868 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2868 schema +struct<> +-- !query 2868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 2869 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 2869 schema +struct<> +-- !query 2869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2870 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 2870 schema +struct<> +-- !query 2870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2871 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 2871 schema +struct<> +-- !query 2871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2872 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 2872 schema +struct<> +-- !query 2872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2873 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 2873 schema +struct<> +-- !query 2873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2874 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 2874 schema +struct<> +-- !query 2874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2875 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 2875 schema +struct<> +-- !query 2875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2876 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 2876 schema +struct<> +-- !query 2876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2877 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 2877 schema +struct<> +-- !query 2877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2878 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 2878 schema +struct<> +-- !query 2878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2879 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2879 schema +struct<> +-- !query 2879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2880 +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2880 schema +struct<> +-- !query 2880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 2881 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 2881 schema +struct> +-- !query 2881 output +{1:"1",2:"2"} + + +-- !query 2882 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 2882 schema +struct> +-- !query 2882 output +{1:"1",2:"2"} + + +-- !query 2883 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 2883 schema +struct> +-- !query 2883 output +{1:"1",2:"2"} + + +-- !query 2884 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 2884 schema +struct> +-- !query 2884 output +{1:"1",2:"2"} + + +-- !query 2885 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 2885 schema +struct> +-- !query 2885 output +{1:"1",2:"2.0"} + + +-- !query 2886 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 2886 schema +struct> +-- !query 2886 output +{1:"1",2:"2.0"} + + +-- !query 2887 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 2887 schema +struct> +-- !query 2887 output +{1:"1",2:"2"} + + +-- !query 2888 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 2888 schema +struct> +-- !query 2888 output +{1:"1",2:"2"} + + +-- !query 2889 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 2889 schema +struct<> +-- !query 2889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2890 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 2890 schema +struct<> +-- !query 2890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2891 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2891 schema +struct> +-- !query 2891 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 2892 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2892 schema +struct> +-- !query 2892 output +{1:"1",2:"2017-12-12"} + + +-- !query 2893 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 2893 schema +struct> +-- !query 2893 output +{1:"1",2:"2"} + + +-- !query 2894 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 2894 schema +struct> +-- !query 2894 output +{1:"1",2:"2"} + + +-- !query 2895 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 2895 schema +struct> +-- !query 2895 output +{1:"1",2:"2"} + + +-- !query 2896 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 2896 schema +struct> +-- !query 2896 output +{1:"1",2:"2"} + + +-- !query 2897 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 2897 schema +struct> +-- !query 2897 output +{1:"1",2:"2.0"} + + +-- !query 2898 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 2898 schema +struct> +-- !query 2898 output +{1:"1",2:"2.0"} + + +-- !query 2899 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 2899 schema +struct> +-- !query 2899 output +{1:"1",2:"2"} + + +-- !query 2900 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 2900 schema +struct> +-- !query 2900 output +{1:"1",2:"2"} + + +-- !query 2901 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 2901 schema +struct<> +-- !query 2901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2902 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 2902 schema +struct<> +-- !query 2902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2903 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2903 schema +struct> +-- !query 2903 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 2904 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2904 schema +struct> +-- !query 2904 output +{1:"1",2:"2017-12-12"} + + +-- !query 2905 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 2905 schema +struct> +-- !query 2905 output +{1:"1",2:"2"} + + +-- !query 2906 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 2906 schema +struct> +-- !query 2906 output +{1:"1",2:"2"} + + +-- !query 2907 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 2907 schema +struct> +-- !query 2907 output +{1:"1",2:"2"} + + +-- !query 2908 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 2908 schema +struct> +-- !query 2908 output +{1:"1",2:"2"} + + +-- !query 2909 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 2909 schema +struct> +-- !query 2909 output +{1:"1",2:"2.0"} + + +-- !query 2910 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 2910 schema +struct> +-- !query 2910 output +{1:"1",2:"2.0"} + + +-- !query 2911 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 2911 schema +struct> +-- !query 2911 output +{1:"1",2:"2"} + + +-- !query 2912 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 2912 schema +struct> +-- !query 2912 output +{1:"1",2:"2"} + + +-- !query 2913 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 2913 schema +struct<> +-- !query 2913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2914 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 2914 schema +struct<> +-- !query 2914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2915 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2915 schema +struct> +-- !query 2915 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 2916 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2916 schema +struct> +-- !query 2916 output +{1:"1",2:"2017-12-12"} + + +-- !query 2917 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 2917 schema +struct> +-- !query 2917 output +{1:"1",2:"2"} + + +-- !query 2918 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 2918 schema +struct> +-- !query 2918 output +{1:"1",2:"2"} + + +-- !query 2919 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 2919 schema +struct> +-- !query 2919 output +{1:"1",2:"2"} + + +-- !query 2920 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 2920 schema +struct> +-- !query 2920 output +{1:"1",2:"2"} + + +-- !query 2921 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 2921 schema +struct> +-- !query 2921 output +{1:"1",2:"2.0"} + + +-- !query 2922 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 2922 schema +struct> +-- !query 2922 output +{1:"1",2:"2.0"} + + +-- !query 2923 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 2923 schema +struct> +-- !query 2923 output +{1:"1",2:"2"} + + +-- !query 2924 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 2924 schema +struct> +-- !query 2924 output +{1:"1",2:"2"} + + +-- !query 2925 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 2925 schema +struct<> +-- !query 2925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2926 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 2926 schema +struct<> +-- !query 2926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2927 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2927 schema +struct> +-- !query 2927 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 2928 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2928 schema +struct> +-- !query 2928 output +{1:"1",2:"2017-12-12"} + + +-- !query 2929 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 2929 schema +struct> +-- !query 2929 output +{1.0:"1",2.0:"2"} + + +-- !query 2930 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 2930 schema +struct> +-- !query 2930 output +{1.0:"1",2.0:"2"} + + +-- !query 2931 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 2931 schema +struct> +-- !query 2931 output +{1.0:"1",2.0:"2"} + + +-- !query 2932 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 2932 schema +struct> +-- !query 2932 output +{1.0:"1",2.0:"2"} + + +-- !query 2933 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 2933 schema +struct> +-- !query 2933 output +{1.0:"1",2.0:"2.0"} + + +-- !query 2934 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 2934 schema +struct> +-- !query 2934 output +{1.0:"1",2.0:"2.0"} + + +-- !query 2935 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 2935 schema +struct> +-- !query 2935 output +{1.0:"1",2.0:"2"} + + +-- !query 2936 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 2936 schema +struct> +-- !query 2936 output +{1.0:"1",2.0:"2"} + + +-- !query 2937 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 2937 schema +struct<> +-- !query 2937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2938 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 2938 schema +struct<> +-- !query 2938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2939 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2939 schema +struct> +-- !query 2939 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 2940 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2940 schema +struct> +-- !query 2940 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 2941 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 2941 schema +struct> +-- !query 2941 output +{1.0:"1",2.0:"2"} + + +-- !query 2942 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 2942 schema +struct> +-- !query 2942 output +{1.0:"1",2.0:"2"} + + +-- !query 2943 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 2943 schema +struct> +-- !query 2943 output +{1.0:"1",2.0:"2"} + + +-- !query 2944 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 2944 schema +struct> +-- !query 2944 output +{1.0:"1",2.0:"2"} + + +-- !query 2945 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 2945 schema +struct> +-- !query 2945 output +{1.0:"1",2.0:"2.0"} + + +-- !query 2946 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 2946 schema +struct> +-- !query 2946 output +{1.0:"1",2.0:"2.0"} + + +-- !query 2947 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 2947 schema +struct> +-- !query 2947 output +{1.0:"1",2.0:"2"} + + +-- !query 2948 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 2948 schema +struct> +-- !query 2948 output +{1.0:"1",2.0:"2"} + + +-- !query 2949 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 2949 schema +struct<> +-- !query 2949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2950 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 2950 schema +struct<> +-- !query 2950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2951 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2951 schema +struct> +-- !query 2951 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 2952 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2952 schema +struct> +-- !query 2952 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 2953 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 2953 schema +struct> +-- !query 2953 output +{1:"1",2:"2"} + + +-- !query 2954 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 2954 schema +struct> +-- !query 2954 output +{1:"1",2:"2"} + + +-- !query 2955 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 2955 schema +struct> +-- !query 2955 output +{1:"1",2:"2"} + + +-- !query 2956 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 2956 schema +struct> +-- !query 2956 output +{1:"1",2:"2"} + + +-- !query 2957 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 2957 schema +struct> +-- !query 2957 output +{1:"1",2:"2.0"} + + +-- !query 2958 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 2958 schema +struct> +-- !query 2958 output +{1:"1",2:"2.0"} + + +-- !query 2959 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 2959 schema +struct> +-- !query 2959 output +{1:"1",2:"2"} + + +-- !query 2960 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 2960 schema +struct> +-- !query 2960 output +{1:"1",2:"2"} + + +-- !query 2961 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 2961 schema +struct<> +-- !query 2961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2962 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 2962 schema +struct<> +-- !query 2962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2963 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2963 schema +struct> +-- !query 2963 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 2964 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2964 schema +struct> +-- !query 2964 output +{1:"1",2:"2017-12-12"} + + +-- !query 2965 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 2965 schema +struct> +-- !query 2965 output +{"1":"1","2":"2"} + + +-- !query 2966 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 2966 schema +struct> +-- !query 2966 output +{"1":"1","2":"2"} + + +-- !query 2967 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 2967 schema +struct> +-- !query 2967 output +{"1":"1","2":"2"} + + +-- !query 2968 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 2968 schema +struct> +-- !query 2968 output +{"1":"1","2":"2"} + + +-- !query 2969 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 2969 schema +struct> +-- !query 2969 output +{"1":"1","2":"2.0"} + + +-- !query 2970 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 2970 schema +struct> +-- !query 2970 output +{"1":"1","2":"2.0"} + + +-- !query 2971 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 2971 schema +struct> +-- !query 2971 output +{"1":"1","2":"2"} + + +-- !query 2972 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 2972 schema +struct> +-- !query 2972 output +{"1":"1","2":"2"} + + +-- !query 2973 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 2973 schema +struct<> +-- !query 2973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 2974 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 2974 schema +struct<> +-- !query 2974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 2975 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2975 schema +struct> +-- !query 2975 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 2976 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2976 schema +struct> +-- !query 2976 output +{"1":"1","2":"2017-12-12"} + + +-- !query 2977 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 2977 schema +struct<> +-- !query 2977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2978 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 2978 schema +struct<> +-- !query 2978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2979 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 2979 schema +struct<> +-- !query 2979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2980 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 2980 schema +struct<> +-- !query 2980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2981 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 2981 schema +struct<> +-- !query 2981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2982 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 2982 schema +struct<> +-- !query 2982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2983 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 2983 schema +struct<> +-- !query 2983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2984 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 2984 schema +struct<> +-- !query 2984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2985 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 2985 schema +struct<> +-- !query 2985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2986 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 2986 schema +struct<> +-- !query 2986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2987 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2987 schema +struct<> +-- !query 2987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2988 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 2988 schema +struct<> +-- !query 2988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 2989 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 2989 schema +struct<> +-- !query 2989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2990 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 2990 schema +struct<> +-- !query 2990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2991 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 2991 schema +struct<> +-- !query 2991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2992 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 2992 schema +struct<> +-- !query 2992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2993 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 2993 schema +struct<> +-- !query 2993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2994 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 2994 schema +struct<> +-- !query 2994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2995 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 2995 schema +struct<> +-- !query 2995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2996 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 2996 schema +struct<> +-- !query 2996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2997 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 2997 schema +struct<> +-- !query 2997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2998 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 2998 schema +struct<> +-- !query 2998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 2999 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 2999 schema +struct<> +-- !query 2999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3000 +SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3000 schema +struct<> +-- !query 3000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3001 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 3001 schema +struct<> +-- !query 3001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3002 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 3002 schema +struct<> +-- !query 3002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3003 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 3003 schema +struct<> +-- !query 3003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3004 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 3004 schema +struct<> +-- !query 3004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3005 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 3005 schema +struct<> +-- !query 3005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3006 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 3006 schema +struct<> +-- !query 3006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3007 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 3007 schema +struct<> +-- !query 3007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3008 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 3008 schema +struct<> +-- !query 3008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3009 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 3009 schema +struct<> +-- !query 3009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3010 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 3010 schema +struct<> +-- !query 3010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3011 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3011 schema +struct<> +-- !query 3011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3012 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3012 schema +struct<> +-- !query 3012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3013 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 3013 schema +struct<> +-- !query 3013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3014 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 3014 schema +struct<> +-- !query 3014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3015 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 3015 schema +struct<> +-- !query 3015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3016 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 3016 schema +struct<> +-- !query 3016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3017 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 3017 schema +struct<> +-- !query 3017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3018 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 3018 schema +struct<> +-- !query 3018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3019 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 3019 schema +struct<> +-- !query 3019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3020 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 3020 schema +struct<> +-- !query 3020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3021 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 3021 schema +struct<> +-- !query 3021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3022 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 3022 schema +struct<> +-- !query 3022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3023 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3023 schema +struct<> +-- !query 3023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3024 +SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3024 schema +struct<> +-- !query 3024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3025 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 3025 schema +struct<> +-- !query 3025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3026 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 3026 schema +struct<> +-- !query 3026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3027 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 3027 schema +struct<> +-- !query 3027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3028 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 3028 schema +struct<> +-- !query 3028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3029 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 3029 schema +struct<> +-- !query 3029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3030 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 3030 schema +struct<> +-- !query 3030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3031 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 3031 schema +struct<> +-- !query 3031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3032 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 3032 schema +struct<> +-- !query 3032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3033 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 3033 schema +struct> +-- !query 3033 output +{1:[B@745ca58a,2:[B@31f9b20a} + + +-- !query 3034 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 3034 schema +struct<> +-- !query 3034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3035 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3035 schema +struct<> +-- !query 3035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3036 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3036 schema +struct<> +-- !query 3036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3037 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 3037 schema +struct<> +-- !query 3037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3038 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 3038 schema +struct<> +-- !query 3038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3039 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 3039 schema +struct<> +-- !query 3039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3040 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 3040 schema +struct<> +-- !query 3040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3041 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 3041 schema +struct<> +-- !query 3041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3042 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 3042 schema +struct<> +-- !query 3042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3043 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 3043 schema +struct<> +-- !query 3043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3044 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 3044 schema +struct<> +-- !query 3044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3045 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 3045 schema +struct> +-- !query 3045 output +{1:[B@5c91046e,2:[B@6d898aec} + + +-- !query 3046 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 3046 schema +struct<> +-- !query 3046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3047 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3047 schema +struct<> +-- !query 3047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3048 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3048 schema +struct<> +-- !query 3048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3049 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 3049 schema +struct<> +-- !query 3049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3050 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 3050 schema +struct<> +-- !query 3050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3051 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 3051 schema +struct<> +-- !query 3051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3052 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 3052 schema +struct<> +-- !query 3052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3053 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 3053 schema +struct<> +-- !query 3053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3054 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 3054 schema +struct<> +-- !query 3054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3055 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 3055 schema +struct<> +-- !query 3055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3056 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 3056 schema +struct<> +-- !query 3056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3057 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 3057 schema +struct> +-- !query 3057 output +{1:[B@69852003,2:[B@4104d04b} + + +-- !query 3058 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 3058 schema +struct<> +-- !query 3058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3059 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3059 schema +struct<> +-- !query 3059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3060 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3060 schema +struct<> +-- !query 3060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3061 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 3061 schema +struct<> +-- !query 3061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3062 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 3062 schema +struct<> +-- !query 3062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3063 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 3063 schema +struct<> +-- !query 3063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3064 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 3064 schema +struct<> +-- !query 3064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3065 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 3065 schema +struct<> +-- !query 3065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3066 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 3066 schema +struct<> +-- !query 3066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3067 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 3067 schema +struct<> +-- !query 3067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3068 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 3068 schema +struct<> +-- !query 3068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3069 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 3069 schema +struct> +-- !query 3069 output +{1:[B@547f8439,2:[B@53ab03e8} + + +-- !query 3070 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 3070 schema +struct<> +-- !query 3070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3071 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3071 schema +struct<> +-- !query 3071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3072 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3072 schema +struct<> +-- !query 3072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3073 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 3073 schema +struct<> +-- !query 3073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3074 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 3074 schema +struct<> +-- !query 3074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3075 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 3075 schema +struct<> +-- !query 3075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3076 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 3076 schema +struct<> +-- !query 3076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3077 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 3077 schema +struct<> +-- !query 3077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3078 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 3078 schema +struct<> +-- !query 3078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3079 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 3079 schema +struct<> +-- !query 3079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3080 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 3080 schema +struct<> +-- !query 3080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3081 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 3081 schema +struct> +-- !query 3081 output +{1.0:[B@5cc4837,2.0:[B@193b0e10} + + +-- !query 3082 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 3082 schema +struct<> +-- !query 3082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3083 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3083 schema +struct<> +-- !query 3083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3084 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3084 schema +struct<> +-- !query 3084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3085 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 3085 schema +struct<> +-- !query 3085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3086 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 3086 schema +struct<> +-- !query 3086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3087 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 3087 schema +struct<> +-- !query 3087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3088 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 3088 schema +struct<> +-- !query 3088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3089 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 3089 schema +struct<> +-- !query 3089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3090 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 3090 schema +struct<> +-- !query 3090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3091 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 3091 schema +struct<> +-- !query 3091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3092 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 3092 schema +struct<> +-- !query 3092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3093 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 3093 schema +struct> +-- !query 3093 output +{1.0:[B@6957ee94,2.0:[B@42391835} + + +-- !query 3094 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 3094 schema +struct<> +-- !query 3094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3095 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3095 schema +struct<> +-- !query 3095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3096 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3096 schema +struct<> +-- !query 3096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3097 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 3097 schema +struct<> +-- !query 3097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3098 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 3098 schema +struct<> +-- !query 3098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3099 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 3099 schema +struct<> +-- !query 3099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3100 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 3100 schema +struct<> +-- !query 3100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3101 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 3101 schema +struct<> +-- !query 3101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3102 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 3102 schema +struct<> +-- !query 3102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3103 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 3103 schema +struct<> +-- !query 3103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3104 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 3104 schema +struct<> +-- !query 3104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3105 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 3105 schema +struct> +-- !query 3105 output +{1:[B@32b458c5,2:[B@cec7c8c} + + +-- !query 3106 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 3106 schema +struct<> +-- !query 3106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3107 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3107 schema +struct<> +-- !query 3107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3108 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3108 schema +struct<> +-- !query 3108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3109 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 3109 schema +struct<> +-- !query 3109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 3110 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 3110 schema +struct<> +-- !query 3110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 3111 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 3111 schema +struct<> +-- !query 3111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 3112 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 3112 schema +struct<> +-- !query 3112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 3113 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 3113 schema +struct<> +-- !query 3113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 3114 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 3114 schema +struct<> +-- !query 3114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 3115 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 3115 schema +struct<> +-- !query 3115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 3116 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 3116 schema +struct<> +-- !query 3116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 3117 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 3117 schema +struct> +-- !query 3117 output +{"1":[B@6bd56574,"2":[B@55fed18} + + +-- !query 3118 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 3118 schema +struct<> +-- !query 3118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 3119 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3119 schema +struct<> +-- !query 3119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 3120 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3120 schema +struct<> +-- !query 3120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 3121 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 3121 schema +struct<> +-- !query 3121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3122 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 3122 schema +struct<> +-- !query 3122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3123 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 3123 schema +struct<> +-- !query 3123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3124 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 3124 schema +struct<> +-- !query 3124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3125 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 3125 schema +struct<> +-- !query 3125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3126 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 3126 schema +struct<> +-- !query 3126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3127 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 3127 schema +struct<> +-- !query 3127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3128 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 3128 schema +struct<> +-- !query 3128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3129 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 3129 schema +struct<> +-- !query 3129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3130 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 3130 schema +struct<> +-- !query 3130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3131 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3131 schema +struct<> +-- !query 3131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3132 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3132 schema +struct<> +-- !query 3132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3133 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 3133 schema +struct<> +-- !query 3133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3134 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 3134 schema +struct<> +-- !query 3134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3135 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 3135 schema +struct<> +-- !query 3135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3136 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 3136 schema +struct<> +-- !query 3136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3137 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 3137 schema +struct<> +-- !query 3137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3138 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 3138 schema +struct<> +-- !query 3138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3139 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 3139 schema +struct<> +-- !query 3139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3140 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 3140 schema +struct<> +-- !query 3140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3141 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 3141 schema +struct<> +-- !query 3141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3142 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 3142 schema +struct<> +-- !query 3142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3143 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3143 schema +struct<> +-- !query 3143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3144 +SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3144 schema +struct<> +-- !query 3144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3145 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 3145 schema +struct<> +-- !query 3145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3146 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 3146 schema +struct<> +-- !query 3146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3147 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 3147 schema +struct<> +-- !query 3147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3148 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 3148 schema +struct<> +-- !query 3148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3149 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 3149 schema +struct<> +-- !query 3149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3150 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 3150 schema +struct<> +-- !query 3150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3151 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 3151 schema +struct<> +-- !query 3151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3152 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 3152 schema +struct<> +-- !query 3152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3153 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 3153 schema +struct<> +-- !query 3153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3154 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 3154 schema +struct<> +-- !query 3154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3155 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3155 schema +struct<> +-- !query 3155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3156 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3156 schema +struct<> +-- !query 3156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3157 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 3157 schema +struct<> +-- !query 3157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3158 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 3158 schema +struct<> +-- !query 3158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3159 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 3159 schema +struct<> +-- !query 3159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3160 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 3160 schema +struct<> +-- !query 3160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3161 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 3161 schema +struct<> +-- !query 3161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3162 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 3162 schema +struct<> +-- !query 3162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3163 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 3163 schema +struct<> +-- !query 3163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3164 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 3164 schema +struct<> +-- !query 3164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3165 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 3165 schema +struct<> +-- !query 3165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3166 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 3166 schema +struct<> +-- !query 3166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3167 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3167 schema +struct<> +-- !query 3167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3168 +SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3168 schema +struct<> +-- !query 3168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3169 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 3169 schema +struct<> +-- !query 3169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3170 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 3170 schema +struct<> +-- !query 3170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3171 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 3171 schema +struct<> +-- !query 3171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3172 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 3172 schema +struct<> +-- !query 3172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3173 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 3173 schema +struct<> +-- !query 3173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3174 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 3174 schema +struct<> +-- !query 3174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3175 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 3175 schema +struct<> +-- !query 3175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3176 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 3176 schema +struct<> +-- !query 3176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3177 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 3177 schema +struct<> +-- !query 3177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3178 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 3178 schema +struct> +-- !query 3178 output +{1:true,2:true} + + +-- !query 3179 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3179 schema +struct<> +-- !query 3179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3180 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3180 schema +struct<> +-- !query 3180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3181 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 3181 schema +struct<> +-- !query 3181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3182 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 3182 schema +struct<> +-- !query 3182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3183 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 3183 schema +struct<> +-- !query 3183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3184 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 3184 schema +struct<> +-- !query 3184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3185 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 3185 schema +struct<> +-- !query 3185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3186 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 3186 schema +struct<> +-- !query 3186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3187 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 3187 schema +struct<> +-- !query 3187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3188 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 3188 schema +struct<> +-- !query 3188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3189 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 3189 schema +struct<> +-- !query 3189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3190 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 3190 schema +struct> +-- !query 3190 output +{1:true,2:true} + + +-- !query 3191 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3191 schema +struct<> +-- !query 3191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3192 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3192 schema +struct<> +-- !query 3192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3193 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 3193 schema +struct<> +-- !query 3193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3194 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 3194 schema +struct<> +-- !query 3194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3195 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 3195 schema +struct<> +-- !query 3195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3196 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 3196 schema +struct<> +-- !query 3196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3197 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 3197 schema +struct<> +-- !query 3197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3198 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 3198 schema +struct<> +-- !query 3198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3199 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 3199 schema +struct<> +-- !query 3199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3200 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 3200 schema +struct<> +-- !query 3200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3201 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 3201 schema +struct<> +-- !query 3201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3202 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 3202 schema +struct> +-- !query 3202 output +{1:true,2:true} + + +-- !query 3203 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3203 schema +struct<> +-- !query 3203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3204 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3204 schema +struct<> +-- !query 3204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3205 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 3205 schema +struct<> +-- !query 3205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3206 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 3206 schema +struct<> +-- !query 3206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3207 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 3207 schema +struct<> +-- !query 3207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3208 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 3208 schema +struct<> +-- !query 3208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3209 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 3209 schema +struct<> +-- !query 3209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3210 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 3210 schema +struct<> +-- !query 3210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3211 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 3211 schema +struct<> +-- !query 3211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3212 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 3212 schema +struct<> +-- !query 3212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3213 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 3213 schema +struct<> +-- !query 3213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3214 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 3214 schema +struct> +-- !query 3214 output +{1:true,2:true} + + +-- !query 3215 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3215 schema +struct<> +-- !query 3215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3216 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3216 schema +struct<> +-- !query 3216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3217 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 3217 schema +struct<> +-- !query 3217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3218 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 3218 schema +struct<> +-- !query 3218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3219 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 3219 schema +struct<> +-- !query 3219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3220 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 3220 schema +struct<> +-- !query 3220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3221 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 3221 schema +struct<> +-- !query 3221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3222 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 3222 schema +struct<> +-- !query 3222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3223 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 3223 schema +struct<> +-- !query 3223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3224 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 3224 schema +struct<> +-- !query 3224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3225 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 3225 schema +struct<> +-- !query 3225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3226 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 3226 schema +struct> +-- !query 3226 output +{1.0:true,2.0:true} + + +-- !query 3227 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3227 schema +struct<> +-- !query 3227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3228 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3228 schema +struct<> +-- !query 3228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3229 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 3229 schema +struct<> +-- !query 3229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3230 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 3230 schema +struct<> +-- !query 3230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3231 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 3231 schema +struct<> +-- !query 3231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3232 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 3232 schema +struct<> +-- !query 3232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3233 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 3233 schema +struct<> +-- !query 3233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3234 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 3234 schema +struct<> +-- !query 3234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3235 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 3235 schema +struct<> +-- !query 3235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3236 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 3236 schema +struct<> +-- !query 3236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3237 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 3237 schema +struct<> +-- !query 3237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3238 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 3238 schema +struct> +-- !query 3238 output +{1.0:true,2.0:true} + + +-- !query 3239 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3239 schema +struct<> +-- !query 3239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3240 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3240 schema +struct<> +-- !query 3240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3241 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 3241 schema +struct<> +-- !query 3241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3242 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 3242 schema +struct<> +-- !query 3242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3243 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 3243 schema +struct<> +-- !query 3243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3244 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 3244 schema +struct<> +-- !query 3244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3245 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 3245 schema +struct<> +-- !query 3245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3246 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 3246 schema +struct<> +-- !query 3246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3247 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 3247 schema +struct<> +-- !query 3247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3248 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 3248 schema +struct<> +-- !query 3248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3249 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 3249 schema +struct<> +-- !query 3249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3250 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 3250 schema +struct> +-- !query 3250 output +{1:true,2:true} + + +-- !query 3251 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3251 schema +struct<> +-- !query 3251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3252 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3252 schema +struct<> +-- !query 3252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3253 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 3253 schema +struct<> +-- !query 3253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 3254 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 3254 schema +struct<> +-- !query 3254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 3255 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 3255 schema +struct<> +-- !query 3255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 3256 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 3256 schema +struct<> +-- !query 3256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 3257 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 3257 schema +struct<> +-- !query 3257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 3258 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 3258 schema +struct<> +-- !query 3258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 3259 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 3259 schema +struct<> +-- !query 3259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 3260 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 3260 schema +struct<> +-- !query 3260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 3261 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 3261 schema +struct<> +-- !query 3261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 3262 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 3262 schema +struct> +-- !query 3262 output +{"1":true,"2":true} + + +-- !query 3263 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3263 schema +struct<> +-- !query 3263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 3264 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3264 schema +struct<> +-- !query 3264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 3265 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 3265 schema +struct<> +-- !query 3265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3266 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 3266 schema +struct<> +-- !query 3266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3267 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 3267 schema +struct<> +-- !query 3267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3268 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 3268 schema +struct<> +-- !query 3268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3269 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 3269 schema +struct<> +-- !query 3269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3270 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 3270 schema +struct<> +-- !query 3270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3271 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 3271 schema +struct<> +-- !query 3271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3272 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 3272 schema +struct<> +-- !query 3272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3273 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 3273 schema +struct<> +-- !query 3273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3274 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 3274 schema +struct<> +-- !query 3274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3275 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3275 schema +struct<> +-- !query 3275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3276 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3276 schema +struct<> +-- !query 3276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3277 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 3277 schema +struct<> +-- !query 3277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3278 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 3278 schema +struct<> +-- !query 3278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3279 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 3279 schema +struct<> +-- !query 3279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3280 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 3280 schema +struct<> +-- !query 3280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3281 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 3281 schema +struct<> +-- !query 3281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3282 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 3282 schema +struct<> +-- !query 3282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3283 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 3283 schema +struct<> +-- !query 3283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3284 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 3284 schema +struct<> +-- !query 3284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3285 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 3285 schema +struct<> +-- !query 3285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3286 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 3286 schema +struct<> +-- !query 3286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3287 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3287 schema +struct<> +-- !query 3287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3288 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3288 schema +struct<> +-- !query 3288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3289 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 3289 schema +struct<> +-- !query 3289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3290 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 3290 schema +struct<> +-- !query 3290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3291 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 3291 schema +struct<> +-- !query 3291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3292 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 3292 schema +struct<> +-- !query 3292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3293 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 3293 schema +struct<> +-- !query 3293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3294 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 3294 schema +struct<> +-- !query 3294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3295 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 3295 schema +struct<> +-- !query 3295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3296 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 3296 schema +struct<> +-- !query 3296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3297 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 3297 schema +struct<> +-- !query 3297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3298 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 3298 schema +struct<> +-- !query 3298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3299 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3299 schema +struct<> +-- !query 3299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3300 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3300 schema +struct<> +-- !query 3300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3301 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 3301 schema +struct<> +-- !query 3301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3302 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 3302 schema +struct<> +-- !query 3302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3303 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 3303 schema +struct<> +-- !query 3303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3304 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 3304 schema +struct<> +-- !query 3304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3305 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 3305 schema +struct<> +-- !query 3305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3306 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 3306 schema +struct<> +-- !query 3306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3307 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 3307 schema +struct<> +-- !query 3307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3308 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 3308 schema +struct<> +-- !query 3308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3309 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 3309 schema +struct<> +-- !query 3309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3310 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 3310 schema +struct<> +-- !query 3310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3311 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3311 schema +struct<> +-- !query 3311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3312 +SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3312 schema +struct<> +-- !query 3312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3313 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 3313 schema +struct<> +-- !query 3313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3314 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 3314 schema +struct<> +-- !query 3314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3315 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 3315 schema +struct<> +-- !query 3315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3316 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 3316 schema +struct<> +-- !query 3316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3317 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 3317 schema +struct<> +-- !query 3317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3318 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 3318 schema +struct<> +-- !query 3318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3319 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 3319 schema +struct<> +-- !query 3319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3320 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 3320 schema +struct> +-- !query 3320 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 3321 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 3321 schema +struct<> +-- !query 3321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3322 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 3322 schema +struct<> +-- !query 3322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3323 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3323 schema +struct> +-- !query 3323 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3324 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3324 schema +struct> +-- !query 3324 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 3325 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 3325 schema +struct<> +-- !query 3325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3326 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 3326 schema +struct<> +-- !query 3326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3327 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 3327 schema +struct<> +-- !query 3327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3328 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 3328 schema +struct<> +-- !query 3328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3329 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 3329 schema +struct<> +-- !query 3329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3330 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 3330 schema +struct<> +-- !query 3330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3331 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 3331 schema +struct<> +-- !query 3331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3332 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 3332 schema +struct> +-- !query 3332 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 3333 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 3333 schema +struct<> +-- !query 3333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3334 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 3334 schema +struct<> +-- !query 3334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3335 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3335 schema +struct> +-- !query 3335 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3336 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3336 schema +struct> +-- !query 3336 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 3337 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 3337 schema +struct<> +-- !query 3337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3338 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 3338 schema +struct<> +-- !query 3338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3339 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 3339 schema +struct<> +-- !query 3339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3340 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 3340 schema +struct<> +-- !query 3340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3341 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 3341 schema +struct<> +-- !query 3341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3342 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 3342 schema +struct<> +-- !query 3342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3343 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 3343 schema +struct<> +-- !query 3343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3344 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 3344 schema +struct> +-- !query 3344 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 3345 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 3345 schema +struct<> +-- !query 3345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3346 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 3346 schema +struct<> +-- !query 3346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3347 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3347 schema +struct> +-- !query 3347 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3348 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3348 schema +struct> +-- !query 3348 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 3349 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 3349 schema +struct<> +-- !query 3349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3350 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 3350 schema +struct<> +-- !query 3350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3351 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 3351 schema +struct<> +-- !query 3351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3352 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 3352 schema +struct<> +-- !query 3352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3353 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 3353 schema +struct<> +-- !query 3353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3354 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 3354 schema +struct<> +-- !query 3354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3355 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 3355 schema +struct<> +-- !query 3355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3356 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 3356 schema +struct> +-- !query 3356 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 3357 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 3357 schema +struct<> +-- !query 3357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3358 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 3358 schema +struct<> +-- !query 3358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3359 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3359 schema +struct> +-- !query 3359 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3360 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3360 schema +struct> +-- !query 3360 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 3361 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 3361 schema +struct<> +-- !query 3361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3362 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 3362 schema +struct<> +-- !query 3362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3363 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 3363 schema +struct<> +-- !query 3363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3364 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 3364 schema +struct<> +-- !query 3364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3365 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 3365 schema +struct<> +-- !query 3365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3366 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 3366 schema +struct<> +-- !query 3366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3367 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 3367 schema +struct<> +-- !query 3367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3368 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 3368 schema +struct> +-- !query 3368 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 3369 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 3369 schema +struct<> +-- !query 3369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3370 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 3370 schema +struct<> +-- !query 3370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3371 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3371 schema +struct> +-- !query 3371 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 3372 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3372 schema +struct> +-- !query 3372 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 3373 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 3373 schema +struct<> +-- !query 3373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3374 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 3374 schema +struct<> +-- !query 3374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3375 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 3375 schema +struct<> +-- !query 3375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3376 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 3376 schema +struct<> +-- !query 3376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3377 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 3377 schema +struct<> +-- !query 3377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3378 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 3378 schema +struct<> +-- !query 3378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3379 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 3379 schema +struct<> +-- !query 3379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3380 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 3380 schema +struct> +-- !query 3380 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 3381 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 3381 schema +struct<> +-- !query 3381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3382 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 3382 schema +struct<> +-- !query 3382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3383 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3383 schema +struct> +-- !query 3383 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 3384 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3384 schema +struct> +-- !query 3384 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 3385 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 3385 schema +struct<> +-- !query 3385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3386 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 3386 schema +struct<> +-- !query 3386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3387 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 3387 schema +struct<> +-- !query 3387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3388 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 3388 schema +struct<> +-- !query 3388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3389 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 3389 schema +struct<> +-- !query 3389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3390 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 3390 schema +struct<> +-- !query 3390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3391 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 3391 schema +struct<> +-- !query 3391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3392 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 3392 schema +struct> +-- !query 3392 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 3393 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 3393 schema +struct<> +-- !query 3393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3394 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 3394 schema +struct<> +-- !query 3394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3395 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3395 schema +struct> +-- !query 3395 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3396 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3396 schema +struct> +-- !query 3396 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 3397 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 3397 schema +struct<> +-- !query 3397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 3398 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 3398 schema +struct<> +-- !query 3398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 3399 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 3399 schema +struct<> +-- !query 3399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 3400 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 3400 schema +struct<> +-- !query 3400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 3401 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 3401 schema +struct<> +-- !query 3401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 3402 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 3402 schema +struct<> +-- !query 3402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 3403 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 3403 schema +struct<> +-- !query 3403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 3404 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 3404 schema +struct> +-- !query 3404 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 3405 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 3405 schema +struct<> +-- !query 3405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 3406 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 3406 schema +struct<> +-- !query 3406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 3407 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3407 schema +struct> +-- !query 3407 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 3408 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3408 schema +struct> +-- !query 3408 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 3409 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 3409 schema +struct<> +-- !query 3409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3410 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 3410 schema +struct<> +-- !query 3410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3411 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 3411 schema +struct<> +-- !query 3411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3412 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 3412 schema +struct<> +-- !query 3412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3413 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 3413 schema +struct<> +-- !query 3413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3414 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 3414 schema +struct<> +-- !query 3414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3415 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 3415 schema +struct<> +-- !query 3415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3416 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 3416 schema +struct<> +-- !query 3416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3417 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 3417 schema +struct<> +-- !query 3417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3418 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 3418 schema +struct<> +-- !query 3418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3419 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3419 schema +struct<> +-- !query 3419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3420 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3420 schema +struct<> +-- !query 3420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3421 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 3421 schema +struct<> +-- !query 3421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3422 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 3422 schema +struct<> +-- !query 3422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3423 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 3423 schema +struct<> +-- !query 3423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3424 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 3424 schema +struct<> +-- !query 3424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3425 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 3425 schema +struct<> +-- !query 3425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3426 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 3426 schema +struct<> +-- !query 3426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3427 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 3427 schema +struct<> +-- !query 3427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3428 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 3428 schema +struct<> +-- !query 3428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3429 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 3429 schema +struct<> +-- !query 3429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3430 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 3430 schema +struct<> +-- !query 3430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3431 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3431 schema +struct<> +-- !query 3431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3432 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3432 schema +struct<> +-- !query 3432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3433 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 3433 schema +struct<> +-- !query 3433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3434 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 3434 schema +struct<> +-- !query 3434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3435 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 3435 schema +struct<> +-- !query 3435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3436 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 3436 schema +struct<> +-- !query 3436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3437 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 3437 schema +struct<> +-- !query 3437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3438 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 3438 schema +struct<> +-- !query 3438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3439 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 3439 schema +struct<> +-- !query 3439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3440 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 3440 schema +struct<> +-- !query 3440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3441 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 3441 schema +struct<> +-- !query 3441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3442 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 3442 schema +struct<> +-- !query 3442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3443 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3443 schema +struct<> +-- !query 3443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3444 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3444 schema +struct<> +-- !query 3444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3445 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 3445 schema +struct<> +-- !query 3445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3446 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 3446 schema +struct<> +-- !query 3446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3447 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 3447 schema +struct<> +-- !query 3447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3448 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 3448 schema +struct<> +-- !query 3448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3449 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 3449 schema +struct<> +-- !query 3449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3450 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 3450 schema +struct<> +-- !query 3450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3451 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 3451 schema +struct<> +-- !query 3451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3452 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 3452 schema +struct<> +-- !query 3452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3453 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 3453 schema +struct<> +-- !query 3453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3454 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 3454 schema +struct<> +-- !query 3454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3455 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3455 schema +struct<> +-- !query 3455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3456 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3456 schema +struct<> +-- !query 3456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3457 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 3457 schema +struct<> +-- !query 3457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3458 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 3458 schema +struct<> +-- !query 3458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3459 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 3459 schema +struct<> +-- !query 3459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3460 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 3460 schema +struct<> +-- !query 3460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3461 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 3461 schema +struct<> +-- !query 3461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3462 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 3462 schema +struct<> +-- !query 3462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3463 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 3463 schema +struct<> +-- !query 3463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3464 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 3464 schema +struct> +-- !query 3464 output +{1:"2017-12-11",2:"2"} + + +-- !query 3465 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 3465 schema +struct<> +-- !query 3465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3466 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 3466 schema +struct<> +-- !query 3466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3467 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3467 schema +struct> +-- !query 3467 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3468 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3468 schema +struct> +-- !query 3468 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 3469 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 3469 schema +struct<> +-- !query 3469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3470 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 3470 schema +struct<> +-- !query 3470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3471 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 3471 schema +struct<> +-- !query 3471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3472 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 3472 schema +struct<> +-- !query 3472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3473 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 3473 schema +struct<> +-- !query 3473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3474 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 3474 schema +struct<> +-- !query 3474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3475 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 3475 schema +struct<> +-- !query 3475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3476 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 3476 schema +struct> +-- !query 3476 output +{1:"2017-12-11",2:"2"} + + +-- !query 3477 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 3477 schema +struct<> +-- !query 3477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3478 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 3478 schema +struct<> +-- !query 3478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3479 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3479 schema +struct> +-- !query 3479 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3480 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3480 schema +struct> +-- !query 3480 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 3481 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 3481 schema +struct<> +-- !query 3481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3482 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 3482 schema +struct<> +-- !query 3482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3483 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 3483 schema +struct<> +-- !query 3483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3484 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 3484 schema +struct<> +-- !query 3484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3485 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 3485 schema +struct<> +-- !query 3485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3486 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 3486 schema +struct<> +-- !query 3486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3487 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 3487 schema +struct<> +-- !query 3487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3488 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 3488 schema +struct> +-- !query 3488 output +{1:"2017-12-11",2:"2"} + + +-- !query 3489 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 3489 schema +struct<> +-- !query 3489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3490 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 3490 schema +struct<> +-- !query 3490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3491 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3491 schema +struct> +-- !query 3491 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3492 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3492 schema +struct> +-- !query 3492 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 3493 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 3493 schema +struct<> +-- !query 3493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3494 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 3494 schema +struct<> +-- !query 3494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3495 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 3495 schema +struct<> +-- !query 3495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3496 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 3496 schema +struct<> +-- !query 3496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3497 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 3497 schema +struct<> +-- !query 3497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3498 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 3498 schema +struct<> +-- !query 3498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3499 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 3499 schema +struct<> +-- !query 3499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3500 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 3500 schema +struct> +-- !query 3500 output +{1:"2017-12-11",2:"2"} + + +-- !query 3501 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 3501 schema +struct<> +-- !query 3501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3502 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 3502 schema +struct<> +-- !query 3502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3503 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3503 schema +struct> +-- !query 3503 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3504 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3504 schema +struct> +-- !query 3504 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 3505 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 3505 schema +struct<> +-- !query 3505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3506 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 3506 schema +struct<> +-- !query 3506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3507 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 3507 schema +struct<> +-- !query 3507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3508 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 3508 schema +struct<> +-- !query 3508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3509 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 3509 schema +struct<> +-- !query 3509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3510 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 3510 schema +struct<> +-- !query 3510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3511 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 3511 schema +struct<> +-- !query 3511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3512 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 3512 schema +struct> +-- !query 3512 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 3513 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 3513 schema +struct<> +-- !query 3513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3514 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 3514 schema +struct<> +-- !query 3514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3515 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3515 schema +struct> +-- !query 3515 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 3516 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3516 schema +struct> +-- !query 3516 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 3517 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 3517 schema +struct<> +-- !query 3517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3518 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 3518 schema +struct<> +-- !query 3518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3519 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 3519 schema +struct<> +-- !query 3519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3520 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 3520 schema +struct<> +-- !query 3520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3521 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 3521 schema +struct<> +-- !query 3521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3522 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 3522 schema +struct<> +-- !query 3522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3523 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 3523 schema +struct<> +-- !query 3523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3524 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 3524 schema +struct> +-- !query 3524 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 3525 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 3525 schema +struct<> +-- !query 3525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3526 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 3526 schema +struct<> +-- !query 3526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3527 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3527 schema +struct> +-- !query 3527 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 3528 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3528 schema +struct> +-- !query 3528 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 3529 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 3529 schema +struct<> +-- !query 3529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3530 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 3530 schema +struct<> +-- !query 3530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3531 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 3531 schema +struct<> +-- !query 3531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3532 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 3532 schema +struct<> +-- !query 3532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3533 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 3533 schema +struct<> +-- !query 3533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3534 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 3534 schema +struct<> +-- !query 3534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3535 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 3535 schema +struct<> +-- !query 3535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3536 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 3536 schema +struct> +-- !query 3536 output +{1:"2017-12-11",2:"2"} + + +-- !query 3537 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 3537 schema +struct<> +-- !query 3537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3538 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 3538 schema +struct<> +-- !query 3538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3539 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3539 schema +struct> +-- !query 3539 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 3540 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3540 schema +struct> +-- !query 3540 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 3541 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 3541 schema +struct<> +-- !query 3541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 3542 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 3542 schema +struct<> +-- !query 3542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 3543 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 3543 schema +struct<> +-- !query 3543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 3544 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 3544 schema +struct<> +-- !query 3544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 3545 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 3545 schema +struct<> +-- !query 3545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 3546 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 3546 schema +struct<> +-- !query 3546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 3547 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 3547 schema +struct<> +-- !query 3547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 3548 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 3548 schema +struct> +-- !query 3548 output +{"1":"2017-12-11","2":"2"} + + +-- !query 3549 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 3549 schema +struct<> +-- !query 3549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 3550 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 3550 schema +struct<> +-- !query 3550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 3551 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3551 schema +struct> +-- !query 3551 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 3552 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3552 schema +struct> +-- !query 3552 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 3553 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 3553 schema +struct<> +-- !query 3553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3554 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 3554 schema +struct<> +-- !query 3554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3555 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 3555 schema +struct<> +-- !query 3555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3556 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 3556 schema +struct<> +-- !query 3556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3557 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 3557 schema +struct<> +-- !query 3557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3558 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 3558 schema +struct<> +-- !query 3558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3559 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 3559 schema +struct<> +-- !query 3559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3560 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 3560 schema +struct<> +-- !query 3560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3561 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 3561 schema +struct<> +-- !query 3561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3562 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 3562 schema +struct<> +-- !query 3562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3563 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3563 schema +struct<> +-- !query 3563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3564 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3564 schema +struct<> +-- !query 3564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3565 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 3565 schema +struct<> +-- !query 3565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3566 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 3566 schema +struct<> +-- !query 3566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3567 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 3567 schema +struct<> +-- !query 3567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3568 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 3568 schema +struct<> +-- !query 3568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3569 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 3569 schema +struct<> +-- !query 3569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3570 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 3570 schema +struct<> +-- !query 3570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3571 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 3571 schema +struct<> +-- !query 3571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3572 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 3572 schema +struct<> +-- !query 3572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3573 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 3573 schema +struct<> +-- !query 3573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3574 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 3574 schema +struct<> +-- !query 3574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3575 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3575 schema +struct<> +-- !query 3575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3576 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3576 schema +struct<> +-- !query 3576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3577 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 3577 schema +struct<> +-- !query 3577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3578 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 3578 schema +struct<> +-- !query 3578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3579 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 3579 schema +struct<> +-- !query 3579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3580 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 3580 schema +struct<> +-- !query 3580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3581 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 3581 schema +struct<> +-- !query 3581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3582 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 3582 schema +struct<> +-- !query 3582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3583 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 3583 schema +struct<> +-- !query 3583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3584 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 3584 schema +struct<> +-- !query 3584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3585 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 3585 schema +struct<> +-- !query 3585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3586 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 3586 schema +struct<> +-- !query 3586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3587 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3587 schema +struct<> +-- !query 3587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3588 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3588 schema +struct<> +-- !query 3588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3589 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 3589 schema +struct<> +-- !query 3589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3590 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 3590 schema +struct<> +-- !query 3590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3591 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 3591 schema +struct<> +-- !query 3591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3592 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 3592 schema +struct<> +-- !query 3592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3593 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 3593 schema +struct<> +-- !query 3593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3594 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 3594 schema +struct<> +-- !query 3594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3595 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 3595 schema +struct<> +-- !query 3595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3596 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 3596 schema +struct<> +-- !query 3596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3597 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 3597 schema +struct<> +-- !query 3597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3598 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 3598 schema +struct<> +-- !query 3598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3599 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3599 schema +struct<> +-- !query 3599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3600 +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3600 schema +struct<> +-- !query 3600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3601 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 3601 schema +struct> +-- !query 3601 output +{1:1,2:2} + + +-- !query 3602 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 3602 schema +struct> +-- !query 3602 output +{1:1,2:2} + + +-- !query 3603 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 3603 schema +struct> +-- !query 3603 output +{1:1,2:2} + + +-- !query 3604 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 3604 schema +struct> +-- !query 3604 output +{1:1,2:2} + + +-- !query 3605 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 3605 schema +struct> +-- !query 3605 output +{1:1.0,2:2.0} + + +-- !query 3606 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 3606 schema +struct> +-- !query 3606 output +{1:1.0,2:2.0} + + +-- !query 3607 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 3607 schema +struct> +-- !query 3607 output +{1:1,2:2} + + +-- !query 3608 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 3608 schema +struct> +-- !query 3608 output +{1:"1",2:"2"} + + +-- !query 3609 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 3609 schema +struct<> +-- !query 3609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3610 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 3610 schema +struct<> +-- !query 3610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3611 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3611 schema +struct<> +-- !query 3611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3612 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3612 schema +struct<> +-- !query 3612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3613 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 3613 schema +struct> +-- !query 3613 output +{1:1,2:2} + + +-- !query 3614 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 3614 schema +struct> +-- !query 3614 output +{1:1,2:2} + + +-- !query 3615 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 3615 schema +struct> +-- !query 3615 output +{1:1,2:2} + + +-- !query 3616 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 3616 schema +struct> +-- !query 3616 output +{1:1,2:2} + + +-- !query 3617 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 3617 schema +struct> +-- !query 3617 output +{1:1.0,2:2.0} + + +-- !query 3618 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 3618 schema +struct> +-- !query 3618 output +{1:1.0,2:2.0} + + +-- !query 3619 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 3619 schema +struct> +-- !query 3619 output +{1:1,2:2} + + +-- !query 3620 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 3620 schema +struct> +-- !query 3620 output +{1:"1",2:"2"} + + +-- !query 3621 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 3621 schema +struct<> +-- !query 3621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3622 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 3622 schema +struct<> +-- !query 3622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3623 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3623 schema +struct<> +-- !query 3623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3624 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3624 schema +struct<> +-- !query 3624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3625 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 3625 schema +struct> +-- !query 3625 output +{1:1,2:2} + + +-- !query 3626 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 3626 schema +struct> +-- !query 3626 output +{1:1,2:2} + + +-- !query 3627 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 3627 schema +struct> +-- !query 3627 output +{1:1,2:2} + + +-- !query 3628 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 3628 schema +struct> +-- !query 3628 output +{1:1,2:2} + + +-- !query 3629 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 3629 schema +struct> +-- !query 3629 output +{1:1.0,2:2.0} + + +-- !query 3630 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 3630 schema +struct> +-- !query 3630 output +{1:1.0,2:2.0} + + +-- !query 3631 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 3631 schema +struct> +-- !query 3631 output +{1:1,2:2} + + +-- !query 3632 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 3632 schema +struct> +-- !query 3632 output +{1:"1",2:"2"} + + +-- !query 3633 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 3633 schema +struct<> +-- !query 3633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3634 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 3634 schema +struct<> +-- !query 3634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3635 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3635 schema +struct<> +-- !query 3635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3636 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3636 schema +struct<> +-- !query 3636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3637 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 3637 schema +struct> +-- !query 3637 output +{1:1,2:2} + + +-- !query 3638 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 3638 schema +struct> +-- !query 3638 output +{1:1,2:2} + + +-- !query 3639 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 3639 schema +struct> +-- !query 3639 output +{1:1,2:2} + + +-- !query 3640 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 3640 schema +struct> +-- !query 3640 output +{1:1,2:2} + + +-- !query 3641 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 3641 schema +struct> +-- !query 3641 output +{1:1.0,2:2.0} + + +-- !query 3642 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 3642 schema +struct> +-- !query 3642 output +{1:1.0,2:2.0} + + +-- !query 3643 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 3643 schema +struct> +-- !query 3643 output +{1:1,2:2} + + +-- !query 3644 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 3644 schema +struct> +-- !query 3644 output +{1:"1",2:"2"} + + +-- !query 3645 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 3645 schema +struct<> +-- !query 3645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3646 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 3646 schema +struct<> +-- !query 3646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3647 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3647 schema +struct<> +-- !query 3647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3648 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3648 schema +struct<> +-- !query 3648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3649 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 3649 schema +struct> +-- !query 3649 output +{1.0:1,2.0:2} + + +-- !query 3650 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 3650 schema +struct> +-- !query 3650 output +{1.0:1,2.0:2} + + +-- !query 3651 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 3651 schema +struct> +-- !query 3651 output +{1.0:1,2.0:2} + + +-- !query 3652 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 3652 schema +struct> +-- !query 3652 output +{1.0:1,2.0:2} + + +-- !query 3653 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 3653 schema +struct> +-- !query 3653 output +{1.0:1.0,2.0:2.0} + + +-- !query 3654 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 3654 schema +struct> +-- !query 3654 output +{1.0:1.0,2.0:2.0} + + +-- !query 3655 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 3655 schema +struct> +-- !query 3655 output +{1.0:1,2.0:2} + + +-- !query 3656 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 3656 schema +struct> +-- !query 3656 output +{1.0:"1",2.0:"2"} + + +-- !query 3657 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 3657 schema +struct<> +-- !query 3657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3658 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 3658 schema +struct<> +-- !query 3658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3659 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3659 schema +struct<> +-- !query 3659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3660 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3660 schema +struct<> +-- !query 3660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3661 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 3661 schema +struct> +-- !query 3661 output +{1.0:1,2.0:2} + + +-- !query 3662 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 3662 schema +struct> +-- !query 3662 output +{1.0:1,2.0:2} + + +-- !query 3663 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 3663 schema +struct> +-- !query 3663 output +{1.0:1,2.0:2} + + +-- !query 3664 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 3664 schema +struct> +-- !query 3664 output +{1.0:1,2.0:2} + + +-- !query 3665 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 3665 schema +struct> +-- !query 3665 output +{1.0:1.0,2.0:2.0} + + +-- !query 3666 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 3666 schema +struct> +-- !query 3666 output +{1.0:1.0,2.0:2.0} + + +-- !query 3667 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 3667 schema +struct> +-- !query 3667 output +{1.0:1,2.0:2} + + +-- !query 3668 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 3668 schema +struct> +-- !query 3668 output +{1.0:"1",2.0:"2"} + + +-- !query 3669 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 3669 schema +struct<> +-- !query 3669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3670 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 3670 schema +struct<> +-- !query 3670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3671 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3671 schema +struct<> +-- !query 3671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3672 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3672 schema +struct<> +-- !query 3672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3673 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 3673 schema +struct> +-- !query 3673 output +{1:1,2:2} + + +-- !query 3674 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 3674 schema +struct> +-- !query 3674 output +{1:1,2:2} + + +-- !query 3675 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 3675 schema +struct> +-- !query 3675 output +{1:1,2:2} + + +-- !query 3676 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 3676 schema +struct> +-- !query 3676 output +{1:1,2:2} + + +-- !query 3677 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 3677 schema +struct> +-- !query 3677 output +{1:1.0,2:2.0} + + +-- !query 3678 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 3678 schema +struct> +-- !query 3678 output +{1:1.0,2:2.0} + + +-- !query 3679 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 3679 schema +struct> +-- !query 3679 output +{1:1,2:2} + + +-- !query 3680 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 3680 schema +struct> +-- !query 3680 output +{1:"1",2:"2"} + + +-- !query 3681 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 3681 schema +struct<> +-- !query 3681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3682 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 3682 schema +struct<> +-- !query 3682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3683 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3683 schema +struct<> +-- !query 3683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3684 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3684 schema +struct<> +-- !query 3684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3685 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 3685 schema +struct> +-- !query 3685 output +{"1":1,"2":2} + + +-- !query 3686 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 3686 schema +struct> +-- !query 3686 output +{"1":1,"2":2} + + +-- !query 3687 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 3687 schema +struct> +-- !query 3687 output +{"1":1,"2":2} + + +-- !query 3688 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 3688 schema +struct> +-- !query 3688 output +{"1":1,"2":2} + + +-- !query 3689 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 3689 schema +struct> +-- !query 3689 output +{"1":1.0,"2":2.0} + + +-- !query 3690 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 3690 schema +struct> +-- !query 3690 output +{"1":1.0,"2":2.0} + + +-- !query 3691 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 3691 schema +struct> +-- !query 3691 output +{"1":1,"2":2} + + +-- !query 3692 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 3692 schema +struct> +-- !query 3692 output +{"1":"1","2":"2"} + + +-- !query 3693 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 3693 schema +struct<> +-- !query 3693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 3694 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 3694 schema +struct<> +-- !query 3694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 3695 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3695 schema +struct<> +-- !query 3695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 3696 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3696 schema +struct<> +-- !query 3696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 3697 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 3697 schema +struct<> +-- !query 3697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3698 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 3698 schema +struct<> +-- !query 3698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3699 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 3699 schema +struct<> +-- !query 3699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3700 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 3700 schema +struct<> +-- !query 3700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3701 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 3701 schema +struct<> +-- !query 3701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3702 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 3702 schema +struct<> +-- !query 3702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3703 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 3703 schema +struct<> +-- !query 3703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3704 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 3704 schema +struct<> +-- !query 3704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3705 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 3705 schema +struct<> +-- !query 3705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3706 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 3706 schema +struct<> +-- !query 3706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3707 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3707 schema +struct<> +-- !query 3707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3708 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3708 schema +struct<> +-- !query 3708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3709 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 3709 schema +struct<> +-- !query 3709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3710 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 3710 schema +struct<> +-- !query 3710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3711 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 3711 schema +struct<> +-- !query 3711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3712 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 3712 schema +struct<> +-- !query 3712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3713 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 3713 schema +struct<> +-- !query 3713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3714 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 3714 schema +struct<> +-- !query 3714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3715 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 3715 schema +struct<> +-- !query 3715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3716 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 3716 schema +struct<> +-- !query 3716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3717 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 3717 schema +struct<> +-- !query 3717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3718 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 3718 schema +struct<> +-- !query 3718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3719 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3719 schema +struct<> +-- !query 3719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3720 +SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3720 schema +struct<> +-- !query 3720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3721 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 3721 schema +struct<> +-- !query 3721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3722 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 3722 schema +struct<> +-- !query 3722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3723 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 3723 schema +struct<> +-- !query 3723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3724 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 3724 schema +struct<> +-- !query 3724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3725 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 3725 schema +struct<> +-- !query 3725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3726 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 3726 schema +struct<> +-- !query 3726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3727 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 3727 schema +struct<> +-- !query 3727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3728 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 3728 schema +struct<> +-- !query 3728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3729 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 3729 schema +struct<> +-- !query 3729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3730 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 3730 schema +struct<> +-- !query 3730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3731 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3731 schema +struct<> +-- !query 3731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3732 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3732 schema +struct<> +-- !query 3732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3733 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 3733 schema +struct<> +-- !query 3733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3734 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 3734 schema +struct<> +-- !query 3734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3735 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 3735 schema +struct<> +-- !query 3735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3736 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 3736 schema +struct<> +-- !query 3736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3737 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 3737 schema +struct<> +-- !query 3737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3738 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 3738 schema +struct<> +-- !query 3738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3739 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 3739 schema +struct<> +-- !query 3739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3740 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 3740 schema +struct<> +-- !query 3740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3741 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 3741 schema +struct<> +-- !query 3741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3742 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 3742 schema +struct<> +-- !query 3742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3743 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3743 schema +struct<> +-- !query 3743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3744 +SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3744 schema +struct<> +-- !query 3744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3745 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 3745 schema +struct> +-- !query 3745 output +{1:1,2:2} + + +-- !query 3746 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 3746 schema +struct> +-- !query 3746 output +{1:1,2:2} + + +-- !query 3747 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 3747 schema +struct> +-- !query 3747 output +{1:1,2:2} + + +-- !query 3748 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 3748 schema +struct> +-- !query 3748 output +{1:1,2:2} + + +-- !query 3749 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 3749 schema +struct> +-- !query 3749 output +{1:1.0,2:2.0} + + +-- !query 3750 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 3750 schema +struct> +-- !query 3750 output +{1:1.0,2:2.0} + + +-- !query 3751 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 3751 schema +struct> +-- !query 3751 output +{1:1,2:2} + + +-- !query 3752 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 3752 schema +struct> +-- !query 3752 output +{1:"1",2:"2"} + + +-- !query 3753 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 3753 schema +struct<> +-- !query 3753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3754 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 3754 schema +struct<> +-- !query 3754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3755 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3755 schema +struct<> +-- !query 3755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3756 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3756 schema +struct<> +-- !query 3756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3757 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 3757 schema +struct> +-- !query 3757 output +{1:1,2:2} + + +-- !query 3758 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 3758 schema +struct> +-- !query 3758 output +{1:1,2:2} + + +-- !query 3759 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 3759 schema +struct> +-- !query 3759 output +{1:1,2:2} + + +-- !query 3760 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 3760 schema +struct> +-- !query 3760 output +{1:1,2:2} + + +-- !query 3761 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 3761 schema +struct> +-- !query 3761 output +{1:1.0,2:2.0} + + +-- !query 3762 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 3762 schema +struct> +-- !query 3762 output +{1:1.0,2:2.0} + + +-- !query 3763 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 3763 schema +struct> +-- !query 3763 output +{1:1,2:2} + + +-- !query 3764 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 3764 schema +struct> +-- !query 3764 output +{1:"1",2:"2"} + + +-- !query 3765 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 3765 schema +struct<> +-- !query 3765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3766 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 3766 schema +struct<> +-- !query 3766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3767 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3767 schema +struct<> +-- !query 3767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3768 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3768 schema +struct<> +-- !query 3768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3769 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 3769 schema +struct> +-- !query 3769 output +{1:1,2:2} + + +-- !query 3770 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 3770 schema +struct> +-- !query 3770 output +{1:1,2:2} + + +-- !query 3771 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 3771 schema +struct> +-- !query 3771 output +{1:1,2:2} + + +-- !query 3772 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 3772 schema +struct> +-- !query 3772 output +{1:1,2:2} + + +-- !query 3773 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 3773 schema +struct> +-- !query 3773 output +{1:1.0,2:2.0} + + +-- !query 3774 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 3774 schema +struct> +-- !query 3774 output +{1:1.0,2:2.0} + + +-- !query 3775 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 3775 schema +struct> +-- !query 3775 output +{1:1,2:2} + + +-- !query 3776 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 3776 schema +struct> +-- !query 3776 output +{1:"1",2:"2"} + + +-- !query 3777 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 3777 schema +struct<> +-- !query 3777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3778 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 3778 schema +struct<> +-- !query 3778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3779 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3779 schema +struct<> +-- !query 3779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3780 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3780 schema +struct<> +-- !query 3780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3781 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 3781 schema +struct> +-- !query 3781 output +{1:1,2:2} + + +-- !query 3782 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 3782 schema +struct> +-- !query 3782 output +{1:1,2:2} + + +-- !query 3783 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 3783 schema +struct> +-- !query 3783 output +{1:1,2:2} + + +-- !query 3784 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 3784 schema +struct> +-- !query 3784 output +{1:1,2:2} + + +-- !query 3785 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 3785 schema +struct> +-- !query 3785 output +{1:1.0,2:2.0} + + +-- !query 3786 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 3786 schema +struct> +-- !query 3786 output +{1:1.0,2:2.0} + + +-- !query 3787 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 3787 schema +struct> +-- !query 3787 output +{1:1,2:2} + + +-- !query 3788 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 3788 schema +struct> +-- !query 3788 output +{1:"1",2:"2"} + + +-- !query 3789 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 3789 schema +struct<> +-- !query 3789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3790 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 3790 schema +struct<> +-- !query 3790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3791 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3791 schema +struct<> +-- !query 3791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3792 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3792 schema +struct<> +-- !query 3792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3793 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 3793 schema +struct> +-- !query 3793 output +{1.0:1,2.0:2} + + +-- !query 3794 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 3794 schema +struct> +-- !query 3794 output +{1.0:1,2.0:2} + + +-- !query 3795 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 3795 schema +struct> +-- !query 3795 output +{1.0:1,2.0:2} + + +-- !query 3796 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 3796 schema +struct> +-- !query 3796 output +{1.0:1,2.0:2} + + +-- !query 3797 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 3797 schema +struct> +-- !query 3797 output +{1.0:1.0,2.0:2.0} + + +-- !query 3798 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 3798 schema +struct> +-- !query 3798 output +{1.0:1.0,2.0:2.0} + + +-- !query 3799 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 3799 schema +struct> +-- !query 3799 output +{1.0:1,2.0:2} + + +-- !query 3800 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 3800 schema +struct> +-- !query 3800 output +{1.0:"1",2.0:"2"} + + +-- !query 3801 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 3801 schema +struct<> +-- !query 3801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3802 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 3802 schema +struct<> +-- !query 3802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3803 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3803 schema +struct<> +-- !query 3803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3804 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3804 schema +struct<> +-- !query 3804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3805 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 3805 schema +struct> +-- !query 3805 output +{1.0:1,2.0:2} + + +-- !query 3806 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 3806 schema +struct> +-- !query 3806 output +{1.0:1,2.0:2} + + +-- !query 3807 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 3807 schema +struct> +-- !query 3807 output +{1.0:1,2.0:2} + + +-- !query 3808 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 3808 schema +struct> +-- !query 3808 output +{1.0:1,2.0:2} + + +-- !query 3809 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 3809 schema +struct> +-- !query 3809 output +{1.0:1.0,2.0:2.0} + + +-- !query 3810 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 3810 schema +struct> +-- !query 3810 output +{1.0:1.0,2.0:2.0} + + +-- !query 3811 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 3811 schema +struct> +-- !query 3811 output +{1.0:1,2.0:2} + + +-- !query 3812 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 3812 schema +struct> +-- !query 3812 output +{1.0:"1",2.0:"2"} + + +-- !query 3813 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 3813 schema +struct<> +-- !query 3813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3814 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 3814 schema +struct<> +-- !query 3814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3815 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3815 schema +struct<> +-- !query 3815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3816 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3816 schema +struct<> +-- !query 3816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3817 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 3817 schema +struct> +-- !query 3817 output +{1:1,2:2} + + +-- !query 3818 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 3818 schema +struct> +-- !query 3818 output +{1:1,2:2} + + +-- !query 3819 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 3819 schema +struct> +-- !query 3819 output +{1:1,2:2} + + +-- !query 3820 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 3820 schema +struct> +-- !query 3820 output +{1:1,2:2} + + +-- !query 3821 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 3821 schema +struct> +-- !query 3821 output +{1:1.0,2:2.0} + + +-- !query 3822 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 3822 schema +struct> +-- !query 3822 output +{1:1.0,2:2.0} + + +-- !query 3823 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 3823 schema +struct> +-- !query 3823 output +{1:1,2:2} + + +-- !query 3824 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 3824 schema +struct> +-- !query 3824 output +{1:"1",2:"2"} + + +-- !query 3825 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 3825 schema +struct<> +-- !query 3825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3826 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 3826 schema +struct<> +-- !query 3826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3827 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3827 schema +struct<> +-- !query 3827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3828 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3828 schema +struct<> +-- !query 3828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3829 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 3829 schema +struct> +-- !query 3829 output +{"1":1,"2":2} + + +-- !query 3830 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 3830 schema +struct> +-- !query 3830 output +{"1":1,"2":2} + + +-- !query 3831 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 3831 schema +struct> +-- !query 3831 output +{"1":1,"2":2} + + +-- !query 3832 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 3832 schema +struct> +-- !query 3832 output +{"1":1,"2":2} + + +-- !query 3833 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 3833 schema +struct> +-- !query 3833 output +{"1":1.0,"2":2.0} + + +-- !query 3834 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 3834 schema +struct> +-- !query 3834 output +{"1":1.0,"2":2.0} + + +-- !query 3835 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 3835 schema +struct> +-- !query 3835 output +{"1":1,"2":2} + + +-- !query 3836 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 3836 schema +struct> +-- !query 3836 output +{"1":"1","2":"2"} + + +-- !query 3837 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 3837 schema +struct<> +-- !query 3837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 3838 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 3838 schema +struct<> +-- !query 3838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 3839 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3839 schema +struct<> +-- !query 3839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 3840 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3840 schema +struct<> +-- !query 3840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 3841 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 3841 schema +struct<> +-- !query 3841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3842 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 3842 schema +struct<> +-- !query 3842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3843 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 3843 schema +struct<> +-- !query 3843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3844 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 3844 schema +struct<> +-- !query 3844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3845 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 3845 schema +struct<> +-- !query 3845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3846 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 3846 schema +struct<> +-- !query 3846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3847 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 3847 schema +struct<> +-- !query 3847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3848 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 3848 schema +struct<> +-- !query 3848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3849 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 3849 schema +struct<> +-- !query 3849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3850 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 3850 schema +struct<> +-- !query 3850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3851 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3851 schema +struct<> +-- !query 3851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3852 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3852 schema +struct<> +-- !query 3852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3853 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 3853 schema +struct<> +-- !query 3853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3854 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 3854 schema +struct<> +-- !query 3854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3855 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 3855 schema +struct<> +-- !query 3855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3856 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 3856 schema +struct<> +-- !query 3856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3857 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 3857 schema +struct<> +-- !query 3857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3858 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 3858 schema +struct<> +-- !query 3858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3859 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 3859 schema +struct<> +-- !query 3859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3860 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 3860 schema +struct<> +-- !query 3860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3861 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 3861 schema +struct<> +-- !query 3861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3862 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 3862 schema +struct<> +-- !query 3862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3863 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3863 schema +struct<> +-- !query 3863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3864 +SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3864 schema +struct<> +-- !query 3864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3865 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 3865 schema +struct<> +-- !query 3865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3866 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 3866 schema +struct<> +-- !query 3866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3867 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 3867 schema +struct<> +-- !query 3867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3868 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 3868 schema +struct<> +-- !query 3868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3869 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 3869 schema +struct<> +-- !query 3869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3870 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 3870 schema +struct<> +-- !query 3870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3871 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 3871 schema +struct<> +-- !query 3871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3872 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 3872 schema +struct<> +-- !query 3872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3873 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 3873 schema +struct<> +-- !query 3873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3874 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 3874 schema +struct<> +-- !query 3874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3875 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3875 schema +struct<> +-- !query 3875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3876 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3876 schema +struct<> +-- !query 3876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3877 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 3877 schema +struct<> +-- !query 3877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3878 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 3878 schema +struct<> +-- !query 3878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3879 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 3879 schema +struct<> +-- !query 3879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3880 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 3880 schema +struct<> +-- !query 3880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3881 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 3881 schema +struct<> +-- !query 3881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3882 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 3882 schema +struct<> +-- !query 3882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3883 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 3883 schema +struct<> +-- !query 3883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3884 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 3884 schema +struct<> +-- !query 3884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3885 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 3885 schema +struct<> +-- !query 3885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3886 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 3886 schema +struct<> +-- !query 3886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3887 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3887 schema +struct<> +-- !query 3887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3888 +SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3888 schema +struct<> +-- !query 3888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3889 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 3889 schema +struct> +-- !query 3889 output +{1:1,2:2} + + +-- !query 3890 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 3890 schema +struct> +-- !query 3890 output +{1:1,2:2} + + +-- !query 3891 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 3891 schema +struct> +-- !query 3891 output +{1:1,2:2} + + +-- !query 3892 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 3892 schema +struct> +-- !query 3892 output +{1:1,2:2} + + +-- !query 3893 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 3893 schema +struct> +-- !query 3893 output +{1:1.0,2:2.0} + + +-- !query 3894 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 3894 schema +struct> +-- !query 3894 output +{1:1.0,2:2.0} + + +-- !query 3895 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 3895 schema +struct> +-- !query 3895 output +{1:1,2:2} + + +-- !query 3896 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 3896 schema +struct> +-- !query 3896 output +{1:"1",2:"2"} + + +-- !query 3897 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 3897 schema +struct<> +-- !query 3897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3898 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 3898 schema +struct<> +-- !query 3898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3899 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3899 schema +struct<> +-- !query 3899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3900 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3900 schema +struct<> +-- !query 3900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3901 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 3901 schema +struct> +-- !query 3901 output +{1:1,2:2} + + +-- !query 3902 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 3902 schema +struct> +-- !query 3902 output +{1:1,2:2} + + +-- !query 3903 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 3903 schema +struct> +-- !query 3903 output +{1:1,2:2} + + +-- !query 3904 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 3904 schema +struct> +-- !query 3904 output +{1:1,2:2} + + +-- !query 3905 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 3905 schema +struct> +-- !query 3905 output +{1:1.0,2:2.0} + + +-- !query 3906 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 3906 schema +struct> +-- !query 3906 output +{1:1.0,2:2.0} + + +-- !query 3907 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 3907 schema +struct> +-- !query 3907 output +{1:1,2:2} + + +-- !query 3908 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 3908 schema +struct> +-- !query 3908 output +{1:"1",2:"2"} + + +-- !query 3909 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 3909 schema +struct<> +-- !query 3909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3910 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 3910 schema +struct<> +-- !query 3910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3911 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3911 schema +struct<> +-- !query 3911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3912 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3912 schema +struct<> +-- !query 3912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3913 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 3913 schema +struct> +-- !query 3913 output +{1:1,2:2} + + +-- !query 3914 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 3914 schema +struct> +-- !query 3914 output +{1:1,2:2} + + +-- !query 3915 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 3915 schema +struct> +-- !query 3915 output +{1:1,2:2} + + +-- !query 3916 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 3916 schema +struct> +-- !query 3916 output +{1:1,2:2} + + +-- !query 3917 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 3917 schema +struct> +-- !query 3917 output +{1:1.0,2:2.0} + + +-- !query 3918 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 3918 schema +struct> +-- !query 3918 output +{1:1.0,2:2.0} + + +-- !query 3919 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 3919 schema +struct> +-- !query 3919 output +{1:1,2:2} + + +-- !query 3920 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 3920 schema +struct> +-- !query 3920 output +{1:"1",2:"2"} + + +-- !query 3921 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 3921 schema +struct<> +-- !query 3921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3922 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 3922 schema +struct<> +-- !query 3922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3923 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3923 schema +struct<> +-- !query 3923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3924 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3924 schema +struct<> +-- !query 3924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3925 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 3925 schema +struct> +-- !query 3925 output +{1:1,2:2} + + +-- !query 3926 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 3926 schema +struct> +-- !query 3926 output +{1:1,2:2} + + +-- !query 3927 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 3927 schema +struct> +-- !query 3927 output +{1:1,2:2} + + +-- !query 3928 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 3928 schema +struct> +-- !query 3928 output +{1:1,2:2} + + +-- !query 3929 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 3929 schema +struct> +-- !query 3929 output +{1:1.0,2:2.0} + + +-- !query 3930 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 3930 schema +struct> +-- !query 3930 output +{1:1.0,2:2.0} + + +-- !query 3931 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 3931 schema +struct> +-- !query 3931 output +{1:1,2:2} + + +-- !query 3932 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 3932 schema +struct> +-- !query 3932 output +{1:"1",2:"2"} + + +-- !query 3933 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 3933 schema +struct<> +-- !query 3933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3934 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 3934 schema +struct<> +-- !query 3934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3935 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3935 schema +struct<> +-- !query 3935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3936 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3936 schema +struct<> +-- !query 3936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3937 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 3937 schema +struct> +-- !query 3937 output +{1.0:1,2.0:2} + + +-- !query 3938 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 3938 schema +struct> +-- !query 3938 output +{1.0:1,2.0:2} + + +-- !query 3939 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 3939 schema +struct> +-- !query 3939 output +{1.0:1,2.0:2} + + +-- !query 3940 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 3940 schema +struct> +-- !query 3940 output +{1.0:1,2.0:2} + + +-- !query 3941 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 3941 schema +struct> +-- !query 3941 output +{1.0:1.0,2.0:2.0} + + +-- !query 3942 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 3942 schema +struct> +-- !query 3942 output +{1.0:1.0,2.0:2.0} + + +-- !query 3943 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 3943 schema +struct> +-- !query 3943 output +{1.0:1,2.0:2} + + +-- !query 3944 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 3944 schema +struct> +-- !query 3944 output +{1.0:"1",2.0:"2"} + + +-- !query 3945 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 3945 schema +struct<> +-- !query 3945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3946 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 3946 schema +struct<> +-- !query 3946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3947 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3947 schema +struct<> +-- !query 3947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3948 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3948 schema +struct<> +-- !query 3948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3949 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 3949 schema +struct> +-- !query 3949 output +{1.0:1,2.0:2} + + +-- !query 3950 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 3950 schema +struct> +-- !query 3950 output +{1.0:1,2.0:2} + + +-- !query 3951 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 3951 schema +struct> +-- !query 3951 output +{1.0:1,2.0:2} + + +-- !query 3952 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 3952 schema +struct> +-- !query 3952 output +{1.0:1,2.0:2} + + +-- !query 3953 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 3953 schema +struct> +-- !query 3953 output +{1.0:1.0,2.0:2.0} + + +-- !query 3954 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 3954 schema +struct> +-- !query 3954 output +{1.0:1.0,2.0:2.0} + + +-- !query 3955 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 3955 schema +struct> +-- !query 3955 output +{1.0:1,2.0:2} + + +-- !query 3956 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 3956 schema +struct> +-- !query 3956 output +{1.0:"1",2.0:"2"} + + +-- !query 3957 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 3957 schema +struct<> +-- !query 3957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3958 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 3958 schema +struct<> +-- !query 3958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3959 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3959 schema +struct<> +-- !query 3959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3960 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3960 schema +struct<> +-- !query 3960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3961 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 3961 schema +struct> +-- !query 3961 output +{1:1,2:2} + + +-- !query 3962 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 3962 schema +struct> +-- !query 3962 output +{1:1,2:2} + + +-- !query 3963 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 3963 schema +struct> +-- !query 3963 output +{1:1,2:2} + + +-- !query 3964 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 3964 schema +struct> +-- !query 3964 output +{1:1,2:2} + + +-- !query 3965 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 3965 schema +struct> +-- !query 3965 output +{1:1.0,2:2.0} + + +-- !query 3966 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 3966 schema +struct> +-- !query 3966 output +{1:1.0,2:2.0} + + +-- !query 3967 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 3967 schema +struct> +-- !query 3967 output +{1:1,2:2} + + +-- !query 3968 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 3968 schema +struct> +-- !query 3968 output +{1:"1",2:"2"} + + +-- !query 3969 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 3969 schema +struct<> +-- !query 3969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3970 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 3970 schema +struct<> +-- !query 3970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3971 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3971 schema +struct<> +-- !query 3971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3972 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3972 schema +struct<> +-- !query 3972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3973 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 3973 schema +struct> +-- !query 3973 output +{"1":1,"2":2} + + +-- !query 3974 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 3974 schema +struct> +-- !query 3974 output +{"1":1,"2":2} + + +-- !query 3975 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 3975 schema +struct> +-- !query 3975 output +{"1":1,"2":2} + + +-- !query 3976 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 3976 schema +struct> +-- !query 3976 output +{"1":1,"2":2} + + +-- !query 3977 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 3977 schema +struct> +-- !query 3977 output +{"1":1.0,"2":2.0} + + +-- !query 3978 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 3978 schema +struct> +-- !query 3978 output +{"1":1.0,"2":2.0} + + +-- !query 3979 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 3979 schema +struct> +-- !query 3979 output +{"1":1,"2":2} + + +-- !query 3980 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 3980 schema +struct> +-- !query 3980 output +{"1":"1","2":"2"} + + +-- !query 3981 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 3981 schema +struct<> +-- !query 3981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3982 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 3982 schema +struct<> +-- !query 3982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3983 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3983 schema +struct<> +-- !query 3983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 3984 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3984 schema +struct<> +-- !query 3984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 3985 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 3985 schema +struct<> +-- !query 3985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3986 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 3986 schema +struct<> +-- !query 3986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3987 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 3987 schema +struct<> +-- !query 3987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3988 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 3988 schema +struct<> +-- !query 3988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3989 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 3989 schema +struct<> +-- !query 3989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3990 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 3990 schema +struct<> +-- !query 3990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3991 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 3991 schema +struct<> +-- !query 3991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3992 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 3992 schema +struct<> +-- !query 3992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3993 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 3993 schema +struct<> +-- !query 3993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3994 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 3994 schema +struct<> +-- !query 3994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3995 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 3995 schema +struct<> +-- !query 3995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3996 +SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 3996 schema +struct<> +-- !query 3996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 3997 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 3997 schema +struct<> +-- !query 3997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3998 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 3998 schema +struct<> +-- !query 3998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 3999 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 3999 schema +struct<> +-- !query 3999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4000 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 4000 schema +struct<> +-- !query 4000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4001 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 4001 schema +struct<> +-- !query 4001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4002 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 4002 schema +struct<> +-- !query 4002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4003 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 4003 schema +struct<> +-- !query 4003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4004 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 4004 schema +struct<> +-- !query 4004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4005 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 4005 schema +struct<> +-- !query 4005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4006 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 4006 schema +struct<> +-- !query 4006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4007 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4007 schema +struct<> +-- !query 4007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4008 +SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4008 schema +struct<> +-- !query 4008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4009 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 4009 schema +struct<> +-- !query 4009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4010 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 4010 schema +struct<> +-- !query 4010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4011 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 4011 schema +struct<> +-- !query 4011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4012 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 4012 schema +struct<> +-- !query 4012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4013 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 4013 schema +struct<> +-- !query 4013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4014 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 4014 schema +struct<> +-- !query 4014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4015 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 4015 schema +struct<> +-- !query 4015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4016 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 4016 schema +struct<> +-- !query 4016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4017 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 4017 schema +struct<> +-- !query 4017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4018 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 4018 schema +struct<> +-- !query 4018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4019 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4019 schema +struct<> +-- !query 4019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4020 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4020 schema +struct<> +-- !query 4020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4021 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 4021 schema +struct<> +-- !query 4021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4022 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 4022 schema +struct<> +-- !query 4022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4023 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 4023 schema +struct<> +-- !query 4023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4024 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 4024 schema +struct<> +-- !query 4024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4025 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 4025 schema +struct<> +-- !query 4025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4026 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 4026 schema +struct<> +-- !query 4026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4027 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 4027 schema +struct<> +-- !query 4027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4028 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 4028 schema +struct<> +-- !query 4028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4029 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 4029 schema +struct<> +-- !query 4029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4030 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 4030 schema +struct<> +-- !query 4030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4031 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4031 schema +struct<> +-- !query 4031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4032 +SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4032 schema +struct<> +-- !query 4032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4033 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 4033 schema +struct> +-- !query 4033 output +{1:1,2:2} + + +-- !query 4034 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 4034 schema +struct> +-- !query 4034 output +{1:1,2:2} + + +-- !query 4035 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 4035 schema +struct> +-- !query 4035 output +{1:1,2:2} + + +-- !query 4036 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 4036 schema +struct> +-- !query 4036 output +{1:1,2:2} + + +-- !query 4037 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 4037 schema +struct> +-- !query 4037 output +{1:1.0,2:2.0} + + +-- !query 4038 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 4038 schema +struct> +-- !query 4038 output +{1:1.0,2:2.0} + + +-- !query 4039 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 4039 schema +struct> +-- !query 4039 output +{1:1,2:2} + + +-- !query 4040 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 4040 schema +struct> +-- !query 4040 output +{1:"1",2:"2"} + + +-- !query 4041 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 4041 schema +struct<> +-- !query 4041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4042 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 4042 schema +struct<> +-- !query 4042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4043 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4043 schema +struct<> +-- !query 4043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4044 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4044 schema +struct<> +-- !query 4044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4045 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 4045 schema +struct> +-- !query 4045 output +{1:1,2:2} + + +-- !query 4046 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 4046 schema +struct> +-- !query 4046 output +{1:1,2:2} + + +-- !query 4047 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 4047 schema +struct> +-- !query 4047 output +{1:1,2:2} + + +-- !query 4048 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 4048 schema +struct> +-- !query 4048 output +{1:1,2:2} + + +-- !query 4049 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 4049 schema +struct> +-- !query 4049 output +{1:1.0,2:2.0} + + +-- !query 4050 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 4050 schema +struct> +-- !query 4050 output +{1:1.0,2:2.0} + + +-- !query 4051 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 4051 schema +struct> +-- !query 4051 output +{1:1,2:2} + + +-- !query 4052 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 4052 schema +struct> +-- !query 4052 output +{1:"1",2:"2"} + + +-- !query 4053 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 4053 schema +struct<> +-- !query 4053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4054 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 4054 schema +struct<> +-- !query 4054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4055 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4055 schema +struct<> +-- !query 4055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4056 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4056 schema +struct<> +-- !query 4056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4057 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 4057 schema +struct> +-- !query 4057 output +{1:1,2:2} + + +-- !query 4058 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 4058 schema +struct> +-- !query 4058 output +{1:1,2:2} + + +-- !query 4059 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 4059 schema +struct> +-- !query 4059 output +{1:1,2:2} + + +-- !query 4060 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 4060 schema +struct> +-- !query 4060 output +{1:1,2:2} + + +-- !query 4061 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 4061 schema +struct> +-- !query 4061 output +{1:1.0,2:2.0} + + +-- !query 4062 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 4062 schema +struct> +-- !query 4062 output +{1:1.0,2:2.0} + + +-- !query 4063 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 4063 schema +struct> +-- !query 4063 output +{1:1,2:2} + + +-- !query 4064 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 4064 schema +struct> +-- !query 4064 output +{1:"1",2:"2"} + + +-- !query 4065 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 4065 schema +struct<> +-- !query 4065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4066 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 4066 schema +struct<> +-- !query 4066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4067 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4067 schema +struct<> +-- !query 4067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4068 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4068 schema +struct<> +-- !query 4068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4069 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 4069 schema +struct> +-- !query 4069 output +{1:1,2:2} + + +-- !query 4070 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 4070 schema +struct> +-- !query 4070 output +{1:1,2:2} + + +-- !query 4071 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 4071 schema +struct> +-- !query 4071 output +{1:1,2:2} + + +-- !query 4072 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 4072 schema +struct> +-- !query 4072 output +{1:1,2:2} + + +-- !query 4073 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 4073 schema +struct> +-- !query 4073 output +{1:1.0,2:2.0} + + +-- !query 4074 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 4074 schema +struct> +-- !query 4074 output +{1:1.0,2:2.0} + + +-- !query 4075 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 4075 schema +struct> +-- !query 4075 output +{1:1,2:2} + + +-- !query 4076 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 4076 schema +struct> +-- !query 4076 output +{1:"1",2:"2"} + + +-- !query 4077 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 4077 schema +struct<> +-- !query 4077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4078 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 4078 schema +struct<> +-- !query 4078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4079 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4079 schema +struct<> +-- !query 4079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4080 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4080 schema +struct<> +-- !query 4080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4081 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 4081 schema +struct> +-- !query 4081 output +{1.0:1,2.0:2} + + +-- !query 4082 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 4082 schema +struct> +-- !query 4082 output +{1.0:1,2.0:2} + + +-- !query 4083 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 4083 schema +struct> +-- !query 4083 output +{1.0:1,2.0:2} + + +-- !query 4084 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 4084 schema +struct> +-- !query 4084 output +{1.0:1,2.0:2} + + +-- !query 4085 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 4085 schema +struct> +-- !query 4085 output +{1.0:1.0,2.0:2.0} + + +-- !query 4086 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 4086 schema +struct> +-- !query 4086 output +{1.0:1.0,2.0:2.0} + + +-- !query 4087 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 4087 schema +struct> +-- !query 4087 output +{1.0:1,2.0:2} + + +-- !query 4088 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 4088 schema +struct> +-- !query 4088 output +{1.0:"1",2.0:"2"} + + +-- !query 4089 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 4089 schema +struct<> +-- !query 4089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4090 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 4090 schema +struct<> +-- !query 4090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4091 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4091 schema +struct<> +-- !query 4091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4092 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4092 schema +struct<> +-- !query 4092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4093 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 4093 schema +struct> +-- !query 4093 output +{1.0:1,2.0:2} + + +-- !query 4094 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 4094 schema +struct> +-- !query 4094 output +{1.0:1,2.0:2} + + +-- !query 4095 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 4095 schema +struct> +-- !query 4095 output +{1.0:1,2.0:2} + + +-- !query 4096 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 4096 schema +struct> +-- !query 4096 output +{1.0:1,2.0:2} + + +-- !query 4097 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 4097 schema +struct> +-- !query 4097 output +{1.0:1.0,2.0:2.0} + + +-- !query 4098 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 4098 schema +struct> +-- !query 4098 output +{1.0:1.0,2.0:2.0} + + +-- !query 4099 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 4099 schema +struct> +-- !query 4099 output +{1.0:1,2.0:2} + + +-- !query 4100 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 4100 schema +struct> +-- !query 4100 output +{1.0:"1",2.0:"2"} + + +-- !query 4101 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 4101 schema +struct<> +-- !query 4101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4102 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 4102 schema +struct<> +-- !query 4102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4103 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4103 schema +struct<> +-- !query 4103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4104 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4104 schema +struct<> +-- !query 4104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4105 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 4105 schema +struct> +-- !query 4105 output +{1:1,2:2} + + +-- !query 4106 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 4106 schema +struct> +-- !query 4106 output +{1:1,2:2} + + +-- !query 4107 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 4107 schema +struct> +-- !query 4107 output +{1:1,2:2} + + +-- !query 4108 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 4108 schema +struct> +-- !query 4108 output +{1:1,2:2} + + +-- !query 4109 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 4109 schema +struct> +-- !query 4109 output +{1:1.0,2:2.0} + + +-- !query 4110 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 4110 schema +struct> +-- !query 4110 output +{1:1.0,2:2.0} + + +-- !query 4111 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 4111 schema +struct> +-- !query 4111 output +{1:1,2:2} + + +-- !query 4112 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 4112 schema +struct> +-- !query 4112 output +{1:"1",2:"2"} + + +-- !query 4113 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 4113 schema +struct<> +-- !query 4113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4114 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 4114 schema +struct<> +-- !query 4114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4115 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4115 schema +struct<> +-- !query 4115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4116 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4116 schema +struct<> +-- !query 4116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4117 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 4117 schema +struct> +-- !query 4117 output +{"1":1,"2":2} + + +-- !query 4118 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 4118 schema +struct> +-- !query 4118 output +{"1":1,"2":2} + + +-- !query 4119 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 4119 schema +struct> +-- !query 4119 output +{"1":1,"2":2} + + +-- !query 4120 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 4120 schema +struct> +-- !query 4120 output +{"1":1,"2":2} + + +-- !query 4121 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 4121 schema +struct> +-- !query 4121 output +{"1":1.0,"2":2.0} + + +-- !query 4122 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 4122 schema +struct> +-- !query 4122 output +{"1":1.0,"2":2.0} + + +-- !query 4123 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 4123 schema +struct> +-- !query 4123 output +{"1":1,"2":2} + + +-- !query 4124 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 4124 schema +struct> +-- !query 4124 output +{"1":"1","2":"2"} + + +-- !query 4125 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 4125 schema +struct<> +-- !query 4125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 4126 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 4126 schema +struct<> +-- !query 4126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 4127 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4127 schema +struct<> +-- !query 4127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 4128 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4128 schema +struct<> +-- !query 4128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 4129 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 4129 schema +struct<> +-- !query 4129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4130 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 4130 schema +struct<> +-- !query 4130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4131 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 4131 schema +struct<> +-- !query 4131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4132 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 4132 schema +struct<> +-- !query 4132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4133 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 4133 schema +struct<> +-- !query 4133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4134 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 4134 schema +struct<> +-- !query 4134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4135 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 4135 schema +struct<> +-- !query 4135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4136 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 4136 schema +struct<> +-- !query 4136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4137 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 4137 schema +struct<> +-- !query 4137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4138 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 4138 schema +struct<> +-- !query 4138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4139 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4139 schema +struct<> +-- !query 4139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4140 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4140 schema +struct<> +-- !query 4140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4141 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 4141 schema +struct<> +-- !query 4141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4142 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 4142 schema +struct<> +-- !query 4142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4143 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 4143 schema +struct<> +-- !query 4143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4144 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 4144 schema +struct<> +-- !query 4144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4145 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 4145 schema +struct<> +-- !query 4145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4146 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 4146 schema +struct<> +-- !query 4146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4147 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 4147 schema +struct<> +-- !query 4147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4148 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 4148 schema +struct<> +-- !query 4148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4149 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 4149 schema +struct<> +-- !query 4149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4150 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 4150 schema +struct<> +-- !query 4150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4151 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4151 schema +struct<> +-- !query 4151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4152 +SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4152 schema +struct<> +-- !query 4152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4153 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 4153 schema +struct<> +-- !query 4153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4154 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 4154 schema +struct<> +-- !query 4154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4155 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 4155 schema +struct<> +-- !query 4155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4156 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 4156 schema +struct<> +-- !query 4156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4157 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 4157 schema +struct<> +-- !query 4157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4158 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 4158 schema +struct<> +-- !query 4158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4159 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 4159 schema +struct<> +-- !query 4159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4160 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 4160 schema +struct<> +-- !query 4160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4161 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 4161 schema +struct<> +-- !query 4161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4162 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 4162 schema +struct<> +-- !query 4162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4163 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4163 schema +struct<> +-- !query 4163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4164 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4164 schema +struct<> +-- !query 4164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4165 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 4165 schema +struct<> +-- !query 4165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4166 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 4166 schema +struct<> +-- !query 4166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4167 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 4167 schema +struct<> +-- !query 4167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4168 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 4168 schema +struct<> +-- !query 4168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4169 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 4169 schema +struct<> +-- !query 4169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4170 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 4170 schema +struct<> +-- !query 4170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4171 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 4171 schema +struct<> +-- !query 4171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4172 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 4172 schema +struct<> +-- !query 4172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4173 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 4173 schema +struct<> +-- !query 4173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4174 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 4174 schema +struct<> +-- !query 4174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4175 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4175 schema +struct<> +-- !query 4175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4176 +SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4176 schema +struct<> +-- !query 4176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4177 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 4177 schema +struct> +-- !query 4177 output +{1:1.0,2:2.0} + + +-- !query 4178 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 4178 schema +struct> +-- !query 4178 output +{1:1.0,2:2.0} + + +-- !query 4179 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 4179 schema +struct> +-- !query 4179 output +{1:1.0,2:2.0} + + +-- !query 4180 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 4180 schema +struct> +-- !query 4180 output +{1:1.0,2:2.0} + + +-- !query 4181 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 4181 schema +struct> +-- !query 4181 output +{1:1.0,2:2.0} + + +-- !query 4182 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 4182 schema +struct> +-- !query 4182 output +{1:1.0,2:2.0} + + +-- !query 4183 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 4183 schema +struct> +-- !query 4183 output +{1:1.0,2:2.0} + + +-- !query 4184 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 4184 schema +struct> +-- !query 4184 output +{1:"1.0",2:"2"} + + +-- !query 4185 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 4185 schema +struct<> +-- !query 4185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4186 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 4186 schema +struct<> +-- !query 4186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4187 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4187 schema +struct<> +-- !query 4187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4188 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4188 schema +struct<> +-- !query 4188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4189 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 4189 schema +struct> +-- !query 4189 output +{1:1.0,2:2.0} + + +-- !query 4190 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 4190 schema +struct> +-- !query 4190 output +{1:1.0,2:2.0} + + +-- !query 4191 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 4191 schema +struct> +-- !query 4191 output +{1:1.0,2:2.0} + + +-- !query 4192 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 4192 schema +struct> +-- !query 4192 output +{1:1.0,2:2.0} + + +-- !query 4193 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 4193 schema +struct> +-- !query 4193 output +{1:1.0,2:2.0} + + +-- !query 4194 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 4194 schema +struct> +-- !query 4194 output +{1:1.0,2:2.0} + + +-- !query 4195 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 4195 schema +struct> +-- !query 4195 output +{1:1.0,2:2.0} + + +-- !query 4196 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 4196 schema +struct> +-- !query 4196 output +{1:"1.0",2:"2"} + + +-- !query 4197 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 4197 schema +struct<> +-- !query 4197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4198 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 4198 schema +struct<> +-- !query 4198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4199 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4199 schema +struct<> +-- !query 4199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4200 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4200 schema +struct<> +-- !query 4200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4201 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 4201 schema +struct> +-- !query 4201 output +{1:1.0,2:2.0} + + +-- !query 4202 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 4202 schema +struct> +-- !query 4202 output +{1:1.0,2:2.0} + + +-- !query 4203 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 4203 schema +struct> +-- !query 4203 output +{1:1.0,2:2.0} + + +-- !query 4204 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 4204 schema +struct> +-- !query 4204 output +{1:1.0,2:2.0} + + +-- !query 4205 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 4205 schema +struct> +-- !query 4205 output +{1:1.0,2:2.0} + + +-- !query 4206 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 4206 schema +struct> +-- !query 4206 output +{1:1.0,2:2.0} + + +-- !query 4207 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 4207 schema +struct> +-- !query 4207 output +{1:1.0,2:2.0} + + +-- !query 4208 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 4208 schema +struct> +-- !query 4208 output +{1:"1.0",2:"2"} + + +-- !query 4209 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 4209 schema +struct<> +-- !query 4209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4210 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 4210 schema +struct<> +-- !query 4210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4211 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4211 schema +struct<> +-- !query 4211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4212 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4212 schema +struct<> +-- !query 4212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4213 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 4213 schema +struct> +-- !query 4213 output +{1:1.0,2:2.0} + + +-- !query 4214 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 4214 schema +struct> +-- !query 4214 output +{1:1.0,2:2.0} + + +-- !query 4215 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 4215 schema +struct> +-- !query 4215 output +{1:1.0,2:2.0} + + +-- !query 4216 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 4216 schema +struct> +-- !query 4216 output +{1:1.0,2:2.0} + + +-- !query 4217 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 4217 schema +struct> +-- !query 4217 output +{1:1.0,2:2.0} + + +-- !query 4218 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 4218 schema +struct> +-- !query 4218 output +{1:1.0,2:2.0} + + +-- !query 4219 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 4219 schema +struct> +-- !query 4219 output +{1:1.0,2:2.0} + + +-- !query 4220 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 4220 schema +struct> +-- !query 4220 output +{1:"1.0",2:"2"} + + +-- !query 4221 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 4221 schema +struct<> +-- !query 4221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4222 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 4222 schema +struct<> +-- !query 4222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4223 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4223 schema +struct<> +-- !query 4223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4224 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4224 schema +struct<> +-- !query 4224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4225 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 4225 schema +struct> +-- !query 4225 output +{1.0:1.0,2.0:2.0} + + +-- !query 4226 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 4226 schema +struct> +-- !query 4226 output +{1.0:1.0,2.0:2.0} + + +-- !query 4227 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 4227 schema +struct> +-- !query 4227 output +{1.0:1.0,2.0:2.0} + + +-- !query 4228 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 4228 schema +struct> +-- !query 4228 output +{1.0:1.0,2.0:2.0} + + +-- !query 4229 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 4229 schema +struct> +-- !query 4229 output +{1.0:1.0,2.0:2.0} + + +-- !query 4230 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 4230 schema +struct> +-- !query 4230 output +{1.0:1.0,2.0:2.0} + + +-- !query 4231 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 4231 schema +struct> +-- !query 4231 output +{1.0:1.0,2.0:2.0} + + +-- !query 4232 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 4232 schema +struct> +-- !query 4232 output +{1.0:"1.0",2.0:"2"} + + +-- !query 4233 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 4233 schema +struct<> +-- !query 4233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4234 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 4234 schema +struct<> +-- !query 4234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4235 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4235 schema +struct<> +-- !query 4235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4236 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4236 schema +struct<> +-- !query 4236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4237 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 4237 schema +struct> +-- !query 4237 output +{1.0:1.0,2.0:2.0} + + +-- !query 4238 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 4238 schema +struct> +-- !query 4238 output +{1.0:1.0,2.0:2.0} + + +-- !query 4239 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 4239 schema +struct> +-- !query 4239 output +{1.0:1.0,2.0:2.0} + + +-- !query 4240 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 4240 schema +struct> +-- !query 4240 output +{1.0:1.0,2.0:2.0} + + +-- !query 4241 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 4241 schema +struct> +-- !query 4241 output +{1.0:1.0,2.0:2.0} + + +-- !query 4242 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 4242 schema +struct> +-- !query 4242 output +{1.0:1.0,2.0:2.0} + + +-- !query 4243 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 4243 schema +struct> +-- !query 4243 output +{1.0:1.0,2.0:2.0} + + +-- !query 4244 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 4244 schema +struct> +-- !query 4244 output +{1.0:"1.0",2.0:"2"} + + +-- !query 4245 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 4245 schema +struct<> +-- !query 4245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4246 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 4246 schema +struct<> +-- !query 4246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4247 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4247 schema +struct<> +-- !query 4247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4248 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4248 schema +struct<> +-- !query 4248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4249 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 4249 schema +struct> +-- !query 4249 output +{1:1.0,2:2.0} + + +-- !query 4250 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 4250 schema +struct> +-- !query 4250 output +{1:1.0,2:2.0} + + +-- !query 4251 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 4251 schema +struct> +-- !query 4251 output +{1:1.0,2:2.0} + + +-- !query 4252 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 4252 schema +struct> +-- !query 4252 output +{1:1.0,2:2.0} + + +-- !query 4253 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 4253 schema +struct> +-- !query 4253 output +{1:1.0,2:2.0} + + +-- !query 4254 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 4254 schema +struct> +-- !query 4254 output +{1:1.0,2:2.0} + + +-- !query 4255 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 4255 schema +struct> +-- !query 4255 output +{1:1.0,2:2.0} + + +-- !query 4256 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 4256 schema +struct> +-- !query 4256 output +{1:"1.0",2:"2"} + + +-- !query 4257 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 4257 schema +struct<> +-- !query 4257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4258 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 4258 schema +struct<> +-- !query 4258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4259 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4259 schema +struct<> +-- !query 4259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4260 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4260 schema +struct<> +-- !query 4260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4261 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 4261 schema +struct> +-- !query 4261 output +{"1":1.0,"2":2.0} + + +-- !query 4262 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 4262 schema +struct> +-- !query 4262 output +{"1":1.0,"2":2.0} + + +-- !query 4263 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 4263 schema +struct> +-- !query 4263 output +{"1":1.0,"2":2.0} + + +-- !query 4264 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 4264 schema +struct> +-- !query 4264 output +{"1":1.0,"2":2.0} + + +-- !query 4265 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 4265 schema +struct> +-- !query 4265 output +{"1":1.0,"2":2.0} + + +-- !query 4266 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 4266 schema +struct> +-- !query 4266 output +{"1":1.0,"2":2.0} + + +-- !query 4267 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 4267 schema +struct> +-- !query 4267 output +{"1":1.0,"2":2.0} + + +-- !query 4268 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 4268 schema +struct> +-- !query 4268 output +{"1":"1.0","2":"2"} + + +-- !query 4269 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 4269 schema +struct<> +-- !query 4269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 4270 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 4270 schema +struct<> +-- !query 4270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 4271 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4271 schema +struct<> +-- !query 4271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 4272 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4272 schema +struct<> +-- !query 4272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 4273 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 4273 schema +struct<> +-- !query 4273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4274 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 4274 schema +struct<> +-- !query 4274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4275 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 4275 schema +struct<> +-- !query 4275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4276 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 4276 schema +struct<> +-- !query 4276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4277 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 4277 schema +struct<> +-- !query 4277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4278 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 4278 schema +struct<> +-- !query 4278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4279 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 4279 schema +struct<> +-- !query 4279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4280 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 4280 schema +struct<> +-- !query 4280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4281 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 4281 schema +struct<> +-- !query 4281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4282 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 4282 schema +struct<> +-- !query 4282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4283 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4283 schema +struct<> +-- !query 4283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4284 +SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4284 schema +struct<> +-- !query 4284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4285 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 4285 schema +struct<> +-- !query 4285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4286 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 4286 schema +struct<> +-- !query 4286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4287 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 4287 schema +struct<> +-- !query 4287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4288 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 4288 schema +struct<> +-- !query 4288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4289 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 4289 schema +struct<> +-- !query 4289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4290 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 4290 schema +struct<> +-- !query 4290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4291 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 4291 schema +struct<> +-- !query 4291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4292 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 4292 schema +struct<> +-- !query 4292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4293 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 4293 schema +struct<> +-- !query 4293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4294 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 4294 schema +struct<> +-- !query 4294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4295 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4295 schema +struct<> +-- !query 4295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4296 +SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4296 schema +struct<> +-- !query 4296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4297 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 4297 schema +struct<> +-- !query 4297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4298 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 4298 schema +struct<> +-- !query 4298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4299 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 4299 schema +struct<> +-- !query 4299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4300 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 4300 schema +struct<> +-- !query 4300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4301 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 4301 schema +struct<> +-- !query 4301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4302 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 4302 schema +struct<> +-- !query 4302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4303 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 4303 schema +struct<> +-- !query 4303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4304 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 4304 schema +struct<> +-- !query 4304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4305 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 4305 schema +struct<> +-- !query 4305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4306 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 4306 schema +struct<> +-- !query 4306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4307 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4307 schema +struct<> +-- !query 4307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4308 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4308 schema +struct<> +-- !query 4308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4309 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 4309 schema +struct<> +-- !query 4309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4310 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 4310 schema +struct<> +-- !query 4310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4311 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 4311 schema +struct<> +-- !query 4311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4312 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 4312 schema +struct<> +-- !query 4312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4313 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 4313 schema +struct<> +-- !query 4313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4314 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 4314 schema +struct<> +-- !query 4314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4315 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 4315 schema +struct<> +-- !query 4315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4316 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 4316 schema +struct<> +-- !query 4316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4317 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 4317 schema +struct<> +-- !query 4317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4318 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 4318 schema +struct<> +-- !query 4318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4319 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4319 schema +struct<> +-- !query 4319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4320 +SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4320 schema +struct<> +-- !query 4320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4321 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 4321 schema +struct> +-- !query 4321 output +{1:1.0,2:2.0} + + +-- !query 4322 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 4322 schema +struct> +-- !query 4322 output +{1:1.0,2:2.0} + + +-- !query 4323 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 4323 schema +struct> +-- !query 4323 output +{1:1.0,2:2.0} + + +-- !query 4324 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 4324 schema +struct> +-- !query 4324 output +{1:1.0,2:2.0} + + +-- !query 4325 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 4325 schema +struct> +-- !query 4325 output +{1:1.0,2:2.0} + + +-- !query 4326 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 4326 schema +struct> +-- !query 4326 output +{1:1.0,2:2.0} + + +-- !query 4327 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 4327 schema +struct> +-- !query 4327 output +{1:1.0,2:2.0} + + +-- !query 4328 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 4328 schema +struct> +-- !query 4328 output +{1:"1.0",2:"2"} + + +-- !query 4329 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 4329 schema +struct<> +-- !query 4329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4330 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 4330 schema +struct<> +-- !query 4330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4331 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4331 schema +struct<> +-- !query 4331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4332 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4332 schema +struct<> +-- !query 4332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4333 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 4333 schema +struct> +-- !query 4333 output +{1:1.0,2:2.0} + + +-- !query 4334 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 4334 schema +struct> +-- !query 4334 output +{1:1.0,2:2.0} + + +-- !query 4335 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 4335 schema +struct> +-- !query 4335 output +{1:1.0,2:2.0} + + +-- !query 4336 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 4336 schema +struct> +-- !query 4336 output +{1:1.0,2:2.0} + + +-- !query 4337 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 4337 schema +struct> +-- !query 4337 output +{1:1.0,2:2.0} + + +-- !query 4338 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 4338 schema +struct> +-- !query 4338 output +{1:1.0,2:2.0} + + +-- !query 4339 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 4339 schema +struct> +-- !query 4339 output +{1:1.0,2:2.0} + + +-- !query 4340 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 4340 schema +struct> +-- !query 4340 output +{1:"1.0",2:"2"} + + +-- !query 4341 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 4341 schema +struct<> +-- !query 4341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4342 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 4342 schema +struct<> +-- !query 4342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4343 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4343 schema +struct<> +-- !query 4343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4344 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4344 schema +struct<> +-- !query 4344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4345 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 4345 schema +struct> +-- !query 4345 output +{1:1.0,2:2.0} + + +-- !query 4346 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 4346 schema +struct> +-- !query 4346 output +{1:1.0,2:2.0} + + +-- !query 4347 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 4347 schema +struct> +-- !query 4347 output +{1:1.0,2:2.0} + + +-- !query 4348 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 4348 schema +struct> +-- !query 4348 output +{1:1.0,2:2.0} + + +-- !query 4349 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 4349 schema +struct> +-- !query 4349 output +{1:1.0,2:2.0} + + +-- !query 4350 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 4350 schema +struct> +-- !query 4350 output +{1:1.0,2:2.0} + + +-- !query 4351 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 4351 schema +struct> +-- !query 4351 output +{1:1.0,2:2.0} + + +-- !query 4352 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 4352 schema +struct> +-- !query 4352 output +{1:"1.0",2:"2"} + + +-- !query 4353 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 4353 schema +struct<> +-- !query 4353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4354 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 4354 schema +struct<> +-- !query 4354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4355 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4355 schema +struct<> +-- !query 4355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4356 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4356 schema +struct<> +-- !query 4356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4357 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 4357 schema +struct> +-- !query 4357 output +{1:1.0,2:2.0} + + +-- !query 4358 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 4358 schema +struct> +-- !query 4358 output +{1:1.0,2:2.0} + + +-- !query 4359 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 4359 schema +struct> +-- !query 4359 output +{1:1.0,2:2.0} + + +-- !query 4360 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 4360 schema +struct> +-- !query 4360 output +{1:1.0,2:2.0} + + +-- !query 4361 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 4361 schema +struct> +-- !query 4361 output +{1:1.0,2:2.0} + + +-- !query 4362 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 4362 schema +struct> +-- !query 4362 output +{1:1.0,2:2.0} + + +-- !query 4363 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 4363 schema +struct> +-- !query 4363 output +{1:1.0,2:2.0} + + +-- !query 4364 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 4364 schema +struct> +-- !query 4364 output +{1:"1.0",2:"2"} + + +-- !query 4365 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 4365 schema +struct<> +-- !query 4365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4366 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 4366 schema +struct<> +-- !query 4366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4367 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4367 schema +struct<> +-- !query 4367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4368 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4368 schema +struct<> +-- !query 4368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4369 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 4369 schema +struct> +-- !query 4369 output +{1.0:1.0,2.0:2.0} + + +-- !query 4370 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 4370 schema +struct> +-- !query 4370 output +{1.0:1.0,2.0:2.0} + + +-- !query 4371 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 4371 schema +struct> +-- !query 4371 output +{1.0:1.0,2.0:2.0} + + +-- !query 4372 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 4372 schema +struct> +-- !query 4372 output +{1.0:1.0,2.0:2.0} + + +-- !query 4373 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 4373 schema +struct> +-- !query 4373 output +{1.0:1.0,2.0:2.0} + + +-- !query 4374 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 4374 schema +struct> +-- !query 4374 output +{1.0:1.0,2.0:2.0} + + +-- !query 4375 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 4375 schema +struct> +-- !query 4375 output +{1.0:1.0,2.0:2.0} + + +-- !query 4376 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 4376 schema +struct> +-- !query 4376 output +{1.0:"1.0",2.0:"2"} + + +-- !query 4377 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 4377 schema +struct<> +-- !query 4377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4378 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 4378 schema +struct<> +-- !query 4378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4379 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4379 schema +struct<> +-- !query 4379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4380 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4380 schema +struct<> +-- !query 4380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4381 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 4381 schema +struct> +-- !query 4381 output +{1.0:1.0,2.0:2.0} + + +-- !query 4382 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 4382 schema +struct> +-- !query 4382 output +{1.0:1.0,2.0:2.0} + + +-- !query 4383 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 4383 schema +struct> +-- !query 4383 output +{1.0:1.0,2.0:2.0} + + +-- !query 4384 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 4384 schema +struct> +-- !query 4384 output +{1.0:1.0,2.0:2.0} + + +-- !query 4385 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 4385 schema +struct> +-- !query 4385 output +{1.0:1.0,2.0:2.0} + + +-- !query 4386 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 4386 schema +struct> +-- !query 4386 output +{1.0:1.0,2.0:2.0} + + +-- !query 4387 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 4387 schema +struct> +-- !query 4387 output +{1.0:1.0,2.0:2.0} + + +-- !query 4388 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 4388 schema +struct> +-- !query 4388 output +{1.0:"1.0",2.0:"2"} + + +-- !query 4389 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 4389 schema +struct<> +-- !query 4389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4390 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 4390 schema +struct<> +-- !query 4390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4391 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4391 schema +struct<> +-- !query 4391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4392 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4392 schema +struct<> +-- !query 4392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4393 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 4393 schema +struct> +-- !query 4393 output +{1:1.0,2:2.0} + + +-- !query 4394 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 4394 schema +struct> +-- !query 4394 output +{1:1.0,2:2.0} + + +-- !query 4395 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 4395 schema +struct> +-- !query 4395 output +{1:1.0,2:2.0} + + +-- !query 4396 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 4396 schema +struct> +-- !query 4396 output +{1:1.0,2:2.0} + + +-- !query 4397 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 4397 schema +struct> +-- !query 4397 output +{1:1.0,2:2.0} + + +-- !query 4398 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 4398 schema +struct> +-- !query 4398 output +{1:1.0,2:2.0} + + +-- !query 4399 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 4399 schema +struct> +-- !query 4399 output +{1:1.0,2:2.0} + + +-- !query 4400 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 4400 schema +struct> +-- !query 4400 output +{1:"1.0",2:"2"} + + +-- !query 4401 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 4401 schema +struct<> +-- !query 4401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4402 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 4402 schema +struct<> +-- !query 4402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4403 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4403 schema +struct<> +-- !query 4403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4404 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4404 schema +struct<> +-- !query 4404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4405 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 4405 schema +struct> +-- !query 4405 output +{"1":1.0,"2":2.0} + + +-- !query 4406 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 4406 schema +struct> +-- !query 4406 output +{"1":1.0,"2":2.0} + + +-- !query 4407 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 4407 schema +struct> +-- !query 4407 output +{"1":1.0,"2":2.0} + + +-- !query 4408 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 4408 schema +struct> +-- !query 4408 output +{"1":1.0,"2":2.0} + + +-- !query 4409 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 4409 schema +struct> +-- !query 4409 output +{"1":1.0,"2":2.0} + + +-- !query 4410 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 4410 schema +struct> +-- !query 4410 output +{"1":1.0,"2":2.0} + + +-- !query 4411 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 4411 schema +struct> +-- !query 4411 output +{"1":1.0,"2":2.0} + + +-- !query 4412 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 4412 schema +struct> +-- !query 4412 output +{"1":"1.0","2":"2"} + + +-- !query 4413 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 4413 schema +struct<> +-- !query 4413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 4414 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 4414 schema +struct<> +-- !query 4414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 4415 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4415 schema +struct<> +-- !query 4415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 4416 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4416 schema +struct<> +-- !query 4416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 4417 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 4417 schema +struct<> +-- !query 4417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4418 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 4418 schema +struct<> +-- !query 4418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4419 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 4419 schema +struct<> +-- !query 4419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4420 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 4420 schema +struct<> +-- !query 4420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4421 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 4421 schema +struct<> +-- !query 4421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4422 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 4422 schema +struct<> +-- !query 4422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4423 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 4423 schema +struct<> +-- !query 4423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4424 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 4424 schema +struct<> +-- !query 4424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4425 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 4425 schema +struct<> +-- !query 4425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4426 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 4426 schema +struct<> +-- !query 4426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4427 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4427 schema +struct<> +-- !query 4427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4428 +SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4428 schema +struct<> +-- !query 4428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4429 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 4429 schema +struct<> +-- !query 4429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4430 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 4430 schema +struct<> +-- !query 4430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4431 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 4431 schema +struct<> +-- !query 4431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4432 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 4432 schema +struct<> +-- !query 4432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4433 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 4433 schema +struct<> +-- !query 4433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4434 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 4434 schema +struct<> +-- !query 4434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4435 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 4435 schema +struct<> +-- !query 4435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4436 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 4436 schema +struct<> +-- !query 4436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4437 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 4437 schema +struct<> +-- !query 4437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4438 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 4438 schema +struct<> +-- !query 4438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4439 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4439 schema +struct<> +-- !query 4439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4440 +SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4440 schema +struct<> +-- !query 4440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4441 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 4441 schema +struct<> +-- !query 4441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4442 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 4442 schema +struct<> +-- !query 4442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4443 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 4443 schema +struct<> +-- !query 4443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4444 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 4444 schema +struct<> +-- !query 4444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4445 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 4445 schema +struct<> +-- !query 4445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4446 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 4446 schema +struct<> +-- !query 4446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4447 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 4447 schema +struct<> +-- !query 4447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4448 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 4448 schema +struct<> +-- !query 4448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4449 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 4449 schema +struct<> +-- !query 4449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4450 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 4450 schema +struct<> +-- !query 4450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4451 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4451 schema +struct<> +-- !query 4451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4452 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4452 schema +struct<> +-- !query 4452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4453 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 4453 schema +struct<> +-- !query 4453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4454 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 4454 schema +struct<> +-- !query 4454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4455 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 4455 schema +struct<> +-- !query 4455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4456 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 4456 schema +struct<> +-- !query 4456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4457 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 4457 schema +struct<> +-- !query 4457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4458 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 4458 schema +struct<> +-- !query 4458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4459 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 4459 schema +struct<> +-- !query 4459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4460 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 4460 schema +struct<> +-- !query 4460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4461 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 4461 schema +struct<> +-- !query 4461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4462 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 4462 schema +struct<> +-- !query 4462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4463 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4463 schema +struct<> +-- !query 4463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4464 +SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4464 schema +struct<> +-- !query 4464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4465 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 4465 schema +struct> +-- !query 4465 output +{1:1,2:2} + + +-- !query 4466 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 4466 schema +struct> +-- !query 4466 output +{1:1,2:2} + + +-- !query 4467 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 4467 schema +struct> +-- !query 4467 output +{1:1,2:2} + + +-- !query 4468 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 4468 schema +struct> +-- !query 4468 output +{1:1,2:2} + + +-- !query 4469 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 4469 schema +struct> +-- !query 4469 output +{1:1.0,2:2.0} + + +-- !query 4470 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 4470 schema +struct> +-- !query 4470 output +{1:1.0,2:2.0} + + +-- !query 4471 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 4471 schema +struct> +-- !query 4471 output +{1:1,2:2} + + +-- !query 4472 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 4472 schema +struct> +-- !query 4472 output +{1:"1",2:"2"} + + +-- !query 4473 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 4473 schema +struct<> +-- !query 4473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4474 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 4474 schema +struct<> +-- !query 4474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4475 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4475 schema +struct<> +-- !query 4475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4476 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4476 schema +struct<> +-- !query 4476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4477 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 4477 schema +struct> +-- !query 4477 output +{1:1,2:2} + + +-- !query 4478 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 4478 schema +struct> +-- !query 4478 output +{1:1,2:2} + + +-- !query 4479 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 4479 schema +struct> +-- !query 4479 output +{1:1,2:2} + + +-- !query 4480 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 4480 schema +struct> +-- !query 4480 output +{1:1,2:2} + + +-- !query 4481 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 4481 schema +struct> +-- !query 4481 output +{1:1.0,2:2.0} + + +-- !query 4482 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 4482 schema +struct> +-- !query 4482 output +{1:1.0,2:2.0} + + +-- !query 4483 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 4483 schema +struct> +-- !query 4483 output +{1:1,2:2} + + +-- !query 4484 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 4484 schema +struct> +-- !query 4484 output +{1:"1",2:"2"} + + +-- !query 4485 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 4485 schema +struct<> +-- !query 4485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4486 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 4486 schema +struct<> +-- !query 4486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4487 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4487 schema +struct<> +-- !query 4487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4488 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4488 schema +struct<> +-- !query 4488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4489 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 4489 schema +struct> +-- !query 4489 output +{1:1,2:2} + + +-- !query 4490 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 4490 schema +struct> +-- !query 4490 output +{1:1,2:2} + + +-- !query 4491 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 4491 schema +struct> +-- !query 4491 output +{1:1,2:2} + + +-- !query 4492 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 4492 schema +struct> +-- !query 4492 output +{1:1,2:2} + + +-- !query 4493 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 4493 schema +struct> +-- !query 4493 output +{1:1.0,2:2.0} + + +-- !query 4494 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 4494 schema +struct> +-- !query 4494 output +{1:1.0,2:2.0} + + +-- !query 4495 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 4495 schema +struct> +-- !query 4495 output +{1:1,2:2} + + +-- !query 4496 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 4496 schema +struct> +-- !query 4496 output +{1:"1",2:"2"} + + +-- !query 4497 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 4497 schema +struct<> +-- !query 4497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4498 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 4498 schema +struct<> +-- !query 4498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4499 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4499 schema +struct<> +-- !query 4499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4500 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4500 schema +struct<> +-- !query 4500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4501 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 4501 schema +struct> +-- !query 4501 output +{1:1,2:2} + + +-- !query 4502 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 4502 schema +struct> +-- !query 4502 output +{1:1,2:2} + + +-- !query 4503 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 4503 schema +struct> +-- !query 4503 output +{1:1,2:2} + + +-- !query 4504 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 4504 schema +struct> +-- !query 4504 output +{1:1,2:2} + + +-- !query 4505 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 4505 schema +struct> +-- !query 4505 output +{1:1.0,2:2.0} + + +-- !query 4506 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 4506 schema +struct> +-- !query 4506 output +{1:1.0,2:2.0} + + +-- !query 4507 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 4507 schema +struct> +-- !query 4507 output +{1:1,2:2} + + +-- !query 4508 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 4508 schema +struct> +-- !query 4508 output +{1:"1",2:"2"} + + +-- !query 4509 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 4509 schema +struct<> +-- !query 4509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4510 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 4510 schema +struct<> +-- !query 4510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4511 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4511 schema +struct<> +-- !query 4511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4512 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4512 schema +struct<> +-- !query 4512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4513 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 4513 schema +struct> +-- !query 4513 output +{1.0:1,2.0:2} + + +-- !query 4514 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 4514 schema +struct> +-- !query 4514 output +{1.0:1,2.0:2} + + +-- !query 4515 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 4515 schema +struct> +-- !query 4515 output +{1.0:1,2.0:2} + + +-- !query 4516 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 4516 schema +struct> +-- !query 4516 output +{1.0:1,2.0:2} + + +-- !query 4517 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 4517 schema +struct> +-- !query 4517 output +{1.0:1.0,2.0:2.0} + + +-- !query 4518 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 4518 schema +struct> +-- !query 4518 output +{1.0:1.0,2.0:2.0} + + +-- !query 4519 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 4519 schema +struct> +-- !query 4519 output +{1.0:1,2.0:2} + + +-- !query 4520 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 4520 schema +struct> +-- !query 4520 output +{1.0:"1",2.0:"2"} + + +-- !query 4521 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 4521 schema +struct<> +-- !query 4521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4522 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 4522 schema +struct<> +-- !query 4522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4523 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4523 schema +struct<> +-- !query 4523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4524 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4524 schema +struct<> +-- !query 4524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4525 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 4525 schema +struct> +-- !query 4525 output +{1.0:1,2.0:2} + + +-- !query 4526 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 4526 schema +struct> +-- !query 4526 output +{1.0:1,2.0:2} + + +-- !query 4527 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 4527 schema +struct> +-- !query 4527 output +{1.0:1,2.0:2} + + +-- !query 4528 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 4528 schema +struct> +-- !query 4528 output +{1.0:1,2.0:2} + + +-- !query 4529 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 4529 schema +struct> +-- !query 4529 output +{1.0:1.0,2.0:2.0} + + +-- !query 4530 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 4530 schema +struct> +-- !query 4530 output +{1.0:1.0,2.0:2.0} + + +-- !query 4531 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 4531 schema +struct> +-- !query 4531 output +{1.0:1,2.0:2} + + +-- !query 4532 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 4532 schema +struct> +-- !query 4532 output +{1.0:"1",2.0:"2"} + + +-- !query 4533 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 4533 schema +struct<> +-- !query 4533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4534 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 4534 schema +struct<> +-- !query 4534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4535 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4535 schema +struct<> +-- !query 4535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4536 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4536 schema +struct<> +-- !query 4536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4537 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 4537 schema +struct> +-- !query 4537 output +{1:1,2:2} + + +-- !query 4538 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 4538 schema +struct> +-- !query 4538 output +{1:1,2:2} + + +-- !query 4539 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 4539 schema +struct> +-- !query 4539 output +{1:1,2:2} + + +-- !query 4540 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 4540 schema +struct> +-- !query 4540 output +{1:1,2:2} + + +-- !query 4541 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 4541 schema +struct> +-- !query 4541 output +{1:1.0,2:2.0} + + +-- !query 4542 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 4542 schema +struct> +-- !query 4542 output +{1:1.0,2:2.0} + + +-- !query 4543 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 4543 schema +struct> +-- !query 4543 output +{1:1,2:2} + + +-- !query 4544 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 4544 schema +struct> +-- !query 4544 output +{1:"1",2:"2"} + + +-- !query 4545 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 4545 schema +struct<> +-- !query 4545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4546 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 4546 schema +struct<> +-- !query 4546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4547 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4547 schema +struct<> +-- !query 4547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4548 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4548 schema +struct<> +-- !query 4548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4549 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 4549 schema +struct> +-- !query 4549 output +{"1":1,"2":2} + + +-- !query 4550 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 4550 schema +struct> +-- !query 4550 output +{"1":1,"2":2} + + +-- !query 4551 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 4551 schema +struct> +-- !query 4551 output +{"1":1,"2":2} + + +-- !query 4552 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 4552 schema +struct> +-- !query 4552 output +{"1":1,"2":2} + + +-- !query 4553 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 4553 schema +struct> +-- !query 4553 output +{"1":1.0,"2":2.0} + + +-- !query 4554 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 4554 schema +struct> +-- !query 4554 output +{"1":1.0,"2":2.0} + + +-- !query 4555 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 4555 schema +struct> +-- !query 4555 output +{"1":1,"2":2} + + +-- !query 4556 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 4556 schema +struct> +-- !query 4556 output +{"1":"1","2":"2"} + + +-- !query 4557 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 4557 schema +struct<> +-- !query 4557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 4558 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 4558 schema +struct<> +-- !query 4558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 4559 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4559 schema +struct<> +-- !query 4559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 4560 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4560 schema +struct<> +-- !query 4560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 4561 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 4561 schema +struct<> +-- !query 4561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4562 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 4562 schema +struct<> +-- !query 4562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4563 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 4563 schema +struct<> +-- !query 4563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4564 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 4564 schema +struct<> +-- !query 4564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4565 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 4565 schema +struct<> +-- !query 4565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4566 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 4566 schema +struct<> +-- !query 4566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4567 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 4567 schema +struct<> +-- !query 4567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4568 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 4568 schema +struct<> +-- !query 4568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4569 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 4569 schema +struct<> +-- !query 4569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4570 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 4570 schema +struct<> +-- !query 4570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4571 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4571 schema +struct<> +-- !query 4571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4572 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4572 schema +struct<> +-- !query 4572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4573 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 4573 schema +struct<> +-- !query 4573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4574 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 4574 schema +struct<> +-- !query 4574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4575 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 4575 schema +struct<> +-- !query 4575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4576 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 4576 schema +struct<> +-- !query 4576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4577 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 4577 schema +struct<> +-- !query 4577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4578 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 4578 schema +struct<> +-- !query 4578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4579 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 4579 schema +struct<> +-- !query 4579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4580 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 4580 schema +struct<> +-- !query 4580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4581 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 4581 schema +struct<> +-- !query 4581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4582 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 4582 schema +struct<> +-- !query 4582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4583 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4583 schema +struct<> +-- !query 4583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4584 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4584 schema +struct<> +-- !query 4584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4585 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 4585 schema +struct<> +-- !query 4585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4586 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 4586 schema +struct<> +-- !query 4586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4587 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 4587 schema +struct<> +-- !query 4587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4588 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 4588 schema +struct<> +-- !query 4588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4589 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 4589 schema +struct<> +-- !query 4589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4590 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 4590 schema +struct<> +-- !query 4590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4591 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 4591 schema +struct<> +-- !query 4591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4592 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 4592 schema +struct<> +-- !query 4592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4593 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 4593 schema +struct<> +-- !query 4593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4594 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 4594 schema +struct<> +-- !query 4594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4595 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4595 schema +struct<> +-- !query 4595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4596 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4596 schema +struct<> +-- !query 4596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4597 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 4597 schema +struct<> +-- !query 4597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4598 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 4598 schema +struct<> +-- !query 4598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4599 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 4599 schema +struct<> +-- !query 4599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4600 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 4600 schema +struct<> +-- !query 4600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4601 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 4601 schema +struct<> +-- !query 4601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4602 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 4602 schema +struct<> +-- !query 4602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4603 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 4603 schema +struct<> +-- !query 4603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4604 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 4604 schema +struct<> +-- !query 4604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4605 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 4605 schema +struct<> +-- !query 4605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4606 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 4606 schema +struct<> +-- !query 4606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4607 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4607 schema +struct<> +-- !query 4607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4608 +SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4608 schema +struct<> +-- !query 4608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4609 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 4609 schema +struct> +-- !query 4609 output +{1:"1",2:"2"} + + +-- !query 4610 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 4610 schema +struct> +-- !query 4610 output +{1:"1",2:"2"} + + +-- !query 4611 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 4611 schema +struct> +-- !query 4611 output +{1:"1",2:"2"} + + +-- !query 4612 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 4612 schema +struct> +-- !query 4612 output +{1:"1",2:"2"} + + +-- !query 4613 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 4613 schema +struct> +-- !query 4613 output +{1:"1",2:"2.0"} + + +-- !query 4614 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 4614 schema +struct> +-- !query 4614 output +{1:"1",2:"2.0"} + + +-- !query 4615 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 4615 schema +struct> +-- !query 4615 output +{1:"1",2:"2"} + + +-- !query 4616 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 4616 schema +struct> +-- !query 4616 output +{1:"1",2:"2"} + + +-- !query 4617 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 4617 schema +struct<> +-- !query 4617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4618 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 4618 schema +struct<> +-- !query 4618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4619 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4619 schema +struct> +-- !query 4619 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 4620 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4620 schema +struct> +-- !query 4620 output +{1:"1",2:"2017-12-12"} + + +-- !query 4621 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 4621 schema +struct> +-- !query 4621 output +{1:"1",2:"2"} + + +-- !query 4622 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 4622 schema +struct> +-- !query 4622 output +{1:"1",2:"2"} + + +-- !query 4623 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 4623 schema +struct> +-- !query 4623 output +{1:"1",2:"2"} + + +-- !query 4624 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 4624 schema +struct> +-- !query 4624 output +{1:"1",2:"2"} + + +-- !query 4625 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 4625 schema +struct> +-- !query 4625 output +{1:"1",2:"2.0"} + + +-- !query 4626 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 4626 schema +struct> +-- !query 4626 output +{1:"1",2:"2.0"} + + +-- !query 4627 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 4627 schema +struct> +-- !query 4627 output +{1:"1",2:"2"} + + +-- !query 4628 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 4628 schema +struct> +-- !query 4628 output +{1:"1",2:"2"} + + +-- !query 4629 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 4629 schema +struct<> +-- !query 4629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4630 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 4630 schema +struct<> +-- !query 4630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4631 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4631 schema +struct> +-- !query 4631 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 4632 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4632 schema +struct> +-- !query 4632 output +{1:"1",2:"2017-12-12"} + + +-- !query 4633 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 4633 schema +struct> +-- !query 4633 output +{1:"1",2:"2"} + + +-- !query 4634 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 4634 schema +struct> +-- !query 4634 output +{1:"1",2:"2"} + + +-- !query 4635 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 4635 schema +struct> +-- !query 4635 output +{1:"1",2:"2"} + + +-- !query 4636 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 4636 schema +struct> +-- !query 4636 output +{1:"1",2:"2"} + + +-- !query 4637 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 4637 schema +struct> +-- !query 4637 output +{1:"1",2:"2.0"} + + +-- !query 4638 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 4638 schema +struct> +-- !query 4638 output +{1:"1",2:"2.0"} + + +-- !query 4639 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 4639 schema +struct> +-- !query 4639 output +{1:"1",2:"2"} + + +-- !query 4640 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 4640 schema +struct> +-- !query 4640 output +{1:"1",2:"2"} + + +-- !query 4641 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 4641 schema +struct<> +-- !query 4641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4642 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 4642 schema +struct<> +-- !query 4642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4643 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4643 schema +struct> +-- !query 4643 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 4644 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4644 schema +struct> +-- !query 4644 output +{1:"1",2:"2017-12-12"} + + +-- !query 4645 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 4645 schema +struct> +-- !query 4645 output +{1:"1",2:"2"} + + +-- !query 4646 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 4646 schema +struct> +-- !query 4646 output +{1:"1",2:"2"} + + +-- !query 4647 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 4647 schema +struct> +-- !query 4647 output +{1:"1",2:"2"} + + +-- !query 4648 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 4648 schema +struct> +-- !query 4648 output +{1:"1",2:"2"} + + +-- !query 4649 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 4649 schema +struct> +-- !query 4649 output +{1:"1",2:"2.0"} + + +-- !query 4650 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 4650 schema +struct> +-- !query 4650 output +{1:"1",2:"2.0"} + + +-- !query 4651 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 4651 schema +struct> +-- !query 4651 output +{1:"1",2:"2"} + + +-- !query 4652 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 4652 schema +struct> +-- !query 4652 output +{1:"1",2:"2"} + + +-- !query 4653 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 4653 schema +struct<> +-- !query 4653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4654 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 4654 schema +struct<> +-- !query 4654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4655 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4655 schema +struct> +-- !query 4655 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 4656 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4656 schema +struct> +-- !query 4656 output +{1:"1",2:"2017-12-12"} + + +-- !query 4657 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 4657 schema +struct> +-- !query 4657 output +{1.0:"1",2.0:"2"} + + +-- !query 4658 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 4658 schema +struct> +-- !query 4658 output +{1.0:"1",2.0:"2"} + + +-- !query 4659 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 4659 schema +struct> +-- !query 4659 output +{1.0:"1",2.0:"2"} + + +-- !query 4660 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 4660 schema +struct> +-- !query 4660 output +{1.0:"1",2.0:"2"} + + +-- !query 4661 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 4661 schema +struct> +-- !query 4661 output +{1.0:"1",2.0:"2.0"} + + +-- !query 4662 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 4662 schema +struct> +-- !query 4662 output +{1.0:"1",2.0:"2.0"} + + +-- !query 4663 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 4663 schema +struct> +-- !query 4663 output +{1.0:"1",2.0:"2"} + + +-- !query 4664 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 4664 schema +struct> +-- !query 4664 output +{1.0:"1",2.0:"2"} + + +-- !query 4665 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 4665 schema +struct<> +-- !query 4665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4666 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 4666 schema +struct<> +-- !query 4666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4667 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4667 schema +struct> +-- !query 4667 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 4668 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4668 schema +struct> +-- !query 4668 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 4669 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 4669 schema +struct> +-- !query 4669 output +{1.0:"1",2.0:"2"} + + +-- !query 4670 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 4670 schema +struct> +-- !query 4670 output +{1.0:"1",2.0:"2"} + + +-- !query 4671 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 4671 schema +struct> +-- !query 4671 output +{1.0:"1",2.0:"2"} + + +-- !query 4672 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 4672 schema +struct> +-- !query 4672 output +{1.0:"1",2.0:"2"} + + +-- !query 4673 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 4673 schema +struct> +-- !query 4673 output +{1.0:"1",2.0:"2.0"} + + +-- !query 4674 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 4674 schema +struct> +-- !query 4674 output +{1.0:"1",2.0:"2.0"} + + +-- !query 4675 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 4675 schema +struct> +-- !query 4675 output +{1.0:"1",2.0:"2"} + + +-- !query 4676 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 4676 schema +struct> +-- !query 4676 output +{1.0:"1",2.0:"2"} + + +-- !query 4677 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 4677 schema +struct<> +-- !query 4677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4678 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 4678 schema +struct<> +-- !query 4678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4679 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4679 schema +struct> +-- !query 4679 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 4680 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4680 schema +struct> +-- !query 4680 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 4681 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 4681 schema +struct> +-- !query 4681 output +{1:"1",2:"2"} + + +-- !query 4682 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 4682 schema +struct> +-- !query 4682 output +{1:"1",2:"2"} + + +-- !query 4683 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 4683 schema +struct> +-- !query 4683 output +{1:"1",2:"2"} + + +-- !query 4684 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 4684 schema +struct> +-- !query 4684 output +{1:"1",2:"2"} + + +-- !query 4685 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 4685 schema +struct> +-- !query 4685 output +{1:"1",2:"2.0"} + + +-- !query 4686 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 4686 schema +struct> +-- !query 4686 output +{1:"1",2:"2.0"} + + +-- !query 4687 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 4687 schema +struct> +-- !query 4687 output +{1:"1",2:"2"} + + +-- !query 4688 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 4688 schema +struct> +-- !query 4688 output +{1:"1",2:"2"} + + +-- !query 4689 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 4689 schema +struct<> +-- !query 4689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4690 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 4690 schema +struct<> +-- !query 4690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4691 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4691 schema +struct> +-- !query 4691 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 4692 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4692 schema +struct> +-- !query 4692 output +{1:"1",2:"2017-12-12"} + + +-- !query 4693 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 4693 schema +struct> +-- !query 4693 output +{"1":"1","2":"2"} + + +-- !query 4694 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 4694 schema +struct> +-- !query 4694 output +{"1":"1","2":"2"} + + +-- !query 4695 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 4695 schema +struct> +-- !query 4695 output +{"1":"1","2":"2"} + + +-- !query 4696 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 4696 schema +struct> +-- !query 4696 output +{"1":"1","2":"2"} + + +-- !query 4697 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 4697 schema +struct> +-- !query 4697 output +{"1":"1","2":"2.0"} + + +-- !query 4698 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 4698 schema +struct> +-- !query 4698 output +{"1":"1","2":"2.0"} + + +-- !query 4699 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 4699 schema +struct> +-- !query 4699 output +{"1":"1","2":"2"} + + +-- !query 4700 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 4700 schema +struct> +-- !query 4700 output +{"1":"1","2":"2"} + + +-- !query 4701 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 4701 schema +struct<> +-- !query 4701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 4702 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 4702 schema +struct<> +-- !query 4702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 4703 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4703 schema +struct> +-- !query 4703 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 4704 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4704 schema +struct> +-- !query 4704 output +{"1":"1","2":"2017-12-12"} + + +-- !query 4705 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 4705 schema +struct<> +-- !query 4705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4706 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 4706 schema +struct<> +-- !query 4706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4707 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 4707 schema +struct<> +-- !query 4707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4708 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 4708 schema +struct<> +-- !query 4708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4709 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 4709 schema +struct<> +-- !query 4709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4710 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 4710 schema +struct<> +-- !query 4710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4711 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 4711 schema +struct<> +-- !query 4711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4712 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 4712 schema +struct<> +-- !query 4712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4713 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 4713 schema +struct<> +-- !query 4713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4714 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 4714 schema +struct<> +-- !query 4714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4715 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4715 schema +struct<> +-- !query 4715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4716 +SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4716 schema +struct<> +-- !query 4716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4717 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 4717 schema +struct<> +-- !query 4717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4718 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 4718 schema +struct<> +-- !query 4718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4719 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 4719 schema +struct<> +-- !query 4719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4720 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 4720 schema +struct<> +-- !query 4720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4721 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 4721 schema +struct<> +-- !query 4721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4722 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 4722 schema +struct<> +-- !query 4722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4723 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 4723 schema +struct<> +-- !query 4723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4724 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 4724 schema +struct<> +-- !query 4724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4725 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 4725 schema +struct<> +-- !query 4725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4726 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 4726 schema +struct<> +-- !query 4726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4727 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4727 schema +struct<> +-- !query 4727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4728 +SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4728 schema +struct<> +-- !query 4728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4729 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 4729 schema +struct<> +-- !query 4729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4730 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 4730 schema +struct<> +-- !query 4730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4731 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 4731 schema +struct<> +-- !query 4731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4732 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 4732 schema +struct<> +-- !query 4732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4733 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 4733 schema +struct<> +-- !query 4733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4734 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 4734 schema +struct<> +-- !query 4734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4735 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 4735 schema +struct<> +-- !query 4735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4736 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 4736 schema +struct<> +-- !query 4736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4737 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 4737 schema +struct<> +-- !query 4737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4738 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 4738 schema +struct<> +-- !query 4738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4739 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4739 schema +struct<> +-- !query 4739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4740 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4740 schema +struct<> +-- !query 4740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4741 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 4741 schema +struct<> +-- !query 4741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4742 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 4742 schema +struct<> +-- !query 4742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4743 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 4743 schema +struct<> +-- !query 4743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4744 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 4744 schema +struct<> +-- !query 4744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4745 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 4745 schema +struct<> +-- !query 4745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4746 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 4746 schema +struct<> +-- !query 4746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4747 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 4747 schema +struct<> +-- !query 4747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4748 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 4748 schema +struct<> +-- !query 4748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4749 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 4749 schema +struct<> +-- !query 4749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4750 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 4750 schema +struct<> +-- !query 4750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4751 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4751 schema +struct<> +-- !query 4751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4752 +SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4752 schema +struct<> +-- !query 4752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4753 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 4753 schema +struct<> +-- !query 4753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4754 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 4754 schema +struct<> +-- !query 4754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4755 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 4755 schema +struct<> +-- !query 4755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4756 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 4756 schema +struct<> +-- !query 4756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4757 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 4757 schema +struct<> +-- !query 4757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4758 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 4758 schema +struct<> +-- !query 4758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4759 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 4759 schema +struct<> +-- !query 4759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4760 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 4760 schema +struct<> +-- !query 4760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4761 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 4761 schema +struct> +-- !query 4761 output +{1:[B@7ae122d6,2:[B@d1c3a0b} + + +-- !query 4762 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 4762 schema +struct<> +-- !query 4762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4763 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4763 schema +struct<> +-- !query 4763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4764 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4764 schema +struct<> +-- !query 4764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4765 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 4765 schema +struct<> +-- !query 4765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4766 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 4766 schema +struct<> +-- !query 4766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4767 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 4767 schema +struct<> +-- !query 4767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4768 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 4768 schema +struct<> +-- !query 4768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4769 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 4769 schema +struct<> +-- !query 4769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4770 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 4770 schema +struct<> +-- !query 4770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4771 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 4771 schema +struct<> +-- !query 4771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4772 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 4772 schema +struct<> +-- !query 4772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4773 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 4773 schema +struct> +-- !query 4773 output +{1:[B@6ffe3631,2:[B@423876b6} + + +-- !query 4774 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 4774 schema +struct<> +-- !query 4774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4775 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4775 schema +struct<> +-- !query 4775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4776 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4776 schema +struct<> +-- !query 4776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4777 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 4777 schema +struct<> +-- !query 4777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4778 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 4778 schema +struct<> +-- !query 4778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4779 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 4779 schema +struct<> +-- !query 4779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4780 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 4780 schema +struct<> +-- !query 4780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4781 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 4781 schema +struct<> +-- !query 4781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4782 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 4782 schema +struct<> +-- !query 4782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4783 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 4783 schema +struct<> +-- !query 4783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4784 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 4784 schema +struct<> +-- !query 4784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4785 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 4785 schema +struct> +-- !query 4785 output +{1:[B@5708a5c6,2:[B@6fb57d24} + + +-- !query 4786 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 4786 schema +struct<> +-- !query 4786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4787 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4787 schema +struct<> +-- !query 4787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4788 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4788 schema +struct<> +-- !query 4788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4789 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 4789 schema +struct<> +-- !query 4789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4790 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 4790 schema +struct<> +-- !query 4790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4791 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 4791 schema +struct<> +-- !query 4791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4792 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 4792 schema +struct<> +-- !query 4792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4793 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 4793 schema +struct<> +-- !query 4793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4794 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 4794 schema +struct<> +-- !query 4794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4795 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 4795 schema +struct<> +-- !query 4795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4796 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 4796 schema +struct<> +-- !query 4796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4797 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 4797 schema +struct> +-- !query 4797 output +{1:[B@51fb6994,2:[B@4616504f} + + +-- !query 4798 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 4798 schema +struct<> +-- !query 4798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4799 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4799 schema +struct<> +-- !query 4799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4800 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4800 schema +struct<> +-- !query 4800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4801 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 4801 schema +struct<> +-- !query 4801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4802 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 4802 schema +struct<> +-- !query 4802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4803 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 4803 schema +struct<> +-- !query 4803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4804 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 4804 schema +struct<> +-- !query 4804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4805 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 4805 schema +struct<> +-- !query 4805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4806 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 4806 schema +struct<> +-- !query 4806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4807 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 4807 schema +struct<> +-- !query 4807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4808 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 4808 schema +struct<> +-- !query 4808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4809 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 4809 schema +struct> +-- !query 4809 output +{1.0:[B@10c4bf52,2.0:[B@c3d7353} + + +-- !query 4810 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 4810 schema +struct<> +-- !query 4810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4811 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4811 schema +struct<> +-- !query 4811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4812 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4812 schema +struct<> +-- !query 4812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4813 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 4813 schema +struct<> +-- !query 4813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4814 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 4814 schema +struct<> +-- !query 4814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4815 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 4815 schema +struct<> +-- !query 4815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4816 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 4816 schema +struct<> +-- !query 4816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4817 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 4817 schema +struct<> +-- !query 4817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4818 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 4818 schema +struct<> +-- !query 4818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4819 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 4819 schema +struct<> +-- !query 4819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4820 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 4820 schema +struct<> +-- !query 4820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4821 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 4821 schema +struct> +-- !query 4821 output +{1.0:[B@73a942e6,2.0:[B@283d8de4} + + +-- !query 4822 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 4822 schema +struct<> +-- !query 4822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4823 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4823 schema +struct<> +-- !query 4823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4824 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4824 schema +struct<> +-- !query 4824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4825 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 4825 schema +struct<> +-- !query 4825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4826 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 4826 schema +struct<> +-- !query 4826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4827 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 4827 schema +struct<> +-- !query 4827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4828 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 4828 schema +struct<> +-- !query 4828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4829 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 4829 schema +struct<> +-- !query 4829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4830 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 4830 schema +struct<> +-- !query 4830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4831 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 4831 schema +struct<> +-- !query 4831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4832 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 4832 schema +struct<> +-- !query 4832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4833 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 4833 schema +struct> +-- !query 4833 output +{1:[B@30009734,2:[B@1de74f0e} + + +-- !query 4834 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 4834 schema +struct<> +-- !query 4834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4835 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4835 schema +struct<> +-- !query 4835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4836 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4836 schema +struct<> +-- !query 4836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4837 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 4837 schema +struct<> +-- !query 4837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 4838 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 4838 schema +struct<> +-- !query 4838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 4839 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 4839 schema +struct<> +-- !query 4839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 4840 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 4840 schema +struct<> +-- !query 4840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 4841 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 4841 schema +struct<> +-- !query 4841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 4842 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 4842 schema +struct<> +-- !query 4842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 4843 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 4843 schema +struct<> +-- !query 4843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 4844 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 4844 schema +struct<> +-- !query 4844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 4845 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 4845 schema +struct> +-- !query 4845 output +{"1":[B@171c7889,"2":[B@5760de10} + + +-- !query 4846 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 4846 schema +struct<> +-- !query 4846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 4847 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4847 schema +struct<> +-- !query 4847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 4848 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4848 schema +struct<> +-- !query 4848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 4849 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 4849 schema +struct<> +-- !query 4849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4850 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 4850 schema +struct<> +-- !query 4850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4851 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 4851 schema +struct<> +-- !query 4851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4852 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 4852 schema +struct<> +-- !query 4852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4853 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 4853 schema +struct<> +-- !query 4853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4854 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 4854 schema +struct<> +-- !query 4854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4855 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 4855 schema +struct<> +-- !query 4855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4856 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 4856 schema +struct<> +-- !query 4856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4857 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 4857 schema +struct<> +-- !query 4857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4858 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 4858 schema +struct<> +-- !query 4858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4859 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4859 schema +struct<> +-- !query 4859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4860 +SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4860 schema +struct<> +-- !query 4860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4861 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 4861 schema +struct<> +-- !query 4861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4862 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 4862 schema +struct<> +-- !query 4862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4863 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 4863 schema +struct<> +-- !query 4863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4864 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 4864 schema +struct<> +-- !query 4864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4865 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 4865 schema +struct<> +-- !query 4865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4866 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 4866 schema +struct<> +-- !query 4866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4867 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 4867 schema +struct<> +-- !query 4867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4868 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 4868 schema +struct<> +-- !query 4868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4869 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 4869 schema +struct<> +-- !query 4869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4870 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 4870 schema +struct<> +-- !query 4870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4871 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4871 schema +struct<> +-- !query 4871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4872 +SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4872 schema +struct<> +-- !query 4872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 4873 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 4873 schema +struct<> +-- !query 4873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4874 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 4874 schema +struct<> +-- !query 4874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4875 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 4875 schema +struct<> +-- !query 4875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4876 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 4876 schema +struct<> +-- !query 4876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4877 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 4877 schema +struct<> +-- !query 4877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4878 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 4878 schema +struct<> +-- !query 4878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4879 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 4879 schema +struct<> +-- !query 4879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4880 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 4880 schema +struct<> +-- !query 4880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4881 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 4881 schema +struct<> +-- !query 4881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4882 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 4882 schema +struct<> +-- !query 4882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4883 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4883 schema +struct<> +-- !query 4883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4884 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4884 schema +struct<> +-- !query 4884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 4885 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 4885 schema +struct<> +-- !query 4885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4886 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 4886 schema +struct<> +-- !query 4886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4887 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 4887 schema +struct<> +-- !query 4887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4888 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 4888 schema +struct<> +-- !query 4888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4889 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 4889 schema +struct<> +-- !query 4889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4890 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 4890 schema +struct<> +-- !query 4890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4891 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 4891 schema +struct<> +-- !query 4891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4892 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 4892 schema +struct<> +-- !query 4892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4893 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 4893 schema +struct<> +-- !query 4893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4894 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 4894 schema +struct<> +-- !query 4894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4895 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4895 schema +struct<> +-- !query 4895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4896 +SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4896 schema +struct<> +-- !query 4896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 4897 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 4897 schema +struct<> +-- !query 4897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4898 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 4898 schema +struct<> +-- !query 4898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4899 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 4899 schema +struct<> +-- !query 4899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4900 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 4900 schema +struct<> +-- !query 4900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4901 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 4901 schema +struct<> +-- !query 4901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4902 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 4902 schema +struct<> +-- !query 4902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4903 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 4903 schema +struct<> +-- !query 4903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4904 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 4904 schema +struct<> +-- !query 4904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4905 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 4905 schema +struct<> +-- !query 4905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4906 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 4906 schema +struct> +-- !query 4906 output +{1:true,2:true} + + +-- !query 4907 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4907 schema +struct<> +-- !query 4907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4908 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4908 schema +struct<> +-- !query 4908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4909 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 4909 schema +struct<> +-- !query 4909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4910 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 4910 schema +struct<> +-- !query 4910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4911 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 4911 schema +struct<> +-- !query 4911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4912 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 4912 schema +struct<> +-- !query 4912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4913 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 4913 schema +struct<> +-- !query 4913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4914 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 4914 schema +struct<> +-- !query 4914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4915 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 4915 schema +struct<> +-- !query 4915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4916 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 4916 schema +struct<> +-- !query 4916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4917 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 4917 schema +struct<> +-- !query 4917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4918 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 4918 schema +struct> +-- !query 4918 output +{1:true,2:true} + + +-- !query 4919 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4919 schema +struct<> +-- !query 4919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4920 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4920 schema +struct<> +-- !query 4920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4921 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 4921 schema +struct<> +-- !query 4921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4922 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 4922 schema +struct<> +-- !query 4922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4923 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 4923 schema +struct<> +-- !query 4923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4924 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 4924 schema +struct<> +-- !query 4924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4925 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 4925 schema +struct<> +-- !query 4925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4926 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 4926 schema +struct<> +-- !query 4926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4927 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 4927 schema +struct<> +-- !query 4927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4928 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 4928 schema +struct<> +-- !query 4928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4929 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 4929 schema +struct<> +-- !query 4929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4930 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 4930 schema +struct> +-- !query 4930 output +{1:true,2:true} + + +-- !query 4931 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4931 schema +struct<> +-- !query 4931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4932 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4932 schema +struct<> +-- !query 4932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4933 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 4933 schema +struct<> +-- !query 4933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4934 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 4934 schema +struct<> +-- !query 4934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4935 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 4935 schema +struct<> +-- !query 4935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4936 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 4936 schema +struct<> +-- !query 4936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4937 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 4937 schema +struct<> +-- !query 4937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4938 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 4938 schema +struct<> +-- !query 4938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4939 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 4939 schema +struct<> +-- !query 4939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4940 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 4940 schema +struct<> +-- !query 4940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4941 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 4941 schema +struct<> +-- !query 4941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4942 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 4942 schema +struct> +-- !query 4942 output +{1:true,2:true} + + +-- !query 4943 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4943 schema +struct<> +-- !query 4943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4944 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4944 schema +struct<> +-- !query 4944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4945 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 4945 schema +struct<> +-- !query 4945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4946 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 4946 schema +struct<> +-- !query 4946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4947 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 4947 schema +struct<> +-- !query 4947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4948 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 4948 schema +struct<> +-- !query 4948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4949 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 4949 schema +struct<> +-- !query 4949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4950 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 4950 schema +struct<> +-- !query 4950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4951 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 4951 schema +struct<> +-- !query 4951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4952 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 4952 schema +struct<> +-- !query 4952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4953 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 4953 schema +struct<> +-- !query 4953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4954 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 4954 schema +struct> +-- !query 4954 output +{1.0:true,2.0:true} + + +-- !query 4955 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4955 schema +struct<> +-- !query 4955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4956 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4956 schema +struct<> +-- !query 4956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4957 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 4957 schema +struct<> +-- !query 4957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4958 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 4958 schema +struct<> +-- !query 4958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4959 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 4959 schema +struct<> +-- !query 4959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4960 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 4960 schema +struct<> +-- !query 4960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4961 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 4961 schema +struct<> +-- !query 4961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4962 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 4962 schema +struct<> +-- !query 4962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4963 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 4963 schema +struct<> +-- !query 4963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4964 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 4964 schema +struct<> +-- !query 4964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4965 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 4965 schema +struct<> +-- !query 4965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4966 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 4966 schema +struct> +-- !query 4966 output +{1.0:true,2.0:true} + + +-- !query 4967 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4967 schema +struct<> +-- !query 4967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4968 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4968 schema +struct<> +-- !query 4968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4969 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 4969 schema +struct<> +-- !query 4969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4970 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 4970 schema +struct<> +-- !query 4970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4971 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 4971 schema +struct<> +-- !query 4971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4972 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 4972 schema +struct<> +-- !query 4972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4973 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 4973 schema +struct<> +-- !query 4973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4974 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 4974 schema +struct<> +-- !query 4974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4975 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 4975 schema +struct<> +-- !query 4975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4976 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 4976 schema +struct<> +-- !query 4976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4977 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 4977 schema +struct<> +-- !query 4977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4978 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 4978 schema +struct> +-- !query 4978 output +{1:true,2:true} + + +-- !query 4979 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4979 schema +struct<> +-- !query 4979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4980 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4980 schema +struct<> +-- !query 4980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4981 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 4981 schema +struct<> +-- !query 4981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 4982 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 4982 schema +struct<> +-- !query 4982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 4983 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 4983 schema +struct<> +-- !query 4983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 4984 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 4984 schema +struct<> +-- !query 4984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 4985 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 4985 schema +struct<> +-- !query 4985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 4986 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 4986 schema +struct<> +-- !query 4986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 4987 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 4987 schema +struct<> +-- !query 4987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 4988 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 4988 schema +struct<> +-- !query 4988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 4989 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 4989 schema +struct<> +-- !query 4989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 4990 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 4990 schema +struct> +-- !query 4990 output +{"1":true,"2":true} + + +-- !query 4991 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 4991 schema +struct<> +-- !query 4991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 4992 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 4992 schema +struct<> +-- !query 4992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 4993 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 4993 schema +struct<> +-- !query 4993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4994 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 4994 schema +struct<> +-- !query 4994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4995 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 4995 schema +struct<> +-- !query 4995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4996 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 4996 schema +struct<> +-- !query 4996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4997 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 4997 schema +struct<> +-- !query 4997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4998 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 4998 schema +struct<> +-- !query 4998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 4999 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 4999 schema +struct<> +-- !query 4999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5000 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 5000 schema +struct<> +-- !query 5000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5001 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 5001 schema +struct<> +-- !query 5001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5002 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 5002 schema +struct<> +-- !query 5002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5003 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5003 schema +struct<> +-- !query 5003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5004 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5004 schema +struct<> +-- !query 5004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5005 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 5005 schema +struct<> +-- !query 5005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5006 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 5006 schema +struct<> +-- !query 5006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5007 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 5007 schema +struct<> +-- !query 5007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5008 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 5008 schema +struct<> +-- !query 5008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5009 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 5009 schema +struct<> +-- !query 5009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5010 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 5010 schema +struct<> +-- !query 5010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5011 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 5011 schema +struct<> +-- !query 5011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5012 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 5012 schema +struct<> +-- !query 5012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5013 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 5013 schema +struct<> +-- !query 5013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5014 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 5014 schema +struct<> +-- !query 5014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5015 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5015 schema +struct<> +-- !query 5015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5016 +SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5016 schema +struct<> +-- !query 5016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5017 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 5017 schema +struct<> +-- !query 5017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5018 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 5018 schema +struct<> +-- !query 5018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5019 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 5019 schema +struct<> +-- !query 5019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5020 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 5020 schema +struct<> +-- !query 5020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5021 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 5021 schema +struct<> +-- !query 5021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5022 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 5022 schema +struct<> +-- !query 5022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5023 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 5023 schema +struct<> +-- !query 5023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5024 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 5024 schema +struct<> +-- !query 5024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5025 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 5025 schema +struct<> +-- !query 5025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5026 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 5026 schema +struct<> +-- !query 5026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5027 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5027 schema +struct<> +-- !query 5027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5028 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5028 schema +struct<> +-- !query 5028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5029 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 5029 schema +struct<> +-- !query 5029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5030 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 5030 schema +struct<> +-- !query 5030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5031 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 5031 schema +struct<> +-- !query 5031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5032 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 5032 schema +struct<> +-- !query 5032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5033 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 5033 schema +struct<> +-- !query 5033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5034 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 5034 schema +struct<> +-- !query 5034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5035 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 5035 schema +struct<> +-- !query 5035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5036 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 5036 schema +struct<> +-- !query 5036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5037 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 5037 schema +struct<> +-- !query 5037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5038 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 5038 schema +struct<> +-- !query 5038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5039 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5039 schema +struct<> +-- !query 5039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5040 +SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5040 schema +struct<> +-- !query 5040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5041 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 5041 schema +struct<> +-- !query 5041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5042 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 5042 schema +struct<> +-- !query 5042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5043 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 5043 schema +struct<> +-- !query 5043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5044 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 5044 schema +struct<> +-- !query 5044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5045 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 5045 schema +struct<> +-- !query 5045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5046 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 5046 schema +struct<> +-- !query 5046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5047 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 5047 schema +struct<> +-- !query 5047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5048 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 5048 schema +struct> +-- !query 5048 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 5049 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 5049 schema +struct<> +-- !query 5049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5050 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 5050 schema +struct<> +-- !query 5050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5051 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5051 schema +struct> +-- !query 5051 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5052 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5052 schema +struct> +-- !query 5052 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 5053 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 5053 schema +struct<> +-- !query 5053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5054 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 5054 schema +struct<> +-- !query 5054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5055 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 5055 schema +struct<> +-- !query 5055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5056 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 5056 schema +struct<> +-- !query 5056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5057 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 5057 schema +struct<> +-- !query 5057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5058 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 5058 schema +struct<> +-- !query 5058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5059 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 5059 schema +struct<> +-- !query 5059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5060 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 5060 schema +struct> +-- !query 5060 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 5061 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 5061 schema +struct<> +-- !query 5061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5062 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 5062 schema +struct<> +-- !query 5062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5063 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5063 schema +struct> +-- !query 5063 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5064 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5064 schema +struct> +-- !query 5064 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 5065 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 5065 schema +struct<> +-- !query 5065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5066 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 5066 schema +struct<> +-- !query 5066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5067 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 5067 schema +struct<> +-- !query 5067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5068 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 5068 schema +struct<> +-- !query 5068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5069 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 5069 schema +struct<> +-- !query 5069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5070 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 5070 schema +struct<> +-- !query 5070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5071 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 5071 schema +struct<> +-- !query 5071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5072 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 5072 schema +struct> +-- !query 5072 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 5073 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 5073 schema +struct<> +-- !query 5073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5074 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 5074 schema +struct<> +-- !query 5074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5075 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5075 schema +struct> +-- !query 5075 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5076 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5076 schema +struct> +-- !query 5076 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 5077 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 5077 schema +struct<> +-- !query 5077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5078 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 5078 schema +struct<> +-- !query 5078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5079 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 5079 schema +struct<> +-- !query 5079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5080 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 5080 schema +struct<> +-- !query 5080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5081 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 5081 schema +struct<> +-- !query 5081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5082 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 5082 schema +struct<> +-- !query 5082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5083 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 5083 schema +struct<> +-- !query 5083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5084 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 5084 schema +struct> +-- !query 5084 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 5085 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 5085 schema +struct<> +-- !query 5085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5086 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 5086 schema +struct<> +-- !query 5086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5087 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5087 schema +struct> +-- !query 5087 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5088 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5088 schema +struct> +-- !query 5088 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 5089 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 5089 schema +struct<> +-- !query 5089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5090 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 5090 schema +struct<> +-- !query 5090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5091 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 5091 schema +struct<> +-- !query 5091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5092 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 5092 schema +struct<> +-- !query 5092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5093 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 5093 schema +struct<> +-- !query 5093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5094 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 5094 schema +struct<> +-- !query 5094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5095 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 5095 schema +struct<> +-- !query 5095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5096 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 5096 schema +struct> +-- !query 5096 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 5097 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 5097 schema +struct<> +-- !query 5097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5098 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 5098 schema +struct<> +-- !query 5098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5099 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5099 schema +struct> +-- !query 5099 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 5100 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5100 schema +struct> +-- !query 5100 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 5101 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 5101 schema +struct<> +-- !query 5101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5102 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 5102 schema +struct<> +-- !query 5102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5103 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 5103 schema +struct<> +-- !query 5103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5104 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 5104 schema +struct<> +-- !query 5104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5105 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 5105 schema +struct<> +-- !query 5105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5106 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 5106 schema +struct<> +-- !query 5106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5107 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 5107 schema +struct<> +-- !query 5107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5108 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 5108 schema +struct> +-- !query 5108 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 5109 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 5109 schema +struct<> +-- !query 5109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5110 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 5110 schema +struct<> +-- !query 5110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5111 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5111 schema +struct> +-- !query 5111 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 5112 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5112 schema +struct> +-- !query 5112 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 5113 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 5113 schema +struct<> +-- !query 5113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5114 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 5114 schema +struct<> +-- !query 5114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5115 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 5115 schema +struct<> +-- !query 5115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5116 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 5116 schema +struct<> +-- !query 5116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5117 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 5117 schema +struct<> +-- !query 5117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5118 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 5118 schema +struct<> +-- !query 5118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5119 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 5119 schema +struct<> +-- !query 5119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5120 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 5120 schema +struct> +-- !query 5120 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 5121 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 5121 schema +struct<> +-- !query 5121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5122 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 5122 schema +struct<> +-- !query 5122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5123 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5123 schema +struct> +-- !query 5123 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5124 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5124 schema +struct> +-- !query 5124 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 5125 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 5125 schema +struct<> +-- !query 5125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 5126 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 5126 schema +struct<> +-- !query 5126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 5127 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 5127 schema +struct<> +-- !query 5127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 5128 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 5128 schema +struct<> +-- !query 5128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 5129 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 5129 schema +struct<> +-- !query 5129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 5130 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 5130 schema +struct<> +-- !query 5130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 5131 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 5131 schema +struct<> +-- !query 5131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 5132 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 5132 schema +struct> +-- !query 5132 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 5133 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 5133 schema +struct<> +-- !query 5133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 5134 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 5134 schema +struct<> +-- !query 5134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 5135 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5135 schema +struct> +-- !query 5135 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 5136 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5136 schema +struct> +-- !query 5136 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 5137 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 5137 schema +struct<> +-- !query 5137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5138 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 5138 schema +struct<> +-- !query 5138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5139 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 5139 schema +struct<> +-- !query 5139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5140 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 5140 schema +struct<> +-- !query 5140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5141 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 5141 schema +struct<> +-- !query 5141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5142 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 5142 schema +struct<> +-- !query 5142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5143 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 5143 schema +struct<> +-- !query 5143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5144 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 5144 schema +struct<> +-- !query 5144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5145 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 5145 schema +struct<> +-- !query 5145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5146 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 5146 schema +struct<> +-- !query 5146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5147 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5147 schema +struct<> +-- !query 5147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5148 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5148 schema +struct<> +-- !query 5148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5149 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 5149 schema +struct<> +-- !query 5149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5150 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 5150 schema +struct<> +-- !query 5150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5151 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 5151 schema +struct<> +-- !query 5151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5152 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 5152 schema +struct<> +-- !query 5152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5153 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 5153 schema +struct<> +-- !query 5153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5154 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 5154 schema +struct<> +-- !query 5154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5155 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 5155 schema +struct<> +-- !query 5155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5156 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 5156 schema +struct<> +-- !query 5156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5157 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 5157 schema +struct<> +-- !query 5157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5158 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 5158 schema +struct<> +-- !query 5158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5159 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5159 schema +struct<> +-- !query 5159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5160 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5160 schema +struct<> +-- !query 5160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5161 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 5161 schema +struct<> +-- !query 5161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5162 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 5162 schema +struct<> +-- !query 5162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5163 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 5163 schema +struct<> +-- !query 5163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5164 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 5164 schema +struct<> +-- !query 5164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5165 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 5165 schema +struct<> +-- !query 5165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5166 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 5166 schema +struct<> +-- !query 5166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5167 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 5167 schema +struct<> +-- !query 5167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5168 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 5168 schema +struct<> +-- !query 5168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5169 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 5169 schema +struct<> +-- !query 5169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5170 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 5170 schema +struct<> +-- !query 5170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5171 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5171 schema +struct<> +-- !query 5171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5172 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5172 schema +struct<> +-- !query 5172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5173 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 5173 schema +struct<> +-- !query 5173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5174 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 5174 schema +struct<> +-- !query 5174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5175 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 5175 schema +struct<> +-- !query 5175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5176 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 5176 schema +struct<> +-- !query 5176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5177 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 5177 schema +struct<> +-- !query 5177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5178 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 5178 schema +struct<> +-- !query 5178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5179 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 5179 schema +struct<> +-- !query 5179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5180 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 5180 schema +struct<> +-- !query 5180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5181 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 5181 schema +struct<> +-- !query 5181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5182 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 5182 schema +struct<> +-- !query 5182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5183 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5183 schema +struct<> +-- !query 5183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5184 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5184 schema +struct<> +-- !query 5184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5185 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 5185 schema +struct<> +-- !query 5185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5186 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 5186 schema +struct<> +-- !query 5186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5187 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 5187 schema +struct<> +-- !query 5187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5188 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 5188 schema +struct<> +-- !query 5188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5189 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 5189 schema +struct<> +-- !query 5189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5190 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 5190 schema +struct<> +-- !query 5190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5191 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 5191 schema +struct<> +-- !query 5191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5192 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 5192 schema +struct> +-- !query 5192 output +{1:"2017-12-11",2:"2"} + + +-- !query 5193 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 5193 schema +struct<> +-- !query 5193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5194 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 5194 schema +struct<> +-- !query 5194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5195 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5195 schema +struct> +-- !query 5195 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5196 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5196 schema +struct> +-- !query 5196 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 5197 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 5197 schema +struct<> +-- !query 5197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5198 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 5198 schema +struct<> +-- !query 5198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5199 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 5199 schema +struct<> +-- !query 5199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5200 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 5200 schema +struct<> +-- !query 5200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5201 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 5201 schema +struct<> +-- !query 5201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5202 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 5202 schema +struct<> +-- !query 5202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5203 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 5203 schema +struct<> +-- !query 5203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5204 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 5204 schema +struct> +-- !query 5204 output +{1:"2017-12-11",2:"2"} + + +-- !query 5205 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 5205 schema +struct<> +-- !query 5205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5206 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 5206 schema +struct<> +-- !query 5206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5207 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5207 schema +struct> +-- !query 5207 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5208 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5208 schema +struct> +-- !query 5208 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 5209 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 5209 schema +struct<> +-- !query 5209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5210 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 5210 schema +struct<> +-- !query 5210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5211 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 5211 schema +struct<> +-- !query 5211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5212 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 5212 schema +struct<> +-- !query 5212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5213 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 5213 schema +struct<> +-- !query 5213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5214 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 5214 schema +struct<> +-- !query 5214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5215 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 5215 schema +struct<> +-- !query 5215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5216 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 5216 schema +struct> +-- !query 5216 output +{1:"2017-12-11",2:"2"} + + +-- !query 5217 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 5217 schema +struct<> +-- !query 5217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5218 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 5218 schema +struct<> +-- !query 5218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5219 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5219 schema +struct> +-- !query 5219 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5220 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5220 schema +struct> +-- !query 5220 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 5221 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 5221 schema +struct<> +-- !query 5221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5222 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 5222 schema +struct<> +-- !query 5222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5223 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 5223 schema +struct<> +-- !query 5223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5224 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 5224 schema +struct<> +-- !query 5224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5225 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 5225 schema +struct<> +-- !query 5225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5226 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 5226 schema +struct<> +-- !query 5226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5227 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 5227 schema +struct<> +-- !query 5227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5228 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 5228 schema +struct> +-- !query 5228 output +{1:"2017-12-11",2:"2"} + + +-- !query 5229 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 5229 schema +struct<> +-- !query 5229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5230 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 5230 schema +struct<> +-- !query 5230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5231 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5231 schema +struct> +-- !query 5231 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5232 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5232 schema +struct> +-- !query 5232 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 5233 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 5233 schema +struct<> +-- !query 5233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5234 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 5234 schema +struct<> +-- !query 5234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5235 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 5235 schema +struct<> +-- !query 5235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5236 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 5236 schema +struct<> +-- !query 5236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5237 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 5237 schema +struct<> +-- !query 5237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5238 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 5238 schema +struct<> +-- !query 5238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5239 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 5239 schema +struct<> +-- !query 5239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5240 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 5240 schema +struct> +-- !query 5240 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 5241 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 5241 schema +struct<> +-- !query 5241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5242 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 5242 schema +struct<> +-- !query 5242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5243 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5243 schema +struct> +-- !query 5243 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 5244 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5244 schema +struct> +-- !query 5244 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 5245 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 5245 schema +struct<> +-- !query 5245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5246 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 5246 schema +struct<> +-- !query 5246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5247 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 5247 schema +struct<> +-- !query 5247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5248 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 5248 schema +struct<> +-- !query 5248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5249 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 5249 schema +struct<> +-- !query 5249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5250 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 5250 schema +struct<> +-- !query 5250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5251 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 5251 schema +struct<> +-- !query 5251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5252 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 5252 schema +struct> +-- !query 5252 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 5253 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 5253 schema +struct<> +-- !query 5253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5254 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 5254 schema +struct<> +-- !query 5254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5255 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5255 schema +struct> +-- !query 5255 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 5256 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5256 schema +struct> +-- !query 5256 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 5257 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 5257 schema +struct<> +-- !query 5257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5258 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 5258 schema +struct<> +-- !query 5258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5259 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 5259 schema +struct<> +-- !query 5259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5260 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 5260 schema +struct<> +-- !query 5260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5261 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 5261 schema +struct<> +-- !query 5261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5262 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 5262 schema +struct<> +-- !query 5262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5263 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 5263 schema +struct<> +-- !query 5263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5264 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 5264 schema +struct> +-- !query 5264 output +{1:"2017-12-11",2:"2"} + + +-- !query 5265 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 5265 schema +struct<> +-- !query 5265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5266 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 5266 schema +struct<> +-- !query 5266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5267 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5267 schema +struct> +-- !query 5267 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 5268 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5268 schema +struct> +-- !query 5268 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 5269 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 5269 schema +struct<> +-- !query 5269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 5270 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 5270 schema +struct<> +-- !query 5270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 5271 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 5271 schema +struct<> +-- !query 5271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 5272 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 5272 schema +struct<> +-- !query 5272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 5273 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 5273 schema +struct<> +-- !query 5273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 5274 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 5274 schema +struct<> +-- !query 5274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 5275 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 5275 schema +struct<> +-- !query 5275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 5276 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 5276 schema +struct> +-- !query 5276 output +{"1":"2017-12-11","2":"2"} + + +-- !query 5277 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 5277 schema +struct<> +-- !query 5277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 5278 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 5278 schema +struct<> +-- !query 5278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 5279 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5279 schema +struct> +-- !query 5279 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 5280 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5280 schema +struct> +-- !query 5280 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 5281 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 5281 schema +struct<> +-- !query 5281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5282 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 5282 schema +struct<> +-- !query 5282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5283 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 5283 schema +struct<> +-- !query 5283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5284 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 5284 schema +struct<> +-- !query 5284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5285 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 5285 schema +struct<> +-- !query 5285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5286 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 5286 schema +struct<> +-- !query 5286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5287 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 5287 schema +struct<> +-- !query 5287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5288 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 5288 schema +struct<> +-- !query 5288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5289 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 5289 schema +struct<> +-- !query 5289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5290 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 5290 schema +struct<> +-- !query 5290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5291 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5291 schema +struct<> +-- !query 5291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5292 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5292 schema +struct<> +-- !query 5292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5293 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 5293 schema +struct<> +-- !query 5293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5294 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 5294 schema +struct<> +-- !query 5294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5295 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 5295 schema +struct<> +-- !query 5295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5296 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 5296 schema +struct<> +-- !query 5296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5297 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 5297 schema +struct<> +-- !query 5297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5298 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 5298 schema +struct<> +-- !query 5298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5299 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 5299 schema +struct<> +-- !query 5299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5300 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 5300 schema +struct<> +-- !query 5300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5301 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 5301 schema +struct<> +-- !query 5301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5302 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 5302 schema +struct<> +-- !query 5302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5303 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5303 schema +struct<> +-- !query 5303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5304 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5304 schema +struct<> +-- !query 5304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5305 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 5305 schema +struct<> +-- !query 5305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5306 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 5306 schema +struct<> +-- !query 5306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5307 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 5307 schema +struct<> +-- !query 5307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5308 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 5308 schema +struct<> +-- !query 5308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5309 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 5309 schema +struct<> +-- !query 5309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5310 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 5310 schema +struct<> +-- !query 5310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5311 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 5311 schema +struct<> +-- !query 5311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5312 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 5312 schema +struct<> +-- !query 5312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5313 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 5313 schema +struct<> +-- !query 5313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5314 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 5314 schema +struct<> +-- !query 5314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5315 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5315 schema +struct<> +-- !query 5315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5316 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5316 schema +struct<> +-- !query 5316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5317 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 5317 schema +struct<> +-- !query 5317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5318 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 5318 schema +struct<> +-- !query 5318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5319 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 5319 schema +struct<> +-- !query 5319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5320 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 5320 schema +struct<> +-- !query 5320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5321 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 5321 schema +struct<> +-- !query 5321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5322 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 5322 schema +struct<> +-- !query 5322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5323 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 5323 schema +struct<> +-- !query 5323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5324 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 5324 schema +struct<> +-- !query 5324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5325 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 5325 schema +struct<> +-- !query 5325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5326 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 5326 schema +struct<> +-- !query 5326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5327 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5327 schema +struct<> +-- !query 5327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5328 +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5328 schema +struct<> +-- !query 5328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5329 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 5329 schema +struct> +-- !query 5329 output +{1:1,2:2} + + +-- !query 5330 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 5330 schema +struct> +-- !query 5330 output +{1:1,2:2} + + +-- !query 5331 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 5331 schema +struct> +-- !query 5331 output +{1:1,2:2} + + +-- !query 5332 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 5332 schema +struct> +-- !query 5332 output +{1:1,2:2} + + +-- !query 5333 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 5333 schema +struct> +-- !query 5333 output +{1:1.0,2:2.0} + + +-- !query 5334 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 5334 schema +struct> +-- !query 5334 output +{1:1.0,2:2.0} + + +-- !query 5335 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 5335 schema +struct> +-- !query 5335 output +{1:1,2:2} + + +-- !query 5336 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 5336 schema +struct> +-- !query 5336 output +{1:"1",2:"2"} + + +-- !query 5337 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 5337 schema +struct<> +-- !query 5337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5338 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 5338 schema +struct<> +-- !query 5338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5339 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5339 schema +struct<> +-- !query 5339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5340 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5340 schema +struct<> +-- !query 5340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5341 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 5341 schema +struct> +-- !query 5341 output +{1:1,2:2} + + +-- !query 5342 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 5342 schema +struct> +-- !query 5342 output +{1:1,2:2} + + +-- !query 5343 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 5343 schema +struct> +-- !query 5343 output +{1:1,2:2} + + +-- !query 5344 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 5344 schema +struct> +-- !query 5344 output +{1:1,2:2} + + +-- !query 5345 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 5345 schema +struct> +-- !query 5345 output +{1:1.0,2:2.0} + + +-- !query 5346 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 5346 schema +struct> +-- !query 5346 output +{1:1.0,2:2.0} + + +-- !query 5347 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 5347 schema +struct> +-- !query 5347 output +{1:1,2:2} + + +-- !query 5348 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 5348 schema +struct> +-- !query 5348 output +{1:"1",2:"2"} + + +-- !query 5349 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 5349 schema +struct<> +-- !query 5349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5350 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 5350 schema +struct<> +-- !query 5350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5351 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5351 schema +struct<> +-- !query 5351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5352 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5352 schema +struct<> +-- !query 5352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5353 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 5353 schema +struct> +-- !query 5353 output +{1:1,2:2} + + +-- !query 5354 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 5354 schema +struct> +-- !query 5354 output +{1:1,2:2} + + +-- !query 5355 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 5355 schema +struct> +-- !query 5355 output +{1:1,2:2} + + +-- !query 5356 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 5356 schema +struct> +-- !query 5356 output +{1:1,2:2} + + +-- !query 5357 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 5357 schema +struct> +-- !query 5357 output +{1:1.0,2:2.0} + + +-- !query 5358 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 5358 schema +struct> +-- !query 5358 output +{1:1.0,2:2.0} + + +-- !query 5359 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 5359 schema +struct> +-- !query 5359 output +{1:1,2:2} + + +-- !query 5360 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 5360 schema +struct> +-- !query 5360 output +{1:"1",2:"2"} + + +-- !query 5361 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 5361 schema +struct<> +-- !query 5361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5362 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 5362 schema +struct<> +-- !query 5362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5363 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5363 schema +struct<> +-- !query 5363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5364 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5364 schema +struct<> +-- !query 5364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5365 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 5365 schema +struct> +-- !query 5365 output +{1:1,2:2} + + +-- !query 5366 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 5366 schema +struct> +-- !query 5366 output +{1:1,2:2} + + +-- !query 5367 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 5367 schema +struct> +-- !query 5367 output +{1:1,2:2} + + +-- !query 5368 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 5368 schema +struct> +-- !query 5368 output +{1:1,2:2} + + +-- !query 5369 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 5369 schema +struct> +-- !query 5369 output +{1:1.0,2:2.0} + + +-- !query 5370 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 5370 schema +struct> +-- !query 5370 output +{1:1.0,2:2.0} + + +-- !query 5371 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 5371 schema +struct> +-- !query 5371 output +{1:1,2:2} + + +-- !query 5372 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 5372 schema +struct> +-- !query 5372 output +{1:"1",2:"2"} + + +-- !query 5373 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 5373 schema +struct<> +-- !query 5373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5374 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 5374 schema +struct<> +-- !query 5374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5375 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5375 schema +struct<> +-- !query 5375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5376 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5376 schema +struct<> +-- !query 5376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5377 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 5377 schema +struct> +-- !query 5377 output +{1.0:1,2.0:2} + + +-- !query 5378 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 5378 schema +struct> +-- !query 5378 output +{1.0:1,2.0:2} + + +-- !query 5379 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 5379 schema +struct> +-- !query 5379 output +{1.0:1,2.0:2} + + +-- !query 5380 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 5380 schema +struct> +-- !query 5380 output +{1.0:1,2.0:2} + + +-- !query 5381 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 5381 schema +struct> +-- !query 5381 output +{1.0:1.0,2.0:2.0} + + +-- !query 5382 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 5382 schema +struct> +-- !query 5382 output +{1.0:1.0,2.0:2.0} + + +-- !query 5383 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 5383 schema +struct> +-- !query 5383 output +{1.0:1,2.0:2} + + +-- !query 5384 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 5384 schema +struct> +-- !query 5384 output +{1.0:"1",2.0:"2"} + + +-- !query 5385 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 5385 schema +struct<> +-- !query 5385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5386 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 5386 schema +struct<> +-- !query 5386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5387 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5387 schema +struct<> +-- !query 5387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5388 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5388 schema +struct<> +-- !query 5388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5389 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 5389 schema +struct> +-- !query 5389 output +{1.0:1,2.0:2} + + +-- !query 5390 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 5390 schema +struct> +-- !query 5390 output +{1.0:1,2.0:2} + + +-- !query 5391 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 5391 schema +struct> +-- !query 5391 output +{1.0:1,2.0:2} + + +-- !query 5392 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 5392 schema +struct> +-- !query 5392 output +{1.0:1,2.0:2} + + +-- !query 5393 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 5393 schema +struct> +-- !query 5393 output +{1.0:1.0,2.0:2.0} + + +-- !query 5394 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 5394 schema +struct> +-- !query 5394 output +{1.0:1.0,2.0:2.0} + + +-- !query 5395 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 5395 schema +struct> +-- !query 5395 output +{1.0:1,2.0:2} + + +-- !query 5396 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 5396 schema +struct> +-- !query 5396 output +{1.0:"1",2.0:"2"} + + +-- !query 5397 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 5397 schema +struct<> +-- !query 5397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5398 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 5398 schema +struct<> +-- !query 5398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5399 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5399 schema +struct<> +-- !query 5399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5400 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5400 schema +struct<> +-- !query 5400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5401 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 5401 schema +struct> +-- !query 5401 output +{1:1,2:2} + + +-- !query 5402 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 5402 schema +struct> +-- !query 5402 output +{1:1,2:2} + + +-- !query 5403 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 5403 schema +struct> +-- !query 5403 output +{1:1,2:2} + + +-- !query 5404 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 5404 schema +struct> +-- !query 5404 output +{1:1,2:2} + + +-- !query 5405 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 5405 schema +struct> +-- !query 5405 output +{1:1.0,2:2.0} + + +-- !query 5406 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 5406 schema +struct> +-- !query 5406 output +{1:1.0,2:2.0} + + +-- !query 5407 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 5407 schema +struct> +-- !query 5407 output +{1:1,2:2} + + +-- !query 5408 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 5408 schema +struct> +-- !query 5408 output +{1:"1",2:"2"} + + +-- !query 5409 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 5409 schema +struct<> +-- !query 5409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5410 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 5410 schema +struct<> +-- !query 5410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5411 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5411 schema +struct<> +-- !query 5411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5412 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5412 schema +struct<> +-- !query 5412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5413 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 5413 schema +struct> +-- !query 5413 output +{"1":1,"2":2} + + +-- !query 5414 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 5414 schema +struct> +-- !query 5414 output +{"1":1,"2":2} + + +-- !query 5415 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 5415 schema +struct> +-- !query 5415 output +{"1":1,"2":2} + + +-- !query 5416 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 5416 schema +struct> +-- !query 5416 output +{"1":1,"2":2} + + +-- !query 5417 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 5417 schema +struct> +-- !query 5417 output +{"1":1.0,"2":2.0} + + +-- !query 5418 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 5418 schema +struct> +-- !query 5418 output +{"1":1.0,"2":2.0} + + +-- !query 5419 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 5419 schema +struct> +-- !query 5419 output +{"1":1,"2":2} + + +-- !query 5420 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 5420 schema +struct> +-- !query 5420 output +{"1":"1","2":"2"} + + +-- !query 5421 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 5421 schema +struct<> +-- !query 5421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 5422 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 5422 schema +struct<> +-- !query 5422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 5423 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5423 schema +struct<> +-- !query 5423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 5424 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5424 schema +struct<> +-- !query 5424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 5425 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 5425 schema +struct<> +-- !query 5425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5426 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 5426 schema +struct<> +-- !query 5426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5427 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 5427 schema +struct<> +-- !query 5427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5428 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 5428 schema +struct<> +-- !query 5428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5429 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 5429 schema +struct<> +-- !query 5429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5430 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 5430 schema +struct<> +-- !query 5430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5431 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 5431 schema +struct<> +-- !query 5431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5432 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 5432 schema +struct<> +-- !query 5432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5433 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 5433 schema +struct<> +-- !query 5433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5434 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 5434 schema +struct<> +-- !query 5434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5435 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5435 schema +struct<> +-- !query 5435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5436 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5436 schema +struct<> +-- !query 5436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5437 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 5437 schema +struct<> +-- !query 5437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5438 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 5438 schema +struct<> +-- !query 5438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5439 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 5439 schema +struct<> +-- !query 5439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5440 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 5440 schema +struct<> +-- !query 5440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5441 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 5441 schema +struct<> +-- !query 5441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5442 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 5442 schema +struct<> +-- !query 5442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5443 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 5443 schema +struct<> +-- !query 5443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5444 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 5444 schema +struct<> +-- !query 5444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5445 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 5445 schema +struct<> +-- !query 5445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5446 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 5446 schema +struct<> +-- !query 5446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5447 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5447 schema +struct<> +-- !query 5447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5448 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5448 schema +struct<> +-- !query 5448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5449 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 5449 schema +struct<> +-- !query 5449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5450 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 5450 schema +struct<> +-- !query 5450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5451 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 5451 schema +struct<> +-- !query 5451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5452 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 5452 schema +struct<> +-- !query 5452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5453 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 5453 schema +struct<> +-- !query 5453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5454 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 5454 schema +struct<> +-- !query 5454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5455 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 5455 schema +struct<> +-- !query 5455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5456 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 5456 schema +struct<> +-- !query 5456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5457 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 5457 schema +struct<> +-- !query 5457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5458 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 5458 schema +struct<> +-- !query 5458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5459 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5459 schema +struct<> +-- !query 5459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5460 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5460 schema +struct<> +-- !query 5460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5461 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 5461 schema +struct<> +-- !query 5461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5462 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 5462 schema +struct<> +-- !query 5462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5463 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 5463 schema +struct<> +-- !query 5463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5464 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 5464 schema +struct<> +-- !query 5464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5465 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 5465 schema +struct<> +-- !query 5465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5466 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 5466 schema +struct<> +-- !query 5466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5467 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 5467 schema +struct<> +-- !query 5467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5468 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 5468 schema +struct<> +-- !query 5468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5469 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 5469 schema +struct<> +-- !query 5469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5470 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 5470 schema +struct<> +-- !query 5470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5471 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5471 schema +struct<> +-- !query 5471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5472 +SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5472 schema +struct<> +-- !query 5472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5473 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 5473 schema +struct> +-- !query 5473 output +{1:1,2:2} + + +-- !query 5474 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 5474 schema +struct> +-- !query 5474 output +{1:1,2:2} + + +-- !query 5475 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 5475 schema +struct> +-- !query 5475 output +{1:1,2:2} + + +-- !query 5476 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 5476 schema +struct> +-- !query 5476 output +{1:1,2:2} + + +-- !query 5477 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 5477 schema +struct> +-- !query 5477 output +{1:1.0,2:2.0} + + +-- !query 5478 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 5478 schema +struct> +-- !query 5478 output +{1:1.0,2:2.0} + + +-- !query 5479 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 5479 schema +struct> +-- !query 5479 output +{1:1,2:2} + + +-- !query 5480 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 5480 schema +struct> +-- !query 5480 output +{1:"1",2:"2"} + + +-- !query 5481 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 5481 schema +struct<> +-- !query 5481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5482 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 5482 schema +struct<> +-- !query 5482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5483 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5483 schema +struct<> +-- !query 5483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5484 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5484 schema +struct<> +-- !query 5484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5485 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 5485 schema +struct> +-- !query 5485 output +{1:1,2:2} + + +-- !query 5486 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 5486 schema +struct> +-- !query 5486 output +{1:1,2:2} + + +-- !query 5487 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 5487 schema +struct> +-- !query 5487 output +{1:1,2:2} + + +-- !query 5488 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 5488 schema +struct> +-- !query 5488 output +{1:1,2:2} + + +-- !query 5489 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 5489 schema +struct> +-- !query 5489 output +{1:1.0,2:2.0} + + +-- !query 5490 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 5490 schema +struct> +-- !query 5490 output +{1:1.0,2:2.0} + + +-- !query 5491 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 5491 schema +struct> +-- !query 5491 output +{1:1,2:2} + + +-- !query 5492 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 5492 schema +struct> +-- !query 5492 output +{1:"1",2:"2"} + + +-- !query 5493 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 5493 schema +struct<> +-- !query 5493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5494 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 5494 schema +struct<> +-- !query 5494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5495 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5495 schema +struct<> +-- !query 5495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5496 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5496 schema +struct<> +-- !query 5496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5497 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 5497 schema +struct> +-- !query 5497 output +{1:1,2:2} + + +-- !query 5498 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 5498 schema +struct> +-- !query 5498 output +{1:1,2:2} + + +-- !query 5499 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 5499 schema +struct> +-- !query 5499 output +{1:1,2:2} + + +-- !query 5500 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 5500 schema +struct> +-- !query 5500 output +{1:1,2:2} + + +-- !query 5501 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 5501 schema +struct> +-- !query 5501 output +{1:1.0,2:2.0} + + +-- !query 5502 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 5502 schema +struct> +-- !query 5502 output +{1:1.0,2:2.0} + + +-- !query 5503 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 5503 schema +struct> +-- !query 5503 output +{1:1,2:2} + + +-- !query 5504 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 5504 schema +struct> +-- !query 5504 output +{1:"1",2:"2"} + + +-- !query 5505 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 5505 schema +struct<> +-- !query 5505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5506 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 5506 schema +struct<> +-- !query 5506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5507 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5507 schema +struct<> +-- !query 5507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5508 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5508 schema +struct<> +-- !query 5508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5509 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 5509 schema +struct> +-- !query 5509 output +{1:1,2:2} + + +-- !query 5510 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 5510 schema +struct> +-- !query 5510 output +{1:1,2:2} + + +-- !query 5511 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 5511 schema +struct> +-- !query 5511 output +{1:1,2:2} + + +-- !query 5512 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 5512 schema +struct> +-- !query 5512 output +{1:1,2:2} + + +-- !query 5513 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 5513 schema +struct> +-- !query 5513 output +{1:1.0,2:2.0} + + +-- !query 5514 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 5514 schema +struct> +-- !query 5514 output +{1:1.0,2:2.0} + + +-- !query 5515 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 5515 schema +struct> +-- !query 5515 output +{1:1,2:2} + + +-- !query 5516 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 5516 schema +struct> +-- !query 5516 output +{1:"1",2:"2"} + + +-- !query 5517 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 5517 schema +struct<> +-- !query 5517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5518 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 5518 schema +struct<> +-- !query 5518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5519 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5519 schema +struct<> +-- !query 5519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5520 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5520 schema +struct<> +-- !query 5520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5521 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 5521 schema +struct> +-- !query 5521 output +{1.0:1,2.0:2} + + +-- !query 5522 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 5522 schema +struct> +-- !query 5522 output +{1.0:1,2.0:2} + + +-- !query 5523 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 5523 schema +struct> +-- !query 5523 output +{1.0:1,2.0:2} + + +-- !query 5524 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 5524 schema +struct> +-- !query 5524 output +{1.0:1,2.0:2} + + +-- !query 5525 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 5525 schema +struct> +-- !query 5525 output +{1.0:1.0,2.0:2.0} + + +-- !query 5526 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 5526 schema +struct> +-- !query 5526 output +{1.0:1.0,2.0:2.0} + + +-- !query 5527 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 5527 schema +struct> +-- !query 5527 output +{1.0:1,2.0:2} + + +-- !query 5528 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 5528 schema +struct> +-- !query 5528 output +{1.0:"1",2.0:"2"} + + +-- !query 5529 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 5529 schema +struct<> +-- !query 5529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5530 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 5530 schema +struct<> +-- !query 5530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5531 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5531 schema +struct<> +-- !query 5531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5532 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5532 schema +struct<> +-- !query 5532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5533 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 5533 schema +struct> +-- !query 5533 output +{1.0:1,2.0:2} + + +-- !query 5534 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 5534 schema +struct> +-- !query 5534 output +{1.0:1,2.0:2} + + +-- !query 5535 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 5535 schema +struct> +-- !query 5535 output +{1.0:1,2.0:2} + + +-- !query 5536 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 5536 schema +struct> +-- !query 5536 output +{1.0:1,2.0:2} + + +-- !query 5537 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 5537 schema +struct> +-- !query 5537 output +{1.0:1.0,2.0:2.0} + + +-- !query 5538 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 5538 schema +struct> +-- !query 5538 output +{1.0:1.0,2.0:2.0} + + +-- !query 5539 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 5539 schema +struct> +-- !query 5539 output +{1.0:1,2.0:2} + + +-- !query 5540 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 5540 schema +struct> +-- !query 5540 output +{1.0:"1",2.0:"2"} + + +-- !query 5541 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 5541 schema +struct<> +-- !query 5541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5542 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 5542 schema +struct<> +-- !query 5542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5543 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5543 schema +struct<> +-- !query 5543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5544 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5544 schema +struct<> +-- !query 5544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5545 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 5545 schema +struct> +-- !query 5545 output +{1:1,2:2} + + +-- !query 5546 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 5546 schema +struct> +-- !query 5546 output +{1:1,2:2} + + +-- !query 5547 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 5547 schema +struct> +-- !query 5547 output +{1:1,2:2} + + +-- !query 5548 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 5548 schema +struct> +-- !query 5548 output +{1:1,2:2} + + +-- !query 5549 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 5549 schema +struct> +-- !query 5549 output +{1:1.0,2:2.0} + + +-- !query 5550 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 5550 schema +struct> +-- !query 5550 output +{1:1.0,2:2.0} + + +-- !query 5551 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 5551 schema +struct> +-- !query 5551 output +{1:1,2:2} + + +-- !query 5552 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 5552 schema +struct> +-- !query 5552 output +{1:"1",2:"2"} + + +-- !query 5553 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 5553 schema +struct<> +-- !query 5553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5554 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 5554 schema +struct<> +-- !query 5554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5555 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5555 schema +struct<> +-- !query 5555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5556 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5556 schema +struct<> +-- !query 5556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5557 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 5557 schema +struct> +-- !query 5557 output +{"1":1,"2":2} + + +-- !query 5558 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 5558 schema +struct> +-- !query 5558 output +{"1":1,"2":2} + + +-- !query 5559 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 5559 schema +struct> +-- !query 5559 output +{"1":1,"2":2} + + +-- !query 5560 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 5560 schema +struct> +-- !query 5560 output +{"1":1,"2":2} + + +-- !query 5561 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 5561 schema +struct> +-- !query 5561 output +{"1":1.0,"2":2.0} + + +-- !query 5562 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 5562 schema +struct> +-- !query 5562 output +{"1":1.0,"2":2.0} + + +-- !query 5563 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 5563 schema +struct> +-- !query 5563 output +{"1":1,"2":2} + + +-- !query 5564 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 5564 schema +struct> +-- !query 5564 output +{"1":"1","2":"2"} + + +-- !query 5565 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 5565 schema +struct<> +-- !query 5565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 5566 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 5566 schema +struct<> +-- !query 5566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 5567 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5567 schema +struct<> +-- !query 5567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 5568 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5568 schema +struct<> +-- !query 5568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 5569 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 5569 schema +struct<> +-- !query 5569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5570 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 5570 schema +struct<> +-- !query 5570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5571 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 5571 schema +struct<> +-- !query 5571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5572 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 5572 schema +struct<> +-- !query 5572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5573 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 5573 schema +struct<> +-- !query 5573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5574 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 5574 schema +struct<> +-- !query 5574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5575 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 5575 schema +struct<> +-- !query 5575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5576 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 5576 schema +struct<> +-- !query 5576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5577 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 5577 schema +struct<> +-- !query 5577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5578 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 5578 schema +struct<> +-- !query 5578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5579 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5579 schema +struct<> +-- !query 5579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5580 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5580 schema +struct<> +-- !query 5580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5581 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 5581 schema +struct<> +-- !query 5581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5582 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 5582 schema +struct<> +-- !query 5582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5583 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 5583 schema +struct<> +-- !query 5583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5584 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 5584 schema +struct<> +-- !query 5584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5585 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 5585 schema +struct<> +-- !query 5585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5586 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 5586 schema +struct<> +-- !query 5586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5587 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 5587 schema +struct<> +-- !query 5587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5588 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 5588 schema +struct<> +-- !query 5588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5589 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 5589 schema +struct<> +-- !query 5589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5590 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 5590 schema +struct<> +-- !query 5590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5591 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5591 schema +struct<> +-- !query 5591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5592 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5592 schema +struct<> +-- !query 5592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5593 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 5593 schema +struct<> +-- !query 5593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5594 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 5594 schema +struct<> +-- !query 5594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5595 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 5595 schema +struct<> +-- !query 5595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5596 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 5596 schema +struct<> +-- !query 5596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5597 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 5597 schema +struct<> +-- !query 5597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5598 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 5598 schema +struct<> +-- !query 5598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5599 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 5599 schema +struct<> +-- !query 5599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5600 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 5600 schema +struct<> +-- !query 5600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5601 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 5601 schema +struct<> +-- !query 5601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5602 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 5602 schema +struct<> +-- !query 5602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5603 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5603 schema +struct<> +-- !query 5603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5604 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5604 schema +struct<> +-- !query 5604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5605 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 5605 schema +struct<> +-- !query 5605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5606 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 5606 schema +struct<> +-- !query 5606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5607 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 5607 schema +struct<> +-- !query 5607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5608 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 5608 schema +struct<> +-- !query 5608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5609 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 5609 schema +struct<> +-- !query 5609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5610 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 5610 schema +struct<> +-- !query 5610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5611 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 5611 schema +struct<> +-- !query 5611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5612 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 5612 schema +struct<> +-- !query 5612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5613 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 5613 schema +struct<> +-- !query 5613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5614 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 5614 schema +struct<> +-- !query 5614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5615 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5615 schema +struct<> +-- !query 5615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5616 +SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5616 schema +struct<> +-- !query 5616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5617 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 5617 schema +struct> +-- !query 5617 output +{1:1,2:2} + + +-- !query 5618 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 5618 schema +struct> +-- !query 5618 output +{1:1,2:2} + + +-- !query 5619 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 5619 schema +struct> +-- !query 5619 output +{1:1,2:2} + + +-- !query 5620 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 5620 schema +struct> +-- !query 5620 output +{1:1,2:2} + + +-- !query 5621 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 5621 schema +struct> +-- !query 5621 output +{1:1.0,2:2.0} + + +-- !query 5622 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 5622 schema +struct> +-- !query 5622 output +{1:1.0,2:2.0} + + +-- !query 5623 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 5623 schema +struct> +-- !query 5623 output +{1:1,2:2} + + +-- !query 5624 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 5624 schema +struct> +-- !query 5624 output +{1:"1",2:"2"} + + +-- !query 5625 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 5625 schema +struct<> +-- !query 5625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5626 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 5626 schema +struct<> +-- !query 5626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5627 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5627 schema +struct<> +-- !query 5627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5628 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5628 schema +struct<> +-- !query 5628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5629 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 5629 schema +struct> +-- !query 5629 output +{1:1,2:2} + + +-- !query 5630 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 5630 schema +struct> +-- !query 5630 output +{1:1,2:2} + + +-- !query 5631 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 5631 schema +struct> +-- !query 5631 output +{1:1,2:2} + + +-- !query 5632 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 5632 schema +struct> +-- !query 5632 output +{1:1,2:2} + + +-- !query 5633 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 5633 schema +struct> +-- !query 5633 output +{1:1.0,2:2.0} + + +-- !query 5634 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 5634 schema +struct> +-- !query 5634 output +{1:1.0,2:2.0} + + +-- !query 5635 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 5635 schema +struct> +-- !query 5635 output +{1:1,2:2} + + +-- !query 5636 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 5636 schema +struct> +-- !query 5636 output +{1:"1",2:"2"} + + +-- !query 5637 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 5637 schema +struct<> +-- !query 5637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5638 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 5638 schema +struct<> +-- !query 5638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5639 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5639 schema +struct<> +-- !query 5639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5640 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5640 schema +struct<> +-- !query 5640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5641 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 5641 schema +struct> +-- !query 5641 output +{1:1,2:2} + + +-- !query 5642 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 5642 schema +struct> +-- !query 5642 output +{1:1,2:2} + + +-- !query 5643 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 5643 schema +struct> +-- !query 5643 output +{1:1,2:2} + + +-- !query 5644 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 5644 schema +struct> +-- !query 5644 output +{1:1,2:2} + + +-- !query 5645 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 5645 schema +struct> +-- !query 5645 output +{1:1.0,2:2.0} + + +-- !query 5646 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 5646 schema +struct> +-- !query 5646 output +{1:1.0,2:2.0} + + +-- !query 5647 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 5647 schema +struct> +-- !query 5647 output +{1:1,2:2} + + +-- !query 5648 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 5648 schema +struct> +-- !query 5648 output +{1:"1",2:"2"} + + +-- !query 5649 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 5649 schema +struct<> +-- !query 5649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5650 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 5650 schema +struct<> +-- !query 5650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5651 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5651 schema +struct<> +-- !query 5651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5652 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5652 schema +struct<> +-- !query 5652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5653 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 5653 schema +struct> +-- !query 5653 output +{1:1,2:2} + + +-- !query 5654 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 5654 schema +struct> +-- !query 5654 output +{1:1,2:2} + + +-- !query 5655 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 5655 schema +struct> +-- !query 5655 output +{1:1,2:2} + + +-- !query 5656 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 5656 schema +struct> +-- !query 5656 output +{1:1,2:2} + + +-- !query 5657 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 5657 schema +struct> +-- !query 5657 output +{1:1.0,2:2.0} + + +-- !query 5658 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 5658 schema +struct> +-- !query 5658 output +{1:1.0,2:2.0} + + +-- !query 5659 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 5659 schema +struct> +-- !query 5659 output +{1:1,2:2} + + +-- !query 5660 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 5660 schema +struct> +-- !query 5660 output +{1:"1",2:"2"} + + +-- !query 5661 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 5661 schema +struct<> +-- !query 5661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5662 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 5662 schema +struct<> +-- !query 5662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5663 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5663 schema +struct<> +-- !query 5663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5664 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5664 schema +struct<> +-- !query 5664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5665 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 5665 schema +struct> +-- !query 5665 output +{1.0:1,2.0:2} + + +-- !query 5666 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 5666 schema +struct> +-- !query 5666 output +{1.0:1,2.0:2} + + +-- !query 5667 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 5667 schema +struct> +-- !query 5667 output +{1.0:1,2.0:2} + + +-- !query 5668 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 5668 schema +struct> +-- !query 5668 output +{1.0:1,2.0:2} + + +-- !query 5669 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 5669 schema +struct> +-- !query 5669 output +{1.0:1.0,2.0:2.0} + + +-- !query 5670 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 5670 schema +struct> +-- !query 5670 output +{1.0:1.0,2.0:2.0} + + +-- !query 5671 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 5671 schema +struct> +-- !query 5671 output +{1.0:1,2.0:2} + + +-- !query 5672 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 5672 schema +struct> +-- !query 5672 output +{1.0:"1",2.0:"2"} + + +-- !query 5673 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 5673 schema +struct<> +-- !query 5673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5674 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 5674 schema +struct<> +-- !query 5674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5675 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5675 schema +struct<> +-- !query 5675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5676 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5676 schema +struct<> +-- !query 5676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5677 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 5677 schema +struct> +-- !query 5677 output +{1.0:1,2.0:2} + + +-- !query 5678 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 5678 schema +struct> +-- !query 5678 output +{1.0:1,2.0:2} + + +-- !query 5679 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 5679 schema +struct> +-- !query 5679 output +{1.0:1,2.0:2} + + +-- !query 5680 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 5680 schema +struct> +-- !query 5680 output +{1.0:1,2.0:2} + + +-- !query 5681 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 5681 schema +struct> +-- !query 5681 output +{1.0:1.0,2.0:2.0} + + +-- !query 5682 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 5682 schema +struct> +-- !query 5682 output +{1.0:1.0,2.0:2.0} + + +-- !query 5683 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 5683 schema +struct> +-- !query 5683 output +{1.0:1,2.0:2} + + +-- !query 5684 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 5684 schema +struct> +-- !query 5684 output +{1.0:"1",2.0:"2"} + + +-- !query 5685 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 5685 schema +struct<> +-- !query 5685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5686 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 5686 schema +struct<> +-- !query 5686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5687 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5687 schema +struct<> +-- !query 5687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5688 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5688 schema +struct<> +-- !query 5688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5689 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 5689 schema +struct> +-- !query 5689 output +{1:1,2:2} + + +-- !query 5690 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 5690 schema +struct> +-- !query 5690 output +{1:1,2:2} + + +-- !query 5691 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 5691 schema +struct> +-- !query 5691 output +{1:1,2:2} + + +-- !query 5692 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 5692 schema +struct> +-- !query 5692 output +{1:1,2:2} + + +-- !query 5693 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 5693 schema +struct> +-- !query 5693 output +{1:1.0,2:2.0} + + +-- !query 5694 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 5694 schema +struct> +-- !query 5694 output +{1:1.0,2:2.0} + + +-- !query 5695 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 5695 schema +struct> +-- !query 5695 output +{1:1,2:2} + + +-- !query 5696 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 5696 schema +struct> +-- !query 5696 output +{1:"1",2:"2"} + + +-- !query 5697 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 5697 schema +struct<> +-- !query 5697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5698 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 5698 schema +struct<> +-- !query 5698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5699 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5699 schema +struct<> +-- !query 5699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5700 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5700 schema +struct<> +-- !query 5700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5701 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 5701 schema +struct> +-- !query 5701 output +{"1":1,"2":2} + + +-- !query 5702 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 5702 schema +struct> +-- !query 5702 output +{"1":1,"2":2} + + +-- !query 5703 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 5703 schema +struct> +-- !query 5703 output +{"1":1,"2":2} + + +-- !query 5704 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 5704 schema +struct> +-- !query 5704 output +{"1":1,"2":2} + + +-- !query 5705 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 5705 schema +struct> +-- !query 5705 output +{"1":1.0,"2":2.0} + + +-- !query 5706 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 5706 schema +struct> +-- !query 5706 output +{"1":1.0,"2":2.0} + + +-- !query 5707 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 5707 schema +struct> +-- !query 5707 output +{"1":1,"2":2} + + +-- !query 5708 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 5708 schema +struct> +-- !query 5708 output +{"1":"1","2":"2"} + + +-- !query 5709 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 5709 schema +struct<> +-- !query 5709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 5710 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 5710 schema +struct<> +-- !query 5710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 5711 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5711 schema +struct<> +-- !query 5711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 5712 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5712 schema +struct<> +-- !query 5712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 5713 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 5713 schema +struct<> +-- !query 5713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5714 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 5714 schema +struct<> +-- !query 5714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5715 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 5715 schema +struct<> +-- !query 5715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5716 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 5716 schema +struct<> +-- !query 5716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5717 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 5717 schema +struct<> +-- !query 5717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5718 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 5718 schema +struct<> +-- !query 5718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5719 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 5719 schema +struct<> +-- !query 5719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5720 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 5720 schema +struct<> +-- !query 5720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5721 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 5721 schema +struct<> +-- !query 5721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5722 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 5722 schema +struct<> +-- !query 5722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5723 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5723 schema +struct<> +-- !query 5723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5724 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5724 schema +struct<> +-- !query 5724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5725 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 5725 schema +struct<> +-- !query 5725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5726 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 5726 schema +struct<> +-- !query 5726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5727 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 5727 schema +struct<> +-- !query 5727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5728 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 5728 schema +struct<> +-- !query 5728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5729 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 5729 schema +struct<> +-- !query 5729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5730 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 5730 schema +struct<> +-- !query 5730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5731 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 5731 schema +struct<> +-- !query 5731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5732 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 5732 schema +struct<> +-- !query 5732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5733 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 5733 schema +struct<> +-- !query 5733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5734 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 5734 schema +struct<> +-- !query 5734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5735 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5735 schema +struct<> +-- !query 5735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5736 +SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5736 schema +struct<> +-- !query 5736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5737 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 5737 schema +struct<> +-- !query 5737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5738 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 5738 schema +struct<> +-- !query 5738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5739 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 5739 schema +struct<> +-- !query 5739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5740 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 5740 schema +struct<> +-- !query 5740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5741 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 5741 schema +struct<> +-- !query 5741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5742 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 5742 schema +struct<> +-- !query 5742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5743 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 5743 schema +struct<> +-- !query 5743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5744 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 5744 schema +struct<> +-- !query 5744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5745 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 5745 schema +struct<> +-- !query 5745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5746 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 5746 schema +struct<> +-- !query 5746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5747 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5747 schema +struct<> +-- !query 5747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5748 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5748 schema +struct<> +-- !query 5748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5749 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 5749 schema +struct<> +-- !query 5749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5750 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 5750 schema +struct<> +-- !query 5750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5751 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 5751 schema +struct<> +-- !query 5751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5752 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 5752 schema +struct<> +-- !query 5752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5753 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 5753 schema +struct<> +-- !query 5753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5754 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 5754 schema +struct<> +-- !query 5754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5755 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 5755 schema +struct<> +-- !query 5755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5756 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 5756 schema +struct<> +-- !query 5756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5757 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 5757 schema +struct<> +-- !query 5757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5758 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 5758 schema +struct<> +-- !query 5758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5759 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5759 schema +struct<> +-- !query 5759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5760 +SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5760 schema +struct<> +-- !query 5760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5761 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 5761 schema +struct> +-- !query 5761 output +{1:1,2:2} + + +-- !query 5762 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 5762 schema +struct> +-- !query 5762 output +{1:1,2:2} + + +-- !query 5763 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 5763 schema +struct> +-- !query 5763 output +{1:1,2:2} + + +-- !query 5764 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 5764 schema +struct> +-- !query 5764 output +{1:1,2:2} + + +-- !query 5765 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 5765 schema +struct> +-- !query 5765 output +{1:1.0,2:2.0} + + +-- !query 5766 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 5766 schema +struct> +-- !query 5766 output +{1:1.0,2:2.0} + + +-- !query 5767 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 5767 schema +struct> +-- !query 5767 output +{1:1,2:2} + + +-- !query 5768 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 5768 schema +struct> +-- !query 5768 output +{1:"1",2:"2"} + + +-- !query 5769 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 5769 schema +struct<> +-- !query 5769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5770 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 5770 schema +struct<> +-- !query 5770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5771 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5771 schema +struct<> +-- !query 5771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5772 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5772 schema +struct<> +-- !query 5772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5773 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 5773 schema +struct> +-- !query 5773 output +{1:1,2:2} + + +-- !query 5774 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 5774 schema +struct> +-- !query 5774 output +{1:1,2:2} + + +-- !query 5775 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 5775 schema +struct> +-- !query 5775 output +{1:1,2:2} + + +-- !query 5776 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 5776 schema +struct> +-- !query 5776 output +{1:1,2:2} + + +-- !query 5777 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 5777 schema +struct> +-- !query 5777 output +{1:1.0,2:2.0} + + +-- !query 5778 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 5778 schema +struct> +-- !query 5778 output +{1:1.0,2:2.0} + + +-- !query 5779 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 5779 schema +struct> +-- !query 5779 output +{1:1,2:2} + + +-- !query 5780 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 5780 schema +struct> +-- !query 5780 output +{1:"1",2:"2"} + + +-- !query 5781 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 5781 schema +struct<> +-- !query 5781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5782 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 5782 schema +struct<> +-- !query 5782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5783 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5783 schema +struct<> +-- !query 5783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5784 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5784 schema +struct<> +-- !query 5784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5785 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 5785 schema +struct> +-- !query 5785 output +{1:1,2:2} + + +-- !query 5786 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 5786 schema +struct> +-- !query 5786 output +{1:1,2:2} + + +-- !query 5787 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 5787 schema +struct> +-- !query 5787 output +{1:1,2:2} + + +-- !query 5788 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 5788 schema +struct> +-- !query 5788 output +{1:1,2:2} + + +-- !query 5789 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 5789 schema +struct> +-- !query 5789 output +{1:1.0,2:2.0} + + +-- !query 5790 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 5790 schema +struct> +-- !query 5790 output +{1:1.0,2:2.0} + + +-- !query 5791 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 5791 schema +struct> +-- !query 5791 output +{1:1,2:2} + + +-- !query 5792 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 5792 schema +struct> +-- !query 5792 output +{1:"1",2:"2"} + + +-- !query 5793 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 5793 schema +struct<> +-- !query 5793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5794 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 5794 schema +struct<> +-- !query 5794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5795 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5795 schema +struct<> +-- !query 5795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5796 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5796 schema +struct<> +-- !query 5796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5797 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 5797 schema +struct> +-- !query 5797 output +{1:1,2:2} + + +-- !query 5798 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 5798 schema +struct> +-- !query 5798 output +{1:1,2:2} + + +-- !query 5799 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 5799 schema +struct> +-- !query 5799 output +{1:1,2:2} + + +-- !query 5800 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 5800 schema +struct> +-- !query 5800 output +{1:1,2:2} + + +-- !query 5801 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 5801 schema +struct> +-- !query 5801 output +{1:1.0,2:2.0} + + +-- !query 5802 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 5802 schema +struct> +-- !query 5802 output +{1:1.0,2:2.0} + + +-- !query 5803 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 5803 schema +struct> +-- !query 5803 output +{1:1,2:2} + + +-- !query 5804 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 5804 schema +struct> +-- !query 5804 output +{1:"1",2:"2"} + + +-- !query 5805 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 5805 schema +struct<> +-- !query 5805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5806 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 5806 schema +struct<> +-- !query 5806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5807 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5807 schema +struct<> +-- !query 5807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5808 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5808 schema +struct<> +-- !query 5808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5809 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 5809 schema +struct> +-- !query 5809 output +{1.0:1,2.0:2} + + +-- !query 5810 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 5810 schema +struct> +-- !query 5810 output +{1.0:1,2.0:2} + + +-- !query 5811 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 5811 schema +struct> +-- !query 5811 output +{1.0:1,2.0:2} + + +-- !query 5812 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 5812 schema +struct> +-- !query 5812 output +{1.0:1,2.0:2} + + +-- !query 5813 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 5813 schema +struct> +-- !query 5813 output +{1.0:1.0,2.0:2.0} + + +-- !query 5814 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 5814 schema +struct> +-- !query 5814 output +{1.0:1.0,2.0:2.0} + + +-- !query 5815 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 5815 schema +struct> +-- !query 5815 output +{1.0:1,2.0:2} + + +-- !query 5816 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 5816 schema +struct> +-- !query 5816 output +{1.0:"1",2.0:"2"} + + +-- !query 5817 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 5817 schema +struct<> +-- !query 5817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5818 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 5818 schema +struct<> +-- !query 5818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5819 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5819 schema +struct<> +-- !query 5819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5820 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5820 schema +struct<> +-- !query 5820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5821 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 5821 schema +struct> +-- !query 5821 output +{1.0:1,2.0:2} + + +-- !query 5822 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 5822 schema +struct> +-- !query 5822 output +{1.0:1,2.0:2} + + +-- !query 5823 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 5823 schema +struct> +-- !query 5823 output +{1.0:1,2.0:2} + + +-- !query 5824 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 5824 schema +struct> +-- !query 5824 output +{1.0:1,2.0:2} + + +-- !query 5825 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 5825 schema +struct> +-- !query 5825 output +{1.0:1.0,2.0:2.0} + + +-- !query 5826 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 5826 schema +struct> +-- !query 5826 output +{1.0:1.0,2.0:2.0} + + +-- !query 5827 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 5827 schema +struct> +-- !query 5827 output +{1.0:1,2.0:2} + + +-- !query 5828 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 5828 schema +struct> +-- !query 5828 output +{1.0:"1",2.0:"2"} + + +-- !query 5829 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 5829 schema +struct<> +-- !query 5829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5830 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 5830 schema +struct<> +-- !query 5830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5831 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5831 schema +struct<> +-- !query 5831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5832 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5832 schema +struct<> +-- !query 5832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5833 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 5833 schema +struct> +-- !query 5833 output +{1:1,2:2} + + +-- !query 5834 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 5834 schema +struct> +-- !query 5834 output +{1:1,2:2} + + +-- !query 5835 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 5835 schema +struct> +-- !query 5835 output +{1:1,2:2} + + +-- !query 5836 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 5836 schema +struct> +-- !query 5836 output +{1:1,2:2} + + +-- !query 5837 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 5837 schema +struct> +-- !query 5837 output +{1:1.0,2:2.0} + + +-- !query 5838 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 5838 schema +struct> +-- !query 5838 output +{1:1.0,2:2.0} + + +-- !query 5839 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 5839 schema +struct> +-- !query 5839 output +{1:1,2:2} + + +-- !query 5840 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 5840 schema +struct> +-- !query 5840 output +{1:"1",2:"2"} + + +-- !query 5841 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 5841 schema +struct<> +-- !query 5841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5842 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 5842 schema +struct<> +-- !query 5842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5843 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5843 schema +struct<> +-- !query 5843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5844 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5844 schema +struct<> +-- !query 5844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5845 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 5845 schema +struct> +-- !query 5845 output +{"1":1,"2":2} + + +-- !query 5846 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 5846 schema +struct> +-- !query 5846 output +{"1":1,"2":2} + + +-- !query 5847 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 5847 schema +struct> +-- !query 5847 output +{"1":1,"2":2} + + +-- !query 5848 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 5848 schema +struct> +-- !query 5848 output +{"1":1,"2":2} + + +-- !query 5849 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 5849 schema +struct> +-- !query 5849 output +{"1":1.0,"2":2.0} + + +-- !query 5850 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 5850 schema +struct> +-- !query 5850 output +{"1":1.0,"2":2.0} + + +-- !query 5851 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 5851 schema +struct> +-- !query 5851 output +{"1":1,"2":2} + + +-- !query 5852 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 5852 schema +struct> +-- !query 5852 output +{"1":"1","2":"2"} + + +-- !query 5853 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 5853 schema +struct<> +-- !query 5853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5854 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 5854 schema +struct<> +-- !query 5854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5855 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5855 schema +struct<> +-- !query 5855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5856 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5856 schema +struct<> +-- !query 5856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5857 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 5857 schema +struct<> +-- !query 5857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5858 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 5858 schema +struct<> +-- !query 5858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5859 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 5859 schema +struct<> +-- !query 5859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5860 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 5860 schema +struct<> +-- !query 5860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5861 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 5861 schema +struct<> +-- !query 5861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5862 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 5862 schema +struct<> +-- !query 5862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5863 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 5863 schema +struct<> +-- !query 5863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5864 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 5864 schema +struct<> +-- !query 5864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5865 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 5865 schema +struct<> +-- !query 5865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5866 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 5866 schema +struct<> +-- !query 5866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5867 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5867 schema +struct<> +-- !query 5867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5868 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5868 schema +struct<> +-- !query 5868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 5869 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 5869 schema +struct<> +-- !query 5869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5870 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 5870 schema +struct<> +-- !query 5870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5871 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 5871 schema +struct<> +-- !query 5871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5872 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 5872 schema +struct<> +-- !query 5872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5873 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 5873 schema +struct<> +-- !query 5873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5874 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 5874 schema +struct<> +-- !query 5874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5875 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 5875 schema +struct<> +-- !query 5875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5876 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 5876 schema +struct<> +-- !query 5876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5877 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 5877 schema +struct<> +-- !query 5877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5878 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 5878 schema +struct<> +-- !query 5878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5879 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5879 schema +struct<> +-- !query 5879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5880 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5880 schema +struct<> +-- !query 5880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 5881 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 5881 schema +struct<> +-- !query 5881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5882 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 5882 schema +struct<> +-- !query 5882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5883 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 5883 schema +struct<> +-- !query 5883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5884 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 5884 schema +struct<> +-- !query 5884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5885 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 5885 schema +struct<> +-- !query 5885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5886 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 5886 schema +struct<> +-- !query 5886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5887 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 5887 schema +struct<> +-- !query 5887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5888 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 5888 schema +struct<> +-- !query 5888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5889 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 5889 schema +struct<> +-- !query 5889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5890 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 5890 schema +struct<> +-- !query 5890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5891 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5891 schema +struct<> +-- !query 5891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5892 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5892 schema +struct<> +-- !query 5892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 5893 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 5893 schema +struct<> +-- !query 5893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5894 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 5894 schema +struct<> +-- !query 5894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5895 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 5895 schema +struct<> +-- !query 5895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5896 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 5896 schema +struct<> +-- !query 5896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5897 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 5897 schema +struct<> +-- !query 5897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5898 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 5898 schema +struct<> +-- !query 5898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5899 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 5899 schema +struct<> +-- !query 5899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5900 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 5900 schema +struct<> +-- !query 5900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5901 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 5901 schema +struct<> +-- !query 5901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5902 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 5902 schema +struct<> +-- !query 5902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5903 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5903 schema +struct<> +-- !query 5903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5904 +SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5904 schema +struct<> +-- !query 5904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 5905 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 5905 schema +struct> +-- !query 5905 output +{1:1.0,2:2.0} + + +-- !query 5906 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 5906 schema +struct> +-- !query 5906 output +{1:1.0,2:2.0} + + +-- !query 5907 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 5907 schema +struct> +-- !query 5907 output +{1:1.0,2:2.0} + + +-- !query 5908 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 5908 schema +struct> +-- !query 5908 output +{1:1.0,2:2.0} + + +-- !query 5909 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 5909 schema +struct> +-- !query 5909 output +{1:1.0,2:2.0} + + +-- !query 5910 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 5910 schema +struct> +-- !query 5910 output +{1:1.0,2:2.0} + + +-- !query 5911 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 5911 schema +struct> +-- !query 5911 output +{1:1.0,2:2.0} + + +-- !query 5912 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 5912 schema +struct> +-- !query 5912 output +{1:"1.0",2:"2"} + + +-- !query 5913 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 5913 schema +struct<> +-- !query 5913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5914 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 5914 schema +struct<> +-- !query 5914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5915 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5915 schema +struct<> +-- !query 5915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 5916 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5916 schema +struct<> +-- !query 5916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 5917 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 5917 schema +struct> +-- !query 5917 output +{1:1.0,2:2.0} + + +-- !query 5918 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 5918 schema +struct> +-- !query 5918 output +{1:1.0,2:2.0} + + +-- !query 5919 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 5919 schema +struct> +-- !query 5919 output +{1:1.0,2:2.0} + + +-- !query 5920 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 5920 schema +struct> +-- !query 5920 output +{1:1.0,2:2.0} + + +-- !query 5921 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 5921 schema +struct> +-- !query 5921 output +{1:1.0,2:2.0} + + +-- !query 5922 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 5922 schema +struct> +-- !query 5922 output +{1:1.0,2:2.0} + + +-- !query 5923 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 5923 schema +struct> +-- !query 5923 output +{1:1.0,2:2.0} + + +-- !query 5924 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 5924 schema +struct> +-- !query 5924 output +{1:"1.0",2:"2"} + + +-- !query 5925 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 5925 schema +struct<> +-- !query 5925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5926 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 5926 schema +struct<> +-- !query 5926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5927 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5927 schema +struct<> +-- !query 5927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 5928 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5928 schema +struct<> +-- !query 5928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 5929 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 5929 schema +struct> +-- !query 5929 output +{1:1.0,2:2.0} + + +-- !query 5930 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 5930 schema +struct> +-- !query 5930 output +{1:1.0,2:2.0} + + +-- !query 5931 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 5931 schema +struct> +-- !query 5931 output +{1:1.0,2:2.0} + + +-- !query 5932 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 5932 schema +struct> +-- !query 5932 output +{1:1.0,2:2.0} + + +-- !query 5933 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 5933 schema +struct> +-- !query 5933 output +{1:1.0,2:2.0} + + +-- !query 5934 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 5934 schema +struct> +-- !query 5934 output +{1:1.0,2:2.0} + + +-- !query 5935 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 5935 schema +struct> +-- !query 5935 output +{1:1.0,2:2.0} + + +-- !query 5936 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 5936 schema +struct> +-- !query 5936 output +{1:"1.0",2:"2"} + + +-- !query 5937 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 5937 schema +struct<> +-- !query 5937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5938 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 5938 schema +struct<> +-- !query 5938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5939 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5939 schema +struct<> +-- !query 5939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 5940 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5940 schema +struct<> +-- !query 5940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 5941 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 5941 schema +struct> +-- !query 5941 output +{1:1.0,2:2.0} + + +-- !query 5942 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 5942 schema +struct> +-- !query 5942 output +{1:1.0,2:2.0} + + +-- !query 5943 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 5943 schema +struct> +-- !query 5943 output +{1:1.0,2:2.0} + + +-- !query 5944 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 5944 schema +struct> +-- !query 5944 output +{1:1.0,2:2.0} + + +-- !query 5945 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 5945 schema +struct> +-- !query 5945 output +{1:1.0,2:2.0} + + +-- !query 5946 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 5946 schema +struct> +-- !query 5946 output +{1:1.0,2:2.0} + + +-- !query 5947 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 5947 schema +struct> +-- !query 5947 output +{1:1.0,2:2.0} + + +-- !query 5948 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 5948 schema +struct> +-- !query 5948 output +{1:"1.0",2:"2"} + + +-- !query 5949 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 5949 schema +struct<> +-- !query 5949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5950 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 5950 schema +struct<> +-- !query 5950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5951 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5951 schema +struct<> +-- !query 5951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 5952 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5952 schema +struct<> +-- !query 5952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 5953 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 5953 schema +struct> +-- !query 5953 output +{1.0:1.0,2.0:2.0} + + +-- !query 5954 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 5954 schema +struct> +-- !query 5954 output +{1.0:1.0,2.0:2.0} + + +-- !query 5955 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 5955 schema +struct> +-- !query 5955 output +{1.0:1.0,2.0:2.0} + + +-- !query 5956 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 5956 schema +struct> +-- !query 5956 output +{1.0:1.0,2.0:2.0} + + +-- !query 5957 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 5957 schema +struct> +-- !query 5957 output +{1.0:1.0,2.0:2.0} + + +-- !query 5958 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 5958 schema +struct> +-- !query 5958 output +{1.0:1.0,2.0:2.0} + + +-- !query 5959 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 5959 schema +struct> +-- !query 5959 output +{1.0:1.0,2.0:2.0} + + +-- !query 5960 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 5960 schema +struct> +-- !query 5960 output +{1.0:"1.0",2.0:"2"} + + +-- !query 5961 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 5961 schema +struct<> +-- !query 5961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5962 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 5962 schema +struct<> +-- !query 5962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5963 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5963 schema +struct<> +-- !query 5963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 5964 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5964 schema +struct<> +-- !query 5964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 5965 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 5965 schema +struct> +-- !query 5965 output +{1.0:1.0,2.0:2.0} + + +-- !query 5966 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 5966 schema +struct> +-- !query 5966 output +{1.0:1.0,2.0:2.0} + + +-- !query 5967 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 5967 schema +struct> +-- !query 5967 output +{1.0:1.0,2.0:2.0} + + +-- !query 5968 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 5968 schema +struct> +-- !query 5968 output +{1.0:1.0,2.0:2.0} + + +-- !query 5969 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 5969 schema +struct> +-- !query 5969 output +{1.0:1.0,2.0:2.0} + + +-- !query 5970 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 5970 schema +struct> +-- !query 5970 output +{1.0:1.0,2.0:2.0} + + +-- !query 5971 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 5971 schema +struct> +-- !query 5971 output +{1.0:1.0,2.0:2.0} + + +-- !query 5972 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 5972 schema +struct> +-- !query 5972 output +{1.0:"1.0",2.0:"2"} + + +-- !query 5973 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 5973 schema +struct<> +-- !query 5973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5974 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 5974 schema +struct<> +-- !query 5974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5975 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5975 schema +struct<> +-- !query 5975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 5976 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5976 schema +struct<> +-- !query 5976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 5977 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 5977 schema +struct> +-- !query 5977 output +{1:1.0,2:2.0} + + +-- !query 5978 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 5978 schema +struct> +-- !query 5978 output +{1:1.0,2:2.0} + + +-- !query 5979 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 5979 schema +struct> +-- !query 5979 output +{1:1.0,2:2.0} + + +-- !query 5980 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 5980 schema +struct> +-- !query 5980 output +{1:1.0,2:2.0} + + +-- !query 5981 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 5981 schema +struct> +-- !query 5981 output +{1:1.0,2:2.0} + + +-- !query 5982 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 5982 schema +struct> +-- !query 5982 output +{1:1.0,2:2.0} + + +-- !query 5983 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 5983 schema +struct> +-- !query 5983 output +{1:1.0,2:2.0} + + +-- !query 5984 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 5984 schema +struct> +-- !query 5984 output +{1:"1.0",2:"2"} + + +-- !query 5985 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 5985 schema +struct<> +-- !query 5985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5986 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 5986 schema +struct<> +-- !query 5986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5987 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5987 schema +struct<> +-- !query 5987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 5988 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 5988 schema +struct<> +-- !query 5988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 5989 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 5989 schema +struct> +-- !query 5989 output +{"1":1.0,"2":2.0} + + +-- !query 5990 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 5990 schema +struct> +-- !query 5990 output +{"1":1.0,"2":2.0} + + +-- !query 5991 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 5991 schema +struct> +-- !query 5991 output +{"1":1.0,"2":2.0} + + +-- !query 5992 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 5992 schema +struct> +-- !query 5992 output +{"1":1.0,"2":2.0} + + +-- !query 5993 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 5993 schema +struct> +-- !query 5993 output +{"1":1.0,"2":2.0} + + +-- !query 5994 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 5994 schema +struct> +-- !query 5994 output +{"1":1.0,"2":2.0} + + +-- !query 5995 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 5995 schema +struct> +-- !query 5995 output +{"1":1.0,"2":2.0} + + +-- !query 5996 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 5996 schema +struct> +-- !query 5996 output +{"1":"1.0","2":"2"} + + +-- !query 5997 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 5997 schema +struct<> +-- !query 5997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 5998 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 5998 schema +struct<> +-- !query 5998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 5999 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 5999 schema +struct<> +-- !query 5999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 6000 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6000 schema +struct<> +-- !query 6000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 6001 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 6001 schema +struct<> +-- !query 6001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6002 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 6002 schema +struct<> +-- !query 6002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6003 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 6003 schema +struct<> +-- !query 6003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6004 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 6004 schema +struct<> +-- !query 6004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6005 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 6005 schema +struct<> +-- !query 6005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6006 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 6006 schema +struct<> +-- !query 6006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6007 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 6007 schema +struct<> +-- !query 6007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6008 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 6008 schema +struct<> +-- !query 6008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6009 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 6009 schema +struct<> +-- !query 6009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6010 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 6010 schema +struct<> +-- !query 6010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6011 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6011 schema +struct<> +-- !query 6011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6012 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6012 schema +struct<> +-- !query 6012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6013 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 6013 schema +struct<> +-- !query 6013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6014 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 6014 schema +struct<> +-- !query 6014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6015 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 6015 schema +struct<> +-- !query 6015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6016 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 6016 schema +struct<> +-- !query 6016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6017 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 6017 schema +struct<> +-- !query 6017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6018 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 6018 schema +struct<> +-- !query 6018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6019 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 6019 schema +struct<> +-- !query 6019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6020 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 6020 schema +struct<> +-- !query 6020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6021 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 6021 schema +struct<> +-- !query 6021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6022 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 6022 schema +struct<> +-- !query 6022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6023 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6023 schema +struct<> +-- !query 6023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6024 +SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6024 schema +struct<> +-- !query 6024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6025 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 6025 schema +struct<> +-- !query 6025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6026 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 6026 schema +struct<> +-- !query 6026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6027 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 6027 schema +struct<> +-- !query 6027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6028 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 6028 schema +struct<> +-- !query 6028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6029 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 6029 schema +struct<> +-- !query 6029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6030 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 6030 schema +struct<> +-- !query 6030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6031 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 6031 schema +struct<> +-- !query 6031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6032 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 6032 schema +struct<> +-- !query 6032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6033 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 6033 schema +struct<> +-- !query 6033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6034 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 6034 schema +struct<> +-- !query 6034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6035 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6035 schema +struct<> +-- !query 6035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6036 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6036 schema +struct<> +-- !query 6036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6037 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 6037 schema +struct<> +-- !query 6037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6038 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 6038 schema +struct<> +-- !query 6038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6039 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 6039 schema +struct<> +-- !query 6039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6040 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 6040 schema +struct<> +-- !query 6040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6041 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 6041 schema +struct<> +-- !query 6041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6042 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 6042 schema +struct<> +-- !query 6042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6043 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 6043 schema +struct<> +-- !query 6043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6044 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 6044 schema +struct<> +-- !query 6044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6045 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 6045 schema +struct<> +-- !query 6045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6046 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 6046 schema +struct<> +-- !query 6046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6047 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6047 schema +struct<> +-- !query 6047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6048 +SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6048 schema +struct<> +-- !query 6048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6049 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 6049 schema +struct> +-- !query 6049 output +{1:1.0,2:2.0} + + +-- !query 6050 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 6050 schema +struct> +-- !query 6050 output +{1:1.0,2:2.0} + + +-- !query 6051 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 6051 schema +struct> +-- !query 6051 output +{1:1.0,2:2.0} + + +-- !query 6052 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 6052 schema +struct> +-- !query 6052 output +{1:1.0,2:2.0} + + +-- !query 6053 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 6053 schema +struct> +-- !query 6053 output +{1:1.0,2:2.0} + + +-- !query 6054 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 6054 schema +struct> +-- !query 6054 output +{1:1.0,2:2.0} + + +-- !query 6055 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 6055 schema +struct> +-- !query 6055 output +{1:1.0,2:2.0} + + +-- !query 6056 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 6056 schema +struct> +-- !query 6056 output +{1:"1.0",2:"2"} + + +-- !query 6057 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 6057 schema +struct<> +-- !query 6057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6058 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 6058 schema +struct<> +-- !query 6058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6059 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6059 schema +struct<> +-- !query 6059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6060 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6060 schema +struct<> +-- !query 6060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6061 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 6061 schema +struct> +-- !query 6061 output +{1:1.0,2:2.0} + + +-- !query 6062 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 6062 schema +struct> +-- !query 6062 output +{1:1.0,2:2.0} + + +-- !query 6063 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 6063 schema +struct> +-- !query 6063 output +{1:1.0,2:2.0} + + +-- !query 6064 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 6064 schema +struct> +-- !query 6064 output +{1:1.0,2:2.0} + + +-- !query 6065 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 6065 schema +struct> +-- !query 6065 output +{1:1.0,2:2.0} + + +-- !query 6066 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 6066 schema +struct> +-- !query 6066 output +{1:1.0,2:2.0} + + +-- !query 6067 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 6067 schema +struct> +-- !query 6067 output +{1:1.0,2:2.0} + + +-- !query 6068 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 6068 schema +struct> +-- !query 6068 output +{1:"1.0",2:"2"} + + +-- !query 6069 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 6069 schema +struct<> +-- !query 6069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6070 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 6070 schema +struct<> +-- !query 6070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6071 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6071 schema +struct<> +-- !query 6071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6072 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6072 schema +struct<> +-- !query 6072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6073 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 6073 schema +struct> +-- !query 6073 output +{1:1.0,2:2.0} + + +-- !query 6074 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 6074 schema +struct> +-- !query 6074 output +{1:1.0,2:2.0} + + +-- !query 6075 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 6075 schema +struct> +-- !query 6075 output +{1:1.0,2:2.0} + + +-- !query 6076 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 6076 schema +struct> +-- !query 6076 output +{1:1.0,2:2.0} + + +-- !query 6077 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 6077 schema +struct> +-- !query 6077 output +{1:1.0,2:2.0} + + +-- !query 6078 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 6078 schema +struct> +-- !query 6078 output +{1:1.0,2:2.0} + + +-- !query 6079 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 6079 schema +struct> +-- !query 6079 output +{1:1.0,2:2.0} + + +-- !query 6080 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 6080 schema +struct> +-- !query 6080 output +{1:"1.0",2:"2"} + + +-- !query 6081 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 6081 schema +struct<> +-- !query 6081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6082 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 6082 schema +struct<> +-- !query 6082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6083 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6083 schema +struct<> +-- !query 6083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6084 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6084 schema +struct<> +-- !query 6084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6085 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 6085 schema +struct> +-- !query 6085 output +{1:1.0,2:2.0} + + +-- !query 6086 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 6086 schema +struct> +-- !query 6086 output +{1:1.0,2:2.0} + + +-- !query 6087 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 6087 schema +struct> +-- !query 6087 output +{1:1.0,2:2.0} + + +-- !query 6088 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 6088 schema +struct> +-- !query 6088 output +{1:1.0,2:2.0} + + +-- !query 6089 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 6089 schema +struct> +-- !query 6089 output +{1:1.0,2:2.0} + + +-- !query 6090 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 6090 schema +struct> +-- !query 6090 output +{1:1.0,2:2.0} + + +-- !query 6091 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 6091 schema +struct> +-- !query 6091 output +{1:1.0,2:2.0} + + +-- !query 6092 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 6092 schema +struct> +-- !query 6092 output +{1:"1.0",2:"2"} + + +-- !query 6093 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 6093 schema +struct<> +-- !query 6093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6094 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 6094 schema +struct<> +-- !query 6094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6095 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6095 schema +struct<> +-- !query 6095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6096 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6096 schema +struct<> +-- !query 6096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6097 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 6097 schema +struct> +-- !query 6097 output +{1.0:1.0,2.0:2.0} + + +-- !query 6098 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 6098 schema +struct> +-- !query 6098 output +{1.0:1.0,2.0:2.0} + + +-- !query 6099 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 6099 schema +struct> +-- !query 6099 output +{1.0:1.0,2.0:2.0} + + +-- !query 6100 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 6100 schema +struct> +-- !query 6100 output +{1.0:1.0,2.0:2.0} + + +-- !query 6101 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 6101 schema +struct> +-- !query 6101 output +{1.0:1.0,2.0:2.0} + + +-- !query 6102 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 6102 schema +struct> +-- !query 6102 output +{1.0:1.0,2.0:2.0} + + +-- !query 6103 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 6103 schema +struct> +-- !query 6103 output +{1.0:1.0,2.0:2.0} + + +-- !query 6104 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 6104 schema +struct> +-- !query 6104 output +{1.0:"1.0",2.0:"2"} + + +-- !query 6105 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 6105 schema +struct<> +-- !query 6105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6106 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 6106 schema +struct<> +-- !query 6106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6107 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6107 schema +struct<> +-- !query 6107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6108 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6108 schema +struct<> +-- !query 6108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6109 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 6109 schema +struct> +-- !query 6109 output +{1.0:1.0,2.0:2.0} + + +-- !query 6110 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 6110 schema +struct> +-- !query 6110 output +{1.0:1.0,2.0:2.0} + + +-- !query 6111 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 6111 schema +struct> +-- !query 6111 output +{1.0:1.0,2.0:2.0} + + +-- !query 6112 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 6112 schema +struct> +-- !query 6112 output +{1.0:1.0,2.0:2.0} + + +-- !query 6113 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 6113 schema +struct> +-- !query 6113 output +{1.0:1.0,2.0:2.0} + + +-- !query 6114 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 6114 schema +struct> +-- !query 6114 output +{1.0:1.0,2.0:2.0} + + +-- !query 6115 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 6115 schema +struct> +-- !query 6115 output +{1.0:1.0,2.0:2.0} + + +-- !query 6116 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 6116 schema +struct> +-- !query 6116 output +{1.0:"1.0",2.0:"2"} + + +-- !query 6117 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 6117 schema +struct<> +-- !query 6117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6118 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 6118 schema +struct<> +-- !query 6118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6119 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6119 schema +struct<> +-- !query 6119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6120 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6120 schema +struct<> +-- !query 6120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6121 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 6121 schema +struct> +-- !query 6121 output +{1:1.0,2:2.0} + + +-- !query 6122 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 6122 schema +struct> +-- !query 6122 output +{1:1.0,2:2.0} + + +-- !query 6123 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 6123 schema +struct> +-- !query 6123 output +{1:1.0,2:2.0} + + +-- !query 6124 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 6124 schema +struct> +-- !query 6124 output +{1:1.0,2:2.0} + + +-- !query 6125 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 6125 schema +struct> +-- !query 6125 output +{1:1.0,2:2.0} + + +-- !query 6126 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 6126 schema +struct> +-- !query 6126 output +{1:1.0,2:2.0} + + +-- !query 6127 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 6127 schema +struct> +-- !query 6127 output +{1:1.0,2:2.0} + + +-- !query 6128 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 6128 schema +struct> +-- !query 6128 output +{1:"1.0",2:"2"} + + +-- !query 6129 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 6129 schema +struct<> +-- !query 6129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6130 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 6130 schema +struct<> +-- !query 6130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6131 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6131 schema +struct<> +-- !query 6131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6132 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6132 schema +struct<> +-- !query 6132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6133 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 6133 schema +struct> +-- !query 6133 output +{"1":1.0,"2":2.0} + + +-- !query 6134 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 6134 schema +struct> +-- !query 6134 output +{"1":1.0,"2":2.0} + + +-- !query 6135 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 6135 schema +struct> +-- !query 6135 output +{"1":1.0,"2":2.0} + + +-- !query 6136 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 6136 schema +struct> +-- !query 6136 output +{"1":1.0,"2":2.0} + + +-- !query 6137 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 6137 schema +struct> +-- !query 6137 output +{"1":1.0,"2":2.0} + + +-- !query 6138 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 6138 schema +struct> +-- !query 6138 output +{"1":1.0,"2":2.0} + + +-- !query 6139 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 6139 schema +struct> +-- !query 6139 output +{"1":1.0,"2":2.0} + + +-- !query 6140 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 6140 schema +struct> +-- !query 6140 output +{"1":"1.0","2":"2"} + + +-- !query 6141 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 6141 schema +struct<> +-- !query 6141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 6142 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 6142 schema +struct<> +-- !query 6142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 6143 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6143 schema +struct<> +-- !query 6143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 6144 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6144 schema +struct<> +-- !query 6144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 6145 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 6145 schema +struct<> +-- !query 6145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6146 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 6146 schema +struct<> +-- !query 6146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6147 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 6147 schema +struct<> +-- !query 6147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6148 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 6148 schema +struct<> +-- !query 6148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6149 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 6149 schema +struct<> +-- !query 6149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6150 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 6150 schema +struct<> +-- !query 6150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6151 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 6151 schema +struct<> +-- !query 6151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6152 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 6152 schema +struct<> +-- !query 6152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6153 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 6153 schema +struct<> +-- !query 6153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6154 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 6154 schema +struct<> +-- !query 6154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6155 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6155 schema +struct<> +-- !query 6155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6156 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6156 schema +struct<> +-- !query 6156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6157 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 6157 schema +struct<> +-- !query 6157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6158 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 6158 schema +struct<> +-- !query 6158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6159 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 6159 schema +struct<> +-- !query 6159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6160 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 6160 schema +struct<> +-- !query 6160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6161 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 6161 schema +struct<> +-- !query 6161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6162 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 6162 schema +struct<> +-- !query 6162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6163 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 6163 schema +struct<> +-- !query 6163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6164 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 6164 schema +struct<> +-- !query 6164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6165 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 6165 schema +struct<> +-- !query 6165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6166 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 6166 schema +struct<> +-- !query 6166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6167 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6167 schema +struct<> +-- !query 6167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6168 +SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6168 schema +struct<> +-- !query 6168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6169 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 6169 schema +struct<> +-- !query 6169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6170 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 6170 schema +struct<> +-- !query 6170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6171 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 6171 schema +struct<> +-- !query 6171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6172 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 6172 schema +struct<> +-- !query 6172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6173 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 6173 schema +struct<> +-- !query 6173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6174 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 6174 schema +struct<> +-- !query 6174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6175 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 6175 schema +struct<> +-- !query 6175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6176 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 6176 schema +struct<> +-- !query 6176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6177 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 6177 schema +struct<> +-- !query 6177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6178 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 6178 schema +struct<> +-- !query 6178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6179 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6179 schema +struct<> +-- !query 6179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6180 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6180 schema +struct<> +-- !query 6180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6181 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 6181 schema +struct<> +-- !query 6181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6182 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 6182 schema +struct<> +-- !query 6182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6183 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 6183 schema +struct<> +-- !query 6183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6184 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 6184 schema +struct<> +-- !query 6184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6185 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 6185 schema +struct<> +-- !query 6185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6186 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 6186 schema +struct<> +-- !query 6186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6187 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 6187 schema +struct<> +-- !query 6187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6188 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 6188 schema +struct<> +-- !query 6188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6189 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 6189 schema +struct<> +-- !query 6189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6190 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 6190 schema +struct<> +-- !query 6190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6191 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6191 schema +struct<> +-- !query 6191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6192 +SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6192 schema +struct<> +-- !query 6192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6193 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 6193 schema +struct> +-- !query 6193 output +{1:1,2:2} + + +-- !query 6194 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 6194 schema +struct> +-- !query 6194 output +{1:1,2:2} + + +-- !query 6195 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 6195 schema +struct> +-- !query 6195 output +{1:1,2:2} + + +-- !query 6196 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 6196 schema +struct> +-- !query 6196 output +{1:1,2:2} + + +-- !query 6197 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 6197 schema +struct> +-- !query 6197 output +{1:1.0,2:2.0} + + +-- !query 6198 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 6198 schema +struct> +-- !query 6198 output +{1:1.0,2:2.0} + + +-- !query 6199 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 6199 schema +struct> +-- !query 6199 output +{1:1,2:2} + + +-- !query 6200 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 6200 schema +struct> +-- !query 6200 output +{1:"1",2:"2"} + + +-- !query 6201 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 6201 schema +struct<> +-- !query 6201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6202 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 6202 schema +struct<> +-- !query 6202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6203 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6203 schema +struct<> +-- !query 6203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6204 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6204 schema +struct<> +-- !query 6204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6205 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 6205 schema +struct> +-- !query 6205 output +{1:1,2:2} + + +-- !query 6206 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 6206 schema +struct> +-- !query 6206 output +{1:1,2:2} + + +-- !query 6207 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 6207 schema +struct> +-- !query 6207 output +{1:1,2:2} + + +-- !query 6208 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 6208 schema +struct> +-- !query 6208 output +{1:1,2:2} + + +-- !query 6209 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 6209 schema +struct> +-- !query 6209 output +{1:1.0,2:2.0} + + +-- !query 6210 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 6210 schema +struct> +-- !query 6210 output +{1:1.0,2:2.0} + + +-- !query 6211 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 6211 schema +struct> +-- !query 6211 output +{1:1,2:2} + + +-- !query 6212 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 6212 schema +struct> +-- !query 6212 output +{1:"1",2:"2"} + + +-- !query 6213 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 6213 schema +struct<> +-- !query 6213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6214 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 6214 schema +struct<> +-- !query 6214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6215 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6215 schema +struct<> +-- !query 6215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6216 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6216 schema +struct<> +-- !query 6216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6217 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 6217 schema +struct> +-- !query 6217 output +{1:1,2:2} + + +-- !query 6218 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 6218 schema +struct> +-- !query 6218 output +{1:1,2:2} + + +-- !query 6219 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 6219 schema +struct> +-- !query 6219 output +{1:1,2:2} + + +-- !query 6220 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 6220 schema +struct> +-- !query 6220 output +{1:1,2:2} + + +-- !query 6221 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 6221 schema +struct> +-- !query 6221 output +{1:1.0,2:2.0} + + +-- !query 6222 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 6222 schema +struct> +-- !query 6222 output +{1:1.0,2:2.0} + + +-- !query 6223 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 6223 schema +struct> +-- !query 6223 output +{1:1,2:2} + + +-- !query 6224 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 6224 schema +struct> +-- !query 6224 output +{1:"1",2:"2"} + + +-- !query 6225 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 6225 schema +struct<> +-- !query 6225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6226 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 6226 schema +struct<> +-- !query 6226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6227 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6227 schema +struct<> +-- !query 6227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6228 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6228 schema +struct<> +-- !query 6228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6229 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 6229 schema +struct> +-- !query 6229 output +{1:1,2:2} + + +-- !query 6230 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 6230 schema +struct> +-- !query 6230 output +{1:1,2:2} + + +-- !query 6231 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 6231 schema +struct> +-- !query 6231 output +{1:1,2:2} + + +-- !query 6232 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 6232 schema +struct> +-- !query 6232 output +{1:1,2:2} + + +-- !query 6233 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 6233 schema +struct> +-- !query 6233 output +{1:1.0,2:2.0} + + +-- !query 6234 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 6234 schema +struct> +-- !query 6234 output +{1:1.0,2:2.0} + + +-- !query 6235 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 6235 schema +struct> +-- !query 6235 output +{1:1,2:2} + + +-- !query 6236 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 6236 schema +struct> +-- !query 6236 output +{1:"1",2:"2"} + + +-- !query 6237 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 6237 schema +struct<> +-- !query 6237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6238 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 6238 schema +struct<> +-- !query 6238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6239 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6239 schema +struct<> +-- !query 6239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6240 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6240 schema +struct<> +-- !query 6240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6241 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 6241 schema +struct> +-- !query 6241 output +{1.0:1,2.0:2} + + +-- !query 6242 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 6242 schema +struct> +-- !query 6242 output +{1.0:1,2.0:2} + + +-- !query 6243 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 6243 schema +struct> +-- !query 6243 output +{1.0:1,2.0:2} + + +-- !query 6244 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 6244 schema +struct> +-- !query 6244 output +{1.0:1,2.0:2} + + +-- !query 6245 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 6245 schema +struct> +-- !query 6245 output +{1.0:1.0,2.0:2.0} + + +-- !query 6246 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 6246 schema +struct> +-- !query 6246 output +{1.0:1.0,2.0:2.0} + + +-- !query 6247 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 6247 schema +struct> +-- !query 6247 output +{1.0:1,2.0:2} + + +-- !query 6248 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 6248 schema +struct> +-- !query 6248 output +{1.0:"1",2.0:"2"} + + +-- !query 6249 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 6249 schema +struct<> +-- !query 6249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6250 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 6250 schema +struct<> +-- !query 6250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6251 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6251 schema +struct<> +-- !query 6251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6252 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6252 schema +struct<> +-- !query 6252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6253 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 6253 schema +struct> +-- !query 6253 output +{1.0:1,2.0:2} + + +-- !query 6254 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 6254 schema +struct> +-- !query 6254 output +{1.0:1,2.0:2} + + +-- !query 6255 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 6255 schema +struct> +-- !query 6255 output +{1.0:1,2.0:2} + + +-- !query 6256 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 6256 schema +struct> +-- !query 6256 output +{1.0:1,2.0:2} + + +-- !query 6257 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 6257 schema +struct> +-- !query 6257 output +{1.0:1.0,2.0:2.0} + + +-- !query 6258 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 6258 schema +struct> +-- !query 6258 output +{1.0:1.0,2.0:2.0} + + +-- !query 6259 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 6259 schema +struct> +-- !query 6259 output +{1.0:1,2.0:2} + + +-- !query 6260 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 6260 schema +struct> +-- !query 6260 output +{1.0:"1",2.0:"2"} + + +-- !query 6261 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 6261 schema +struct<> +-- !query 6261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6262 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 6262 schema +struct<> +-- !query 6262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6263 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6263 schema +struct<> +-- !query 6263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6264 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6264 schema +struct<> +-- !query 6264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6265 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 6265 schema +struct> +-- !query 6265 output +{1:1,2:2} + + +-- !query 6266 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 6266 schema +struct> +-- !query 6266 output +{1:1,2:2} + + +-- !query 6267 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 6267 schema +struct> +-- !query 6267 output +{1:1,2:2} + + +-- !query 6268 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 6268 schema +struct> +-- !query 6268 output +{1:1,2:2} + + +-- !query 6269 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 6269 schema +struct> +-- !query 6269 output +{1:1.0,2:2.0} + + +-- !query 6270 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 6270 schema +struct> +-- !query 6270 output +{1:1.0,2:2.0} + + +-- !query 6271 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 6271 schema +struct> +-- !query 6271 output +{1:1,2:2} + + +-- !query 6272 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 6272 schema +struct> +-- !query 6272 output +{1:"1",2:"2"} + + +-- !query 6273 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 6273 schema +struct<> +-- !query 6273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6274 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 6274 schema +struct<> +-- !query 6274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6275 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6275 schema +struct<> +-- !query 6275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6276 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6276 schema +struct<> +-- !query 6276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6277 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 6277 schema +struct> +-- !query 6277 output +{"1":1,"2":2} + + +-- !query 6278 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 6278 schema +struct> +-- !query 6278 output +{"1":1,"2":2} + + +-- !query 6279 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 6279 schema +struct> +-- !query 6279 output +{"1":1,"2":2} + + +-- !query 6280 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 6280 schema +struct> +-- !query 6280 output +{"1":1,"2":2} + + +-- !query 6281 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 6281 schema +struct> +-- !query 6281 output +{"1":1.0,"2":2.0} + + +-- !query 6282 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 6282 schema +struct> +-- !query 6282 output +{"1":1.0,"2":2.0} + + +-- !query 6283 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 6283 schema +struct> +-- !query 6283 output +{"1":1,"2":2} + + +-- !query 6284 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 6284 schema +struct> +-- !query 6284 output +{"1":"1","2":"2"} + + +-- !query 6285 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 6285 schema +struct<> +-- !query 6285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 6286 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 6286 schema +struct<> +-- !query 6286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 6287 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6287 schema +struct<> +-- !query 6287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 6288 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6288 schema +struct<> +-- !query 6288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 6289 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 6289 schema +struct<> +-- !query 6289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6290 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 6290 schema +struct<> +-- !query 6290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6291 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 6291 schema +struct<> +-- !query 6291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6292 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 6292 schema +struct<> +-- !query 6292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6293 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 6293 schema +struct<> +-- !query 6293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6294 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 6294 schema +struct<> +-- !query 6294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6295 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 6295 schema +struct<> +-- !query 6295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6296 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 6296 schema +struct<> +-- !query 6296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6297 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 6297 schema +struct<> +-- !query 6297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6298 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 6298 schema +struct<> +-- !query 6298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6299 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6299 schema +struct<> +-- !query 6299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6300 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6300 schema +struct<> +-- !query 6300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6301 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 6301 schema +struct<> +-- !query 6301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6302 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 6302 schema +struct<> +-- !query 6302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6303 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 6303 schema +struct<> +-- !query 6303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6304 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 6304 schema +struct<> +-- !query 6304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6305 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 6305 schema +struct<> +-- !query 6305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6306 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 6306 schema +struct<> +-- !query 6306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6307 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 6307 schema +struct<> +-- !query 6307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6308 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 6308 schema +struct<> +-- !query 6308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6309 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 6309 schema +struct<> +-- !query 6309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6310 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 6310 schema +struct<> +-- !query 6310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6311 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6311 schema +struct<> +-- !query 6311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6312 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6312 schema +struct<> +-- !query 6312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6313 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 6313 schema +struct<> +-- !query 6313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6314 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 6314 schema +struct<> +-- !query 6314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6315 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 6315 schema +struct<> +-- !query 6315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6316 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 6316 schema +struct<> +-- !query 6316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6317 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 6317 schema +struct<> +-- !query 6317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6318 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 6318 schema +struct<> +-- !query 6318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6319 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 6319 schema +struct<> +-- !query 6319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6320 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 6320 schema +struct<> +-- !query 6320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6321 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 6321 schema +struct<> +-- !query 6321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6322 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 6322 schema +struct<> +-- !query 6322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6323 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6323 schema +struct<> +-- !query 6323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6324 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6324 schema +struct<> +-- !query 6324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6325 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 6325 schema +struct<> +-- !query 6325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6326 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 6326 schema +struct<> +-- !query 6326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6327 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 6327 schema +struct<> +-- !query 6327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6328 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 6328 schema +struct<> +-- !query 6328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6329 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 6329 schema +struct<> +-- !query 6329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6330 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 6330 schema +struct<> +-- !query 6330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6331 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 6331 schema +struct<> +-- !query 6331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6332 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 6332 schema +struct<> +-- !query 6332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6333 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 6333 schema +struct<> +-- !query 6333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6334 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 6334 schema +struct<> +-- !query 6334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6335 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6335 schema +struct<> +-- !query 6335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6336 +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6336 schema +struct<> +-- !query 6336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6337 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 6337 schema +struct> +-- !query 6337 output +{1:"1",2:"2"} + + +-- !query 6338 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 6338 schema +struct> +-- !query 6338 output +{1:"1",2:"2"} + + +-- !query 6339 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 6339 schema +struct> +-- !query 6339 output +{1:"1",2:"2"} + + +-- !query 6340 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 6340 schema +struct> +-- !query 6340 output +{1:"1",2:"2"} + + +-- !query 6341 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 6341 schema +struct> +-- !query 6341 output +{1:"1",2:"2.0"} + + +-- !query 6342 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 6342 schema +struct> +-- !query 6342 output +{1:"1",2:"2.0"} + + +-- !query 6343 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 6343 schema +struct> +-- !query 6343 output +{1:"1",2:"2"} + + +-- !query 6344 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 6344 schema +struct> +-- !query 6344 output +{1:"1",2:"2"} + + +-- !query 6345 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 6345 schema +struct<> +-- !query 6345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6346 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 6346 schema +struct<> +-- !query 6346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6347 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6347 schema +struct> +-- !query 6347 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 6348 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6348 schema +struct> +-- !query 6348 output +{1:"1",2:"2017-12-12"} + + +-- !query 6349 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 6349 schema +struct> +-- !query 6349 output +{1:"1",2:"2"} + + +-- !query 6350 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 6350 schema +struct> +-- !query 6350 output +{1:"1",2:"2"} + + +-- !query 6351 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 6351 schema +struct> +-- !query 6351 output +{1:"1",2:"2"} + + +-- !query 6352 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 6352 schema +struct> +-- !query 6352 output +{1:"1",2:"2"} + + +-- !query 6353 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 6353 schema +struct> +-- !query 6353 output +{1:"1",2:"2.0"} + + +-- !query 6354 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 6354 schema +struct> +-- !query 6354 output +{1:"1",2:"2.0"} + + +-- !query 6355 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 6355 schema +struct> +-- !query 6355 output +{1:"1",2:"2"} + + +-- !query 6356 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 6356 schema +struct> +-- !query 6356 output +{1:"1",2:"2"} + + +-- !query 6357 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 6357 schema +struct<> +-- !query 6357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6358 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 6358 schema +struct<> +-- !query 6358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6359 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6359 schema +struct> +-- !query 6359 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 6360 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6360 schema +struct> +-- !query 6360 output +{1:"1",2:"2017-12-12"} + + +-- !query 6361 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 6361 schema +struct> +-- !query 6361 output +{1:"1",2:"2"} + + +-- !query 6362 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 6362 schema +struct> +-- !query 6362 output +{1:"1",2:"2"} + + +-- !query 6363 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 6363 schema +struct> +-- !query 6363 output +{1:"1",2:"2"} + + +-- !query 6364 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 6364 schema +struct> +-- !query 6364 output +{1:"1",2:"2"} + + +-- !query 6365 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 6365 schema +struct> +-- !query 6365 output +{1:"1",2:"2.0"} + + +-- !query 6366 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 6366 schema +struct> +-- !query 6366 output +{1:"1",2:"2.0"} + + +-- !query 6367 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 6367 schema +struct> +-- !query 6367 output +{1:"1",2:"2"} + + +-- !query 6368 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 6368 schema +struct> +-- !query 6368 output +{1:"1",2:"2"} + + +-- !query 6369 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 6369 schema +struct<> +-- !query 6369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6370 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 6370 schema +struct<> +-- !query 6370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6371 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6371 schema +struct> +-- !query 6371 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 6372 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6372 schema +struct> +-- !query 6372 output +{1:"1",2:"2017-12-12"} + + +-- !query 6373 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 6373 schema +struct> +-- !query 6373 output +{1:"1",2:"2"} + + +-- !query 6374 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 6374 schema +struct> +-- !query 6374 output +{1:"1",2:"2"} + + +-- !query 6375 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 6375 schema +struct> +-- !query 6375 output +{1:"1",2:"2"} + + +-- !query 6376 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 6376 schema +struct> +-- !query 6376 output +{1:"1",2:"2"} + + +-- !query 6377 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 6377 schema +struct> +-- !query 6377 output +{1:"1",2:"2.0"} + + +-- !query 6378 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 6378 schema +struct> +-- !query 6378 output +{1:"1",2:"2.0"} + + +-- !query 6379 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 6379 schema +struct> +-- !query 6379 output +{1:"1",2:"2"} + + +-- !query 6380 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 6380 schema +struct> +-- !query 6380 output +{1:"1",2:"2"} + + +-- !query 6381 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 6381 schema +struct<> +-- !query 6381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6382 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 6382 schema +struct<> +-- !query 6382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6383 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6383 schema +struct> +-- !query 6383 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 6384 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6384 schema +struct> +-- !query 6384 output +{1:"1",2:"2017-12-12"} + + +-- !query 6385 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 6385 schema +struct> +-- !query 6385 output +{1.0:"1",2.0:"2"} + + +-- !query 6386 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 6386 schema +struct> +-- !query 6386 output +{1.0:"1",2.0:"2"} + + +-- !query 6387 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 6387 schema +struct> +-- !query 6387 output +{1.0:"1",2.0:"2"} + + +-- !query 6388 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 6388 schema +struct> +-- !query 6388 output +{1.0:"1",2.0:"2"} + + +-- !query 6389 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 6389 schema +struct> +-- !query 6389 output +{1.0:"1",2.0:"2.0"} + + +-- !query 6390 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 6390 schema +struct> +-- !query 6390 output +{1.0:"1",2.0:"2.0"} + + +-- !query 6391 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 6391 schema +struct> +-- !query 6391 output +{1.0:"1",2.0:"2"} + + +-- !query 6392 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 6392 schema +struct> +-- !query 6392 output +{1.0:"1",2.0:"2"} + + +-- !query 6393 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 6393 schema +struct<> +-- !query 6393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6394 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 6394 schema +struct<> +-- !query 6394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6395 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6395 schema +struct> +-- !query 6395 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 6396 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6396 schema +struct> +-- !query 6396 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 6397 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 6397 schema +struct> +-- !query 6397 output +{1.0:"1",2.0:"2"} + + +-- !query 6398 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 6398 schema +struct> +-- !query 6398 output +{1.0:"1",2.0:"2"} + + +-- !query 6399 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 6399 schema +struct> +-- !query 6399 output +{1.0:"1",2.0:"2"} + + +-- !query 6400 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 6400 schema +struct> +-- !query 6400 output +{1.0:"1",2.0:"2"} + + +-- !query 6401 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 6401 schema +struct> +-- !query 6401 output +{1.0:"1",2.0:"2.0"} + + +-- !query 6402 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 6402 schema +struct> +-- !query 6402 output +{1.0:"1",2.0:"2.0"} + + +-- !query 6403 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 6403 schema +struct> +-- !query 6403 output +{1.0:"1",2.0:"2"} + + +-- !query 6404 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 6404 schema +struct> +-- !query 6404 output +{1.0:"1",2.0:"2"} + + +-- !query 6405 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 6405 schema +struct<> +-- !query 6405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6406 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 6406 schema +struct<> +-- !query 6406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6407 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6407 schema +struct> +-- !query 6407 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 6408 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6408 schema +struct> +-- !query 6408 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 6409 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 6409 schema +struct> +-- !query 6409 output +{1:"1",2:"2"} + + +-- !query 6410 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 6410 schema +struct> +-- !query 6410 output +{1:"1",2:"2"} + + +-- !query 6411 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 6411 schema +struct> +-- !query 6411 output +{1:"1",2:"2"} + + +-- !query 6412 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 6412 schema +struct> +-- !query 6412 output +{1:"1",2:"2"} + + +-- !query 6413 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 6413 schema +struct> +-- !query 6413 output +{1:"1",2:"2.0"} + + +-- !query 6414 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 6414 schema +struct> +-- !query 6414 output +{1:"1",2:"2.0"} + + +-- !query 6415 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 6415 schema +struct> +-- !query 6415 output +{1:"1",2:"2"} + + +-- !query 6416 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 6416 schema +struct> +-- !query 6416 output +{1:"1",2:"2"} + + +-- !query 6417 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 6417 schema +struct<> +-- !query 6417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6418 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 6418 schema +struct<> +-- !query 6418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6419 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6419 schema +struct> +-- !query 6419 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 6420 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6420 schema +struct> +-- !query 6420 output +{1:"1",2:"2017-12-12"} + + +-- !query 6421 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 6421 schema +struct> +-- !query 6421 output +{"1":"1","2":"2"} + + +-- !query 6422 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 6422 schema +struct> +-- !query 6422 output +{"1":"1","2":"2"} + + +-- !query 6423 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 6423 schema +struct> +-- !query 6423 output +{"1":"1","2":"2"} + + +-- !query 6424 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 6424 schema +struct> +-- !query 6424 output +{"1":"1","2":"2"} + + +-- !query 6425 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 6425 schema +struct> +-- !query 6425 output +{"1":"1","2":"2.0"} + + +-- !query 6426 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 6426 schema +struct> +-- !query 6426 output +{"1":"1","2":"2.0"} + + +-- !query 6427 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 6427 schema +struct> +-- !query 6427 output +{"1":"1","2":"2"} + + +-- !query 6428 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 6428 schema +struct> +-- !query 6428 output +{"1":"1","2":"2"} + + +-- !query 6429 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 6429 schema +struct<> +-- !query 6429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 6430 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 6430 schema +struct<> +-- !query 6430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 6431 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6431 schema +struct> +-- !query 6431 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 6432 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6432 schema +struct> +-- !query 6432 output +{"1":"1","2":"2017-12-12"} + + +-- !query 6433 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 6433 schema +struct<> +-- !query 6433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6434 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 6434 schema +struct<> +-- !query 6434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6435 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 6435 schema +struct<> +-- !query 6435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6436 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 6436 schema +struct<> +-- !query 6436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6437 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 6437 schema +struct<> +-- !query 6437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6438 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 6438 schema +struct<> +-- !query 6438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6439 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 6439 schema +struct<> +-- !query 6439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6440 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 6440 schema +struct<> +-- !query 6440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6441 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 6441 schema +struct<> +-- !query 6441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6442 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 6442 schema +struct<> +-- !query 6442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6443 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6443 schema +struct<> +-- !query 6443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6444 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6444 schema +struct<> +-- !query 6444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6445 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 6445 schema +struct<> +-- !query 6445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6446 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 6446 schema +struct<> +-- !query 6446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6447 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 6447 schema +struct<> +-- !query 6447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6448 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 6448 schema +struct<> +-- !query 6448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6449 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 6449 schema +struct<> +-- !query 6449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6450 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 6450 schema +struct<> +-- !query 6450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6451 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 6451 schema +struct<> +-- !query 6451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6452 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 6452 schema +struct<> +-- !query 6452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6453 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 6453 schema +struct<> +-- !query 6453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6454 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 6454 schema +struct<> +-- !query 6454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6455 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6455 schema +struct<> +-- !query 6455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6456 +SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6456 schema +struct<> +-- !query 6456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6457 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 6457 schema +struct<> +-- !query 6457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6458 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 6458 schema +struct<> +-- !query 6458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6459 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 6459 schema +struct<> +-- !query 6459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6460 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 6460 schema +struct<> +-- !query 6460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6461 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 6461 schema +struct<> +-- !query 6461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6462 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 6462 schema +struct<> +-- !query 6462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6463 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 6463 schema +struct<> +-- !query 6463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6464 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 6464 schema +struct<> +-- !query 6464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6465 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 6465 schema +struct<> +-- !query 6465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6466 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 6466 schema +struct<> +-- !query 6466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6467 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6467 schema +struct<> +-- !query 6467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6468 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6468 schema +struct<> +-- !query 6468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6469 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 6469 schema +struct<> +-- !query 6469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6470 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 6470 schema +struct<> +-- !query 6470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6471 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 6471 schema +struct<> +-- !query 6471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6472 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 6472 schema +struct<> +-- !query 6472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6473 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 6473 schema +struct<> +-- !query 6473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6474 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 6474 schema +struct<> +-- !query 6474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6475 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 6475 schema +struct<> +-- !query 6475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6476 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 6476 schema +struct<> +-- !query 6476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6477 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 6477 schema +struct<> +-- !query 6477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6478 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 6478 schema +struct<> +-- !query 6478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6479 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6479 schema +struct<> +-- !query 6479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6480 +SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6480 schema +struct<> +-- !query 6480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6481 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 6481 schema +struct<> +-- !query 6481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6482 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 6482 schema +struct<> +-- !query 6482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6483 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 6483 schema +struct<> +-- !query 6483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6484 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 6484 schema +struct<> +-- !query 6484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6485 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 6485 schema +struct<> +-- !query 6485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6486 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 6486 schema +struct<> +-- !query 6486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6487 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 6487 schema +struct<> +-- !query 6487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6488 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 6488 schema +struct<> +-- !query 6488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6489 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 6489 schema +struct> +-- !query 6489 output +{1:[B@2b9ce33,2:[B@54c3083b} + + +-- !query 6490 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 6490 schema +struct<> +-- !query 6490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6491 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6491 schema +struct<> +-- !query 6491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6492 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6492 schema +struct<> +-- !query 6492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6493 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 6493 schema +struct<> +-- !query 6493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6494 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 6494 schema +struct<> +-- !query 6494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6495 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 6495 schema +struct<> +-- !query 6495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6496 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 6496 schema +struct<> +-- !query 6496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6497 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 6497 schema +struct<> +-- !query 6497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6498 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 6498 schema +struct<> +-- !query 6498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6499 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 6499 schema +struct<> +-- !query 6499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6500 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 6500 schema +struct<> +-- !query 6500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6501 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 6501 schema +struct> +-- !query 6501 output +{1:[B@3e572f8b,2:[B@113b7167} + + +-- !query 6502 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 6502 schema +struct<> +-- !query 6502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6503 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6503 schema +struct<> +-- !query 6503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6504 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6504 schema +struct<> +-- !query 6504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6505 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 6505 schema +struct<> +-- !query 6505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6506 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 6506 schema +struct<> +-- !query 6506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6507 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 6507 schema +struct<> +-- !query 6507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6508 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 6508 schema +struct<> +-- !query 6508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6509 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 6509 schema +struct<> +-- !query 6509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6510 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 6510 schema +struct<> +-- !query 6510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6511 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 6511 schema +struct<> +-- !query 6511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6512 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 6512 schema +struct<> +-- !query 6512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6513 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 6513 schema +struct> +-- !query 6513 output +{1:[B@7be08087,2:[B@2e37bc2d} + + +-- !query 6514 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 6514 schema +struct<> +-- !query 6514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6515 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6515 schema +struct<> +-- !query 6515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6516 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6516 schema +struct<> +-- !query 6516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6517 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 6517 schema +struct<> +-- !query 6517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6518 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 6518 schema +struct<> +-- !query 6518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6519 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 6519 schema +struct<> +-- !query 6519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6520 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 6520 schema +struct<> +-- !query 6520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6521 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 6521 schema +struct<> +-- !query 6521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6522 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 6522 schema +struct<> +-- !query 6522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6523 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 6523 schema +struct<> +-- !query 6523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6524 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 6524 schema +struct<> +-- !query 6524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6525 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 6525 schema +struct> +-- !query 6525 output +{1:[B@e1df476,2:[B@ed4bdb4} + + +-- !query 6526 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 6526 schema +struct<> +-- !query 6526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6527 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6527 schema +struct<> +-- !query 6527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6528 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6528 schema +struct<> +-- !query 6528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6529 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 6529 schema +struct<> +-- !query 6529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6530 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 6530 schema +struct<> +-- !query 6530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6531 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 6531 schema +struct<> +-- !query 6531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6532 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 6532 schema +struct<> +-- !query 6532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6533 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 6533 schema +struct<> +-- !query 6533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6534 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 6534 schema +struct<> +-- !query 6534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6535 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 6535 schema +struct<> +-- !query 6535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6536 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 6536 schema +struct<> +-- !query 6536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6537 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 6537 schema +struct> +-- !query 6537 output +{1.0:[B@483313f,2.0:[B@131ef736} + + +-- !query 6538 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 6538 schema +struct<> +-- !query 6538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6539 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6539 schema +struct<> +-- !query 6539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6540 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6540 schema +struct<> +-- !query 6540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6541 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 6541 schema +struct<> +-- !query 6541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6542 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 6542 schema +struct<> +-- !query 6542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6543 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 6543 schema +struct<> +-- !query 6543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6544 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 6544 schema +struct<> +-- !query 6544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6545 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 6545 schema +struct<> +-- !query 6545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6546 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 6546 schema +struct<> +-- !query 6546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6547 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 6547 schema +struct<> +-- !query 6547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6548 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 6548 schema +struct<> +-- !query 6548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6549 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 6549 schema +struct> +-- !query 6549 output +{1.0:[B@16998d92,2.0:[B@1dd1354f} + + +-- !query 6550 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 6550 schema +struct<> +-- !query 6550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6551 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6551 schema +struct<> +-- !query 6551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6552 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6552 schema +struct<> +-- !query 6552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6553 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 6553 schema +struct<> +-- !query 6553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6554 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 6554 schema +struct<> +-- !query 6554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6555 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 6555 schema +struct<> +-- !query 6555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6556 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 6556 schema +struct<> +-- !query 6556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6557 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 6557 schema +struct<> +-- !query 6557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6558 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 6558 schema +struct<> +-- !query 6558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6559 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 6559 schema +struct<> +-- !query 6559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6560 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 6560 schema +struct<> +-- !query 6560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6561 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 6561 schema +struct> +-- !query 6561 output +{1:[B@46d9e3c5,2:[B@2eadfb12} + + +-- !query 6562 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 6562 schema +struct<> +-- !query 6562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6563 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6563 schema +struct<> +-- !query 6563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6564 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6564 schema +struct<> +-- !query 6564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6565 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 6565 schema +struct<> +-- !query 6565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 6566 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 6566 schema +struct<> +-- !query 6566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 6567 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 6567 schema +struct<> +-- !query 6567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 6568 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 6568 schema +struct<> +-- !query 6568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 6569 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 6569 schema +struct<> +-- !query 6569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 6570 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 6570 schema +struct<> +-- !query 6570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 6571 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 6571 schema +struct<> +-- !query 6571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 6572 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 6572 schema +struct<> +-- !query 6572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 6573 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 6573 schema +struct> +-- !query 6573 output +{"1":[B@17c42ccf,"2":[B@377e1b63} + + +-- !query 6574 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 6574 schema +struct<> +-- !query 6574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 6575 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6575 schema +struct<> +-- !query 6575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 6576 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6576 schema +struct<> +-- !query 6576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 6577 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 6577 schema +struct<> +-- !query 6577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6578 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 6578 schema +struct<> +-- !query 6578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6579 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 6579 schema +struct<> +-- !query 6579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6580 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 6580 schema +struct<> +-- !query 6580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6581 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 6581 schema +struct<> +-- !query 6581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6582 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 6582 schema +struct<> +-- !query 6582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6583 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 6583 schema +struct<> +-- !query 6583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6584 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 6584 schema +struct<> +-- !query 6584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6585 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 6585 schema +struct<> +-- !query 6585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6586 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 6586 schema +struct<> +-- !query 6586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6587 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6587 schema +struct<> +-- !query 6587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6588 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6588 schema +struct<> +-- !query 6588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6589 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 6589 schema +struct<> +-- !query 6589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6590 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 6590 schema +struct<> +-- !query 6590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6591 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 6591 schema +struct<> +-- !query 6591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6592 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 6592 schema +struct<> +-- !query 6592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6593 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 6593 schema +struct<> +-- !query 6593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6594 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 6594 schema +struct<> +-- !query 6594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6595 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 6595 schema +struct<> +-- !query 6595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6596 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 6596 schema +struct<> +-- !query 6596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6597 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 6597 schema +struct<> +-- !query 6597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6598 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 6598 schema +struct<> +-- !query 6598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6599 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6599 schema +struct<> +-- !query 6599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6600 +SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6600 schema +struct<> +-- !query 6600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6601 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 6601 schema +struct<> +-- !query 6601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6602 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 6602 schema +struct<> +-- !query 6602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6603 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 6603 schema +struct<> +-- !query 6603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6604 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 6604 schema +struct<> +-- !query 6604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6605 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 6605 schema +struct<> +-- !query 6605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6606 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 6606 schema +struct<> +-- !query 6606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6607 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 6607 schema +struct<> +-- !query 6607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6608 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 6608 schema +struct<> +-- !query 6608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6609 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 6609 schema +struct<> +-- !query 6609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6610 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 6610 schema +struct<> +-- !query 6610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6611 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6611 schema +struct<> +-- !query 6611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6612 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6612 schema +struct<> +-- !query 6612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6613 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 6613 schema +struct<> +-- !query 6613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6614 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 6614 schema +struct<> +-- !query 6614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6615 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 6615 schema +struct<> +-- !query 6615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6616 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 6616 schema +struct<> +-- !query 6616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6617 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 6617 schema +struct<> +-- !query 6617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6618 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 6618 schema +struct<> +-- !query 6618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6619 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 6619 schema +struct<> +-- !query 6619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6620 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 6620 schema +struct<> +-- !query 6620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6621 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 6621 schema +struct<> +-- !query 6621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6622 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 6622 schema +struct<> +-- !query 6622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6623 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6623 schema +struct<> +-- !query 6623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6624 +SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6624 schema +struct<> +-- !query 6624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6625 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 6625 schema +struct<> +-- !query 6625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6626 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 6626 schema +struct<> +-- !query 6626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6627 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 6627 schema +struct<> +-- !query 6627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6628 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 6628 schema +struct<> +-- !query 6628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6629 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 6629 schema +struct<> +-- !query 6629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6630 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 6630 schema +struct<> +-- !query 6630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6631 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 6631 schema +struct<> +-- !query 6631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6632 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 6632 schema +struct<> +-- !query 6632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6633 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 6633 schema +struct<> +-- !query 6633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6634 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 6634 schema +struct> +-- !query 6634 output +{1:true,2:true} + + +-- !query 6635 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6635 schema +struct<> +-- !query 6635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6636 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6636 schema +struct<> +-- !query 6636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6637 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 6637 schema +struct<> +-- !query 6637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6638 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 6638 schema +struct<> +-- !query 6638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6639 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 6639 schema +struct<> +-- !query 6639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6640 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 6640 schema +struct<> +-- !query 6640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6641 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 6641 schema +struct<> +-- !query 6641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6642 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 6642 schema +struct<> +-- !query 6642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6643 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 6643 schema +struct<> +-- !query 6643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6644 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 6644 schema +struct<> +-- !query 6644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6645 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 6645 schema +struct<> +-- !query 6645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6646 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 6646 schema +struct> +-- !query 6646 output +{1:true,2:true} + + +-- !query 6647 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6647 schema +struct<> +-- !query 6647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6648 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6648 schema +struct<> +-- !query 6648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6649 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 6649 schema +struct<> +-- !query 6649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6650 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 6650 schema +struct<> +-- !query 6650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6651 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 6651 schema +struct<> +-- !query 6651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6652 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 6652 schema +struct<> +-- !query 6652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6653 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 6653 schema +struct<> +-- !query 6653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6654 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 6654 schema +struct<> +-- !query 6654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6655 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 6655 schema +struct<> +-- !query 6655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6656 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 6656 schema +struct<> +-- !query 6656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6657 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 6657 schema +struct<> +-- !query 6657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6658 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 6658 schema +struct> +-- !query 6658 output +{1:true,2:true} + + +-- !query 6659 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6659 schema +struct<> +-- !query 6659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6660 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6660 schema +struct<> +-- !query 6660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6661 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 6661 schema +struct<> +-- !query 6661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6662 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 6662 schema +struct<> +-- !query 6662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6663 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 6663 schema +struct<> +-- !query 6663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6664 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 6664 schema +struct<> +-- !query 6664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6665 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 6665 schema +struct<> +-- !query 6665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6666 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 6666 schema +struct<> +-- !query 6666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6667 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 6667 schema +struct<> +-- !query 6667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6668 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 6668 schema +struct<> +-- !query 6668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6669 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 6669 schema +struct<> +-- !query 6669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6670 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 6670 schema +struct> +-- !query 6670 output +{1:true,2:true} + + +-- !query 6671 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6671 schema +struct<> +-- !query 6671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6672 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6672 schema +struct<> +-- !query 6672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6673 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 6673 schema +struct<> +-- !query 6673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6674 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 6674 schema +struct<> +-- !query 6674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6675 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 6675 schema +struct<> +-- !query 6675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6676 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 6676 schema +struct<> +-- !query 6676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6677 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 6677 schema +struct<> +-- !query 6677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6678 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 6678 schema +struct<> +-- !query 6678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6679 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 6679 schema +struct<> +-- !query 6679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6680 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 6680 schema +struct<> +-- !query 6680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6681 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 6681 schema +struct<> +-- !query 6681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6682 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 6682 schema +struct> +-- !query 6682 output +{1.0:true,2.0:true} + + +-- !query 6683 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6683 schema +struct<> +-- !query 6683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6684 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6684 schema +struct<> +-- !query 6684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6685 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 6685 schema +struct<> +-- !query 6685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6686 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 6686 schema +struct<> +-- !query 6686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6687 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 6687 schema +struct<> +-- !query 6687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6688 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 6688 schema +struct<> +-- !query 6688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6689 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 6689 schema +struct<> +-- !query 6689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6690 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 6690 schema +struct<> +-- !query 6690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6691 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 6691 schema +struct<> +-- !query 6691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6692 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 6692 schema +struct<> +-- !query 6692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6693 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 6693 schema +struct<> +-- !query 6693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6694 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 6694 schema +struct> +-- !query 6694 output +{1.0:true,2.0:true} + + +-- !query 6695 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6695 schema +struct<> +-- !query 6695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6696 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6696 schema +struct<> +-- !query 6696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6697 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 6697 schema +struct<> +-- !query 6697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6698 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 6698 schema +struct<> +-- !query 6698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6699 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 6699 schema +struct<> +-- !query 6699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6700 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 6700 schema +struct<> +-- !query 6700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6701 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 6701 schema +struct<> +-- !query 6701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6702 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 6702 schema +struct<> +-- !query 6702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6703 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 6703 schema +struct<> +-- !query 6703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6704 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 6704 schema +struct<> +-- !query 6704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6705 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 6705 schema +struct<> +-- !query 6705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6706 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 6706 schema +struct> +-- !query 6706 output +{1:true,2:true} + + +-- !query 6707 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6707 schema +struct<> +-- !query 6707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6708 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6708 schema +struct<> +-- !query 6708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6709 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 6709 schema +struct<> +-- !query 6709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 6710 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 6710 schema +struct<> +-- !query 6710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 6711 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 6711 schema +struct<> +-- !query 6711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 6712 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 6712 schema +struct<> +-- !query 6712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 6713 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 6713 schema +struct<> +-- !query 6713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 6714 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 6714 schema +struct<> +-- !query 6714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 6715 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 6715 schema +struct<> +-- !query 6715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 6716 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 6716 schema +struct<> +-- !query 6716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 6717 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 6717 schema +struct<> +-- !query 6717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 6718 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 6718 schema +struct> +-- !query 6718 output +{"1":true,"2":true} + + +-- !query 6719 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6719 schema +struct<> +-- !query 6719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 6720 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6720 schema +struct<> +-- !query 6720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 6721 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 6721 schema +struct<> +-- !query 6721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6722 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 6722 schema +struct<> +-- !query 6722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6723 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 6723 schema +struct<> +-- !query 6723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6724 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 6724 schema +struct<> +-- !query 6724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6725 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 6725 schema +struct<> +-- !query 6725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6726 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 6726 schema +struct<> +-- !query 6726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6727 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 6727 schema +struct<> +-- !query 6727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6728 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 6728 schema +struct<> +-- !query 6728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6729 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 6729 schema +struct<> +-- !query 6729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6730 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 6730 schema +struct<> +-- !query 6730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6731 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6731 schema +struct<> +-- !query 6731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6732 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6732 schema +struct<> +-- !query 6732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6733 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 6733 schema +struct<> +-- !query 6733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6734 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 6734 schema +struct<> +-- !query 6734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6735 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 6735 schema +struct<> +-- !query 6735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6736 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 6736 schema +struct<> +-- !query 6736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6737 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 6737 schema +struct<> +-- !query 6737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6738 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 6738 schema +struct<> +-- !query 6738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6739 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 6739 schema +struct<> +-- !query 6739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6740 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 6740 schema +struct<> +-- !query 6740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6741 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 6741 schema +struct<> +-- !query 6741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6742 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 6742 schema +struct<> +-- !query 6742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6743 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6743 schema +struct<> +-- !query 6743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6744 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6744 schema +struct<> +-- !query 6744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6745 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 6745 schema +struct<> +-- !query 6745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6746 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 6746 schema +struct<> +-- !query 6746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6747 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 6747 schema +struct<> +-- !query 6747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6748 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 6748 schema +struct<> +-- !query 6748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6749 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 6749 schema +struct<> +-- !query 6749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6750 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 6750 schema +struct<> +-- !query 6750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6751 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 6751 schema +struct<> +-- !query 6751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6752 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 6752 schema +struct<> +-- !query 6752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6753 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 6753 schema +struct<> +-- !query 6753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6754 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 6754 schema +struct<> +-- !query 6754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6755 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6755 schema +struct<> +-- !query 6755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6756 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6756 schema +struct<> +-- !query 6756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6757 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 6757 schema +struct<> +-- !query 6757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6758 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 6758 schema +struct<> +-- !query 6758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6759 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 6759 schema +struct<> +-- !query 6759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6760 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 6760 schema +struct<> +-- !query 6760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6761 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 6761 schema +struct<> +-- !query 6761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6762 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 6762 schema +struct<> +-- !query 6762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6763 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 6763 schema +struct<> +-- !query 6763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6764 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 6764 schema +struct<> +-- !query 6764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6765 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 6765 schema +struct<> +-- !query 6765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6766 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 6766 schema +struct<> +-- !query 6766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6767 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6767 schema +struct<> +-- !query 6767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6768 +SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6768 schema +struct<> +-- !query 6768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6769 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 6769 schema +struct<> +-- !query 6769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6770 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 6770 schema +struct<> +-- !query 6770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6771 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 6771 schema +struct<> +-- !query 6771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6772 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 6772 schema +struct<> +-- !query 6772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6773 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 6773 schema +struct<> +-- !query 6773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6774 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 6774 schema +struct<> +-- !query 6774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6775 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 6775 schema +struct<> +-- !query 6775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6776 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 6776 schema +struct> +-- !query 6776 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 6777 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 6777 schema +struct<> +-- !query 6777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6778 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 6778 schema +struct<> +-- !query 6778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6779 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6779 schema +struct> +-- !query 6779 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6780 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6780 schema +struct> +-- !query 6780 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 6781 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 6781 schema +struct<> +-- !query 6781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6782 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 6782 schema +struct<> +-- !query 6782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6783 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 6783 schema +struct<> +-- !query 6783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6784 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 6784 schema +struct<> +-- !query 6784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6785 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 6785 schema +struct<> +-- !query 6785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6786 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 6786 schema +struct<> +-- !query 6786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6787 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 6787 schema +struct<> +-- !query 6787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6788 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 6788 schema +struct> +-- !query 6788 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 6789 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 6789 schema +struct<> +-- !query 6789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6790 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 6790 schema +struct<> +-- !query 6790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6791 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6791 schema +struct> +-- !query 6791 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6792 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6792 schema +struct> +-- !query 6792 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 6793 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 6793 schema +struct<> +-- !query 6793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6794 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 6794 schema +struct<> +-- !query 6794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6795 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 6795 schema +struct<> +-- !query 6795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6796 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 6796 schema +struct<> +-- !query 6796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6797 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 6797 schema +struct<> +-- !query 6797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6798 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 6798 schema +struct<> +-- !query 6798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6799 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 6799 schema +struct<> +-- !query 6799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6800 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 6800 schema +struct> +-- !query 6800 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 6801 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 6801 schema +struct<> +-- !query 6801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6802 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 6802 schema +struct<> +-- !query 6802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6803 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6803 schema +struct> +-- !query 6803 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6804 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6804 schema +struct> +-- !query 6804 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 6805 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 6805 schema +struct<> +-- !query 6805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6806 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 6806 schema +struct<> +-- !query 6806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6807 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 6807 schema +struct<> +-- !query 6807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6808 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 6808 schema +struct<> +-- !query 6808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6809 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 6809 schema +struct<> +-- !query 6809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6810 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 6810 schema +struct<> +-- !query 6810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6811 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 6811 schema +struct<> +-- !query 6811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6812 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 6812 schema +struct> +-- !query 6812 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 6813 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 6813 schema +struct<> +-- !query 6813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6814 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 6814 schema +struct<> +-- !query 6814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6815 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6815 schema +struct> +-- !query 6815 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6816 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6816 schema +struct> +-- !query 6816 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 6817 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 6817 schema +struct<> +-- !query 6817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6818 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 6818 schema +struct<> +-- !query 6818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6819 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 6819 schema +struct<> +-- !query 6819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6820 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 6820 schema +struct<> +-- !query 6820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6821 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 6821 schema +struct<> +-- !query 6821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6822 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 6822 schema +struct<> +-- !query 6822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6823 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 6823 schema +struct<> +-- !query 6823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6824 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 6824 schema +struct> +-- !query 6824 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 6825 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 6825 schema +struct<> +-- !query 6825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6826 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 6826 schema +struct<> +-- !query 6826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6827 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6827 schema +struct> +-- !query 6827 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 6828 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6828 schema +struct> +-- !query 6828 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 6829 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 6829 schema +struct<> +-- !query 6829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6830 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 6830 schema +struct<> +-- !query 6830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6831 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 6831 schema +struct<> +-- !query 6831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6832 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 6832 schema +struct<> +-- !query 6832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6833 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 6833 schema +struct<> +-- !query 6833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6834 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 6834 schema +struct<> +-- !query 6834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6835 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 6835 schema +struct<> +-- !query 6835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6836 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 6836 schema +struct> +-- !query 6836 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 6837 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 6837 schema +struct<> +-- !query 6837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6838 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 6838 schema +struct<> +-- !query 6838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6839 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6839 schema +struct> +-- !query 6839 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 6840 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6840 schema +struct> +-- !query 6840 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 6841 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 6841 schema +struct<> +-- !query 6841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6842 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 6842 schema +struct<> +-- !query 6842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6843 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 6843 schema +struct<> +-- !query 6843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6844 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 6844 schema +struct<> +-- !query 6844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6845 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 6845 schema +struct<> +-- !query 6845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6846 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 6846 schema +struct<> +-- !query 6846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6847 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 6847 schema +struct<> +-- !query 6847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6848 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 6848 schema +struct> +-- !query 6848 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 6849 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 6849 schema +struct<> +-- !query 6849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6850 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 6850 schema +struct<> +-- !query 6850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6851 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6851 schema +struct> +-- !query 6851 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6852 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6852 schema +struct> +-- !query 6852 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 6853 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 6853 schema +struct<> +-- !query 6853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 6854 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 6854 schema +struct<> +-- !query 6854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 6855 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 6855 schema +struct<> +-- !query 6855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 6856 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 6856 schema +struct<> +-- !query 6856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 6857 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 6857 schema +struct<> +-- !query 6857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 6858 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 6858 schema +struct<> +-- !query 6858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 6859 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 6859 schema +struct<> +-- !query 6859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 6860 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 6860 schema +struct> +-- !query 6860 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 6861 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 6861 schema +struct<> +-- !query 6861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 6862 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 6862 schema +struct<> +-- !query 6862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 6863 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6863 schema +struct> +-- !query 6863 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 6864 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6864 schema +struct> +-- !query 6864 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 6865 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 6865 schema +struct<> +-- !query 6865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6866 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 6866 schema +struct<> +-- !query 6866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6867 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 6867 schema +struct<> +-- !query 6867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6868 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 6868 schema +struct<> +-- !query 6868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6869 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 6869 schema +struct<> +-- !query 6869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6870 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 6870 schema +struct<> +-- !query 6870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6871 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 6871 schema +struct<> +-- !query 6871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6872 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 6872 schema +struct<> +-- !query 6872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6873 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 6873 schema +struct<> +-- !query 6873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6874 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 6874 schema +struct<> +-- !query 6874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6875 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6875 schema +struct<> +-- !query 6875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6876 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6876 schema +struct<> +-- !query 6876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 6877 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 6877 schema +struct<> +-- !query 6877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6878 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 6878 schema +struct<> +-- !query 6878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6879 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 6879 schema +struct<> +-- !query 6879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6880 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 6880 schema +struct<> +-- !query 6880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6881 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 6881 schema +struct<> +-- !query 6881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6882 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 6882 schema +struct<> +-- !query 6882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6883 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 6883 schema +struct<> +-- !query 6883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6884 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 6884 schema +struct<> +-- !query 6884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6885 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 6885 schema +struct<> +-- !query 6885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6886 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 6886 schema +struct<> +-- !query 6886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6887 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6887 schema +struct<> +-- !query 6887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6888 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6888 schema +struct<> +-- !query 6888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 6889 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 6889 schema +struct<> +-- !query 6889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6890 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 6890 schema +struct<> +-- !query 6890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6891 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 6891 schema +struct<> +-- !query 6891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6892 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 6892 schema +struct<> +-- !query 6892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6893 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 6893 schema +struct<> +-- !query 6893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6894 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 6894 schema +struct<> +-- !query 6894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6895 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 6895 schema +struct<> +-- !query 6895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6896 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 6896 schema +struct<> +-- !query 6896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6897 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 6897 schema +struct<> +-- !query 6897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6898 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 6898 schema +struct<> +-- !query 6898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6899 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6899 schema +struct<> +-- !query 6899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6900 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6900 schema +struct<> +-- !query 6900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 6901 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 6901 schema +struct<> +-- !query 6901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6902 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 6902 schema +struct<> +-- !query 6902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6903 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 6903 schema +struct<> +-- !query 6903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6904 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 6904 schema +struct<> +-- !query 6904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6905 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 6905 schema +struct<> +-- !query 6905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6906 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 6906 schema +struct<> +-- !query 6906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6907 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 6907 schema +struct<> +-- !query 6907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6908 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 6908 schema +struct<> +-- !query 6908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6909 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 6909 schema +struct<> +-- !query 6909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6910 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 6910 schema +struct<> +-- !query 6910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6911 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6911 schema +struct<> +-- !query 6911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6912 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6912 schema +struct<> +-- !query 6912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 6913 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 6913 schema +struct<> +-- !query 6913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6914 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 6914 schema +struct<> +-- !query 6914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6915 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 6915 schema +struct<> +-- !query 6915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 6916 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 6916 schema +struct<> +-- !query 6916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 6917 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 6917 schema +struct<> +-- !query 6917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 6918 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 6918 schema +struct<> +-- !query 6918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 6919 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 6919 schema +struct<> +-- !query 6919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 6920 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 6920 schema +struct> +-- !query 6920 output +{1:"2017-12-11",2:"2"} + + +-- !query 6921 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 6921 schema +struct<> +-- !query 6921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 6922 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 6922 schema +struct<> +-- !query 6922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 6923 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6923 schema +struct> +-- !query 6923 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6924 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6924 schema +struct> +-- !query 6924 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 6925 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 6925 schema +struct<> +-- !query 6925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6926 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 6926 schema +struct<> +-- !query 6926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6927 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 6927 schema +struct<> +-- !query 6927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 6928 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 6928 schema +struct<> +-- !query 6928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 6929 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 6929 schema +struct<> +-- !query 6929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 6930 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 6930 schema +struct<> +-- !query 6930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 6931 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 6931 schema +struct<> +-- !query 6931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 6932 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 6932 schema +struct> +-- !query 6932 output +{1:"2017-12-11",2:"2"} + + +-- !query 6933 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 6933 schema +struct<> +-- !query 6933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 6934 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 6934 schema +struct<> +-- !query 6934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 6935 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6935 schema +struct> +-- !query 6935 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6936 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6936 schema +struct> +-- !query 6936 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 6937 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 6937 schema +struct<> +-- !query 6937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6938 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 6938 schema +struct<> +-- !query 6938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6939 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 6939 schema +struct<> +-- !query 6939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 6940 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 6940 schema +struct<> +-- !query 6940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 6941 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 6941 schema +struct<> +-- !query 6941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 6942 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 6942 schema +struct<> +-- !query 6942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 6943 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 6943 schema +struct<> +-- !query 6943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 6944 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 6944 schema +struct> +-- !query 6944 output +{1:"2017-12-11",2:"2"} + + +-- !query 6945 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 6945 schema +struct<> +-- !query 6945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 6946 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 6946 schema +struct<> +-- !query 6946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 6947 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6947 schema +struct> +-- !query 6947 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6948 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6948 schema +struct> +-- !query 6948 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 6949 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 6949 schema +struct<> +-- !query 6949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6950 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 6950 schema +struct<> +-- !query 6950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6951 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 6951 schema +struct<> +-- !query 6951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 6952 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 6952 schema +struct<> +-- !query 6952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 6953 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 6953 schema +struct<> +-- !query 6953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 6954 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 6954 schema +struct<> +-- !query 6954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 6955 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 6955 schema +struct<> +-- !query 6955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 6956 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 6956 schema +struct> +-- !query 6956 output +{1:"2017-12-11",2:"2"} + + +-- !query 6957 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 6957 schema +struct<> +-- !query 6957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 6958 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 6958 schema +struct<> +-- !query 6958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 6959 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6959 schema +struct> +-- !query 6959 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6960 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6960 schema +struct> +-- !query 6960 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 6961 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 6961 schema +struct<> +-- !query 6961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6962 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 6962 schema +struct<> +-- !query 6962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6963 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 6963 schema +struct<> +-- !query 6963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 6964 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 6964 schema +struct<> +-- !query 6964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 6965 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 6965 schema +struct<> +-- !query 6965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 6966 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 6966 schema +struct<> +-- !query 6966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 6967 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 6967 schema +struct<> +-- !query 6967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 6968 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 6968 schema +struct> +-- !query 6968 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 6969 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 6969 schema +struct<> +-- !query 6969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 6970 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 6970 schema +struct<> +-- !query 6970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 6971 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6971 schema +struct> +-- !query 6971 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 6972 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6972 schema +struct> +-- !query 6972 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 6973 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 6973 schema +struct<> +-- !query 6973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6974 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 6974 schema +struct<> +-- !query 6974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6975 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 6975 schema +struct<> +-- !query 6975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 6976 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 6976 schema +struct<> +-- !query 6976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 6977 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 6977 schema +struct<> +-- !query 6977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 6978 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 6978 schema +struct<> +-- !query 6978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 6979 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 6979 schema +struct<> +-- !query 6979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 6980 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 6980 schema +struct> +-- !query 6980 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 6981 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 6981 schema +struct<> +-- !query 6981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 6982 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 6982 schema +struct<> +-- !query 6982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 6983 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6983 schema +struct> +-- !query 6983 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 6984 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6984 schema +struct> +-- !query 6984 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 6985 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 6985 schema +struct<> +-- !query 6985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6986 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 6986 schema +struct<> +-- !query 6986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6987 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 6987 schema +struct<> +-- !query 6987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 6988 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 6988 schema +struct<> +-- !query 6988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 6989 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 6989 schema +struct<> +-- !query 6989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 6990 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 6990 schema +struct<> +-- !query 6990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 6991 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 6991 schema +struct<> +-- !query 6991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 6992 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 6992 schema +struct> +-- !query 6992 output +{1:"2017-12-11",2:"2"} + + +-- !query 6993 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 6993 schema +struct<> +-- !query 6993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 6994 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 6994 schema +struct<> +-- !query 6994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 6995 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 6995 schema +struct> +-- !query 6995 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 6996 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 6996 schema +struct> +-- !query 6996 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 6997 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 6997 schema +struct<> +-- !query 6997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 6998 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 6998 schema +struct<> +-- !query 6998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 6999 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 6999 schema +struct<> +-- !query 6999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 7000 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 7000 schema +struct<> +-- !query 7000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 7001 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 7001 schema +struct<> +-- !query 7001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 7002 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 7002 schema +struct<> +-- !query 7002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 7003 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 7003 schema +struct<> +-- !query 7003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 7004 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 7004 schema +struct> +-- !query 7004 output +{"1":"2017-12-11","2":"2"} + + +-- !query 7005 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 7005 schema +struct<> +-- !query 7005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 7006 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 7006 schema +struct<> +-- !query 7006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 7007 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7007 schema +struct> +-- !query 7007 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 7008 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7008 schema +struct> +-- !query 7008 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 7009 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 7009 schema +struct<> +-- !query 7009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7010 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 7010 schema +struct<> +-- !query 7010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7011 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 7011 schema +struct<> +-- !query 7011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7012 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 7012 schema +struct<> +-- !query 7012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7013 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 7013 schema +struct<> +-- !query 7013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7014 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 7014 schema +struct<> +-- !query 7014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7015 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 7015 schema +struct<> +-- !query 7015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7016 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 7016 schema +struct<> +-- !query 7016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7017 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 7017 schema +struct<> +-- !query 7017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7018 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 7018 schema +struct<> +-- !query 7018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7019 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7019 schema +struct<> +-- !query 7019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7020 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7020 schema +struct<> +-- !query 7020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7021 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 7021 schema +struct<> +-- !query 7021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7022 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 7022 schema +struct<> +-- !query 7022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7023 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 7023 schema +struct<> +-- !query 7023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7024 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 7024 schema +struct<> +-- !query 7024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7025 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 7025 schema +struct<> +-- !query 7025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7026 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 7026 schema +struct<> +-- !query 7026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7027 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 7027 schema +struct<> +-- !query 7027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7028 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 7028 schema +struct<> +-- !query 7028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7029 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 7029 schema +struct<> +-- !query 7029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7030 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 7030 schema +struct<> +-- !query 7030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7031 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7031 schema +struct<> +-- !query 7031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7032 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7032 schema +struct<> +-- !query 7032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7033 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 7033 schema +struct<> +-- !query 7033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7034 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 7034 schema +struct<> +-- !query 7034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7035 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 7035 schema +struct<> +-- !query 7035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7036 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 7036 schema +struct<> +-- !query 7036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7037 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 7037 schema +struct<> +-- !query 7037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7038 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 7038 schema +struct<> +-- !query 7038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7039 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 7039 schema +struct<> +-- !query 7039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7040 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 7040 schema +struct<> +-- !query 7040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7041 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 7041 schema +struct<> +-- !query 7041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7042 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 7042 schema +struct<> +-- !query 7042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7043 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7043 schema +struct<> +-- !query 7043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7044 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7044 schema +struct<> +-- !query 7044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7045 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 7045 schema +struct<> +-- !query 7045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7046 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 7046 schema +struct<> +-- !query 7046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7047 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 7047 schema +struct<> +-- !query 7047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7048 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 7048 schema +struct<> +-- !query 7048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7049 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 7049 schema +struct<> +-- !query 7049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7050 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 7050 schema +struct<> +-- !query 7050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7051 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 7051 schema +struct<> +-- !query 7051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7052 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 7052 schema +struct<> +-- !query 7052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7053 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 7053 schema +struct<> +-- !query 7053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7054 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 7054 schema +struct<> +-- !query 7054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7055 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7055 schema +struct<> +-- !query 7055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7056 +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7056 schema +struct<> +-- !query 7056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7057 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 7057 schema +struct> +-- !query 7057 output +{1.0:1,2.0:2} + + +-- !query 7058 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 7058 schema +struct> +-- !query 7058 output +{1.0:1,2.0:2} + + +-- !query 7059 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 7059 schema +struct> +-- !query 7059 output +{1.0:1,2.0:2} + + +-- !query 7060 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 7060 schema +struct> +-- !query 7060 output +{1.0:1,2.0:2} + + +-- !query 7061 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 7061 schema +struct> +-- !query 7061 output +{1.0:1.0,2.0:2.0} + + +-- !query 7062 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 7062 schema +struct> +-- !query 7062 output +{1.0:1.0,2.0:2.0} + + +-- !query 7063 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 7063 schema +struct> +-- !query 7063 output +{1.0:1,2.0:2} + + +-- !query 7064 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 7064 schema +struct> +-- !query 7064 output +{1.0:"1",2.0:"2"} + + +-- !query 7065 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 7065 schema +struct<> +-- !query 7065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7066 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 7066 schema +struct<> +-- !query 7066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7067 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7067 schema +struct<> +-- !query 7067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7068 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7068 schema +struct<> +-- !query 7068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7069 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 7069 schema +struct> +-- !query 7069 output +{1.0:1,2.0:2} + + +-- !query 7070 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 7070 schema +struct> +-- !query 7070 output +{1.0:1,2.0:2} + + +-- !query 7071 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 7071 schema +struct> +-- !query 7071 output +{1.0:1,2.0:2} + + +-- !query 7072 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 7072 schema +struct> +-- !query 7072 output +{1.0:1,2.0:2} + + +-- !query 7073 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 7073 schema +struct> +-- !query 7073 output +{1.0:1.0,2.0:2.0} + + +-- !query 7074 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 7074 schema +struct> +-- !query 7074 output +{1.0:1.0,2.0:2.0} + + +-- !query 7075 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 7075 schema +struct> +-- !query 7075 output +{1.0:1,2.0:2} + + +-- !query 7076 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 7076 schema +struct> +-- !query 7076 output +{1.0:"1",2.0:"2"} + + +-- !query 7077 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 7077 schema +struct<> +-- !query 7077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7078 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 7078 schema +struct<> +-- !query 7078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7079 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7079 schema +struct<> +-- !query 7079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7080 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7080 schema +struct<> +-- !query 7080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7081 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 7081 schema +struct> +-- !query 7081 output +{1.0:1,2.0:2} + + +-- !query 7082 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 7082 schema +struct> +-- !query 7082 output +{1.0:1,2.0:2} + + +-- !query 7083 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 7083 schema +struct> +-- !query 7083 output +{1.0:1,2.0:2} + + +-- !query 7084 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 7084 schema +struct> +-- !query 7084 output +{1.0:1,2.0:2} + + +-- !query 7085 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 7085 schema +struct> +-- !query 7085 output +{1.0:1.0,2.0:2.0} + + +-- !query 7086 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 7086 schema +struct> +-- !query 7086 output +{1.0:1.0,2.0:2.0} + + +-- !query 7087 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 7087 schema +struct> +-- !query 7087 output +{1.0:1,2.0:2} + + +-- !query 7088 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 7088 schema +struct> +-- !query 7088 output +{1.0:"1",2.0:"2"} + + +-- !query 7089 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 7089 schema +struct<> +-- !query 7089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7090 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 7090 schema +struct<> +-- !query 7090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7091 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7091 schema +struct<> +-- !query 7091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7092 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7092 schema +struct<> +-- !query 7092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7093 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 7093 schema +struct> +-- !query 7093 output +{1.0:1,2.0:2} + + +-- !query 7094 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 7094 schema +struct> +-- !query 7094 output +{1.0:1,2.0:2} + + +-- !query 7095 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 7095 schema +struct> +-- !query 7095 output +{1.0:1,2.0:2} + + +-- !query 7096 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 7096 schema +struct> +-- !query 7096 output +{1.0:1,2.0:2} + + +-- !query 7097 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 7097 schema +struct> +-- !query 7097 output +{1.0:1.0,2.0:2.0} + + +-- !query 7098 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 7098 schema +struct> +-- !query 7098 output +{1.0:1.0,2.0:2.0} + + +-- !query 7099 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 7099 schema +struct> +-- !query 7099 output +{1.0:1,2.0:2} + + +-- !query 7100 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 7100 schema +struct> +-- !query 7100 output +{1.0:"1",2.0:"2"} + + +-- !query 7101 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 7101 schema +struct<> +-- !query 7101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7102 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 7102 schema +struct<> +-- !query 7102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7103 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7103 schema +struct<> +-- !query 7103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7104 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7104 schema +struct<> +-- !query 7104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7105 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 7105 schema +struct> +-- !query 7105 output +{1.0:1,2.0:2} + + +-- !query 7106 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 7106 schema +struct> +-- !query 7106 output +{1.0:1,2.0:2} + + +-- !query 7107 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 7107 schema +struct> +-- !query 7107 output +{1.0:1,2.0:2} + + +-- !query 7108 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 7108 schema +struct> +-- !query 7108 output +{1.0:1,2.0:2} + + +-- !query 7109 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 7109 schema +struct> +-- !query 7109 output +{1.0:1.0,2.0:2.0} + + +-- !query 7110 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 7110 schema +struct> +-- !query 7110 output +{1.0:1.0,2.0:2.0} + + +-- !query 7111 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 7111 schema +struct> +-- !query 7111 output +{1.0:1,2.0:2} + + +-- !query 7112 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 7112 schema +struct> +-- !query 7112 output +{1.0:"1",2.0:"2"} + + +-- !query 7113 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 7113 schema +struct<> +-- !query 7113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7114 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 7114 schema +struct<> +-- !query 7114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7115 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7115 schema +struct<> +-- !query 7115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7116 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7116 schema +struct<> +-- !query 7116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7117 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 7117 schema +struct> +-- !query 7117 output +{1.0:1,2.0:2} + + +-- !query 7118 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 7118 schema +struct> +-- !query 7118 output +{1.0:1,2.0:2} + + +-- !query 7119 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 7119 schema +struct> +-- !query 7119 output +{1.0:1,2.0:2} + + +-- !query 7120 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 7120 schema +struct> +-- !query 7120 output +{1.0:1,2.0:2} + + +-- !query 7121 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 7121 schema +struct> +-- !query 7121 output +{1.0:1.0,2.0:2.0} + + +-- !query 7122 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 7122 schema +struct> +-- !query 7122 output +{1.0:1.0,2.0:2.0} + + +-- !query 7123 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 7123 schema +struct> +-- !query 7123 output +{1.0:1,2.0:2} + + +-- !query 7124 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 7124 schema +struct> +-- !query 7124 output +{1.0:"1",2.0:"2"} + + +-- !query 7125 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 7125 schema +struct<> +-- !query 7125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7126 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 7126 schema +struct<> +-- !query 7126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7127 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7127 schema +struct<> +-- !query 7127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7128 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7128 schema +struct<> +-- !query 7128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7129 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 7129 schema +struct> +-- !query 7129 output +{1.0:1,2.0:2} + + +-- !query 7130 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 7130 schema +struct> +-- !query 7130 output +{1.0:1,2.0:2} + + +-- !query 7131 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 7131 schema +struct> +-- !query 7131 output +{1.0:1,2.0:2} + + +-- !query 7132 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 7132 schema +struct> +-- !query 7132 output +{1.0:1,2.0:2} + + +-- !query 7133 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 7133 schema +struct> +-- !query 7133 output +{1.0:1.0,2.0:2.0} + + +-- !query 7134 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 7134 schema +struct> +-- !query 7134 output +{1.0:1.0,2.0:2.0} + + +-- !query 7135 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 7135 schema +struct> +-- !query 7135 output +{1.0:1,2.0:2} + + +-- !query 7136 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 7136 schema +struct> +-- !query 7136 output +{1.0:"1",2.0:"2"} + + +-- !query 7137 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 7137 schema +struct<> +-- !query 7137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7138 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 7138 schema +struct<> +-- !query 7138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7139 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7139 schema +struct<> +-- !query 7139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7140 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7140 schema +struct<> +-- !query 7140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7141 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 7141 schema +struct> +-- !query 7141 output +{"1.0":1,"2":2} + + +-- !query 7142 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 7142 schema +struct> +-- !query 7142 output +{"1.0":1,"2":2} + + +-- !query 7143 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 7143 schema +struct> +-- !query 7143 output +{"1.0":1,"2":2} + + +-- !query 7144 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 7144 schema +struct> +-- !query 7144 output +{"1.0":1,"2":2} + + +-- !query 7145 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 7145 schema +struct> +-- !query 7145 output +{"1.0":1.0,"2":2.0} + + +-- !query 7146 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 7146 schema +struct> +-- !query 7146 output +{"1.0":1.0,"2":2.0} + + +-- !query 7147 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 7147 schema +struct> +-- !query 7147 output +{"1.0":1,"2":2} + + +-- !query 7148 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 7148 schema +struct> +-- !query 7148 output +{"1.0":"1","2":"2"} + + +-- !query 7149 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 7149 schema +struct<> +-- !query 7149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 7150 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 7150 schema +struct<> +-- !query 7150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 7151 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7151 schema +struct<> +-- !query 7151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 7152 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7152 schema +struct<> +-- !query 7152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 7153 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 7153 schema +struct<> +-- !query 7153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7154 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 7154 schema +struct<> +-- !query 7154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7155 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 7155 schema +struct<> +-- !query 7155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7156 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 7156 schema +struct<> +-- !query 7156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7157 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 7157 schema +struct<> +-- !query 7157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7158 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 7158 schema +struct<> +-- !query 7158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7159 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 7159 schema +struct<> +-- !query 7159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7160 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 7160 schema +struct<> +-- !query 7160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7161 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 7161 schema +struct<> +-- !query 7161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7162 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 7162 schema +struct<> +-- !query 7162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7163 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7163 schema +struct<> +-- !query 7163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7164 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7164 schema +struct<> +-- !query 7164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7165 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 7165 schema +struct<> +-- !query 7165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7166 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 7166 schema +struct<> +-- !query 7166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7167 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 7167 schema +struct<> +-- !query 7167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7168 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 7168 schema +struct<> +-- !query 7168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7169 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 7169 schema +struct<> +-- !query 7169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7170 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 7170 schema +struct<> +-- !query 7170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7171 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 7171 schema +struct<> +-- !query 7171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7172 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 7172 schema +struct<> +-- !query 7172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7173 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 7173 schema +struct<> +-- !query 7173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7174 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 7174 schema +struct<> +-- !query 7174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7175 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7175 schema +struct<> +-- !query 7175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7176 +SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7176 schema +struct<> +-- !query 7176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7177 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 7177 schema +struct<> +-- !query 7177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7178 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 7178 schema +struct<> +-- !query 7178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7179 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 7179 schema +struct<> +-- !query 7179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7180 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 7180 schema +struct<> +-- !query 7180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7181 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 7181 schema +struct<> +-- !query 7181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7182 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 7182 schema +struct<> +-- !query 7182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7183 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 7183 schema +struct<> +-- !query 7183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7184 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 7184 schema +struct<> +-- !query 7184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7185 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 7185 schema +struct<> +-- !query 7185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7186 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 7186 schema +struct<> +-- !query 7186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7187 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7187 schema +struct<> +-- !query 7187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7188 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7188 schema +struct<> +-- !query 7188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7189 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 7189 schema +struct<> +-- !query 7189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7190 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 7190 schema +struct<> +-- !query 7190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7191 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 7191 schema +struct<> +-- !query 7191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7192 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 7192 schema +struct<> +-- !query 7192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7193 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 7193 schema +struct<> +-- !query 7193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7194 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 7194 schema +struct<> +-- !query 7194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7195 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 7195 schema +struct<> +-- !query 7195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7196 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 7196 schema +struct<> +-- !query 7196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7197 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 7197 schema +struct<> +-- !query 7197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7198 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 7198 schema +struct<> +-- !query 7198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7199 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7199 schema +struct<> +-- !query 7199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7200 +SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7200 schema +struct<> +-- !query 7200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7201 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 7201 schema +struct> +-- !query 7201 output +{1.0:1,2.0:2} + + +-- !query 7202 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 7202 schema +struct> +-- !query 7202 output +{1.0:1,2.0:2} + + +-- !query 7203 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 7203 schema +struct> +-- !query 7203 output +{1.0:1,2.0:2} + + +-- !query 7204 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 7204 schema +struct> +-- !query 7204 output +{1.0:1,2.0:2} + + +-- !query 7205 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 7205 schema +struct> +-- !query 7205 output +{1.0:1.0,2.0:2.0} + + +-- !query 7206 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 7206 schema +struct> +-- !query 7206 output +{1.0:1.0,2.0:2.0} + + +-- !query 7207 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 7207 schema +struct> +-- !query 7207 output +{1.0:1,2.0:2} + + +-- !query 7208 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 7208 schema +struct> +-- !query 7208 output +{1.0:"1",2.0:"2"} + + +-- !query 7209 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 7209 schema +struct<> +-- !query 7209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7210 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 7210 schema +struct<> +-- !query 7210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7211 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7211 schema +struct<> +-- !query 7211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7212 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7212 schema +struct<> +-- !query 7212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7213 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 7213 schema +struct> +-- !query 7213 output +{1.0:1,2.0:2} + + +-- !query 7214 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 7214 schema +struct> +-- !query 7214 output +{1.0:1,2.0:2} + + +-- !query 7215 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 7215 schema +struct> +-- !query 7215 output +{1.0:1,2.0:2} + + +-- !query 7216 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 7216 schema +struct> +-- !query 7216 output +{1.0:1,2.0:2} + + +-- !query 7217 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 7217 schema +struct> +-- !query 7217 output +{1.0:1.0,2.0:2.0} + + +-- !query 7218 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 7218 schema +struct> +-- !query 7218 output +{1.0:1.0,2.0:2.0} + + +-- !query 7219 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 7219 schema +struct> +-- !query 7219 output +{1.0:1,2.0:2} + + +-- !query 7220 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 7220 schema +struct> +-- !query 7220 output +{1.0:"1",2.0:"2"} + + +-- !query 7221 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 7221 schema +struct<> +-- !query 7221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7222 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 7222 schema +struct<> +-- !query 7222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7223 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7223 schema +struct<> +-- !query 7223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7224 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7224 schema +struct<> +-- !query 7224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7225 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 7225 schema +struct> +-- !query 7225 output +{1.0:1,2.0:2} + + +-- !query 7226 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 7226 schema +struct> +-- !query 7226 output +{1.0:1,2.0:2} + + +-- !query 7227 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 7227 schema +struct> +-- !query 7227 output +{1.0:1,2.0:2} + + +-- !query 7228 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 7228 schema +struct> +-- !query 7228 output +{1.0:1,2.0:2} + + +-- !query 7229 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 7229 schema +struct> +-- !query 7229 output +{1.0:1.0,2.0:2.0} + + +-- !query 7230 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 7230 schema +struct> +-- !query 7230 output +{1.0:1.0,2.0:2.0} + + +-- !query 7231 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 7231 schema +struct> +-- !query 7231 output +{1.0:1,2.0:2} + + +-- !query 7232 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 7232 schema +struct> +-- !query 7232 output +{1.0:"1",2.0:"2"} + + +-- !query 7233 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 7233 schema +struct<> +-- !query 7233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7234 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 7234 schema +struct<> +-- !query 7234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7235 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7235 schema +struct<> +-- !query 7235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7236 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7236 schema +struct<> +-- !query 7236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7237 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 7237 schema +struct> +-- !query 7237 output +{1.0:1,2.0:2} + + +-- !query 7238 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 7238 schema +struct> +-- !query 7238 output +{1.0:1,2.0:2} + + +-- !query 7239 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 7239 schema +struct> +-- !query 7239 output +{1.0:1,2.0:2} + + +-- !query 7240 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 7240 schema +struct> +-- !query 7240 output +{1.0:1,2.0:2} + + +-- !query 7241 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 7241 schema +struct> +-- !query 7241 output +{1.0:1.0,2.0:2.0} + + +-- !query 7242 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 7242 schema +struct> +-- !query 7242 output +{1.0:1.0,2.0:2.0} + + +-- !query 7243 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 7243 schema +struct> +-- !query 7243 output +{1.0:1,2.0:2} + + +-- !query 7244 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 7244 schema +struct> +-- !query 7244 output +{1.0:"1",2.0:"2"} + + +-- !query 7245 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 7245 schema +struct<> +-- !query 7245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7246 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 7246 schema +struct<> +-- !query 7246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7247 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7247 schema +struct<> +-- !query 7247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7248 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7248 schema +struct<> +-- !query 7248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7249 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 7249 schema +struct> +-- !query 7249 output +{1.0:1,2.0:2} + + +-- !query 7250 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 7250 schema +struct> +-- !query 7250 output +{1.0:1,2.0:2} + + +-- !query 7251 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 7251 schema +struct> +-- !query 7251 output +{1.0:1,2.0:2} + + +-- !query 7252 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 7252 schema +struct> +-- !query 7252 output +{1.0:1,2.0:2} + + +-- !query 7253 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 7253 schema +struct> +-- !query 7253 output +{1.0:1.0,2.0:2.0} + + +-- !query 7254 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 7254 schema +struct> +-- !query 7254 output +{1.0:1.0,2.0:2.0} + + +-- !query 7255 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 7255 schema +struct> +-- !query 7255 output +{1.0:1,2.0:2} + + +-- !query 7256 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 7256 schema +struct> +-- !query 7256 output +{1.0:"1",2.0:"2"} + + +-- !query 7257 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 7257 schema +struct<> +-- !query 7257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7258 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 7258 schema +struct<> +-- !query 7258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7259 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7259 schema +struct<> +-- !query 7259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7260 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7260 schema +struct<> +-- !query 7260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7261 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 7261 schema +struct> +-- !query 7261 output +{1.0:1,2.0:2} + + +-- !query 7262 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 7262 schema +struct> +-- !query 7262 output +{1.0:1,2.0:2} + + +-- !query 7263 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 7263 schema +struct> +-- !query 7263 output +{1.0:1,2.0:2} + + +-- !query 7264 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 7264 schema +struct> +-- !query 7264 output +{1.0:1,2.0:2} + + +-- !query 7265 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 7265 schema +struct> +-- !query 7265 output +{1.0:1.0,2.0:2.0} + + +-- !query 7266 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 7266 schema +struct> +-- !query 7266 output +{1.0:1.0,2.0:2.0} + + +-- !query 7267 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 7267 schema +struct> +-- !query 7267 output +{1.0:1,2.0:2} + + +-- !query 7268 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 7268 schema +struct> +-- !query 7268 output +{1.0:"1",2.0:"2"} + + +-- !query 7269 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 7269 schema +struct<> +-- !query 7269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7270 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 7270 schema +struct<> +-- !query 7270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7271 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7271 schema +struct<> +-- !query 7271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7272 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7272 schema +struct<> +-- !query 7272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7273 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 7273 schema +struct> +-- !query 7273 output +{1.0:1,2.0:2} + + +-- !query 7274 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 7274 schema +struct> +-- !query 7274 output +{1.0:1,2.0:2} + + +-- !query 7275 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 7275 schema +struct> +-- !query 7275 output +{1.0:1,2.0:2} + + +-- !query 7276 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 7276 schema +struct> +-- !query 7276 output +{1.0:1,2.0:2} + + +-- !query 7277 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 7277 schema +struct> +-- !query 7277 output +{1.0:1.0,2.0:2.0} + + +-- !query 7278 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 7278 schema +struct> +-- !query 7278 output +{1.0:1.0,2.0:2.0} + + +-- !query 7279 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 7279 schema +struct> +-- !query 7279 output +{1.0:1,2.0:2} + + +-- !query 7280 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 7280 schema +struct> +-- !query 7280 output +{1.0:"1",2.0:"2"} + + +-- !query 7281 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 7281 schema +struct<> +-- !query 7281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7282 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 7282 schema +struct<> +-- !query 7282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7283 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7283 schema +struct<> +-- !query 7283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7284 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7284 schema +struct<> +-- !query 7284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7285 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 7285 schema +struct> +-- !query 7285 output +{"1.0":1,"2":2} + + +-- !query 7286 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 7286 schema +struct> +-- !query 7286 output +{"1.0":1,"2":2} + + +-- !query 7287 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 7287 schema +struct> +-- !query 7287 output +{"1.0":1,"2":2} + + +-- !query 7288 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 7288 schema +struct> +-- !query 7288 output +{"1.0":1,"2":2} + + +-- !query 7289 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 7289 schema +struct> +-- !query 7289 output +{"1.0":1.0,"2":2.0} + + +-- !query 7290 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 7290 schema +struct> +-- !query 7290 output +{"1.0":1.0,"2":2.0} + + +-- !query 7291 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 7291 schema +struct> +-- !query 7291 output +{"1.0":1,"2":2} + + +-- !query 7292 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 7292 schema +struct> +-- !query 7292 output +{"1.0":"1","2":"2"} + + +-- !query 7293 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 7293 schema +struct<> +-- !query 7293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 7294 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 7294 schema +struct<> +-- !query 7294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 7295 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7295 schema +struct<> +-- !query 7295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 7296 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7296 schema +struct<> +-- !query 7296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 7297 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 7297 schema +struct<> +-- !query 7297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7298 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 7298 schema +struct<> +-- !query 7298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7299 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 7299 schema +struct<> +-- !query 7299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7300 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 7300 schema +struct<> +-- !query 7300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7301 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 7301 schema +struct<> +-- !query 7301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7302 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 7302 schema +struct<> +-- !query 7302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7303 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 7303 schema +struct<> +-- !query 7303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7304 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 7304 schema +struct<> +-- !query 7304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7305 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 7305 schema +struct<> +-- !query 7305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7306 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 7306 schema +struct<> +-- !query 7306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7307 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7307 schema +struct<> +-- !query 7307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7308 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7308 schema +struct<> +-- !query 7308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7309 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 7309 schema +struct<> +-- !query 7309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7310 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 7310 schema +struct<> +-- !query 7310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7311 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 7311 schema +struct<> +-- !query 7311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7312 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 7312 schema +struct<> +-- !query 7312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7313 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 7313 schema +struct<> +-- !query 7313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7314 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 7314 schema +struct<> +-- !query 7314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7315 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 7315 schema +struct<> +-- !query 7315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7316 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 7316 schema +struct<> +-- !query 7316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7317 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 7317 schema +struct<> +-- !query 7317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7318 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 7318 schema +struct<> +-- !query 7318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7319 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7319 schema +struct<> +-- !query 7319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7320 +SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7320 schema +struct<> +-- !query 7320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7321 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 7321 schema +struct<> +-- !query 7321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7322 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 7322 schema +struct<> +-- !query 7322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7323 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 7323 schema +struct<> +-- !query 7323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7324 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 7324 schema +struct<> +-- !query 7324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7325 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 7325 schema +struct<> +-- !query 7325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7326 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 7326 schema +struct<> +-- !query 7326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7327 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 7327 schema +struct<> +-- !query 7327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7328 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 7328 schema +struct<> +-- !query 7328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7329 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 7329 schema +struct<> +-- !query 7329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7330 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 7330 schema +struct<> +-- !query 7330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7331 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7331 schema +struct<> +-- !query 7331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7332 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7332 schema +struct<> +-- !query 7332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7333 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 7333 schema +struct<> +-- !query 7333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7334 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 7334 schema +struct<> +-- !query 7334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7335 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 7335 schema +struct<> +-- !query 7335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7336 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 7336 schema +struct<> +-- !query 7336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7337 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 7337 schema +struct<> +-- !query 7337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7338 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 7338 schema +struct<> +-- !query 7338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7339 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 7339 schema +struct<> +-- !query 7339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7340 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 7340 schema +struct<> +-- !query 7340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7341 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 7341 schema +struct<> +-- !query 7341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7342 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 7342 schema +struct<> +-- !query 7342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7343 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7343 schema +struct<> +-- !query 7343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7344 +SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7344 schema +struct<> +-- !query 7344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7345 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 7345 schema +struct> +-- !query 7345 output +{1.0:1,2.0:2} + + +-- !query 7346 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 7346 schema +struct> +-- !query 7346 output +{1.0:1,2.0:2} + + +-- !query 7347 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 7347 schema +struct> +-- !query 7347 output +{1.0:1,2.0:2} + + +-- !query 7348 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 7348 schema +struct> +-- !query 7348 output +{1.0:1,2.0:2} + + +-- !query 7349 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 7349 schema +struct> +-- !query 7349 output +{1.0:1.0,2.0:2.0} + + +-- !query 7350 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 7350 schema +struct> +-- !query 7350 output +{1.0:1.0,2.0:2.0} + + +-- !query 7351 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 7351 schema +struct> +-- !query 7351 output +{1.0:1,2.0:2} + + +-- !query 7352 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 7352 schema +struct> +-- !query 7352 output +{1.0:"1",2.0:"2"} + + +-- !query 7353 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 7353 schema +struct<> +-- !query 7353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7354 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 7354 schema +struct<> +-- !query 7354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7355 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7355 schema +struct<> +-- !query 7355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7356 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7356 schema +struct<> +-- !query 7356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7357 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 7357 schema +struct> +-- !query 7357 output +{1.0:1,2.0:2} + + +-- !query 7358 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 7358 schema +struct> +-- !query 7358 output +{1.0:1,2.0:2} + + +-- !query 7359 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 7359 schema +struct> +-- !query 7359 output +{1.0:1,2.0:2} + + +-- !query 7360 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 7360 schema +struct> +-- !query 7360 output +{1.0:1,2.0:2} + + +-- !query 7361 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 7361 schema +struct> +-- !query 7361 output +{1.0:1.0,2.0:2.0} + + +-- !query 7362 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 7362 schema +struct> +-- !query 7362 output +{1.0:1.0,2.0:2.0} + + +-- !query 7363 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 7363 schema +struct> +-- !query 7363 output +{1.0:1,2.0:2} + + +-- !query 7364 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 7364 schema +struct> +-- !query 7364 output +{1.0:"1",2.0:"2"} + + +-- !query 7365 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 7365 schema +struct<> +-- !query 7365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7366 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 7366 schema +struct<> +-- !query 7366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7367 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7367 schema +struct<> +-- !query 7367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7368 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7368 schema +struct<> +-- !query 7368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7369 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 7369 schema +struct> +-- !query 7369 output +{1.0:1,2.0:2} + + +-- !query 7370 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 7370 schema +struct> +-- !query 7370 output +{1.0:1,2.0:2} + + +-- !query 7371 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 7371 schema +struct> +-- !query 7371 output +{1.0:1,2.0:2} + + +-- !query 7372 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 7372 schema +struct> +-- !query 7372 output +{1.0:1,2.0:2} + + +-- !query 7373 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 7373 schema +struct> +-- !query 7373 output +{1.0:1.0,2.0:2.0} + + +-- !query 7374 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 7374 schema +struct> +-- !query 7374 output +{1.0:1.0,2.0:2.0} + + +-- !query 7375 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 7375 schema +struct> +-- !query 7375 output +{1.0:1,2.0:2} + + +-- !query 7376 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 7376 schema +struct> +-- !query 7376 output +{1.0:"1",2.0:"2"} + + +-- !query 7377 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 7377 schema +struct<> +-- !query 7377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7378 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 7378 schema +struct<> +-- !query 7378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7379 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7379 schema +struct<> +-- !query 7379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7380 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7380 schema +struct<> +-- !query 7380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7381 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 7381 schema +struct> +-- !query 7381 output +{1.0:1,2.0:2} + + +-- !query 7382 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 7382 schema +struct> +-- !query 7382 output +{1.0:1,2.0:2} + + +-- !query 7383 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 7383 schema +struct> +-- !query 7383 output +{1.0:1,2.0:2} + + +-- !query 7384 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 7384 schema +struct> +-- !query 7384 output +{1.0:1,2.0:2} + + +-- !query 7385 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 7385 schema +struct> +-- !query 7385 output +{1.0:1.0,2.0:2.0} + + +-- !query 7386 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 7386 schema +struct> +-- !query 7386 output +{1.0:1.0,2.0:2.0} + + +-- !query 7387 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 7387 schema +struct> +-- !query 7387 output +{1.0:1,2.0:2} + + +-- !query 7388 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 7388 schema +struct> +-- !query 7388 output +{1.0:"1",2.0:"2"} + + +-- !query 7389 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 7389 schema +struct<> +-- !query 7389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7390 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 7390 schema +struct<> +-- !query 7390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7391 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7391 schema +struct<> +-- !query 7391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7392 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7392 schema +struct<> +-- !query 7392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7393 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 7393 schema +struct> +-- !query 7393 output +{1.0:1,2.0:2} + + +-- !query 7394 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 7394 schema +struct> +-- !query 7394 output +{1.0:1,2.0:2} + + +-- !query 7395 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 7395 schema +struct> +-- !query 7395 output +{1.0:1,2.0:2} + + +-- !query 7396 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 7396 schema +struct> +-- !query 7396 output +{1.0:1,2.0:2} + + +-- !query 7397 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 7397 schema +struct> +-- !query 7397 output +{1.0:1.0,2.0:2.0} + + +-- !query 7398 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 7398 schema +struct> +-- !query 7398 output +{1.0:1.0,2.0:2.0} + + +-- !query 7399 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 7399 schema +struct> +-- !query 7399 output +{1.0:1,2.0:2} + + +-- !query 7400 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 7400 schema +struct> +-- !query 7400 output +{1.0:"1",2.0:"2"} + + +-- !query 7401 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 7401 schema +struct<> +-- !query 7401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7402 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 7402 schema +struct<> +-- !query 7402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7403 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7403 schema +struct<> +-- !query 7403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7404 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7404 schema +struct<> +-- !query 7404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7405 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 7405 schema +struct> +-- !query 7405 output +{1.0:1,2.0:2} + + +-- !query 7406 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 7406 schema +struct> +-- !query 7406 output +{1.0:1,2.0:2} + + +-- !query 7407 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 7407 schema +struct> +-- !query 7407 output +{1.0:1,2.0:2} + + +-- !query 7408 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 7408 schema +struct> +-- !query 7408 output +{1.0:1,2.0:2} + + +-- !query 7409 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 7409 schema +struct> +-- !query 7409 output +{1.0:1.0,2.0:2.0} + + +-- !query 7410 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 7410 schema +struct> +-- !query 7410 output +{1.0:1.0,2.0:2.0} + + +-- !query 7411 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 7411 schema +struct> +-- !query 7411 output +{1.0:1,2.0:2} + + +-- !query 7412 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 7412 schema +struct> +-- !query 7412 output +{1.0:"1",2.0:"2"} + + +-- !query 7413 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 7413 schema +struct<> +-- !query 7413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7414 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 7414 schema +struct<> +-- !query 7414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7415 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7415 schema +struct<> +-- !query 7415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7416 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7416 schema +struct<> +-- !query 7416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7417 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 7417 schema +struct> +-- !query 7417 output +{1.0:1,2.0:2} + + +-- !query 7418 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 7418 schema +struct> +-- !query 7418 output +{1.0:1,2.0:2} + + +-- !query 7419 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 7419 schema +struct> +-- !query 7419 output +{1.0:1,2.0:2} + + +-- !query 7420 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 7420 schema +struct> +-- !query 7420 output +{1.0:1,2.0:2} + + +-- !query 7421 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 7421 schema +struct> +-- !query 7421 output +{1.0:1.0,2.0:2.0} + + +-- !query 7422 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 7422 schema +struct> +-- !query 7422 output +{1.0:1.0,2.0:2.0} + + +-- !query 7423 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 7423 schema +struct> +-- !query 7423 output +{1.0:1,2.0:2} + + +-- !query 7424 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 7424 schema +struct> +-- !query 7424 output +{1.0:"1",2.0:"2"} + + +-- !query 7425 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 7425 schema +struct<> +-- !query 7425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7426 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 7426 schema +struct<> +-- !query 7426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7427 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7427 schema +struct<> +-- !query 7427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7428 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7428 schema +struct<> +-- !query 7428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7429 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 7429 schema +struct> +-- !query 7429 output +{"1.0":1,"2":2} + + +-- !query 7430 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 7430 schema +struct> +-- !query 7430 output +{"1.0":1,"2":2} + + +-- !query 7431 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 7431 schema +struct> +-- !query 7431 output +{"1.0":1,"2":2} + + +-- !query 7432 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 7432 schema +struct> +-- !query 7432 output +{"1.0":1,"2":2} + + +-- !query 7433 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 7433 schema +struct> +-- !query 7433 output +{"1.0":1.0,"2":2.0} + + +-- !query 7434 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 7434 schema +struct> +-- !query 7434 output +{"1.0":1.0,"2":2.0} + + +-- !query 7435 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 7435 schema +struct> +-- !query 7435 output +{"1.0":1,"2":2} + + +-- !query 7436 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 7436 schema +struct> +-- !query 7436 output +{"1.0":"1","2":"2"} + + +-- !query 7437 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 7437 schema +struct<> +-- !query 7437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 7438 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 7438 schema +struct<> +-- !query 7438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 7439 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7439 schema +struct<> +-- !query 7439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 7440 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7440 schema +struct<> +-- !query 7440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 7441 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 7441 schema +struct<> +-- !query 7441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7442 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 7442 schema +struct<> +-- !query 7442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7443 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 7443 schema +struct<> +-- !query 7443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7444 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 7444 schema +struct<> +-- !query 7444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7445 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 7445 schema +struct<> +-- !query 7445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7446 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 7446 schema +struct<> +-- !query 7446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7447 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 7447 schema +struct<> +-- !query 7447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7448 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 7448 schema +struct<> +-- !query 7448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7449 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 7449 schema +struct<> +-- !query 7449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7450 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 7450 schema +struct<> +-- !query 7450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7451 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7451 schema +struct<> +-- !query 7451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7452 +SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7452 schema +struct<> +-- !query 7452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7453 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 7453 schema +struct<> +-- !query 7453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7454 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 7454 schema +struct<> +-- !query 7454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7455 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 7455 schema +struct<> +-- !query 7455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7456 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 7456 schema +struct<> +-- !query 7456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7457 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 7457 schema +struct<> +-- !query 7457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7458 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 7458 schema +struct<> +-- !query 7458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7459 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 7459 schema +struct<> +-- !query 7459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7460 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 7460 schema +struct<> +-- !query 7460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7461 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 7461 schema +struct<> +-- !query 7461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7462 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 7462 schema +struct<> +-- !query 7462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7463 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7463 schema +struct<> +-- !query 7463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7464 +SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7464 schema +struct<> +-- !query 7464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7465 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 7465 schema +struct<> +-- !query 7465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7466 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 7466 schema +struct<> +-- !query 7466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7467 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 7467 schema +struct<> +-- !query 7467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7468 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 7468 schema +struct<> +-- !query 7468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7469 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 7469 schema +struct<> +-- !query 7469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7470 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 7470 schema +struct<> +-- !query 7470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7471 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 7471 schema +struct<> +-- !query 7471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7472 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 7472 schema +struct<> +-- !query 7472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7473 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 7473 schema +struct<> +-- !query 7473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7474 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 7474 schema +struct<> +-- !query 7474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7475 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7475 schema +struct<> +-- !query 7475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7476 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7476 schema +struct<> +-- !query 7476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7477 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 7477 schema +struct<> +-- !query 7477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7478 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 7478 schema +struct<> +-- !query 7478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7479 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 7479 schema +struct<> +-- !query 7479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7480 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 7480 schema +struct<> +-- !query 7480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7481 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 7481 schema +struct<> +-- !query 7481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7482 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 7482 schema +struct<> +-- !query 7482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7483 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 7483 schema +struct<> +-- !query 7483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7484 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 7484 schema +struct<> +-- !query 7484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7485 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 7485 schema +struct<> +-- !query 7485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7486 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 7486 schema +struct<> +-- !query 7486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7487 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7487 schema +struct<> +-- !query 7487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7488 +SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7488 schema +struct<> +-- !query 7488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7489 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 7489 schema +struct> +-- !query 7489 output +{1.0:1,2.0:2} + + +-- !query 7490 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 7490 schema +struct> +-- !query 7490 output +{1.0:1,2.0:2} + + +-- !query 7491 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 7491 schema +struct> +-- !query 7491 output +{1.0:1,2.0:2} + + +-- !query 7492 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 7492 schema +struct> +-- !query 7492 output +{1.0:1,2.0:2} + + +-- !query 7493 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 7493 schema +struct> +-- !query 7493 output +{1.0:1.0,2.0:2.0} + + +-- !query 7494 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 7494 schema +struct> +-- !query 7494 output +{1.0:1.0,2.0:2.0} + + +-- !query 7495 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 7495 schema +struct> +-- !query 7495 output +{1.0:1,2.0:2} + + +-- !query 7496 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 7496 schema +struct> +-- !query 7496 output +{1.0:"1",2.0:"2"} + + +-- !query 7497 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 7497 schema +struct<> +-- !query 7497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7498 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 7498 schema +struct<> +-- !query 7498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7499 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7499 schema +struct<> +-- !query 7499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7500 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7500 schema +struct<> +-- !query 7500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7501 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 7501 schema +struct> +-- !query 7501 output +{1.0:1,2.0:2} + + +-- !query 7502 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 7502 schema +struct> +-- !query 7502 output +{1.0:1,2.0:2} + + +-- !query 7503 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 7503 schema +struct> +-- !query 7503 output +{1.0:1,2.0:2} + + +-- !query 7504 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 7504 schema +struct> +-- !query 7504 output +{1.0:1,2.0:2} + + +-- !query 7505 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 7505 schema +struct> +-- !query 7505 output +{1.0:1.0,2.0:2.0} + + +-- !query 7506 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 7506 schema +struct> +-- !query 7506 output +{1.0:1.0,2.0:2.0} + + +-- !query 7507 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 7507 schema +struct> +-- !query 7507 output +{1.0:1,2.0:2} + + +-- !query 7508 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 7508 schema +struct> +-- !query 7508 output +{1.0:"1",2.0:"2"} + + +-- !query 7509 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 7509 schema +struct<> +-- !query 7509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7510 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 7510 schema +struct<> +-- !query 7510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7511 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7511 schema +struct<> +-- !query 7511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7512 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7512 schema +struct<> +-- !query 7512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7513 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 7513 schema +struct> +-- !query 7513 output +{1.0:1,2.0:2} + + +-- !query 7514 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 7514 schema +struct> +-- !query 7514 output +{1.0:1,2.0:2} + + +-- !query 7515 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 7515 schema +struct> +-- !query 7515 output +{1.0:1,2.0:2} + + +-- !query 7516 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 7516 schema +struct> +-- !query 7516 output +{1.0:1,2.0:2} + + +-- !query 7517 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 7517 schema +struct> +-- !query 7517 output +{1.0:1.0,2.0:2.0} + + +-- !query 7518 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 7518 schema +struct> +-- !query 7518 output +{1.0:1.0,2.0:2.0} + + +-- !query 7519 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 7519 schema +struct> +-- !query 7519 output +{1.0:1,2.0:2} + + +-- !query 7520 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 7520 schema +struct> +-- !query 7520 output +{1.0:"1",2.0:"2"} + + +-- !query 7521 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 7521 schema +struct<> +-- !query 7521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7522 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 7522 schema +struct<> +-- !query 7522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7523 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7523 schema +struct<> +-- !query 7523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7524 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7524 schema +struct<> +-- !query 7524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7525 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 7525 schema +struct> +-- !query 7525 output +{1.0:1,2.0:2} + + +-- !query 7526 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 7526 schema +struct> +-- !query 7526 output +{1.0:1,2.0:2} + + +-- !query 7527 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 7527 schema +struct> +-- !query 7527 output +{1.0:1,2.0:2} + + +-- !query 7528 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 7528 schema +struct> +-- !query 7528 output +{1.0:1,2.0:2} + + +-- !query 7529 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 7529 schema +struct> +-- !query 7529 output +{1.0:1.0,2.0:2.0} + + +-- !query 7530 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 7530 schema +struct> +-- !query 7530 output +{1.0:1.0,2.0:2.0} + + +-- !query 7531 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 7531 schema +struct> +-- !query 7531 output +{1.0:1,2.0:2} + + +-- !query 7532 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 7532 schema +struct> +-- !query 7532 output +{1.0:"1",2.0:"2"} + + +-- !query 7533 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 7533 schema +struct<> +-- !query 7533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7534 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 7534 schema +struct<> +-- !query 7534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7535 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7535 schema +struct<> +-- !query 7535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7536 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7536 schema +struct<> +-- !query 7536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7537 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 7537 schema +struct> +-- !query 7537 output +{1.0:1,2.0:2} + + +-- !query 7538 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 7538 schema +struct> +-- !query 7538 output +{1.0:1,2.0:2} + + +-- !query 7539 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 7539 schema +struct> +-- !query 7539 output +{1.0:1,2.0:2} + + +-- !query 7540 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 7540 schema +struct> +-- !query 7540 output +{1.0:1,2.0:2} + + +-- !query 7541 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 7541 schema +struct> +-- !query 7541 output +{1.0:1.0,2.0:2.0} + + +-- !query 7542 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 7542 schema +struct> +-- !query 7542 output +{1.0:1.0,2.0:2.0} + + +-- !query 7543 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 7543 schema +struct> +-- !query 7543 output +{1.0:1,2.0:2} + + +-- !query 7544 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 7544 schema +struct> +-- !query 7544 output +{1.0:"1",2.0:"2"} + + +-- !query 7545 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 7545 schema +struct<> +-- !query 7545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7546 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 7546 schema +struct<> +-- !query 7546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7547 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7547 schema +struct<> +-- !query 7547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7548 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7548 schema +struct<> +-- !query 7548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7549 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 7549 schema +struct> +-- !query 7549 output +{1.0:1,2.0:2} + + +-- !query 7550 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 7550 schema +struct> +-- !query 7550 output +{1.0:1,2.0:2} + + +-- !query 7551 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 7551 schema +struct> +-- !query 7551 output +{1.0:1,2.0:2} + + +-- !query 7552 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 7552 schema +struct> +-- !query 7552 output +{1.0:1,2.0:2} + + +-- !query 7553 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 7553 schema +struct> +-- !query 7553 output +{1.0:1.0,2.0:2.0} + + +-- !query 7554 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 7554 schema +struct> +-- !query 7554 output +{1.0:1.0,2.0:2.0} + + +-- !query 7555 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 7555 schema +struct> +-- !query 7555 output +{1.0:1,2.0:2} + + +-- !query 7556 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 7556 schema +struct> +-- !query 7556 output +{1.0:"1",2.0:"2"} + + +-- !query 7557 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 7557 schema +struct<> +-- !query 7557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7558 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 7558 schema +struct<> +-- !query 7558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7559 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7559 schema +struct<> +-- !query 7559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7560 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7560 schema +struct<> +-- !query 7560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7561 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 7561 schema +struct> +-- !query 7561 output +{1.0:1,2.0:2} + + +-- !query 7562 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 7562 schema +struct> +-- !query 7562 output +{1.0:1,2.0:2} + + +-- !query 7563 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 7563 schema +struct> +-- !query 7563 output +{1.0:1,2.0:2} + + +-- !query 7564 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 7564 schema +struct> +-- !query 7564 output +{1.0:1,2.0:2} + + +-- !query 7565 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 7565 schema +struct> +-- !query 7565 output +{1.0:1.0,2.0:2.0} + + +-- !query 7566 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 7566 schema +struct> +-- !query 7566 output +{1.0:1.0,2.0:2.0} + + +-- !query 7567 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 7567 schema +struct> +-- !query 7567 output +{1.0:1,2.0:2} + + +-- !query 7568 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 7568 schema +struct> +-- !query 7568 output +{1.0:"1",2.0:"2"} + + +-- !query 7569 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 7569 schema +struct<> +-- !query 7569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7570 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 7570 schema +struct<> +-- !query 7570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7571 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7571 schema +struct<> +-- !query 7571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7572 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7572 schema +struct<> +-- !query 7572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7573 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 7573 schema +struct> +-- !query 7573 output +{"1.0":1,"2":2} + + +-- !query 7574 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 7574 schema +struct> +-- !query 7574 output +{"1.0":1,"2":2} + + +-- !query 7575 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 7575 schema +struct> +-- !query 7575 output +{"1.0":1,"2":2} + + +-- !query 7576 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 7576 schema +struct> +-- !query 7576 output +{"1.0":1,"2":2} + + +-- !query 7577 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 7577 schema +struct> +-- !query 7577 output +{"1.0":1.0,"2":2.0} + + +-- !query 7578 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 7578 schema +struct> +-- !query 7578 output +{"1.0":1.0,"2":2.0} + + +-- !query 7579 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 7579 schema +struct> +-- !query 7579 output +{"1.0":1,"2":2} + + +-- !query 7580 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 7580 schema +struct> +-- !query 7580 output +{"1.0":"1","2":"2"} + + +-- !query 7581 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 7581 schema +struct<> +-- !query 7581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 7582 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 7582 schema +struct<> +-- !query 7582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 7583 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7583 schema +struct<> +-- !query 7583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 7584 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7584 schema +struct<> +-- !query 7584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 7585 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 7585 schema +struct<> +-- !query 7585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7586 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 7586 schema +struct<> +-- !query 7586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7587 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 7587 schema +struct<> +-- !query 7587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7588 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 7588 schema +struct<> +-- !query 7588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7589 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 7589 schema +struct<> +-- !query 7589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7590 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 7590 schema +struct<> +-- !query 7590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7591 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 7591 schema +struct<> +-- !query 7591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7592 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 7592 schema +struct<> +-- !query 7592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7593 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 7593 schema +struct<> +-- !query 7593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7594 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 7594 schema +struct<> +-- !query 7594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7595 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7595 schema +struct<> +-- !query 7595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7596 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7596 schema +struct<> +-- !query 7596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7597 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 7597 schema +struct<> +-- !query 7597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7598 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 7598 schema +struct<> +-- !query 7598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7599 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 7599 schema +struct<> +-- !query 7599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7600 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 7600 schema +struct<> +-- !query 7600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7601 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 7601 schema +struct<> +-- !query 7601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7602 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 7602 schema +struct<> +-- !query 7602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7603 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 7603 schema +struct<> +-- !query 7603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7604 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 7604 schema +struct<> +-- !query 7604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7605 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 7605 schema +struct<> +-- !query 7605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7606 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 7606 schema +struct<> +-- !query 7606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7607 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7607 schema +struct<> +-- !query 7607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7608 +SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7608 schema +struct<> +-- !query 7608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7609 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 7609 schema +struct<> +-- !query 7609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7610 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 7610 schema +struct<> +-- !query 7610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7611 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 7611 schema +struct<> +-- !query 7611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7612 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 7612 schema +struct<> +-- !query 7612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7613 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 7613 schema +struct<> +-- !query 7613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7614 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 7614 schema +struct<> +-- !query 7614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7615 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 7615 schema +struct<> +-- !query 7615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7616 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 7616 schema +struct<> +-- !query 7616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7617 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 7617 schema +struct<> +-- !query 7617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7618 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 7618 schema +struct<> +-- !query 7618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7619 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7619 schema +struct<> +-- !query 7619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7620 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7620 schema +struct<> +-- !query 7620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7621 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 7621 schema +struct<> +-- !query 7621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7622 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 7622 schema +struct<> +-- !query 7622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7623 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 7623 schema +struct<> +-- !query 7623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7624 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 7624 schema +struct<> +-- !query 7624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7625 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 7625 schema +struct<> +-- !query 7625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7626 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 7626 schema +struct<> +-- !query 7626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7627 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 7627 schema +struct<> +-- !query 7627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7628 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 7628 schema +struct<> +-- !query 7628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7629 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 7629 schema +struct<> +-- !query 7629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7630 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 7630 schema +struct<> +-- !query 7630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7631 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7631 schema +struct<> +-- !query 7631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7632 +SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7632 schema +struct<> +-- !query 7632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7633 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 7633 schema +struct> +-- !query 7633 output +{1.0:1.0,2.0:2.0} + + +-- !query 7634 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 7634 schema +struct> +-- !query 7634 output +{1.0:1.0,2.0:2.0} + + +-- !query 7635 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 7635 schema +struct> +-- !query 7635 output +{1.0:1.0,2.0:2.0} + + +-- !query 7636 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 7636 schema +struct> +-- !query 7636 output +{1.0:1.0,2.0:2.0} + + +-- !query 7637 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 7637 schema +struct> +-- !query 7637 output +{1.0:1.0,2.0:2.0} + + +-- !query 7638 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 7638 schema +struct> +-- !query 7638 output +{1.0:1.0,2.0:2.0} + + +-- !query 7639 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 7639 schema +struct> +-- !query 7639 output +{1.0:1.0,2.0:2.0} + + +-- !query 7640 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 7640 schema +struct> +-- !query 7640 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7641 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 7641 schema +struct<> +-- !query 7641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7642 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 7642 schema +struct<> +-- !query 7642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7643 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7643 schema +struct<> +-- !query 7643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7644 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7644 schema +struct<> +-- !query 7644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7645 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 7645 schema +struct> +-- !query 7645 output +{1.0:1.0,2.0:2.0} + + +-- !query 7646 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 7646 schema +struct> +-- !query 7646 output +{1.0:1.0,2.0:2.0} + + +-- !query 7647 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 7647 schema +struct> +-- !query 7647 output +{1.0:1.0,2.0:2.0} + + +-- !query 7648 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 7648 schema +struct> +-- !query 7648 output +{1.0:1.0,2.0:2.0} + + +-- !query 7649 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 7649 schema +struct> +-- !query 7649 output +{1.0:1.0,2.0:2.0} + + +-- !query 7650 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 7650 schema +struct> +-- !query 7650 output +{1.0:1.0,2.0:2.0} + + +-- !query 7651 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 7651 schema +struct> +-- !query 7651 output +{1.0:1.0,2.0:2.0} + + +-- !query 7652 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 7652 schema +struct> +-- !query 7652 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7653 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 7653 schema +struct<> +-- !query 7653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7654 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 7654 schema +struct<> +-- !query 7654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7655 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7655 schema +struct<> +-- !query 7655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7656 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7656 schema +struct<> +-- !query 7656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7657 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 7657 schema +struct> +-- !query 7657 output +{1.0:1.0,2.0:2.0} + + +-- !query 7658 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 7658 schema +struct> +-- !query 7658 output +{1.0:1.0,2.0:2.0} + + +-- !query 7659 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 7659 schema +struct> +-- !query 7659 output +{1.0:1.0,2.0:2.0} + + +-- !query 7660 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 7660 schema +struct> +-- !query 7660 output +{1.0:1.0,2.0:2.0} + + +-- !query 7661 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 7661 schema +struct> +-- !query 7661 output +{1.0:1.0,2.0:2.0} + + +-- !query 7662 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 7662 schema +struct> +-- !query 7662 output +{1.0:1.0,2.0:2.0} + + +-- !query 7663 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 7663 schema +struct> +-- !query 7663 output +{1.0:1.0,2.0:2.0} + + +-- !query 7664 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 7664 schema +struct> +-- !query 7664 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7665 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 7665 schema +struct<> +-- !query 7665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7666 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 7666 schema +struct<> +-- !query 7666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7667 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7667 schema +struct<> +-- !query 7667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7668 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7668 schema +struct<> +-- !query 7668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7669 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 7669 schema +struct> +-- !query 7669 output +{1.0:1.0,2.0:2.0} + + +-- !query 7670 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 7670 schema +struct> +-- !query 7670 output +{1.0:1.0,2.0:2.0} + + +-- !query 7671 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 7671 schema +struct> +-- !query 7671 output +{1.0:1.0,2.0:2.0} + + +-- !query 7672 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 7672 schema +struct> +-- !query 7672 output +{1.0:1.0,2.0:2.0} + + +-- !query 7673 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 7673 schema +struct> +-- !query 7673 output +{1.0:1.0,2.0:2.0} + + +-- !query 7674 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 7674 schema +struct> +-- !query 7674 output +{1.0:1.0,2.0:2.0} + + +-- !query 7675 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 7675 schema +struct> +-- !query 7675 output +{1.0:1.0,2.0:2.0} + + +-- !query 7676 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 7676 schema +struct> +-- !query 7676 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7677 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 7677 schema +struct<> +-- !query 7677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7678 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 7678 schema +struct<> +-- !query 7678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7679 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7679 schema +struct<> +-- !query 7679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7680 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7680 schema +struct<> +-- !query 7680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7681 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 7681 schema +struct> +-- !query 7681 output +{1.0:1.0,2.0:2.0} + + +-- !query 7682 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 7682 schema +struct> +-- !query 7682 output +{1.0:1.0,2.0:2.0} + + +-- !query 7683 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 7683 schema +struct> +-- !query 7683 output +{1.0:1.0,2.0:2.0} + + +-- !query 7684 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 7684 schema +struct> +-- !query 7684 output +{1.0:1.0,2.0:2.0} + + +-- !query 7685 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 7685 schema +struct> +-- !query 7685 output +{1.0:1.0,2.0:2.0} + + +-- !query 7686 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 7686 schema +struct> +-- !query 7686 output +{1.0:1.0,2.0:2.0} + + +-- !query 7687 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 7687 schema +struct> +-- !query 7687 output +{1.0:1.0,2.0:2.0} + + +-- !query 7688 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 7688 schema +struct> +-- !query 7688 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7689 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 7689 schema +struct<> +-- !query 7689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7690 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 7690 schema +struct<> +-- !query 7690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7691 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7691 schema +struct<> +-- !query 7691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7692 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7692 schema +struct<> +-- !query 7692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7693 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 7693 schema +struct> +-- !query 7693 output +{1.0:1.0,2.0:2.0} + + +-- !query 7694 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 7694 schema +struct> +-- !query 7694 output +{1.0:1.0,2.0:2.0} + + +-- !query 7695 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 7695 schema +struct> +-- !query 7695 output +{1.0:1.0,2.0:2.0} + + +-- !query 7696 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 7696 schema +struct> +-- !query 7696 output +{1.0:1.0,2.0:2.0} + + +-- !query 7697 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 7697 schema +struct> +-- !query 7697 output +{1.0:1.0,2.0:2.0} + + +-- !query 7698 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 7698 schema +struct> +-- !query 7698 output +{1.0:1.0,2.0:2.0} + + +-- !query 7699 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 7699 schema +struct> +-- !query 7699 output +{1.0:1.0,2.0:2.0} + + +-- !query 7700 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 7700 schema +struct> +-- !query 7700 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7701 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 7701 schema +struct<> +-- !query 7701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7702 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 7702 schema +struct<> +-- !query 7702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7703 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7703 schema +struct<> +-- !query 7703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7704 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7704 schema +struct<> +-- !query 7704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7705 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 7705 schema +struct> +-- !query 7705 output +{1.0:1.0,2.0:2.0} + + +-- !query 7706 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 7706 schema +struct> +-- !query 7706 output +{1.0:1.0,2.0:2.0} + + +-- !query 7707 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 7707 schema +struct> +-- !query 7707 output +{1.0:1.0,2.0:2.0} + + +-- !query 7708 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 7708 schema +struct> +-- !query 7708 output +{1.0:1.0,2.0:2.0} + + +-- !query 7709 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 7709 schema +struct> +-- !query 7709 output +{1.0:1.0,2.0:2.0} + + +-- !query 7710 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 7710 schema +struct> +-- !query 7710 output +{1.0:1.0,2.0:2.0} + + +-- !query 7711 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 7711 schema +struct> +-- !query 7711 output +{1.0:1.0,2.0:2.0} + + +-- !query 7712 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 7712 schema +struct> +-- !query 7712 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7713 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 7713 schema +struct<> +-- !query 7713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7714 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 7714 schema +struct<> +-- !query 7714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7715 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7715 schema +struct<> +-- !query 7715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7716 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7716 schema +struct<> +-- !query 7716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7717 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 7717 schema +struct> +-- !query 7717 output +{"1.0":1.0,"2":2.0} + + +-- !query 7718 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 7718 schema +struct> +-- !query 7718 output +{"1.0":1.0,"2":2.0} + + +-- !query 7719 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 7719 schema +struct> +-- !query 7719 output +{"1.0":1.0,"2":2.0} + + +-- !query 7720 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 7720 schema +struct> +-- !query 7720 output +{"1.0":1.0,"2":2.0} + + +-- !query 7721 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 7721 schema +struct> +-- !query 7721 output +{"1.0":1.0,"2":2.0} + + +-- !query 7722 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 7722 schema +struct> +-- !query 7722 output +{"1.0":1.0,"2":2.0} + + +-- !query 7723 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 7723 schema +struct> +-- !query 7723 output +{"1.0":1.0,"2":2.0} + + +-- !query 7724 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 7724 schema +struct> +-- !query 7724 output +{"1.0":"1.0","2":"2"} + + +-- !query 7725 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 7725 schema +struct<> +-- !query 7725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7726 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 7726 schema +struct<> +-- !query 7726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7727 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7727 schema +struct<> +-- !query 7727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7728 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7728 schema +struct<> +-- !query 7728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7729 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 7729 schema +struct<> +-- !query 7729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7730 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 7730 schema +struct<> +-- !query 7730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7731 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 7731 schema +struct<> +-- !query 7731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7732 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 7732 schema +struct<> +-- !query 7732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7733 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 7733 schema +struct<> +-- !query 7733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7734 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 7734 schema +struct<> +-- !query 7734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7735 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 7735 schema +struct<> +-- !query 7735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7736 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 7736 schema +struct<> +-- !query 7736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7737 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 7737 schema +struct<> +-- !query 7737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7738 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 7738 schema +struct<> +-- !query 7738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7739 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7739 schema +struct<> +-- !query 7739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7740 +SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7740 schema +struct<> +-- !query 7740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7741 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 7741 schema +struct<> +-- !query 7741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7742 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 7742 schema +struct<> +-- !query 7742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7743 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 7743 schema +struct<> +-- !query 7743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7744 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 7744 schema +struct<> +-- !query 7744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7745 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 7745 schema +struct<> +-- !query 7745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7746 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 7746 schema +struct<> +-- !query 7746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7747 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 7747 schema +struct<> +-- !query 7747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7748 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 7748 schema +struct<> +-- !query 7748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7749 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 7749 schema +struct<> +-- !query 7749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7750 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 7750 schema +struct<> +-- !query 7750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7751 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7751 schema +struct<> +-- !query 7751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7752 +SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7752 schema +struct<> +-- !query 7752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7753 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 7753 schema +struct<> +-- !query 7753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7754 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 7754 schema +struct<> +-- !query 7754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7755 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 7755 schema +struct<> +-- !query 7755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7756 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 7756 schema +struct<> +-- !query 7756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7757 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 7757 schema +struct<> +-- !query 7757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7758 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 7758 schema +struct<> +-- !query 7758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7759 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 7759 schema +struct<> +-- !query 7759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7760 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 7760 schema +struct<> +-- !query 7760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7761 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 7761 schema +struct<> +-- !query 7761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7762 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 7762 schema +struct<> +-- !query 7762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7763 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7763 schema +struct<> +-- !query 7763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7764 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7764 schema +struct<> +-- !query 7764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7765 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 7765 schema +struct<> +-- !query 7765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7766 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 7766 schema +struct<> +-- !query 7766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7767 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 7767 schema +struct<> +-- !query 7767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7768 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 7768 schema +struct<> +-- !query 7768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7769 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 7769 schema +struct<> +-- !query 7769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7770 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 7770 schema +struct<> +-- !query 7770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7771 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 7771 schema +struct<> +-- !query 7771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7772 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 7772 schema +struct<> +-- !query 7772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7773 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 7773 schema +struct<> +-- !query 7773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7774 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 7774 schema +struct<> +-- !query 7774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7775 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7775 schema +struct<> +-- !query 7775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7776 +SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7776 schema +struct<> +-- !query 7776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7777 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 7777 schema +struct> +-- !query 7777 output +{1.0:1.0,2.0:2.0} + + +-- !query 7778 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 7778 schema +struct> +-- !query 7778 output +{1.0:1.0,2.0:2.0} + + +-- !query 7779 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 7779 schema +struct> +-- !query 7779 output +{1.0:1.0,2.0:2.0} + + +-- !query 7780 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 7780 schema +struct> +-- !query 7780 output +{1.0:1.0,2.0:2.0} + + +-- !query 7781 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 7781 schema +struct> +-- !query 7781 output +{1.0:1.0,2.0:2.0} + + +-- !query 7782 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 7782 schema +struct> +-- !query 7782 output +{1.0:1.0,2.0:2.0} + + +-- !query 7783 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 7783 schema +struct> +-- !query 7783 output +{1.0:1.0,2.0:2.0} + + +-- !query 7784 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 7784 schema +struct> +-- !query 7784 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7785 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 7785 schema +struct<> +-- !query 7785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7786 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 7786 schema +struct<> +-- !query 7786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7787 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7787 schema +struct<> +-- !query 7787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7788 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7788 schema +struct<> +-- !query 7788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7789 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 7789 schema +struct> +-- !query 7789 output +{1.0:1.0,2.0:2.0} + + +-- !query 7790 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 7790 schema +struct> +-- !query 7790 output +{1.0:1.0,2.0:2.0} + + +-- !query 7791 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 7791 schema +struct> +-- !query 7791 output +{1.0:1.0,2.0:2.0} + + +-- !query 7792 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 7792 schema +struct> +-- !query 7792 output +{1.0:1.0,2.0:2.0} + + +-- !query 7793 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 7793 schema +struct> +-- !query 7793 output +{1.0:1.0,2.0:2.0} + + +-- !query 7794 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 7794 schema +struct> +-- !query 7794 output +{1.0:1.0,2.0:2.0} + + +-- !query 7795 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 7795 schema +struct> +-- !query 7795 output +{1.0:1.0,2.0:2.0} + + +-- !query 7796 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 7796 schema +struct> +-- !query 7796 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7797 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 7797 schema +struct<> +-- !query 7797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7798 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 7798 schema +struct<> +-- !query 7798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7799 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7799 schema +struct<> +-- !query 7799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7800 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7800 schema +struct<> +-- !query 7800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7801 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 7801 schema +struct> +-- !query 7801 output +{1.0:1.0,2.0:2.0} + + +-- !query 7802 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 7802 schema +struct> +-- !query 7802 output +{1.0:1.0,2.0:2.0} + + +-- !query 7803 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 7803 schema +struct> +-- !query 7803 output +{1.0:1.0,2.0:2.0} + + +-- !query 7804 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 7804 schema +struct> +-- !query 7804 output +{1.0:1.0,2.0:2.0} + + +-- !query 7805 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 7805 schema +struct> +-- !query 7805 output +{1.0:1.0,2.0:2.0} + + +-- !query 7806 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 7806 schema +struct> +-- !query 7806 output +{1.0:1.0,2.0:2.0} + + +-- !query 7807 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 7807 schema +struct> +-- !query 7807 output +{1.0:1.0,2.0:2.0} + + +-- !query 7808 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 7808 schema +struct> +-- !query 7808 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7809 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 7809 schema +struct<> +-- !query 7809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7810 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 7810 schema +struct<> +-- !query 7810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7811 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7811 schema +struct<> +-- !query 7811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7812 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7812 schema +struct<> +-- !query 7812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7813 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 7813 schema +struct> +-- !query 7813 output +{1.0:1.0,2.0:2.0} + + +-- !query 7814 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 7814 schema +struct> +-- !query 7814 output +{1.0:1.0,2.0:2.0} + + +-- !query 7815 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 7815 schema +struct> +-- !query 7815 output +{1.0:1.0,2.0:2.0} + + +-- !query 7816 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 7816 schema +struct> +-- !query 7816 output +{1.0:1.0,2.0:2.0} + + +-- !query 7817 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 7817 schema +struct> +-- !query 7817 output +{1.0:1.0,2.0:2.0} + + +-- !query 7818 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 7818 schema +struct> +-- !query 7818 output +{1.0:1.0,2.0:2.0} + + +-- !query 7819 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 7819 schema +struct> +-- !query 7819 output +{1.0:1.0,2.0:2.0} + + +-- !query 7820 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 7820 schema +struct> +-- !query 7820 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7821 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 7821 schema +struct<> +-- !query 7821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7822 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 7822 schema +struct<> +-- !query 7822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7823 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7823 schema +struct<> +-- !query 7823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7824 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7824 schema +struct<> +-- !query 7824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7825 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 7825 schema +struct> +-- !query 7825 output +{1.0:1.0,2.0:2.0} + + +-- !query 7826 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 7826 schema +struct> +-- !query 7826 output +{1.0:1.0,2.0:2.0} + + +-- !query 7827 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 7827 schema +struct> +-- !query 7827 output +{1.0:1.0,2.0:2.0} + + +-- !query 7828 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 7828 schema +struct> +-- !query 7828 output +{1.0:1.0,2.0:2.0} + + +-- !query 7829 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 7829 schema +struct> +-- !query 7829 output +{1.0:1.0,2.0:2.0} + + +-- !query 7830 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 7830 schema +struct> +-- !query 7830 output +{1.0:1.0,2.0:2.0} + + +-- !query 7831 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 7831 schema +struct> +-- !query 7831 output +{1.0:1.0,2.0:2.0} + + +-- !query 7832 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 7832 schema +struct> +-- !query 7832 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7833 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 7833 schema +struct<> +-- !query 7833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7834 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 7834 schema +struct<> +-- !query 7834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7835 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7835 schema +struct<> +-- !query 7835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7836 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7836 schema +struct<> +-- !query 7836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7837 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 7837 schema +struct> +-- !query 7837 output +{1.0:1.0,2.0:2.0} + + +-- !query 7838 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 7838 schema +struct> +-- !query 7838 output +{1.0:1.0,2.0:2.0} + + +-- !query 7839 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 7839 schema +struct> +-- !query 7839 output +{1.0:1.0,2.0:2.0} + + +-- !query 7840 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 7840 schema +struct> +-- !query 7840 output +{1.0:1.0,2.0:2.0} + + +-- !query 7841 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 7841 schema +struct> +-- !query 7841 output +{1.0:1.0,2.0:2.0} + + +-- !query 7842 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 7842 schema +struct> +-- !query 7842 output +{1.0:1.0,2.0:2.0} + + +-- !query 7843 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 7843 schema +struct> +-- !query 7843 output +{1.0:1.0,2.0:2.0} + + +-- !query 7844 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 7844 schema +struct> +-- !query 7844 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7845 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 7845 schema +struct<> +-- !query 7845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7846 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 7846 schema +struct<> +-- !query 7846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7847 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7847 schema +struct<> +-- !query 7847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7848 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7848 schema +struct<> +-- !query 7848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7849 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 7849 schema +struct> +-- !query 7849 output +{1.0:1.0,2.0:2.0} + + +-- !query 7850 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 7850 schema +struct> +-- !query 7850 output +{1.0:1.0,2.0:2.0} + + +-- !query 7851 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 7851 schema +struct> +-- !query 7851 output +{1.0:1.0,2.0:2.0} + + +-- !query 7852 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 7852 schema +struct> +-- !query 7852 output +{1.0:1.0,2.0:2.0} + + +-- !query 7853 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 7853 schema +struct> +-- !query 7853 output +{1.0:1.0,2.0:2.0} + + +-- !query 7854 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 7854 schema +struct> +-- !query 7854 output +{1.0:1.0,2.0:2.0} + + +-- !query 7855 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 7855 schema +struct> +-- !query 7855 output +{1.0:1.0,2.0:2.0} + + +-- !query 7856 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 7856 schema +struct> +-- !query 7856 output +{1.0:"1.0",2.0:"2"} + + +-- !query 7857 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 7857 schema +struct<> +-- !query 7857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7858 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 7858 schema +struct<> +-- !query 7858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7859 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7859 schema +struct<> +-- !query 7859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7860 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7860 schema +struct<> +-- !query 7860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7861 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 7861 schema +struct> +-- !query 7861 output +{"1.0":1.0,"2":2.0} + + +-- !query 7862 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 7862 schema +struct> +-- !query 7862 output +{"1.0":1.0,"2":2.0} + + +-- !query 7863 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 7863 schema +struct> +-- !query 7863 output +{"1.0":1.0,"2":2.0} + + +-- !query 7864 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 7864 schema +struct> +-- !query 7864 output +{"1.0":1.0,"2":2.0} + + +-- !query 7865 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 7865 schema +struct> +-- !query 7865 output +{"1.0":1.0,"2":2.0} + + +-- !query 7866 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 7866 schema +struct> +-- !query 7866 output +{"1.0":1.0,"2":2.0} + + +-- !query 7867 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 7867 schema +struct> +-- !query 7867 output +{"1.0":1.0,"2":2.0} + + +-- !query 7868 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 7868 schema +struct> +-- !query 7868 output +{"1.0":"1.0","2":"2"} + + +-- !query 7869 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 7869 schema +struct<> +-- !query 7869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 7870 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 7870 schema +struct<> +-- !query 7870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 7871 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7871 schema +struct<> +-- !query 7871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 7872 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7872 schema +struct<> +-- !query 7872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 7873 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 7873 schema +struct<> +-- !query 7873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7874 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 7874 schema +struct<> +-- !query 7874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7875 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 7875 schema +struct<> +-- !query 7875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7876 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 7876 schema +struct<> +-- !query 7876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7877 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 7877 schema +struct<> +-- !query 7877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7878 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 7878 schema +struct<> +-- !query 7878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7879 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 7879 schema +struct<> +-- !query 7879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7880 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 7880 schema +struct<> +-- !query 7880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7881 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 7881 schema +struct<> +-- !query 7881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7882 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 7882 schema +struct<> +-- !query 7882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7883 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7883 schema +struct<> +-- !query 7883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7884 +SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7884 schema +struct<> +-- !query 7884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 7885 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 7885 schema +struct<> +-- !query 7885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7886 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 7886 schema +struct<> +-- !query 7886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7887 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 7887 schema +struct<> +-- !query 7887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7888 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 7888 schema +struct<> +-- !query 7888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7889 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 7889 schema +struct<> +-- !query 7889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7890 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 7890 schema +struct<> +-- !query 7890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7891 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 7891 schema +struct<> +-- !query 7891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7892 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 7892 schema +struct<> +-- !query 7892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7893 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 7893 schema +struct<> +-- !query 7893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7894 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 7894 schema +struct<> +-- !query 7894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7895 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7895 schema +struct<> +-- !query 7895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7896 +SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7896 schema +struct<> +-- !query 7896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 7897 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 7897 schema +struct<> +-- !query 7897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7898 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 7898 schema +struct<> +-- !query 7898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7899 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 7899 schema +struct<> +-- !query 7899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7900 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 7900 schema +struct<> +-- !query 7900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7901 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 7901 schema +struct<> +-- !query 7901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7902 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 7902 schema +struct<> +-- !query 7902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7903 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 7903 schema +struct<> +-- !query 7903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7904 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 7904 schema +struct<> +-- !query 7904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7905 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 7905 schema +struct<> +-- !query 7905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7906 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 7906 schema +struct<> +-- !query 7906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7907 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7907 schema +struct<> +-- !query 7907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7908 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7908 schema +struct<> +-- !query 7908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 7909 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 7909 schema +struct<> +-- !query 7909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7910 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 7910 schema +struct<> +-- !query 7910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7911 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 7911 schema +struct<> +-- !query 7911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7912 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 7912 schema +struct<> +-- !query 7912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7913 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 7913 schema +struct<> +-- !query 7913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7914 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 7914 schema +struct<> +-- !query 7914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7915 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 7915 schema +struct<> +-- !query 7915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7916 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 7916 schema +struct<> +-- !query 7916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7917 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 7917 schema +struct<> +-- !query 7917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7918 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 7918 schema +struct<> +-- !query 7918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7919 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7919 schema +struct<> +-- !query 7919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7920 +SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7920 schema +struct<> +-- !query 7920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 7921 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 7921 schema +struct> +-- !query 7921 output +{1.0:1,2.0:2} + + +-- !query 7922 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 7922 schema +struct> +-- !query 7922 output +{1.0:1,2.0:2} + + +-- !query 7923 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 7923 schema +struct> +-- !query 7923 output +{1.0:1,2.0:2} + + +-- !query 7924 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 7924 schema +struct> +-- !query 7924 output +{1.0:1,2.0:2} + + +-- !query 7925 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 7925 schema +struct> +-- !query 7925 output +{1.0:1.0,2.0:2.0} + + +-- !query 7926 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 7926 schema +struct> +-- !query 7926 output +{1.0:1.0,2.0:2.0} + + +-- !query 7927 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 7927 schema +struct> +-- !query 7927 output +{1.0:1,2.0:2} + + +-- !query 7928 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 7928 schema +struct> +-- !query 7928 output +{1.0:"1",2.0:"2"} + + +-- !query 7929 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 7929 schema +struct<> +-- !query 7929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 7930 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 7930 schema +struct<> +-- !query 7930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 7931 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7931 schema +struct<> +-- !query 7931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 7932 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7932 schema +struct<> +-- !query 7932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 7933 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 7933 schema +struct> +-- !query 7933 output +{1.0:1,2.0:2} + + +-- !query 7934 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 7934 schema +struct> +-- !query 7934 output +{1.0:1,2.0:2} + + +-- !query 7935 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 7935 schema +struct> +-- !query 7935 output +{1.0:1,2.0:2} + + +-- !query 7936 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 7936 schema +struct> +-- !query 7936 output +{1.0:1,2.0:2} + + +-- !query 7937 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 7937 schema +struct> +-- !query 7937 output +{1.0:1.0,2.0:2.0} + + +-- !query 7938 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 7938 schema +struct> +-- !query 7938 output +{1.0:1.0,2.0:2.0} + + +-- !query 7939 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 7939 schema +struct> +-- !query 7939 output +{1.0:1,2.0:2} + + +-- !query 7940 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 7940 schema +struct> +-- !query 7940 output +{1.0:"1",2.0:"2"} + + +-- !query 7941 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 7941 schema +struct<> +-- !query 7941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 7942 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 7942 schema +struct<> +-- !query 7942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 7943 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7943 schema +struct<> +-- !query 7943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 7944 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7944 schema +struct<> +-- !query 7944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 7945 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 7945 schema +struct> +-- !query 7945 output +{1.0:1,2.0:2} + + +-- !query 7946 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 7946 schema +struct> +-- !query 7946 output +{1.0:1,2.0:2} + + +-- !query 7947 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 7947 schema +struct> +-- !query 7947 output +{1.0:1,2.0:2} + + +-- !query 7948 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 7948 schema +struct> +-- !query 7948 output +{1.0:1,2.0:2} + + +-- !query 7949 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 7949 schema +struct> +-- !query 7949 output +{1.0:1.0,2.0:2.0} + + +-- !query 7950 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 7950 schema +struct> +-- !query 7950 output +{1.0:1.0,2.0:2.0} + + +-- !query 7951 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 7951 schema +struct> +-- !query 7951 output +{1.0:1,2.0:2} + + +-- !query 7952 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 7952 schema +struct> +-- !query 7952 output +{1.0:"1",2.0:"2"} + + +-- !query 7953 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 7953 schema +struct<> +-- !query 7953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 7954 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 7954 schema +struct<> +-- !query 7954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 7955 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7955 schema +struct<> +-- !query 7955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 7956 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7956 schema +struct<> +-- !query 7956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 7957 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 7957 schema +struct> +-- !query 7957 output +{1.0:1,2.0:2} + + +-- !query 7958 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 7958 schema +struct> +-- !query 7958 output +{1.0:1,2.0:2} + + +-- !query 7959 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 7959 schema +struct> +-- !query 7959 output +{1.0:1,2.0:2} + + +-- !query 7960 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 7960 schema +struct> +-- !query 7960 output +{1.0:1,2.0:2} + + +-- !query 7961 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 7961 schema +struct> +-- !query 7961 output +{1.0:1.0,2.0:2.0} + + +-- !query 7962 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 7962 schema +struct> +-- !query 7962 output +{1.0:1.0,2.0:2.0} + + +-- !query 7963 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 7963 schema +struct> +-- !query 7963 output +{1.0:1,2.0:2} + + +-- !query 7964 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 7964 schema +struct> +-- !query 7964 output +{1.0:"1",2.0:"2"} + + +-- !query 7965 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 7965 schema +struct<> +-- !query 7965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 7966 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 7966 schema +struct<> +-- !query 7966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 7967 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7967 schema +struct<> +-- !query 7967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 7968 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7968 schema +struct<> +-- !query 7968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 7969 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 7969 schema +struct> +-- !query 7969 output +{1.0:1,2.0:2} + + +-- !query 7970 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 7970 schema +struct> +-- !query 7970 output +{1.0:1,2.0:2} + + +-- !query 7971 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 7971 schema +struct> +-- !query 7971 output +{1.0:1,2.0:2} + + +-- !query 7972 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 7972 schema +struct> +-- !query 7972 output +{1.0:1,2.0:2} + + +-- !query 7973 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 7973 schema +struct> +-- !query 7973 output +{1.0:1.0,2.0:2.0} + + +-- !query 7974 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 7974 schema +struct> +-- !query 7974 output +{1.0:1.0,2.0:2.0} + + +-- !query 7975 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 7975 schema +struct> +-- !query 7975 output +{1.0:1,2.0:2} + + +-- !query 7976 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 7976 schema +struct> +-- !query 7976 output +{1.0:"1",2.0:"2"} + + +-- !query 7977 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 7977 schema +struct<> +-- !query 7977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 7978 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 7978 schema +struct<> +-- !query 7978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 7979 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7979 schema +struct<> +-- !query 7979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 7980 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7980 schema +struct<> +-- !query 7980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 7981 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 7981 schema +struct> +-- !query 7981 output +{1.0:1,2.0:2} + + +-- !query 7982 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 7982 schema +struct> +-- !query 7982 output +{1.0:1,2.0:2} + + +-- !query 7983 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 7983 schema +struct> +-- !query 7983 output +{1.0:1,2.0:2} + + +-- !query 7984 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 7984 schema +struct> +-- !query 7984 output +{1.0:1,2.0:2} + + +-- !query 7985 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 7985 schema +struct> +-- !query 7985 output +{1.0:1.0,2.0:2.0} + + +-- !query 7986 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 7986 schema +struct> +-- !query 7986 output +{1.0:1.0,2.0:2.0} + + +-- !query 7987 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 7987 schema +struct> +-- !query 7987 output +{1.0:1,2.0:2} + + +-- !query 7988 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 7988 schema +struct> +-- !query 7988 output +{1.0:"1",2.0:"2"} + + +-- !query 7989 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 7989 schema +struct<> +-- !query 7989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 7990 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 7990 schema +struct<> +-- !query 7990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 7991 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 7991 schema +struct<> +-- !query 7991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 7992 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 7992 schema +struct<> +-- !query 7992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 7993 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 7993 schema +struct> +-- !query 7993 output +{1.0:1,2.0:2} + + +-- !query 7994 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 7994 schema +struct> +-- !query 7994 output +{1.0:1,2.0:2} + + +-- !query 7995 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 7995 schema +struct> +-- !query 7995 output +{1.0:1,2.0:2} + + +-- !query 7996 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 7996 schema +struct> +-- !query 7996 output +{1.0:1,2.0:2} + + +-- !query 7997 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 7997 schema +struct> +-- !query 7997 output +{1.0:1.0,2.0:2.0} + + +-- !query 7998 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 7998 schema +struct> +-- !query 7998 output +{1.0:1.0,2.0:2.0} + + +-- !query 7999 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 7999 schema +struct> +-- !query 7999 output +{1.0:1,2.0:2} + + +-- !query 8000 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 8000 schema +struct> +-- !query 8000 output +{1.0:"1",2.0:"2"} + + +-- !query 8001 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 8001 schema +struct<> +-- !query 8001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 8002 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 8002 schema +struct<> +-- !query 8002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 8003 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8003 schema +struct<> +-- !query 8003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 8004 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8004 schema +struct<> +-- !query 8004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 8005 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 8005 schema +struct> +-- !query 8005 output +{"1.0":1,"2":2} + + +-- !query 8006 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 8006 schema +struct> +-- !query 8006 output +{"1.0":1,"2":2} + + +-- !query 8007 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 8007 schema +struct> +-- !query 8007 output +{"1.0":1,"2":2} + + +-- !query 8008 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 8008 schema +struct> +-- !query 8008 output +{"1.0":1,"2":2} + + +-- !query 8009 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 8009 schema +struct> +-- !query 8009 output +{"1.0":1.0,"2":2.0} + + +-- !query 8010 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 8010 schema +struct> +-- !query 8010 output +{"1.0":1.0,"2":2.0} + + +-- !query 8011 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 8011 schema +struct> +-- !query 8011 output +{"1.0":1,"2":2} + + +-- !query 8012 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 8012 schema +struct> +-- !query 8012 output +{"1.0":"1","2":"2"} + + +-- !query 8013 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 8013 schema +struct<> +-- !query 8013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 8014 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 8014 schema +struct<> +-- !query 8014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 8015 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8015 schema +struct<> +-- !query 8015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 8016 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8016 schema +struct<> +-- !query 8016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 8017 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 8017 schema +struct<> +-- !query 8017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8018 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 8018 schema +struct<> +-- !query 8018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8019 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 8019 schema +struct<> +-- !query 8019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8020 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 8020 schema +struct<> +-- !query 8020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8021 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 8021 schema +struct<> +-- !query 8021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8022 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 8022 schema +struct<> +-- !query 8022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8023 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 8023 schema +struct<> +-- !query 8023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8024 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 8024 schema +struct<> +-- !query 8024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8025 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 8025 schema +struct<> +-- !query 8025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8026 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 8026 schema +struct<> +-- !query 8026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8027 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8027 schema +struct<> +-- !query 8027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8028 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8028 schema +struct<> +-- !query 8028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8029 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 8029 schema +struct<> +-- !query 8029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8030 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 8030 schema +struct<> +-- !query 8030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8031 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 8031 schema +struct<> +-- !query 8031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8032 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 8032 schema +struct<> +-- !query 8032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8033 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 8033 schema +struct<> +-- !query 8033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8034 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 8034 schema +struct<> +-- !query 8034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8035 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 8035 schema +struct<> +-- !query 8035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8036 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 8036 schema +struct<> +-- !query 8036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8037 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 8037 schema +struct<> +-- !query 8037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8038 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 8038 schema +struct<> +-- !query 8038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8039 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8039 schema +struct<> +-- !query 8039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8040 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8040 schema +struct<> +-- !query 8040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8041 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 8041 schema +struct<> +-- !query 8041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8042 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 8042 schema +struct<> +-- !query 8042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8043 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 8043 schema +struct<> +-- !query 8043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8044 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 8044 schema +struct<> +-- !query 8044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8045 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 8045 schema +struct<> +-- !query 8045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8046 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 8046 schema +struct<> +-- !query 8046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8047 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 8047 schema +struct<> +-- !query 8047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8048 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 8048 schema +struct<> +-- !query 8048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8049 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 8049 schema +struct<> +-- !query 8049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8050 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 8050 schema +struct<> +-- !query 8050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8051 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8051 schema +struct<> +-- !query 8051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8052 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8052 schema +struct<> +-- !query 8052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8053 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 8053 schema +struct<> +-- !query 8053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8054 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 8054 schema +struct<> +-- !query 8054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8055 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 8055 schema +struct<> +-- !query 8055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8056 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 8056 schema +struct<> +-- !query 8056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8057 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 8057 schema +struct<> +-- !query 8057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8058 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 8058 schema +struct<> +-- !query 8058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8059 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 8059 schema +struct<> +-- !query 8059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8060 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 8060 schema +struct<> +-- !query 8060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8061 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 8061 schema +struct<> +-- !query 8061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8062 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 8062 schema +struct<> +-- !query 8062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8063 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8063 schema +struct<> +-- !query 8063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8064 +SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8064 schema +struct<> +-- !query 8064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8065 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 8065 schema +struct> +-- !query 8065 output +{1.0:"1",2.0:"2"} + + +-- !query 8066 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 8066 schema +struct> +-- !query 8066 output +{1.0:"1",2.0:"2"} + + +-- !query 8067 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 8067 schema +struct> +-- !query 8067 output +{1.0:"1",2.0:"2"} + + +-- !query 8068 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 8068 schema +struct> +-- !query 8068 output +{1.0:"1",2.0:"2"} + + +-- !query 8069 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 8069 schema +struct> +-- !query 8069 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8070 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 8070 schema +struct> +-- !query 8070 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8071 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 8071 schema +struct> +-- !query 8071 output +{1.0:"1",2.0:"2"} + + +-- !query 8072 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 8072 schema +struct> +-- !query 8072 output +{1.0:"1",2.0:"2"} + + +-- !query 8073 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 8073 schema +struct<> +-- !query 8073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8074 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 8074 schema +struct<> +-- !query 8074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8075 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8075 schema +struct> +-- !query 8075 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 8076 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8076 schema +struct> +-- !query 8076 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 8077 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 8077 schema +struct> +-- !query 8077 output +{1.0:"1",2.0:"2"} + + +-- !query 8078 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 8078 schema +struct> +-- !query 8078 output +{1.0:"1",2.0:"2"} + + +-- !query 8079 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 8079 schema +struct> +-- !query 8079 output +{1.0:"1",2.0:"2"} + + +-- !query 8080 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 8080 schema +struct> +-- !query 8080 output +{1.0:"1",2.0:"2"} + + +-- !query 8081 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 8081 schema +struct> +-- !query 8081 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8082 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 8082 schema +struct> +-- !query 8082 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8083 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 8083 schema +struct> +-- !query 8083 output +{1.0:"1",2.0:"2"} + + +-- !query 8084 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 8084 schema +struct> +-- !query 8084 output +{1.0:"1",2.0:"2"} + + +-- !query 8085 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 8085 schema +struct<> +-- !query 8085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8086 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 8086 schema +struct<> +-- !query 8086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8087 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8087 schema +struct> +-- !query 8087 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 8088 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8088 schema +struct> +-- !query 8088 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 8089 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 8089 schema +struct> +-- !query 8089 output +{1.0:"1",2.0:"2"} + + +-- !query 8090 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 8090 schema +struct> +-- !query 8090 output +{1.0:"1",2.0:"2"} + + +-- !query 8091 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 8091 schema +struct> +-- !query 8091 output +{1.0:"1",2.0:"2"} + + +-- !query 8092 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 8092 schema +struct> +-- !query 8092 output +{1.0:"1",2.0:"2"} + + +-- !query 8093 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 8093 schema +struct> +-- !query 8093 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8094 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 8094 schema +struct> +-- !query 8094 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8095 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 8095 schema +struct> +-- !query 8095 output +{1.0:"1",2.0:"2"} + + +-- !query 8096 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 8096 schema +struct> +-- !query 8096 output +{1.0:"1",2.0:"2"} + + +-- !query 8097 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 8097 schema +struct<> +-- !query 8097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8098 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 8098 schema +struct<> +-- !query 8098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8099 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8099 schema +struct> +-- !query 8099 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 8100 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8100 schema +struct> +-- !query 8100 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 8101 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 8101 schema +struct> +-- !query 8101 output +{1.0:"1",2.0:"2"} + + +-- !query 8102 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 8102 schema +struct> +-- !query 8102 output +{1.0:"1",2.0:"2"} + + +-- !query 8103 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 8103 schema +struct> +-- !query 8103 output +{1.0:"1",2.0:"2"} + + +-- !query 8104 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 8104 schema +struct> +-- !query 8104 output +{1.0:"1",2.0:"2"} + + +-- !query 8105 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 8105 schema +struct> +-- !query 8105 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8106 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 8106 schema +struct> +-- !query 8106 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8107 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 8107 schema +struct> +-- !query 8107 output +{1.0:"1",2.0:"2"} + + +-- !query 8108 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 8108 schema +struct> +-- !query 8108 output +{1.0:"1",2.0:"2"} + + +-- !query 8109 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 8109 schema +struct<> +-- !query 8109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8110 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 8110 schema +struct<> +-- !query 8110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8111 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8111 schema +struct> +-- !query 8111 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 8112 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8112 schema +struct> +-- !query 8112 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 8113 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 8113 schema +struct> +-- !query 8113 output +{1.0:"1",2.0:"2"} + + +-- !query 8114 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 8114 schema +struct> +-- !query 8114 output +{1.0:"1",2.0:"2"} + + +-- !query 8115 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 8115 schema +struct> +-- !query 8115 output +{1.0:"1",2.0:"2"} + + +-- !query 8116 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 8116 schema +struct> +-- !query 8116 output +{1.0:"1",2.0:"2"} + + +-- !query 8117 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 8117 schema +struct> +-- !query 8117 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8118 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 8118 schema +struct> +-- !query 8118 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8119 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 8119 schema +struct> +-- !query 8119 output +{1.0:"1",2.0:"2"} + + +-- !query 8120 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 8120 schema +struct> +-- !query 8120 output +{1.0:"1",2.0:"2"} + + +-- !query 8121 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 8121 schema +struct<> +-- !query 8121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8122 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 8122 schema +struct<> +-- !query 8122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8123 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8123 schema +struct> +-- !query 8123 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 8124 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8124 schema +struct> +-- !query 8124 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 8125 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 8125 schema +struct> +-- !query 8125 output +{1.0:"1",2.0:"2"} + + +-- !query 8126 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 8126 schema +struct> +-- !query 8126 output +{1.0:"1",2.0:"2"} + + +-- !query 8127 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 8127 schema +struct> +-- !query 8127 output +{1.0:"1",2.0:"2"} + + +-- !query 8128 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 8128 schema +struct> +-- !query 8128 output +{1.0:"1",2.0:"2"} + + +-- !query 8129 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 8129 schema +struct> +-- !query 8129 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8130 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 8130 schema +struct> +-- !query 8130 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8131 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 8131 schema +struct> +-- !query 8131 output +{1.0:"1",2.0:"2"} + + +-- !query 8132 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 8132 schema +struct> +-- !query 8132 output +{1.0:"1",2.0:"2"} + + +-- !query 8133 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 8133 schema +struct<> +-- !query 8133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8134 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 8134 schema +struct<> +-- !query 8134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8135 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8135 schema +struct> +-- !query 8135 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 8136 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8136 schema +struct> +-- !query 8136 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 8137 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 8137 schema +struct> +-- !query 8137 output +{1.0:"1",2.0:"2"} + + +-- !query 8138 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 8138 schema +struct> +-- !query 8138 output +{1.0:"1",2.0:"2"} + + +-- !query 8139 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 8139 schema +struct> +-- !query 8139 output +{1.0:"1",2.0:"2"} + + +-- !query 8140 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 8140 schema +struct> +-- !query 8140 output +{1.0:"1",2.0:"2"} + + +-- !query 8141 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 8141 schema +struct> +-- !query 8141 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8142 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 8142 schema +struct> +-- !query 8142 output +{1.0:"1",2.0:"2.0"} + + +-- !query 8143 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 8143 schema +struct> +-- !query 8143 output +{1.0:"1",2.0:"2"} + + +-- !query 8144 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 8144 schema +struct> +-- !query 8144 output +{1.0:"1",2.0:"2"} + + +-- !query 8145 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 8145 schema +struct<> +-- !query 8145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8146 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 8146 schema +struct<> +-- !query 8146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8147 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8147 schema +struct> +-- !query 8147 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 8148 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8148 schema +struct> +-- !query 8148 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 8149 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 8149 schema +struct> +-- !query 8149 output +{"1.0":"1","2":"2"} + + +-- !query 8150 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 8150 schema +struct> +-- !query 8150 output +{"1.0":"1","2":"2"} + + +-- !query 8151 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 8151 schema +struct> +-- !query 8151 output +{"1.0":"1","2":"2"} + + +-- !query 8152 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 8152 schema +struct> +-- !query 8152 output +{"1.0":"1","2":"2"} + + +-- !query 8153 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 8153 schema +struct> +-- !query 8153 output +{"1.0":"1","2":"2.0"} + + +-- !query 8154 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 8154 schema +struct> +-- !query 8154 output +{"1.0":"1","2":"2.0"} + + +-- !query 8155 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 8155 schema +struct> +-- !query 8155 output +{"1.0":"1","2":"2"} + + +-- !query 8156 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 8156 schema +struct> +-- !query 8156 output +{"1.0":"1","2":"2"} + + +-- !query 8157 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 8157 schema +struct<> +-- !query 8157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 8158 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 8158 schema +struct<> +-- !query 8158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 8159 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8159 schema +struct> +-- !query 8159 output +{"1.0":"1","2":"2017-12-12 09:30:00"} + + +-- !query 8160 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8160 schema +struct> +-- !query 8160 output +{"1.0":"1","2":"2017-12-12"} + + +-- !query 8161 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 8161 schema +struct<> +-- !query 8161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8162 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 8162 schema +struct<> +-- !query 8162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8163 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 8163 schema +struct<> +-- !query 8163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8164 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 8164 schema +struct<> +-- !query 8164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8165 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 8165 schema +struct<> +-- !query 8165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8166 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 8166 schema +struct<> +-- !query 8166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8167 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 8167 schema +struct<> +-- !query 8167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8168 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 8168 schema +struct<> +-- !query 8168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8169 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 8169 schema +struct<> +-- !query 8169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8170 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 8170 schema +struct<> +-- !query 8170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8171 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8171 schema +struct<> +-- !query 8171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8172 +SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8172 schema +struct<> +-- !query 8172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8173 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 8173 schema +struct<> +-- !query 8173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8174 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 8174 schema +struct<> +-- !query 8174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8175 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 8175 schema +struct<> +-- !query 8175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8176 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 8176 schema +struct<> +-- !query 8176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8177 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 8177 schema +struct<> +-- !query 8177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8178 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 8178 schema +struct<> +-- !query 8178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8179 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 8179 schema +struct<> +-- !query 8179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8180 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 8180 schema +struct<> +-- !query 8180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8181 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 8181 schema +struct<> +-- !query 8181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8182 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 8182 schema +struct<> +-- !query 8182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8183 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8183 schema +struct<> +-- !query 8183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8184 +SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8184 schema +struct<> +-- !query 8184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8185 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 8185 schema +struct<> +-- !query 8185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8186 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 8186 schema +struct<> +-- !query 8186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8187 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 8187 schema +struct<> +-- !query 8187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8188 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 8188 schema +struct<> +-- !query 8188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8189 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 8189 schema +struct<> +-- !query 8189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8190 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 8190 schema +struct<> +-- !query 8190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8191 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 8191 schema +struct<> +-- !query 8191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8192 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 8192 schema +struct<> +-- !query 8192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8193 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 8193 schema +struct<> +-- !query 8193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8194 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 8194 schema +struct<> +-- !query 8194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8195 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8195 schema +struct<> +-- !query 8195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8196 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8196 schema +struct<> +-- !query 8196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8197 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 8197 schema +struct<> +-- !query 8197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8198 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 8198 schema +struct<> +-- !query 8198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8199 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 8199 schema +struct<> +-- !query 8199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8200 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 8200 schema +struct<> +-- !query 8200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8201 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 8201 schema +struct<> +-- !query 8201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8202 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 8202 schema +struct<> +-- !query 8202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8203 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 8203 schema +struct<> +-- !query 8203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8204 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 8204 schema +struct<> +-- !query 8204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8205 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 8205 schema +struct<> +-- !query 8205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8206 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 8206 schema +struct<> +-- !query 8206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8207 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8207 schema +struct<> +-- !query 8207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8208 +SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8208 schema +struct<> +-- !query 8208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8209 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 8209 schema +struct<> +-- !query 8209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8210 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 8210 schema +struct<> +-- !query 8210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8211 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 8211 schema +struct<> +-- !query 8211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8212 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 8212 schema +struct<> +-- !query 8212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8213 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 8213 schema +struct<> +-- !query 8213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8214 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 8214 schema +struct<> +-- !query 8214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8215 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 8215 schema +struct<> +-- !query 8215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8216 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 8216 schema +struct<> +-- !query 8216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8217 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 8217 schema +struct> +-- !query 8217 output +{1.0:[B@5c0c65b,2.0:[B@77091435} + + +-- !query 8218 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 8218 schema +struct<> +-- !query 8218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8219 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8219 schema +struct<> +-- !query 8219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8220 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8220 schema +struct<> +-- !query 8220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8221 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 8221 schema +struct<> +-- !query 8221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8222 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 8222 schema +struct<> +-- !query 8222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8223 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 8223 schema +struct<> +-- !query 8223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8224 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 8224 schema +struct<> +-- !query 8224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8225 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 8225 schema +struct<> +-- !query 8225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8226 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 8226 schema +struct<> +-- !query 8226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8227 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 8227 schema +struct<> +-- !query 8227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8228 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 8228 schema +struct<> +-- !query 8228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8229 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 8229 schema +struct> +-- !query 8229 output +{1.0:[B@470bb89d,2.0:[B@8da0772} + + +-- !query 8230 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 8230 schema +struct<> +-- !query 8230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8231 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8231 schema +struct<> +-- !query 8231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8232 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8232 schema +struct<> +-- !query 8232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8233 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 8233 schema +struct<> +-- !query 8233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8234 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 8234 schema +struct<> +-- !query 8234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8235 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 8235 schema +struct<> +-- !query 8235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8236 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 8236 schema +struct<> +-- !query 8236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8237 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 8237 schema +struct<> +-- !query 8237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8238 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 8238 schema +struct<> +-- !query 8238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8239 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 8239 schema +struct<> +-- !query 8239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8240 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 8240 schema +struct<> +-- !query 8240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8241 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 8241 schema +struct> +-- !query 8241 output +{1.0:[B@3c0407c7,2.0:[B@78bb5b77} + + +-- !query 8242 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 8242 schema +struct<> +-- !query 8242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8243 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8243 schema +struct<> +-- !query 8243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8244 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8244 schema +struct<> +-- !query 8244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8245 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 8245 schema +struct<> +-- !query 8245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8246 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 8246 schema +struct<> +-- !query 8246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8247 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 8247 schema +struct<> +-- !query 8247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8248 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 8248 schema +struct<> +-- !query 8248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8249 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 8249 schema +struct<> +-- !query 8249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8250 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 8250 schema +struct<> +-- !query 8250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8251 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 8251 schema +struct<> +-- !query 8251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8252 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 8252 schema +struct<> +-- !query 8252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8253 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 8253 schema +struct> +-- !query 8253 output +{1.0:[B@66e1c175,2.0:[B@a5cb518} + + +-- !query 8254 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 8254 schema +struct<> +-- !query 8254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8255 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8255 schema +struct<> +-- !query 8255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8256 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8256 schema +struct<> +-- !query 8256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8257 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 8257 schema +struct<> +-- !query 8257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8258 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 8258 schema +struct<> +-- !query 8258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8259 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 8259 schema +struct<> +-- !query 8259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8260 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 8260 schema +struct<> +-- !query 8260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8261 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 8261 schema +struct<> +-- !query 8261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8262 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 8262 schema +struct<> +-- !query 8262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8263 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 8263 schema +struct<> +-- !query 8263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8264 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 8264 schema +struct<> +-- !query 8264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8265 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 8265 schema +struct> +-- !query 8265 output +{1.0:[B@1fca1d63,2.0:[B@44e4c32f} + + +-- !query 8266 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 8266 schema +struct<> +-- !query 8266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8267 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8267 schema +struct<> +-- !query 8267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8268 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8268 schema +struct<> +-- !query 8268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8269 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 8269 schema +struct<> +-- !query 8269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8270 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 8270 schema +struct<> +-- !query 8270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8271 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 8271 schema +struct<> +-- !query 8271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8272 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 8272 schema +struct<> +-- !query 8272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8273 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 8273 schema +struct<> +-- !query 8273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8274 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 8274 schema +struct<> +-- !query 8274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8275 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 8275 schema +struct<> +-- !query 8275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8276 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 8276 schema +struct<> +-- !query 8276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8277 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 8277 schema +struct> +-- !query 8277 output +{1.0:[B@47957c53,2.0:[B@75082993} + + +-- !query 8278 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 8278 schema +struct<> +-- !query 8278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8279 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8279 schema +struct<> +-- !query 8279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8280 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8280 schema +struct<> +-- !query 8280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8281 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 8281 schema +struct<> +-- !query 8281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8282 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 8282 schema +struct<> +-- !query 8282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8283 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 8283 schema +struct<> +-- !query 8283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8284 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 8284 schema +struct<> +-- !query 8284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8285 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 8285 schema +struct<> +-- !query 8285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8286 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 8286 schema +struct<> +-- !query 8286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8287 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 8287 schema +struct<> +-- !query 8287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8288 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 8288 schema +struct<> +-- !query 8288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8289 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 8289 schema +struct> +-- !query 8289 output +{1.0:[B@5b31a936,2.0:[B@6b244f99} + + +-- !query 8290 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 8290 schema +struct<> +-- !query 8290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8291 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8291 schema +struct<> +-- !query 8291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8292 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8292 schema +struct<> +-- !query 8292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8293 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 8293 schema +struct<> +-- !query 8293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 8294 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 8294 schema +struct<> +-- !query 8294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 8295 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 8295 schema +struct<> +-- !query 8295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 8296 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 8296 schema +struct<> +-- !query 8296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 8297 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 8297 schema +struct<> +-- !query 8297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 8298 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 8298 schema +struct<> +-- !query 8298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 8299 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 8299 schema +struct<> +-- !query 8299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 8300 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 8300 schema +struct<> +-- !query 8300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 8301 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 8301 schema +struct> +-- !query 8301 output +{"1.0":[B@429f23e8,"2":[B@7e9b438a} + + +-- !query 8302 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 8302 schema +struct<> +-- !query 8302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 8303 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8303 schema +struct<> +-- !query 8303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 8304 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8304 schema +struct<> +-- !query 8304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 8305 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 8305 schema +struct<> +-- !query 8305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8306 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 8306 schema +struct<> +-- !query 8306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8307 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 8307 schema +struct<> +-- !query 8307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8308 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 8308 schema +struct<> +-- !query 8308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8309 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 8309 schema +struct<> +-- !query 8309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8310 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 8310 schema +struct<> +-- !query 8310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8311 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 8311 schema +struct<> +-- !query 8311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8312 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 8312 schema +struct<> +-- !query 8312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8313 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 8313 schema +struct<> +-- !query 8313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8314 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 8314 schema +struct<> +-- !query 8314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8315 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8315 schema +struct<> +-- !query 8315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8316 +SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8316 schema +struct<> +-- !query 8316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8317 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 8317 schema +struct<> +-- !query 8317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8318 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 8318 schema +struct<> +-- !query 8318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8319 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 8319 schema +struct<> +-- !query 8319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8320 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 8320 schema +struct<> +-- !query 8320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8321 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 8321 schema +struct<> +-- !query 8321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8322 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 8322 schema +struct<> +-- !query 8322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8323 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 8323 schema +struct<> +-- !query 8323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8324 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 8324 schema +struct<> +-- !query 8324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8325 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 8325 schema +struct<> +-- !query 8325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8326 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 8326 schema +struct<> +-- !query 8326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8327 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8327 schema +struct<> +-- !query 8327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8328 +SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8328 schema +struct<> +-- !query 8328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8329 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 8329 schema +struct<> +-- !query 8329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8330 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 8330 schema +struct<> +-- !query 8330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8331 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 8331 schema +struct<> +-- !query 8331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8332 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 8332 schema +struct<> +-- !query 8332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8333 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 8333 schema +struct<> +-- !query 8333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8334 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 8334 schema +struct<> +-- !query 8334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8335 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 8335 schema +struct<> +-- !query 8335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8336 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 8336 schema +struct<> +-- !query 8336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8337 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 8337 schema +struct<> +-- !query 8337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8338 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 8338 schema +struct<> +-- !query 8338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8339 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8339 schema +struct<> +-- !query 8339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8340 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8340 schema +struct<> +-- !query 8340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8341 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 8341 schema +struct<> +-- !query 8341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8342 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 8342 schema +struct<> +-- !query 8342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8343 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 8343 schema +struct<> +-- !query 8343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8344 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 8344 schema +struct<> +-- !query 8344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8345 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 8345 schema +struct<> +-- !query 8345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8346 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 8346 schema +struct<> +-- !query 8346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8347 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 8347 schema +struct<> +-- !query 8347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8348 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 8348 schema +struct<> +-- !query 8348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8349 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 8349 schema +struct<> +-- !query 8349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8350 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 8350 schema +struct<> +-- !query 8350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8351 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8351 schema +struct<> +-- !query 8351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8352 +SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8352 schema +struct<> +-- !query 8352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8353 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 8353 schema +struct<> +-- !query 8353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8354 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 8354 schema +struct<> +-- !query 8354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8355 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 8355 schema +struct<> +-- !query 8355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8356 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 8356 schema +struct<> +-- !query 8356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8357 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 8357 schema +struct<> +-- !query 8357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8358 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 8358 schema +struct<> +-- !query 8358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8359 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 8359 schema +struct<> +-- !query 8359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8360 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 8360 schema +struct<> +-- !query 8360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8361 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 8361 schema +struct<> +-- !query 8361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8362 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 8362 schema +struct> +-- !query 8362 output +{1.0:true,2.0:true} + + +-- !query 8363 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8363 schema +struct<> +-- !query 8363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8364 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8364 schema +struct<> +-- !query 8364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8365 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 8365 schema +struct<> +-- !query 8365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8366 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 8366 schema +struct<> +-- !query 8366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8367 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 8367 schema +struct<> +-- !query 8367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8368 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 8368 schema +struct<> +-- !query 8368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8369 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 8369 schema +struct<> +-- !query 8369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8370 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 8370 schema +struct<> +-- !query 8370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8371 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 8371 schema +struct<> +-- !query 8371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8372 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 8372 schema +struct<> +-- !query 8372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8373 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 8373 schema +struct<> +-- !query 8373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8374 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 8374 schema +struct> +-- !query 8374 output +{1.0:true,2.0:true} + + +-- !query 8375 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8375 schema +struct<> +-- !query 8375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8376 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8376 schema +struct<> +-- !query 8376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8377 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 8377 schema +struct<> +-- !query 8377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8378 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 8378 schema +struct<> +-- !query 8378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8379 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 8379 schema +struct<> +-- !query 8379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8380 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 8380 schema +struct<> +-- !query 8380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8381 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 8381 schema +struct<> +-- !query 8381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8382 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 8382 schema +struct<> +-- !query 8382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8383 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 8383 schema +struct<> +-- !query 8383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8384 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 8384 schema +struct<> +-- !query 8384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8385 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 8385 schema +struct<> +-- !query 8385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8386 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 8386 schema +struct> +-- !query 8386 output +{1.0:true,2.0:true} + + +-- !query 8387 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8387 schema +struct<> +-- !query 8387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8388 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8388 schema +struct<> +-- !query 8388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8389 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 8389 schema +struct<> +-- !query 8389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8390 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 8390 schema +struct<> +-- !query 8390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8391 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 8391 schema +struct<> +-- !query 8391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8392 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 8392 schema +struct<> +-- !query 8392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8393 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 8393 schema +struct<> +-- !query 8393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8394 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 8394 schema +struct<> +-- !query 8394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8395 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 8395 schema +struct<> +-- !query 8395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8396 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 8396 schema +struct<> +-- !query 8396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8397 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 8397 schema +struct<> +-- !query 8397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8398 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 8398 schema +struct> +-- !query 8398 output +{1.0:true,2.0:true} + + +-- !query 8399 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8399 schema +struct<> +-- !query 8399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8400 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8400 schema +struct<> +-- !query 8400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8401 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 8401 schema +struct<> +-- !query 8401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8402 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 8402 schema +struct<> +-- !query 8402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8403 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 8403 schema +struct<> +-- !query 8403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8404 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 8404 schema +struct<> +-- !query 8404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8405 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 8405 schema +struct<> +-- !query 8405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8406 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 8406 schema +struct<> +-- !query 8406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8407 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 8407 schema +struct<> +-- !query 8407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8408 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 8408 schema +struct<> +-- !query 8408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8409 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 8409 schema +struct<> +-- !query 8409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8410 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 8410 schema +struct> +-- !query 8410 output +{1.0:true,2.0:true} + + +-- !query 8411 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8411 schema +struct<> +-- !query 8411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8412 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8412 schema +struct<> +-- !query 8412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8413 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 8413 schema +struct<> +-- !query 8413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8414 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 8414 schema +struct<> +-- !query 8414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8415 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 8415 schema +struct<> +-- !query 8415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8416 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 8416 schema +struct<> +-- !query 8416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8417 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 8417 schema +struct<> +-- !query 8417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8418 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 8418 schema +struct<> +-- !query 8418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8419 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 8419 schema +struct<> +-- !query 8419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8420 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 8420 schema +struct<> +-- !query 8420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8421 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 8421 schema +struct<> +-- !query 8421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8422 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 8422 schema +struct> +-- !query 8422 output +{1.0:true,2.0:true} + + +-- !query 8423 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8423 schema +struct<> +-- !query 8423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8424 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8424 schema +struct<> +-- !query 8424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8425 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 8425 schema +struct<> +-- !query 8425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8426 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 8426 schema +struct<> +-- !query 8426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8427 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 8427 schema +struct<> +-- !query 8427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8428 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 8428 schema +struct<> +-- !query 8428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8429 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 8429 schema +struct<> +-- !query 8429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8430 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 8430 schema +struct<> +-- !query 8430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8431 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 8431 schema +struct<> +-- !query 8431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8432 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 8432 schema +struct<> +-- !query 8432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8433 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 8433 schema +struct<> +-- !query 8433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8434 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 8434 schema +struct> +-- !query 8434 output +{1.0:true,2.0:true} + + +-- !query 8435 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8435 schema +struct<> +-- !query 8435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8436 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8436 schema +struct<> +-- !query 8436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8437 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 8437 schema +struct<> +-- !query 8437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 8438 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 8438 schema +struct<> +-- !query 8438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 8439 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 8439 schema +struct<> +-- !query 8439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 8440 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 8440 schema +struct<> +-- !query 8440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 8441 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 8441 schema +struct<> +-- !query 8441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 8442 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 8442 schema +struct<> +-- !query 8442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 8443 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 8443 schema +struct<> +-- !query 8443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 8444 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 8444 schema +struct<> +-- !query 8444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 8445 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 8445 schema +struct<> +-- !query 8445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 8446 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 8446 schema +struct> +-- !query 8446 output +{"1.0":true,"2":true} + + +-- !query 8447 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8447 schema +struct<> +-- !query 8447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 8448 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8448 schema +struct<> +-- !query 8448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 8449 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 8449 schema +struct<> +-- !query 8449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8450 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 8450 schema +struct<> +-- !query 8450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8451 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 8451 schema +struct<> +-- !query 8451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8452 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 8452 schema +struct<> +-- !query 8452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8453 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 8453 schema +struct<> +-- !query 8453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8454 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 8454 schema +struct<> +-- !query 8454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8455 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 8455 schema +struct<> +-- !query 8455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8456 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 8456 schema +struct<> +-- !query 8456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8457 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 8457 schema +struct<> +-- !query 8457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8458 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 8458 schema +struct<> +-- !query 8458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8459 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8459 schema +struct<> +-- !query 8459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8460 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8460 schema +struct<> +-- !query 8460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8461 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 8461 schema +struct<> +-- !query 8461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8462 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 8462 schema +struct<> +-- !query 8462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8463 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 8463 schema +struct<> +-- !query 8463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8464 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 8464 schema +struct<> +-- !query 8464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8465 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 8465 schema +struct<> +-- !query 8465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8466 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 8466 schema +struct<> +-- !query 8466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8467 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 8467 schema +struct<> +-- !query 8467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8468 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 8468 schema +struct<> +-- !query 8468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8469 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 8469 schema +struct<> +-- !query 8469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8470 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 8470 schema +struct<> +-- !query 8470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8471 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8471 schema +struct<> +-- !query 8471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8472 +SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8472 schema +struct<> +-- !query 8472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8473 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 8473 schema +struct<> +-- !query 8473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8474 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 8474 schema +struct<> +-- !query 8474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8475 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 8475 schema +struct<> +-- !query 8475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8476 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 8476 schema +struct<> +-- !query 8476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8477 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 8477 schema +struct<> +-- !query 8477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8478 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 8478 schema +struct<> +-- !query 8478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8479 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 8479 schema +struct<> +-- !query 8479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8480 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 8480 schema +struct<> +-- !query 8480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8481 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 8481 schema +struct<> +-- !query 8481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8482 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 8482 schema +struct<> +-- !query 8482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8483 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8483 schema +struct<> +-- !query 8483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8484 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8484 schema +struct<> +-- !query 8484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8485 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 8485 schema +struct<> +-- !query 8485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8486 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 8486 schema +struct<> +-- !query 8486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8487 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 8487 schema +struct<> +-- !query 8487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8488 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 8488 schema +struct<> +-- !query 8488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8489 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 8489 schema +struct<> +-- !query 8489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8490 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 8490 schema +struct<> +-- !query 8490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8491 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 8491 schema +struct<> +-- !query 8491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8492 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 8492 schema +struct<> +-- !query 8492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8493 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 8493 schema +struct<> +-- !query 8493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8494 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 8494 schema +struct<> +-- !query 8494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8495 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8495 schema +struct<> +-- !query 8495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8496 +SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8496 schema +struct<> +-- !query 8496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8497 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 8497 schema +struct<> +-- !query 8497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8498 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 8498 schema +struct<> +-- !query 8498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8499 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 8499 schema +struct<> +-- !query 8499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8500 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 8500 schema +struct<> +-- !query 8500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8501 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 8501 schema +struct<> +-- !query 8501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8502 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 8502 schema +struct<> +-- !query 8502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8503 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 8503 schema +struct<> +-- !query 8503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8504 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 8504 schema +struct> +-- !query 8504 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 8505 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 8505 schema +struct<> +-- !query 8505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8506 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 8506 schema +struct<> +-- !query 8506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8507 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8507 schema +struct> +-- !query 8507 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8508 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8508 schema +struct> +-- !query 8508 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 8509 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 8509 schema +struct<> +-- !query 8509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8510 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 8510 schema +struct<> +-- !query 8510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8511 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 8511 schema +struct<> +-- !query 8511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8512 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 8512 schema +struct<> +-- !query 8512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8513 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 8513 schema +struct<> +-- !query 8513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8514 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 8514 schema +struct<> +-- !query 8514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8515 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 8515 schema +struct<> +-- !query 8515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8516 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 8516 schema +struct> +-- !query 8516 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 8517 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 8517 schema +struct<> +-- !query 8517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8518 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 8518 schema +struct<> +-- !query 8518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8519 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8519 schema +struct> +-- !query 8519 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8520 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8520 schema +struct> +-- !query 8520 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 8521 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 8521 schema +struct<> +-- !query 8521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8522 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 8522 schema +struct<> +-- !query 8522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8523 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 8523 schema +struct<> +-- !query 8523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8524 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 8524 schema +struct<> +-- !query 8524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8525 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 8525 schema +struct<> +-- !query 8525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8526 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 8526 schema +struct<> +-- !query 8526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8527 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 8527 schema +struct<> +-- !query 8527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8528 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 8528 schema +struct> +-- !query 8528 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 8529 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 8529 schema +struct<> +-- !query 8529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8530 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 8530 schema +struct<> +-- !query 8530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8531 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8531 schema +struct> +-- !query 8531 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8532 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8532 schema +struct> +-- !query 8532 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 8533 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 8533 schema +struct<> +-- !query 8533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8534 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 8534 schema +struct<> +-- !query 8534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8535 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 8535 schema +struct<> +-- !query 8535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8536 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 8536 schema +struct<> +-- !query 8536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8537 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 8537 schema +struct<> +-- !query 8537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8538 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 8538 schema +struct<> +-- !query 8538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8539 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 8539 schema +struct<> +-- !query 8539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8540 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 8540 schema +struct> +-- !query 8540 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 8541 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 8541 schema +struct<> +-- !query 8541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8542 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 8542 schema +struct<> +-- !query 8542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8543 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8543 schema +struct> +-- !query 8543 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8544 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8544 schema +struct> +-- !query 8544 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 8545 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 8545 schema +struct<> +-- !query 8545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8546 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 8546 schema +struct<> +-- !query 8546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8547 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 8547 schema +struct<> +-- !query 8547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8548 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 8548 schema +struct<> +-- !query 8548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8549 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 8549 schema +struct<> +-- !query 8549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8550 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 8550 schema +struct<> +-- !query 8550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8551 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 8551 schema +struct<> +-- !query 8551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8552 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 8552 schema +struct> +-- !query 8552 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 8553 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 8553 schema +struct<> +-- !query 8553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8554 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 8554 schema +struct<> +-- !query 8554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8555 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8555 schema +struct> +-- !query 8555 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8556 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8556 schema +struct> +-- !query 8556 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 8557 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 8557 schema +struct<> +-- !query 8557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8558 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 8558 schema +struct<> +-- !query 8558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8559 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 8559 schema +struct<> +-- !query 8559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8560 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 8560 schema +struct<> +-- !query 8560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8561 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 8561 schema +struct<> +-- !query 8561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8562 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 8562 schema +struct<> +-- !query 8562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8563 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 8563 schema +struct<> +-- !query 8563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8564 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 8564 schema +struct> +-- !query 8564 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 8565 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 8565 schema +struct<> +-- !query 8565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8566 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 8566 schema +struct<> +-- !query 8566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8567 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8567 schema +struct> +-- !query 8567 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8568 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8568 schema +struct> +-- !query 8568 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 8569 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 8569 schema +struct<> +-- !query 8569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8570 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 8570 schema +struct<> +-- !query 8570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8571 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 8571 schema +struct<> +-- !query 8571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8572 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 8572 schema +struct<> +-- !query 8572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8573 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 8573 schema +struct<> +-- !query 8573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8574 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 8574 schema +struct<> +-- !query 8574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8575 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 8575 schema +struct<> +-- !query 8575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8576 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 8576 schema +struct> +-- !query 8576 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 8577 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 8577 schema +struct<> +-- !query 8577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8578 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 8578 schema +struct<> +-- !query 8578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8579 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8579 schema +struct> +-- !query 8579 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8580 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8580 schema +struct> +-- !query 8580 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 8581 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 8581 schema +struct<> +-- !query 8581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 8582 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 8582 schema +struct<> +-- !query 8582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 8583 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 8583 schema +struct<> +-- !query 8583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 8584 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 8584 schema +struct<> +-- !query 8584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 8585 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 8585 schema +struct<> +-- !query 8585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 8586 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 8586 schema +struct<> +-- !query 8586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 8587 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 8587 schema +struct<> +-- !query 8587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 8588 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 8588 schema +struct> +-- !query 8588 output +{"1.0":"2017-12-11 09:30:00","2":"2"} + + +-- !query 8589 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 8589 schema +struct<> +-- !query 8589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 8590 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 8590 schema +struct<> +-- !query 8590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 8591 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8591 schema +struct> +-- !query 8591 output +{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 8592 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8592 schema +struct> +-- !query 8592 output +{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 8593 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 8593 schema +struct<> +-- !query 8593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8594 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 8594 schema +struct<> +-- !query 8594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8595 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 8595 schema +struct<> +-- !query 8595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8596 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 8596 schema +struct<> +-- !query 8596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8597 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 8597 schema +struct<> +-- !query 8597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8598 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 8598 schema +struct<> +-- !query 8598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8599 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 8599 schema +struct<> +-- !query 8599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8600 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 8600 schema +struct<> +-- !query 8600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8601 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 8601 schema +struct<> +-- !query 8601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8602 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 8602 schema +struct<> +-- !query 8602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8603 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8603 schema +struct<> +-- !query 8603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8604 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8604 schema +struct<> +-- !query 8604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8605 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 8605 schema +struct<> +-- !query 8605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8606 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 8606 schema +struct<> +-- !query 8606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8607 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 8607 schema +struct<> +-- !query 8607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8608 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 8608 schema +struct<> +-- !query 8608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8609 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 8609 schema +struct<> +-- !query 8609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8610 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 8610 schema +struct<> +-- !query 8610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8611 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 8611 schema +struct<> +-- !query 8611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8612 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 8612 schema +struct<> +-- !query 8612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8613 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 8613 schema +struct<> +-- !query 8613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8614 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 8614 schema +struct<> +-- !query 8614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8615 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8615 schema +struct<> +-- !query 8615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8616 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8616 schema +struct<> +-- !query 8616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8617 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 8617 schema +struct<> +-- !query 8617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8618 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 8618 schema +struct<> +-- !query 8618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8619 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 8619 schema +struct<> +-- !query 8619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8620 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 8620 schema +struct<> +-- !query 8620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8621 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 8621 schema +struct<> +-- !query 8621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8622 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 8622 schema +struct<> +-- !query 8622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8623 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 8623 schema +struct<> +-- !query 8623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8624 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 8624 schema +struct<> +-- !query 8624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8625 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 8625 schema +struct<> +-- !query 8625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8626 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 8626 schema +struct<> +-- !query 8626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8627 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8627 schema +struct<> +-- !query 8627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8628 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8628 schema +struct<> +-- !query 8628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8629 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 8629 schema +struct<> +-- !query 8629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8630 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 8630 schema +struct<> +-- !query 8630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8631 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 8631 schema +struct<> +-- !query 8631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8632 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 8632 schema +struct<> +-- !query 8632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8633 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 8633 schema +struct<> +-- !query 8633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8634 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 8634 schema +struct<> +-- !query 8634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8635 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 8635 schema +struct<> +-- !query 8635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8636 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 8636 schema +struct<> +-- !query 8636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8637 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 8637 schema +struct<> +-- !query 8637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8638 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 8638 schema +struct<> +-- !query 8638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8639 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8639 schema +struct<> +-- !query 8639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8640 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8640 schema +struct<> +-- !query 8640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8641 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 8641 schema +struct<> +-- !query 8641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8642 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 8642 schema +struct<> +-- !query 8642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8643 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 8643 schema +struct<> +-- !query 8643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8644 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 8644 schema +struct<> +-- !query 8644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8645 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 8645 schema +struct<> +-- !query 8645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8646 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 8646 schema +struct<> +-- !query 8646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8647 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 8647 schema +struct<> +-- !query 8647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8648 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 8648 schema +struct> +-- !query 8648 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 8649 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 8649 schema +struct<> +-- !query 8649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8650 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 8650 schema +struct<> +-- !query 8650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8651 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8651 schema +struct> +-- !query 8651 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8652 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8652 schema +struct> +-- !query 8652 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 8653 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 8653 schema +struct<> +-- !query 8653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8654 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 8654 schema +struct<> +-- !query 8654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8655 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 8655 schema +struct<> +-- !query 8655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8656 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 8656 schema +struct<> +-- !query 8656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8657 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 8657 schema +struct<> +-- !query 8657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8658 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 8658 schema +struct<> +-- !query 8658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8659 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 8659 schema +struct<> +-- !query 8659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8660 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 8660 schema +struct> +-- !query 8660 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 8661 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 8661 schema +struct<> +-- !query 8661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8662 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 8662 schema +struct<> +-- !query 8662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8663 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8663 schema +struct> +-- !query 8663 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8664 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8664 schema +struct> +-- !query 8664 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 8665 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 8665 schema +struct<> +-- !query 8665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8666 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 8666 schema +struct<> +-- !query 8666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8667 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 8667 schema +struct<> +-- !query 8667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8668 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 8668 schema +struct<> +-- !query 8668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8669 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 8669 schema +struct<> +-- !query 8669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8670 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 8670 schema +struct<> +-- !query 8670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8671 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 8671 schema +struct<> +-- !query 8671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8672 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 8672 schema +struct> +-- !query 8672 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 8673 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 8673 schema +struct<> +-- !query 8673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8674 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 8674 schema +struct<> +-- !query 8674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8675 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8675 schema +struct> +-- !query 8675 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8676 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8676 schema +struct> +-- !query 8676 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 8677 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 8677 schema +struct<> +-- !query 8677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8678 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 8678 schema +struct<> +-- !query 8678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8679 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 8679 schema +struct<> +-- !query 8679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8680 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 8680 schema +struct<> +-- !query 8680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8681 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 8681 schema +struct<> +-- !query 8681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8682 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 8682 schema +struct<> +-- !query 8682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8683 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 8683 schema +struct<> +-- !query 8683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8684 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 8684 schema +struct> +-- !query 8684 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 8685 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 8685 schema +struct<> +-- !query 8685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8686 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 8686 schema +struct<> +-- !query 8686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8687 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8687 schema +struct> +-- !query 8687 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8688 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8688 schema +struct> +-- !query 8688 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 8689 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 8689 schema +struct<> +-- !query 8689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8690 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 8690 schema +struct<> +-- !query 8690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8691 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 8691 schema +struct<> +-- !query 8691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8692 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 8692 schema +struct<> +-- !query 8692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8693 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 8693 schema +struct<> +-- !query 8693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8694 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 8694 schema +struct<> +-- !query 8694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8695 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 8695 schema +struct<> +-- !query 8695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8696 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 8696 schema +struct> +-- !query 8696 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 8697 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 8697 schema +struct<> +-- !query 8697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8698 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 8698 schema +struct<> +-- !query 8698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8699 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8699 schema +struct> +-- !query 8699 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8700 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8700 schema +struct> +-- !query 8700 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 8701 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 8701 schema +struct<> +-- !query 8701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8702 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 8702 schema +struct<> +-- !query 8702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8703 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 8703 schema +struct<> +-- !query 8703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8704 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 8704 schema +struct<> +-- !query 8704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8705 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 8705 schema +struct<> +-- !query 8705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8706 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 8706 schema +struct<> +-- !query 8706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8707 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 8707 schema +struct<> +-- !query 8707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8708 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 8708 schema +struct> +-- !query 8708 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 8709 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 8709 schema +struct<> +-- !query 8709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8710 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 8710 schema +struct<> +-- !query 8710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8711 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8711 schema +struct> +-- !query 8711 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8712 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8712 schema +struct> +-- !query 8712 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 8713 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 8713 schema +struct<> +-- !query 8713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8714 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 8714 schema +struct<> +-- !query 8714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8715 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 8715 schema +struct<> +-- !query 8715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8716 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 8716 schema +struct<> +-- !query 8716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8717 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 8717 schema +struct<> +-- !query 8717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8718 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 8718 schema +struct<> +-- !query 8718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8719 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 8719 schema +struct<> +-- !query 8719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8720 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 8720 schema +struct> +-- !query 8720 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 8721 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 8721 schema +struct<> +-- !query 8721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8722 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 8722 schema +struct<> +-- !query 8722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8723 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8723 schema +struct> +-- !query 8723 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 8724 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8724 schema +struct> +-- !query 8724 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 8725 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 8725 schema +struct<> +-- !query 8725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 8726 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 8726 schema +struct<> +-- !query 8726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 8727 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 8727 schema +struct<> +-- !query 8727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 8728 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 8728 schema +struct<> +-- !query 8728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 8729 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 8729 schema +struct<> +-- !query 8729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 8730 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 8730 schema +struct<> +-- !query 8730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 8731 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 8731 schema +struct<> +-- !query 8731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 8732 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 8732 schema +struct> +-- !query 8732 output +{"1.0":"2017-12-11","2":"2"} + + +-- !query 8733 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 8733 schema +struct<> +-- !query 8733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 8734 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 8734 schema +struct<> +-- !query 8734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 8735 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8735 schema +struct> +-- !query 8735 output +{"1.0":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 8736 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8736 schema +struct> +-- !query 8736 output +{"1.0":2017-12-11,"2":2017-12-12} + + +-- !query 8737 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 8737 schema +struct<> +-- !query 8737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8738 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 8738 schema +struct<> +-- !query 8738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8739 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 8739 schema +struct<> +-- !query 8739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8740 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 8740 schema +struct<> +-- !query 8740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8741 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 8741 schema +struct<> +-- !query 8741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8742 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 8742 schema +struct<> +-- !query 8742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8743 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 8743 schema +struct<> +-- !query 8743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8744 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 8744 schema +struct<> +-- !query 8744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8745 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 8745 schema +struct<> +-- !query 8745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8746 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 8746 schema +struct<> +-- !query 8746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8747 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8747 schema +struct<> +-- !query 8747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8748 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8748 schema +struct<> +-- !query 8748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 8749 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 8749 schema +struct<> +-- !query 8749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8750 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 8750 schema +struct<> +-- !query 8750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8751 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 8751 schema +struct<> +-- !query 8751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8752 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 8752 schema +struct<> +-- !query 8752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8753 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 8753 schema +struct<> +-- !query 8753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8754 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 8754 schema +struct<> +-- !query 8754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8755 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 8755 schema +struct<> +-- !query 8755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8756 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 8756 schema +struct<> +-- !query 8756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8757 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 8757 schema +struct<> +-- !query 8757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8758 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 8758 schema +struct<> +-- !query 8758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8759 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8759 schema +struct<> +-- !query 8759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8760 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8760 schema +struct<> +-- !query 8760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 8761 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 8761 schema +struct<> +-- !query 8761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8762 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 8762 schema +struct<> +-- !query 8762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8763 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 8763 schema +struct<> +-- !query 8763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8764 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 8764 schema +struct<> +-- !query 8764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8765 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 8765 schema +struct<> +-- !query 8765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8766 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 8766 schema +struct<> +-- !query 8766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8767 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 8767 schema +struct<> +-- !query 8767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8768 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 8768 schema +struct<> +-- !query 8768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8769 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 8769 schema +struct<> +-- !query 8769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8770 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 8770 schema +struct<> +-- !query 8770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8771 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8771 schema +struct<> +-- !query 8771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8772 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8772 schema +struct<> +-- !query 8772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 8773 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 8773 schema +struct<> +-- !query 8773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8774 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 8774 schema +struct<> +-- !query 8774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8775 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 8775 schema +struct<> +-- !query 8775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8776 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 8776 schema +struct<> +-- !query 8776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8777 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 8777 schema +struct<> +-- !query 8777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8778 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 8778 schema +struct<> +-- !query 8778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8779 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 8779 schema +struct<> +-- !query 8779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8780 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 8780 schema +struct<> +-- !query 8780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8781 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 8781 schema +struct<> +-- !query 8781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8782 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 8782 schema +struct<> +-- !query 8782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8783 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8783 schema +struct<> +-- !query 8783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8784 +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8784 schema +struct<> +-- !query 8784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 8785 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 8785 schema +struct> +-- !query 8785 output +{1.0:1,2.0:2} + + +-- !query 8786 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 8786 schema +struct> +-- !query 8786 output +{1.0:1,2.0:2} + + +-- !query 8787 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 8787 schema +struct> +-- !query 8787 output +{1.0:1,2.0:2} + + +-- !query 8788 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 8788 schema +struct> +-- !query 8788 output +{1.0:1,2.0:2} + + +-- !query 8789 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 8789 schema +struct> +-- !query 8789 output +{1.0:1.0,2.0:2.0} + + +-- !query 8790 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 8790 schema +struct> +-- !query 8790 output +{1.0:1.0,2.0:2.0} + + +-- !query 8791 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 8791 schema +struct> +-- !query 8791 output +{1.0:1,2.0:2} + + +-- !query 8792 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 8792 schema +struct> +-- !query 8792 output +{1.0:"1",2.0:"2"} + + +-- !query 8793 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 8793 schema +struct<> +-- !query 8793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8794 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 8794 schema +struct<> +-- !query 8794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8795 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8795 schema +struct<> +-- !query 8795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8796 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8796 schema +struct<> +-- !query 8796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8797 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 8797 schema +struct> +-- !query 8797 output +{1.0:1,2.0:2} + + +-- !query 8798 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 8798 schema +struct> +-- !query 8798 output +{1.0:1,2.0:2} + + +-- !query 8799 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 8799 schema +struct> +-- !query 8799 output +{1.0:1,2.0:2} + + +-- !query 8800 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 8800 schema +struct> +-- !query 8800 output +{1.0:1,2.0:2} + + +-- !query 8801 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 8801 schema +struct> +-- !query 8801 output +{1.0:1.0,2.0:2.0} + + +-- !query 8802 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 8802 schema +struct> +-- !query 8802 output +{1.0:1.0,2.0:2.0} + + +-- !query 8803 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 8803 schema +struct> +-- !query 8803 output +{1.0:1,2.0:2} + + +-- !query 8804 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 8804 schema +struct> +-- !query 8804 output +{1.0:"1",2.0:"2"} + + +-- !query 8805 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 8805 schema +struct<> +-- !query 8805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8806 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 8806 schema +struct<> +-- !query 8806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8807 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8807 schema +struct<> +-- !query 8807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8808 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8808 schema +struct<> +-- !query 8808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8809 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 8809 schema +struct> +-- !query 8809 output +{1.0:1,2.0:2} + + +-- !query 8810 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 8810 schema +struct> +-- !query 8810 output +{1.0:1,2.0:2} + + +-- !query 8811 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 8811 schema +struct> +-- !query 8811 output +{1.0:1,2.0:2} + + +-- !query 8812 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 8812 schema +struct> +-- !query 8812 output +{1.0:1,2.0:2} + + +-- !query 8813 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 8813 schema +struct> +-- !query 8813 output +{1.0:1.0,2.0:2.0} + + +-- !query 8814 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 8814 schema +struct> +-- !query 8814 output +{1.0:1.0,2.0:2.0} + + +-- !query 8815 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 8815 schema +struct> +-- !query 8815 output +{1.0:1,2.0:2} + + +-- !query 8816 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 8816 schema +struct> +-- !query 8816 output +{1.0:"1",2.0:"2"} + + +-- !query 8817 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 8817 schema +struct<> +-- !query 8817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8818 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 8818 schema +struct<> +-- !query 8818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8819 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8819 schema +struct<> +-- !query 8819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8820 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8820 schema +struct<> +-- !query 8820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8821 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 8821 schema +struct> +-- !query 8821 output +{1.0:1,2.0:2} + + +-- !query 8822 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 8822 schema +struct> +-- !query 8822 output +{1.0:1,2.0:2} + + +-- !query 8823 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 8823 schema +struct> +-- !query 8823 output +{1.0:1,2.0:2} + + +-- !query 8824 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 8824 schema +struct> +-- !query 8824 output +{1.0:1,2.0:2} + + +-- !query 8825 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 8825 schema +struct> +-- !query 8825 output +{1.0:1.0,2.0:2.0} + + +-- !query 8826 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 8826 schema +struct> +-- !query 8826 output +{1.0:1.0,2.0:2.0} + + +-- !query 8827 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 8827 schema +struct> +-- !query 8827 output +{1.0:1,2.0:2} + + +-- !query 8828 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 8828 schema +struct> +-- !query 8828 output +{1.0:"1",2.0:"2"} + + +-- !query 8829 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 8829 schema +struct<> +-- !query 8829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8830 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 8830 schema +struct<> +-- !query 8830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8831 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8831 schema +struct<> +-- !query 8831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8832 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8832 schema +struct<> +-- !query 8832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8833 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 8833 schema +struct> +-- !query 8833 output +{1.0:1,2.0:2} + + +-- !query 8834 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 8834 schema +struct> +-- !query 8834 output +{1.0:1,2.0:2} + + +-- !query 8835 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 8835 schema +struct> +-- !query 8835 output +{1.0:1,2.0:2} + + +-- !query 8836 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 8836 schema +struct> +-- !query 8836 output +{1.0:1,2.0:2} + + +-- !query 8837 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 8837 schema +struct> +-- !query 8837 output +{1.0:1.0,2.0:2.0} + + +-- !query 8838 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 8838 schema +struct> +-- !query 8838 output +{1.0:1.0,2.0:2.0} + + +-- !query 8839 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 8839 schema +struct> +-- !query 8839 output +{1.0:1,2.0:2} + + +-- !query 8840 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 8840 schema +struct> +-- !query 8840 output +{1.0:"1",2.0:"2"} + + +-- !query 8841 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 8841 schema +struct<> +-- !query 8841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8842 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 8842 schema +struct<> +-- !query 8842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8843 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8843 schema +struct<> +-- !query 8843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8844 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8844 schema +struct<> +-- !query 8844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8845 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 8845 schema +struct> +-- !query 8845 output +{1.0:1,2.0:2} + + +-- !query 8846 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 8846 schema +struct> +-- !query 8846 output +{1.0:1,2.0:2} + + +-- !query 8847 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 8847 schema +struct> +-- !query 8847 output +{1.0:1,2.0:2} + + +-- !query 8848 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 8848 schema +struct> +-- !query 8848 output +{1.0:1,2.0:2} + + +-- !query 8849 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 8849 schema +struct> +-- !query 8849 output +{1.0:1.0,2.0:2.0} + + +-- !query 8850 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 8850 schema +struct> +-- !query 8850 output +{1.0:1.0,2.0:2.0} + + +-- !query 8851 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 8851 schema +struct> +-- !query 8851 output +{1.0:1,2.0:2} + + +-- !query 8852 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 8852 schema +struct> +-- !query 8852 output +{1.0:"1",2.0:"2"} + + +-- !query 8853 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 8853 schema +struct<> +-- !query 8853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8854 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 8854 schema +struct<> +-- !query 8854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8855 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8855 schema +struct<> +-- !query 8855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8856 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8856 schema +struct<> +-- !query 8856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8857 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 8857 schema +struct> +-- !query 8857 output +{1.0:1,2.0:2} + + +-- !query 8858 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 8858 schema +struct> +-- !query 8858 output +{1.0:1,2.0:2} + + +-- !query 8859 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 8859 schema +struct> +-- !query 8859 output +{1.0:1,2.0:2} + + +-- !query 8860 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 8860 schema +struct> +-- !query 8860 output +{1.0:1,2.0:2} + + +-- !query 8861 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 8861 schema +struct> +-- !query 8861 output +{1.0:1.0,2.0:2.0} + + +-- !query 8862 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 8862 schema +struct> +-- !query 8862 output +{1.0:1.0,2.0:2.0} + + +-- !query 8863 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 8863 schema +struct> +-- !query 8863 output +{1.0:1,2.0:2} + + +-- !query 8864 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 8864 schema +struct> +-- !query 8864 output +{1.0:"1",2.0:"2"} + + +-- !query 8865 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 8865 schema +struct<> +-- !query 8865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8866 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 8866 schema +struct<> +-- !query 8866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8867 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8867 schema +struct<> +-- !query 8867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8868 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8868 schema +struct<> +-- !query 8868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8869 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 8869 schema +struct> +-- !query 8869 output +{"1.0":1,"2":2} + + +-- !query 8870 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 8870 schema +struct> +-- !query 8870 output +{"1.0":1,"2":2} + + +-- !query 8871 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 8871 schema +struct> +-- !query 8871 output +{"1.0":1,"2":2} + + +-- !query 8872 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 8872 schema +struct> +-- !query 8872 output +{"1.0":1,"2":2} + + +-- !query 8873 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 8873 schema +struct> +-- !query 8873 output +{"1.0":1.0,"2":2.0} + + +-- !query 8874 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 8874 schema +struct> +-- !query 8874 output +{"1.0":1.0,"2":2.0} + + +-- !query 8875 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 8875 schema +struct> +-- !query 8875 output +{"1.0":1,"2":2} + + +-- !query 8876 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 8876 schema +struct> +-- !query 8876 output +{"1.0":"1","2":"2"} + + +-- !query 8877 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 8877 schema +struct<> +-- !query 8877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 8878 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 8878 schema +struct<> +-- !query 8878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 8879 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8879 schema +struct<> +-- !query 8879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 8880 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8880 schema +struct<> +-- !query 8880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 8881 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 8881 schema +struct<> +-- !query 8881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8882 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 8882 schema +struct<> +-- !query 8882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8883 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 8883 schema +struct<> +-- !query 8883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8884 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 8884 schema +struct<> +-- !query 8884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8885 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 8885 schema +struct<> +-- !query 8885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8886 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 8886 schema +struct<> +-- !query 8886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8887 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 8887 schema +struct<> +-- !query 8887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8888 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 8888 schema +struct<> +-- !query 8888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8889 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 8889 schema +struct<> +-- !query 8889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8890 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 8890 schema +struct<> +-- !query 8890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8891 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8891 schema +struct<> +-- !query 8891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8892 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8892 schema +struct<> +-- !query 8892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 8893 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 8893 schema +struct<> +-- !query 8893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8894 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 8894 schema +struct<> +-- !query 8894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8895 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 8895 schema +struct<> +-- !query 8895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8896 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 8896 schema +struct<> +-- !query 8896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8897 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 8897 schema +struct<> +-- !query 8897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8898 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 8898 schema +struct<> +-- !query 8898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8899 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 8899 schema +struct<> +-- !query 8899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8900 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 8900 schema +struct<> +-- !query 8900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8901 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 8901 schema +struct<> +-- !query 8901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8902 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 8902 schema +struct<> +-- !query 8902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8903 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8903 schema +struct<> +-- !query 8903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8904 +SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8904 schema +struct<> +-- !query 8904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 8905 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 8905 schema +struct<> +-- !query 8905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8906 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 8906 schema +struct<> +-- !query 8906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8907 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 8907 schema +struct<> +-- !query 8907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8908 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 8908 schema +struct<> +-- !query 8908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8909 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 8909 schema +struct<> +-- !query 8909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8910 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 8910 schema +struct<> +-- !query 8910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8911 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 8911 schema +struct<> +-- !query 8911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8912 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 8912 schema +struct<> +-- !query 8912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8913 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 8913 schema +struct<> +-- !query 8913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8914 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 8914 schema +struct<> +-- !query 8914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8915 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8915 schema +struct<> +-- !query 8915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8916 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8916 schema +struct<> +-- !query 8916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 8917 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 8917 schema +struct<> +-- !query 8917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8918 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 8918 schema +struct<> +-- !query 8918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8919 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 8919 schema +struct<> +-- !query 8919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8920 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 8920 schema +struct<> +-- !query 8920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8921 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 8921 schema +struct<> +-- !query 8921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8922 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 8922 schema +struct<> +-- !query 8922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8923 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 8923 schema +struct<> +-- !query 8923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8924 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 8924 schema +struct<> +-- !query 8924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8925 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 8925 schema +struct<> +-- !query 8925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8926 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 8926 schema +struct<> +-- !query 8926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8927 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8927 schema +struct<> +-- !query 8927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8928 +SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8928 schema +struct<> +-- !query 8928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 8929 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 8929 schema +struct> +-- !query 8929 output +{1.0:1,2.0:2} + + +-- !query 8930 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 8930 schema +struct> +-- !query 8930 output +{1.0:1,2.0:2} + + +-- !query 8931 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 8931 schema +struct> +-- !query 8931 output +{1.0:1,2.0:2} + + +-- !query 8932 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 8932 schema +struct> +-- !query 8932 output +{1.0:1,2.0:2} + + +-- !query 8933 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 8933 schema +struct> +-- !query 8933 output +{1.0:1.0,2.0:2.0} + + +-- !query 8934 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 8934 schema +struct> +-- !query 8934 output +{1.0:1.0,2.0:2.0} + + +-- !query 8935 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 8935 schema +struct> +-- !query 8935 output +{1.0:1,2.0:2} + + +-- !query 8936 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 8936 schema +struct> +-- !query 8936 output +{1.0:"1",2.0:"2"} + + +-- !query 8937 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 8937 schema +struct<> +-- !query 8937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 8938 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 8938 schema +struct<> +-- !query 8938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 8939 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8939 schema +struct<> +-- !query 8939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 8940 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8940 schema +struct<> +-- !query 8940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 8941 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 8941 schema +struct> +-- !query 8941 output +{1.0:1,2.0:2} + + +-- !query 8942 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 8942 schema +struct> +-- !query 8942 output +{1.0:1,2.0:2} + + +-- !query 8943 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 8943 schema +struct> +-- !query 8943 output +{1.0:1,2.0:2} + + +-- !query 8944 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 8944 schema +struct> +-- !query 8944 output +{1.0:1,2.0:2} + + +-- !query 8945 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 8945 schema +struct> +-- !query 8945 output +{1.0:1.0,2.0:2.0} + + +-- !query 8946 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 8946 schema +struct> +-- !query 8946 output +{1.0:1.0,2.0:2.0} + + +-- !query 8947 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 8947 schema +struct> +-- !query 8947 output +{1.0:1,2.0:2} + + +-- !query 8948 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 8948 schema +struct> +-- !query 8948 output +{1.0:"1",2.0:"2"} + + +-- !query 8949 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 8949 schema +struct<> +-- !query 8949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 8950 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 8950 schema +struct<> +-- !query 8950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 8951 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8951 schema +struct<> +-- !query 8951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 8952 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8952 schema +struct<> +-- !query 8952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 8953 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 8953 schema +struct> +-- !query 8953 output +{1.0:1,2.0:2} + + +-- !query 8954 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 8954 schema +struct> +-- !query 8954 output +{1.0:1,2.0:2} + + +-- !query 8955 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 8955 schema +struct> +-- !query 8955 output +{1.0:1,2.0:2} + + +-- !query 8956 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 8956 schema +struct> +-- !query 8956 output +{1.0:1,2.0:2} + + +-- !query 8957 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 8957 schema +struct> +-- !query 8957 output +{1.0:1.0,2.0:2.0} + + +-- !query 8958 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 8958 schema +struct> +-- !query 8958 output +{1.0:1.0,2.0:2.0} + + +-- !query 8959 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 8959 schema +struct> +-- !query 8959 output +{1.0:1,2.0:2} + + +-- !query 8960 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 8960 schema +struct> +-- !query 8960 output +{1.0:"1",2.0:"2"} + + +-- !query 8961 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 8961 schema +struct<> +-- !query 8961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 8962 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 8962 schema +struct<> +-- !query 8962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 8963 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8963 schema +struct<> +-- !query 8963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 8964 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8964 schema +struct<> +-- !query 8964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 8965 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 8965 schema +struct> +-- !query 8965 output +{1.0:1,2.0:2} + + +-- !query 8966 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 8966 schema +struct> +-- !query 8966 output +{1.0:1,2.0:2} + + +-- !query 8967 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 8967 schema +struct> +-- !query 8967 output +{1.0:1,2.0:2} + + +-- !query 8968 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 8968 schema +struct> +-- !query 8968 output +{1.0:1,2.0:2} + + +-- !query 8969 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 8969 schema +struct> +-- !query 8969 output +{1.0:1.0,2.0:2.0} + + +-- !query 8970 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 8970 schema +struct> +-- !query 8970 output +{1.0:1.0,2.0:2.0} + + +-- !query 8971 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 8971 schema +struct> +-- !query 8971 output +{1.0:1,2.0:2} + + +-- !query 8972 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 8972 schema +struct> +-- !query 8972 output +{1.0:"1",2.0:"2"} + + +-- !query 8973 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 8973 schema +struct<> +-- !query 8973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 8974 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 8974 schema +struct<> +-- !query 8974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 8975 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8975 schema +struct<> +-- !query 8975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 8976 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8976 schema +struct<> +-- !query 8976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 8977 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 8977 schema +struct> +-- !query 8977 output +{1.0:1,2.0:2} + + +-- !query 8978 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 8978 schema +struct> +-- !query 8978 output +{1.0:1,2.0:2} + + +-- !query 8979 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 8979 schema +struct> +-- !query 8979 output +{1.0:1,2.0:2} + + +-- !query 8980 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 8980 schema +struct> +-- !query 8980 output +{1.0:1,2.0:2} + + +-- !query 8981 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 8981 schema +struct> +-- !query 8981 output +{1.0:1.0,2.0:2.0} + + +-- !query 8982 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 8982 schema +struct> +-- !query 8982 output +{1.0:1.0,2.0:2.0} + + +-- !query 8983 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 8983 schema +struct> +-- !query 8983 output +{1.0:1,2.0:2} + + +-- !query 8984 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 8984 schema +struct> +-- !query 8984 output +{1.0:"1",2.0:"2"} + + +-- !query 8985 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 8985 schema +struct<> +-- !query 8985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 8986 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 8986 schema +struct<> +-- !query 8986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 8987 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8987 schema +struct<> +-- !query 8987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 8988 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 8988 schema +struct<> +-- !query 8988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 8989 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 8989 schema +struct> +-- !query 8989 output +{1.0:1,2.0:2} + + +-- !query 8990 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 8990 schema +struct> +-- !query 8990 output +{1.0:1,2.0:2} + + +-- !query 8991 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 8991 schema +struct> +-- !query 8991 output +{1.0:1,2.0:2} + + +-- !query 8992 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 8992 schema +struct> +-- !query 8992 output +{1.0:1,2.0:2} + + +-- !query 8993 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 8993 schema +struct> +-- !query 8993 output +{1.0:1.0,2.0:2.0} + + +-- !query 8994 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 8994 schema +struct> +-- !query 8994 output +{1.0:1.0,2.0:2.0} + + +-- !query 8995 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 8995 schema +struct> +-- !query 8995 output +{1.0:1,2.0:2} + + +-- !query 8996 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 8996 schema +struct> +-- !query 8996 output +{1.0:"1",2.0:"2"} + + +-- !query 8997 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 8997 schema +struct<> +-- !query 8997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 8998 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 8998 schema +struct<> +-- !query 8998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 8999 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 8999 schema +struct<> +-- !query 8999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 9000 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9000 schema +struct<> +-- !query 9000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 9001 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 9001 schema +struct> +-- !query 9001 output +{1.0:1,2.0:2} + + +-- !query 9002 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 9002 schema +struct> +-- !query 9002 output +{1.0:1,2.0:2} + + +-- !query 9003 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 9003 schema +struct> +-- !query 9003 output +{1.0:1,2.0:2} + + +-- !query 9004 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 9004 schema +struct> +-- !query 9004 output +{1.0:1,2.0:2} + + +-- !query 9005 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 9005 schema +struct> +-- !query 9005 output +{1.0:1.0,2.0:2.0} + + +-- !query 9006 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 9006 schema +struct> +-- !query 9006 output +{1.0:1.0,2.0:2.0} + + +-- !query 9007 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 9007 schema +struct> +-- !query 9007 output +{1.0:1,2.0:2} + + +-- !query 9008 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 9008 schema +struct> +-- !query 9008 output +{1.0:"1",2.0:"2"} + + +-- !query 9009 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 9009 schema +struct<> +-- !query 9009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 9010 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 9010 schema +struct<> +-- !query 9010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 9011 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9011 schema +struct<> +-- !query 9011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 9012 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9012 schema +struct<> +-- !query 9012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 9013 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 9013 schema +struct> +-- !query 9013 output +{"1.0":1,"2":2} + + +-- !query 9014 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 9014 schema +struct> +-- !query 9014 output +{"1.0":1,"2":2} + + +-- !query 9015 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 9015 schema +struct> +-- !query 9015 output +{"1.0":1,"2":2} + + +-- !query 9016 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 9016 schema +struct> +-- !query 9016 output +{"1.0":1,"2":2} + + +-- !query 9017 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 9017 schema +struct> +-- !query 9017 output +{"1.0":1.0,"2":2.0} + + +-- !query 9018 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 9018 schema +struct> +-- !query 9018 output +{"1.0":1.0,"2":2.0} + + +-- !query 9019 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 9019 schema +struct> +-- !query 9019 output +{"1.0":1,"2":2} + + +-- !query 9020 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 9020 schema +struct> +-- !query 9020 output +{"1.0":"1","2":"2"} + + +-- !query 9021 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 9021 schema +struct<> +-- !query 9021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 9022 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 9022 schema +struct<> +-- !query 9022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 9023 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9023 schema +struct<> +-- !query 9023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 9024 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9024 schema +struct<> +-- !query 9024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 9025 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 9025 schema +struct<> +-- !query 9025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9026 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 9026 schema +struct<> +-- !query 9026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9027 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 9027 schema +struct<> +-- !query 9027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9028 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 9028 schema +struct<> +-- !query 9028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9029 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 9029 schema +struct<> +-- !query 9029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9030 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 9030 schema +struct<> +-- !query 9030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9031 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 9031 schema +struct<> +-- !query 9031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9032 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 9032 schema +struct<> +-- !query 9032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9033 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 9033 schema +struct<> +-- !query 9033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9034 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 9034 schema +struct<> +-- !query 9034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9035 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9035 schema +struct<> +-- !query 9035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9036 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9036 schema +struct<> +-- !query 9036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9037 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 9037 schema +struct<> +-- !query 9037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9038 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 9038 schema +struct<> +-- !query 9038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9039 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 9039 schema +struct<> +-- !query 9039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9040 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 9040 schema +struct<> +-- !query 9040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9041 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 9041 schema +struct<> +-- !query 9041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9042 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 9042 schema +struct<> +-- !query 9042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9043 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 9043 schema +struct<> +-- !query 9043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9044 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 9044 schema +struct<> +-- !query 9044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9045 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 9045 schema +struct<> +-- !query 9045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9046 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 9046 schema +struct<> +-- !query 9046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9047 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9047 schema +struct<> +-- !query 9047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9048 +SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9048 schema +struct<> +-- !query 9048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9049 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 9049 schema +struct<> +-- !query 9049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9050 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 9050 schema +struct<> +-- !query 9050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9051 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 9051 schema +struct<> +-- !query 9051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9052 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 9052 schema +struct<> +-- !query 9052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9053 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 9053 schema +struct<> +-- !query 9053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9054 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 9054 schema +struct<> +-- !query 9054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9055 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 9055 schema +struct<> +-- !query 9055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9056 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 9056 schema +struct<> +-- !query 9056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9057 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 9057 schema +struct<> +-- !query 9057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9058 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 9058 schema +struct<> +-- !query 9058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9059 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9059 schema +struct<> +-- !query 9059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9060 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9060 schema +struct<> +-- !query 9060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9061 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 9061 schema +struct<> +-- !query 9061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9062 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 9062 schema +struct<> +-- !query 9062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9063 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 9063 schema +struct<> +-- !query 9063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9064 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 9064 schema +struct<> +-- !query 9064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9065 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 9065 schema +struct<> +-- !query 9065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9066 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 9066 schema +struct<> +-- !query 9066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9067 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 9067 schema +struct<> +-- !query 9067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9068 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 9068 schema +struct<> +-- !query 9068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9069 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 9069 schema +struct<> +-- !query 9069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9070 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 9070 schema +struct<> +-- !query 9070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9071 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9071 schema +struct<> +-- !query 9071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9072 +SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9072 schema +struct<> +-- !query 9072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9073 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 9073 schema +struct> +-- !query 9073 output +{1.0:1,2.0:2} + + +-- !query 9074 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 9074 schema +struct> +-- !query 9074 output +{1.0:1,2.0:2} + + +-- !query 9075 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 9075 schema +struct> +-- !query 9075 output +{1.0:1,2.0:2} + + +-- !query 9076 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 9076 schema +struct> +-- !query 9076 output +{1.0:1,2.0:2} + + +-- !query 9077 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 9077 schema +struct> +-- !query 9077 output +{1.0:1.0,2.0:2.0} + + +-- !query 9078 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 9078 schema +struct> +-- !query 9078 output +{1.0:1.0,2.0:2.0} + + +-- !query 9079 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 9079 schema +struct> +-- !query 9079 output +{1.0:1,2.0:2} + + +-- !query 9080 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 9080 schema +struct> +-- !query 9080 output +{1.0:"1",2.0:"2"} + + +-- !query 9081 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 9081 schema +struct<> +-- !query 9081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9082 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 9082 schema +struct<> +-- !query 9082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9083 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9083 schema +struct<> +-- !query 9083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9084 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9084 schema +struct<> +-- !query 9084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9085 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 9085 schema +struct> +-- !query 9085 output +{1.0:1,2.0:2} + + +-- !query 9086 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 9086 schema +struct> +-- !query 9086 output +{1.0:1,2.0:2} + + +-- !query 9087 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 9087 schema +struct> +-- !query 9087 output +{1.0:1,2.0:2} + + +-- !query 9088 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 9088 schema +struct> +-- !query 9088 output +{1.0:1,2.0:2} + + +-- !query 9089 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 9089 schema +struct> +-- !query 9089 output +{1.0:1.0,2.0:2.0} + + +-- !query 9090 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 9090 schema +struct> +-- !query 9090 output +{1.0:1.0,2.0:2.0} + + +-- !query 9091 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 9091 schema +struct> +-- !query 9091 output +{1.0:1,2.0:2} + + +-- !query 9092 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 9092 schema +struct> +-- !query 9092 output +{1.0:"1",2.0:"2"} + + +-- !query 9093 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 9093 schema +struct<> +-- !query 9093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9094 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 9094 schema +struct<> +-- !query 9094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9095 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9095 schema +struct<> +-- !query 9095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9096 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9096 schema +struct<> +-- !query 9096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9097 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 9097 schema +struct> +-- !query 9097 output +{1.0:1,2.0:2} + + +-- !query 9098 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 9098 schema +struct> +-- !query 9098 output +{1.0:1,2.0:2} + + +-- !query 9099 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 9099 schema +struct> +-- !query 9099 output +{1.0:1,2.0:2} + + +-- !query 9100 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 9100 schema +struct> +-- !query 9100 output +{1.0:1,2.0:2} + + +-- !query 9101 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 9101 schema +struct> +-- !query 9101 output +{1.0:1.0,2.0:2.0} + + +-- !query 9102 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 9102 schema +struct> +-- !query 9102 output +{1.0:1.0,2.0:2.0} + + +-- !query 9103 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 9103 schema +struct> +-- !query 9103 output +{1.0:1,2.0:2} + + +-- !query 9104 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 9104 schema +struct> +-- !query 9104 output +{1.0:"1",2.0:"2"} + + +-- !query 9105 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 9105 schema +struct<> +-- !query 9105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9106 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 9106 schema +struct<> +-- !query 9106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9107 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9107 schema +struct<> +-- !query 9107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9108 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9108 schema +struct<> +-- !query 9108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9109 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 9109 schema +struct> +-- !query 9109 output +{1.0:1,2.0:2} + + +-- !query 9110 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 9110 schema +struct> +-- !query 9110 output +{1.0:1,2.0:2} + + +-- !query 9111 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 9111 schema +struct> +-- !query 9111 output +{1.0:1,2.0:2} + + +-- !query 9112 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 9112 schema +struct> +-- !query 9112 output +{1.0:1,2.0:2} + + +-- !query 9113 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 9113 schema +struct> +-- !query 9113 output +{1.0:1.0,2.0:2.0} + + +-- !query 9114 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 9114 schema +struct> +-- !query 9114 output +{1.0:1.0,2.0:2.0} + + +-- !query 9115 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 9115 schema +struct> +-- !query 9115 output +{1.0:1,2.0:2} + + +-- !query 9116 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 9116 schema +struct> +-- !query 9116 output +{1.0:"1",2.0:"2"} + + +-- !query 9117 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 9117 schema +struct<> +-- !query 9117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9118 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 9118 schema +struct<> +-- !query 9118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9119 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9119 schema +struct<> +-- !query 9119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9120 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9120 schema +struct<> +-- !query 9120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9121 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 9121 schema +struct> +-- !query 9121 output +{1.0:1,2.0:2} + + +-- !query 9122 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 9122 schema +struct> +-- !query 9122 output +{1.0:1,2.0:2} + + +-- !query 9123 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 9123 schema +struct> +-- !query 9123 output +{1.0:1,2.0:2} + + +-- !query 9124 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 9124 schema +struct> +-- !query 9124 output +{1.0:1,2.0:2} + + +-- !query 9125 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 9125 schema +struct> +-- !query 9125 output +{1.0:1.0,2.0:2.0} + + +-- !query 9126 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 9126 schema +struct> +-- !query 9126 output +{1.0:1.0,2.0:2.0} + + +-- !query 9127 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 9127 schema +struct> +-- !query 9127 output +{1.0:1,2.0:2} + + +-- !query 9128 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 9128 schema +struct> +-- !query 9128 output +{1.0:"1",2.0:"2"} + + +-- !query 9129 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 9129 schema +struct<> +-- !query 9129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9130 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 9130 schema +struct<> +-- !query 9130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9131 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9131 schema +struct<> +-- !query 9131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9132 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9132 schema +struct<> +-- !query 9132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9133 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 9133 schema +struct> +-- !query 9133 output +{1.0:1,2.0:2} + + +-- !query 9134 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 9134 schema +struct> +-- !query 9134 output +{1.0:1,2.0:2} + + +-- !query 9135 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 9135 schema +struct> +-- !query 9135 output +{1.0:1,2.0:2} + + +-- !query 9136 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 9136 schema +struct> +-- !query 9136 output +{1.0:1,2.0:2} + + +-- !query 9137 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 9137 schema +struct> +-- !query 9137 output +{1.0:1.0,2.0:2.0} + + +-- !query 9138 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 9138 schema +struct> +-- !query 9138 output +{1.0:1.0,2.0:2.0} + + +-- !query 9139 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 9139 schema +struct> +-- !query 9139 output +{1.0:1,2.0:2} + + +-- !query 9140 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 9140 schema +struct> +-- !query 9140 output +{1.0:"1",2.0:"2"} + + +-- !query 9141 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 9141 schema +struct<> +-- !query 9141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9142 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 9142 schema +struct<> +-- !query 9142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9143 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9143 schema +struct<> +-- !query 9143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9144 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9144 schema +struct<> +-- !query 9144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9145 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 9145 schema +struct> +-- !query 9145 output +{1.0:1,2.0:2} + + +-- !query 9146 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 9146 schema +struct> +-- !query 9146 output +{1.0:1,2.0:2} + + +-- !query 9147 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 9147 schema +struct> +-- !query 9147 output +{1.0:1,2.0:2} + + +-- !query 9148 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 9148 schema +struct> +-- !query 9148 output +{1.0:1,2.0:2} + + +-- !query 9149 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 9149 schema +struct> +-- !query 9149 output +{1.0:1.0,2.0:2.0} + + +-- !query 9150 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 9150 schema +struct> +-- !query 9150 output +{1.0:1.0,2.0:2.0} + + +-- !query 9151 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 9151 schema +struct> +-- !query 9151 output +{1.0:1,2.0:2} + + +-- !query 9152 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 9152 schema +struct> +-- !query 9152 output +{1.0:"1",2.0:"2"} + + +-- !query 9153 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 9153 schema +struct<> +-- !query 9153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9154 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 9154 schema +struct<> +-- !query 9154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9155 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9155 schema +struct<> +-- !query 9155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9156 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9156 schema +struct<> +-- !query 9156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9157 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 9157 schema +struct> +-- !query 9157 output +{"1.0":1,"2":2} + + +-- !query 9158 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 9158 schema +struct> +-- !query 9158 output +{"1.0":1,"2":2} + + +-- !query 9159 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 9159 schema +struct> +-- !query 9159 output +{"1.0":1,"2":2} + + +-- !query 9160 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 9160 schema +struct> +-- !query 9160 output +{"1.0":1,"2":2} + + +-- !query 9161 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 9161 schema +struct> +-- !query 9161 output +{"1.0":1.0,"2":2.0} + + +-- !query 9162 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 9162 schema +struct> +-- !query 9162 output +{"1.0":1.0,"2":2.0} + + +-- !query 9163 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 9163 schema +struct> +-- !query 9163 output +{"1.0":1,"2":2} + + +-- !query 9164 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 9164 schema +struct> +-- !query 9164 output +{"1.0":"1","2":"2"} + + +-- !query 9165 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 9165 schema +struct<> +-- !query 9165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 9166 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 9166 schema +struct<> +-- !query 9166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 9167 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9167 schema +struct<> +-- !query 9167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 9168 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9168 schema +struct<> +-- !query 9168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 9169 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 9169 schema +struct<> +-- !query 9169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9170 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 9170 schema +struct<> +-- !query 9170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9171 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 9171 schema +struct<> +-- !query 9171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9172 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 9172 schema +struct<> +-- !query 9172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9173 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 9173 schema +struct<> +-- !query 9173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9174 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 9174 schema +struct<> +-- !query 9174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9175 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 9175 schema +struct<> +-- !query 9175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9176 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 9176 schema +struct<> +-- !query 9176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9177 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 9177 schema +struct<> +-- !query 9177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9178 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 9178 schema +struct<> +-- !query 9178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9179 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9179 schema +struct<> +-- !query 9179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9180 +SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9180 schema +struct<> +-- !query 9180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9181 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 9181 schema +struct<> +-- !query 9181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9182 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 9182 schema +struct<> +-- !query 9182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9183 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 9183 schema +struct<> +-- !query 9183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9184 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 9184 schema +struct<> +-- !query 9184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9185 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 9185 schema +struct<> +-- !query 9185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9186 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 9186 schema +struct<> +-- !query 9186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9187 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 9187 schema +struct<> +-- !query 9187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9188 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 9188 schema +struct<> +-- !query 9188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9189 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 9189 schema +struct<> +-- !query 9189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9190 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 9190 schema +struct<> +-- !query 9190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9191 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9191 schema +struct<> +-- !query 9191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9192 +SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9192 schema +struct<> +-- !query 9192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9193 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 9193 schema +struct<> +-- !query 9193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9194 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 9194 schema +struct<> +-- !query 9194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9195 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 9195 schema +struct<> +-- !query 9195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9196 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 9196 schema +struct<> +-- !query 9196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9197 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 9197 schema +struct<> +-- !query 9197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9198 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 9198 schema +struct<> +-- !query 9198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9199 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 9199 schema +struct<> +-- !query 9199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9200 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 9200 schema +struct<> +-- !query 9200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9201 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 9201 schema +struct<> +-- !query 9201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9202 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 9202 schema +struct<> +-- !query 9202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9203 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9203 schema +struct<> +-- !query 9203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9204 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9204 schema +struct<> +-- !query 9204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9205 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 9205 schema +struct<> +-- !query 9205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9206 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 9206 schema +struct<> +-- !query 9206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9207 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 9207 schema +struct<> +-- !query 9207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9208 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 9208 schema +struct<> +-- !query 9208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9209 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 9209 schema +struct<> +-- !query 9209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9210 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 9210 schema +struct<> +-- !query 9210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9211 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 9211 schema +struct<> +-- !query 9211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9212 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 9212 schema +struct<> +-- !query 9212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9213 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 9213 schema +struct<> +-- !query 9213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9214 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 9214 schema +struct<> +-- !query 9214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9215 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9215 schema +struct<> +-- !query 9215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9216 +SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9216 schema +struct<> +-- !query 9216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9217 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 9217 schema +struct> +-- !query 9217 output +{1.0:1,2.0:2} + + +-- !query 9218 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 9218 schema +struct> +-- !query 9218 output +{1.0:1,2.0:2} + + +-- !query 9219 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 9219 schema +struct> +-- !query 9219 output +{1.0:1,2.0:2} + + +-- !query 9220 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 9220 schema +struct> +-- !query 9220 output +{1.0:1,2.0:2} + + +-- !query 9221 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 9221 schema +struct> +-- !query 9221 output +{1.0:1.0,2.0:2.0} + + +-- !query 9222 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 9222 schema +struct> +-- !query 9222 output +{1.0:1.0,2.0:2.0} + + +-- !query 9223 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 9223 schema +struct> +-- !query 9223 output +{1.0:1,2.0:2} + + +-- !query 9224 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 9224 schema +struct> +-- !query 9224 output +{1.0:"1",2.0:"2"} + + +-- !query 9225 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 9225 schema +struct<> +-- !query 9225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9226 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 9226 schema +struct<> +-- !query 9226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9227 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9227 schema +struct<> +-- !query 9227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9228 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9228 schema +struct<> +-- !query 9228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9229 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 9229 schema +struct> +-- !query 9229 output +{1.0:1,2.0:2} + + +-- !query 9230 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 9230 schema +struct> +-- !query 9230 output +{1.0:1,2.0:2} + + +-- !query 9231 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 9231 schema +struct> +-- !query 9231 output +{1.0:1,2.0:2} + + +-- !query 9232 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 9232 schema +struct> +-- !query 9232 output +{1.0:1,2.0:2} + + +-- !query 9233 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 9233 schema +struct> +-- !query 9233 output +{1.0:1.0,2.0:2.0} + + +-- !query 9234 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 9234 schema +struct> +-- !query 9234 output +{1.0:1.0,2.0:2.0} + + +-- !query 9235 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 9235 schema +struct> +-- !query 9235 output +{1.0:1,2.0:2} + + +-- !query 9236 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 9236 schema +struct> +-- !query 9236 output +{1.0:"1",2.0:"2"} + + +-- !query 9237 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 9237 schema +struct<> +-- !query 9237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9238 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 9238 schema +struct<> +-- !query 9238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9239 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9239 schema +struct<> +-- !query 9239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9240 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9240 schema +struct<> +-- !query 9240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9241 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 9241 schema +struct> +-- !query 9241 output +{1.0:1,2.0:2} + + +-- !query 9242 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 9242 schema +struct> +-- !query 9242 output +{1.0:1,2.0:2} + + +-- !query 9243 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 9243 schema +struct> +-- !query 9243 output +{1.0:1,2.0:2} + + +-- !query 9244 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 9244 schema +struct> +-- !query 9244 output +{1.0:1,2.0:2} + + +-- !query 9245 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 9245 schema +struct> +-- !query 9245 output +{1.0:1.0,2.0:2.0} + + +-- !query 9246 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 9246 schema +struct> +-- !query 9246 output +{1.0:1.0,2.0:2.0} + + +-- !query 9247 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 9247 schema +struct> +-- !query 9247 output +{1.0:1,2.0:2} + + +-- !query 9248 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 9248 schema +struct> +-- !query 9248 output +{1.0:"1",2.0:"2"} + + +-- !query 9249 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 9249 schema +struct<> +-- !query 9249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9250 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 9250 schema +struct<> +-- !query 9250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9251 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9251 schema +struct<> +-- !query 9251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9252 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9252 schema +struct<> +-- !query 9252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9253 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 9253 schema +struct> +-- !query 9253 output +{1.0:1,2.0:2} + + +-- !query 9254 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 9254 schema +struct> +-- !query 9254 output +{1.0:1,2.0:2} + + +-- !query 9255 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 9255 schema +struct> +-- !query 9255 output +{1.0:1,2.0:2} + + +-- !query 9256 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 9256 schema +struct> +-- !query 9256 output +{1.0:1,2.0:2} + + +-- !query 9257 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 9257 schema +struct> +-- !query 9257 output +{1.0:1.0,2.0:2.0} + + +-- !query 9258 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 9258 schema +struct> +-- !query 9258 output +{1.0:1.0,2.0:2.0} + + +-- !query 9259 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 9259 schema +struct> +-- !query 9259 output +{1.0:1,2.0:2} + + +-- !query 9260 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 9260 schema +struct> +-- !query 9260 output +{1.0:"1",2.0:"2"} + + +-- !query 9261 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 9261 schema +struct<> +-- !query 9261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9262 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 9262 schema +struct<> +-- !query 9262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9263 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9263 schema +struct<> +-- !query 9263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9264 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9264 schema +struct<> +-- !query 9264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9265 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 9265 schema +struct> +-- !query 9265 output +{1.0:1,2.0:2} + + +-- !query 9266 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 9266 schema +struct> +-- !query 9266 output +{1.0:1,2.0:2} + + +-- !query 9267 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 9267 schema +struct> +-- !query 9267 output +{1.0:1,2.0:2} + + +-- !query 9268 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 9268 schema +struct> +-- !query 9268 output +{1.0:1,2.0:2} + + +-- !query 9269 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 9269 schema +struct> +-- !query 9269 output +{1.0:1.0,2.0:2.0} + + +-- !query 9270 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 9270 schema +struct> +-- !query 9270 output +{1.0:1.0,2.0:2.0} + + +-- !query 9271 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 9271 schema +struct> +-- !query 9271 output +{1.0:1,2.0:2} + + +-- !query 9272 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 9272 schema +struct> +-- !query 9272 output +{1.0:"1",2.0:"2"} + + +-- !query 9273 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 9273 schema +struct<> +-- !query 9273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9274 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 9274 schema +struct<> +-- !query 9274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9275 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9275 schema +struct<> +-- !query 9275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9276 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9276 schema +struct<> +-- !query 9276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9277 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 9277 schema +struct> +-- !query 9277 output +{1.0:1,2.0:2} + + +-- !query 9278 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 9278 schema +struct> +-- !query 9278 output +{1.0:1,2.0:2} + + +-- !query 9279 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 9279 schema +struct> +-- !query 9279 output +{1.0:1,2.0:2} + + +-- !query 9280 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 9280 schema +struct> +-- !query 9280 output +{1.0:1,2.0:2} + + +-- !query 9281 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 9281 schema +struct> +-- !query 9281 output +{1.0:1.0,2.0:2.0} + + +-- !query 9282 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 9282 schema +struct> +-- !query 9282 output +{1.0:1.0,2.0:2.0} + + +-- !query 9283 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 9283 schema +struct> +-- !query 9283 output +{1.0:1,2.0:2} + + +-- !query 9284 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 9284 schema +struct> +-- !query 9284 output +{1.0:"1",2.0:"2"} + + +-- !query 9285 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 9285 schema +struct<> +-- !query 9285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9286 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 9286 schema +struct<> +-- !query 9286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9287 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9287 schema +struct<> +-- !query 9287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9288 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9288 schema +struct<> +-- !query 9288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9289 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 9289 schema +struct> +-- !query 9289 output +{1.0:1,2.0:2} + + +-- !query 9290 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 9290 schema +struct> +-- !query 9290 output +{1.0:1,2.0:2} + + +-- !query 9291 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 9291 schema +struct> +-- !query 9291 output +{1.0:1,2.0:2} + + +-- !query 9292 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 9292 schema +struct> +-- !query 9292 output +{1.0:1,2.0:2} + + +-- !query 9293 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 9293 schema +struct> +-- !query 9293 output +{1.0:1.0,2.0:2.0} + + +-- !query 9294 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 9294 schema +struct> +-- !query 9294 output +{1.0:1.0,2.0:2.0} + + +-- !query 9295 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 9295 schema +struct> +-- !query 9295 output +{1.0:1,2.0:2} + + +-- !query 9296 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 9296 schema +struct> +-- !query 9296 output +{1.0:"1",2.0:"2"} + + +-- !query 9297 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 9297 schema +struct<> +-- !query 9297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9298 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 9298 schema +struct<> +-- !query 9298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9299 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9299 schema +struct<> +-- !query 9299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9300 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9300 schema +struct<> +-- !query 9300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9301 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 9301 schema +struct> +-- !query 9301 output +{"1.0":1,"2":2} + + +-- !query 9302 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 9302 schema +struct> +-- !query 9302 output +{"1.0":1,"2":2} + + +-- !query 9303 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 9303 schema +struct> +-- !query 9303 output +{"1.0":1,"2":2} + + +-- !query 9304 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 9304 schema +struct> +-- !query 9304 output +{"1.0":1,"2":2} + + +-- !query 9305 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 9305 schema +struct> +-- !query 9305 output +{"1.0":1.0,"2":2.0} + + +-- !query 9306 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 9306 schema +struct> +-- !query 9306 output +{"1.0":1.0,"2":2.0} + + +-- !query 9307 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 9307 schema +struct> +-- !query 9307 output +{"1.0":1,"2":2} + + +-- !query 9308 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 9308 schema +struct> +-- !query 9308 output +{"1.0":"1","2":"2"} + + +-- !query 9309 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 9309 schema +struct<> +-- !query 9309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 9310 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 9310 schema +struct<> +-- !query 9310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 9311 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9311 schema +struct<> +-- !query 9311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 9312 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9312 schema +struct<> +-- !query 9312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 9313 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 9313 schema +struct<> +-- !query 9313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9314 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 9314 schema +struct<> +-- !query 9314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9315 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 9315 schema +struct<> +-- !query 9315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9316 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 9316 schema +struct<> +-- !query 9316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9317 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 9317 schema +struct<> +-- !query 9317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9318 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 9318 schema +struct<> +-- !query 9318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9319 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 9319 schema +struct<> +-- !query 9319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9320 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 9320 schema +struct<> +-- !query 9320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9321 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 9321 schema +struct<> +-- !query 9321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9322 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 9322 schema +struct<> +-- !query 9322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9323 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9323 schema +struct<> +-- !query 9323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9324 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9324 schema +struct<> +-- !query 9324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9325 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 9325 schema +struct<> +-- !query 9325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9326 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 9326 schema +struct<> +-- !query 9326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9327 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 9327 schema +struct<> +-- !query 9327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9328 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 9328 schema +struct<> +-- !query 9328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9329 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 9329 schema +struct<> +-- !query 9329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9330 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 9330 schema +struct<> +-- !query 9330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9331 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 9331 schema +struct<> +-- !query 9331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9332 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 9332 schema +struct<> +-- !query 9332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9333 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 9333 schema +struct<> +-- !query 9333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9334 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 9334 schema +struct<> +-- !query 9334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9335 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9335 schema +struct<> +-- !query 9335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9336 +SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9336 schema +struct<> +-- !query 9336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9337 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 9337 schema +struct<> +-- !query 9337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9338 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 9338 schema +struct<> +-- !query 9338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9339 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 9339 schema +struct<> +-- !query 9339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9340 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 9340 schema +struct<> +-- !query 9340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9341 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 9341 schema +struct<> +-- !query 9341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9342 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 9342 schema +struct<> +-- !query 9342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9343 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 9343 schema +struct<> +-- !query 9343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9344 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 9344 schema +struct<> +-- !query 9344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9345 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 9345 schema +struct<> +-- !query 9345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9346 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 9346 schema +struct<> +-- !query 9346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9347 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9347 schema +struct<> +-- !query 9347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9348 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9348 schema +struct<> +-- !query 9348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9349 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 9349 schema +struct<> +-- !query 9349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9350 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 9350 schema +struct<> +-- !query 9350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9351 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 9351 schema +struct<> +-- !query 9351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9352 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 9352 schema +struct<> +-- !query 9352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9353 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 9353 schema +struct<> +-- !query 9353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9354 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 9354 schema +struct<> +-- !query 9354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9355 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 9355 schema +struct<> +-- !query 9355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9356 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 9356 schema +struct<> +-- !query 9356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9357 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 9357 schema +struct<> +-- !query 9357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9358 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 9358 schema +struct<> +-- !query 9358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9359 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9359 schema +struct<> +-- !query 9359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9360 +SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9360 schema +struct<> +-- !query 9360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9361 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 9361 schema +struct> +-- !query 9361 output +{1.0:1.0,2.0:2.0} + + +-- !query 9362 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 9362 schema +struct> +-- !query 9362 output +{1.0:1.0,2.0:2.0} + + +-- !query 9363 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 9363 schema +struct> +-- !query 9363 output +{1.0:1.0,2.0:2.0} + + +-- !query 9364 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 9364 schema +struct> +-- !query 9364 output +{1.0:1.0,2.0:2.0} + + +-- !query 9365 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 9365 schema +struct> +-- !query 9365 output +{1.0:1.0,2.0:2.0} + + +-- !query 9366 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 9366 schema +struct> +-- !query 9366 output +{1.0:1.0,2.0:2.0} + + +-- !query 9367 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 9367 schema +struct> +-- !query 9367 output +{1.0:1.0,2.0:2.0} + + +-- !query 9368 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 9368 schema +struct> +-- !query 9368 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9369 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 9369 schema +struct<> +-- !query 9369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9370 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 9370 schema +struct<> +-- !query 9370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9371 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9371 schema +struct<> +-- !query 9371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9372 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9372 schema +struct<> +-- !query 9372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9373 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 9373 schema +struct> +-- !query 9373 output +{1.0:1.0,2.0:2.0} + + +-- !query 9374 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 9374 schema +struct> +-- !query 9374 output +{1.0:1.0,2.0:2.0} + + +-- !query 9375 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 9375 schema +struct> +-- !query 9375 output +{1.0:1.0,2.0:2.0} + + +-- !query 9376 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 9376 schema +struct> +-- !query 9376 output +{1.0:1.0,2.0:2.0} + + +-- !query 9377 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 9377 schema +struct> +-- !query 9377 output +{1.0:1.0,2.0:2.0} + + +-- !query 9378 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 9378 schema +struct> +-- !query 9378 output +{1.0:1.0,2.0:2.0} + + +-- !query 9379 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 9379 schema +struct> +-- !query 9379 output +{1.0:1.0,2.0:2.0} + + +-- !query 9380 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 9380 schema +struct> +-- !query 9380 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9381 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 9381 schema +struct<> +-- !query 9381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9382 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 9382 schema +struct<> +-- !query 9382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9383 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9383 schema +struct<> +-- !query 9383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9384 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9384 schema +struct<> +-- !query 9384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9385 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 9385 schema +struct> +-- !query 9385 output +{1.0:1.0,2.0:2.0} + + +-- !query 9386 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 9386 schema +struct> +-- !query 9386 output +{1.0:1.0,2.0:2.0} + + +-- !query 9387 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 9387 schema +struct> +-- !query 9387 output +{1.0:1.0,2.0:2.0} + + +-- !query 9388 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 9388 schema +struct> +-- !query 9388 output +{1.0:1.0,2.0:2.0} + + +-- !query 9389 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 9389 schema +struct> +-- !query 9389 output +{1.0:1.0,2.0:2.0} + + +-- !query 9390 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 9390 schema +struct> +-- !query 9390 output +{1.0:1.0,2.0:2.0} + + +-- !query 9391 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 9391 schema +struct> +-- !query 9391 output +{1.0:1.0,2.0:2.0} + + +-- !query 9392 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 9392 schema +struct> +-- !query 9392 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9393 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 9393 schema +struct<> +-- !query 9393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9394 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 9394 schema +struct<> +-- !query 9394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9395 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9395 schema +struct<> +-- !query 9395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9396 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9396 schema +struct<> +-- !query 9396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9397 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 9397 schema +struct> +-- !query 9397 output +{1.0:1.0,2.0:2.0} + + +-- !query 9398 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 9398 schema +struct> +-- !query 9398 output +{1.0:1.0,2.0:2.0} + + +-- !query 9399 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 9399 schema +struct> +-- !query 9399 output +{1.0:1.0,2.0:2.0} + + +-- !query 9400 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 9400 schema +struct> +-- !query 9400 output +{1.0:1.0,2.0:2.0} + + +-- !query 9401 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 9401 schema +struct> +-- !query 9401 output +{1.0:1.0,2.0:2.0} + + +-- !query 9402 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 9402 schema +struct> +-- !query 9402 output +{1.0:1.0,2.0:2.0} + + +-- !query 9403 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 9403 schema +struct> +-- !query 9403 output +{1.0:1.0,2.0:2.0} + + +-- !query 9404 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 9404 schema +struct> +-- !query 9404 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9405 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 9405 schema +struct<> +-- !query 9405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9406 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 9406 schema +struct<> +-- !query 9406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9407 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9407 schema +struct<> +-- !query 9407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9408 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9408 schema +struct<> +-- !query 9408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9409 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 9409 schema +struct> +-- !query 9409 output +{1.0:1.0,2.0:2.0} + + +-- !query 9410 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 9410 schema +struct> +-- !query 9410 output +{1.0:1.0,2.0:2.0} + + +-- !query 9411 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 9411 schema +struct> +-- !query 9411 output +{1.0:1.0,2.0:2.0} + + +-- !query 9412 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 9412 schema +struct> +-- !query 9412 output +{1.0:1.0,2.0:2.0} + + +-- !query 9413 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 9413 schema +struct> +-- !query 9413 output +{1.0:1.0,2.0:2.0} + + +-- !query 9414 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 9414 schema +struct> +-- !query 9414 output +{1.0:1.0,2.0:2.0} + + +-- !query 9415 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 9415 schema +struct> +-- !query 9415 output +{1.0:1.0,2.0:2.0} + + +-- !query 9416 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 9416 schema +struct> +-- !query 9416 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9417 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 9417 schema +struct<> +-- !query 9417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9418 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 9418 schema +struct<> +-- !query 9418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9419 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9419 schema +struct<> +-- !query 9419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9420 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9420 schema +struct<> +-- !query 9420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9421 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 9421 schema +struct> +-- !query 9421 output +{1.0:1.0,2.0:2.0} + + +-- !query 9422 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 9422 schema +struct> +-- !query 9422 output +{1.0:1.0,2.0:2.0} + + +-- !query 9423 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 9423 schema +struct> +-- !query 9423 output +{1.0:1.0,2.0:2.0} + + +-- !query 9424 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 9424 schema +struct> +-- !query 9424 output +{1.0:1.0,2.0:2.0} + + +-- !query 9425 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 9425 schema +struct> +-- !query 9425 output +{1.0:1.0,2.0:2.0} + + +-- !query 9426 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 9426 schema +struct> +-- !query 9426 output +{1.0:1.0,2.0:2.0} + + +-- !query 9427 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 9427 schema +struct> +-- !query 9427 output +{1.0:1.0,2.0:2.0} + + +-- !query 9428 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 9428 schema +struct> +-- !query 9428 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9429 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 9429 schema +struct<> +-- !query 9429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9430 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 9430 schema +struct<> +-- !query 9430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9431 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9431 schema +struct<> +-- !query 9431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9432 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9432 schema +struct<> +-- !query 9432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9433 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 9433 schema +struct> +-- !query 9433 output +{1.0:1.0,2.0:2.0} + + +-- !query 9434 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 9434 schema +struct> +-- !query 9434 output +{1.0:1.0,2.0:2.0} + + +-- !query 9435 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 9435 schema +struct> +-- !query 9435 output +{1.0:1.0,2.0:2.0} + + +-- !query 9436 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 9436 schema +struct> +-- !query 9436 output +{1.0:1.0,2.0:2.0} + + +-- !query 9437 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 9437 schema +struct> +-- !query 9437 output +{1.0:1.0,2.0:2.0} + + +-- !query 9438 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 9438 schema +struct> +-- !query 9438 output +{1.0:1.0,2.0:2.0} + + +-- !query 9439 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 9439 schema +struct> +-- !query 9439 output +{1.0:1.0,2.0:2.0} + + +-- !query 9440 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 9440 schema +struct> +-- !query 9440 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9441 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 9441 schema +struct<> +-- !query 9441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9442 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 9442 schema +struct<> +-- !query 9442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9443 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9443 schema +struct<> +-- !query 9443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9444 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9444 schema +struct<> +-- !query 9444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9445 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 9445 schema +struct> +-- !query 9445 output +{"1.0":1.0,"2":2.0} + + +-- !query 9446 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 9446 schema +struct> +-- !query 9446 output +{"1.0":1.0,"2":2.0} + + +-- !query 9447 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 9447 schema +struct> +-- !query 9447 output +{"1.0":1.0,"2":2.0} + + +-- !query 9448 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 9448 schema +struct> +-- !query 9448 output +{"1.0":1.0,"2":2.0} + + +-- !query 9449 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 9449 schema +struct> +-- !query 9449 output +{"1.0":1.0,"2":2.0} + + +-- !query 9450 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 9450 schema +struct> +-- !query 9450 output +{"1.0":1.0,"2":2.0} + + +-- !query 9451 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 9451 schema +struct> +-- !query 9451 output +{"1.0":1.0,"2":2.0} + + +-- !query 9452 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 9452 schema +struct> +-- !query 9452 output +{"1.0":"1.0","2":"2"} + + +-- !query 9453 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 9453 schema +struct<> +-- !query 9453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 9454 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 9454 schema +struct<> +-- !query 9454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 9455 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9455 schema +struct<> +-- !query 9455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 9456 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9456 schema +struct<> +-- !query 9456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 9457 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 9457 schema +struct<> +-- !query 9457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9458 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 9458 schema +struct<> +-- !query 9458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9459 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 9459 schema +struct<> +-- !query 9459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9460 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 9460 schema +struct<> +-- !query 9460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9461 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 9461 schema +struct<> +-- !query 9461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9462 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 9462 schema +struct<> +-- !query 9462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9463 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 9463 schema +struct<> +-- !query 9463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9464 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 9464 schema +struct<> +-- !query 9464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9465 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 9465 schema +struct<> +-- !query 9465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9466 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 9466 schema +struct<> +-- !query 9466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9467 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9467 schema +struct<> +-- !query 9467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9468 +SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9468 schema +struct<> +-- !query 9468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9469 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 9469 schema +struct<> +-- !query 9469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9470 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 9470 schema +struct<> +-- !query 9470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9471 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 9471 schema +struct<> +-- !query 9471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9472 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 9472 schema +struct<> +-- !query 9472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9473 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 9473 schema +struct<> +-- !query 9473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9474 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 9474 schema +struct<> +-- !query 9474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9475 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 9475 schema +struct<> +-- !query 9475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9476 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 9476 schema +struct<> +-- !query 9476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9477 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 9477 schema +struct<> +-- !query 9477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9478 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 9478 schema +struct<> +-- !query 9478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9479 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9479 schema +struct<> +-- !query 9479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9480 +SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9480 schema +struct<> +-- !query 9480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9481 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 9481 schema +struct<> +-- !query 9481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9482 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 9482 schema +struct<> +-- !query 9482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9483 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 9483 schema +struct<> +-- !query 9483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9484 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 9484 schema +struct<> +-- !query 9484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9485 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 9485 schema +struct<> +-- !query 9485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9486 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 9486 schema +struct<> +-- !query 9486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9487 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 9487 schema +struct<> +-- !query 9487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9488 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 9488 schema +struct<> +-- !query 9488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9489 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 9489 schema +struct<> +-- !query 9489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9490 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 9490 schema +struct<> +-- !query 9490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9491 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9491 schema +struct<> +-- !query 9491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9492 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9492 schema +struct<> +-- !query 9492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9493 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 9493 schema +struct<> +-- !query 9493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9494 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 9494 schema +struct<> +-- !query 9494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9495 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 9495 schema +struct<> +-- !query 9495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9496 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 9496 schema +struct<> +-- !query 9496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9497 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 9497 schema +struct<> +-- !query 9497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9498 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 9498 schema +struct<> +-- !query 9498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9499 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 9499 schema +struct<> +-- !query 9499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9500 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 9500 schema +struct<> +-- !query 9500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9501 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 9501 schema +struct<> +-- !query 9501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9502 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 9502 schema +struct<> +-- !query 9502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9503 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9503 schema +struct<> +-- !query 9503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9504 +SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9504 schema +struct<> +-- !query 9504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9505 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 9505 schema +struct> +-- !query 9505 output +{1.0:1.0,2.0:2.0} + + +-- !query 9506 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 9506 schema +struct> +-- !query 9506 output +{1.0:1.0,2.0:2.0} + + +-- !query 9507 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 9507 schema +struct> +-- !query 9507 output +{1.0:1.0,2.0:2.0} + + +-- !query 9508 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 9508 schema +struct> +-- !query 9508 output +{1.0:1.0,2.0:2.0} + + +-- !query 9509 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 9509 schema +struct> +-- !query 9509 output +{1.0:1.0,2.0:2.0} + + +-- !query 9510 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 9510 schema +struct> +-- !query 9510 output +{1.0:1.0,2.0:2.0} + + +-- !query 9511 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 9511 schema +struct> +-- !query 9511 output +{1.0:1.0,2.0:2.0} + + +-- !query 9512 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 9512 schema +struct> +-- !query 9512 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9513 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 9513 schema +struct<> +-- !query 9513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9514 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 9514 schema +struct<> +-- !query 9514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9515 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9515 schema +struct<> +-- !query 9515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9516 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9516 schema +struct<> +-- !query 9516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9517 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 9517 schema +struct> +-- !query 9517 output +{1.0:1.0,2.0:2.0} + + +-- !query 9518 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 9518 schema +struct> +-- !query 9518 output +{1.0:1.0,2.0:2.0} + + +-- !query 9519 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 9519 schema +struct> +-- !query 9519 output +{1.0:1.0,2.0:2.0} + + +-- !query 9520 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 9520 schema +struct> +-- !query 9520 output +{1.0:1.0,2.0:2.0} + + +-- !query 9521 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 9521 schema +struct> +-- !query 9521 output +{1.0:1.0,2.0:2.0} + + +-- !query 9522 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 9522 schema +struct> +-- !query 9522 output +{1.0:1.0,2.0:2.0} + + +-- !query 9523 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 9523 schema +struct> +-- !query 9523 output +{1.0:1.0,2.0:2.0} + + +-- !query 9524 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 9524 schema +struct> +-- !query 9524 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9525 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 9525 schema +struct<> +-- !query 9525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9526 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 9526 schema +struct<> +-- !query 9526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9527 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9527 schema +struct<> +-- !query 9527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9528 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9528 schema +struct<> +-- !query 9528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9529 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 9529 schema +struct> +-- !query 9529 output +{1.0:1.0,2.0:2.0} + + +-- !query 9530 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 9530 schema +struct> +-- !query 9530 output +{1.0:1.0,2.0:2.0} + + +-- !query 9531 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 9531 schema +struct> +-- !query 9531 output +{1.0:1.0,2.0:2.0} + + +-- !query 9532 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 9532 schema +struct> +-- !query 9532 output +{1.0:1.0,2.0:2.0} + + +-- !query 9533 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 9533 schema +struct> +-- !query 9533 output +{1.0:1.0,2.0:2.0} + + +-- !query 9534 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 9534 schema +struct> +-- !query 9534 output +{1.0:1.0,2.0:2.0} + + +-- !query 9535 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 9535 schema +struct> +-- !query 9535 output +{1.0:1.0,2.0:2.0} + + +-- !query 9536 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 9536 schema +struct> +-- !query 9536 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9537 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 9537 schema +struct<> +-- !query 9537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9538 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 9538 schema +struct<> +-- !query 9538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9539 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9539 schema +struct<> +-- !query 9539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9540 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9540 schema +struct<> +-- !query 9540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9541 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 9541 schema +struct> +-- !query 9541 output +{1.0:1.0,2.0:2.0} + + +-- !query 9542 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 9542 schema +struct> +-- !query 9542 output +{1.0:1.0,2.0:2.0} + + +-- !query 9543 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 9543 schema +struct> +-- !query 9543 output +{1.0:1.0,2.0:2.0} + + +-- !query 9544 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 9544 schema +struct> +-- !query 9544 output +{1.0:1.0,2.0:2.0} + + +-- !query 9545 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 9545 schema +struct> +-- !query 9545 output +{1.0:1.0,2.0:2.0} + + +-- !query 9546 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 9546 schema +struct> +-- !query 9546 output +{1.0:1.0,2.0:2.0} + + +-- !query 9547 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 9547 schema +struct> +-- !query 9547 output +{1.0:1.0,2.0:2.0} + + +-- !query 9548 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 9548 schema +struct> +-- !query 9548 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9549 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 9549 schema +struct<> +-- !query 9549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9550 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 9550 schema +struct<> +-- !query 9550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9551 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9551 schema +struct<> +-- !query 9551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9552 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9552 schema +struct<> +-- !query 9552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9553 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 9553 schema +struct> +-- !query 9553 output +{1.0:1.0,2.0:2.0} + + +-- !query 9554 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 9554 schema +struct> +-- !query 9554 output +{1.0:1.0,2.0:2.0} + + +-- !query 9555 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 9555 schema +struct> +-- !query 9555 output +{1.0:1.0,2.0:2.0} + + +-- !query 9556 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 9556 schema +struct> +-- !query 9556 output +{1.0:1.0,2.0:2.0} + + +-- !query 9557 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 9557 schema +struct> +-- !query 9557 output +{1.0:1.0,2.0:2.0} + + +-- !query 9558 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 9558 schema +struct> +-- !query 9558 output +{1.0:1.0,2.0:2.0} + + +-- !query 9559 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 9559 schema +struct> +-- !query 9559 output +{1.0:1.0,2.0:2.0} + + +-- !query 9560 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 9560 schema +struct> +-- !query 9560 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9561 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 9561 schema +struct<> +-- !query 9561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9562 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 9562 schema +struct<> +-- !query 9562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9563 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9563 schema +struct<> +-- !query 9563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9564 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9564 schema +struct<> +-- !query 9564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9565 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 9565 schema +struct> +-- !query 9565 output +{1.0:1.0,2.0:2.0} + + +-- !query 9566 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 9566 schema +struct> +-- !query 9566 output +{1.0:1.0,2.0:2.0} + + +-- !query 9567 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 9567 schema +struct> +-- !query 9567 output +{1.0:1.0,2.0:2.0} + + +-- !query 9568 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 9568 schema +struct> +-- !query 9568 output +{1.0:1.0,2.0:2.0} + + +-- !query 9569 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 9569 schema +struct> +-- !query 9569 output +{1.0:1.0,2.0:2.0} + + +-- !query 9570 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 9570 schema +struct> +-- !query 9570 output +{1.0:1.0,2.0:2.0} + + +-- !query 9571 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 9571 schema +struct> +-- !query 9571 output +{1.0:1.0,2.0:2.0} + + +-- !query 9572 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 9572 schema +struct> +-- !query 9572 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9573 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 9573 schema +struct<> +-- !query 9573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9574 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 9574 schema +struct<> +-- !query 9574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9575 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9575 schema +struct<> +-- !query 9575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9576 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9576 schema +struct<> +-- !query 9576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9577 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 9577 schema +struct> +-- !query 9577 output +{1.0:1.0,2.0:2.0} + + +-- !query 9578 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 9578 schema +struct> +-- !query 9578 output +{1.0:1.0,2.0:2.0} + + +-- !query 9579 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 9579 schema +struct> +-- !query 9579 output +{1.0:1.0,2.0:2.0} + + +-- !query 9580 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 9580 schema +struct> +-- !query 9580 output +{1.0:1.0,2.0:2.0} + + +-- !query 9581 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 9581 schema +struct> +-- !query 9581 output +{1.0:1.0,2.0:2.0} + + +-- !query 9582 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 9582 schema +struct> +-- !query 9582 output +{1.0:1.0,2.0:2.0} + + +-- !query 9583 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 9583 schema +struct> +-- !query 9583 output +{1.0:1.0,2.0:2.0} + + +-- !query 9584 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 9584 schema +struct> +-- !query 9584 output +{1.0:"1.0",2.0:"2"} + + +-- !query 9585 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 9585 schema +struct<> +-- !query 9585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9586 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 9586 schema +struct<> +-- !query 9586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9587 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9587 schema +struct<> +-- !query 9587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9588 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9588 schema +struct<> +-- !query 9588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9589 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 9589 schema +struct> +-- !query 9589 output +{"1.0":1.0,"2":2.0} + + +-- !query 9590 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 9590 schema +struct> +-- !query 9590 output +{"1.0":1.0,"2":2.0} + + +-- !query 9591 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 9591 schema +struct> +-- !query 9591 output +{"1.0":1.0,"2":2.0} + + +-- !query 9592 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 9592 schema +struct> +-- !query 9592 output +{"1.0":1.0,"2":2.0} + + +-- !query 9593 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 9593 schema +struct> +-- !query 9593 output +{"1.0":1.0,"2":2.0} + + +-- !query 9594 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 9594 schema +struct> +-- !query 9594 output +{"1.0":1.0,"2":2.0} + + +-- !query 9595 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 9595 schema +struct> +-- !query 9595 output +{"1.0":1.0,"2":2.0} + + +-- !query 9596 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 9596 schema +struct> +-- !query 9596 output +{"1.0":"1.0","2":"2"} + + +-- !query 9597 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 9597 schema +struct<> +-- !query 9597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9598 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 9598 schema +struct<> +-- !query 9598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9599 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9599 schema +struct<> +-- !query 9599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9600 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9600 schema +struct<> +-- !query 9600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9601 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 9601 schema +struct<> +-- !query 9601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9602 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 9602 schema +struct<> +-- !query 9602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9603 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 9603 schema +struct<> +-- !query 9603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9604 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 9604 schema +struct<> +-- !query 9604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9605 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 9605 schema +struct<> +-- !query 9605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9606 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 9606 schema +struct<> +-- !query 9606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9607 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 9607 schema +struct<> +-- !query 9607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9608 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 9608 schema +struct<> +-- !query 9608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9609 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 9609 schema +struct<> +-- !query 9609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9610 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 9610 schema +struct<> +-- !query 9610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9611 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9611 schema +struct<> +-- !query 9611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9612 +SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9612 schema +struct<> +-- !query 9612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9613 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 9613 schema +struct<> +-- !query 9613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9614 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 9614 schema +struct<> +-- !query 9614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9615 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 9615 schema +struct<> +-- !query 9615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9616 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 9616 schema +struct<> +-- !query 9616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9617 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 9617 schema +struct<> +-- !query 9617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9618 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 9618 schema +struct<> +-- !query 9618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9619 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 9619 schema +struct<> +-- !query 9619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9620 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 9620 schema +struct<> +-- !query 9620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9621 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 9621 schema +struct<> +-- !query 9621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9622 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 9622 schema +struct<> +-- !query 9622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9623 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9623 schema +struct<> +-- !query 9623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9624 +SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9624 schema +struct<> +-- !query 9624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9625 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 9625 schema +struct<> +-- !query 9625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9626 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 9626 schema +struct<> +-- !query 9626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9627 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 9627 schema +struct<> +-- !query 9627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9628 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 9628 schema +struct<> +-- !query 9628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9629 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 9629 schema +struct<> +-- !query 9629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9630 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 9630 schema +struct<> +-- !query 9630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9631 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 9631 schema +struct<> +-- !query 9631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9632 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 9632 schema +struct<> +-- !query 9632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9633 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 9633 schema +struct<> +-- !query 9633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9634 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 9634 schema +struct<> +-- !query 9634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9635 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9635 schema +struct<> +-- !query 9635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9636 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9636 schema +struct<> +-- !query 9636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9637 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 9637 schema +struct<> +-- !query 9637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9638 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 9638 schema +struct<> +-- !query 9638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9639 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 9639 schema +struct<> +-- !query 9639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9640 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 9640 schema +struct<> +-- !query 9640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9641 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 9641 schema +struct<> +-- !query 9641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9642 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 9642 schema +struct<> +-- !query 9642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9643 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 9643 schema +struct<> +-- !query 9643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9644 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 9644 schema +struct<> +-- !query 9644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9645 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 9645 schema +struct<> +-- !query 9645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9646 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 9646 schema +struct<> +-- !query 9646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9647 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9647 schema +struct<> +-- !query 9647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9648 +SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9648 schema +struct<> +-- !query 9648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9649 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 9649 schema +struct> +-- !query 9649 output +{1.0:1,2.0:2} + + +-- !query 9650 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 9650 schema +struct> +-- !query 9650 output +{1.0:1,2.0:2} + + +-- !query 9651 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 9651 schema +struct> +-- !query 9651 output +{1.0:1,2.0:2} + + +-- !query 9652 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 9652 schema +struct> +-- !query 9652 output +{1.0:1,2.0:2} + + +-- !query 9653 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 9653 schema +struct> +-- !query 9653 output +{1.0:1.0,2.0:2.0} + + +-- !query 9654 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 9654 schema +struct> +-- !query 9654 output +{1.0:1.0,2.0:2.0} + + +-- !query 9655 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 9655 schema +struct> +-- !query 9655 output +{1.0:1,2.0:2} + + +-- !query 9656 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 9656 schema +struct> +-- !query 9656 output +{1.0:"1",2.0:"2"} + + +-- !query 9657 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 9657 schema +struct<> +-- !query 9657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9658 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 9658 schema +struct<> +-- !query 9658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9659 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9659 schema +struct<> +-- !query 9659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9660 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9660 schema +struct<> +-- !query 9660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9661 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 9661 schema +struct> +-- !query 9661 output +{1.0:1,2.0:2} + + +-- !query 9662 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 9662 schema +struct> +-- !query 9662 output +{1.0:1,2.0:2} + + +-- !query 9663 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 9663 schema +struct> +-- !query 9663 output +{1.0:1,2.0:2} + + +-- !query 9664 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 9664 schema +struct> +-- !query 9664 output +{1.0:1,2.0:2} + + +-- !query 9665 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 9665 schema +struct> +-- !query 9665 output +{1.0:1.0,2.0:2.0} + + +-- !query 9666 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 9666 schema +struct> +-- !query 9666 output +{1.0:1.0,2.0:2.0} + + +-- !query 9667 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 9667 schema +struct> +-- !query 9667 output +{1.0:1,2.0:2} + + +-- !query 9668 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 9668 schema +struct> +-- !query 9668 output +{1.0:"1",2.0:"2"} + + +-- !query 9669 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 9669 schema +struct<> +-- !query 9669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9670 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 9670 schema +struct<> +-- !query 9670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9671 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9671 schema +struct<> +-- !query 9671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9672 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9672 schema +struct<> +-- !query 9672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9673 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 9673 schema +struct> +-- !query 9673 output +{1.0:1,2.0:2} + + +-- !query 9674 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 9674 schema +struct> +-- !query 9674 output +{1.0:1,2.0:2} + + +-- !query 9675 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 9675 schema +struct> +-- !query 9675 output +{1.0:1,2.0:2} + + +-- !query 9676 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 9676 schema +struct> +-- !query 9676 output +{1.0:1,2.0:2} + + +-- !query 9677 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 9677 schema +struct> +-- !query 9677 output +{1.0:1.0,2.0:2.0} + + +-- !query 9678 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 9678 schema +struct> +-- !query 9678 output +{1.0:1.0,2.0:2.0} + + +-- !query 9679 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 9679 schema +struct> +-- !query 9679 output +{1.0:1,2.0:2} + + +-- !query 9680 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 9680 schema +struct> +-- !query 9680 output +{1.0:"1",2.0:"2"} + + +-- !query 9681 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 9681 schema +struct<> +-- !query 9681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9682 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 9682 schema +struct<> +-- !query 9682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9683 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9683 schema +struct<> +-- !query 9683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9684 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9684 schema +struct<> +-- !query 9684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9685 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 9685 schema +struct> +-- !query 9685 output +{1.0:1,2.0:2} + + +-- !query 9686 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 9686 schema +struct> +-- !query 9686 output +{1.0:1,2.0:2} + + +-- !query 9687 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 9687 schema +struct> +-- !query 9687 output +{1.0:1,2.0:2} + + +-- !query 9688 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 9688 schema +struct> +-- !query 9688 output +{1.0:1,2.0:2} + + +-- !query 9689 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 9689 schema +struct> +-- !query 9689 output +{1.0:1.0,2.0:2.0} + + +-- !query 9690 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 9690 schema +struct> +-- !query 9690 output +{1.0:1.0,2.0:2.0} + + +-- !query 9691 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 9691 schema +struct> +-- !query 9691 output +{1.0:1,2.0:2} + + +-- !query 9692 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 9692 schema +struct> +-- !query 9692 output +{1.0:"1",2.0:"2"} + + +-- !query 9693 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 9693 schema +struct<> +-- !query 9693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9694 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 9694 schema +struct<> +-- !query 9694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9695 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9695 schema +struct<> +-- !query 9695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9696 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9696 schema +struct<> +-- !query 9696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9697 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 9697 schema +struct> +-- !query 9697 output +{1.0:1,2.0:2} + + +-- !query 9698 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 9698 schema +struct> +-- !query 9698 output +{1.0:1,2.0:2} + + +-- !query 9699 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 9699 schema +struct> +-- !query 9699 output +{1.0:1,2.0:2} + + +-- !query 9700 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 9700 schema +struct> +-- !query 9700 output +{1.0:1,2.0:2} + + +-- !query 9701 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 9701 schema +struct> +-- !query 9701 output +{1.0:1.0,2.0:2.0} + + +-- !query 9702 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 9702 schema +struct> +-- !query 9702 output +{1.0:1.0,2.0:2.0} + + +-- !query 9703 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 9703 schema +struct> +-- !query 9703 output +{1.0:1,2.0:2} + + +-- !query 9704 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 9704 schema +struct> +-- !query 9704 output +{1.0:"1",2.0:"2"} + + +-- !query 9705 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 9705 schema +struct<> +-- !query 9705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9706 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 9706 schema +struct<> +-- !query 9706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9707 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9707 schema +struct<> +-- !query 9707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9708 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9708 schema +struct<> +-- !query 9708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9709 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 9709 schema +struct> +-- !query 9709 output +{1.0:1,2.0:2} + + +-- !query 9710 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 9710 schema +struct> +-- !query 9710 output +{1.0:1,2.0:2} + + +-- !query 9711 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 9711 schema +struct> +-- !query 9711 output +{1.0:1,2.0:2} + + +-- !query 9712 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 9712 schema +struct> +-- !query 9712 output +{1.0:1,2.0:2} + + +-- !query 9713 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 9713 schema +struct> +-- !query 9713 output +{1.0:1.0,2.0:2.0} + + +-- !query 9714 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 9714 schema +struct> +-- !query 9714 output +{1.0:1.0,2.0:2.0} + + +-- !query 9715 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 9715 schema +struct> +-- !query 9715 output +{1.0:1,2.0:2} + + +-- !query 9716 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 9716 schema +struct> +-- !query 9716 output +{1.0:"1",2.0:"2"} + + +-- !query 9717 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 9717 schema +struct<> +-- !query 9717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9718 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 9718 schema +struct<> +-- !query 9718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9719 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9719 schema +struct<> +-- !query 9719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9720 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9720 schema +struct<> +-- !query 9720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9721 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 9721 schema +struct> +-- !query 9721 output +{1.0:1,2.0:2} + + +-- !query 9722 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 9722 schema +struct> +-- !query 9722 output +{1.0:1,2.0:2} + + +-- !query 9723 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 9723 schema +struct> +-- !query 9723 output +{1.0:1,2.0:2} + + +-- !query 9724 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 9724 schema +struct> +-- !query 9724 output +{1.0:1,2.0:2} + + +-- !query 9725 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 9725 schema +struct> +-- !query 9725 output +{1.0:1.0,2.0:2.0} + + +-- !query 9726 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 9726 schema +struct> +-- !query 9726 output +{1.0:1.0,2.0:2.0} + + +-- !query 9727 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 9727 schema +struct> +-- !query 9727 output +{1.0:1,2.0:2} + + +-- !query 9728 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 9728 schema +struct> +-- !query 9728 output +{1.0:"1",2.0:"2"} + + +-- !query 9729 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 9729 schema +struct<> +-- !query 9729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9730 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 9730 schema +struct<> +-- !query 9730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9731 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9731 schema +struct<> +-- !query 9731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9732 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9732 schema +struct<> +-- !query 9732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9733 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 9733 schema +struct> +-- !query 9733 output +{"1.0":1,"2":2} + + +-- !query 9734 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 9734 schema +struct> +-- !query 9734 output +{"1.0":1,"2":2} + + +-- !query 9735 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 9735 schema +struct> +-- !query 9735 output +{"1.0":1,"2":2} + + +-- !query 9736 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 9736 schema +struct> +-- !query 9736 output +{"1.0":1,"2":2} + + +-- !query 9737 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 9737 schema +struct> +-- !query 9737 output +{"1.0":1.0,"2":2.0} + + +-- !query 9738 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 9738 schema +struct> +-- !query 9738 output +{"1.0":1.0,"2":2.0} + + +-- !query 9739 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 9739 schema +struct> +-- !query 9739 output +{"1.0":1,"2":2} + + +-- !query 9740 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 9740 schema +struct> +-- !query 9740 output +{"1.0":"1","2":"2"} + + +-- !query 9741 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 9741 schema +struct<> +-- !query 9741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 9742 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 9742 schema +struct<> +-- !query 9742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 9743 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9743 schema +struct<> +-- !query 9743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 9744 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9744 schema +struct<> +-- !query 9744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 9745 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 9745 schema +struct<> +-- !query 9745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9746 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 9746 schema +struct<> +-- !query 9746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9747 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 9747 schema +struct<> +-- !query 9747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9748 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 9748 schema +struct<> +-- !query 9748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9749 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 9749 schema +struct<> +-- !query 9749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9750 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 9750 schema +struct<> +-- !query 9750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9751 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 9751 schema +struct<> +-- !query 9751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9752 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 9752 schema +struct<> +-- !query 9752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9753 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 9753 schema +struct<> +-- !query 9753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9754 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 9754 schema +struct<> +-- !query 9754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9755 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9755 schema +struct<> +-- !query 9755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9756 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9756 schema +struct<> +-- !query 9756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9757 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 9757 schema +struct<> +-- !query 9757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9758 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 9758 schema +struct<> +-- !query 9758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9759 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 9759 schema +struct<> +-- !query 9759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9760 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 9760 schema +struct<> +-- !query 9760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9761 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 9761 schema +struct<> +-- !query 9761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9762 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 9762 schema +struct<> +-- !query 9762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9763 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 9763 schema +struct<> +-- !query 9763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9764 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 9764 schema +struct<> +-- !query 9764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9765 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 9765 schema +struct<> +-- !query 9765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9766 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 9766 schema +struct<> +-- !query 9766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9767 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9767 schema +struct<> +-- !query 9767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9768 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9768 schema +struct<> +-- !query 9768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9769 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 9769 schema +struct<> +-- !query 9769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9770 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 9770 schema +struct<> +-- !query 9770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9771 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 9771 schema +struct<> +-- !query 9771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9772 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 9772 schema +struct<> +-- !query 9772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9773 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 9773 schema +struct<> +-- !query 9773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9774 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 9774 schema +struct<> +-- !query 9774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9775 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 9775 schema +struct<> +-- !query 9775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9776 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 9776 schema +struct<> +-- !query 9776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9777 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 9777 schema +struct<> +-- !query 9777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9778 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 9778 schema +struct<> +-- !query 9778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9779 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9779 schema +struct<> +-- !query 9779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9780 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9780 schema +struct<> +-- !query 9780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9781 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 9781 schema +struct<> +-- !query 9781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9782 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 9782 schema +struct<> +-- !query 9782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9783 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 9783 schema +struct<> +-- !query 9783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9784 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 9784 schema +struct<> +-- !query 9784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9785 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 9785 schema +struct<> +-- !query 9785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9786 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 9786 schema +struct<> +-- !query 9786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9787 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 9787 schema +struct<> +-- !query 9787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9788 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 9788 schema +struct<> +-- !query 9788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9789 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 9789 schema +struct<> +-- !query 9789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9790 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 9790 schema +struct<> +-- !query 9790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9791 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9791 schema +struct<> +-- !query 9791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9792 +SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9792 schema +struct<> +-- !query 9792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9793 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 9793 schema +struct> +-- !query 9793 output +{1.0:"1",2.0:"2"} + + +-- !query 9794 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 9794 schema +struct> +-- !query 9794 output +{1.0:"1",2.0:"2"} + + +-- !query 9795 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 9795 schema +struct> +-- !query 9795 output +{1.0:"1",2.0:"2"} + + +-- !query 9796 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 9796 schema +struct> +-- !query 9796 output +{1.0:"1",2.0:"2"} + + +-- !query 9797 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 9797 schema +struct> +-- !query 9797 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9798 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 9798 schema +struct> +-- !query 9798 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9799 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 9799 schema +struct> +-- !query 9799 output +{1.0:"1",2.0:"2"} + + +-- !query 9800 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 9800 schema +struct> +-- !query 9800 output +{1.0:"1",2.0:"2"} + + +-- !query 9801 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 9801 schema +struct<> +-- !query 9801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9802 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 9802 schema +struct<> +-- !query 9802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9803 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9803 schema +struct> +-- !query 9803 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 9804 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9804 schema +struct> +-- !query 9804 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 9805 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 9805 schema +struct> +-- !query 9805 output +{1.0:"1",2.0:"2"} + + +-- !query 9806 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 9806 schema +struct> +-- !query 9806 output +{1.0:"1",2.0:"2"} + + +-- !query 9807 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 9807 schema +struct> +-- !query 9807 output +{1.0:"1",2.0:"2"} + + +-- !query 9808 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 9808 schema +struct> +-- !query 9808 output +{1.0:"1",2.0:"2"} + + +-- !query 9809 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 9809 schema +struct> +-- !query 9809 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9810 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 9810 schema +struct> +-- !query 9810 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9811 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 9811 schema +struct> +-- !query 9811 output +{1.0:"1",2.0:"2"} + + +-- !query 9812 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 9812 schema +struct> +-- !query 9812 output +{1.0:"1",2.0:"2"} + + +-- !query 9813 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 9813 schema +struct<> +-- !query 9813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9814 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 9814 schema +struct<> +-- !query 9814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9815 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9815 schema +struct> +-- !query 9815 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 9816 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9816 schema +struct> +-- !query 9816 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 9817 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 9817 schema +struct> +-- !query 9817 output +{1.0:"1",2.0:"2"} + + +-- !query 9818 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 9818 schema +struct> +-- !query 9818 output +{1.0:"1",2.0:"2"} + + +-- !query 9819 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 9819 schema +struct> +-- !query 9819 output +{1.0:"1",2.0:"2"} + + +-- !query 9820 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 9820 schema +struct> +-- !query 9820 output +{1.0:"1",2.0:"2"} + + +-- !query 9821 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 9821 schema +struct> +-- !query 9821 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9822 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 9822 schema +struct> +-- !query 9822 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9823 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 9823 schema +struct> +-- !query 9823 output +{1.0:"1",2.0:"2"} + + +-- !query 9824 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 9824 schema +struct> +-- !query 9824 output +{1.0:"1",2.0:"2"} + + +-- !query 9825 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 9825 schema +struct<> +-- !query 9825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9826 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 9826 schema +struct<> +-- !query 9826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9827 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9827 schema +struct> +-- !query 9827 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 9828 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9828 schema +struct> +-- !query 9828 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 9829 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 9829 schema +struct> +-- !query 9829 output +{1.0:"1",2.0:"2"} + + +-- !query 9830 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 9830 schema +struct> +-- !query 9830 output +{1.0:"1",2.0:"2"} + + +-- !query 9831 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 9831 schema +struct> +-- !query 9831 output +{1.0:"1",2.0:"2"} + + +-- !query 9832 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 9832 schema +struct> +-- !query 9832 output +{1.0:"1",2.0:"2"} + + +-- !query 9833 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 9833 schema +struct> +-- !query 9833 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9834 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 9834 schema +struct> +-- !query 9834 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9835 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 9835 schema +struct> +-- !query 9835 output +{1.0:"1",2.0:"2"} + + +-- !query 9836 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 9836 schema +struct> +-- !query 9836 output +{1.0:"1",2.0:"2"} + + +-- !query 9837 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 9837 schema +struct<> +-- !query 9837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9838 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 9838 schema +struct<> +-- !query 9838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9839 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9839 schema +struct> +-- !query 9839 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 9840 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9840 schema +struct> +-- !query 9840 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 9841 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 9841 schema +struct> +-- !query 9841 output +{1.0:"1",2.0:"2"} + + +-- !query 9842 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 9842 schema +struct> +-- !query 9842 output +{1.0:"1",2.0:"2"} + + +-- !query 9843 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 9843 schema +struct> +-- !query 9843 output +{1.0:"1",2.0:"2"} + + +-- !query 9844 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 9844 schema +struct> +-- !query 9844 output +{1.0:"1",2.0:"2"} + + +-- !query 9845 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 9845 schema +struct> +-- !query 9845 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9846 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 9846 schema +struct> +-- !query 9846 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9847 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 9847 schema +struct> +-- !query 9847 output +{1.0:"1",2.0:"2"} + + +-- !query 9848 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 9848 schema +struct> +-- !query 9848 output +{1.0:"1",2.0:"2"} + + +-- !query 9849 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 9849 schema +struct<> +-- !query 9849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9850 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 9850 schema +struct<> +-- !query 9850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9851 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9851 schema +struct> +-- !query 9851 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 9852 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9852 schema +struct> +-- !query 9852 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 9853 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 9853 schema +struct> +-- !query 9853 output +{1.0:"1",2.0:"2"} + + +-- !query 9854 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 9854 schema +struct> +-- !query 9854 output +{1.0:"1",2.0:"2"} + + +-- !query 9855 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 9855 schema +struct> +-- !query 9855 output +{1.0:"1",2.0:"2"} + + +-- !query 9856 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 9856 schema +struct> +-- !query 9856 output +{1.0:"1",2.0:"2"} + + +-- !query 9857 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 9857 schema +struct> +-- !query 9857 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9858 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 9858 schema +struct> +-- !query 9858 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9859 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 9859 schema +struct> +-- !query 9859 output +{1.0:"1",2.0:"2"} + + +-- !query 9860 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 9860 schema +struct> +-- !query 9860 output +{1.0:"1",2.0:"2"} + + +-- !query 9861 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 9861 schema +struct<> +-- !query 9861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9862 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 9862 schema +struct<> +-- !query 9862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9863 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9863 schema +struct> +-- !query 9863 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 9864 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9864 schema +struct> +-- !query 9864 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 9865 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 9865 schema +struct> +-- !query 9865 output +{1.0:"1",2.0:"2"} + + +-- !query 9866 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 9866 schema +struct> +-- !query 9866 output +{1.0:"1",2.0:"2"} + + +-- !query 9867 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 9867 schema +struct> +-- !query 9867 output +{1.0:"1",2.0:"2"} + + +-- !query 9868 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 9868 schema +struct> +-- !query 9868 output +{1.0:"1",2.0:"2"} + + +-- !query 9869 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 9869 schema +struct> +-- !query 9869 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9870 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 9870 schema +struct> +-- !query 9870 output +{1.0:"1",2.0:"2.0"} + + +-- !query 9871 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 9871 schema +struct> +-- !query 9871 output +{1.0:"1",2.0:"2"} + + +-- !query 9872 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 9872 schema +struct> +-- !query 9872 output +{1.0:"1",2.0:"2"} + + +-- !query 9873 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 9873 schema +struct<> +-- !query 9873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9874 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 9874 schema +struct<> +-- !query 9874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9875 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9875 schema +struct> +-- !query 9875 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 9876 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9876 schema +struct> +-- !query 9876 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 9877 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 9877 schema +struct> +-- !query 9877 output +{"1.0":"1","2":"2"} + + +-- !query 9878 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 9878 schema +struct> +-- !query 9878 output +{"1.0":"1","2":"2"} + + +-- !query 9879 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 9879 schema +struct> +-- !query 9879 output +{"1.0":"1","2":"2"} + + +-- !query 9880 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 9880 schema +struct> +-- !query 9880 output +{"1.0":"1","2":"2"} + + +-- !query 9881 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 9881 schema +struct> +-- !query 9881 output +{"1.0":"1","2":"2.0"} + + +-- !query 9882 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 9882 schema +struct> +-- !query 9882 output +{"1.0":"1","2":"2.0"} + + +-- !query 9883 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 9883 schema +struct> +-- !query 9883 output +{"1.0":"1","2":"2"} + + +-- !query 9884 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 9884 schema +struct> +-- !query 9884 output +{"1.0":"1","2":"2"} + + +-- !query 9885 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 9885 schema +struct<> +-- !query 9885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 9886 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 9886 schema +struct<> +-- !query 9886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 9887 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9887 schema +struct> +-- !query 9887 output +{"1.0":"1","2":"2017-12-12 09:30:00"} + + +-- !query 9888 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9888 schema +struct> +-- !query 9888 output +{"1.0":"1","2":"2017-12-12"} + + +-- !query 9889 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 9889 schema +struct<> +-- !query 9889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9890 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 9890 schema +struct<> +-- !query 9890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9891 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 9891 schema +struct<> +-- !query 9891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9892 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 9892 schema +struct<> +-- !query 9892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9893 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 9893 schema +struct<> +-- !query 9893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9894 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 9894 schema +struct<> +-- !query 9894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9895 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 9895 schema +struct<> +-- !query 9895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9896 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 9896 schema +struct<> +-- !query 9896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9897 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 9897 schema +struct<> +-- !query 9897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9898 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 9898 schema +struct<> +-- !query 9898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9899 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9899 schema +struct<> +-- !query 9899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9900 +SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9900 schema +struct<> +-- !query 9900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 9901 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 9901 schema +struct<> +-- !query 9901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9902 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 9902 schema +struct<> +-- !query 9902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9903 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 9903 schema +struct<> +-- !query 9903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9904 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 9904 schema +struct<> +-- !query 9904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9905 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 9905 schema +struct<> +-- !query 9905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9906 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 9906 schema +struct<> +-- !query 9906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9907 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 9907 schema +struct<> +-- !query 9907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9908 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 9908 schema +struct<> +-- !query 9908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9909 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 9909 schema +struct<> +-- !query 9909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9910 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 9910 schema +struct<> +-- !query 9910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9911 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9911 schema +struct<> +-- !query 9911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9912 +SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9912 schema +struct<> +-- !query 9912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 9913 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 9913 schema +struct<> +-- !query 9913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9914 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 9914 schema +struct<> +-- !query 9914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9915 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 9915 schema +struct<> +-- !query 9915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9916 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 9916 schema +struct<> +-- !query 9916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9917 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 9917 schema +struct<> +-- !query 9917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9918 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 9918 schema +struct<> +-- !query 9918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9919 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 9919 schema +struct<> +-- !query 9919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9920 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 9920 schema +struct<> +-- !query 9920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9921 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 9921 schema +struct<> +-- !query 9921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9922 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 9922 schema +struct<> +-- !query 9922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9923 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9923 schema +struct<> +-- !query 9923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9924 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9924 schema +struct<> +-- !query 9924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 9925 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 9925 schema +struct<> +-- !query 9925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9926 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 9926 schema +struct<> +-- !query 9926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9927 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 9927 schema +struct<> +-- !query 9927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9928 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 9928 schema +struct<> +-- !query 9928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9929 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 9929 schema +struct<> +-- !query 9929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9930 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 9930 schema +struct<> +-- !query 9930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9931 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 9931 schema +struct<> +-- !query 9931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9932 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 9932 schema +struct<> +-- !query 9932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9933 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 9933 schema +struct<> +-- !query 9933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9934 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 9934 schema +struct<> +-- !query 9934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9935 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9935 schema +struct<> +-- !query 9935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9936 +SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9936 schema +struct<> +-- !query 9936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 9937 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 9937 schema +struct<> +-- !query 9937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 9938 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 9938 schema +struct<> +-- !query 9938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 9939 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 9939 schema +struct<> +-- !query 9939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 9940 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 9940 schema +struct<> +-- !query 9940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 9941 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 9941 schema +struct<> +-- !query 9941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 9942 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 9942 schema +struct<> +-- !query 9942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 9943 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 9943 schema +struct<> +-- !query 9943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 9944 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 9944 schema +struct<> +-- !query 9944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 9945 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 9945 schema +struct> +-- !query 9945 output +{1.0:[B@1e49d6c3,2.0:[B@780d94cc} + + +-- !query 9946 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 9946 schema +struct<> +-- !query 9946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 9947 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9947 schema +struct<> +-- !query 9947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 9948 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9948 schema +struct<> +-- !query 9948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 9949 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 9949 schema +struct<> +-- !query 9949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 9950 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 9950 schema +struct<> +-- !query 9950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 9951 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 9951 schema +struct<> +-- !query 9951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 9952 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 9952 schema +struct<> +-- !query 9952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 9953 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 9953 schema +struct<> +-- !query 9953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 9954 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 9954 schema +struct<> +-- !query 9954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 9955 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 9955 schema +struct<> +-- !query 9955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 9956 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 9956 schema +struct<> +-- !query 9956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 9957 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 9957 schema +struct> +-- !query 9957 output +{1.0:[B@2c9b5a8d,2.0:[B@4d510999} + + +-- !query 9958 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 9958 schema +struct<> +-- !query 9958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 9959 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9959 schema +struct<> +-- !query 9959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 9960 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9960 schema +struct<> +-- !query 9960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 9961 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 9961 schema +struct<> +-- !query 9961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 9962 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 9962 schema +struct<> +-- !query 9962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 9963 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 9963 schema +struct<> +-- !query 9963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 9964 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 9964 schema +struct<> +-- !query 9964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 9965 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 9965 schema +struct<> +-- !query 9965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 9966 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 9966 schema +struct<> +-- !query 9966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 9967 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 9967 schema +struct<> +-- !query 9967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 9968 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 9968 schema +struct<> +-- !query 9968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 9969 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 9969 schema +struct> +-- !query 9969 output +{1.0:[B@54fe7e4e,2.0:[B@6a74ead9} + + +-- !query 9970 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 9970 schema +struct<> +-- !query 9970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 9971 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9971 schema +struct<> +-- !query 9971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 9972 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9972 schema +struct<> +-- !query 9972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 9973 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 9973 schema +struct<> +-- !query 9973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 9974 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 9974 schema +struct<> +-- !query 9974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 9975 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 9975 schema +struct<> +-- !query 9975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 9976 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 9976 schema +struct<> +-- !query 9976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 9977 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 9977 schema +struct<> +-- !query 9977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 9978 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 9978 schema +struct<> +-- !query 9978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 9979 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 9979 schema +struct<> +-- !query 9979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 9980 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 9980 schema +struct<> +-- !query 9980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 9981 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 9981 schema +struct> +-- !query 9981 output +{1.0:[B@6265985d,2.0:[B@8a97d80} + + +-- !query 9982 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 9982 schema +struct<> +-- !query 9982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 9983 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9983 schema +struct<> +-- !query 9983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 9984 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9984 schema +struct<> +-- !query 9984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 9985 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 9985 schema +struct<> +-- !query 9985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 9986 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 9986 schema +struct<> +-- !query 9986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 9987 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 9987 schema +struct<> +-- !query 9987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 9988 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 9988 schema +struct<> +-- !query 9988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 9989 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 9989 schema +struct<> +-- !query 9989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 9990 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 9990 schema +struct<> +-- !query 9990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 9991 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 9991 schema +struct<> +-- !query 9991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 9992 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 9992 schema +struct<> +-- !query 9992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 9993 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 9993 schema +struct> +-- !query 9993 output +{1.0:[B@63ea6e3f,2.0:[B@5351ceb6} + + +-- !query 9994 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 9994 schema +struct<> +-- !query 9994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 9995 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 9995 schema +struct<> +-- !query 9995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 9996 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 9996 schema +struct<> +-- !query 9996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 9997 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 9997 schema +struct<> +-- !query 9997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 9998 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 9998 schema +struct<> +-- !query 9998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 9999 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 9999 schema +struct<> +-- !query 9999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 10000 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 10000 schema +struct<> +-- !query 10000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 10001 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 10001 schema +struct<> +-- !query 10001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 10002 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 10002 schema +struct<> +-- !query 10002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 10003 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 10003 schema +struct<> +-- !query 10003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 10004 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 10004 schema +struct<> +-- !query 10004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 10005 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 10005 schema +struct> +-- !query 10005 output +{1.0:[B@25959532,2.0:[B@4cae2162} + + +-- !query 10006 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 10006 schema +struct<> +-- !query 10006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 10007 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10007 schema +struct<> +-- !query 10007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 10008 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10008 schema +struct<> +-- !query 10008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 10009 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 10009 schema +struct<> +-- !query 10009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 10010 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 10010 schema +struct<> +-- !query 10010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 10011 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 10011 schema +struct<> +-- !query 10011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 10012 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 10012 schema +struct<> +-- !query 10012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 10013 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 10013 schema +struct<> +-- !query 10013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 10014 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 10014 schema +struct<> +-- !query 10014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 10015 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 10015 schema +struct<> +-- !query 10015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 10016 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 10016 schema +struct<> +-- !query 10016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 10017 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 10017 schema +struct> +-- !query 10017 output +{1.0:[B@1a755eaa,2.0:[B@55e36675} + + +-- !query 10018 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 10018 schema +struct<> +-- !query 10018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 10019 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10019 schema +struct<> +-- !query 10019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 10020 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10020 schema +struct<> +-- !query 10020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 10021 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 10021 schema +struct<> +-- !query 10021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 10022 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 10022 schema +struct<> +-- !query 10022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 10023 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 10023 schema +struct<> +-- !query 10023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 10024 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 10024 schema +struct<> +-- !query 10024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 10025 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 10025 schema +struct<> +-- !query 10025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 10026 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 10026 schema +struct<> +-- !query 10026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 10027 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 10027 schema +struct<> +-- !query 10027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 10028 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 10028 schema +struct<> +-- !query 10028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 10029 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 10029 schema +struct> +-- !query 10029 output +{"1.0":[B@7f9dfc42,"2":[B@3b1c5b75} + + +-- !query 10030 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 10030 schema +struct<> +-- !query 10030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 10031 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10031 schema +struct<> +-- !query 10031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 10032 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10032 schema +struct<> +-- !query 10032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 10033 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 10033 schema +struct<> +-- !query 10033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10034 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 10034 schema +struct<> +-- !query 10034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10035 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 10035 schema +struct<> +-- !query 10035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10036 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 10036 schema +struct<> +-- !query 10036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10037 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 10037 schema +struct<> +-- !query 10037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10038 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 10038 schema +struct<> +-- !query 10038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10039 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 10039 schema +struct<> +-- !query 10039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10040 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 10040 schema +struct<> +-- !query 10040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10041 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 10041 schema +struct<> +-- !query 10041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10042 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 10042 schema +struct<> +-- !query 10042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10043 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10043 schema +struct<> +-- !query 10043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10044 +SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10044 schema +struct<> +-- !query 10044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10045 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 10045 schema +struct<> +-- !query 10045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10046 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 10046 schema +struct<> +-- !query 10046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10047 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 10047 schema +struct<> +-- !query 10047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10048 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 10048 schema +struct<> +-- !query 10048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10049 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 10049 schema +struct<> +-- !query 10049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10050 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 10050 schema +struct<> +-- !query 10050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10051 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 10051 schema +struct<> +-- !query 10051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10052 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 10052 schema +struct<> +-- !query 10052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10053 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 10053 schema +struct<> +-- !query 10053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10054 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 10054 schema +struct<> +-- !query 10054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10055 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10055 schema +struct<> +-- !query 10055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10056 +SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10056 schema +struct<> +-- !query 10056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10057 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 10057 schema +struct<> +-- !query 10057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10058 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 10058 schema +struct<> +-- !query 10058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10059 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 10059 schema +struct<> +-- !query 10059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10060 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 10060 schema +struct<> +-- !query 10060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10061 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 10061 schema +struct<> +-- !query 10061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10062 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 10062 schema +struct<> +-- !query 10062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10063 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 10063 schema +struct<> +-- !query 10063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10064 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 10064 schema +struct<> +-- !query 10064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10065 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 10065 schema +struct<> +-- !query 10065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10066 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 10066 schema +struct<> +-- !query 10066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10067 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10067 schema +struct<> +-- !query 10067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10068 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10068 schema +struct<> +-- !query 10068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10069 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 10069 schema +struct<> +-- !query 10069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10070 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 10070 schema +struct<> +-- !query 10070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10071 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 10071 schema +struct<> +-- !query 10071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10072 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 10072 schema +struct<> +-- !query 10072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10073 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 10073 schema +struct<> +-- !query 10073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10074 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 10074 schema +struct<> +-- !query 10074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10075 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 10075 schema +struct<> +-- !query 10075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10076 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 10076 schema +struct<> +-- !query 10076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10077 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 10077 schema +struct<> +-- !query 10077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10078 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 10078 schema +struct<> +-- !query 10078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10079 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10079 schema +struct<> +-- !query 10079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10080 +SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10080 schema +struct<> +-- !query 10080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10081 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 10081 schema +struct<> +-- !query 10081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10082 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 10082 schema +struct<> +-- !query 10082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10083 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 10083 schema +struct<> +-- !query 10083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10084 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 10084 schema +struct<> +-- !query 10084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10085 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 10085 schema +struct<> +-- !query 10085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10086 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 10086 schema +struct<> +-- !query 10086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10087 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 10087 schema +struct<> +-- !query 10087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10088 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 10088 schema +struct<> +-- !query 10088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10089 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 10089 schema +struct<> +-- !query 10089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10090 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 10090 schema +struct> +-- !query 10090 output +{1.0:true,2.0:true} + + +-- !query 10091 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10091 schema +struct<> +-- !query 10091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10092 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10092 schema +struct<> +-- !query 10092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10093 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 10093 schema +struct<> +-- !query 10093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10094 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 10094 schema +struct<> +-- !query 10094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10095 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 10095 schema +struct<> +-- !query 10095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10096 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 10096 schema +struct<> +-- !query 10096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10097 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 10097 schema +struct<> +-- !query 10097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10098 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 10098 schema +struct<> +-- !query 10098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10099 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 10099 schema +struct<> +-- !query 10099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10100 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 10100 schema +struct<> +-- !query 10100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10101 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 10101 schema +struct<> +-- !query 10101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10102 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 10102 schema +struct> +-- !query 10102 output +{1.0:true,2.0:true} + + +-- !query 10103 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10103 schema +struct<> +-- !query 10103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10104 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10104 schema +struct<> +-- !query 10104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10105 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 10105 schema +struct<> +-- !query 10105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10106 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 10106 schema +struct<> +-- !query 10106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10107 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 10107 schema +struct<> +-- !query 10107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10108 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 10108 schema +struct<> +-- !query 10108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10109 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 10109 schema +struct<> +-- !query 10109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10110 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 10110 schema +struct<> +-- !query 10110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10111 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 10111 schema +struct<> +-- !query 10111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10112 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 10112 schema +struct<> +-- !query 10112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10113 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 10113 schema +struct<> +-- !query 10113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10114 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 10114 schema +struct> +-- !query 10114 output +{1.0:true,2.0:true} + + +-- !query 10115 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10115 schema +struct<> +-- !query 10115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10116 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10116 schema +struct<> +-- !query 10116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10117 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 10117 schema +struct<> +-- !query 10117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10118 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 10118 schema +struct<> +-- !query 10118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10119 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 10119 schema +struct<> +-- !query 10119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10120 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 10120 schema +struct<> +-- !query 10120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10121 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 10121 schema +struct<> +-- !query 10121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10122 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 10122 schema +struct<> +-- !query 10122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10123 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 10123 schema +struct<> +-- !query 10123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10124 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 10124 schema +struct<> +-- !query 10124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10125 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 10125 schema +struct<> +-- !query 10125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10126 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 10126 schema +struct> +-- !query 10126 output +{1.0:true,2.0:true} + + +-- !query 10127 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10127 schema +struct<> +-- !query 10127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10128 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10128 schema +struct<> +-- !query 10128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10129 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 10129 schema +struct<> +-- !query 10129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10130 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 10130 schema +struct<> +-- !query 10130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10131 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 10131 schema +struct<> +-- !query 10131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10132 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 10132 schema +struct<> +-- !query 10132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10133 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 10133 schema +struct<> +-- !query 10133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10134 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 10134 schema +struct<> +-- !query 10134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10135 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 10135 schema +struct<> +-- !query 10135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10136 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 10136 schema +struct<> +-- !query 10136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10137 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 10137 schema +struct<> +-- !query 10137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10138 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 10138 schema +struct> +-- !query 10138 output +{1.0:true,2.0:true} + + +-- !query 10139 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10139 schema +struct<> +-- !query 10139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10140 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10140 schema +struct<> +-- !query 10140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10141 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 10141 schema +struct<> +-- !query 10141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10142 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 10142 schema +struct<> +-- !query 10142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10143 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 10143 schema +struct<> +-- !query 10143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10144 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 10144 schema +struct<> +-- !query 10144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10145 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 10145 schema +struct<> +-- !query 10145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10146 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 10146 schema +struct<> +-- !query 10146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10147 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 10147 schema +struct<> +-- !query 10147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10148 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 10148 schema +struct<> +-- !query 10148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10149 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 10149 schema +struct<> +-- !query 10149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10150 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 10150 schema +struct> +-- !query 10150 output +{1.0:true,2.0:true} + + +-- !query 10151 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10151 schema +struct<> +-- !query 10151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10152 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10152 schema +struct<> +-- !query 10152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10153 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 10153 schema +struct<> +-- !query 10153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10154 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 10154 schema +struct<> +-- !query 10154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10155 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 10155 schema +struct<> +-- !query 10155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10156 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 10156 schema +struct<> +-- !query 10156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10157 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 10157 schema +struct<> +-- !query 10157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10158 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 10158 schema +struct<> +-- !query 10158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10159 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 10159 schema +struct<> +-- !query 10159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10160 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 10160 schema +struct<> +-- !query 10160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10161 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 10161 schema +struct<> +-- !query 10161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10162 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 10162 schema +struct> +-- !query 10162 output +{1.0:true,2.0:true} + + +-- !query 10163 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10163 schema +struct<> +-- !query 10163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10164 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10164 schema +struct<> +-- !query 10164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10165 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 10165 schema +struct<> +-- !query 10165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 10166 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 10166 schema +struct<> +-- !query 10166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 10167 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 10167 schema +struct<> +-- !query 10167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 10168 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 10168 schema +struct<> +-- !query 10168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 10169 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 10169 schema +struct<> +-- !query 10169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 10170 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 10170 schema +struct<> +-- !query 10170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 10171 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 10171 schema +struct<> +-- !query 10171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 10172 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 10172 schema +struct<> +-- !query 10172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 10173 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 10173 schema +struct<> +-- !query 10173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 10174 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 10174 schema +struct> +-- !query 10174 output +{"1.0":true,"2":true} + + +-- !query 10175 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10175 schema +struct<> +-- !query 10175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 10176 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10176 schema +struct<> +-- !query 10176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 10177 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 10177 schema +struct<> +-- !query 10177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10178 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 10178 schema +struct<> +-- !query 10178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10179 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 10179 schema +struct<> +-- !query 10179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10180 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 10180 schema +struct<> +-- !query 10180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10181 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 10181 schema +struct<> +-- !query 10181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10182 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 10182 schema +struct<> +-- !query 10182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10183 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 10183 schema +struct<> +-- !query 10183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10184 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 10184 schema +struct<> +-- !query 10184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10185 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 10185 schema +struct<> +-- !query 10185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10186 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 10186 schema +struct<> +-- !query 10186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10187 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10187 schema +struct<> +-- !query 10187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10188 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10188 schema +struct<> +-- !query 10188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10189 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 10189 schema +struct<> +-- !query 10189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10190 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 10190 schema +struct<> +-- !query 10190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10191 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 10191 schema +struct<> +-- !query 10191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10192 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 10192 schema +struct<> +-- !query 10192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10193 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 10193 schema +struct<> +-- !query 10193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10194 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 10194 schema +struct<> +-- !query 10194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10195 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 10195 schema +struct<> +-- !query 10195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10196 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 10196 schema +struct<> +-- !query 10196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10197 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 10197 schema +struct<> +-- !query 10197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10198 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 10198 schema +struct<> +-- !query 10198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10199 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10199 schema +struct<> +-- !query 10199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10200 +SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10200 schema +struct<> +-- !query 10200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10201 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 10201 schema +struct<> +-- !query 10201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10202 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 10202 schema +struct<> +-- !query 10202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10203 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 10203 schema +struct<> +-- !query 10203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10204 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 10204 schema +struct<> +-- !query 10204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10205 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 10205 schema +struct<> +-- !query 10205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10206 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 10206 schema +struct<> +-- !query 10206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10207 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 10207 schema +struct<> +-- !query 10207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10208 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 10208 schema +struct<> +-- !query 10208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10209 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 10209 schema +struct<> +-- !query 10209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10210 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 10210 schema +struct<> +-- !query 10210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10211 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10211 schema +struct<> +-- !query 10211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10212 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10212 schema +struct<> +-- !query 10212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10213 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 10213 schema +struct<> +-- !query 10213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10214 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 10214 schema +struct<> +-- !query 10214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10215 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 10215 schema +struct<> +-- !query 10215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10216 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 10216 schema +struct<> +-- !query 10216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10217 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 10217 schema +struct<> +-- !query 10217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10218 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 10218 schema +struct<> +-- !query 10218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10219 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 10219 schema +struct<> +-- !query 10219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10220 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 10220 schema +struct<> +-- !query 10220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10221 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 10221 schema +struct<> +-- !query 10221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10222 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 10222 schema +struct<> +-- !query 10222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10223 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10223 schema +struct<> +-- !query 10223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10224 +SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10224 schema +struct<> +-- !query 10224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10225 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 10225 schema +struct<> +-- !query 10225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10226 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 10226 schema +struct<> +-- !query 10226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10227 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 10227 schema +struct<> +-- !query 10227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10228 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 10228 schema +struct<> +-- !query 10228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10229 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 10229 schema +struct<> +-- !query 10229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10230 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 10230 schema +struct<> +-- !query 10230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10231 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 10231 schema +struct<> +-- !query 10231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10232 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 10232 schema +struct> +-- !query 10232 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 10233 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 10233 schema +struct<> +-- !query 10233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10234 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 10234 schema +struct<> +-- !query 10234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10235 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10235 schema +struct> +-- !query 10235 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10236 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10236 schema +struct> +-- !query 10236 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 10237 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 10237 schema +struct<> +-- !query 10237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10238 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 10238 schema +struct<> +-- !query 10238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10239 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 10239 schema +struct<> +-- !query 10239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10240 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 10240 schema +struct<> +-- !query 10240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10241 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 10241 schema +struct<> +-- !query 10241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10242 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 10242 schema +struct<> +-- !query 10242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10243 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 10243 schema +struct<> +-- !query 10243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10244 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 10244 schema +struct> +-- !query 10244 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 10245 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 10245 schema +struct<> +-- !query 10245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10246 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 10246 schema +struct<> +-- !query 10246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10247 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10247 schema +struct> +-- !query 10247 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10248 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10248 schema +struct> +-- !query 10248 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 10249 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 10249 schema +struct<> +-- !query 10249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10250 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 10250 schema +struct<> +-- !query 10250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10251 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 10251 schema +struct<> +-- !query 10251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10252 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 10252 schema +struct<> +-- !query 10252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10253 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 10253 schema +struct<> +-- !query 10253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10254 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 10254 schema +struct<> +-- !query 10254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10255 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 10255 schema +struct<> +-- !query 10255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10256 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 10256 schema +struct> +-- !query 10256 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 10257 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 10257 schema +struct<> +-- !query 10257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10258 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 10258 schema +struct<> +-- !query 10258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10259 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10259 schema +struct> +-- !query 10259 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10260 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10260 schema +struct> +-- !query 10260 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 10261 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 10261 schema +struct<> +-- !query 10261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10262 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 10262 schema +struct<> +-- !query 10262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10263 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 10263 schema +struct<> +-- !query 10263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10264 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 10264 schema +struct<> +-- !query 10264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10265 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 10265 schema +struct<> +-- !query 10265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10266 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 10266 schema +struct<> +-- !query 10266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10267 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 10267 schema +struct<> +-- !query 10267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10268 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 10268 schema +struct> +-- !query 10268 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 10269 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 10269 schema +struct<> +-- !query 10269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10270 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 10270 schema +struct<> +-- !query 10270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10271 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10271 schema +struct> +-- !query 10271 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10272 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10272 schema +struct> +-- !query 10272 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 10273 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 10273 schema +struct<> +-- !query 10273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10274 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 10274 schema +struct<> +-- !query 10274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10275 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 10275 schema +struct<> +-- !query 10275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10276 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 10276 schema +struct<> +-- !query 10276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10277 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 10277 schema +struct<> +-- !query 10277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10278 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 10278 schema +struct<> +-- !query 10278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10279 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 10279 schema +struct<> +-- !query 10279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10280 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 10280 schema +struct> +-- !query 10280 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 10281 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 10281 schema +struct<> +-- !query 10281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10282 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 10282 schema +struct<> +-- !query 10282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10283 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10283 schema +struct> +-- !query 10283 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10284 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10284 schema +struct> +-- !query 10284 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 10285 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 10285 schema +struct<> +-- !query 10285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10286 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 10286 schema +struct<> +-- !query 10286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10287 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 10287 schema +struct<> +-- !query 10287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10288 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 10288 schema +struct<> +-- !query 10288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10289 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 10289 schema +struct<> +-- !query 10289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10290 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 10290 schema +struct<> +-- !query 10290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10291 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 10291 schema +struct<> +-- !query 10291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10292 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 10292 schema +struct> +-- !query 10292 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 10293 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 10293 schema +struct<> +-- !query 10293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10294 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 10294 schema +struct<> +-- !query 10294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10295 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10295 schema +struct> +-- !query 10295 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10296 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10296 schema +struct> +-- !query 10296 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 10297 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 10297 schema +struct<> +-- !query 10297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10298 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 10298 schema +struct<> +-- !query 10298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10299 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 10299 schema +struct<> +-- !query 10299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10300 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 10300 schema +struct<> +-- !query 10300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10301 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 10301 schema +struct<> +-- !query 10301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10302 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 10302 schema +struct<> +-- !query 10302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10303 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 10303 schema +struct<> +-- !query 10303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10304 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 10304 schema +struct> +-- !query 10304 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 10305 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 10305 schema +struct<> +-- !query 10305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10306 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 10306 schema +struct<> +-- !query 10306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10307 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10307 schema +struct> +-- !query 10307 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10308 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10308 schema +struct> +-- !query 10308 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 10309 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 10309 schema +struct<> +-- !query 10309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 10310 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 10310 schema +struct<> +-- !query 10310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 10311 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 10311 schema +struct<> +-- !query 10311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 10312 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 10312 schema +struct<> +-- !query 10312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 10313 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 10313 schema +struct<> +-- !query 10313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 10314 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 10314 schema +struct<> +-- !query 10314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 10315 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 10315 schema +struct<> +-- !query 10315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 10316 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 10316 schema +struct> +-- !query 10316 output +{"1.0":"2017-12-11 09:30:00","2":"2"} + + +-- !query 10317 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 10317 schema +struct<> +-- !query 10317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 10318 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 10318 schema +struct<> +-- !query 10318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 10319 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10319 schema +struct> +-- !query 10319 output +{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 10320 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10320 schema +struct> +-- !query 10320 output +{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 10321 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 10321 schema +struct<> +-- !query 10321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10322 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 10322 schema +struct<> +-- !query 10322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10323 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 10323 schema +struct<> +-- !query 10323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10324 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 10324 schema +struct<> +-- !query 10324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10325 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 10325 schema +struct<> +-- !query 10325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10326 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 10326 schema +struct<> +-- !query 10326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10327 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 10327 schema +struct<> +-- !query 10327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10328 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 10328 schema +struct<> +-- !query 10328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10329 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 10329 schema +struct<> +-- !query 10329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10330 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 10330 schema +struct<> +-- !query 10330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10331 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10331 schema +struct<> +-- !query 10331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10332 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10332 schema +struct<> +-- !query 10332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10333 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 10333 schema +struct<> +-- !query 10333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10334 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 10334 schema +struct<> +-- !query 10334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10335 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 10335 schema +struct<> +-- !query 10335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10336 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 10336 schema +struct<> +-- !query 10336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10337 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 10337 schema +struct<> +-- !query 10337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10338 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 10338 schema +struct<> +-- !query 10338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10339 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 10339 schema +struct<> +-- !query 10339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10340 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 10340 schema +struct<> +-- !query 10340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10341 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 10341 schema +struct<> +-- !query 10341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10342 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 10342 schema +struct<> +-- !query 10342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10343 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10343 schema +struct<> +-- !query 10343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10344 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10344 schema +struct<> +-- !query 10344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10345 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 10345 schema +struct<> +-- !query 10345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10346 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 10346 schema +struct<> +-- !query 10346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10347 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 10347 schema +struct<> +-- !query 10347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10348 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 10348 schema +struct<> +-- !query 10348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10349 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 10349 schema +struct<> +-- !query 10349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10350 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 10350 schema +struct<> +-- !query 10350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10351 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 10351 schema +struct<> +-- !query 10351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10352 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 10352 schema +struct<> +-- !query 10352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10353 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 10353 schema +struct<> +-- !query 10353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10354 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 10354 schema +struct<> +-- !query 10354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10355 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10355 schema +struct<> +-- !query 10355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10356 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10356 schema +struct<> +-- !query 10356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10357 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 10357 schema +struct<> +-- !query 10357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10358 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 10358 schema +struct<> +-- !query 10358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10359 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 10359 schema +struct<> +-- !query 10359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10360 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 10360 schema +struct<> +-- !query 10360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10361 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 10361 schema +struct<> +-- !query 10361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10362 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 10362 schema +struct<> +-- !query 10362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10363 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 10363 schema +struct<> +-- !query 10363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10364 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 10364 schema +struct<> +-- !query 10364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10365 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 10365 schema +struct<> +-- !query 10365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10366 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 10366 schema +struct<> +-- !query 10366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10367 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10367 schema +struct<> +-- !query 10367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10368 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10368 schema +struct<> +-- !query 10368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10369 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 10369 schema +struct<> +-- !query 10369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10370 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 10370 schema +struct<> +-- !query 10370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10371 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 10371 schema +struct<> +-- !query 10371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10372 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 10372 schema +struct<> +-- !query 10372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10373 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 10373 schema +struct<> +-- !query 10373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10374 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 10374 schema +struct<> +-- !query 10374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10375 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 10375 schema +struct<> +-- !query 10375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10376 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 10376 schema +struct> +-- !query 10376 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 10377 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 10377 schema +struct<> +-- !query 10377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10378 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 10378 schema +struct<> +-- !query 10378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10379 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10379 schema +struct> +-- !query 10379 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10380 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10380 schema +struct> +-- !query 10380 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 10381 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 10381 schema +struct<> +-- !query 10381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10382 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 10382 schema +struct<> +-- !query 10382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10383 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 10383 schema +struct<> +-- !query 10383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10384 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 10384 schema +struct<> +-- !query 10384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10385 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 10385 schema +struct<> +-- !query 10385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10386 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 10386 schema +struct<> +-- !query 10386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10387 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 10387 schema +struct<> +-- !query 10387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10388 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 10388 schema +struct> +-- !query 10388 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 10389 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 10389 schema +struct<> +-- !query 10389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10390 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 10390 schema +struct<> +-- !query 10390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10391 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10391 schema +struct> +-- !query 10391 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10392 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10392 schema +struct> +-- !query 10392 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 10393 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 10393 schema +struct<> +-- !query 10393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10394 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 10394 schema +struct<> +-- !query 10394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10395 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 10395 schema +struct<> +-- !query 10395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10396 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 10396 schema +struct<> +-- !query 10396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10397 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 10397 schema +struct<> +-- !query 10397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10398 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 10398 schema +struct<> +-- !query 10398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10399 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 10399 schema +struct<> +-- !query 10399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10400 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 10400 schema +struct> +-- !query 10400 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 10401 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 10401 schema +struct<> +-- !query 10401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10402 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 10402 schema +struct<> +-- !query 10402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10403 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10403 schema +struct> +-- !query 10403 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10404 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10404 schema +struct> +-- !query 10404 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 10405 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 10405 schema +struct<> +-- !query 10405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10406 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 10406 schema +struct<> +-- !query 10406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10407 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 10407 schema +struct<> +-- !query 10407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10408 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 10408 schema +struct<> +-- !query 10408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10409 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 10409 schema +struct<> +-- !query 10409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10410 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 10410 schema +struct<> +-- !query 10410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10411 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 10411 schema +struct<> +-- !query 10411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10412 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 10412 schema +struct> +-- !query 10412 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 10413 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 10413 schema +struct<> +-- !query 10413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10414 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 10414 schema +struct<> +-- !query 10414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10415 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10415 schema +struct> +-- !query 10415 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10416 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10416 schema +struct> +-- !query 10416 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 10417 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 10417 schema +struct<> +-- !query 10417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10418 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 10418 schema +struct<> +-- !query 10418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10419 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 10419 schema +struct<> +-- !query 10419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10420 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 10420 schema +struct<> +-- !query 10420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10421 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 10421 schema +struct<> +-- !query 10421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10422 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 10422 schema +struct<> +-- !query 10422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10423 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 10423 schema +struct<> +-- !query 10423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10424 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 10424 schema +struct> +-- !query 10424 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 10425 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 10425 schema +struct<> +-- !query 10425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10426 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 10426 schema +struct<> +-- !query 10426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10427 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10427 schema +struct> +-- !query 10427 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10428 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10428 schema +struct> +-- !query 10428 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 10429 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 10429 schema +struct<> +-- !query 10429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10430 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 10430 schema +struct<> +-- !query 10430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10431 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 10431 schema +struct<> +-- !query 10431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10432 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 10432 schema +struct<> +-- !query 10432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10433 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 10433 schema +struct<> +-- !query 10433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10434 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 10434 schema +struct<> +-- !query 10434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10435 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 10435 schema +struct<> +-- !query 10435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10436 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 10436 schema +struct> +-- !query 10436 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 10437 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 10437 schema +struct<> +-- !query 10437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10438 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 10438 schema +struct<> +-- !query 10438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10439 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10439 schema +struct> +-- !query 10439 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10440 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10440 schema +struct> +-- !query 10440 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 10441 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 10441 schema +struct<> +-- !query 10441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10442 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 10442 schema +struct<> +-- !query 10442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10443 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 10443 schema +struct<> +-- !query 10443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10444 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 10444 schema +struct<> +-- !query 10444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10445 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 10445 schema +struct<> +-- !query 10445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10446 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 10446 schema +struct<> +-- !query 10446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10447 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 10447 schema +struct<> +-- !query 10447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10448 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 10448 schema +struct> +-- !query 10448 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 10449 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 10449 schema +struct<> +-- !query 10449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10450 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 10450 schema +struct<> +-- !query 10450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10451 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10451 schema +struct> +-- !query 10451 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 10452 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10452 schema +struct> +-- !query 10452 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 10453 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 10453 schema +struct<> +-- !query 10453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 10454 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 10454 schema +struct<> +-- !query 10454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 10455 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 10455 schema +struct<> +-- !query 10455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 10456 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 10456 schema +struct<> +-- !query 10456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 10457 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 10457 schema +struct<> +-- !query 10457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 10458 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 10458 schema +struct<> +-- !query 10458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 10459 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 10459 schema +struct<> +-- !query 10459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 10460 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 10460 schema +struct> +-- !query 10460 output +{"1.0":"2017-12-11","2":"2"} + + +-- !query 10461 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 10461 schema +struct<> +-- !query 10461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 10462 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 10462 schema +struct<> +-- !query 10462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 10463 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10463 schema +struct> +-- !query 10463 output +{"1.0":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 10464 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10464 schema +struct> +-- !query 10464 output +{"1.0":2017-12-11,"2":2017-12-12} + + +-- !query 10465 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 10465 schema +struct<> +-- !query 10465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10466 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 10466 schema +struct<> +-- !query 10466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10467 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 10467 schema +struct<> +-- !query 10467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10468 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 10468 schema +struct<> +-- !query 10468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10469 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 10469 schema +struct<> +-- !query 10469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10470 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 10470 schema +struct<> +-- !query 10470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10471 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 10471 schema +struct<> +-- !query 10471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10472 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 10472 schema +struct<> +-- !query 10472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10473 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 10473 schema +struct<> +-- !query 10473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10474 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 10474 schema +struct<> +-- !query 10474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10475 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10475 schema +struct<> +-- !query 10475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10476 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10476 schema +struct<> +-- !query 10476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 10477 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 10477 schema +struct<> +-- !query 10477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10478 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 10478 schema +struct<> +-- !query 10478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10479 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 10479 schema +struct<> +-- !query 10479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10480 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 10480 schema +struct<> +-- !query 10480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10481 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 10481 schema +struct<> +-- !query 10481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10482 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 10482 schema +struct<> +-- !query 10482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10483 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 10483 schema +struct<> +-- !query 10483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10484 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 10484 schema +struct<> +-- !query 10484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10485 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 10485 schema +struct<> +-- !query 10485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10486 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 10486 schema +struct<> +-- !query 10486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10487 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10487 schema +struct<> +-- !query 10487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10488 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10488 schema +struct<> +-- !query 10488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 10489 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 10489 schema +struct<> +-- !query 10489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10490 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 10490 schema +struct<> +-- !query 10490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10491 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 10491 schema +struct<> +-- !query 10491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10492 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 10492 schema +struct<> +-- !query 10492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10493 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 10493 schema +struct<> +-- !query 10493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10494 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 10494 schema +struct<> +-- !query 10494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10495 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 10495 schema +struct<> +-- !query 10495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10496 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 10496 schema +struct<> +-- !query 10496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10497 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 10497 schema +struct<> +-- !query 10497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10498 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 10498 schema +struct<> +-- !query 10498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10499 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10499 schema +struct<> +-- !query 10499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10500 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10500 schema +struct<> +-- !query 10500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 10501 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 10501 schema +struct<> +-- !query 10501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10502 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 10502 schema +struct<> +-- !query 10502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10503 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 10503 schema +struct<> +-- !query 10503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10504 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 10504 schema +struct<> +-- !query 10504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10505 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 10505 schema +struct<> +-- !query 10505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10506 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 10506 schema +struct<> +-- !query 10506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10507 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 10507 schema +struct<> +-- !query 10507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10508 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 10508 schema +struct<> +-- !query 10508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10509 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 10509 schema +struct<> +-- !query 10509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10510 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 10510 schema +struct<> +-- !query 10510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10511 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10511 schema +struct<> +-- !query 10511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10512 +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10512 schema +struct<> +-- !query 10512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 10513 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 10513 schema +struct> +-- !query 10513 output +{1:1,2:2} + + +-- !query 10514 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 10514 schema +struct> +-- !query 10514 output +{1:1,2:2} + + +-- !query 10515 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 10515 schema +struct> +-- !query 10515 output +{1:1,2:2} + + +-- !query 10516 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 10516 schema +struct> +-- !query 10516 output +{1:1,2:2} + + +-- !query 10517 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 10517 schema +struct> +-- !query 10517 output +{1:1.0,2:2.0} + + +-- !query 10518 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 10518 schema +struct> +-- !query 10518 output +{1:1.0,2:2.0} + + +-- !query 10519 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 10519 schema +struct> +-- !query 10519 output +{1:1,2:2} + + +-- !query 10520 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 10520 schema +struct> +-- !query 10520 output +{1:"1",2:"2"} + + +-- !query 10521 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 10521 schema +struct<> +-- !query 10521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10522 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 10522 schema +struct<> +-- !query 10522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10523 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10523 schema +struct<> +-- !query 10523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10524 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10524 schema +struct<> +-- !query 10524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10525 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 10525 schema +struct> +-- !query 10525 output +{1:1,2:2} + + +-- !query 10526 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 10526 schema +struct> +-- !query 10526 output +{1:1,2:2} + + +-- !query 10527 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 10527 schema +struct> +-- !query 10527 output +{1:1,2:2} + + +-- !query 10528 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 10528 schema +struct> +-- !query 10528 output +{1:1,2:2} + + +-- !query 10529 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 10529 schema +struct> +-- !query 10529 output +{1:1.0,2:2.0} + + +-- !query 10530 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 10530 schema +struct> +-- !query 10530 output +{1:1.0,2:2.0} + + +-- !query 10531 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 10531 schema +struct> +-- !query 10531 output +{1:1,2:2} + + +-- !query 10532 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 10532 schema +struct> +-- !query 10532 output +{1:"1",2:"2"} + + +-- !query 10533 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 10533 schema +struct<> +-- !query 10533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10534 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 10534 schema +struct<> +-- !query 10534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10535 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10535 schema +struct<> +-- !query 10535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10536 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10536 schema +struct<> +-- !query 10536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10537 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 10537 schema +struct> +-- !query 10537 output +{1:1,2:2} + + +-- !query 10538 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 10538 schema +struct> +-- !query 10538 output +{1:1,2:2} + + +-- !query 10539 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 10539 schema +struct> +-- !query 10539 output +{1:1,2:2} + + +-- !query 10540 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 10540 schema +struct> +-- !query 10540 output +{1:1,2:2} + + +-- !query 10541 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 10541 schema +struct> +-- !query 10541 output +{1:1.0,2:2.0} + + +-- !query 10542 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 10542 schema +struct> +-- !query 10542 output +{1:1.0,2:2.0} + + +-- !query 10543 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 10543 schema +struct> +-- !query 10543 output +{1:1,2:2} + + +-- !query 10544 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 10544 schema +struct> +-- !query 10544 output +{1:"1",2:"2"} + + +-- !query 10545 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 10545 schema +struct<> +-- !query 10545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10546 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 10546 schema +struct<> +-- !query 10546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10547 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10547 schema +struct<> +-- !query 10547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10548 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10548 schema +struct<> +-- !query 10548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10549 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 10549 schema +struct> +-- !query 10549 output +{1:1,2:2} + + +-- !query 10550 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 10550 schema +struct> +-- !query 10550 output +{1:1,2:2} + + +-- !query 10551 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 10551 schema +struct> +-- !query 10551 output +{1:1,2:2} + + +-- !query 10552 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 10552 schema +struct> +-- !query 10552 output +{1:1,2:2} + + +-- !query 10553 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 10553 schema +struct> +-- !query 10553 output +{1:1.0,2:2.0} + + +-- !query 10554 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 10554 schema +struct> +-- !query 10554 output +{1:1.0,2:2.0} + + +-- !query 10555 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 10555 schema +struct> +-- !query 10555 output +{1:1,2:2} + + +-- !query 10556 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 10556 schema +struct> +-- !query 10556 output +{1:"1",2:"2"} + + +-- !query 10557 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 10557 schema +struct<> +-- !query 10557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10558 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 10558 schema +struct<> +-- !query 10558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10559 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10559 schema +struct<> +-- !query 10559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10560 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10560 schema +struct<> +-- !query 10560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10561 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 10561 schema +struct> +-- !query 10561 output +{1.0:1,2.0:2} + + +-- !query 10562 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 10562 schema +struct> +-- !query 10562 output +{1.0:1,2.0:2} + + +-- !query 10563 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 10563 schema +struct> +-- !query 10563 output +{1.0:1,2.0:2} + + +-- !query 10564 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 10564 schema +struct> +-- !query 10564 output +{1.0:1,2.0:2} + + +-- !query 10565 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 10565 schema +struct> +-- !query 10565 output +{1.0:1.0,2.0:2.0} + + +-- !query 10566 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 10566 schema +struct> +-- !query 10566 output +{1.0:1.0,2.0:2.0} + + +-- !query 10567 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 10567 schema +struct> +-- !query 10567 output +{1.0:1,2.0:2} + + +-- !query 10568 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 10568 schema +struct> +-- !query 10568 output +{1.0:"1",2.0:"2"} + + +-- !query 10569 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 10569 schema +struct<> +-- !query 10569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10570 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 10570 schema +struct<> +-- !query 10570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10571 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10571 schema +struct<> +-- !query 10571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10572 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10572 schema +struct<> +-- !query 10572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10573 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 10573 schema +struct> +-- !query 10573 output +{1.0:1,2.0:2} + + +-- !query 10574 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 10574 schema +struct> +-- !query 10574 output +{1.0:1,2.0:2} + + +-- !query 10575 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 10575 schema +struct> +-- !query 10575 output +{1.0:1,2.0:2} + + +-- !query 10576 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 10576 schema +struct> +-- !query 10576 output +{1.0:1,2.0:2} + + +-- !query 10577 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 10577 schema +struct> +-- !query 10577 output +{1.0:1.0,2.0:2.0} + + +-- !query 10578 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 10578 schema +struct> +-- !query 10578 output +{1.0:1.0,2.0:2.0} + + +-- !query 10579 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 10579 schema +struct> +-- !query 10579 output +{1.0:1,2.0:2} + + +-- !query 10580 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 10580 schema +struct> +-- !query 10580 output +{1.0:"1",2.0:"2"} + + +-- !query 10581 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 10581 schema +struct<> +-- !query 10581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10582 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 10582 schema +struct<> +-- !query 10582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10583 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10583 schema +struct<> +-- !query 10583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10584 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10584 schema +struct<> +-- !query 10584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10585 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 10585 schema +struct> +-- !query 10585 output +{1:1,2:2} + + +-- !query 10586 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 10586 schema +struct> +-- !query 10586 output +{1:1,2:2} + + +-- !query 10587 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 10587 schema +struct> +-- !query 10587 output +{1:1,2:2} + + +-- !query 10588 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 10588 schema +struct> +-- !query 10588 output +{1:1,2:2} + + +-- !query 10589 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 10589 schema +struct> +-- !query 10589 output +{1:1.0,2:2.0} + + +-- !query 10590 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 10590 schema +struct> +-- !query 10590 output +{1:1.0,2:2.0} + + +-- !query 10591 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 10591 schema +struct> +-- !query 10591 output +{1:1,2:2} + + +-- !query 10592 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 10592 schema +struct> +-- !query 10592 output +{1:"1",2:"2"} + + +-- !query 10593 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 10593 schema +struct<> +-- !query 10593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10594 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 10594 schema +struct<> +-- !query 10594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10595 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10595 schema +struct<> +-- !query 10595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10596 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10596 schema +struct<> +-- !query 10596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10597 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 10597 schema +struct> +-- !query 10597 output +{"1":1,"2":2} + + +-- !query 10598 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 10598 schema +struct> +-- !query 10598 output +{"1":1,"2":2} + + +-- !query 10599 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 10599 schema +struct> +-- !query 10599 output +{"1":1,"2":2} + + +-- !query 10600 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 10600 schema +struct> +-- !query 10600 output +{"1":1,"2":2} + + +-- !query 10601 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 10601 schema +struct> +-- !query 10601 output +{"1":1.0,"2":2.0} + + +-- !query 10602 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 10602 schema +struct> +-- !query 10602 output +{"1":1.0,"2":2.0} + + +-- !query 10603 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 10603 schema +struct> +-- !query 10603 output +{"1":1,"2":2} + + +-- !query 10604 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 10604 schema +struct> +-- !query 10604 output +{"1":"1","2":"2"} + + +-- !query 10605 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 10605 schema +struct<> +-- !query 10605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 10606 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 10606 schema +struct<> +-- !query 10606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 10607 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10607 schema +struct<> +-- !query 10607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 10608 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10608 schema +struct<> +-- !query 10608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 10609 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 10609 schema +struct<> +-- !query 10609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10610 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 10610 schema +struct<> +-- !query 10610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10611 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 10611 schema +struct<> +-- !query 10611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10612 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 10612 schema +struct<> +-- !query 10612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10613 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 10613 schema +struct<> +-- !query 10613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10614 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 10614 schema +struct<> +-- !query 10614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10615 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 10615 schema +struct<> +-- !query 10615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10616 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 10616 schema +struct<> +-- !query 10616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10617 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 10617 schema +struct<> +-- !query 10617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10618 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 10618 schema +struct<> +-- !query 10618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10619 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10619 schema +struct<> +-- !query 10619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10620 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10620 schema +struct<> +-- !query 10620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10621 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 10621 schema +struct<> +-- !query 10621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10622 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 10622 schema +struct<> +-- !query 10622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10623 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 10623 schema +struct<> +-- !query 10623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10624 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 10624 schema +struct<> +-- !query 10624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10625 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 10625 schema +struct<> +-- !query 10625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10626 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 10626 schema +struct<> +-- !query 10626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10627 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 10627 schema +struct<> +-- !query 10627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10628 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 10628 schema +struct<> +-- !query 10628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10629 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 10629 schema +struct<> +-- !query 10629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10630 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 10630 schema +struct<> +-- !query 10630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10631 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10631 schema +struct<> +-- !query 10631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10632 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10632 schema +struct<> +-- !query 10632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10633 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 10633 schema +struct<> +-- !query 10633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10634 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 10634 schema +struct<> +-- !query 10634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10635 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 10635 schema +struct<> +-- !query 10635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10636 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 10636 schema +struct<> +-- !query 10636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10637 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 10637 schema +struct<> +-- !query 10637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10638 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 10638 schema +struct<> +-- !query 10638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10639 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 10639 schema +struct<> +-- !query 10639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10640 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 10640 schema +struct<> +-- !query 10640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10641 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 10641 schema +struct<> +-- !query 10641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10642 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 10642 schema +struct<> +-- !query 10642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10643 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10643 schema +struct<> +-- !query 10643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10644 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10644 schema +struct<> +-- !query 10644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10645 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 10645 schema +struct<> +-- !query 10645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10646 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 10646 schema +struct<> +-- !query 10646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10647 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 10647 schema +struct<> +-- !query 10647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10648 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 10648 schema +struct<> +-- !query 10648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10649 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 10649 schema +struct<> +-- !query 10649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10650 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 10650 schema +struct<> +-- !query 10650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10651 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 10651 schema +struct<> +-- !query 10651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10652 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 10652 schema +struct<> +-- !query 10652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10653 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 10653 schema +struct<> +-- !query 10653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10654 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 10654 schema +struct<> +-- !query 10654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10655 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10655 schema +struct<> +-- !query 10655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10656 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10656 schema +struct<> +-- !query 10656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10657 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 10657 schema +struct> +-- !query 10657 output +{1:1,2:2} + + +-- !query 10658 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 10658 schema +struct> +-- !query 10658 output +{1:1,2:2} + + +-- !query 10659 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 10659 schema +struct> +-- !query 10659 output +{1:1,2:2} + + +-- !query 10660 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 10660 schema +struct> +-- !query 10660 output +{1:1,2:2} + + +-- !query 10661 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 10661 schema +struct> +-- !query 10661 output +{1:1.0,2:2.0} + + +-- !query 10662 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 10662 schema +struct> +-- !query 10662 output +{1:1.0,2:2.0} + + +-- !query 10663 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 10663 schema +struct> +-- !query 10663 output +{1:1,2:2} + + +-- !query 10664 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 10664 schema +struct> +-- !query 10664 output +{1:"1",2:"2"} + + +-- !query 10665 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 10665 schema +struct<> +-- !query 10665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10666 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 10666 schema +struct<> +-- !query 10666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10667 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10667 schema +struct<> +-- !query 10667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10668 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10668 schema +struct<> +-- !query 10668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10669 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 10669 schema +struct> +-- !query 10669 output +{1:1,2:2} + + +-- !query 10670 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 10670 schema +struct> +-- !query 10670 output +{1:1,2:2} + + +-- !query 10671 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 10671 schema +struct> +-- !query 10671 output +{1:1,2:2} + + +-- !query 10672 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 10672 schema +struct> +-- !query 10672 output +{1:1,2:2} + + +-- !query 10673 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 10673 schema +struct> +-- !query 10673 output +{1:1.0,2:2.0} + + +-- !query 10674 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 10674 schema +struct> +-- !query 10674 output +{1:1.0,2:2.0} + + +-- !query 10675 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 10675 schema +struct> +-- !query 10675 output +{1:1,2:2} + + +-- !query 10676 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 10676 schema +struct> +-- !query 10676 output +{1:"1",2:"2"} + + +-- !query 10677 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 10677 schema +struct<> +-- !query 10677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10678 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 10678 schema +struct<> +-- !query 10678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10679 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10679 schema +struct<> +-- !query 10679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10680 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10680 schema +struct<> +-- !query 10680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10681 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 10681 schema +struct> +-- !query 10681 output +{1:1,2:2} + + +-- !query 10682 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 10682 schema +struct> +-- !query 10682 output +{1:1,2:2} + + +-- !query 10683 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 10683 schema +struct> +-- !query 10683 output +{1:1,2:2} + + +-- !query 10684 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 10684 schema +struct> +-- !query 10684 output +{1:1,2:2} + + +-- !query 10685 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 10685 schema +struct> +-- !query 10685 output +{1:1.0,2:2.0} + + +-- !query 10686 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 10686 schema +struct> +-- !query 10686 output +{1:1.0,2:2.0} + + +-- !query 10687 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 10687 schema +struct> +-- !query 10687 output +{1:1,2:2} + + +-- !query 10688 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 10688 schema +struct> +-- !query 10688 output +{1:"1",2:"2"} + + +-- !query 10689 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 10689 schema +struct<> +-- !query 10689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10690 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 10690 schema +struct<> +-- !query 10690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10691 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10691 schema +struct<> +-- !query 10691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10692 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10692 schema +struct<> +-- !query 10692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10693 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 10693 schema +struct> +-- !query 10693 output +{1:1,2:2} + + +-- !query 10694 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 10694 schema +struct> +-- !query 10694 output +{1:1,2:2} + + +-- !query 10695 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 10695 schema +struct> +-- !query 10695 output +{1:1,2:2} + + +-- !query 10696 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 10696 schema +struct> +-- !query 10696 output +{1:1,2:2} + + +-- !query 10697 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 10697 schema +struct> +-- !query 10697 output +{1:1.0,2:2.0} + + +-- !query 10698 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 10698 schema +struct> +-- !query 10698 output +{1:1.0,2:2.0} + + +-- !query 10699 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 10699 schema +struct> +-- !query 10699 output +{1:1,2:2} + + +-- !query 10700 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 10700 schema +struct> +-- !query 10700 output +{1:"1",2:"2"} + + +-- !query 10701 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 10701 schema +struct<> +-- !query 10701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10702 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 10702 schema +struct<> +-- !query 10702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10703 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10703 schema +struct<> +-- !query 10703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10704 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10704 schema +struct<> +-- !query 10704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10705 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 10705 schema +struct> +-- !query 10705 output +{1.0:1,2.0:2} + + +-- !query 10706 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 10706 schema +struct> +-- !query 10706 output +{1.0:1,2.0:2} + + +-- !query 10707 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 10707 schema +struct> +-- !query 10707 output +{1.0:1,2.0:2} + + +-- !query 10708 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 10708 schema +struct> +-- !query 10708 output +{1.0:1,2.0:2} + + +-- !query 10709 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 10709 schema +struct> +-- !query 10709 output +{1.0:1.0,2.0:2.0} + + +-- !query 10710 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 10710 schema +struct> +-- !query 10710 output +{1.0:1.0,2.0:2.0} + + +-- !query 10711 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 10711 schema +struct> +-- !query 10711 output +{1.0:1,2.0:2} + + +-- !query 10712 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 10712 schema +struct> +-- !query 10712 output +{1.0:"1",2.0:"2"} + + +-- !query 10713 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 10713 schema +struct<> +-- !query 10713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10714 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 10714 schema +struct<> +-- !query 10714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10715 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10715 schema +struct<> +-- !query 10715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10716 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10716 schema +struct<> +-- !query 10716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10717 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 10717 schema +struct> +-- !query 10717 output +{1.0:1,2.0:2} + + +-- !query 10718 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 10718 schema +struct> +-- !query 10718 output +{1.0:1,2.0:2} + + +-- !query 10719 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 10719 schema +struct> +-- !query 10719 output +{1.0:1,2.0:2} + + +-- !query 10720 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 10720 schema +struct> +-- !query 10720 output +{1.0:1,2.0:2} + + +-- !query 10721 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 10721 schema +struct> +-- !query 10721 output +{1.0:1.0,2.0:2.0} + + +-- !query 10722 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 10722 schema +struct> +-- !query 10722 output +{1.0:1.0,2.0:2.0} + + +-- !query 10723 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 10723 schema +struct> +-- !query 10723 output +{1.0:1,2.0:2} + + +-- !query 10724 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 10724 schema +struct> +-- !query 10724 output +{1.0:"1",2.0:"2"} + + +-- !query 10725 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 10725 schema +struct<> +-- !query 10725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10726 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 10726 schema +struct<> +-- !query 10726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10727 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10727 schema +struct<> +-- !query 10727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10728 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10728 schema +struct<> +-- !query 10728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10729 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 10729 schema +struct> +-- !query 10729 output +{1:1,2:2} + + +-- !query 10730 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 10730 schema +struct> +-- !query 10730 output +{1:1,2:2} + + +-- !query 10731 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 10731 schema +struct> +-- !query 10731 output +{1:1,2:2} + + +-- !query 10732 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 10732 schema +struct> +-- !query 10732 output +{1:1,2:2} + + +-- !query 10733 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 10733 schema +struct> +-- !query 10733 output +{1:1.0,2:2.0} + + +-- !query 10734 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 10734 schema +struct> +-- !query 10734 output +{1:1.0,2:2.0} + + +-- !query 10735 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 10735 schema +struct> +-- !query 10735 output +{1:1,2:2} + + +-- !query 10736 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 10736 schema +struct> +-- !query 10736 output +{1:"1",2:"2"} + + +-- !query 10737 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 10737 schema +struct<> +-- !query 10737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10738 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 10738 schema +struct<> +-- !query 10738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10739 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10739 schema +struct<> +-- !query 10739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10740 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10740 schema +struct<> +-- !query 10740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10741 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 10741 schema +struct> +-- !query 10741 output +{"1":1,"2":2} + + +-- !query 10742 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 10742 schema +struct> +-- !query 10742 output +{"1":1,"2":2} + + +-- !query 10743 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 10743 schema +struct> +-- !query 10743 output +{"1":1,"2":2} + + +-- !query 10744 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 10744 schema +struct> +-- !query 10744 output +{"1":1,"2":2} + + +-- !query 10745 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 10745 schema +struct> +-- !query 10745 output +{"1":1.0,"2":2.0} + + +-- !query 10746 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 10746 schema +struct> +-- !query 10746 output +{"1":1.0,"2":2.0} + + +-- !query 10747 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 10747 schema +struct> +-- !query 10747 output +{"1":1,"2":2} + + +-- !query 10748 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 10748 schema +struct> +-- !query 10748 output +{"1":"1","2":"2"} + + +-- !query 10749 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 10749 schema +struct<> +-- !query 10749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 10750 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 10750 schema +struct<> +-- !query 10750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 10751 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10751 schema +struct<> +-- !query 10751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 10752 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10752 schema +struct<> +-- !query 10752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 10753 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 10753 schema +struct<> +-- !query 10753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10754 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 10754 schema +struct<> +-- !query 10754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10755 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 10755 schema +struct<> +-- !query 10755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10756 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 10756 schema +struct<> +-- !query 10756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10757 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 10757 schema +struct<> +-- !query 10757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10758 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 10758 schema +struct<> +-- !query 10758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10759 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 10759 schema +struct<> +-- !query 10759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10760 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 10760 schema +struct<> +-- !query 10760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10761 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 10761 schema +struct<> +-- !query 10761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10762 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 10762 schema +struct<> +-- !query 10762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10763 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10763 schema +struct<> +-- !query 10763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10764 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10764 schema +struct<> +-- !query 10764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10765 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 10765 schema +struct<> +-- !query 10765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10766 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 10766 schema +struct<> +-- !query 10766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10767 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 10767 schema +struct<> +-- !query 10767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10768 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 10768 schema +struct<> +-- !query 10768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10769 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 10769 schema +struct<> +-- !query 10769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10770 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 10770 schema +struct<> +-- !query 10770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10771 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 10771 schema +struct<> +-- !query 10771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10772 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 10772 schema +struct<> +-- !query 10772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10773 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 10773 schema +struct<> +-- !query 10773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10774 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 10774 schema +struct<> +-- !query 10774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10775 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10775 schema +struct<> +-- !query 10775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10776 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10776 schema +struct<> +-- !query 10776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10777 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 10777 schema +struct<> +-- !query 10777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10778 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 10778 schema +struct<> +-- !query 10778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10779 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 10779 schema +struct<> +-- !query 10779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10780 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 10780 schema +struct<> +-- !query 10780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10781 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 10781 schema +struct<> +-- !query 10781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10782 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 10782 schema +struct<> +-- !query 10782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10783 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 10783 schema +struct<> +-- !query 10783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10784 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 10784 schema +struct<> +-- !query 10784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10785 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 10785 schema +struct<> +-- !query 10785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10786 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 10786 schema +struct<> +-- !query 10786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10787 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10787 schema +struct<> +-- !query 10787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10788 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10788 schema +struct<> +-- !query 10788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10789 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 10789 schema +struct<> +-- !query 10789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10790 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 10790 schema +struct<> +-- !query 10790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10791 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 10791 schema +struct<> +-- !query 10791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10792 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 10792 schema +struct<> +-- !query 10792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10793 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 10793 schema +struct<> +-- !query 10793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10794 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 10794 schema +struct<> +-- !query 10794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10795 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 10795 schema +struct<> +-- !query 10795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10796 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 10796 schema +struct<> +-- !query 10796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10797 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 10797 schema +struct<> +-- !query 10797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10798 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 10798 schema +struct<> +-- !query 10798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10799 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10799 schema +struct<> +-- !query 10799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10800 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10800 schema +struct<> +-- !query 10800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10801 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 10801 schema +struct> +-- !query 10801 output +{1:1,2:2} + + +-- !query 10802 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 10802 schema +struct> +-- !query 10802 output +{1:1,2:2} + + +-- !query 10803 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 10803 schema +struct> +-- !query 10803 output +{1:1,2:2} + + +-- !query 10804 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 10804 schema +struct> +-- !query 10804 output +{1:1,2:2} + + +-- !query 10805 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 10805 schema +struct> +-- !query 10805 output +{1:1.0,2:2.0} + + +-- !query 10806 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 10806 schema +struct> +-- !query 10806 output +{1:1.0,2:2.0} + + +-- !query 10807 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 10807 schema +struct> +-- !query 10807 output +{1:1,2:2} + + +-- !query 10808 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 10808 schema +struct> +-- !query 10808 output +{1:"1",2:"2"} + + +-- !query 10809 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 10809 schema +struct<> +-- !query 10809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10810 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 10810 schema +struct<> +-- !query 10810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10811 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10811 schema +struct<> +-- !query 10811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10812 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10812 schema +struct<> +-- !query 10812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10813 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 10813 schema +struct> +-- !query 10813 output +{1:1,2:2} + + +-- !query 10814 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 10814 schema +struct> +-- !query 10814 output +{1:1,2:2} + + +-- !query 10815 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 10815 schema +struct> +-- !query 10815 output +{1:1,2:2} + + +-- !query 10816 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 10816 schema +struct> +-- !query 10816 output +{1:1,2:2} + + +-- !query 10817 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 10817 schema +struct> +-- !query 10817 output +{1:1.0,2:2.0} + + +-- !query 10818 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 10818 schema +struct> +-- !query 10818 output +{1:1.0,2:2.0} + + +-- !query 10819 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 10819 schema +struct> +-- !query 10819 output +{1:1,2:2} + + +-- !query 10820 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 10820 schema +struct> +-- !query 10820 output +{1:"1",2:"2"} + + +-- !query 10821 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 10821 schema +struct<> +-- !query 10821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10822 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 10822 schema +struct<> +-- !query 10822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10823 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10823 schema +struct<> +-- !query 10823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10824 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10824 schema +struct<> +-- !query 10824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10825 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 10825 schema +struct> +-- !query 10825 output +{1:1,2:2} + + +-- !query 10826 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 10826 schema +struct> +-- !query 10826 output +{1:1,2:2} + + +-- !query 10827 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 10827 schema +struct> +-- !query 10827 output +{1:1,2:2} + + +-- !query 10828 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 10828 schema +struct> +-- !query 10828 output +{1:1,2:2} + + +-- !query 10829 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 10829 schema +struct> +-- !query 10829 output +{1:1.0,2:2.0} + + +-- !query 10830 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 10830 schema +struct> +-- !query 10830 output +{1:1.0,2:2.0} + + +-- !query 10831 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 10831 schema +struct> +-- !query 10831 output +{1:1,2:2} + + +-- !query 10832 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 10832 schema +struct> +-- !query 10832 output +{1:"1",2:"2"} + + +-- !query 10833 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 10833 schema +struct<> +-- !query 10833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10834 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 10834 schema +struct<> +-- !query 10834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10835 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10835 schema +struct<> +-- !query 10835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10836 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10836 schema +struct<> +-- !query 10836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10837 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 10837 schema +struct> +-- !query 10837 output +{1:1,2:2} + + +-- !query 10838 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 10838 schema +struct> +-- !query 10838 output +{1:1,2:2} + + +-- !query 10839 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 10839 schema +struct> +-- !query 10839 output +{1:1,2:2} + + +-- !query 10840 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 10840 schema +struct> +-- !query 10840 output +{1:1,2:2} + + +-- !query 10841 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 10841 schema +struct> +-- !query 10841 output +{1:1.0,2:2.0} + + +-- !query 10842 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 10842 schema +struct> +-- !query 10842 output +{1:1.0,2:2.0} + + +-- !query 10843 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 10843 schema +struct> +-- !query 10843 output +{1:1,2:2} + + +-- !query 10844 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 10844 schema +struct> +-- !query 10844 output +{1:"1",2:"2"} + + +-- !query 10845 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 10845 schema +struct<> +-- !query 10845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10846 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 10846 schema +struct<> +-- !query 10846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10847 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10847 schema +struct<> +-- !query 10847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10848 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10848 schema +struct<> +-- !query 10848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10849 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 10849 schema +struct> +-- !query 10849 output +{1.0:1,2.0:2} + + +-- !query 10850 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 10850 schema +struct> +-- !query 10850 output +{1.0:1,2.0:2} + + +-- !query 10851 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 10851 schema +struct> +-- !query 10851 output +{1.0:1,2.0:2} + + +-- !query 10852 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 10852 schema +struct> +-- !query 10852 output +{1.0:1,2.0:2} + + +-- !query 10853 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 10853 schema +struct> +-- !query 10853 output +{1.0:1.0,2.0:2.0} + + +-- !query 10854 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 10854 schema +struct> +-- !query 10854 output +{1.0:1.0,2.0:2.0} + + +-- !query 10855 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 10855 schema +struct> +-- !query 10855 output +{1.0:1,2.0:2} + + +-- !query 10856 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 10856 schema +struct> +-- !query 10856 output +{1.0:"1",2.0:"2"} + + +-- !query 10857 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 10857 schema +struct<> +-- !query 10857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10858 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 10858 schema +struct<> +-- !query 10858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10859 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10859 schema +struct<> +-- !query 10859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10860 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10860 schema +struct<> +-- !query 10860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10861 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 10861 schema +struct> +-- !query 10861 output +{1.0:1,2.0:2} + + +-- !query 10862 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 10862 schema +struct> +-- !query 10862 output +{1.0:1,2.0:2} + + +-- !query 10863 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 10863 schema +struct> +-- !query 10863 output +{1.0:1,2.0:2} + + +-- !query 10864 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 10864 schema +struct> +-- !query 10864 output +{1.0:1,2.0:2} + + +-- !query 10865 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 10865 schema +struct> +-- !query 10865 output +{1.0:1.0,2.0:2.0} + + +-- !query 10866 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 10866 schema +struct> +-- !query 10866 output +{1.0:1.0,2.0:2.0} + + +-- !query 10867 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 10867 schema +struct> +-- !query 10867 output +{1.0:1,2.0:2} + + +-- !query 10868 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 10868 schema +struct> +-- !query 10868 output +{1.0:"1",2.0:"2"} + + +-- !query 10869 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 10869 schema +struct<> +-- !query 10869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10870 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 10870 schema +struct<> +-- !query 10870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10871 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10871 schema +struct<> +-- !query 10871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10872 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10872 schema +struct<> +-- !query 10872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10873 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 10873 schema +struct> +-- !query 10873 output +{1:1,2:2} + + +-- !query 10874 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 10874 schema +struct> +-- !query 10874 output +{1:1,2:2} + + +-- !query 10875 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 10875 schema +struct> +-- !query 10875 output +{1:1,2:2} + + +-- !query 10876 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 10876 schema +struct> +-- !query 10876 output +{1:1,2:2} + + +-- !query 10877 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 10877 schema +struct> +-- !query 10877 output +{1:1.0,2:2.0} + + +-- !query 10878 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 10878 schema +struct> +-- !query 10878 output +{1:1.0,2:2.0} + + +-- !query 10879 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 10879 schema +struct> +-- !query 10879 output +{1:1,2:2} + + +-- !query 10880 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 10880 schema +struct> +-- !query 10880 output +{1:"1",2:"2"} + + +-- !query 10881 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 10881 schema +struct<> +-- !query 10881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10882 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 10882 schema +struct<> +-- !query 10882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10883 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10883 schema +struct<> +-- !query 10883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10884 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10884 schema +struct<> +-- !query 10884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10885 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 10885 schema +struct> +-- !query 10885 output +{"1":1,"2":2} + + +-- !query 10886 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 10886 schema +struct> +-- !query 10886 output +{"1":1,"2":2} + + +-- !query 10887 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 10887 schema +struct> +-- !query 10887 output +{"1":1,"2":2} + + +-- !query 10888 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 10888 schema +struct> +-- !query 10888 output +{"1":1,"2":2} + + +-- !query 10889 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 10889 schema +struct> +-- !query 10889 output +{"1":1.0,"2":2.0} + + +-- !query 10890 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 10890 schema +struct> +-- !query 10890 output +{"1":1.0,"2":2.0} + + +-- !query 10891 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 10891 schema +struct> +-- !query 10891 output +{"1":1,"2":2} + + +-- !query 10892 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 10892 schema +struct> +-- !query 10892 output +{"1":"1","2":"2"} + + +-- !query 10893 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 10893 schema +struct<> +-- !query 10893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 10894 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 10894 schema +struct<> +-- !query 10894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 10895 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10895 schema +struct<> +-- !query 10895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 10896 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10896 schema +struct<> +-- !query 10896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 10897 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 10897 schema +struct<> +-- !query 10897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10898 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 10898 schema +struct<> +-- !query 10898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10899 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 10899 schema +struct<> +-- !query 10899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10900 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 10900 schema +struct<> +-- !query 10900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10901 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 10901 schema +struct<> +-- !query 10901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10902 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 10902 schema +struct<> +-- !query 10902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10903 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 10903 schema +struct<> +-- !query 10903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10904 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 10904 schema +struct<> +-- !query 10904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10905 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 10905 schema +struct<> +-- !query 10905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10906 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 10906 schema +struct<> +-- !query 10906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10907 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10907 schema +struct<> +-- !query 10907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10908 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10908 schema +struct<> +-- !query 10908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 10909 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 10909 schema +struct<> +-- !query 10909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10910 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 10910 schema +struct<> +-- !query 10910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10911 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 10911 schema +struct<> +-- !query 10911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10912 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 10912 schema +struct<> +-- !query 10912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10913 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 10913 schema +struct<> +-- !query 10913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10914 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 10914 schema +struct<> +-- !query 10914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10915 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 10915 schema +struct<> +-- !query 10915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10916 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 10916 schema +struct<> +-- !query 10916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10917 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 10917 schema +struct<> +-- !query 10917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10918 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 10918 schema +struct<> +-- !query 10918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10919 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10919 schema +struct<> +-- !query 10919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10920 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10920 schema +struct<> +-- !query 10920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 10921 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 10921 schema +struct<> +-- !query 10921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10922 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 10922 schema +struct<> +-- !query 10922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10923 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 10923 schema +struct<> +-- !query 10923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10924 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 10924 schema +struct<> +-- !query 10924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10925 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 10925 schema +struct<> +-- !query 10925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10926 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 10926 schema +struct<> +-- !query 10926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10927 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 10927 schema +struct<> +-- !query 10927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10928 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 10928 schema +struct<> +-- !query 10928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10929 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 10929 schema +struct<> +-- !query 10929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10930 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 10930 schema +struct<> +-- !query 10930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10931 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10931 schema +struct<> +-- !query 10931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10932 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10932 schema +struct<> +-- !query 10932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 10933 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 10933 schema +struct<> +-- !query 10933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10934 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 10934 schema +struct<> +-- !query 10934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10935 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 10935 schema +struct<> +-- !query 10935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10936 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 10936 schema +struct<> +-- !query 10936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10937 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 10937 schema +struct<> +-- !query 10937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10938 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 10938 schema +struct<> +-- !query 10938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10939 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 10939 schema +struct<> +-- !query 10939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10940 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 10940 schema +struct<> +-- !query 10940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10941 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 10941 schema +struct<> +-- !query 10941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10942 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 10942 schema +struct<> +-- !query 10942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10943 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10943 schema +struct<> +-- !query 10943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10944 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10944 schema +struct<> +-- !query 10944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 10945 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 10945 schema +struct> +-- !query 10945 output +{1:1,2:2} + + +-- !query 10946 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 10946 schema +struct> +-- !query 10946 output +{1:1,2:2} + + +-- !query 10947 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 10947 schema +struct> +-- !query 10947 output +{1:1,2:2} + + +-- !query 10948 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 10948 schema +struct> +-- !query 10948 output +{1:1,2:2} + + +-- !query 10949 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 10949 schema +struct> +-- !query 10949 output +{1:1.0,2:2.0} + + +-- !query 10950 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 10950 schema +struct> +-- !query 10950 output +{1:1.0,2:2.0} + + +-- !query 10951 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 10951 schema +struct> +-- !query 10951 output +{1:1,2:2} + + +-- !query 10952 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 10952 schema +struct> +-- !query 10952 output +{1:"1",2:"2"} + + +-- !query 10953 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 10953 schema +struct<> +-- !query 10953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 10954 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 10954 schema +struct<> +-- !query 10954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 10955 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10955 schema +struct<> +-- !query 10955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 10956 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10956 schema +struct<> +-- !query 10956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 10957 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 10957 schema +struct> +-- !query 10957 output +{1:1,2:2} + + +-- !query 10958 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 10958 schema +struct> +-- !query 10958 output +{1:1,2:2} + + +-- !query 10959 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 10959 schema +struct> +-- !query 10959 output +{1:1,2:2} + + +-- !query 10960 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 10960 schema +struct> +-- !query 10960 output +{1:1,2:2} + + +-- !query 10961 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 10961 schema +struct> +-- !query 10961 output +{1:1.0,2:2.0} + + +-- !query 10962 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 10962 schema +struct> +-- !query 10962 output +{1:1.0,2:2.0} + + +-- !query 10963 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 10963 schema +struct> +-- !query 10963 output +{1:1,2:2} + + +-- !query 10964 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 10964 schema +struct> +-- !query 10964 output +{1:"1",2:"2"} + + +-- !query 10965 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 10965 schema +struct<> +-- !query 10965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 10966 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 10966 schema +struct<> +-- !query 10966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 10967 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10967 schema +struct<> +-- !query 10967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 10968 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10968 schema +struct<> +-- !query 10968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 10969 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 10969 schema +struct> +-- !query 10969 output +{1:1,2:2} + + +-- !query 10970 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 10970 schema +struct> +-- !query 10970 output +{1:1,2:2} + + +-- !query 10971 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 10971 schema +struct> +-- !query 10971 output +{1:1,2:2} + + +-- !query 10972 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 10972 schema +struct> +-- !query 10972 output +{1:1,2:2} + + +-- !query 10973 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 10973 schema +struct> +-- !query 10973 output +{1:1.0,2:2.0} + + +-- !query 10974 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 10974 schema +struct> +-- !query 10974 output +{1:1.0,2:2.0} + + +-- !query 10975 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 10975 schema +struct> +-- !query 10975 output +{1:1,2:2} + + +-- !query 10976 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 10976 schema +struct> +-- !query 10976 output +{1:"1",2:"2"} + + +-- !query 10977 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 10977 schema +struct<> +-- !query 10977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 10978 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 10978 schema +struct<> +-- !query 10978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 10979 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10979 schema +struct<> +-- !query 10979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 10980 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10980 schema +struct<> +-- !query 10980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 10981 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 10981 schema +struct> +-- !query 10981 output +{1:1,2:2} + + +-- !query 10982 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 10982 schema +struct> +-- !query 10982 output +{1:1,2:2} + + +-- !query 10983 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 10983 schema +struct> +-- !query 10983 output +{1:1,2:2} + + +-- !query 10984 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 10984 schema +struct> +-- !query 10984 output +{1:1,2:2} + + +-- !query 10985 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 10985 schema +struct> +-- !query 10985 output +{1:1.0,2:2.0} + + +-- !query 10986 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 10986 schema +struct> +-- !query 10986 output +{1:1.0,2:2.0} + + +-- !query 10987 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 10987 schema +struct> +-- !query 10987 output +{1:1,2:2} + + +-- !query 10988 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 10988 schema +struct> +-- !query 10988 output +{1:"1",2:"2"} + + +-- !query 10989 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 10989 schema +struct<> +-- !query 10989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 10990 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 10990 schema +struct<> +-- !query 10990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 10991 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 10991 schema +struct<> +-- !query 10991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 10992 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 10992 schema +struct<> +-- !query 10992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 10993 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 10993 schema +struct> +-- !query 10993 output +{1.0:1,2.0:2} + + +-- !query 10994 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 10994 schema +struct> +-- !query 10994 output +{1.0:1,2.0:2} + + +-- !query 10995 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 10995 schema +struct> +-- !query 10995 output +{1.0:1,2.0:2} + + +-- !query 10996 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 10996 schema +struct> +-- !query 10996 output +{1.0:1,2.0:2} + + +-- !query 10997 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 10997 schema +struct> +-- !query 10997 output +{1.0:1.0,2.0:2.0} + + +-- !query 10998 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 10998 schema +struct> +-- !query 10998 output +{1.0:1.0,2.0:2.0} + + +-- !query 10999 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 10999 schema +struct> +-- !query 10999 output +{1.0:1,2.0:2} + + +-- !query 11000 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 11000 schema +struct> +-- !query 11000 output +{1.0:"1",2.0:"2"} + + +-- !query 11001 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 11001 schema +struct<> +-- !query 11001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 11002 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 11002 schema +struct<> +-- !query 11002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 11003 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11003 schema +struct<> +-- !query 11003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 11004 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11004 schema +struct<> +-- !query 11004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 11005 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 11005 schema +struct> +-- !query 11005 output +{1.0:1,2.0:2} + + +-- !query 11006 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 11006 schema +struct> +-- !query 11006 output +{1.0:1,2.0:2} + + +-- !query 11007 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 11007 schema +struct> +-- !query 11007 output +{1.0:1,2.0:2} + + +-- !query 11008 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 11008 schema +struct> +-- !query 11008 output +{1.0:1,2.0:2} + + +-- !query 11009 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 11009 schema +struct> +-- !query 11009 output +{1.0:1.0,2.0:2.0} + + +-- !query 11010 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 11010 schema +struct> +-- !query 11010 output +{1.0:1.0,2.0:2.0} + + +-- !query 11011 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 11011 schema +struct> +-- !query 11011 output +{1.0:1,2.0:2} + + +-- !query 11012 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 11012 schema +struct> +-- !query 11012 output +{1.0:"1",2.0:"2"} + + +-- !query 11013 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 11013 schema +struct<> +-- !query 11013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 11014 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 11014 schema +struct<> +-- !query 11014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 11015 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11015 schema +struct<> +-- !query 11015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 11016 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11016 schema +struct<> +-- !query 11016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 11017 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 11017 schema +struct> +-- !query 11017 output +{1:1,2:2} + + +-- !query 11018 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 11018 schema +struct> +-- !query 11018 output +{1:1,2:2} + + +-- !query 11019 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 11019 schema +struct> +-- !query 11019 output +{1:1,2:2} + + +-- !query 11020 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 11020 schema +struct> +-- !query 11020 output +{1:1,2:2} + + +-- !query 11021 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 11021 schema +struct> +-- !query 11021 output +{1:1.0,2:2.0} + + +-- !query 11022 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 11022 schema +struct> +-- !query 11022 output +{1:1.0,2:2.0} + + +-- !query 11023 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 11023 schema +struct> +-- !query 11023 output +{1:1,2:2} + + +-- !query 11024 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 11024 schema +struct> +-- !query 11024 output +{1:"1",2:"2"} + + +-- !query 11025 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 11025 schema +struct<> +-- !query 11025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 11026 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 11026 schema +struct<> +-- !query 11026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 11027 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11027 schema +struct<> +-- !query 11027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 11028 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11028 schema +struct<> +-- !query 11028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 11029 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 11029 schema +struct> +-- !query 11029 output +{"1":1,"2":2} + + +-- !query 11030 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 11030 schema +struct> +-- !query 11030 output +{"1":1,"2":2} + + +-- !query 11031 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 11031 schema +struct> +-- !query 11031 output +{"1":1,"2":2} + + +-- !query 11032 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 11032 schema +struct> +-- !query 11032 output +{"1":1,"2":2} + + +-- !query 11033 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 11033 schema +struct> +-- !query 11033 output +{"1":1.0,"2":2.0} + + +-- !query 11034 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 11034 schema +struct> +-- !query 11034 output +{"1":1.0,"2":2.0} + + +-- !query 11035 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 11035 schema +struct> +-- !query 11035 output +{"1":1,"2":2} + + +-- !query 11036 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 11036 schema +struct> +-- !query 11036 output +{"1":"1","2":"2"} + + +-- !query 11037 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 11037 schema +struct<> +-- !query 11037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 11038 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 11038 schema +struct<> +-- !query 11038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 11039 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11039 schema +struct<> +-- !query 11039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 11040 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11040 schema +struct<> +-- !query 11040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 11041 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 11041 schema +struct<> +-- !query 11041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11042 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 11042 schema +struct<> +-- !query 11042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11043 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 11043 schema +struct<> +-- !query 11043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11044 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 11044 schema +struct<> +-- !query 11044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11045 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 11045 schema +struct<> +-- !query 11045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11046 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 11046 schema +struct<> +-- !query 11046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11047 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 11047 schema +struct<> +-- !query 11047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11048 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 11048 schema +struct<> +-- !query 11048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11049 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 11049 schema +struct<> +-- !query 11049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11050 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 11050 schema +struct<> +-- !query 11050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11051 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11051 schema +struct<> +-- !query 11051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11052 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11052 schema +struct<> +-- !query 11052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11053 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 11053 schema +struct<> +-- !query 11053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11054 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 11054 schema +struct<> +-- !query 11054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11055 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 11055 schema +struct<> +-- !query 11055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11056 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 11056 schema +struct<> +-- !query 11056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11057 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 11057 schema +struct<> +-- !query 11057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11058 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 11058 schema +struct<> +-- !query 11058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11059 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 11059 schema +struct<> +-- !query 11059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11060 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 11060 schema +struct<> +-- !query 11060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11061 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 11061 schema +struct<> +-- !query 11061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11062 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 11062 schema +struct<> +-- !query 11062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11063 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11063 schema +struct<> +-- !query 11063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11064 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11064 schema +struct<> +-- !query 11064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11065 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 11065 schema +struct<> +-- !query 11065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11066 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 11066 schema +struct<> +-- !query 11066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11067 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 11067 schema +struct<> +-- !query 11067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11068 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 11068 schema +struct<> +-- !query 11068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11069 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 11069 schema +struct<> +-- !query 11069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11070 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 11070 schema +struct<> +-- !query 11070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11071 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 11071 schema +struct<> +-- !query 11071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11072 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 11072 schema +struct<> +-- !query 11072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11073 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 11073 schema +struct<> +-- !query 11073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11074 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 11074 schema +struct<> +-- !query 11074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11075 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11075 schema +struct<> +-- !query 11075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11076 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11076 schema +struct<> +-- !query 11076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11077 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 11077 schema +struct<> +-- !query 11077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11078 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 11078 schema +struct<> +-- !query 11078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11079 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 11079 schema +struct<> +-- !query 11079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11080 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 11080 schema +struct<> +-- !query 11080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11081 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 11081 schema +struct<> +-- !query 11081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11082 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 11082 schema +struct<> +-- !query 11082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11083 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 11083 schema +struct<> +-- !query 11083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11084 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 11084 schema +struct<> +-- !query 11084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11085 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 11085 schema +struct<> +-- !query 11085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11086 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 11086 schema +struct<> +-- !query 11086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11087 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11087 schema +struct<> +-- !query 11087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11088 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11088 schema +struct<> +-- !query 11088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11089 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 11089 schema +struct> +-- !query 11089 output +{1:1.0,2:2.0} + + +-- !query 11090 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 11090 schema +struct> +-- !query 11090 output +{1:1.0,2:2.0} + + +-- !query 11091 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 11091 schema +struct> +-- !query 11091 output +{1:1.0,2:2.0} + + +-- !query 11092 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 11092 schema +struct> +-- !query 11092 output +{1:1.0,2:2.0} + + +-- !query 11093 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 11093 schema +struct> +-- !query 11093 output +{1:1.0,2:2.0} + + +-- !query 11094 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 11094 schema +struct> +-- !query 11094 output +{1:1.0,2:2.0} + + +-- !query 11095 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 11095 schema +struct> +-- !query 11095 output +{1:1.0,2:2.0} + + +-- !query 11096 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 11096 schema +struct> +-- !query 11096 output +{1:"1.0",2:"2"} + + +-- !query 11097 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 11097 schema +struct<> +-- !query 11097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11098 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 11098 schema +struct<> +-- !query 11098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11099 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11099 schema +struct<> +-- !query 11099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11100 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11100 schema +struct<> +-- !query 11100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11101 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 11101 schema +struct> +-- !query 11101 output +{1:1.0,2:2.0} + + +-- !query 11102 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 11102 schema +struct> +-- !query 11102 output +{1:1.0,2:2.0} + + +-- !query 11103 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 11103 schema +struct> +-- !query 11103 output +{1:1.0,2:2.0} + + +-- !query 11104 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 11104 schema +struct> +-- !query 11104 output +{1:1.0,2:2.0} + + +-- !query 11105 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 11105 schema +struct> +-- !query 11105 output +{1:1.0,2:2.0} + + +-- !query 11106 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 11106 schema +struct> +-- !query 11106 output +{1:1.0,2:2.0} + + +-- !query 11107 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 11107 schema +struct> +-- !query 11107 output +{1:1.0,2:2.0} + + +-- !query 11108 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 11108 schema +struct> +-- !query 11108 output +{1:"1.0",2:"2"} + + +-- !query 11109 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 11109 schema +struct<> +-- !query 11109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11110 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 11110 schema +struct<> +-- !query 11110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11111 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11111 schema +struct<> +-- !query 11111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11112 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11112 schema +struct<> +-- !query 11112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11113 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 11113 schema +struct> +-- !query 11113 output +{1:1.0,2:2.0} + + +-- !query 11114 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 11114 schema +struct> +-- !query 11114 output +{1:1.0,2:2.0} + + +-- !query 11115 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 11115 schema +struct> +-- !query 11115 output +{1:1.0,2:2.0} + + +-- !query 11116 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 11116 schema +struct> +-- !query 11116 output +{1:1.0,2:2.0} + + +-- !query 11117 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 11117 schema +struct> +-- !query 11117 output +{1:1.0,2:2.0} + + +-- !query 11118 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 11118 schema +struct> +-- !query 11118 output +{1:1.0,2:2.0} + + +-- !query 11119 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 11119 schema +struct> +-- !query 11119 output +{1:1.0,2:2.0} + + +-- !query 11120 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 11120 schema +struct> +-- !query 11120 output +{1:"1.0",2:"2"} + + +-- !query 11121 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 11121 schema +struct<> +-- !query 11121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11122 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 11122 schema +struct<> +-- !query 11122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11123 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11123 schema +struct<> +-- !query 11123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11124 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11124 schema +struct<> +-- !query 11124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11125 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 11125 schema +struct> +-- !query 11125 output +{1:1.0,2:2.0} + + +-- !query 11126 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 11126 schema +struct> +-- !query 11126 output +{1:1.0,2:2.0} + + +-- !query 11127 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 11127 schema +struct> +-- !query 11127 output +{1:1.0,2:2.0} + + +-- !query 11128 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 11128 schema +struct> +-- !query 11128 output +{1:1.0,2:2.0} + + +-- !query 11129 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 11129 schema +struct> +-- !query 11129 output +{1:1.0,2:2.0} + + +-- !query 11130 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 11130 schema +struct> +-- !query 11130 output +{1:1.0,2:2.0} + + +-- !query 11131 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 11131 schema +struct> +-- !query 11131 output +{1:1.0,2:2.0} + + +-- !query 11132 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 11132 schema +struct> +-- !query 11132 output +{1:"1.0",2:"2"} + + +-- !query 11133 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 11133 schema +struct<> +-- !query 11133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11134 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 11134 schema +struct<> +-- !query 11134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11135 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11135 schema +struct<> +-- !query 11135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11136 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11136 schema +struct<> +-- !query 11136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11137 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 11137 schema +struct> +-- !query 11137 output +{1.0:1.0,2.0:2.0} + + +-- !query 11138 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 11138 schema +struct> +-- !query 11138 output +{1.0:1.0,2.0:2.0} + + +-- !query 11139 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 11139 schema +struct> +-- !query 11139 output +{1.0:1.0,2.0:2.0} + + +-- !query 11140 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 11140 schema +struct> +-- !query 11140 output +{1.0:1.0,2.0:2.0} + + +-- !query 11141 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 11141 schema +struct> +-- !query 11141 output +{1.0:1.0,2.0:2.0} + + +-- !query 11142 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 11142 schema +struct> +-- !query 11142 output +{1.0:1.0,2.0:2.0} + + +-- !query 11143 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 11143 schema +struct> +-- !query 11143 output +{1.0:1.0,2.0:2.0} + + +-- !query 11144 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 11144 schema +struct> +-- !query 11144 output +{1.0:"1.0",2.0:"2"} + + +-- !query 11145 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 11145 schema +struct<> +-- !query 11145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11146 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 11146 schema +struct<> +-- !query 11146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11147 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11147 schema +struct<> +-- !query 11147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11148 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11148 schema +struct<> +-- !query 11148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11149 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 11149 schema +struct> +-- !query 11149 output +{1.0:1.0,2.0:2.0} + + +-- !query 11150 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 11150 schema +struct> +-- !query 11150 output +{1.0:1.0,2.0:2.0} + + +-- !query 11151 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 11151 schema +struct> +-- !query 11151 output +{1.0:1.0,2.0:2.0} + + +-- !query 11152 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 11152 schema +struct> +-- !query 11152 output +{1.0:1.0,2.0:2.0} + + +-- !query 11153 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 11153 schema +struct> +-- !query 11153 output +{1.0:1.0,2.0:2.0} + + +-- !query 11154 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 11154 schema +struct> +-- !query 11154 output +{1.0:1.0,2.0:2.0} + + +-- !query 11155 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 11155 schema +struct> +-- !query 11155 output +{1.0:1.0,2.0:2.0} + + +-- !query 11156 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 11156 schema +struct> +-- !query 11156 output +{1.0:"1.0",2.0:"2"} + + +-- !query 11157 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 11157 schema +struct<> +-- !query 11157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11158 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 11158 schema +struct<> +-- !query 11158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11159 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11159 schema +struct<> +-- !query 11159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11160 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11160 schema +struct<> +-- !query 11160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11161 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 11161 schema +struct> +-- !query 11161 output +{1:1.0,2:2.0} + + +-- !query 11162 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 11162 schema +struct> +-- !query 11162 output +{1:1.0,2:2.0} + + +-- !query 11163 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 11163 schema +struct> +-- !query 11163 output +{1:1.0,2:2.0} + + +-- !query 11164 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 11164 schema +struct> +-- !query 11164 output +{1:1.0,2:2.0} + + +-- !query 11165 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 11165 schema +struct> +-- !query 11165 output +{1:1.0,2:2.0} + + +-- !query 11166 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 11166 schema +struct> +-- !query 11166 output +{1:1.0,2:2.0} + + +-- !query 11167 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 11167 schema +struct> +-- !query 11167 output +{1:1.0,2:2.0} + + +-- !query 11168 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 11168 schema +struct> +-- !query 11168 output +{1:"1.0",2:"2"} + + +-- !query 11169 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 11169 schema +struct<> +-- !query 11169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11170 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 11170 schema +struct<> +-- !query 11170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11171 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11171 schema +struct<> +-- !query 11171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11172 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11172 schema +struct<> +-- !query 11172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11173 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 11173 schema +struct> +-- !query 11173 output +{"1":1.0,"2":2.0} + + +-- !query 11174 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 11174 schema +struct> +-- !query 11174 output +{"1":1.0,"2":2.0} + + +-- !query 11175 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 11175 schema +struct> +-- !query 11175 output +{"1":1.0,"2":2.0} + + +-- !query 11176 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 11176 schema +struct> +-- !query 11176 output +{"1":1.0,"2":2.0} + + +-- !query 11177 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 11177 schema +struct> +-- !query 11177 output +{"1":1.0,"2":2.0} + + +-- !query 11178 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 11178 schema +struct> +-- !query 11178 output +{"1":1.0,"2":2.0} + + +-- !query 11179 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 11179 schema +struct> +-- !query 11179 output +{"1":1.0,"2":2.0} + + +-- !query 11180 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 11180 schema +struct> +-- !query 11180 output +{"1":"1.0","2":"2"} + + +-- !query 11181 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 11181 schema +struct<> +-- !query 11181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 11182 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 11182 schema +struct<> +-- !query 11182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 11183 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11183 schema +struct<> +-- !query 11183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 11184 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11184 schema +struct<> +-- !query 11184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 11185 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 11185 schema +struct<> +-- !query 11185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11186 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 11186 schema +struct<> +-- !query 11186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11187 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 11187 schema +struct<> +-- !query 11187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11188 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 11188 schema +struct<> +-- !query 11188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11189 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 11189 schema +struct<> +-- !query 11189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11190 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 11190 schema +struct<> +-- !query 11190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11191 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 11191 schema +struct<> +-- !query 11191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11192 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 11192 schema +struct<> +-- !query 11192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11193 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 11193 schema +struct<> +-- !query 11193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11194 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 11194 schema +struct<> +-- !query 11194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11195 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11195 schema +struct<> +-- !query 11195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11196 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11196 schema +struct<> +-- !query 11196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11197 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 11197 schema +struct<> +-- !query 11197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11198 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 11198 schema +struct<> +-- !query 11198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11199 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 11199 schema +struct<> +-- !query 11199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11200 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 11200 schema +struct<> +-- !query 11200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11201 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 11201 schema +struct<> +-- !query 11201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11202 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 11202 schema +struct<> +-- !query 11202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11203 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 11203 schema +struct<> +-- !query 11203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11204 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 11204 schema +struct<> +-- !query 11204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11205 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 11205 schema +struct<> +-- !query 11205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11206 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 11206 schema +struct<> +-- !query 11206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11207 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11207 schema +struct<> +-- !query 11207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11208 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11208 schema +struct<> +-- !query 11208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11209 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 11209 schema +struct<> +-- !query 11209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11210 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 11210 schema +struct<> +-- !query 11210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11211 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 11211 schema +struct<> +-- !query 11211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11212 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 11212 schema +struct<> +-- !query 11212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11213 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 11213 schema +struct<> +-- !query 11213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11214 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 11214 schema +struct<> +-- !query 11214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11215 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 11215 schema +struct<> +-- !query 11215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11216 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 11216 schema +struct<> +-- !query 11216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11217 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 11217 schema +struct<> +-- !query 11217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11218 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 11218 schema +struct<> +-- !query 11218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11219 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11219 schema +struct<> +-- !query 11219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11220 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11220 schema +struct<> +-- !query 11220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11221 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 11221 schema +struct<> +-- !query 11221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11222 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 11222 schema +struct<> +-- !query 11222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11223 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 11223 schema +struct<> +-- !query 11223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11224 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 11224 schema +struct<> +-- !query 11224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11225 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 11225 schema +struct<> +-- !query 11225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11226 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 11226 schema +struct<> +-- !query 11226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11227 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 11227 schema +struct<> +-- !query 11227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11228 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 11228 schema +struct<> +-- !query 11228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11229 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 11229 schema +struct<> +-- !query 11229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11230 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 11230 schema +struct<> +-- !query 11230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11231 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11231 schema +struct<> +-- !query 11231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11232 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11232 schema +struct<> +-- !query 11232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11233 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 11233 schema +struct> +-- !query 11233 output +{1:1.0,2:2.0} + + +-- !query 11234 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 11234 schema +struct> +-- !query 11234 output +{1:1.0,2:2.0} + + +-- !query 11235 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 11235 schema +struct> +-- !query 11235 output +{1:1.0,2:2.0} + + +-- !query 11236 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 11236 schema +struct> +-- !query 11236 output +{1:1.0,2:2.0} + + +-- !query 11237 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 11237 schema +struct> +-- !query 11237 output +{1:1.0,2:2.0} + + +-- !query 11238 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 11238 schema +struct> +-- !query 11238 output +{1:1.0,2:2.0} + + +-- !query 11239 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 11239 schema +struct> +-- !query 11239 output +{1:1.0,2:2.0} + + +-- !query 11240 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 11240 schema +struct> +-- !query 11240 output +{1:"1.0",2:"2"} + + +-- !query 11241 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 11241 schema +struct<> +-- !query 11241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11242 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 11242 schema +struct<> +-- !query 11242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11243 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11243 schema +struct<> +-- !query 11243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11244 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11244 schema +struct<> +-- !query 11244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11245 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 11245 schema +struct> +-- !query 11245 output +{1:1.0,2:2.0} + + +-- !query 11246 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 11246 schema +struct> +-- !query 11246 output +{1:1.0,2:2.0} + + +-- !query 11247 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 11247 schema +struct> +-- !query 11247 output +{1:1.0,2:2.0} + + +-- !query 11248 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 11248 schema +struct> +-- !query 11248 output +{1:1.0,2:2.0} + + +-- !query 11249 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 11249 schema +struct> +-- !query 11249 output +{1:1.0,2:2.0} + + +-- !query 11250 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 11250 schema +struct> +-- !query 11250 output +{1:1.0,2:2.0} + + +-- !query 11251 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 11251 schema +struct> +-- !query 11251 output +{1:1.0,2:2.0} + + +-- !query 11252 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 11252 schema +struct> +-- !query 11252 output +{1:"1.0",2:"2"} + + +-- !query 11253 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 11253 schema +struct<> +-- !query 11253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11254 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 11254 schema +struct<> +-- !query 11254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11255 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11255 schema +struct<> +-- !query 11255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11256 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11256 schema +struct<> +-- !query 11256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11257 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 11257 schema +struct> +-- !query 11257 output +{1:1.0,2:2.0} + + +-- !query 11258 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 11258 schema +struct> +-- !query 11258 output +{1:1.0,2:2.0} + + +-- !query 11259 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 11259 schema +struct> +-- !query 11259 output +{1:1.0,2:2.0} + + +-- !query 11260 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 11260 schema +struct> +-- !query 11260 output +{1:1.0,2:2.0} + + +-- !query 11261 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 11261 schema +struct> +-- !query 11261 output +{1:1.0,2:2.0} + + +-- !query 11262 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 11262 schema +struct> +-- !query 11262 output +{1:1.0,2:2.0} + + +-- !query 11263 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 11263 schema +struct> +-- !query 11263 output +{1:1.0,2:2.0} + + +-- !query 11264 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 11264 schema +struct> +-- !query 11264 output +{1:"1.0",2:"2"} + + +-- !query 11265 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 11265 schema +struct<> +-- !query 11265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11266 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 11266 schema +struct<> +-- !query 11266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11267 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11267 schema +struct<> +-- !query 11267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11268 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11268 schema +struct<> +-- !query 11268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11269 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 11269 schema +struct> +-- !query 11269 output +{1:1.0,2:2.0} + + +-- !query 11270 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 11270 schema +struct> +-- !query 11270 output +{1:1.0,2:2.0} + + +-- !query 11271 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 11271 schema +struct> +-- !query 11271 output +{1:1.0,2:2.0} + + +-- !query 11272 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 11272 schema +struct> +-- !query 11272 output +{1:1.0,2:2.0} + + +-- !query 11273 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 11273 schema +struct> +-- !query 11273 output +{1:1.0,2:2.0} + + +-- !query 11274 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 11274 schema +struct> +-- !query 11274 output +{1:1.0,2:2.0} + + +-- !query 11275 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 11275 schema +struct> +-- !query 11275 output +{1:1.0,2:2.0} + + +-- !query 11276 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 11276 schema +struct> +-- !query 11276 output +{1:"1.0",2:"2"} + + +-- !query 11277 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 11277 schema +struct<> +-- !query 11277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11278 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 11278 schema +struct<> +-- !query 11278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11279 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11279 schema +struct<> +-- !query 11279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11280 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11280 schema +struct<> +-- !query 11280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11281 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 11281 schema +struct> +-- !query 11281 output +{1.0:1.0,2.0:2.0} + + +-- !query 11282 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 11282 schema +struct> +-- !query 11282 output +{1.0:1.0,2.0:2.0} + + +-- !query 11283 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 11283 schema +struct> +-- !query 11283 output +{1.0:1.0,2.0:2.0} + + +-- !query 11284 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 11284 schema +struct> +-- !query 11284 output +{1.0:1.0,2.0:2.0} + + +-- !query 11285 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 11285 schema +struct> +-- !query 11285 output +{1.0:1.0,2.0:2.0} + + +-- !query 11286 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 11286 schema +struct> +-- !query 11286 output +{1.0:1.0,2.0:2.0} + + +-- !query 11287 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 11287 schema +struct> +-- !query 11287 output +{1.0:1.0,2.0:2.0} + + +-- !query 11288 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 11288 schema +struct> +-- !query 11288 output +{1.0:"1.0",2.0:"2"} + + +-- !query 11289 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 11289 schema +struct<> +-- !query 11289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11290 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 11290 schema +struct<> +-- !query 11290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11291 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11291 schema +struct<> +-- !query 11291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11292 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11292 schema +struct<> +-- !query 11292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11293 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 11293 schema +struct> +-- !query 11293 output +{1.0:1.0,2.0:2.0} + + +-- !query 11294 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 11294 schema +struct> +-- !query 11294 output +{1.0:1.0,2.0:2.0} + + +-- !query 11295 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 11295 schema +struct> +-- !query 11295 output +{1.0:1.0,2.0:2.0} + + +-- !query 11296 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 11296 schema +struct> +-- !query 11296 output +{1.0:1.0,2.0:2.0} + + +-- !query 11297 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 11297 schema +struct> +-- !query 11297 output +{1.0:1.0,2.0:2.0} + + +-- !query 11298 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 11298 schema +struct> +-- !query 11298 output +{1.0:1.0,2.0:2.0} + + +-- !query 11299 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 11299 schema +struct> +-- !query 11299 output +{1.0:1.0,2.0:2.0} + + +-- !query 11300 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 11300 schema +struct> +-- !query 11300 output +{1.0:"1.0",2.0:"2"} + + +-- !query 11301 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 11301 schema +struct<> +-- !query 11301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11302 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 11302 schema +struct<> +-- !query 11302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11303 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11303 schema +struct<> +-- !query 11303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11304 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11304 schema +struct<> +-- !query 11304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11305 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 11305 schema +struct> +-- !query 11305 output +{1:1.0,2:2.0} + + +-- !query 11306 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 11306 schema +struct> +-- !query 11306 output +{1:1.0,2:2.0} + + +-- !query 11307 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 11307 schema +struct> +-- !query 11307 output +{1:1.0,2:2.0} + + +-- !query 11308 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 11308 schema +struct> +-- !query 11308 output +{1:1.0,2:2.0} + + +-- !query 11309 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 11309 schema +struct> +-- !query 11309 output +{1:1.0,2:2.0} + + +-- !query 11310 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 11310 schema +struct> +-- !query 11310 output +{1:1.0,2:2.0} + + +-- !query 11311 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 11311 schema +struct> +-- !query 11311 output +{1:1.0,2:2.0} + + +-- !query 11312 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 11312 schema +struct> +-- !query 11312 output +{1:"1.0",2:"2"} + + +-- !query 11313 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 11313 schema +struct<> +-- !query 11313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11314 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 11314 schema +struct<> +-- !query 11314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11315 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11315 schema +struct<> +-- !query 11315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11316 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11316 schema +struct<> +-- !query 11316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11317 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 11317 schema +struct> +-- !query 11317 output +{"1":1.0,"2":2.0} + + +-- !query 11318 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 11318 schema +struct> +-- !query 11318 output +{"1":1.0,"2":2.0} + + +-- !query 11319 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 11319 schema +struct> +-- !query 11319 output +{"1":1.0,"2":2.0} + + +-- !query 11320 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 11320 schema +struct> +-- !query 11320 output +{"1":1.0,"2":2.0} + + +-- !query 11321 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 11321 schema +struct> +-- !query 11321 output +{"1":1.0,"2":2.0} + + +-- !query 11322 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 11322 schema +struct> +-- !query 11322 output +{"1":1.0,"2":2.0} + + +-- !query 11323 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 11323 schema +struct> +-- !query 11323 output +{"1":1.0,"2":2.0} + + +-- !query 11324 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 11324 schema +struct> +-- !query 11324 output +{"1":"1.0","2":"2"} + + +-- !query 11325 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 11325 schema +struct<> +-- !query 11325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 11326 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 11326 schema +struct<> +-- !query 11326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 11327 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11327 schema +struct<> +-- !query 11327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 11328 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11328 schema +struct<> +-- !query 11328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 11329 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 11329 schema +struct<> +-- !query 11329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11330 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 11330 schema +struct<> +-- !query 11330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11331 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 11331 schema +struct<> +-- !query 11331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11332 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 11332 schema +struct<> +-- !query 11332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11333 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 11333 schema +struct<> +-- !query 11333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11334 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 11334 schema +struct<> +-- !query 11334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11335 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 11335 schema +struct<> +-- !query 11335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11336 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 11336 schema +struct<> +-- !query 11336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11337 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 11337 schema +struct<> +-- !query 11337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11338 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 11338 schema +struct<> +-- !query 11338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11339 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11339 schema +struct<> +-- !query 11339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11340 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11340 schema +struct<> +-- !query 11340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11341 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 11341 schema +struct<> +-- !query 11341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11342 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 11342 schema +struct<> +-- !query 11342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11343 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 11343 schema +struct<> +-- !query 11343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11344 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 11344 schema +struct<> +-- !query 11344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11345 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 11345 schema +struct<> +-- !query 11345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11346 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 11346 schema +struct<> +-- !query 11346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11347 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 11347 schema +struct<> +-- !query 11347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11348 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 11348 schema +struct<> +-- !query 11348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11349 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 11349 schema +struct<> +-- !query 11349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11350 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 11350 schema +struct<> +-- !query 11350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11351 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11351 schema +struct<> +-- !query 11351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11352 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11352 schema +struct<> +-- !query 11352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11353 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 11353 schema +struct<> +-- !query 11353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11354 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 11354 schema +struct<> +-- !query 11354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11355 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 11355 schema +struct<> +-- !query 11355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11356 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 11356 schema +struct<> +-- !query 11356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11357 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 11357 schema +struct<> +-- !query 11357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11358 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 11358 schema +struct<> +-- !query 11358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11359 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 11359 schema +struct<> +-- !query 11359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11360 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 11360 schema +struct<> +-- !query 11360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11361 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 11361 schema +struct<> +-- !query 11361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11362 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 11362 schema +struct<> +-- !query 11362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11363 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11363 schema +struct<> +-- !query 11363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11364 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11364 schema +struct<> +-- !query 11364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11365 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 11365 schema +struct<> +-- !query 11365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11366 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 11366 schema +struct<> +-- !query 11366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11367 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 11367 schema +struct<> +-- !query 11367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11368 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 11368 schema +struct<> +-- !query 11368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11369 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 11369 schema +struct<> +-- !query 11369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11370 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 11370 schema +struct<> +-- !query 11370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11371 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 11371 schema +struct<> +-- !query 11371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11372 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 11372 schema +struct<> +-- !query 11372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11373 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 11373 schema +struct<> +-- !query 11373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11374 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 11374 schema +struct<> +-- !query 11374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11375 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11375 schema +struct<> +-- !query 11375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11376 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11376 schema +struct<> +-- !query 11376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11377 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 11377 schema +struct> +-- !query 11377 output +{1:1,2:2} + + +-- !query 11378 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 11378 schema +struct> +-- !query 11378 output +{1:1,2:2} + + +-- !query 11379 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 11379 schema +struct> +-- !query 11379 output +{1:1,2:2} + + +-- !query 11380 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 11380 schema +struct> +-- !query 11380 output +{1:1,2:2} + + +-- !query 11381 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 11381 schema +struct> +-- !query 11381 output +{1:1.0,2:2.0} + + +-- !query 11382 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 11382 schema +struct> +-- !query 11382 output +{1:1.0,2:2.0} + + +-- !query 11383 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 11383 schema +struct> +-- !query 11383 output +{1:1,2:2} + + +-- !query 11384 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 11384 schema +struct> +-- !query 11384 output +{1:"1",2:"2"} + + +-- !query 11385 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 11385 schema +struct<> +-- !query 11385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11386 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 11386 schema +struct<> +-- !query 11386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11387 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11387 schema +struct<> +-- !query 11387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11388 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11388 schema +struct<> +-- !query 11388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11389 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 11389 schema +struct> +-- !query 11389 output +{1:1,2:2} + + +-- !query 11390 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 11390 schema +struct> +-- !query 11390 output +{1:1,2:2} + + +-- !query 11391 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 11391 schema +struct> +-- !query 11391 output +{1:1,2:2} + + +-- !query 11392 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 11392 schema +struct> +-- !query 11392 output +{1:1,2:2} + + +-- !query 11393 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 11393 schema +struct> +-- !query 11393 output +{1:1.0,2:2.0} + + +-- !query 11394 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 11394 schema +struct> +-- !query 11394 output +{1:1.0,2:2.0} + + +-- !query 11395 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 11395 schema +struct> +-- !query 11395 output +{1:1,2:2} + + +-- !query 11396 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 11396 schema +struct> +-- !query 11396 output +{1:"1",2:"2"} + + +-- !query 11397 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 11397 schema +struct<> +-- !query 11397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11398 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 11398 schema +struct<> +-- !query 11398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11399 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11399 schema +struct<> +-- !query 11399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11400 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11400 schema +struct<> +-- !query 11400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11401 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 11401 schema +struct> +-- !query 11401 output +{1:1,2:2} + + +-- !query 11402 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 11402 schema +struct> +-- !query 11402 output +{1:1,2:2} + + +-- !query 11403 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 11403 schema +struct> +-- !query 11403 output +{1:1,2:2} + + +-- !query 11404 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 11404 schema +struct> +-- !query 11404 output +{1:1,2:2} + + +-- !query 11405 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 11405 schema +struct> +-- !query 11405 output +{1:1.0,2:2.0} + + +-- !query 11406 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 11406 schema +struct> +-- !query 11406 output +{1:1.0,2:2.0} + + +-- !query 11407 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 11407 schema +struct> +-- !query 11407 output +{1:1,2:2} + + +-- !query 11408 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 11408 schema +struct> +-- !query 11408 output +{1:"1",2:"2"} + + +-- !query 11409 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 11409 schema +struct<> +-- !query 11409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11410 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 11410 schema +struct<> +-- !query 11410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11411 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11411 schema +struct<> +-- !query 11411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11412 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11412 schema +struct<> +-- !query 11412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11413 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 11413 schema +struct> +-- !query 11413 output +{1:1,2:2} + + +-- !query 11414 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 11414 schema +struct> +-- !query 11414 output +{1:1,2:2} + + +-- !query 11415 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 11415 schema +struct> +-- !query 11415 output +{1:1,2:2} + + +-- !query 11416 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 11416 schema +struct> +-- !query 11416 output +{1:1,2:2} + + +-- !query 11417 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 11417 schema +struct> +-- !query 11417 output +{1:1.0,2:2.0} + + +-- !query 11418 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 11418 schema +struct> +-- !query 11418 output +{1:1.0,2:2.0} + + +-- !query 11419 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 11419 schema +struct> +-- !query 11419 output +{1:1,2:2} + + +-- !query 11420 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 11420 schema +struct> +-- !query 11420 output +{1:"1",2:"2"} + + +-- !query 11421 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 11421 schema +struct<> +-- !query 11421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11422 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 11422 schema +struct<> +-- !query 11422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11423 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11423 schema +struct<> +-- !query 11423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11424 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11424 schema +struct<> +-- !query 11424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11425 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 11425 schema +struct> +-- !query 11425 output +{1.0:1,2.0:2} + + +-- !query 11426 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 11426 schema +struct> +-- !query 11426 output +{1.0:1,2.0:2} + + +-- !query 11427 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 11427 schema +struct> +-- !query 11427 output +{1.0:1,2.0:2} + + +-- !query 11428 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 11428 schema +struct> +-- !query 11428 output +{1.0:1,2.0:2} + + +-- !query 11429 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 11429 schema +struct> +-- !query 11429 output +{1.0:1.0,2.0:2.0} + + +-- !query 11430 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 11430 schema +struct> +-- !query 11430 output +{1.0:1.0,2.0:2.0} + + +-- !query 11431 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 11431 schema +struct> +-- !query 11431 output +{1.0:1,2.0:2} + + +-- !query 11432 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 11432 schema +struct> +-- !query 11432 output +{1.0:"1",2.0:"2"} + + +-- !query 11433 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 11433 schema +struct<> +-- !query 11433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11434 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 11434 schema +struct<> +-- !query 11434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11435 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11435 schema +struct<> +-- !query 11435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11436 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11436 schema +struct<> +-- !query 11436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11437 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 11437 schema +struct> +-- !query 11437 output +{1.0:1,2.0:2} + + +-- !query 11438 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 11438 schema +struct> +-- !query 11438 output +{1.0:1,2.0:2} + + +-- !query 11439 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 11439 schema +struct> +-- !query 11439 output +{1.0:1,2.0:2} + + +-- !query 11440 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 11440 schema +struct> +-- !query 11440 output +{1.0:1,2.0:2} + + +-- !query 11441 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 11441 schema +struct> +-- !query 11441 output +{1.0:1.0,2.0:2.0} + + +-- !query 11442 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 11442 schema +struct> +-- !query 11442 output +{1.0:1.0,2.0:2.0} + + +-- !query 11443 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 11443 schema +struct> +-- !query 11443 output +{1.0:1,2.0:2} + + +-- !query 11444 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 11444 schema +struct> +-- !query 11444 output +{1.0:"1",2.0:"2"} + + +-- !query 11445 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 11445 schema +struct<> +-- !query 11445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11446 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 11446 schema +struct<> +-- !query 11446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11447 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11447 schema +struct<> +-- !query 11447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11448 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11448 schema +struct<> +-- !query 11448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11449 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 11449 schema +struct> +-- !query 11449 output +{1:1,2:2} + + +-- !query 11450 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 11450 schema +struct> +-- !query 11450 output +{1:1,2:2} + + +-- !query 11451 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 11451 schema +struct> +-- !query 11451 output +{1:1,2:2} + + +-- !query 11452 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 11452 schema +struct> +-- !query 11452 output +{1:1,2:2} + + +-- !query 11453 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 11453 schema +struct> +-- !query 11453 output +{1:1.0,2:2.0} + + +-- !query 11454 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 11454 schema +struct> +-- !query 11454 output +{1:1.0,2:2.0} + + +-- !query 11455 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 11455 schema +struct> +-- !query 11455 output +{1:1,2:2} + + +-- !query 11456 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 11456 schema +struct> +-- !query 11456 output +{1:"1",2:"2"} + + +-- !query 11457 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 11457 schema +struct<> +-- !query 11457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11458 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 11458 schema +struct<> +-- !query 11458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11459 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11459 schema +struct<> +-- !query 11459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11460 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11460 schema +struct<> +-- !query 11460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11461 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 11461 schema +struct> +-- !query 11461 output +{"1":1,"2":2} + + +-- !query 11462 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 11462 schema +struct> +-- !query 11462 output +{"1":1,"2":2} + + +-- !query 11463 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 11463 schema +struct> +-- !query 11463 output +{"1":1,"2":2} + + +-- !query 11464 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 11464 schema +struct> +-- !query 11464 output +{"1":1,"2":2} + + +-- !query 11465 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 11465 schema +struct> +-- !query 11465 output +{"1":1.0,"2":2.0} + + +-- !query 11466 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 11466 schema +struct> +-- !query 11466 output +{"1":1.0,"2":2.0} + + +-- !query 11467 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 11467 schema +struct> +-- !query 11467 output +{"1":1,"2":2} + + +-- !query 11468 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 11468 schema +struct> +-- !query 11468 output +{"1":"1","2":"2"} + + +-- !query 11469 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 11469 schema +struct<> +-- !query 11469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11470 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 11470 schema +struct<> +-- !query 11470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11471 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11471 schema +struct<> +-- !query 11471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11472 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11472 schema +struct<> +-- !query 11472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11473 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 11473 schema +struct<> +-- !query 11473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11474 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 11474 schema +struct<> +-- !query 11474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11475 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 11475 schema +struct<> +-- !query 11475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11476 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 11476 schema +struct<> +-- !query 11476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11477 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 11477 schema +struct<> +-- !query 11477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11478 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 11478 schema +struct<> +-- !query 11478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11479 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 11479 schema +struct<> +-- !query 11479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11480 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 11480 schema +struct<> +-- !query 11480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11481 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 11481 schema +struct<> +-- !query 11481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11482 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 11482 schema +struct<> +-- !query 11482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11483 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11483 schema +struct<> +-- !query 11483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11484 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11484 schema +struct<> +-- !query 11484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11485 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 11485 schema +struct<> +-- !query 11485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11486 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 11486 schema +struct<> +-- !query 11486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11487 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 11487 schema +struct<> +-- !query 11487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11488 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 11488 schema +struct<> +-- !query 11488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11489 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 11489 schema +struct<> +-- !query 11489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11490 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 11490 schema +struct<> +-- !query 11490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11491 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 11491 schema +struct<> +-- !query 11491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11492 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 11492 schema +struct<> +-- !query 11492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11493 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 11493 schema +struct<> +-- !query 11493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11494 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 11494 schema +struct<> +-- !query 11494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11495 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11495 schema +struct<> +-- !query 11495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11496 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11496 schema +struct<> +-- !query 11496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11497 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 11497 schema +struct<> +-- !query 11497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11498 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 11498 schema +struct<> +-- !query 11498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11499 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 11499 schema +struct<> +-- !query 11499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11500 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 11500 schema +struct<> +-- !query 11500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11501 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 11501 schema +struct<> +-- !query 11501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11502 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 11502 schema +struct<> +-- !query 11502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11503 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 11503 schema +struct<> +-- !query 11503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11504 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 11504 schema +struct<> +-- !query 11504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11505 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 11505 schema +struct<> +-- !query 11505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11506 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 11506 schema +struct<> +-- !query 11506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11507 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11507 schema +struct<> +-- !query 11507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11508 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11508 schema +struct<> +-- !query 11508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11509 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 11509 schema +struct<> +-- !query 11509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11510 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 11510 schema +struct<> +-- !query 11510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11511 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 11511 schema +struct<> +-- !query 11511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11512 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 11512 schema +struct<> +-- !query 11512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11513 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 11513 schema +struct<> +-- !query 11513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11514 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 11514 schema +struct<> +-- !query 11514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11515 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 11515 schema +struct<> +-- !query 11515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11516 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 11516 schema +struct<> +-- !query 11516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11517 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 11517 schema +struct<> +-- !query 11517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11518 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 11518 schema +struct<> +-- !query 11518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11519 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11519 schema +struct<> +-- !query 11519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11520 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11520 schema +struct<> +-- !query 11520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11521 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 11521 schema +struct> +-- !query 11521 output +{1:"1",2:"2"} + + +-- !query 11522 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 11522 schema +struct> +-- !query 11522 output +{1:"1",2:"2"} + + +-- !query 11523 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 11523 schema +struct> +-- !query 11523 output +{1:"1",2:"2"} + + +-- !query 11524 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 11524 schema +struct> +-- !query 11524 output +{1:"1",2:"2"} + + +-- !query 11525 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 11525 schema +struct> +-- !query 11525 output +{1:"1",2:"2.0"} + + +-- !query 11526 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 11526 schema +struct> +-- !query 11526 output +{1:"1",2:"2.0"} + + +-- !query 11527 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 11527 schema +struct> +-- !query 11527 output +{1:"1",2:"2"} + + +-- !query 11528 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 11528 schema +struct> +-- !query 11528 output +{1:"1",2:"2"} + + +-- !query 11529 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 11529 schema +struct<> +-- !query 11529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11530 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 11530 schema +struct<> +-- !query 11530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11531 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11531 schema +struct> +-- !query 11531 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 11532 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11532 schema +struct> +-- !query 11532 output +{1:"1",2:"2017-12-12"} + + +-- !query 11533 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 11533 schema +struct> +-- !query 11533 output +{1:"1",2:"2"} + + +-- !query 11534 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 11534 schema +struct> +-- !query 11534 output +{1:"1",2:"2"} + + +-- !query 11535 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 11535 schema +struct> +-- !query 11535 output +{1:"1",2:"2"} + + +-- !query 11536 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 11536 schema +struct> +-- !query 11536 output +{1:"1",2:"2"} + + +-- !query 11537 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 11537 schema +struct> +-- !query 11537 output +{1:"1",2:"2.0"} + + +-- !query 11538 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 11538 schema +struct> +-- !query 11538 output +{1:"1",2:"2.0"} + + +-- !query 11539 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 11539 schema +struct> +-- !query 11539 output +{1:"1",2:"2"} + + +-- !query 11540 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 11540 schema +struct> +-- !query 11540 output +{1:"1",2:"2"} + + +-- !query 11541 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 11541 schema +struct<> +-- !query 11541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11542 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 11542 schema +struct<> +-- !query 11542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11543 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11543 schema +struct> +-- !query 11543 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 11544 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11544 schema +struct> +-- !query 11544 output +{1:"1",2:"2017-12-12"} + + +-- !query 11545 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 11545 schema +struct> +-- !query 11545 output +{1:"1",2:"2"} + + +-- !query 11546 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 11546 schema +struct> +-- !query 11546 output +{1:"1",2:"2"} + + +-- !query 11547 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 11547 schema +struct> +-- !query 11547 output +{1:"1",2:"2"} + + +-- !query 11548 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 11548 schema +struct> +-- !query 11548 output +{1:"1",2:"2"} + + +-- !query 11549 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 11549 schema +struct> +-- !query 11549 output +{1:"1",2:"2.0"} + + +-- !query 11550 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 11550 schema +struct> +-- !query 11550 output +{1:"1",2:"2.0"} + + +-- !query 11551 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 11551 schema +struct> +-- !query 11551 output +{1:"1",2:"2"} + + +-- !query 11552 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 11552 schema +struct> +-- !query 11552 output +{1:"1",2:"2"} + + +-- !query 11553 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 11553 schema +struct<> +-- !query 11553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11554 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 11554 schema +struct<> +-- !query 11554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11555 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11555 schema +struct> +-- !query 11555 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 11556 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11556 schema +struct> +-- !query 11556 output +{1:"1",2:"2017-12-12"} + + +-- !query 11557 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 11557 schema +struct> +-- !query 11557 output +{1:"1",2:"2"} + + +-- !query 11558 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 11558 schema +struct> +-- !query 11558 output +{1:"1",2:"2"} + + +-- !query 11559 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 11559 schema +struct> +-- !query 11559 output +{1:"1",2:"2"} + + +-- !query 11560 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 11560 schema +struct> +-- !query 11560 output +{1:"1",2:"2"} + + +-- !query 11561 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 11561 schema +struct> +-- !query 11561 output +{1:"1",2:"2.0"} + + +-- !query 11562 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 11562 schema +struct> +-- !query 11562 output +{1:"1",2:"2.0"} + + +-- !query 11563 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 11563 schema +struct> +-- !query 11563 output +{1:"1",2:"2"} + + +-- !query 11564 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 11564 schema +struct> +-- !query 11564 output +{1:"1",2:"2"} + + +-- !query 11565 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 11565 schema +struct<> +-- !query 11565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11566 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 11566 schema +struct<> +-- !query 11566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11567 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11567 schema +struct> +-- !query 11567 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 11568 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11568 schema +struct> +-- !query 11568 output +{1:"1",2:"2017-12-12"} + + +-- !query 11569 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 11569 schema +struct> +-- !query 11569 output +{1.0:"1",2.0:"2"} + + +-- !query 11570 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 11570 schema +struct> +-- !query 11570 output +{1.0:"1",2.0:"2"} + + +-- !query 11571 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 11571 schema +struct> +-- !query 11571 output +{1.0:"1",2.0:"2"} + + +-- !query 11572 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 11572 schema +struct> +-- !query 11572 output +{1.0:"1",2.0:"2"} + + +-- !query 11573 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 11573 schema +struct> +-- !query 11573 output +{1.0:"1",2.0:"2.0"} + + +-- !query 11574 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 11574 schema +struct> +-- !query 11574 output +{1.0:"1",2.0:"2.0"} + + +-- !query 11575 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 11575 schema +struct> +-- !query 11575 output +{1.0:"1",2.0:"2"} + + +-- !query 11576 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 11576 schema +struct> +-- !query 11576 output +{1.0:"1",2.0:"2"} + + +-- !query 11577 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 11577 schema +struct<> +-- !query 11577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11578 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 11578 schema +struct<> +-- !query 11578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11579 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11579 schema +struct> +-- !query 11579 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 11580 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11580 schema +struct> +-- !query 11580 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 11581 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 11581 schema +struct> +-- !query 11581 output +{1.0:"1",2.0:"2"} + + +-- !query 11582 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 11582 schema +struct> +-- !query 11582 output +{1.0:"1",2.0:"2"} + + +-- !query 11583 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 11583 schema +struct> +-- !query 11583 output +{1.0:"1",2.0:"2"} + + +-- !query 11584 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 11584 schema +struct> +-- !query 11584 output +{1.0:"1",2.0:"2"} + + +-- !query 11585 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 11585 schema +struct> +-- !query 11585 output +{1.0:"1",2.0:"2.0"} + + +-- !query 11586 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 11586 schema +struct> +-- !query 11586 output +{1.0:"1",2.0:"2.0"} + + +-- !query 11587 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 11587 schema +struct> +-- !query 11587 output +{1.0:"1",2.0:"2"} + + +-- !query 11588 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 11588 schema +struct> +-- !query 11588 output +{1.0:"1",2.0:"2"} + + +-- !query 11589 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 11589 schema +struct<> +-- !query 11589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11590 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 11590 schema +struct<> +-- !query 11590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11591 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11591 schema +struct> +-- !query 11591 output +{1.0:"1",2.0:"2017-12-12 09:30:00"} + + +-- !query 11592 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11592 schema +struct> +-- !query 11592 output +{1.0:"1",2.0:"2017-12-12"} + + +-- !query 11593 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 11593 schema +struct> +-- !query 11593 output +{1:"1",2:"2"} + + +-- !query 11594 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 11594 schema +struct> +-- !query 11594 output +{1:"1",2:"2"} + + +-- !query 11595 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 11595 schema +struct> +-- !query 11595 output +{1:"1",2:"2"} + + +-- !query 11596 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 11596 schema +struct> +-- !query 11596 output +{1:"1",2:"2"} + + +-- !query 11597 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 11597 schema +struct> +-- !query 11597 output +{1:"1",2:"2.0"} + + +-- !query 11598 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 11598 schema +struct> +-- !query 11598 output +{1:"1",2:"2.0"} + + +-- !query 11599 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 11599 schema +struct> +-- !query 11599 output +{1:"1",2:"2"} + + +-- !query 11600 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 11600 schema +struct> +-- !query 11600 output +{1:"1",2:"2"} + + +-- !query 11601 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 11601 schema +struct<> +-- !query 11601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11602 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 11602 schema +struct<> +-- !query 11602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11603 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11603 schema +struct> +-- !query 11603 output +{1:"1",2:"2017-12-12 09:30:00"} + + +-- !query 11604 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11604 schema +struct> +-- !query 11604 output +{1:"1",2:"2017-12-12"} + + +-- !query 11605 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 11605 schema +struct> +-- !query 11605 output +{"1":"1","2":"2"} + + +-- !query 11606 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 11606 schema +struct> +-- !query 11606 output +{"1":"1","2":"2"} + + +-- !query 11607 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 11607 schema +struct> +-- !query 11607 output +{"1":"1","2":"2"} + + +-- !query 11608 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 11608 schema +struct> +-- !query 11608 output +{"1":"1","2":"2"} + + +-- !query 11609 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 11609 schema +struct> +-- !query 11609 output +{"1":"1","2":"2.0"} + + +-- !query 11610 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 11610 schema +struct> +-- !query 11610 output +{"1":"1","2":"2.0"} + + +-- !query 11611 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 11611 schema +struct> +-- !query 11611 output +{"1":"1","2":"2"} + + +-- !query 11612 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 11612 schema +struct> +-- !query 11612 output +{"1":"1","2":"2"} + + +-- !query 11613 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 11613 schema +struct<> +-- !query 11613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 11614 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 11614 schema +struct<> +-- !query 11614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 11615 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11615 schema +struct> +-- !query 11615 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 11616 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11616 schema +struct> +-- !query 11616 output +{"1":"1","2":"2017-12-12"} + + +-- !query 11617 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 11617 schema +struct<> +-- !query 11617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11618 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 11618 schema +struct<> +-- !query 11618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11619 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 11619 schema +struct<> +-- !query 11619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11620 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 11620 schema +struct<> +-- !query 11620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11621 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 11621 schema +struct<> +-- !query 11621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11622 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 11622 schema +struct<> +-- !query 11622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11623 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 11623 schema +struct<> +-- !query 11623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11624 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 11624 schema +struct<> +-- !query 11624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11625 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 11625 schema +struct<> +-- !query 11625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11626 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 11626 schema +struct<> +-- !query 11626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11627 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11627 schema +struct<> +-- !query 11627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11628 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11628 schema +struct<> +-- !query 11628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11629 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 11629 schema +struct<> +-- !query 11629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11630 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 11630 schema +struct<> +-- !query 11630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11631 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 11631 schema +struct<> +-- !query 11631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11632 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 11632 schema +struct<> +-- !query 11632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11633 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 11633 schema +struct<> +-- !query 11633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11634 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 11634 schema +struct<> +-- !query 11634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11635 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 11635 schema +struct<> +-- !query 11635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11636 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 11636 schema +struct<> +-- !query 11636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11637 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 11637 schema +struct<> +-- !query 11637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11638 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 11638 schema +struct<> +-- !query 11638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11639 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11639 schema +struct<> +-- !query 11639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11640 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11640 schema +struct<> +-- !query 11640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11641 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 11641 schema +struct<> +-- !query 11641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11642 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 11642 schema +struct<> +-- !query 11642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11643 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 11643 schema +struct<> +-- !query 11643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11644 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 11644 schema +struct<> +-- !query 11644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11645 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 11645 schema +struct<> +-- !query 11645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11646 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 11646 schema +struct<> +-- !query 11646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11647 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 11647 schema +struct<> +-- !query 11647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11648 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 11648 schema +struct<> +-- !query 11648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11649 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 11649 schema +struct<> +-- !query 11649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11650 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 11650 schema +struct<> +-- !query 11650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11651 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11651 schema +struct<> +-- !query 11651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11652 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11652 schema +struct<> +-- !query 11652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11653 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 11653 schema +struct<> +-- !query 11653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11654 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 11654 schema +struct<> +-- !query 11654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11655 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 11655 schema +struct<> +-- !query 11655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11656 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 11656 schema +struct<> +-- !query 11656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11657 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 11657 schema +struct<> +-- !query 11657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11658 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 11658 schema +struct<> +-- !query 11658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11659 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 11659 schema +struct<> +-- !query 11659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11660 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 11660 schema +struct<> +-- !query 11660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11661 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 11661 schema +struct<> +-- !query 11661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11662 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 11662 schema +struct<> +-- !query 11662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11663 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11663 schema +struct<> +-- !query 11663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11664 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11664 schema +struct<> +-- !query 11664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11665 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 11665 schema +struct<> +-- !query 11665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11666 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 11666 schema +struct<> +-- !query 11666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11667 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 11667 schema +struct<> +-- !query 11667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11668 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 11668 schema +struct<> +-- !query 11668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11669 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 11669 schema +struct<> +-- !query 11669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11670 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 11670 schema +struct<> +-- !query 11670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11671 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 11671 schema +struct<> +-- !query 11671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11672 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 11672 schema +struct<> +-- !query 11672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11673 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 11673 schema +struct> +-- !query 11673 output +{1:[B@319d4f30,2:[B@6f57d6ab} + + +-- !query 11674 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 11674 schema +struct<> +-- !query 11674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11675 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11675 schema +struct<> +-- !query 11675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11676 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11676 schema +struct<> +-- !query 11676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11677 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 11677 schema +struct<> +-- !query 11677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11678 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 11678 schema +struct<> +-- !query 11678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11679 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 11679 schema +struct<> +-- !query 11679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11680 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 11680 schema +struct<> +-- !query 11680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11681 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 11681 schema +struct<> +-- !query 11681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11682 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 11682 schema +struct<> +-- !query 11682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11683 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 11683 schema +struct<> +-- !query 11683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11684 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 11684 schema +struct<> +-- !query 11684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11685 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 11685 schema +struct> +-- !query 11685 output +{1:[B@7379355b,2:[B@31e36d1a} + + +-- !query 11686 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 11686 schema +struct<> +-- !query 11686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11687 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11687 schema +struct<> +-- !query 11687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11688 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11688 schema +struct<> +-- !query 11688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11689 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 11689 schema +struct<> +-- !query 11689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11690 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 11690 schema +struct<> +-- !query 11690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11691 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 11691 schema +struct<> +-- !query 11691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11692 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 11692 schema +struct<> +-- !query 11692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11693 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 11693 schema +struct<> +-- !query 11693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11694 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 11694 schema +struct<> +-- !query 11694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11695 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 11695 schema +struct<> +-- !query 11695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11696 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 11696 schema +struct<> +-- !query 11696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11697 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 11697 schema +struct> +-- !query 11697 output +{1:[B@56f78c03,2:[B@4b80f61f} + + +-- !query 11698 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 11698 schema +struct<> +-- !query 11698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11699 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11699 schema +struct<> +-- !query 11699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11700 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11700 schema +struct<> +-- !query 11700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11701 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 11701 schema +struct<> +-- !query 11701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11702 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 11702 schema +struct<> +-- !query 11702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11703 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 11703 schema +struct<> +-- !query 11703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11704 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 11704 schema +struct<> +-- !query 11704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11705 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 11705 schema +struct<> +-- !query 11705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11706 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 11706 schema +struct<> +-- !query 11706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11707 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 11707 schema +struct<> +-- !query 11707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11708 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 11708 schema +struct<> +-- !query 11708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11709 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 11709 schema +struct> +-- !query 11709 output +{1:[B@74068228,2:[B@745985d6} + + +-- !query 11710 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 11710 schema +struct<> +-- !query 11710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11711 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11711 schema +struct<> +-- !query 11711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11712 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11712 schema +struct<> +-- !query 11712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11713 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 11713 schema +struct<> +-- !query 11713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11714 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 11714 schema +struct<> +-- !query 11714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11715 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 11715 schema +struct<> +-- !query 11715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11716 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 11716 schema +struct<> +-- !query 11716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11717 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 11717 schema +struct<> +-- !query 11717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11718 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 11718 schema +struct<> +-- !query 11718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11719 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 11719 schema +struct<> +-- !query 11719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11720 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 11720 schema +struct<> +-- !query 11720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11721 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 11721 schema +struct> +-- !query 11721 output +{1.0:[B@16313ad0,2.0:[B@6f63314e} + + +-- !query 11722 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 11722 schema +struct<> +-- !query 11722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11723 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11723 schema +struct<> +-- !query 11723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11724 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11724 schema +struct<> +-- !query 11724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11725 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 11725 schema +struct<> +-- !query 11725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11726 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 11726 schema +struct<> +-- !query 11726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11727 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 11727 schema +struct<> +-- !query 11727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11728 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 11728 schema +struct<> +-- !query 11728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11729 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 11729 schema +struct<> +-- !query 11729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11730 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 11730 schema +struct<> +-- !query 11730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11731 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 11731 schema +struct<> +-- !query 11731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11732 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 11732 schema +struct<> +-- !query 11732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11733 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 11733 schema +struct> +-- !query 11733 output +{1.0:[B@5c4f4f26,2.0:[B@5877686b} + + +-- !query 11734 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 11734 schema +struct<> +-- !query 11734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11735 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11735 schema +struct<> +-- !query 11735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11736 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11736 schema +struct<> +-- !query 11736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11737 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 11737 schema +struct<> +-- !query 11737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11738 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 11738 schema +struct<> +-- !query 11738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11739 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 11739 schema +struct<> +-- !query 11739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11740 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 11740 schema +struct<> +-- !query 11740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11741 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 11741 schema +struct<> +-- !query 11741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11742 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 11742 schema +struct<> +-- !query 11742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11743 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 11743 schema +struct<> +-- !query 11743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11744 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 11744 schema +struct<> +-- !query 11744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11745 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 11745 schema +struct> +-- !query 11745 output +{1:[B@4d8cd6c2,2:[B@163af4df} + + +-- !query 11746 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 11746 schema +struct<> +-- !query 11746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11747 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11747 schema +struct<> +-- !query 11747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11748 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11748 schema +struct<> +-- !query 11748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11749 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 11749 schema +struct<> +-- !query 11749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 11750 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 11750 schema +struct<> +-- !query 11750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 11751 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 11751 schema +struct<> +-- !query 11751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 11752 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 11752 schema +struct<> +-- !query 11752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 11753 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 11753 schema +struct<> +-- !query 11753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 11754 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 11754 schema +struct<> +-- !query 11754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 11755 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 11755 schema +struct<> +-- !query 11755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 11756 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 11756 schema +struct<> +-- !query 11756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 11757 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 11757 schema +struct> +-- !query 11757 output +{"1":[B@439b9543,"2":[B@27706fcb} + + +-- !query 11758 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 11758 schema +struct<> +-- !query 11758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 11759 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11759 schema +struct<> +-- !query 11759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 11760 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11760 schema +struct<> +-- !query 11760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 11761 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 11761 schema +struct<> +-- !query 11761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11762 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 11762 schema +struct<> +-- !query 11762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11763 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 11763 schema +struct<> +-- !query 11763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11764 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 11764 schema +struct<> +-- !query 11764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11765 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 11765 schema +struct<> +-- !query 11765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11766 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 11766 schema +struct<> +-- !query 11766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11767 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 11767 schema +struct<> +-- !query 11767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11768 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 11768 schema +struct<> +-- !query 11768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11769 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 11769 schema +struct<> +-- !query 11769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11770 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 11770 schema +struct<> +-- !query 11770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11771 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11771 schema +struct<> +-- !query 11771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11772 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11772 schema +struct<> +-- !query 11772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11773 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 11773 schema +struct<> +-- !query 11773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11774 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 11774 schema +struct<> +-- !query 11774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11775 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 11775 schema +struct<> +-- !query 11775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11776 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 11776 schema +struct<> +-- !query 11776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11777 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 11777 schema +struct<> +-- !query 11777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11778 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 11778 schema +struct<> +-- !query 11778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11779 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 11779 schema +struct<> +-- !query 11779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11780 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 11780 schema +struct<> +-- !query 11780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11781 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 11781 schema +struct<> +-- !query 11781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11782 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 11782 schema +struct<> +-- !query 11782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11783 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11783 schema +struct<> +-- !query 11783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11784 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11784 schema +struct<> +-- !query 11784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11785 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 11785 schema +struct<> +-- !query 11785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11786 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 11786 schema +struct<> +-- !query 11786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11787 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 11787 schema +struct<> +-- !query 11787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11788 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 11788 schema +struct<> +-- !query 11788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11789 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 11789 schema +struct<> +-- !query 11789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11790 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 11790 schema +struct<> +-- !query 11790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11791 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 11791 schema +struct<> +-- !query 11791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11792 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 11792 schema +struct<> +-- !query 11792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11793 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 11793 schema +struct<> +-- !query 11793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11794 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 11794 schema +struct<> +-- !query 11794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11795 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11795 schema +struct<> +-- !query 11795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11796 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11796 schema +struct<> +-- !query 11796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11797 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 11797 schema +struct<> +-- !query 11797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11798 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 11798 schema +struct<> +-- !query 11798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11799 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 11799 schema +struct<> +-- !query 11799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11800 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 11800 schema +struct<> +-- !query 11800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11801 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 11801 schema +struct<> +-- !query 11801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11802 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 11802 schema +struct<> +-- !query 11802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11803 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 11803 schema +struct<> +-- !query 11803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11804 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 11804 schema +struct<> +-- !query 11804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11805 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 11805 schema +struct<> +-- !query 11805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11806 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 11806 schema +struct<> +-- !query 11806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11807 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11807 schema +struct<> +-- !query 11807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11808 +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11808 schema +struct<> +-- !query 11808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11809 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 11809 schema +struct<> +-- !query 11809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11810 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 11810 schema +struct<> +-- !query 11810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11811 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 11811 schema +struct<> +-- !query 11811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11812 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 11812 schema +struct<> +-- !query 11812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11813 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 11813 schema +struct<> +-- !query 11813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11814 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 11814 schema +struct<> +-- !query 11814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11815 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 11815 schema +struct<> +-- !query 11815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11816 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 11816 schema +struct<> +-- !query 11816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11817 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 11817 schema +struct<> +-- !query 11817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11818 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 11818 schema +struct> +-- !query 11818 output +{1:true,2:true} + + +-- !query 11819 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11819 schema +struct<> +-- !query 11819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11820 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11820 schema +struct<> +-- !query 11820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11821 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 11821 schema +struct<> +-- !query 11821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11822 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 11822 schema +struct<> +-- !query 11822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11823 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 11823 schema +struct<> +-- !query 11823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11824 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 11824 schema +struct<> +-- !query 11824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11825 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 11825 schema +struct<> +-- !query 11825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11826 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 11826 schema +struct<> +-- !query 11826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11827 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 11827 schema +struct<> +-- !query 11827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11828 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 11828 schema +struct<> +-- !query 11828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11829 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 11829 schema +struct<> +-- !query 11829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11830 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 11830 schema +struct> +-- !query 11830 output +{1:true,2:true} + + +-- !query 11831 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11831 schema +struct<> +-- !query 11831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11832 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11832 schema +struct<> +-- !query 11832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11833 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 11833 schema +struct<> +-- !query 11833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11834 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 11834 schema +struct<> +-- !query 11834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11835 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 11835 schema +struct<> +-- !query 11835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11836 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 11836 schema +struct<> +-- !query 11836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11837 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 11837 schema +struct<> +-- !query 11837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11838 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 11838 schema +struct<> +-- !query 11838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11839 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 11839 schema +struct<> +-- !query 11839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11840 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 11840 schema +struct<> +-- !query 11840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11841 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 11841 schema +struct<> +-- !query 11841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11842 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 11842 schema +struct> +-- !query 11842 output +{1:true,2:true} + + +-- !query 11843 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11843 schema +struct<> +-- !query 11843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11844 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11844 schema +struct<> +-- !query 11844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11845 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 11845 schema +struct<> +-- !query 11845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11846 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 11846 schema +struct<> +-- !query 11846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11847 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 11847 schema +struct<> +-- !query 11847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11848 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 11848 schema +struct<> +-- !query 11848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11849 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 11849 schema +struct<> +-- !query 11849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11850 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 11850 schema +struct<> +-- !query 11850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11851 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 11851 schema +struct<> +-- !query 11851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11852 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 11852 schema +struct<> +-- !query 11852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11853 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 11853 schema +struct<> +-- !query 11853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11854 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 11854 schema +struct> +-- !query 11854 output +{1:true,2:true} + + +-- !query 11855 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11855 schema +struct<> +-- !query 11855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11856 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11856 schema +struct<> +-- !query 11856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11857 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 11857 schema +struct<> +-- !query 11857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11858 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 11858 schema +struct<> +-- !query 11858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11859 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 11859 schema +struct<> +-- !query 11859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11860 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 11860 schema +struct<> +-- !query 11860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11861 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 11861 schema +struct<> +-- !query 11861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11862 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 11862 schema +struct<> +-- !query 11862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11863 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 11863 schema +struct<> +-- !query 11863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11864 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 11864 schema +struct<> +-- !query 11864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11865 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 11865 schema +struct<> +-- !query 11865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11866 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 11866 schema +struct> +-- !query 11866 output +{1.0:true,2.0:true} + + +-- !query 11867 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11867 schema +struct<> +-- !query 11867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11868 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11868 schema +struct<> +-- !query 11868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11869 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 11869 schema +struct<> +-- !query 11869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11870 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 11870 schema +struct<> +-- !query 11870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11871 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 11871 schema +struct<> +-- !query 11871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11872 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 11872 schema +struct<> +-- !query 11872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11873 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 11873 schema +struct<> +-- !query 11873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11874 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 11874 schema +struct<> +-- !query 11874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11875 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 11875 schema +struct<> +-- !query 11875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11876 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 11876 schema +struct<> +-- !query 11876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11877 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 11877 schema +struct<> +-- !query 11877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11878 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 11878 schema +struct> +-- !query 11878 output +{1.0:true,2.0:true} + + +-- !query 11879 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11879 schema +struct<> +-- !query 11879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11880 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11880 schema +struct<> +-- !query 11880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11881 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 11881 schema +struct<> +-- !query 11881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11882 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 11882 schema +struct<> +-- !query 11882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11883 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 11883 schema +struct<> +-- !query 11883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11884 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 11884 schema +struct<> +-- !query 11884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11885 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 11885 schema +struct<> +-- !query 11885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11886 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 11886 schema +struct<> +-- !query 11886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11887 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 11887 schema +struct<> +-- !query 11887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11888 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 11888 schema +struct<> +-- !query 11888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11889 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 11889 schema +struct<> +-- !query 11889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11890 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 11890 schema +struct> +-- !query 11890 output +{1:true,2:true} + + +-- !query 11891 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11891 schema +struct<> +-- !query 11891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11892 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11892 schema +struct<> +-- !query 11892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11893 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 11893 schema +struct<> +-- !query 11893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 11894 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 11894 schema +struct<> +-- !query 11894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 11895 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 11895 schema +struct<> +-- !query 11895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 11896 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 11896 schema +struct<> +-- !query 11896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 11897 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 11897 schema +struct<> +-- !query 11897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 11898 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 11898 schema +struct<> +-- !query 11898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 11899 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 11899 schema +struct<> +-- !query 11899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 11900 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 11900 schema +struct<> +-- !query 11900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 11901 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 11901 schema +struct<> +-- !query 11901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 11902 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 11902 schema +struct> +-- !query 11902 output +{"1":true,"2":true} + + +-- !query 11903 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11903 schema +struct<> +-- !query 11903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 11904 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11904 schema +struct<> +-- !query 11904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 11905 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 11905 schema +struct<> +-- !query 11905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11906 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 11906 schema +struct<> +-- !query 11906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11907 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 11907 schema +struct<> +-- !query 11907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11908 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 11908 schema +struct<> +-- !query 11908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11909 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 11909 schema +struct<> +-- !query 11909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11910 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 11910 schema +struct<> +-- !query 11910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11911 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 11911 schema +struct<> +-- !query 11911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11912 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 11912 schema +struct<> +-- !query 11912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11913 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 11913 schema +struct<> +-- !query 11913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11914 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 11914 schema +struct<> +-- !query 11914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11915 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11915 schema +struct<> +-- !query 11915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11916 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11916 schema +struct<> +-- !query 11916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 11917 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 11917 schema +struct<> +-- !query 11917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11918 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 11918 schema +struct<> +-- !query 11918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11919 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 11919 schema +struct<> +-- !query 11919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11920 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 11920 schema +struct<> +-- !query 11920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11921 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 11921 schema +struct<> +-- !query 11921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11922 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 11922 schema +struct<> +-- !query 11922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11923 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 11923 schema +struct<> +-- !query 11923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11924 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 11924 schema +struct<> +-- !query 11924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11925 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 11925 schema +struct<> +-- !query 11925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11926 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 11926 schema +struct<> +-- !query 11926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11927 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11927 schema +struct<> +-- !query 11927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11928 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11928 schema +struct<> +-- !query 11928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 11929 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 11929 schema +struct<> +-- !query 11929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11930 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 11930 schema +struct<> +-- !query 11930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11931 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 11931 schema +struct<> +-- !query 11931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11932 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 11932 schema +struct<> +-- !query 11932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11933 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 11933 schema +struct<> +-- !query 11933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11934 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 11934 schema +struct<> +-- !query 11934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11935 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 11935 schema +struct<> +-- !query 11935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11936 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 11936 schema +struct<> +-- !query 11936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11937 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 11937 schema +struct<> +-- !query 11937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11938 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 11938 schema +struct<> +-- !query 11938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11939 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11939 schema +struct<> +-- !query 11939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11940 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11940 schema +struct<> +-- !query 11940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 11941 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 11941 schema +struct<> +-- !query 11941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11942 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 11942 schema +struct<> +-- !query 11942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11943 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 11943 schema +struct<> +-- !query 11943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11944 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 11944 schema +struct<> +-- !query 11944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11945 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 11945 schema +struct<> +-- !query 11945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11946 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 11946 schema +struct<> +-- !query 11946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11947 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 11947 schema +struct<> +-- !query 11947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11948 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 11948 schema +struct<> +-- !query 11948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11949 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 11949 schema +struct<> +-- !query 11949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11950 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 11950 schema +struct<> +-- !query 11950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11951 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11951 schema +struct<> +-- !query 11951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11952 +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11952 schema +struct<> +-- !query 11952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 11953 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 11953 schema +struct<> +-- !query 11953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 11954 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 11954 schema +struct<> +-- !query 11954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 11955 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 11955 schema +struct<> +-- !query 11955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 11956 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 11956 schema +struct<> +-- !query 11956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 11957 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 11957 schema +struct<> +-- !query 11957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 11958 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 11958 schema +struct<> +-- !query 11958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 11959 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 11959 schema +struct<> +-- !query 11959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 11960 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 11960 schema +struct> +-- !query 11960 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 11961 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 11961 schema +struct<> +-- !query 11961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 11962 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 11962 schema +struct<> +-- !query 11962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 11963 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11963 schema +struct> +-- !query 11963 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 11964 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11964 schema +struct> +-- !query 11964 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 11965 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 11965 schema +struct<> +-- !query 11965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 11966 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 11966 schema +struct<> +-- !query 11966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 11967 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 11967 schema +struct<> +-- !query 11967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 11968 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 11968 schema +struct<> +-- !query 11968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 11969 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 11969 schema +struct<> +-- !query 11969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 11970 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 11970 schema +struct<> +-- !query 11970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 11971 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 11971 schema +struct<> +-- !query 11971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 11972 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 11972 schema +struct> +-- !query 11972 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 11973 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 11973 schema +struct<> +-- !query 11973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 11974 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 11974 schema +struct<> +-- !query 11974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 11975 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11975 schema +struct> +-- !query 11975 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 11976 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11976 schema +struct> +-- !query 11976 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 11977 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 11977 schema +struct<> +-- !query 11977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 11978 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 11978 schema +struct<> +-- !query 11978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 11979 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 11979 schema +struct<> +-- !query 11979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 11980 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 11980 schema +struct<> +-- !query 11980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 11981 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 11981 schema +struct<> +-- !query 11981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 11982 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 11982 schema +struct<> +-- !query 11982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 11983 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 11983 schema +struct<> +-- !query 11983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 11984 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 11984 schema +struct> +-- !query 11984 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 11985 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 11985 schema +struct<> +-- !query 11985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 11986 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 11986 schema +struct<> +-- !query 11986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 11987 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11987 schema +struct> +-- !query 11987 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 11988 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 11988 schema +struct> +-- !query 11988 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 11989 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 11989 schema +struct<> +-- !query 11989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 11990 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 11990 schema +struct<> +-- !query 11990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 11991 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 11991 schema +struct<> +-- !query 11991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 11992 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 11992 schema +struct<> +-- !query 11992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 11993 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 11993 schema +struct<> +-- !query 11993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 11994 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 11994 schema +struct<> +-- !query 11994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 11995 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 11995 schema +struct<> +-- !query 11995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 11996 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 11996 schema +struct> +-- !query 11996 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 11997 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 11997 schema +struct<> +-- !query 11997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 11998 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 11998 schema +struct<> +-- !query 11998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 11999 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 11999 schema +struct> +-- !query 11999 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 12000 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12000 schema +struct> +-- !query 12000 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 12001 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 12001 schema +struct<> +-- !query 12001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 12002 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 12002 schema +struct<> +-- !query 12002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 12003 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 12003 schema +struct<> +-- !query 12003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 12004 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 12004 schema +struct<> +-- !query 12004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 12005 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 12005 schema +struct<> +-- !query 12005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 12006 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 12006 schema +struct<> +-- !query 12006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 12007 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 12007 schema +struct<> +-- !query 12007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 12008 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 12008 schema +struct> +-- !query 12008 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 12009 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 12009 schema +struct<> +-- !query 12009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 12010 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 12010 schema +struct<> +-- !query 12010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 12011 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12011 schema +struct> +-- !query 12011 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 12012 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12012 schema +struct> +-- !query 12012 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 12013 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 12013 schema +struct<> +-- !query 12013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 12014 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 12014 schema +struct<> +-- !query 12014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 12015 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 12015 schema +struct<> +-- !query 12015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 12016 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 12016 schema +struct<> +-- !query 12016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 12017 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 12017 schema +struct<> +-- !query 12017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 12018 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 12018 schema +struct<> +-- !query 12018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 12019 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 12019 schema +struct<> +-- !query 12019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 12020 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 12020 schema +struct> +-- !query 12020 output +{1.0:"2017-12-11 09:30:00",2.0:"2"} + + +-- !query 12021 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 12021 schema +struct<> +-- !query 12021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 12022 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 12022 schema +struct<> +-- !query 12022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 12023 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12023 schema +struct> +-- !query 12023 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 12024 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12024 schema +struct> +-- !query 12024 output +{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} + + +-- !query 12025 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 12025 schema +struct<> +-- !query 12025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 12026 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 12026 schema +struct<> +-- !query 12026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 12027 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 12027 schema +struct<> +-- !query 12027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 12028 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 12028 schema +struct<> +-- !query 12028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 12029 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 12029 schema +struct<> +-- !query 12029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 12030 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 12030 schema +struct<> +-- !query 12030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 12031 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 12031 schema +struct<> +-- !query 12031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 12032 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 12032 schema +struct> +-- !query 12032 output +{1:"2017-12-11 09:30:00",2:"2"} + + +-- !query 12033 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 12033 schema +struct<> +-- !query 12033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 12034 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 12034 schema +struct<> +-- !query 12034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 12035 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12035 schema +struct> +-- !query 12035 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 12036 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12036 schema +struct> +-- !query 12036 output +{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} + + +-- !query 12037 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 12037 schema +struct<> +-- !query 12037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 12038 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 12038 schema +struct<> +-- !query 12038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 12039 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 12039 schema +struct<> +-- !query 12039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 12040 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 12040 schema +struct<> +-- !query 12040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 12041 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 12041 schema +struct<> +-- !query 12041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 12042 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 12042 schema +struct<> +-- !query 12042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 12043 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 12043 schema +struct<> +-- !query 12043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 12044 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 12044 schema +struct> +-- !query 12044 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 12045 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 12045 schema +struct<> +-- !query 12045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 12046 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 12046 schema +struct<> +-- !query 12046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 12047 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12047 schema +struct> +-- !query 12047 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 12048 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12048 schema +struct> +-- !query 12048 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 12049 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 12049 schema +struct<> +-- !query 12049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12050 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 12050 schema +struct<> +-- !query 12050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12051 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 12051 schema +struct<> +-- !query 12051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12052 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 12052 schema +struct<> +-- !query 12052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12053 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 12053 schema +struct<> +-- !query 12053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12054 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 12054 schema +struct<> +-- !query 12054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12055 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 12055 schema +struct<> +-- !query 12055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12056 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 12056 schema +struct<> +-- !query 12056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12057 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 12057 schema +struct<> +-- !query 12057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12058 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 12058 schema +struct<> +-- !query 12058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12059 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12059 schema +struct<> +-- !query 12059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12060 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12060 schema +struct<> +-- !query 12060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12061 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 12061 schema +struct<> +-- !query 12061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12062 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 12062 schema +struct<> +-- !query 12062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12063 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 12063 schema +struct<> +-- !query 12063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12064 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 12064 schema +struct<> +-- !query 12064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12065 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 12065 schema +struct<> +-- !query 12065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12066 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 12066 schema +struct<> +-- !query 12066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12067 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 12067 schema +struct<> +-- !query 12067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12068 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 12068 schema +struct<> +-- !query 12068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12069 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 12069 schema +struct<> +-- !query 12069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12070 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 12070 schema +struct<> +-- !query 12070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12071 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12071 schema +struct<> +-- !query 12071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12072 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12072 schema +struct<> +-- !query 12072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12073 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 12073 schema +struct<> +-- !query 12073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12074 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 12074 schema +struct<> +-- !query 12074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12075 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 12075 schema +struct<> +-- !query 12075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12076 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 12076 schema +struct<> +-- !query 12076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12077 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 12077 schema +struct<> +-- !query 12077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12078 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 12078 schema +struct<> +-- !query 12078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12079 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 12079 schema +struct<> +-- !query 12079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12080 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 12080 schema +struct<> +-- !query 12080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12081 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 12081 schema +struct<> +-- !query 12081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12082 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 12082 schema +struct<> +-- !query 12082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12083 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12083 schema +struct<> +-- !query 12083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12084 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12084 schema +struct<> +-- !query 12084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12085 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 12085 schema +struct<> +-- !query 12085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12086 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 12086 schema +struct<> +-- !query 12086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12087 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 12087 schema +struct<> +-- !query 12087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12088 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 12088 schema +struct<> +-- !query 12088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12089 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 12089 schema +struct<> +-- !query 12089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12090 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 12090 schema +struct<> +-- !query 12090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12091 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 12091 schema +struct<> +-- !query 12091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12092 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 12092 schema +struct<> +-- !query 12092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12093 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 12093 schema +struct<> +-- !query 12093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12094 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 12094 schema +struct<> +-- !query 12094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12095 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12095 schema +struct<> +-- !query 12095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12096 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12096 schema +struct<> +-- !query 12096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12097 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 12097 schema +struct<> +-- !query 12097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12098 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 12098 schema +struct<> +-- !query 12098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12099 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 12099 schema +struct<> +-- !query 12099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12100 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 12100 schema +struct<> +-- !query 12100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12101 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 12101 schema +struct<> +-- !query 12101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12102 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 12102 schema +struct<> +-- !query 12102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12103 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 12103 schema +struct<> +-- !query 12103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12104 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 12104 schema +struct> +-- !query 12104 output +{1:"2017-12-11",2:"2"} + + +-- !query 12105 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 12105 schema +struct<> +-- !query 12105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12106 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 12106 schema +struct<> +-- !query 12106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12107 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12107 schema +struct> +-- !query 12107 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 12108 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12108 schema +struct> +-- !query 12108 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 12109 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 12109 schema +struct<> +-- !query 12109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12110 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 12110 schema +struct<> +-- !query 12110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12111 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 12111 schema +struct<> +-- !query 12111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12112 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 12112 schema +struct<> +-- !query 12112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12113 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 12113 schema +struct<> +-- !query 12113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12114 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 12114 schema +struct<> +-- !query 12114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12115 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 12115 schema +struct<> +-- !query 12115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12116 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 12116 schema +struct> +-- !query 12116 output +{1:"2017-12-11",2:"2"} + + +-- !query 12117 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 12117 schema +struct<> +-- !query 12117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12118 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 12118 schema +struct<> +-- !query 12118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12119 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12119 schema +struct> +-- !query 12119 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 12120 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12120 schema +struct> +-- !query 12120 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 12121 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 12121 schema +struct<> +-- !query 12121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12122 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 12122 schema +struct<> +-- !query 12122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12123 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 12123 schema +struct<> +-- !query 12123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12124 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 12124 schema +struct<> +-- !query 12124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12125 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 12125 schema +struct<> +-- !query 12125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12126 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 12126 schema +struct<> +-- !query 12126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12127 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 12127 schema +struct<> +-- !query 12127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12128 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 12128 schema +struct> +-- !query 12128 output +{1:"2017-12-11",2:"2"} + + +-- !query 12129 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 12129 schema +struct<> +-- !query 12129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12130 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 12130 schema +struct<> +-- !query 12130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12131 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12131 schema +struct> +-- !query 12131 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 12132 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12132 schema +struct> +-- !query 12132 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 12133 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 12133 schema +struct<> +-- !query 12133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12134 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 12134 schema +struct<> +-- !query 12134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12135 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 12135 schema +struct<> +-- !query 12135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12136 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 12136 schema +struct<> +-- !query 12136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12137 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 12137 schema +struct<> +-- !query 12137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12138 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 12138 schema +struct<> +-- !query 12138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12139 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 12139 schema +struct<> +-- !query 12139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12140 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 12140 schema +struct> +-- !query 12140 output +{1:"2017-12-11",2:"2"} + + +-- !query 12141 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 12141 schema +struct<> +-- !query 12141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12142 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 12142 schema +struct<> +-- !query 12142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12143 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12143 schema +struct> +-- !query 12143 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 12144 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12144 schema +struct> +-- !query 12144 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 12145 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 12145 schema +struct<> +-- !query 12145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12146 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 12146 schema +struct<> +-- !query 12146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12147 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 12147 schema +struct<> +-- !query 12147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12148 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 12148 schema +struct<> +-- !query 12148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12149 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 12149 schema +struct<> +-- !query 12149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12150 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 12150 schema +struct<> +-- !query 12150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12151 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 12151 schema +struct<> +-- !query 12151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12152 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 12152 schema +struct> +-- !query 12152 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 12153 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 12153 schema +struct<> +-- !query 12153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12154 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 12154 schema +struct<> +-- !query 12154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12155 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12155 schema +struct> +-- !query 12155 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 12156 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12156 schema +struct> +-- !query 12156 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 12157 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 12157 schema +struct<> +-- !query 12157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12158 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 12158 schema +struct<> +-- !query 12158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12159 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 12159 schema +struct<> +-- !query 12159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12160 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 12160 schema +struct<> +-- !query 12160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12161 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 12161 schema +struct<> +-- !query 12161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12162 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 12162 schema +struct<> +-- !query 12162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12163 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 12163 schema +struct<> +-- !query 12163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12164 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 12164 schema +struct> +-- !query 12164 output +{1.0:"2017-12-11",2.0:"2"} + + +-- !query 12165 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 12165 schema +struct<> +-- !query 12165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12166 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 12166 schema +struct<> +-- !query 12166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12167 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12167 schema +struct> +-- !query 12167 output +{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} + + +-- !query 12168 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12168 schema +struct> +-- !query 12168 output +{1.0:2017-12-11,2.0:2017-12-12} + + +-- !query 12169 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 12169 schema +struct<> +-- !query 12169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12170 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 12170 schema +struct<> +-- !query 12170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12171 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 12171 schema +struct<> +-- !query 12171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12172 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 12172 schema +struct<> +-- !query 12172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12173 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 12173 schema +struct<> +-- !query 12173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12174 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 12174 schema +struct<> +-- !query 12174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12175 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 12175 schema +struct<> +-- !query 12175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12176 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 12176 schema +struct> +-- !query 12176 output +{1:"2017-12-11",2:"2"} + + +-- !query 12177 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 12177 schema +struct<> +-- !query 12177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12178 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 12178 schema +struct<> +-- !query 12178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12179 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12179 schema +struct> +-- !query 12179 output +{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} + + +-- !query 12180 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12180 schema +struct> +-- !query 12180 output +{1:2017-12-11,2:2017-12-12} + + +-- !query 12181 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 12181 schema +struct<> +-- !query 12181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 12182 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 12182 schema +struct<> +-- !query 12182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 12183 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 12183 schema +struct<> +-- !query 12183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 12184 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 12184 schema +struct<> +-- !query 12184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 12185 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 12185 schema +struct<> +-- !query 12185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 12186 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 12186 schema +struct<> +-- !query 12186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 12187 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 12187 schema +struct<> +-- !query 12187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 12188 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 12188 schema +struct> +-- !query 12188 output +{"1":"2017-12-11","2":"2"} + + +-- !query 12189 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 12189 schema +struct<> +-- !query 12189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 12190 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 12190 schema +struct<> +-- !query 12190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 12191 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12191 schema +struct> +-- !query 12191 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 12192 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12192 schema +struct> +-- !query 12192 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 12193 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 12193 schema +struct<> +-- !query 12193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12194 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 12194 schema +struct<> +-- !query 12194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12195 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 12195 schema +struct<> +-- !query 12195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12196 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 12196 schema +struct<> +-- !query 12196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12197 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 12197 schema +struct<> +-- !query 12197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12198 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 12198 schema +struct<> +-- !query 12198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12199 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 12199 schema +struct<> +-- !query 12199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12200 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 12200 schema +struct<> +-- !query 12200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12201 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 12201 schema +struct<> +-- !query 12201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12202 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 12202 schema +struct<> +-- !query 12202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12203 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12203 schema +struct<> +-- !query 12203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12204 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12204 schema +struct<> +-- !query 12204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 12205 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 12205 schema +struct<> +-- !query 12205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12206 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 12206 schema +struct<> +-- !query 12206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12207 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 12207 schema +struct<> +-- !query 12207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12208 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 12208 schema +struct<> +-- !query 12208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12209 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 12209 schema +struct<> +-- !query 12209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12210 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 12210 schema +struct<> +-- !query 12210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12211 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 12211 schema +struct<> +-- !query 12211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12212 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 12212 schema +struct<> +-- !query 12212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12213 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 12213 schema +struct<> +-- !query 12213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12214 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 12214 schema +struct<> +-- !query 12214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12215 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12215 schema +struct<> +-- !query 12215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12216 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12216 schema +struct<> +-- !query 12216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 12217 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 12217 schema +struct<> +-- !query 12217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12218 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 12218 schema +struct<> +-- !query 12218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12219 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 12219 schema +struct<> +-- !query 12219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12220 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 12220 schema +struct<> +-- !query 12220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12221 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 12221 schema +struct<> +-- !query 12221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12222 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 12222 schema +struct<> +-- !query 12222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12223 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 12223 schema +struct<> +-- !query 12223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12224 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 12224 schema +struct<> +-- !query 12224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12225 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 12225 schema +struct<> +-- !query 12225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12226 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 12226 schema +struct<> +-- !query 12226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12227 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12227 schema +struct<> +-- !query 12227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12228 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12228 schema +struct<> +-- !query 12228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 12229 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 12229 schema +struct<> +-- !query 12229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12230 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 12230 schema +struct<> +-- !query 12230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12231 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 12231 schema +struct<> +-- !query 12231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12232 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 12232 schema +struct<> +-- !query 12232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12233 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 12233 schema +struct<> +-- !query 12233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12234 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 12234 schema +struct<> +-- !query 12234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12235 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 12235 schema +struct<> +-- !query 12235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12236 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 12236 schema +struct<> +-- !query 12236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12237 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 12237 schema +struct<> +-- !query 12237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12238 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 12238 schema +struct<> +-- !query 12238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12239 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12239 schema +struct<> +-- !query 12239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12240 +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12240 schema +struct<> +-- !query 12240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 12241 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 12241 schema +struct> +-- !query 12241 output +{"1":1,"2":2} + + +-- !query 12242 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 12242 schema +struct> +-- !query 12242 output +{"1":1,"2":2} + + +-- !query 12243 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 12243 schema +struct> +-- !query 12243 output +{"1":1,"2":2} + + +-- !query 12244 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 12244 schema +struct> +-- !query 12244 output +{"1":1,"2":2} + + +-- !query 12245 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 12245 schema +struct> +-- !query 12245 output +{"1":1.0,"2":2.0} + + +-- !query 12246 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 12246 schema +struct> +-- !query 12246 output +{"1":1.0,"2":2.0} + + +-- !query 12247 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 12247 schema +struct> +-- !query 12247 output +{"1":1,"2":2} + + +-- !query 12248 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 12248 schema +struct> +-- !query 12248 output +{"1":"1","2":"2"} + + +-- !query 12249 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 12249 schema +struct<> +-- !query 12249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12250 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 12250 schema +struct<> +-- !query 12250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12251 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12251 schema +struct<> +-- !query 12251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12252 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12252 schema +struct<> +-- !query 12252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12253 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 12253 schema +struct> +-- !query 12253 output +{"1":1,"2":2} + + +-- !query 12254 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 12254 schema +struct> +-- !query 12254 output +{"1":1,"2":2} + + +-- !query 12255 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 12255 schema +struct> +-- !query 12255 output +{"1":1,"2":2} + + +-- !query 12256 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 12256 schema +struct> +-- !query 12256 output +{"1":1,"2":2} + + +-- !query 12257 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 12257 schema +struct> +-- !query 12257 output +{"1":1.0,"2":2.0} + + +-- !query 12258 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 12258 schema +struct> +-- !query 12258 output +{"1":1.0,"2":2.0} + + +-- !query 12259 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 12259 schema +struct> +-- !query 12259 output +{"1":1,"2":2} + + +-- !query 12260 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 12260 schema +struct> +-- !query 12260 output +{"1":"1","2":"2"} + + +-- !query 12261 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 12261 schema +struct<> +-- !query 12261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12262 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 12262 schema +struct<> +-- !query 12262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12263 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12263 schema +struct<> +-- !query 12263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12264 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12264 schema +struct<> +-- !query 12264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12265 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 12265 schema +struct> +-- !query 12265 output +{"1":1,"2":2} + + +-- !query 12266 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 12266 schema +struct> +-- !query 12266 output +{"1":1,"2":2} + + +-- !query 12267 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 12267 schema +struct> +-- !query 12267 output +{"1":1,"2":2} + + +-- !query 12268 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 12268 schema +struct> +-- !query 12268 output +{"1":1,"2":2} + + +-- !query 12269 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 12269 schema +struct> +-- !query 12269 output +{"1":1.0,"2":2.0} + + +-- !query 12270 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 12270 schema +struct> +-- !query 12270 output +{"1":1.0,"2":2.0} + + +-- !query 12271 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 12271 schema +struct> +-- !query 12271 output +{"1":1,"2":2} + + +-- !query 12272 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 12272 schema +struct> +-- !query 12272 output +{"1":"1","2":"2"} + + +-- !query 12273 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 12273 schema +struct<> +-- !query 12273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12274 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 12274 schema +struct<> +-- !query 12274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12275 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12275 schema +struct<> +-- !query 12275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12276 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12276 schema +struct<> +-- !query 12276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12277 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 12277 schema +struct> +-- !query 12277 output +{"1":1,"2":2} + + +-- !query 12278 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 12278 schema +struct> +-- !query 12278 output +{"1":1,"2":2} + + +-- !query 12279 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 12279 schema +struct> +-- !query 12279 output +{"1":1,"2":2} + + +-- !query 12280 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 12280 schema +struct> +-- !query 12280 output +{"1":1,"2":2} + + +-- !query 12281 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 12281 schema +struct> +-- !query 12281 output +{"1":1.0,"2":2.0} + + +-- !query 12282 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 12282 schema +struct> +-- !query 12282 output +{"1":1.0,"2":2.0} + + +-- !query 12283 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 12283 schema +struct> +-- !query 12283 output +{"1":1,"2":2} + + +-- !query 12284 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 12284 schema +struct> +-- !query 12284 output +{"1":"1","2":"2"} + + +-- !query 12285 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 12285 schema +struct<> +-- !query 12285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12286 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 12286 schema +struct<> +-- !query 12286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12287 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12287 schema +struct<> +-- !query 12287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12288 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12288 schema +struct<> +-- !query 12288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12289 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 12289 schema +struct> +-- !query 12289 output +{"1":1,"2.0":2} + + +-- !query 12290 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 12290 schema +struct> +-- !query 12290 output +{"1":1,"2.0":2} + + +-- !query 12291 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 12291 schema +struct> +-- !query 12291 output +{"1":1,"2.0":2} + + +-- !query 12292 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 12292 schema +struct> +-- !query 12292 output +{"1":1,"2.0":2} + + +-- !query 12293 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 12293 schema +struct> +-- !query 12293 output +{"1":1.0,"2.0":2.0} + + +-- !query 12294 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 12294 schema +struct> +-- !query 12294 output +{"1":1.0,"2.0":2.0} + + +-- !query 12295 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 12295 schema +struct> +-- !query 12295 output +{"1":1,"2.0":2} + + +-- !query 12296 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 12296 schema +struct> +-- !query 12296 output +{"1":"1","2.0":"2"} + + +-- !query 12297 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 12297 schema +struct<> +-- !query 12297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12298 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 12298 schema +struct<> +-- !query 12298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12299 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12299 schema +struct<> +-- !query 12299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12300 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12300 schema +struct<> +-- !query 12300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12301 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 12301 schema +struct> +-- !query 12301 output +{"1":1,"2.0":2} + + +-- !query 12302 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 12302 schema +struct> +-- !query 12302 output +{"1":1,"2.0":2} + + +-- !query 12303 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 12303 schema +struct> +-- !query 12303 output +{"1":1,"2.0":2} + + +-- !query 12304 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 12304 schema +struct> +-- !query 12304 output +{"1":1,"2.0":2} + + +-- !query 12305 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 12305 schema +struct> +-- !query 12305 output +{"1":1.0,"2.0":2.0} + + +-- !query 12306 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 12306 schema +struct> +-- !query 12306 output +{"1":1.0,"2.0":2.0} + + +-- !query 12307 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 12307 schema +struct> +-- !query 12307 output +{"1":1,"2.0":2} + + +-- !query 12308 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 12308 schema +struct> +-- !query 12308 output +{"1":"1","2.0":"2"} + + +-- !query 12309 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 12309 schema +struct<> +-- !query 12309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12310 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 12310 schema +struct<> +-- !query 12310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12311 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12311 schema +struct<> +-- !query 12311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12312 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12312 schema +struct<> +-- !query 12312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12313 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 12313 schema +struct> +-- !query 12313 output +{"1":1,"2":2} + + +-- !query 12314 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 12314 schema +struct> +-- !query 12314 output +{"1":1,"2":2} + + +-- !query 12315 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 12315 schema +struct> +-- !query 12315 output +{"1":1,"2":2} + + +-- !query 12316 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 12316 schema +struct> +-- !query 12316 output +{"1":1,"2":2} + + +-- !query 12317 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 12317 schema +struct> +-- !query 12317 output +{"1":1.0,"2":2.0} + + +-- !query 12318 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 12318 schema +struct> +-- !query 12318 output +{"1":1.0,"2":2.0} + + +-- !query 12319 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 12319 schema +struct> +-- !query 12319 output +{"1":1,"2":2} + + +-- !query 12320 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 12320 schema +struct> +-- !query 12320 output +{"1":"1","2":"2"} + + +-- !query 12321 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 12321 schema +struct<> +-- !query 12321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12322 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 12322 schema +struct<> +-- !query 12322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12323 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12323 schema +struct<> +-- !query 12323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12324 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12324 schema +struct<> +-- !query 12324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12325 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 12325 schema +struct> +-- !query 12325 output +{"1":1,"2":2} + + +-- !query 12326 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 12326 schema +struct> +-- !query 12326 output +{"1":1,"2":2} + + +-- !query 12327 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 12327 schema +struct> +-- !query 12327 output +{"1":1,"2":2} + + +-- !query 12328 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 12328 schema +struct> +-- !query 12328 output +{"1":1,"2":2} + + +-- !query 12329 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 12329 schema +struct> +-- !query 12329 output +{"1":1.0,"2":2.0} + + +-- !query 12330 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 12330 schema +struct> +-- !query 12330 output +{"1":1.0,"2":2.0} + + +-- !query 12331 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 12331 schema +struct> +-- !query 12331 output +{"1":1,"2":2} + + +-- !query 12332 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 12332 schema +struct> +-- !query 12332 output +{"1":"1","2":"2"} + + +-- !query 12333 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 12333 schema +struct<> +-- !query 12333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12334 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 12334 schema +struct<> +-- !query 12334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12335 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12335 schema +struct<> +-- !query 12335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12336 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12336 schema +struct<> +-- !query 12336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12337 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 12337 schema +struct<> +-- !query 12337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12338 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 12338 schema +struct<> +-- !query 12338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12339 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 12339 schema +struct<> +-- !query 12339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12340 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 12340 schema +struct<> +-- !query 12340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12341 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 12341 schema +struct<> +-- !query 12341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12342 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 12342 schema +struct<> +-- !query 12342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12343 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 12343 schema +struct<> +-- !query 12343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12344 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 12344 schema +struct<> +-- !query 12344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12345 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 12345 schema +struct<> +-- !query 12345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12346 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 12346 schema +struct<> +-- !query 12346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12347 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12347 schema +struct<> +-- !query 12347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12348 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12348 schema +struct<> +-- !query 12348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12349 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 12349 schema +struct<> +-- !query 12349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12350 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 12350 schema +struct<> +-- !query 12350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12351 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 12351 schema +struct<> +-- !query 12351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12352 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 12352 schema +struct<> +-- !query 12352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12353 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 12353 schema +struct<> +-- !query 12353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12354 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 12354 schema +struct<> +-- !query 12354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12355 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 12355 schema +struct<> +-- !query 12355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12356 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 12356 schema +struct<> +-- !query 12356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12357 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 12357 schema +struct<> +-- !query 12357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12358 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 12358 schema +struct<> +-- !query 12358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12359 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12359 schema +struct<> +-- !query 12359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12360 +SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12360 schema +struct<> +-- !query 12360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12361 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 12361 schema +struct> +-- !query 12361 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12362 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 12362 schema +struct> +-- !query 12362 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12363 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 12363 schema +struct> +-- !query 12363 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12364 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 12364 schema +struct> +-- !query 12364 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12365 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 12365 schema +struct> +-- !query 12365 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12366 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 12366 schema +struct> +-- !query 12366 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12367 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 12367 schema +struct> +-- !query 12367 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12368 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 12368 schema +struct> +-- !query 12368 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 12369 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 12369 schema +struct<> +-- !query 12369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12370 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 12370 schema +struct<> +-- !query 12370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12371 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12371 schema +struct<> +-- !query 12371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12372 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12372 schema +struct<> +-- !query 12372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12373 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 12373 schema +struct> +-- !query 12373 output +{"1":1,"2017-12-12":2} + + +-- !query 12374 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 12374 schema +struct> +-- !query 12374 output +{"1":1,"2017-12-12":2} + + +-- !query 12375 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 12375 schema +struct> +-- !query 12375 output +{"1":1,"2017-12-12":2} + + +-- !query 12376 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 12376 schema +struct> +-- !query 12376 output +{"1":1,"2017-12-12":2} + + +-- !query 12377 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 12377 schema +struct> +-- !query 12377 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12378 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 12378 schema +struct> +-- !query 12378 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12379 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 12379 schema +struct> +-- !query 12379 output +{"1":1,"2017-12-12":2} + + +-- !query 12380 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 12380 schema +struct> +-- !query 12380 output +{"1":"1","2017-12-12":"2"} + + +-- !query 12381 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 12381 schema +struct<> +-- !query 12381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 12382 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 12382 schema +struct<> +-- !query 12382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 12383 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12383 schema +struct<> +-- !query 12383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 12384 +SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12384 schema +struct<> +-- !query 12384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 12385 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 12385 schema +struct> +-- !query 12385 output +{"1":1,"2":2} + + +-- !query 12386 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 12386 schema +struct> +-- !query 12386 output +{"1":1,"2":2} + + +-- !query 12387 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 12387 schema +struct> +-- !query 12387 output +{"1":1,"2":2} + + +-- !query 12388 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 12388 schema +struct> +-- !query 12388 output +{"1":1,"2":2} + + +-- !query 12389 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 12389 schema +struct> +-- !query 12389 output +{"1":1.0,"2":2.0} + + +-- !query 12390 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 12390 schema +struct> +-- !query 12390 output +{"1":1.0,"2":2.0} + + +-- !query 12391 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 12391 schema +struct> +-- !query 12391 output +{"1":1,"2":2} + + +-- !query 12392 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 12392 schema +struct> +-- !query 12392 output +{"1":"1","2":"2"} + + +-- !query 12393 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 12393 schema +struct<> +-- !query 12393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12394 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 12394 schema +struct<> +-- !query 12394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12395 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12395 schema +struct<> +-- !query 12395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12396 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12396 schema +struct<> +-- !query 12396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12397 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 12397 schema +struct> +-- !query 12397 output +{"1":1,"2":2} + + +-- !query 12398 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 12398 schema +struct> +-- !query 12398 output +{"1":1,"2":2} + + +-- !query 12399 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 12399 schema +struct> +-- !query 12399 output +{"1":1,"2":2} + + +-- !query 12400 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 12400 schema +struct> +-- !query 12400 output +{"1":1,"2":2} + + +-- !query 12401 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 12401 schema +struct> +-- !query 12401 output +{"1":1.0,"2":2.0} + + +-- !query 12402 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 12402 schema +struct> +-- !query 12402 output +{"1":1.0,"2":2.0} + + +-- !query 12403 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 12403 schema +struct> +-- !query 12403 output +{"1":1,"2":2} + + +-- !query 12404 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 12404 schema +struct> +-- !query 12404 output +{"1":"1","2":"2"} + + +-- !query 12405 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 12405 schema +struct<> +-- !query 12405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12406 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 12406 schema +struct<> +-- !query 12406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12407 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12407 schema +struct<> +-- !query 12407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12408 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12408 schema +struct<> +-- !query 12408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12409 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 12409 schema +struct> +-- !query 12409 output +{"1":1,"2":2} + + +-- !query 12410 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 12410 schema +struct> +-- !query 12410 output +{"1":1,"2":2} + + +-- !query 12411 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 12411 schema +struct> +-- !query 12411 output +{"1":1,"2":2} + + +-- !query 12412 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 12412 schema +struct> +-- !query 12412 output +{"1":1,"2":2} + + +-- !query 12413 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 12413 schema +struct> +-- !query 12413 output +{"1":1.0,"2":2.0} + + +-- !query 12414 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 12414 schema +struct> +-- !query 12414 output +{"1":1.0,"2":2.0} + + +-- !query 12415 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 12415 schema +struct> +-- !query 12415 output +{"1":1,"2":2} + + +-- !query 12416 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 12416 schema +struct> +-- !query 12416 output +{"1":"1","2":"2"} + + +-- !query 12417 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 12417 schema +struct<> +-- !query 12417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12418 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 12418 schema +struct<> +-- !query 12418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12419 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12419 schema +struct<> +-- !query 12419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12420 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12420 schema +struct<> +-- !query 12420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12421 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 12421 schema +struct> +-- !query 12421 output +{"1":1,"2":2} + + +-- !query 12422 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 12422 schema +struct> +-- !query 12422 output +{"1":1,"2":2} + + +-- !query 12423 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 12423 schema +struct> +-- !query 12423 output +{"1":1,"2":2} + + +-- !query 12424 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 12424 schema +struct> +-- !query 12424 output +{"1":1,"2":2} + + +-- !query 12425 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 12425 schema +struct> +-- !query 12425 output +{"1":1.0,"2":2.0} + + +-- !query 12426 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 12426 schema +struct> +-- !query 12426 output +{"1":1.0,"2":2.0} + + +-- !query 12427 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 12427 schema +struct> +-- !query 12427 output +{"1":1,"2":2} + + +-- !query 12428 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 12428 schema +struct> +-- !query 12428 output +{"1":"1","2":"2"} + + +-- !query 12429 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 12429 schema +struct<> +-- !query 12429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12430 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 12430 schema +struct<> +-- !query 12430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12431 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12431 schema +struct<> +-- !query 12431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12432 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12432 schema +struct<> +-- !query 12432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12433 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 12433 schema +struct> +-- !query 12433 output +{"1":1,"2.0":2} + + +-- !query 12434 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 12434 schema +struct> +-- !query 12434 output +{"1":1,"2.0":2} + + +-- !query 12435 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 12435 schema +struct> +-- !query 12435 output +{"1":1,"2.0":2} + + +-- !query 12436 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 12436 schema +struct> +-- !query 12436 output +{"1":1,"2.0":2} + + +-- !query 12437 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 12437 schema +struct> +-- !query 12437 output +{"1":1.0,"2.0":2.0} + + +-- !query 12438 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 12438 schema +struct> +-- !query 12438 output +{"1":1.0,"2.0":2.0} + + +-- !query 12439 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 12439 schema +struct> +-- !query 12439 output +{"1":1,"2.0":2} + + +-- !query 12440 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 12440 schema +struct> +-- !query 12440 output +{"1":"1","2.0":"2"} + + +-- !query 12441 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 12441 schema +struct<> +-- !query 12441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12442 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 12442 schema +struct<> +-- !query 12442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12443 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12443 schema +struct<> +-- !query 12443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12444 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12444 schema +struct<> +-- !query 12444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12445 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 12445 schema +struct> +-- !query 12445 output +{"1":1,"2.0":2} + + +-- !query 12446 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 12446 schema +struct> +-- !query 12446 output +{"1":1,"2.0":2} + + +-- !query 12447 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 12447 schema +struct> +-- !query 12447 output +{"1":1,"2.0":2} + + +-- !query 12448 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 12448 schema +struct> +-- !query 12448 output +{"1":1,"2.0":2} + + +-- !query 12449 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 12449 schema +struct> +-- !query 12449 output +{"1":1.0,"2.0":2.0} + + +-- !query 12450 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 12450 schema +struct> +-- !query 12450 output +{"1":1.0,"2.0":2.0} + + +-- !query 12451 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 12451 schema +struct> +-- !query 12451 output +{"1":1,"2.0":2} + + +-- !query 12452 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 12452 schema +struct> +-- !query 12452 output +{"1":"1","2.0":"2"} + + +-- !query 12453 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 12453 schema +struct<> +-- !query 12453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12454 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 12454 schema +struct<> +-- !query 12454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12455 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12455 schema +struct<> +-- !query 12455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12456 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12456 schema +struct<> +-- !query 12456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12457 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 12457 schema +struct> +-- !query 12457 output +{"1":1,"2":2} + + +-- !query 12458 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 12458 schema +struct> +-- !query 12458 output +{"1":1,"2":2} + + +-- !query 12459 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 12459 schema +struct> +-- !query 12459 output +{"1":1,"2":2} + + +-- !query 12460 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 12460 schema +struct> +-- !query 12460 output +{"1":1,"2":2} + + +-- !query 12461 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 12461 schema +struct> +-- !query 12461 output +{"1":1.0,"2":2.0} + + +-- !query 12462 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 12462 schema +struct> +-- !query 12462 output +{"1":1.0,"2":2.0} + + +-- !query 12463 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 12463 schema +struct> +-- !query 12463 output +{"1":1,"2":2} + + +-- !query 12464 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 12464 schema +struct> +-- !query 12464 output +{"1":"1","2":"2"} + + +-- !query 12465 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 12465 schema +struct<> +-- !query 12465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12466 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 12466 schema +struct<> +-- !query 12466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12467 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12467 schema +struct<> +-- !query 12467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12468 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12468 schema +struct<> +-- !query 12468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12469 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 12469 schema +struct> +-- !query 12469 output +{"1":1,"2":2} + + +-- !query 12470 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 12470 schema +struct> +-- !query 12470 output +{"1":1,"2":2} + + +-- !query 12471 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 12471 schema +struct> +-- !query 12471 output +{"1":1,"2":2} + + +-- !query 12472 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 12472 schema +struct> +-- !query 12472 output +{"1":1,"2":2} + + +-- !query 12473 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 12473 schema +struct> +-- !query 12473 output +{"1":1.0,"2":2.0} + + +-- !query 12474 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 12474 schema +struct> +-- !query 12474 output +{"1":1.0,"2":2.0} + + +-- !query 12475 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 12475 schema +struct> +-- !query 12475 output +{"1":1,"2":2} + + +-- !query 12476 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 12476 schema +struct> +-- !query 12476 output +{"1":"1","2":"2"} + + +-- !query 12477 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 12477 schema +struct<> +-- !query 12477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12478 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 12478 schema +struct<> +-- !query 12478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12479 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12479 schema +struct<> +-- !query 12479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12480 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12480 schema +struct<> +-- !query 12480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12481 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 12481 schema +struct<> +-- !query 12481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12482 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 12482 schema +struct<> +-- !query 12482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12483 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 12483 schema +struct<> +-- !query 12483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12484 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 12484 schema +struct<> +-- !query 12484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12485 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 12485 schema +struct<> +-- !query 12485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12486 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 12486 schema +struct<> +-- !query 12486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12487 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 12487 schema +struct<> +-- !query 12487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12488 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 12488 schema +struct<> +-- !query 12488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12489 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 12489 schema +struct<> +-- !query 12489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12490 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 12490 schema +struct<> +-- !query 12490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12491 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12491 schema +struct<> +-- !query 12491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12492 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12492 schema +struct<> +-- !query 12492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12493 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 12493 schema +struct<> +-- !query 12493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12494 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 12494 schema +struct<> +-- !query 12494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12495 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 12495 schema +struct<> +-- !query 12495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12496 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 12496 schema +struct<> +-- !query 12496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12497 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 12497 schema +struct<> +-- !query 12497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12498 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 12498 schema +struct<> +-- !query 12498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12499 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 12499 schema +struct<> +-- !query 12499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12500 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 12500 schema +struct<> +-- !query 12500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12501 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 12501 schema +struct<> +-- !query 12501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12502 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 12502 schema +struct<> +-- !query 12502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12503 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12503 schema +struct<> +-- !query 12503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12504 +SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12504 schema +struct<> +-- !query 12504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12505 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 12505 schema +struct> +-- !query 12505 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12506 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 12506 schema +struct> +-- !query 12506 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12507 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 12507 schema +struct> +-- !query 12507 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12508 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 12508 schema +struct> +-- !query 12508 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12509 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 12509 schema +struct> +-- !query 12509 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12510 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 12510 schema +struct> +-- !query 12510 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12511 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 12511 schema +struct> +-- !query 12511 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12512 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 12512 schema +struct> +-- !query 12512 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 12513 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 12513 schema +struct<> +-- !query 12513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12514 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 12514 schema +struct<> +-- !query 12514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12515 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12515 schema +struct<> +-- !query 12515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12516 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12516 schema +struct<> +-- !query 12516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12517 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 12517 schema +struct> +-- !query 12517 output +{"1":1,"2017-12-12":2} + + +-- !query 12518 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 12518 schema +struct> +-- !query 12518 output +{"1":1,"2017-12-12":2} + + +-- !query 12519 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 12519 schema +struct> +-- !query 12519 output +{"1":1,"2017-12-12":2} + + +-- !query 12520 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 12520 schema +struct> +-- !query 12520 output +{"1":1,"2017-12-12":2} + + +-- !query 12521 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 12521 schema +struct> +-- !query 12521 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12522 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 12522 schema +struct> +-- !query 12522 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12523 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 12523 schema +struct> +-- !query 12523 output +{"1":1,"2017-12-12":2} + + +-- !query 12524 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 12524 schema +struct> +-- !query 12524 output +{"1":"1","2017-12-12":"2"} + + +-- !query 12525 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 12525 schema +struct<> +-- !query 12525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 12526 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 12526 schema +struct<> +-- !query 12526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 12527 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12527 schema +struct<> +-- !query 12527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 12528 +SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12528 schema +struct<> +-- !query 12528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 12529 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 12529 schema +struct> +-- !query 12529 output +{"1":1,"2":2} + + +-- !query 12530 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 12530 schema +struct> +-- !query 12530 output +{"1":1,"2":2} + + +-- !query 12531 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 12531 schema +struct> +-- !query 12531 output +{"1":1,"2":2} + + +-- !query 12532 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 12532 schema +struct> +-- !query 12532 output +{"1":1,"2":2} + + +-- !query 12533 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 12533 schema +struct> +-- !query 12533 output +{"1":1.0,"2":2.0} + + +-- !query 12534 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 12534 schema +struct> +-- !query 12534 output +{"1":1.0,"2":2.0} + + +-- !query 12535 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 12535 schema +struct> +-- !query 12535 output +{"1":1,"2":2} + + +-- !query 12536 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 12536 schema +struct> +-- !query 12536 output +{"1":"1","2":"2"} + + +-- !query 12537 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 12537 schema +struct<> +-- !query 12537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12538 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 12538 schema +struct<> +-- !query 12538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12539 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12539 schema +struct<> +-- !query 12539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12540 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12540 schema +struct<> +-- !query 12540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12541 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 12541 schema +struct> +-- !query 12541 output +{"1":1,"2":2} + + +-- !query 12542 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 12542 schema +struct> +-- !query 12542 output +{"1":1,"2":2} + + +-- !query 12543 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 12543 schema +struct> +-- !query 12543 output +{"1":1,"2":2} + + +-- !query 12544 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 12544 schema +struct> +-- !query 12544 output +{"1":1,"2":2} + + +-- !query 12545 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 12545 schema +struct> +-- !query 12545 output +{"1":1.0,"2":2.0} + + +-- !query 12546 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 12546 schema +struct> +-- !query 12546 output +{"1":1.0,"2":2.0} + + +-- !query 12547 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 12547 schema +struct> +-- !query 12547 output +{"1":1,"2":2} + + +-- !query 12548 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 12548 schema +struct> +-- !query 12548 output +{"1":"1","2":"2"} + + +-- !query 12549 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 12549 schema +struct<> +-- !query 12549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12550 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 12550 schema +struct<> +-- !query 12550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12551 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12551 schema +struct<> +-- !query 12551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12552 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12552 schema +struct<> +-- !query 12552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12553 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 12553 schema +struct> +-- !query 12553 output +{"1":1,"2":2} + + +-- !query 12554 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 12554 schema +struct> +-- !query 12554 output +{"1":1,"2":2} + + +-- !query 12555 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 12555 schema +struct> +-- !query 12555 output +{"1":1,"2":2} + + +-- !query 12556 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 12556 schema +struct> +-- !query 12556 output +{"1":1,"2":2} + + +-- !query 12557 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 12557 schema +struct> +-- !query 12557 output +{"1":1.0,"2":2.0} + + +-- !query 12558 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 12558 schema +struct> +-- !query 12558 output +{"1":1.0,"2":2.0} + + +-- !query 12559 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 12559 schema +struct> +-- !query 12559 output +{"1":1,"2":2} + + +-- !query 12560 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 12560 schema +struct> +-- !query 12560 output +{"1":"1","2":"2"} + + +-- !query 12561 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 12561 schema +struct<> +-- !query 12561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12562 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 12562 schema +struct<> +-- !query 12562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12563 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12563 schema +struct<> +-- !query 12563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12564 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12564 schema +struct<> +-- !query 12564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12565 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 12565 schema +struct> +-- !query 12565 output +{"1":1,"2":2} + + +-- !query 12566 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 12566 schema +struct> +-- !query 12566 output +{"1":1,"2":2} + + +-- !query 12567 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 12567 schema +struct> +-- !query 12567 output +{"1":1,"2":2} + + +-- !query 12568 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 12568 schema +struct> +-- !query 12568 output +{"1":1,"2":2} + + +-- !query 12569 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 12569 schema +struct> +-- !query 12569 output +{"1":1.0,"2":2.0} + + +-- !query 12570 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 12570 schema +struct> +-- !query 12570 output +{"1":1.0,"2":2.0} + + +-- !query 12571 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 12571 schema +struct> +-- !query 12571 output +{"1":1,"2":2} + + +-- !query 12572 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 12572 schema +struct> +-- !query 12572 output +{"1":"1","2":"2"} + + +-- !query 12573 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 12573 schema +struct<> +-- !query 12573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12574 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 12574 schema +struct<> +-- !query 12574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12575 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12575 schema +struct<> +-- !query 12575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12576 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12576 schema +struct<> +-- !query 12576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12577 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 12577 schema +struct> +-- !query 12577 output +{"1":1,"2.0":2} + + +-- !query 12578 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 12578 schema +struct> +-- !query 12578 output +{"1":1,"2.0":2} + + +-- !query 12579 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 12579 schema +struct> +-- !query 12579 output +{"1":1,"2.0":2} + + +-- !query 12580 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 12580 schema +struct> +-- !query 12580 output +{"1":1,"2.0":2} + + +-- !query 12581 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 12581 schema +struct> +-- !query 12581 output +{"1":1.0,"2.0":2.0} + + +-- !query 12582 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 12582 schema +struct> +-- !query 12582 output +{"1":1.0,"2.0":2.0} + + +-- !query 12583 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 12583 schema +struct> +-- !query 12583 output +{"1":1,"2.0":2} + + +-- !query 12584 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 12584 schema +struct> +-- !query 12584 output +{"1":"1","2.0":"2"} + + +-- !query 12585 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 12585 schema +struct<> +-- !query 12585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12586 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 12586 schema +struct<> +-- !query 12586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12587 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12587 schema +struct<> +-- !query 12587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12588 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12588 schema +struct<> +-- !query 12588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12589 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 12589 schema +struct> +-- !query 12589 output +{"1":1,"2.0":2} + + +-- !query 12590 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 12590 schema +struct> +-- !query 12590 output +{"1":1,"2.0":2} + + +-- !query 12591 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 12591 schema +struct> +-- !query 12591 output +{"1":1,"2.0":2} + + +-- !query 12592 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 12592 schema +struct> +-- !query 12592 output +{"1":1,"2.0":2} + + +-- !query 12593 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 12593 schema +struct> +-- !query 12593 output +{"1":1.0,"2.0":2.0} + + +-- !query 12594 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 12594 schema +struct> +-- !query 12594 output +{"1":1.0,"2.0":2.0} + + +-- !query 12595 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 12595 schema +struct> +-- !query 12595 output +{"1":1,"2.0":2} + + +-- !query 12596 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 12596 schema +struct> +-- !query 12596 output +{"1":"1","2.0":"2"} + + +-- !query 12597 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 12597 schema +struct<> +-- !query 12597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12598 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 12598 schema +struct<> +-- !query 12598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12599 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12599 schema +struct<> +-- !query 12599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12600 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12600 schema +struct<> +-- !query 12600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12601 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 12601 schema +struct> +-- !query 12601 output +{"1":1,"2":2} + + +-- !query 12602 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 12602 schema +struct> +-- !query 12602 output +{"1":1,"2":2} + + +-- !query 12603 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 12603 schema +struct> +-- !query 12603 output +{"1":1,"2":2} + + +-- !query 12604 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 12604 schema +struct> +-- !query 12604 output +{"1":1,"2":2} + + +-- !query 12605 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 12605 schema +struct> +-- !query 12605 output +{"1":1.0,"2":2.0} + + +-- !query 12606 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 12606 schema +struct> +-- !query 12606 output +{"1":1.0,"2":2.0} + + +-- !query 12607 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 12607 schema +struct> +-- !query 12607 output +{"1":1,"2":2} + + +-- !query 12608 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 12608 schema +struct> +-- !query 12608 output +{"1":"1","2":"2"} + + +-- !query 12609 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 12609 schema +struct<> +-- !query 12609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12610 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 12610 schema +struct<> +-- !query 12610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12611 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12611 schema +struct<> +-- !query 12611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12612 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12612 schema +struct<> +-- !query 12612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12613 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 12613 schema +struct> +-- !query 12613 output +{"1":1,"2":2} + + +-- !query 12614 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 12614 schema +struct> +-- !query 12614 output +{"1":1,"2":2} + + +-- !query 12615 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 12615 schema +struct> +-- !query 12615 output +{"1":1,"2":2} + + +-- !query 12616 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 12616 schema +struct> +-- !query 12616 output +{"1":1,"2":2} + + +-- !query 12617 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 12617 schema +struct> +-- !query 12617 output +{"1":1.0,"2":2.0} + + +-- !query 12618 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 12618 schema +struct> +-- !query 12618 output +{"1":1.0,"2":2.0} + + +-- !query 12619 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 12619 schema +struct> +-- !query 12619 output +{"1":1,"2":2} + + +-- !query 12620 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 12620 schema +struct> +-- !query 12620 output +{"1":"1","2":"2"} + + +-- !query 12621 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 12621 schema +struct<> +-- !query 12621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12622 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 12622 schema +struct<> +-- !query 12622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12623 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12623 schema +struct<> +-- !query 12623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12624 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12624 schema +struct<> +-- !query 12624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12625 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 12625 schema +struct<> +-- !query 12625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12626 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 12626 schema +struct<> +-- !query 12626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12627 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 12627 schema +struct<> +-- !query 12627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12628 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 12628 schema +struct<> +-- !query 12628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12629 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 12629 schema +struct<> +-- !query 12629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12630 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 12630 schema +struct<> +-- !query 12630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12631 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 12631 schema +struct<> +-- !query 12631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12632 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 12632 schema +struct<> +-- !query 12632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12633 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 12633 schema +struct<> +-- !query 12633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12634 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 12634 schema +struct<> +-- !query 12634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12635 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12635 schema +struct<> +-- !query 12635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12636 +SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12636 schema +struct<> +-- !query 12636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12637 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 12637 schema +struct<> +-- !query 12637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12638 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 12638 schema +struct<> +-- !query 12638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12639 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 12639 schema +struct<> +-- !query 12639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12640 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 12640 schema +struct<> +-- !query 12640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12641 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 12641 schema +struct<> +-- !query 12641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12642 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 12642 schema +struct<> +-- !query 12642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12643 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 12643 schema +struct<> +-- !query 12643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12644 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 12644 schema +struct<> +-- !query 12644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12645 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 12645 schema +struct<> +-- !query 12645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12646 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 12646 schema +struct<> +-- !query 12646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12647 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12647 schema +struct<> +-- !query 12647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12648 +SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12648 schema +struct<> +-- !query 12648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12649 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 12649 schema +struct> +-- !query 12649 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12650 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 12650 schema +struct> +-- !query 12650 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12651 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 12651 schema +struct> +-- !query 12651 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12652 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 12652 schema +struct> +-- !query 12652 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12653 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 12653 schema +struct> +-- !query 12653 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12654 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 12654 schema +struct> +-- !query 12654 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12655 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 12655 schema +struct> +-- !query 12655 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12656 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 12656 schema +struct> +-- !query 12656 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 12657 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 12657 schema +struct<> +-- !query 12657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12658 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 12658 schema +struct<> +-- !query 12658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12659 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12659 schema +struct<> +-- !query 12659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12660 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12660 schema +struct<> +-- !query 12660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12661 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 12661 schema +struct> +-- !query 12661 output +{"1":1,"2017-12-12":2} + + +-- !query 12662 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 12662 schema +struct> +-- !query 12662 output +{"1":1,"2017-12-12":2} + + +-- !query 12663 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 12663 schema +struct> +-- !query 12663 output +{"1":1,"2017-12-12":2} + + +-- !query 12664 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 12664 schema +struct> +-- !query 12664 output +{"1":1,"2017-12-12":2} + + +-- !query 12665 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 12665 schema +struct> +-- !query 12665 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12666 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 12666 schema +struct> +-- !query 12666 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12667 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 12667 schema +struct> +-- !query 12667 output +{"1":1,"2017-12-12":2} + + +-- !query 12668 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 12668 schema +struct> +-- !query 12668 output +{"1":"1","2017-12-12":"2"} + + +-- !query 12669 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 12669 schema +struct<> +-- !query 12669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 12670 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 12670 schema +struct<> +-- !query 12670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 12671 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12671 schema +struct<> +-- !query 12671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 12672 +SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12672 schema +struct<> +-- !query 12672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 12673 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 12673 schema +struct> +-- !query 12673 output +{"1":1,"2":2} + + +-- !query 12674 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 12674 schema +struct> +-- !query 12674 output +{"1":1,"2":2} + + +-- !query 12675 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 12675 schema +struct> +-- !query 12675 output +{"1":1,"2":2} + + +-- !query 12676 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 12676 schema +struct> +-- !query 12676 output +{"1":1,"2":2} + + +-- !query 12677 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 12677 schema +struct> +-- !query 12677 output +{"1":1.0,"2":2.0} + + +-- !query 12678 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 12678 schema +struct> +-- !query 12678 output +{"1":1.0,"2":2.0} + + +-- !query 12679 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 12679 schema +struct> +-- !query 12679 output +{"1":1,"2":2} + + +-- !query 12680 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 12680 schema +struct> +-- !query 12680 output +{"1":"1","2":"2"} + + +-- !query 12681 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 12681 schema +struct<> +-- !query 12681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12682 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 12682 schema +struct<> +-- !query 12682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12683 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12683 schema +struct<> +-- !query 12683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12684 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12684 schema +struct<> +-- !query 12684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12685 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 12685 schema +struct> +-- !query 12685 output +{"1":1,"2":2} + + +-- !query 12686 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 12686 schema +struct> +-- !query 12686 output +{"1":1,"2":2} + + +-- !query 12687 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 12687 schema +struct> +-- !query 12687 output +{"1":1,"2":2} + + +-- !query 12688 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 12688 schema +struct> +-- !query 12688 output +{"1":1,"2":2} + + +-- !query 12689 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 12689 schema +struct> +-- !query 12689 output +{"1":1.0,"2":2.0} + + +-- !query 12690 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 12690 schema +struct> +-- !query 12690 output +{"1":1.0,"2":2.0} + + +-- !query 12691 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 12691 schema +struct> +-- !query 12691 output +{"1":1,"2":2} + + +-- !query 12692 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 12692 schema +struct> +-- !query 12692 output +{"1":"1","2":"2"} + + +-- !query 12693 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 12693 schema +struct<> +-- !query 12693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12694 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 12694 schema +struct<> +-- !query 12694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12695 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12695 schema +struct<> +-- !query 12695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12696 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12696 schema +struct<> +-- !query 12696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12697 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 12697 schema +struct> +-- !query 12697 output +{"1":1,"2":2} + + +-- !query 12698 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 12698 schema +struct> +-- !query 12698 output +{"1":1,"2":2} + + +-- !query 12699 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 12699 schema +struct> +-- !query 12699 output +{"1":1,"2":2} + + +-- !query 12700 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 12700 schema +struct> +-- !query 12700 output +{"1":1,"2":2} + + +-- !query 12701 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 12701 schema +struct> +-- !query 12701 output +{"1":1.0,"2":2.0} + + +-- !query 12702 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 12702 schema +struct> +-- !query 12702 output +{"1":1.0,"2":2.0} + + +-- !query 12703 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 12703 schema +struct> +-- !query 12703 output +{"1":1,"2":2} + + +-- !query 12704 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 12704 schema +struct> +-- !query 12704 output +{"1":"1","2":"2"} + + +-- !query 12705 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 12705 schema +struct<> +-- !query 12705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12706 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 12706 schema +struct<> +-- !query 12706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12707 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12707 schema +struct<> +-- !query 12707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12708 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12708 schema +struct<> +-- !query 12708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12709 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 12709 schema +struct> +-- !query 12709 output +{"1":1,"2":2} + + +-- !query 12710 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 12710 schema +struct> +-- !query 12710 output +{"1":1,"2":2} + + +-- !query 12711 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 12711 schema +struct> +-- !query 12711 output +{"1":1,"2":2} + + +-- !query 12712 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 12712 schema +struct> +-- !query 12712 output +{"1":1,"2":2} + + +-- !query 12713 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 12713 schema +struct> +-- !query 12713 output +{"1":1.0,"2":2.0} + + +-- !query 12714 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 12714 schema +struct> +-- !query 12714 output +{"1":1.0,"2":2.0} + + +-- !query 12715 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 12715 schema +struct> +-- !query 12715 output +{"1":1,"2":2} + + +-- !query 12716 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 12716 schema +struct> +-- !query 12716 output +{"1":"1","2":"2"} + + +-- !query 12717 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 12717 schema +struct<> +-- !query 12717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12718 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 12718 schema +struct<> +-- !query 12718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12719 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12719 schema +struct<> +-- !query 12719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12720 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12720 schema +struct<> +-- !query 12720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12721 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 12721 schema +struct> +-- !query 12721 output +{"1":1,"2.0":2} + + +-- !query 12722 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 12722 schema +struct> +-- !query 12722 output +{"1":1,"2.0":2} + + +-- !query 12723 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 12723 schema +struct> +-- !query 12723 output +{"1":1,"2.0":2} + + +-- !query 12724 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 12724 schema +struct> +-- !query 12724 output +{"1":1,"2.0":2} + + +-- !query 12725 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 12725 schema +struct> +-- !query 12725 output +{"1":1.0,"2.0":2.0} + + +-- !query 12726 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 12726 schema +struct> +-- !query 12726 output +{"1":1.0,"2.0":2.0} + + +-- !query 12727 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 12727 schema +struct> +-- !query 12727 output +{"1":1,"2.0":2} + + +-- !query 12728 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 12728 schema +struct> +-- !query 12728 output +{"1":"1","2.0":"2"} + + +-- !query 12729 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 12729 schema +struct<> +-- !query 12729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12730 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 12730 schema +struct<> +-- !query 12730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12731 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12731 schema +struct<> +-- !query 12731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12732 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12732 schema +struct<> +-- !query 12732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12733 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 12733 schema +struct> +-- !query 12733 output +{"1":1,"2.0":2} + + +-- !query 12734 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 12734 schema +struct> +-- !query 12734 output +{"1":1,"2.0":2} + + +-- !query 12735 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 12735 schema +struct> +-- !query 12735 output +{"1":1,"2.0":2} + + +-- !query 12736 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 12736 schema +struct> +-- !query 12736 output +{"1":1,"2.0":2} + + +-- !query 12737 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 12737 schema +struct> +-- !query 12737 output +{"1":1.0,"2.0":2.0} + + +-- !query 12738 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 12738 schema +struct> +-- !query 12738 output +{"1":1.0,"2.0":2.0} + + +-- !query 12739 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 12739 schema +struct> +-- !query 12739 output +{"1":1,"2.0":2} + + +-- !query 12740 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 12740 schema +struct> +-- !query 12740 output +{"1":"1","2.0":"2"} + + +-- !query 12741 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 12741 schema +struct<> +-- !query 12741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12742 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 12742 schema +struct<> +-- !query 12742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12743 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12743 schema +struct<> +-- !query 12743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12744 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12744 schema +struct<> +-- !query 12744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12745 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 12745 schema +struct> +-- !query 12745 output +{"1":1,"2":2} + + +-- !query 12746 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 12746 schema +struct> +-- !query 12746 output +{"1":1,"2":2} + + +-- !query 12747 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 12747 schema +struct> +-- !query 12747 output +{"1":1,"2":2} + + +-- !query 12748 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 12748 schema +struct> +-- !query 12748 output +{"1":1,"2":2} + + +-- !query 12749 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 12749 schema +struct> +-- !query 12749 output +{"1":1.0,"2":2.0} + + +-- !query 12750 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 12750 schema +struct> +-- !query 12750 output +{"1":1.0,"2":2.0} + + +-- !query 12751 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 12751 schema +struct> +-- !query 12751 output +{"1":1,"2":2} + + +-- !query 12752 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 12752 schema +struct> +-- !query 12752 output +{"1":"1","2":"2"} + + +-- !query 12753 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 12753 schema +struct<> +-- !query 12753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12754 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 12754 schema +struct<> +-- !query 12754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12755 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12755 schema +struct<> +-- !query 12755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12756 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12756 schema +struct<> +-- !query 12756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12757 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 12757 schema +struct> +-- !query 12757 output +{"1":1,"2":2} + + +-- !query 12758 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 12758 schema +struct> +-- !query 12758 output +{"1":1,"2":2} + + +-- !query 12759 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 12759 schema +struct> +-- !query 12759 output +{"1":1,"2":2} + + +-- !query 12760 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 12760 schema +struct> +-- !query 12760 output +{"1":1,"2":2} + + +-- !query 12761 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 12761 schema +struct> +-- !query 12761 output +{"1":1.0,"2":2.0} + + +-- !query 12762 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 12762 schema +struct> +-- !query 12762 output +{"1":1.0,"2":2.0} + + +-- !query 12763 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 12763 schema +struct> +-- !query 12763 output +{"1":1,"2":2} + + +-- !query 12764 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 12764 schema +struct> +-- !query 12764 output +{"1":"1","2":"2"} + + +-- !query 12765 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 12765 schema +struct<> +-- !query 12765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12766 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 12766 schema +struct<> +-- !query 12766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12767 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12767 schema +struct<> +-- !query 12767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12768 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12768 schema +struct<> +-- !query 12768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12769 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 12769 schema +struct<> +-- !query 12769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12770 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 12770 schema +struct<> +-- !query 12770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12771 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 12771 schema +struct<> +-- !query 12771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12772 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 12772 schema +struct<> +-- !query 12772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12773 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 12773 schema +struct<> +-- !query 12773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12774 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 12774 schema +struct<> +-- !query 12774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12775 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 12775 schema +struct<> +-- !query 12775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12776 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 12776 schema +struct<> +-- !query 12776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12777 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 12777 schema +struct<> +-- !query 12777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12778 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 12778 schema +struct<> +-- !query 12778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12779 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12779 schema +struct<> +-- !query 12779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12780 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12780 schema +struct<> +-- !query 12780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12781 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 12781 schema +struct<> +-- !query 12781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12782 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 12782 schema +struct<> +-- !query 12782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12783 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 12783 schema +struct<> +-- !query 12783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12784 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 12784 schema +struct<> +-- !query 12784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12785 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 12785 schema +struct<> +-- !query 12785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12786 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 12786 schema +struct<> +-- !query 12786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12787 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 12787 schema +struct<> +-- !query 12787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12788 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 12788 schema +struct<> +-- !query 12788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12789 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 12789 schema +struct<> +-- !query 12789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12790 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 12790 schema +struct<> +-- !query 12790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12791 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12791 schema +struct<> +-- !query 12791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12792 +SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12792 schema +struct<> +-- !query 12792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12793 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 12793 schema +struct> +-- !query 12793 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12794 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 12794 schema +struct> +-- !query 12794 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12795 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 12795 schema +struct> +-- !query 12795 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12796 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 12796 schema +struct> +-- !query 12796 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12797 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 12797 schema +struct> +-- !query 12797 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12798 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 12798 schema +struct> +-- !query 12798 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12799 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 12799 schema +struct> +-- !query 12799 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 12800 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 12800 schema +struct> +-- !query 12800 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 12801 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 12801 schema +struct<> +-- !query 12801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12802 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 12802 schema +struct<> +-- !query 12802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12803 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12803 schema +struct<> +-- !query 12803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12804 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12804 schema +struct<> +-- !query 12804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12805 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 12805 schema +struct> +-- !query 12805 output +{"1":1,"2017-12-12":2} + + +-- !query 12806 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 12806 schema +struct> +-- !query 12806 output +{"1":1,"2017-12-12":2} + + +-- !query 12807 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 12807 schema +struct> +-- !query 12807 output +{"1":1,"2017-12-12":2} + + +-- !query 12808 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 12808 schema +struct> +-- !query 12808 output +{"1":1,"2017-12-12":2} + + +-- !query 12809 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 12809 schema +struct> +-- !query 12809 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12810 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 12810 schema +struct> +-- !query 12810 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12811 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 12811 schema +struct> +-- !query 12811 output +{"1":1,"2017-12-12":2} + + +-- !query 12812 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 12812 schema +struct> +-- !query 12812 output +{"1":"1","2017-12-12":"2"} + + +-- !query 12813 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 12813 schema +struct<> +-- !query 12813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 12814 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 12814 schema +struct<> +-- !query 12814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 12815 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12815 schema +struct<> +-- !query 12815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 12816 +SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12816 schema +struct<> +-- !query 12816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 12817 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 12817 schema +struct> +-- !query 12817 output +{"1":1.0,"2":2.0} + + +-- !query 12818 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 12818 schema +struct> +-- !query 12818 output +{"1":1.0,"2":2.0} + + +-- !query 12819 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 12819 schema +struct> +-- !query 12819 output +{"1":1.0,"2":2.0} + + +-- !query 12820 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 12820 schema +struct> +-- !query 12820 output +{"1":1.0,"2":2.0} + + +-- !query 12821 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 12821 schema +struct> +-- !query 12821 output +{"1":1.0,"2":2.0} + + +-- !query 12822 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 12822 schema +struct> +-- !query 12822 output +{"1":1.0,"2":2.0} + + +-- !query 12823 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 12823 schema +struct> +-- !query 12823 output +{"1":1.0,"2":2.0} + + +-- !query 12824 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 12824 schema +struct> +-- !query 12824 output +{"1":"1.0","2":"2"} + + +-- !query 12825 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 12825 schema +struct<> +-- !query 12825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12826 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 12826 schema +struct<> +-- !query 12826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12827 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12827 schema +struct<> +-- !query 12827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12828 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12828 schema +struct<> +-- !query 12828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12829 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 12829 schema +struct> +-- !query 12829 output +{"1":1.0,"2":2.0} + + +-- !query 12830 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 12830 schema +struct> +-- !query 12830 output +{"1":1.0,"2":2.0} + + +-- !query 12831 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 12831 schema +struct> +-- !query 12831 output +{"1":1.0,"2":2.0} + + +-- !query 12832 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 12832 schema +struct> +-- !query 12832 output +{"1":1.0,"2":2.0} + + +-- !query 12833 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 12833 schema +struct> +-- !query 12833 output +{"1":1.0,"2":2.0} + + +-- !query 12834 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 12834 schema +struct> +-- !query 12834 output +{"1":1.0,"2":2.0} + + +-- !query 12835 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 12835 schema +struct> +-- !query 12835 output +{"1":1.0,"2":2.0} + + +-- !query 12836 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 12836 schema +struct> +-- !query 12836 output +{"1":"1.0","2":"2"} + + +-- !query 12837 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 12837 schema +struct<> +-- !query 12837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12838 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 12838 schema +struct<> +-- !query 12838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12839 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12839 schema +struct<> +-- !query 12839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12840 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12840 schema +struct<> +-- !query 12840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12841 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 12841 schema +struct> +-- !query 12841 output +{"1":1.0,"2":2.0} + + +-- !query 12842 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 12842 schema +struct> +-- !query 12842 output +{"1":1.0,"2":2.0} + + +-- !query 12843 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 12843 schema +struct> +-- !query 12843 output +{"1":1.0,"2":2.0} + + +-- !query 12844 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 12844 schema +struct> +-- !query 12844 output +{"1":1.0,"2":2.0} + + +-- !query 12845 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 12845 schema +struct> +-- !query 12845 output +{"1":1.0,"2":2.0} + + +-- !query 12846 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 12846 schema +struct> +-- !query 12846 output +{"1":1.0,"2":2.0} + + +-- !query 12847 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 12847 schema +struct> +-- !query 12847 output +{"1":1.0,"2":2.0} + + +-- !query 12848 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 12848 schema +struct> +-- !query 12848 output +{"1":"1.0","2":"2"} + + +-- !query 12849 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 12849 schema +struct<> +-- !query 12849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12850 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 12850 schema +struct<> +-- !query 12850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12851 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12851 schema +struct<> +-- !query 12851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12852 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12852 schema +struct<> +-- !query 12852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12853 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 12853 schema +struct> +-- !query 12853 output +{"1":1.0,"2":2.0} + + +-- !query 12854 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 12854 schema +struct> +-- !query 12854 output +{"1":1.0,"2":2.0} + + +-- !query 12855 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 12855 schema +struct> +-- !query 12855 output +{"1":1.0,"2":2.0} + + +-- !query 12856 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 12856 schema +struct> +-- !query 12856 output +{"1":1.0,"2":2.0} + + +-- !query 12857 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 12857 schema +struct> +-- !query 12857 output +{"1":1.0,"2":2.0} + + +-- !query 12858 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 12858 schema +struct> +-- !query 12858 output +{"1":1.0,"2":2.0} + + +-- !query 12859 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 12859 schema +struct> +-- !query 12859 output +{"1":1.0,"2":2.0} + + +-- !query 12860 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 12860 schema +struct> +-- !query 12860 output +{"1":"1.0","2":"2"} + + +-- !query 12861 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 12861 schema +struct<> +-- !query 12861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12862 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 12862 schema +struct<> +-- !query 12862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12863 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12863 schema +struct<> +-- !query 12863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12864 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12864 schema +struct<> +-- !query 12864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12865 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 12865 schema +struct> +-- !query 12865 output +{"1":1.0,"2.0":2.0} + + +-- !query 12866 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 12866 schema +struct> +-- !query 12866 output +{"1":1.0,"2.0":2.0} + + +-- !query 12867 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 12867 schema +struct> +-- !query 12867 output +{"1":1.0,"2.0":2.0} + + +-- !query 12868 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 12868 schema +struct> +-- !query 12868 output +{"1":1.0,"2.0":2.0} + + +-- !query 12869 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 12869 schema +struct> +-- !query 12869 output +{"1":1.0,"2.0":2.0} + + +-- !query 12870 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 12870 schema +struct> +-- !query 12870 output +{"1":1.0,"2.0":2.0} + + +-- !query 12871 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 12871 schema +struct> +-- !query 12871 output +{"1":1.0,"2.0":2.0} + + +-- !query 12872 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 12872 schema +struct> +-- !query 12872 output +{"1":"1.0","2.0":"2"} + + +-- !query 12873 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 12873 schema +struct<> +-- !query 12873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12874 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 12874 schema +struct<> +-- !query 12874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12875 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12875 schema +struct<> +-- !query 12875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12876 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12876 schema +struct<> +-- !query 12876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12877 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 12877 schema +struct> +-- !query 12877 output +{"1":1.0,"2.0":2.0} + + +-- !query 12878 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 12878 schema +struct> +-- !query 12878 output +{"1":1.0,"2.0":2.0} + + +-- !query 12879 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 12879 schema +struct> +-- !query 12879 output +{"1":1.0,"2.0":2.0} + + +-- !query 12880 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 12880 schema +struct> +-- !query 12880 output +{"1":1.0,"2.0":2.0} + + +-- !query 12881 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 12881 schema +struct> +-- !query 12881 output +{"1":1.0,"2.0":2.0} + + +-- !query 12882 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 12882 schema +struct> +-- !query 12882 output +{"1":1.0,"2.0":2.0} + + +-- !query 12883 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 12883 schema +struct> +-- !query 12883 output +{"1":1.0,"2.0":2.0} + + +-- !query 12884 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 12884 schema +struct> +-- !query 12884 output +{"1":"1.0","2.0":"2"} + + +-- !query 12885 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 12885 schema +struct<> +-- !query 12885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12886 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 12886 schema +struct<> +-- !query 12886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12887 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12887 schema +struct<> +-- !query 12887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12888 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12888 schema +struct<> +-- !query 12888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12889 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 12889 schema +struct> +-- !query 12889 output +{"1":1.0,"2":2.0} + + +-- !query 12890 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 12890 schema +struct> +-- !query 12890 output +{"1":1.0,"2":2.0} + + +-- !query 12891 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 12891 schema +struct> +-- !query 12891 output +{"1":1.0,"2":2.0} + + +-- !query 12892 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 12892 schema +struct> +-- !query 12892 output +{"1":1.0,"2":2.0} + + +-- !query 12893 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 12893 schema +struct> +-- !query 12893 output +{"1":1.0,"2":2.0} + + +-- !query 12894 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 12894 schema +struct> +-- !query 12894 output +{"1":1.0,"2":2.0} + + +-- !query 12895 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 12895 schema +struct> +-- !query 12895 output +{"1":1.0,"2":2.0} + + +-- !query 12896 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 12896 schema +struct> +-- !query 12896 output +{"1":"1.0","2":"2"} + + +-- !query 12897 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 12897 schema +struct<> +-- !query 12897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12898 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 12898 schema +struct<> +-- !query 12898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12899 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12899 schema +struct<> +-- !query 12899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12900 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12900 schema +struct<> +-- !query 12900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12901 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 12901 schema +struct> +-- !query 12901 output +{"1":1.0,"2":2.0} + + +-- !query 12902 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 12902 schema +struct> +-- !query 12902 output +{"1":1.0,"2":2.0} + + +-- !query 12903 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 12903 schema +struct> +-- !query 12903 output +{"1":1.0,"2":2.0} + + +-- !query 12904 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 12904 schema +struct> +-- !query 12904 output +{"1":1.0,"2":2.0} + + +-- !query 12905 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 12905 schema +struct> +-- !query 12905 output +{"1":1.0,"2":2.0} + + +-- !query 12906 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 12906 schema +struct> +-- !query 12906 output +{"1":1.0,"2":2.0} + + +-- !query 12907 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 12907 schema +struct> +-- !query 12907 output +{"1":1.0,"2":2.0} + + +-- !query 12908 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 12908 schema +struct> +-- !query 12908 output +{"1":"1.0","2":"2"} + + +-- !query 12909 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 12909 schema +struct<> +-- !query 12909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12910 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 12910 schema +struct<> +-- !query 12910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12911 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12911 schema +struct<> +-- !query 12911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12912 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12912 schema +struct<> +-- !query 12912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12913 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 12913 schema +struct<> +-- !query 12913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12914 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 12914 schema +struct<> +-- !query 12914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12915 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 12915 schema +struct<> +-- !query 12915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12916 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 12916 schema +struct<> +-- !query 12916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12917 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 12917 schema +struct<> +-- !query 12917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12918 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 12918 schema +struct<> +-- !query 12918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12919 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 12919 schema +struct<> +-- !query 12919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12920 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 12920 schema +struct<> +-- !query 12920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12921 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 12921 schema +struct<> +-- !query 12921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12922 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 12922 schema +struct<> +-- !query 12922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12923 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12923 schema +struct<> +-- !query 12923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12924 +SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12924 schema +struct<> +-- !query 12924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 12925 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 12925 schema +struct<> +-- !query 12925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12926 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 12926 schema +struct<> +-- !query 12926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12927 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 12927 schema +struct<> +-- !query 12927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12928 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 12928 schema +struct<> +-- !query 12928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12929 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 12929 schema +struct<> +-- !query 12929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12930 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 12930 schema +struct<> +-- !query 12930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12931 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 12931 schema +struct<> +-- !query 12931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12932 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 12932 schema +struct<> +-- !query 12932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12933 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 12933 schema +struct<> +-- !query 12933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12934 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 12934 schema +struct<> +-- !query 12934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12935 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12935 schema +struct<> +-- !query 12935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12936 +SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12936 schema +struct<> +-- !query 12936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 12937 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 12937 schema +struct> +-- !query 12937 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12938 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 12938 schema +struct> +-- !query 12938 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12939 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 12939 schema +struct> +-- !query 12939 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12940 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 12940 schema +struct> +-- !query 12940 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12941 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 12941 schema +struct> +-- !query 12941 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12942 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 12942 schema +struct> +-- !query 12942 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12943 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 12943 schema +struct> +-- !query 12943 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 12944 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 12944 schema +struct> +-- !query 12944 output +{"1":"1.0","2017-12-12 09:30:00":"2"} + + +-- !query 12945 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 12945 schema +struct<> +-- !query 12945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12946 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 12946 schema +struct<> +-- !query 12946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12947 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12947 schema +struct<> +-- !query 12947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12948 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12948 schema +struct<> +-- !query 12948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12949 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 12949 schema +struct> +-- !query 12949 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12950 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 12950 schema +struct> +-- !query 12950 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12951 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 12951 schema +struct> +-- !query 12951 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12952 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 12952 schema +struct> +-- !query 12952 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12953 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 12953 schema +struct> +-- !query 12953 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12954 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 12954 schema +struct> +-- !query 12954 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12955 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 12955 schema +struct> +-- !query 12955 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 12956 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 12956 schema +struct> +-- !query 12956 output +{"1":"1.0","2017-12-12":"2"} + + +-- !query 12957 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 12957 schema +struct<> +-- !query 12957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 12958 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 12958 schema +struct<> +-- !query 12958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 12959 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12959 schema +struct<> +-- !query 12959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 12960 +SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12960 schema +struct<> +-- !query 12960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 12961 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 12961 schema +struct> +-- !query 12961 output +{"1":1.0,"2":2.0} + + +-- !query 12962 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 12962 schema +struct> +-- !query 12962 output +{"1":1.0,"2":2.0} + + +-- !query 12963 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 12963 schema +struct> +-- !query 12963 output +{"1":1.0,"2":2.0} + + +-- !query 12964 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 12964 schema +struct> +-- !query 12964 output +{"1":1.0,"2":2.0} + + +-- !query 12965 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 12965 schema +struct> +-- !query 12965 output +{"1":1.0,"2":2.0} + + +-- !query 12966 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 12966 schema +struct> +-- !query 12966 output +{"1":1.0,"2":2.0} + + +-- !query 12967 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 12967 schema +struct> +-- !query 12967 output +{"1":1.0,"2":2.0} + + +-- !query 12968 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 12968 schema +struct> +-- !query 12968 output +{"1":"1.0","2":"2"} + + +-- !query 12969 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 12969 schema +struct<> +-- !query 12969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 12970 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 12970 schema +struct<> +-- !query 12970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 12971 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12971 schema +struct<> +-- !query 12971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 12972 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12972 schema +struct<> +-- !query 12972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 12973 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 12973 schema +struct> +-- !query 12973 output +{"1":1.0,"2":2.0} + + +-- !query 12974 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 12974 schema +struct> +-- !query 12974 output +{"1":1.0,"2":2.0} + + +-- !query 12975 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 12975 schema +struct> +-- !query 12975 output +{"1":1.0,"2":2.0} + + +-- !query 12976 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 12976 schema +struct> +-- !query 12976 output +{"1":1.0,"2":2.0} + + +-- !query 12977 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 12977 schema +struct> +-- !query 12977 output +{"1":1.0,"2":2.0} + + +-- !query 12978 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 12978 schema +struct> +-- !query 12978 output +{"1":1.0,"2":2.0} + + +-- !query 12979 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 12979 schema +struct> +-- !query 12979 output +{"1":1.0,"2":2.0} + + +-- !query 12980 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 12980 schema +struct> +-- !query 12980 output +{"1":"1.0","2":"2"} + + +-- !query 12981 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 12981 schema +struct<> +-- !query 12981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 12982 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 12982 schema +struct<> +-- !query 12982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 12983 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12983 schema +struct<> +-- !query 12983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 12984 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12984 schema +struct<> +-- !query 12984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 12985 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 12985 schema +struct> +-- !query 12985 output +{"1":1.0,"2":2.0} + + +-- !query 12986 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 12986 schema +struct> +-- !query 12986 output +{"1":1.0,"2":2.0} + + +-- !query 12987 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 12987 schema +struct> +-- !query 12987 output +{"1":1.0,"2":2.0} + + +-- !query 12988 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 12988 schema +struct> +-- !query 12988 output +{"1":1.0,"2":2.0} + + +-- !query 12989 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 12989 schema +struct> +-- !query 12989 output +{"1":1.0,"2":2.0} + + +-- !query 12990 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 12990 schema +struct> +-- !query 12990 output +{"1":1.0,"2":2.0} + + +-- !query 12991 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 12991 schema +struct> +-- !query 12991 output +{"1":1.0,"2":2.0} + + +-- !query 12992 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 12992 schema +struct> +-- !query 12992 output +{"1":"1.0","2":"2"} + + +-- !query 12993 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 12993 schema +struct<> +-- !query 12993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 12994 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 12994 schema +struct<> +-- !query 12994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 12995 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 12995 schema +struct<> +-- !query 12995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 12996 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 12996 schema +struct<> +-- !query 12996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 12997 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 12997 schema +struct> +-- !query 12997 output +{"1":1.0,"2":2.0} + + +-- !query 12998 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 12998 schema +struct> +-- !query 12998 output +{"1":1.0,"2":2.0} + + +-- !query 12999 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 12999 schema +struct> +-- !query 12999 output +{"1":1.0,"2":2.0} + + +-- !query 13000 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 13000 schema +struct> +-- !query 13000 output +{"1":1.0,"2":2.0} + + +-- !query 13001 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 13001 schema +struct> +-- !query 13001 output +{"1":1.0,"2":2.0} + + +-- !query 13002 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 13002 schema +struct> +-- !query 13002 output +{"1":1.0,"2":2.0} + + +-- !query 13003 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 13003 schema +struct> +-- !query 13003 output +{"1":1.0,"2":2.0} + + +-- !query 13004 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 13004 schema +struct> +-- !query 13004 output +{"1":"1.0","2":"2"} + + +-- !query 13005 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 13005 schema +struct<> +-- !query 13005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 13006 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 13006 schema +struct<> +-- !query 13006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 13007 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13007 schema +struct<> +-- !query 13007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 13008 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13008 schema +struct<> +-- !query 13008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 13009 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 13009 schema +struct> +-- !query 13009 output +{"1":1.0,"2.0":2.0} + + +-- !query 13010 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 13010 schema +struct> +-- !query 13010 output +{"1":1.0,"2.0":2.0} + + +-- !query 13011 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 13011 schema +struct> +-- !query 13011 output +{"1":1.0,"2.0":2.0} + + +-- !query 13012 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 13012 schema +struct> +-- !query 13012 output +{"1":1.0,"2.0":2.0} + + +-- !query 13013 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 13013 schema +struct> +-- !query 13013 output +{"1":1.0,"2.0":2.0} + + +-- !query 13014 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 13014 schema +struct> +-- !query 13014 output +{"1":1.0,"2.0":2.0} + + +-- !query 13015 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 13015 schema +struct> +-- !query 13015 output +{"1":1.0,"2.0":2.0} + + +-- !query 13016 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 13016 schema +struct> +-- !query 13016 output +{"1":"1.0","2.0":"2"} + + +-- !query 13017 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 13017 schema +struct<> +-- !query 13017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 13018 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 13018 schema +struct<> +-- !query 13018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 13019 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13019 schema +struct<> +-- !query 13019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 13020 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13020 schema +struct<> +-- !query 13020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 13021 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 13021 schema +struct> +-- !query 13021 output +{"1":1.0,"2.0":2.0} + + +-- !query 13022 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 13022 schema +struct> +-- !query 13022 output +{"1":1.0,"2.0":2.0} + + +-- !query 13023 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 13023 schema +struct> +-- !query 13023 output +{"1":1.0,"2.0":2.0} + + +-- !query 13024 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 13024 schema +struct> +-- !query 13024 output +{"1":1.0,"2.0":2.0} + + +-- !query 13025 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 13025 schema +struct> +-- !query 13025 output +{"1":1.0,"2.0":2.0} + + +-- !query 13026 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 13026 schema +struct> +-- !query 13026 output +{"1":1.0,"2.0":2.0} + + +-- !query 13027 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 13027 schema +struct> +-- !query 13027 output +{"1":1.0,"2.0":2.0} + + +-- !query 13028 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 13028 schema +struct> +-- !query 13028 output +{"1":"1.0","2.0":"2"} + + +-- !query 13029 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 13029 schema +struct<> +-- !query 13029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 13030 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 13030 schema +struct<> +-- !query 13030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 13031 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13031 schema +struct<> +-- !query 13031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 13032 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13032 schema +struct<> +-- !query 13032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 13033 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 13033 schema +struct> +-- !query 13033 output +{"1":1.0,"2":2.0} + + +-- !query 13034 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 13034 schema +struct> +-- !query 13034 output +{"1":1.0,"2":2.0} + + +-- !query 13035 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 13035 schema +struct> +-- !query 13035 output +{"1":1.0,"2":2.0} + + +-- !query 13036 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 13036 schema +struct> +-- !query 13036 output +{"1":1.0,"2":2.0} + + +-- !query 13037 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 13037 schema +struct> +-- !query 13037 output +{"1":1.0,"2":2.0} + + +-- !query 13038 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 13038 schema +struct> +-- !query 13038 output +{"1":1.0,"2":2.0} + + +-- !query 13039 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 13039 schema +struct> +-- !query 13039 output +{"1":1.0,"2":2.0} + + +-- !query 13040 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 13040 schema +struct> +-- !query 13040 output +{"1":"1.0","2":"2"} + + +-- !query 13041 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 13041 schema +struct<> +-- !query 13041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 13042 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 13042 schema +struct<> +-- !query 13042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 13043 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13043 schema +struct<> +-- !query 13043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 13044 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13044 schema +struct<> +-- !query 13044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 13045 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 13045 schema +struct> +-- !query 13045 output +{"1":1.0,"2":2.0} + + +-- !query 13046 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 13046 schema +struct> +-- !query 13046 output +{"1":1.0,"2":2.0} + + +-- !query 13047 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 13047 schema +struct> +-- !query 13047 output +{"1":1.0,"2":2.0} + + +-- !query 13048 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 13048 schema +struct> +-- !query 13048 output +{"1":1.0,"2":2.0} + + +-- !query 13049 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 13049 schema +struct> +-- !query 13049 output +{"1":1.0,"2":2.0} + + +-- !query 13050 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 13050 schema +struct> +-- !query 13050 output +{"1":1.0,"2":2.0} + + +-- !query 13051 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 13051 schema +struct> +-- !query 13051 output +{"1":1.0,"2":2.0} + + +-- !query 13052 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 13052 schema +struct> +-- !query 13052 output +{"1":"1.0","2":"2"} + + +-- !query 13053 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 13053 schema +struct<> +-- !query 13053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 13054 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 13054 schema +struct<> +-- !query 13054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 13055 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13055 schema +struct<> +-- !query 13055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 13056 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13056 schema +struct<> +-- !query 13056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 13057 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 13057 schema +struct<> +-- !query 13057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13058 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 13058 schema +struct<> +-- !query 13058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13059 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 13059 schema +struct<> +-- !query 13059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13060 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 13060 schema +struct<> +-- !query 13060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13061 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 13061 schema +struct<> +-- !query 13061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13062 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 13062 schema +struct<> +-- !query 13062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13063 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 13063 schema +struct<> +-- !query 13063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13064 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 13064 schema +struct<> +-- !query 13064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13065 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 13065 schema +struct<> +-- !query 13065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13066 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 13066 schema +struct<> +-- !query 13066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13067 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13067 schema +struct<> +-- !query 13067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13068 +SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13068 schema +struct<> +-- !query 13068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13069 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 13069 schema +struct<> +-- !query 13069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13070 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 13070 schema +struct<> +-- !query 13070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13071 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 13071 schema +struct<> +-- !query 13071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13072 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 13072 schema +struct<> +-- !query 13072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13073 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 13073 schema +struct<> +-- !query 13073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13074 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 13074 schema +struct<> +-- !query 13074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13075 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 13075 schema +struct<> +-- !query 13075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13076 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 13076 schema +struct<> +-- !query 13076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13077 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 13077 schema +struct<> +-- !query 13077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13078 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 13078 schema +struct<> +-- !query 13078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13079 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13079 schema +struct<> +-- !query 13079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13080 +SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13080 schema +struct<> +-- !query 13080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13081 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 13081 schema +struct> +-- !query 13081 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13082 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 13082 schema +struct> +-- !query 13082 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13083 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 13083 schema +struct> +-- !query 13083 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13084 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 13084 schema +struct> +-- !query 13084 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13085 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 13085 schema +struct> +-- !query 13085 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13086 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 13086 schema +struct> +-- !query 13086 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13087 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 13087 schema +struct> +-- !query 13087 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13088 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 13088 schema +struct> +-- !query 13088 output +{"1":"1.0","2017-12-12 09:30:00":"2"} + + +-- !query 13089 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 13089 schema +struct<> +-- !query 13089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 13090 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 13090 schema +struct<> +-- !query 13090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 13091 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13091 schema +struct<> +-- !query 13091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 13092 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13092 schema +struct<> +-- !query 13092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 13093 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 13093 schema +struct> +-- !query 13093 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13094 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 13094 schema +struct> +-- !query 13094 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13095 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 13095 schema +struct> +-- !query 13095 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13096 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 13096 schema +struct> +-- !query 13096 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13097 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 13097 schema +struct> +-- !query 13097 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13098 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 13098 schema +struct> +-- !query 13098 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13099 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 13099 schema +struct> +-- !query 13099 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13100 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 13100 schema +struct> +-- !query 13100 output +{"1":"1.0","2017-12-12":"2"} + + +-- !query 13101 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 13101 schema +struct<> +-- !query 13101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 13102 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 13102 schema +struct<> +-- !query 13102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 13103 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13103 schema +struct<> +-- !query 13103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 13104 +SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13104 schema +struct<> +-- !query 13104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 13105 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 13105 schema +struct> +-- !query 13105 output +{"1":1,"2":2} + + +-- !query 13106 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 13106 schema +struct> +-- !query 13106 output +{"1":1,"2":2} + + +-- !query 13107 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 13107 schema +struct> +-- !query 13107 output +{"1":1,"2":2} + + +-- !query 13108 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 13108 schema +struct> +-- !query 13108 output +{"1":1,"2":2} + + +-- !query 13109 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 13109 schema +struct> +-- !query 13109 output +{"1":1.0,"2":2.0} + + +-- !query 13110 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 13110 schema +struct> +-- !query 13110 output +{"1":1.0,"2":2.0} + + +-- !query 13111 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 13111 schema +struct> +-- !query 13111 output +{"1":1,"2":2} + + +-- !query 13112 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 13112 schema +struct> +-- !query 13112 output +{"1":"1","2":"2"} + + +-- !query 13113 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 13113 schema +struct<> +-- !query 13113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13114 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 13114 schema +struct<> +-- !query 13114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13115 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13115 schema +struct<> +-- !query 13115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13116 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13116 schema +struct<> +-- !query 13116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13117 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 13117 schema +struct> +-- !query 13117 output +{"1":1,"2":2} + + +-- !query 13118 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 13118 schema +struct> +-- !query 13118 output +{"1":1,"2":2} + + +-- !query 13119 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 13119 schema +struct> +-- !query 13119 output +{"1":1,"2":2} + + +-- !query 13120 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 13120 schema +struct> +-- !query 13120 output +{"1":1,"2":2} + + +-- !query 13121 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 13121 schema +struct> +-- !query 13121 output +{"1":1.0,"2":2.0} + + +-- !query 13122 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 13122 schema +struct> +-- !query 13122 output +{"1":1.0,"2":2.0} + + +-- !query 13123 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 13123 schema +struct> +-- !query 13123 output +{"1":1,"2":2} + + +-- !query 13124 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 13124 schema +struct> +-- !query 13124 output +{"1":"1","2":"2"} + + +-- !query 13125 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 13125 schema +struct<> +-- !query 13125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13126 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 13126 schema +struct<> +-- !query 13126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13127 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13127 schema +struct<> +-- !query 13127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13128 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13128 schema +struct<> +-- !query 13128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13129 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 13129 schema +struct> +-- !query 13129 output +{"1":1,"2":2} + + +-- !query 13130 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 13130 schema +struct> +-- !query 13130 output +{"1":1,"2":2} + + +-- !query 13131 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 13131 schema +struct> +-- !query 13131 output +{"1":1,"2":2} + + +-- !query 13132 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 13132 schema +struct> +-- !query 13132 output +{"1":1,"2":2} + + +-- !query 13133 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 13133 schema +struct> +-- !query 13133 output +{"1":1.0,"2":2.0} + + +-- !query 13134 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 13134 schema +struct> +-- !query 13134 output +{"1":1.0,"2":2.0} + + +-- !query 13135 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 13135 schema +struct> +-- !query 13135 output +{"1":1,"2":2} + + +-- !query 13136 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 13136 schema +struct> +-- !query 13136 output +{"1":"1","2":"2"} + + +-- !query 13137 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 13137 schema +struct<> +-- !query 13137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13138 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 13138 schema +struct<> +-- !query 13138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13139 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13139 schema +struct<> +-- !query 13139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13140 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13140 schema +struct<> +-- !query 13140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13141 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 13141 schema +struct> +-- !query 13141 output +{"1":1,"2":2} + + +-- !query 13142 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 13142 schema +struct> +-- !query 13142 output +{"1":1,"2":2} + + +-- !query 13143 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 13143 schema +struct> +-- !query 13143 output +{"1":1,"2":2} + + +-- !query 13144 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 13144 schema +struct> +-- !query 13144 output +{"1":1,"2":2} + + +-- !query 13145 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 13145 schema +struct> +-- !query 13145 output +{"1":1.0,"2":2.0} + + +-- !query 13146 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 13146 schema +struct> +-- !query 13146 output +{"1":1.0,"2":2.0} + + +-- !query 13147 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 13147 schema +struct> +-- !query 13147 output +{"1":1,"2":2} + + +-- !query 13148 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 13148 schema +struct> +-- !query 13148 output +{"1":"1","2":"2"} + + +-- !query 13149 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 13149 schema +struct<> +-- !query 13149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13150 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 13150 schema +struct<> +-- !query 13150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13151 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13151 schema +struct<> +-- !query 13151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13152 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13152 schema +struct<> +-- !query 13152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13153 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 13153 schema +struct> +-- !query 13153 output +{"1":1,"2.0":2} + + +-- !query 13154 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 13154 schema +struct> +-- !query 13154 output +{"1":1,"2.0":2} + + +-- !query 13155 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 13155 schema +struct> +-- !query 13155 output +{"1":1,"2.0":2} + + +-- !query 13156 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 13156 schema +struct> +-- !query 13156 output +{"1":1,"2.0":2} + + +-- !query 13157 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 13157 schema +struct> +-- !query 13157 output +{"1":1.0,"2.0":2.0} + + +-- !query 13158 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 13158 schema +struct> +-- !query 13158 output +{"1":1.0,"2.0":2.0} + + +-- !query 13159 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 13159 schema +struct> +-- !query 13159 output +{"1":1,"2.0":2} + + +-- !query 13160 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 13160 schema +struct> +-- !query 13160 output +{"1":"1","2.0":"2"} + + +-- !query 13161 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 13161 schema +struct<> +-- !query 13161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13162 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 13162 schema +struct<> +-- !query 13162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13163 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13163 schema +struct<> +-- !query 13163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13164 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13164 schema +struct<> +-- !query 13164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13165 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 13165 schema +struct> +-- !query 13165 output +{"1":1,"2.0":2} + + +-- !query 13166 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 13166 schema +struct> +-- !query 13166 output +{"1":1,"2.0":2} + + +-- !query 13167 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 13167 schema +struct> +-- !query 13167 output +{"1":1,"2.0":2} + + +-- !query 13168 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 13168 schema +struct> +-- !query 13168 output +{"1":1,"2.0":2} + + +-- !query 13169 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 13169 schema +struct> +-- !query 13169 output +{"1":1.0,"2.0":2.0} + + +-- !query 13170 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 13170 schema +struct> +-- !query 13170 output +{"1":1.0,"2.0":2.0} + + +-- !query 13171 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 13171 schema +struct> +-- !query 13171 output +{"1":1,"2.0":2} + + +-- !query 13172 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 13172 schema +struct> +-- !query 13172 output +{"1":"1","2.0":"2"} + + +-- !query 13173 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 13173 schema +struct<> +-- !query 13173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13174 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 13174 schema +struct<> +-- !query 13174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13175 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13175 schema +struct<> +-- !query 13175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13176 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13176 schema +struct<> +-- !query 13176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13177 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 13177 schema +struct> +-- !query 13177 output +{"1":1,"2":2} + + +-- !query 13178 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 13178 schema +struct> +-- !query 13178 output +{"1":1,"2":2} + + +-- !query 13179 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 13179 schema +struct> +-- !query 13179 output +{"1":1,"2":2} + + +-- !query 13180 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 13180 schema +struct> +-- !query 13180 output +{"1":1,"2":2} + + +-- !query 13181 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 13181 schema +struct> +-- !query 13181 output +{"1":1.0,"2":2.0} + + +-- !query 13182 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 13182 schema +struct> +-- !query 13182 output +{"1":1.0,"2":2.0} + + +-- !query 13183 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 13183 schema +struct> +-- !query 13183 output +{"1":1,"2":2} + + +-- !query 13184 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 13184 schema +struct> +-- !query 13184 output +{"1":"1","2":"2"} + + +-- !query 13185 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 13185 schema +struct<> +-- !query 13185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13186 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 13186 schema +struct<> +-- !query 13186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13187 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13187 schema +struct<> +-- !query 13187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13188 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13188 schema +struct<> +-- !query 13188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13189 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 13189 schema +struct> +-- !query 13189 output +{"1":1,"2":2} + + +-- !query 13190 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 13190 schema +struct> +-- !query 13190 output +{"1":1,"2":2} + + +-- !query 13191 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 13191 schema +struct> +-- !query 13191 output +{"1":1,"2":2} + + +-- !query 13192 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 13192 schema +struct> +-- !query 13192 output +{"1":1,"2":2} + + +-- !query 13193 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 13193 schema +struct> +-- !query 13193 output +{"1":1.0,"2":2.0} + + +-- !query 13194 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 13194 schema +struct> +-- !query 13194 output +{"1":1.0,"2":2.0} + + +-- !query 13195 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 13195 schema +struct> +-- !query 13195 output +{"1":1,"2":2} + + +-- !query 13196 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 13196 schema +struct> +-- !query 13196 output +{"1":"1","2":"2"} + + +-- !query 13197 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 13197 schema +struct<> +-- !query 13197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13198 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 13198 schema +struct<> +-- !query 13198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13199 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13199 schema +struct<> +-- !query 13199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13200 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13200 schema +struct<> +-- !query 13200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13201 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 13201 schema +struct<> +-- !query 13201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13202 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 13202 schema +struct<> +-- !query 13202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13203 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 13203 schema +struct<> +-- !query 13203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13204 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 13204 schema +struct<> +-- !query 13204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13205 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 13205 schema +struct<> +-- !query 13205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13206 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 13206 schema +struct<> +-- !query 13206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13207 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 13207 schema +struct<> +-- !query 13207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13208 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 13208 schema +struct<> +-- !query 13208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13209 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 13209 schema +struct<> +-- !query 13209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13210 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 13210 schema +struct<> +-- !query 13210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13211 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13211 schema +struct<> +-- !query 13211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13212 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13212 schema +struct<> +-- !query 13212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13213 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 13213 schema +struct<> +-- !query 13213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13214 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 13214 schema +struct<> +-- !query 13214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13215 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 13215 schema +struct<> +-- !query 13215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13216 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 13216 schema +struct<> +-- !query 13216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13217 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 13217 schema +struct<> +-- !query 13217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13218 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 13218 schema +struct<> +-- !query 13218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13219 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 13219 schema +struct<> +-- !query 13219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13220 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 13220 schema +struct<> +-- !query 13220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13221 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 13221 schema +struct<> +-- !query 13221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13222 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 13222 schema +struct<> +-- !query 13222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13223 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13223 schema +struct<> +-- !query 13223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13224 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13224 schema +struct<> +-- !query 13224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13225 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 13225 schema +struct> +-- !query 13225 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 13226 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 13226 schema +struct> +-- !query 13226 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 13227 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 13227 schema +struct> +-- !query 13227 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 13228 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 13228 schema +struct> +-- !query 13228 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 13229 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 13229 schema +struct> +-- !query 13229 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13230 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 13230 schema +struct> +-- !query 13230 output +{"1":1.0,"2017-12-12 09:30:00":2.0} + + +-- !query 13231 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 13231 schema +struct> +-- !query 13231 output +{"1":1,"2017-12-12 09:30:00":2} + + +-- !query 13232 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 13232 schema +struct> +-- !query 13232 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 13233 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 13233 schema +struct<> +-- !query 13233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13234 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 13234 schema +struct<> +-- !query 13234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13235 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13235 schema +struct<> +-- !query 13235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13236 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13236 schema +struct<> +-- !query 13236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13237 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 13237 schema +struct> +-- !query 13237 output +{"1":1,"2017-12-12":2} + + +-- !query 13238 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 13238 schema +struct> +-- !query 13238 output +{"1":1,"2017-12-12":2} + + +-- !query 13239 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 13239 schema +struct> +-- !query 13239 output +{"1":1,"2017-12-12":2} + + +-- !query 13240 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 13240 schema +struct> +-- !query 13240 output +{"1":1,"2017-12-12":2} + + +-- !query 13241 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 13241 schema +struct> +-- !query 13241 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13242 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 13242 schema +struct> +-- !query 13242 output +{"1":1.0,"2017-12-12":2.0} + + +-- !query 13243 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 13243 schema +struct> +-- !query 13243 output +{"1":1,"2017-12-12":2} + + +-- !query 13244 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 13244 schema +struct> +-- !query 13244 output +{"1":"1","2017-12-12":"2"} + + +-- !query 13245 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 13245 schema +struct<> +-- !query 13245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 13246 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 13246 schema +struct<> +-- !query 13246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 13247 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13247 schema +struct<> +-- !query 13247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 13248 +SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13248 schema +struct<> +-- !query 13248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 13249 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 13249 schema +struct> +-- !query 13249 output +{"1":"1","2":"2"} + + +-- !query 13250 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 13250 schema +struct> +-- !query 13250 output +{"1":"1","2":"2"} + + +-- !query 13251 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 13251 schema +struct> +-- !query 13251 output +{"1":"1","2":"2"} + + +-- !query 13252 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 13252 schema +struct> +-- !query 13252 output +{"1":"1","2":"2"} + + +-- !query 13253 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 13253 schema +struct> +-- !query 13253 output +{"1":"1","2":"2.0"} + + +-- !query 13254 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 13254 schema +struct> +-- !query 13254 output +{"1":"1","2":"2.0"} + + +-- !query 13255 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 13255 schema +struct> +-- !query 13255 output +{"1":"1","2":"2"} + + +-- !query 13256 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 13256 schema +struct> +-- !query 13256 output +{"1":"1","2":"2"} + + +-- !query 13257 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 13257 schema +struct<> +-- !query 13257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13258 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 13258 schema +struct<> +-- !query 13258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13259 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13259 schema +struct> +-- !query 13259 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 13260 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13260 schema +struct> +-- !query 13260 output +{"1":"1","2":"2017-12-12"} + + +-- !query 13261 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 13261 schema +struct> +-- !query 13261 output +{"1":"1","2":"2"} + + +-- !query 13262 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 13262 schema +struct> +-- !query 13262 output +{"1":"1","2":"2"} + + +-- !query 13263 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 13263 schema +struct> +-- !query 13263 output +{"1":"1","2":"2"} + + +-- !query 13264 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 13264 schema +struct> +-- !query 13264 output +{"1":"1","2":"2"} + + +-- !query 13265 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 13265 schema +struct> +-- !query 13265 output +{"1":"1","2":"2.0"} + + +-- !query 13266 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 13266 schema +struct> +-- !query 13266 output +{"1":"1","2":"2.0"} + + +-- !query 13267 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 13267 schema +struct> +-- !query 13267 output +{"1":"1","2":"2"} + + +-- !query 13268 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 13268 schema +struct> +-- !query 13268 output +{"1":"1","2":"2"} + + +-- !query 13269 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 13269 schema +struct<> +-- !query 13269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13270 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 13270 schema +struct<> +-- !query 13270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13271 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13271 schema +struct> +-- !query 13271 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 13272 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13272 schema +struct> +-- !query 13272 output +{"1":"1","2":"2017-12-12"} + + +-- !query 13273 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 13273 schema +struct> +-- !query 13273 output +{"1":"1","2":"2"} + + +-- !query 13274 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 13274 schema +struct> +-- !query 13274 output +{"1":"1","2":"2"} + + +-- !query 13275 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 13275 schema +struct> +-- !query 13275 output +{"1":"1","2":"2"} + + +-- !query 13276 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 13276 schema +struct> +-- !query 13276 output +{"1":"1","2":"2"} + + +-- !query 13277 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 13277 schema +struct> +-- !query 13277 output +{"1":"1","2":"2.0"} + + +-- !query 13278 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 13278 schema +struct> +-- !query 13278 output +{"1":"1","2":"2.0"} + + +-- !query 13279 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 13279 schema +struct> +-- !query 13279 output +{"1":"1","2":"2"} + + +-- !query 13280 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 13280 schema +struct> +-- !query 13280 output +{"1":"1","2":"2"} + + +-- !query 13281 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 13281 schema +struct<> +-- !query 13281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13282 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 13282 schema +struct<> +-- !query 13282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13283 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13283 schema +struct> +-- !query 13283 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 13284 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13284 schema +struct> +-- !query 13284 output +{"1":"1","2":"2017-12-12"} + + +-- !query 13285 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 13285 schema +struct> +-- !query 13285 output +{"1":"1","2":"2"} + + +-- !query 13286 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 13286 schema +struct> +-- !query 13286 output +{"1":"1","2":"2"} + + +-- !query 13287 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 13287 schema +struct> +-- !query 13287 output +{"1":"1","2":"2"} + + +-- !query 13288 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 13288 schema +struct> +-- !query 13288 output +{"1":"1","2":"2"} + + +-- !query 13289 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 13289 schema +struct> +-- !query 13289 output +{"1":"1","2":"2.0"} + + +-- !query 13290 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 13290 schema +struct> +-- !query 13290 output +{"1":"1","2":"2.0"} + + +-- !query 13291 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 13291 schema +struct> +-- !query 13291 output +{"1":"1","2":"2"} + + +-- !query 13292 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 13292 schema +struct> +-- !query 13292 output +{"1":"1","2":"2"} + + +-- !query 13293 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 13293 schema +struct<> +-- !query 13293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13294 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 13294 schema +struct<> +-- !query 13294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13295 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13295 schema +struct> +-- !query 13295 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 13296 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13296 schema +struct> +-- !query 13296 output +{"1":"1","2":"2017-12-12"} + + +-- !query 13297 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 13297 schema +struct> +-- !query 13297 output +{"1":"1","2.0":"2"} + + +-- !query 13298 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 13298 schema +struct> +-- !query 13298 output +{"1":"1","2.0":"2"} + + +-- !query 13299 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 13299 schema +struct> +-- !query 13299 output +{"1":"1","2.0":"2"} + + +-- !query 13300 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 13300 schema +struct> +-- !query 13300 output +{"1":"1","2.0":"2"} + + +-- !query 13301 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 13301 schema +struct> +-- !query 13301 output +{"1":"1","2.0":"2.0"} + + +-- !query 13302 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 13302 schema +struct> +-- !query 13302 output +{"1":"1","2.0":"2.0"} + + +-- !query 13303 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 13303 schema +struct> +-- !query 13303 output +{"1":"1","2.0":"2"} + + +-- !query 13304 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 13304 schema +struct> +-- !query 13304 output +{"1":"1","2.0":"2"} + + +-- !query 13305 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 13305 schema +struct<> +-- !query 13305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13306 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 13306 schema +struct<> +-- !query 13306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13307 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13307 schema +struct> +-- !query 13307 output +{"1":"1","2.0":"2017-12-12 09:30:00"} + + +-- !query 13308 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13308 schema +struct> +-- !query 13308 output +{"1":"1","2.0":"2017-12-12"} + + +-- !query 13309 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 13309 schema +struct> +-- !query 13309 output +{"1":"1","2.0":"2"} + + +-- !query 13310 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 13310 schema +struct> +-- !query 13310 output +{"1":"1","2.0":"2"} + + +-- !query 13311 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 13311 schema +struct> +-- !query 13311 output +{"1":"1","2.0":"2"} + + +-- !query 13312 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 13312 schema +struct> +-- !query 13312 output +{"1":"1","2.0":"2"} + + +-- !query 13313 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 13313 schema +struct> +-- !query 13313 output +{"1":"1","2.0":"2.0"} + + +-- !query 13314 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 13314 schema +struct> +-- !query 13314 output +{"1":"1","2.0":"2.0"} + + +-- !query 13315 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 13315 schema +struct> +-- !query 13315 output +{"1":"1","2.0":"2"} + + +-- !query 13316 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 13316 schema +struct> +-- !query 13316 output +{"1":"1","2.0":"2"} + + +-- !query 13317 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 13317 schema +struct<> +-- !query 13317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13318 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 13318 schema +struct<> +-- !query 13318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13319 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13319 schema +struct> +-- !query 13319 output +{"1":"1","2.0":"2017-12-12 09:30:00"} + + +-- !query 13320 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13320 schema +struct> +-- !query 13320 output +{"1":"1","2.0":"2017-12-12"} + + +-- !query 13321 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 13321 schema +struct> +-- !query 13321 output +{"1":"1","2":"2"} + + +-- !query 13322 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 13322 schema +struct> +-- !query 13322 output +{"1":"1","2":"2"} + + +-- !query 13323 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 13323 schema +struct> +-- !query 13323 output +{"1":"1","2":"2"} + + +-- !query 13324 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 13324 schema +struct> +-- !query 13324 output +{"1":"1","2":"2"} + + +-- !query 13325 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 13325 schema +struct> +-- !query 13325 output +{"1":"1","2":"2.0"} + + +-- !query 13326 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 13326 schema +struct> +-- !query 13326 output +{"1":"1","2":"2.0"} + + +-- !query 13327 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 13327 schema +struct> +-- !query 13327 output +{"1":"1","2":"2"} + + +-- !query 13328 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 13328 schema +struct> +-- !query 13328 output +{"1":"1","2":"2"} + + +-- !query 13329 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 13329 schema +struct<> +-- !query 13329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13330 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 13330 schema +struct<> +-- !query 13330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13331 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13331 schema +struct> +-- !query 13331 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 13332 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13332 schema +struct> +-- !query 13332 output +{"1":"1","2":"2017-12-12"} + + +-- !query 13333 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 13333 schema +struct> +-- !query 13333 output +{"1":"1","2":"2"} + + +-- !query 13334 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 13334 schema +struct> +-- !query 13334 output +{"1":"1","2":"2"} + + +-- !query 13335 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 13335 schema +struct> +-- !query 13335 output +{"1":"1","2":"2"} + + +-- !query 13336 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 13336 schema +struct> +-- !query 13336 output +{"1":"1","2":"2"} + + +-- !query 13337 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 13337 schema +struct> +-- !query 13337 output +{"1":"1","2":"2.0"} + + +-- !query 13338 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 13338 schema +struct> +-- !query 13338 output +{"1":"1","2":"2.0"} + + +-- !query 13339 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 13339 schema +struct> +-- !query 13339 output +{"1":"1","2":"2"} + + +-- !query 13340 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 13340 schema +struct> +-- !query 13340 output +{"1":"1","2":"2"} + + +-- !query 13341 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 13341 schema +struct<> +-- !query 13341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13342 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 13342 schema +struct<> +-- !query 13342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13343 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13343 schema +struct> +-- !query 13343 output +{"1":"1","2":"2017-12-12 09:30:00"} + + +-- !query 13344 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13344 schema +struct> +-- !query 13344 output +{"1":"1","2":"2017-12-12"} + + +-- !query 13345 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 13345 schema +struct<> +-- !query 13345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13346 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 13346 schema +struct<> +-- !query 13346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13347 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 13347 schema +struct<> +-- !query 13347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13348 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 13348 schema +struct<> +-- !query 13348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13349 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 13349 schema +struct<> +-- !query 13349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13350 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 13350 schema +struct<> +-- !query 13350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13351 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 13351 schema +struct<> +-- !query 13351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13352 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 13352 schema +struct<> +-- !query 13352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13353 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 13353 schema +struct<> +-- !query 13353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13354 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 13354 schema +struct<> +-- !query 13354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13355 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13355 schema +struct<> +-- !query 13355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13356 +SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13356 schema +struct<> +-- !query 13356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13357 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 13357 schema +struct<> +-- !query 13357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13358 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 13358 schema +struct<> +-- !query 13358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13359 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 13359 schema +struct<> +-- !query 13359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13360 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 13360 schema +struct<> +-- !query 13360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13361 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 13361 schema +struct<> +-- !query 13361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13362 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 13362 schema +struct<> +-- !query 13362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13363 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 13363 schema +struct<> +-- !query 13363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13364 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 13364 schema +struct<> +-- !query 13364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13365 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 13365 schema +struct<> +-- !query 13365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13366 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 13366 schema +struct<> +-- !query 13366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13367 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13367 schema +struct<> +-- !query 13367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13368 +SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13368 schema +struct<> +-- !query 13368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13369 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 13369 schema +struct> +-- !query 13369 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 13370 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 13370 schema +struct> +-- !query 13370 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 13371 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 13371 schema +struct> +-- !query 13371 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 13372 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 13372 schema +struct> +-- !query 13372 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 13373 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 13373 schema +struct> +-- !query 13373 output +{"1":"1","2017-12-12 09:30:00":"2.0"} + + +-- !query 13374 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 13374 schema +struct> +-- !query 13374 output +{"1":"1","2017-12-12 09:30:00":"2.0"} + + +-- !query 13375 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 13375 schema +struct> +-- !query 13375 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 13376 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 13376 schema +struct> +-- !query 13376 output +{"1":"1","2017-12-12 09:30:00":"2"} + + +-- !query 13377 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 13377 schema +struct<> +-- !query 13377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13378 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 13378 schema +struct<> +-- !query 13378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13379 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13379 schema +struct> +-- !query 13379 output +{"1":"1","2017-12-12 09:30:00":"2017-12-12 09:30:00"} + + +-- !query 13380 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13380 schema +struct> +-- !query 13380 output +{"1":"1","2017-12-12 09:30:00":"2017-12-12"} + + +-- !query 13381 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 13381 schema +struct> +-- !query 13381 output +{"1":"1","2017-12-12":"2"} + + +-- !query 13382 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 13382 schema +struct> +-- !query 13382 output +{"1":"1","2017-12-12":"2"} + + +-- !query 13383 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 13383 schema +struct> +-- !query 13383 output +{"1":"1","2017-12-12":"2"} + + +-- !query 13384 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 13384 schema +struct> +-- !query 13384 output +{"1":"1","2017-12-12":"2"} + + +-- !query 13385 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 13385 schema +struct> +-- !query 13385 output +{"1":"1","2017-12-12":"2.0"} + + +-- !query 13386 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 13386 schema +struct> +-- !query 13386 output +{"1":"1","2017-12-12":"2.0"} + + +-- !query 13387 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 13387 schema +struct> +-- !query 13387 output +{"1":"1","2017-12-12":"2"} + + +-- !query 13388 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 13388 schema +struct> +-- !query 13388 output +{"1":"1","2017-12-12":"2"} + + +-- !query 13389 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 13389 schema +struct<> +-- !query 13389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13390 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 13390 schema +struct<> +-- !query 13390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13391 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13391 schema +struct> +-- !query 13391 output +{"1":"1","2017-12-12":"2017-12-12 09:30:00"} + + +-- !query 13392 +SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13392 schema +struct> +-- !query 13392 output +{"1":"1","2017-12-12":"2017-12-12"} + + +-- !query 13393 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 13393 schema +struct<> +-- !query 13393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13394 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 13394 schema +struct<> +-- !query 13394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13395 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 13395 schema +struct<> +-- !query 13395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13396 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 13396 schema +struct<> +-- !query 13396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13397 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 13397 schema +struct<> +-- !query 13397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13398 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 13398 schema +struct<> +-- !query 13398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13399 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 13399 schema +struct<> +-- !query 13399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13400 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 13400 schema +struct<> +-- !query 13400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13401 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 13401 schema +struct> +-- !query 13401 output +{"1":[B@38c114a2,"2":[B@7c3fe383} + + +-- !query 13402 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 13402 schema +struct<> +-- !query 13402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13403 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13403 schema +struct<> +-- !query 13403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13404 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13404 schema +struct<> +-- !query 13404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13405 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 13405 schema +struct<> +-- !query 13405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13406 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 13406 schema +struct<> +-- !query 13406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13407 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 13407 schema +struct<> +-- !query 13407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13408 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 13408 schema +struct<> +-- !query 13408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13409 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 13409 schema +struct<> +-- !query 13409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13410 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 13410 schema +struct<> +-- !query 13410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13411 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 13411 schema +struct<> +-- !query 13411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13412 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 13412 schema +struct<> +-- !query 13412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13413 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 13413 schema +struct> +-- !query 13413 output +{"1":[B@67161b9b,"2":[B@1d1ae392} + + +-- !query 13414 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 13414 schema +struct<> +-- !query 13414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13415 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13415 schema +struct<> +-- !query 13415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13416 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13416 schema +struct<> +-- !query 13416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13417 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 13417 schema +struct<> +-- !query 13417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13418 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 13418 schema +struct<> +-- !query 13418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13419 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 13419 schema +struct<> +-- !query 13419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13420 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 13420 schema +struct<> +-- !query 13420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13421 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 13421 schema +struct<> +-- !query 13421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13422 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 13422 schema +struct<> +-- !query 13422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13423 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 13423 schema +struct<> +-- !query 13423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13424 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 13424 schema +struct<> +-- !query 13424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13425 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 13425 schema +struct> +-- !query 13425 output +{"1":[B@55ce8493,"2":[B@50abd3b3} + + +-- !query 13426 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 13426 schema +struct<> +-- !query 13426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13427 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13427 schema +struct<> +-- !query 13427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13428 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13428 schema +struct<> +-- !query 13428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13429 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 13429 schema +struct<> +-- !query 13429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13430 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 13430 schema +struct<> +-- !query 13430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13431 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 13431 schema +struct<> +-- !query 13431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13432 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 13432 schema +struct<> +-- !query 13432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13433 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 13433 schema +struct<> +-- !query 13433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13434 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 13434 schema +struct<> +-- !query 13434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13435 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 13435 schema +struct<> +-- !query 13435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13436 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 13436 schema +struct<> +-- !query 13436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13437 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 13437 schema +struct> +-- !query 13437 output +{"1":[B@788b22a0,"2":[B@5e403012} + + +-- !query 13438 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 13438 schema +struct<> +-- !query 13438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13439 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13439 schema +struct<> +-- !query 13439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13440 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13440 schema +struct<> +-- !query 13440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13441 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 13441 schema +struct<> +-- !query 13441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13442 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 13442 schema +struct<> +-- !query 13442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13443 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 13443 schema +struct<> +-- !query 13443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13444 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 13444 schema +struct<> +-- !query 13444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13445 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 13445 schema +struct<> +-- !query 13445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13446 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 13446 schema +struct<> +-- !query 13446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13447 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 13447 schema +struct<> +-- !query 13447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13448 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 13448 schema +struct<> +-- !query 13448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13449 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 13449 schema +struct> +-- !query 13449 output +{"1":[B@1900b1c4,"2.0":[B@6ab33c8a} + + +-- !query 13450 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 13450 schema +struct<> +-- !query 13450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13451 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13451 schema +struct<> +-- !query 13451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13452 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13452 schema +struct<> +-- !query 13452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13453 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 13453 schema +struct<> +-- !query 13453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13454 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 13454 schema +struct<> +-- !query 13454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13455 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 13455 schema +struct<> +-- !query 13455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13456 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 13456 schema +struct<> +-- !query 13456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13457 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 13457 schema +struct<> +-- !query 13457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13458 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 13458 schema +struct<> +-- !query 13458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13459 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 13459 schema +struct<> +-- !query 13459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13460 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 13460 schema +struct<> +-- !query 13460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13461 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 13461 schema +struct> +-- !query 13461 output +{"1":[B@42c1a5bd,"2.0":[B@7ee34e87} + + +-- !query 13462 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 13462 schema +struct<> +-- !query 13462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13463 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13463 schema +struct<> +-- !query 13463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13464 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13464 schema +struct<> +-- !query 13464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13465 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 13465 schema +struct<> +-- !query 13465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13466 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 13466 schema +struct<> +-- !query 13466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13467 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 13467 schema +struct<> +-- !query 13467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13468 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 13468 schema +struct<> +-- !query 13468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13469 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 13469 schema +struct<> +-- !query 13469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13470 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 13470 schema +struct<> +-- !query 13470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13471 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 13471 schema +struct<> +-- !query 13471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13472 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 13472 schema +struct<> +-- !query 13472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13473 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 13473 schema +struct> +-- !query 13473 output +{"1":[B@487ef1,"2":[B@6718b7de} + + +-- !query 13474 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 13474 schema +struct<> +-- !query 13474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13475 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13475 schema +struct<> +-- !query 13475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13476 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13476 schema +struct<> +-- !query 13476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13477 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 13477 schema +struct<> +-- !query 13477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13478 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 13478 schema +struct<> +-- !query 13478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13479 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 13479 schema +struct<> +-- !query 13479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13480 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 13480 schema +struct<> +-- !query 13480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13481 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 13481 schema +struct<> +-- !query 13481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13482 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 13482 schema +struct<> +-- !query 13482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13483 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 13483 schema +struct<> +-- !query 13483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13484 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 13484 schema +struct<> +-- !query 13484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13485 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 13485 schema +struct> +-- !query 13485 output +{"1":[B@5222c72a,"2":[B@384e9539} + + +-- !query 13486 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 13486 schema +struct<> +-- !query 13486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13487 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13487 schema +struct<> +-- !query 13487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13488 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13488 schema +struct<> +-- !query 13488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13489 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 13489 schema +struct<> +-- !query 13489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13490 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 13490 schema +struct<> +-- !query 13490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13491 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 13491 schema +struct<> +-- !query 13491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13492 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 13492 schema +struct<> +-- !query 13492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13493 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 13493 schema +struct<> +-- !query 13493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13494 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 13494 schema +struct<> +-- !query 13494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13495 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 13495 schema +struct<> +-- !query 13495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13496 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 13496 schema +struct<> +-- !query 13496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13497 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 13497 schema +struct<> +-- !query 13497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13498 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 13498 schema +struct<> +-- !query 13498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13499 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13499 schema +struct<> +-- !query 13499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13500 +SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13500 schema +struct<> +-- !query 13500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13501 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 13501 schema +struct<> +-- !query 13501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13502 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 13502 schema +struct<> +-- !query 13502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13503 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 13503 schema +struct<> +-- !query 13503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13504 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 13504 schema +struct<> +-- !query 13504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13505 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 13505 schema +struct<> +-- !query 13505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13506 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 13506 schema +struct<> +-- !query 13506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13507 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 13507 schema +struct<> +-- !query 13507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13508 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 13508 schema +struct<> +-- !query 13508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13509 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 13509 schema +struct<> +-- !query 13509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13510 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 13510 schema +struct<> +-- !query 13510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13511 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13511 schema +struct<> +-- !query 13511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13512 +SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13512 schema +struct<> +-- !query 13512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13513 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 13513 schema +struct<> +-- !query 13513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13514 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 13514 schema +struct<> +-- !query 13514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13515 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 13515 schema +struct<> +-- !query 13515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13516 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 13516 schema +struct<> +-- !query 13516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13517 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 13517 schema +struct<> +-- !query 13517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13518 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 13518 schema +struct<> +-- !query 13518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13519 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 13519 schema +struct<> +-- !query 13519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13520 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 13520 schema +struct<> +-- !query 13520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13521 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 13521 schema +struct> +-- !query 13521 output +{"1":[B@76fec34,"2017-12-12 09:30:00":[B@74bda16c} + + +-- !query 13522 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 13522 schema +struct<> +-- !query 13522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13523 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13523 schema +struct<> +-- !query 13523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13524 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13524 schema +struct<> +-- !query 13524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13525 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 13525 schema +struct<> +-- !query 13525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13526 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 13526 schema +struct<> +-- !query 13526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13527 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 13527 schema +struct<> +-- !query 13527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13528 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 13528 schema +struct<> +-- !query 13528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 13529 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 13529 schema +struct<> +-- !query 13529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 13530 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 13530 schema +struct<> +-- !query 13530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 13531 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 13531 schema +struct<> +-- !query 13531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 13532 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 13532 schema +struct<> +-- !query 13532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 13533 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 13533 schema +struct> +-- !query 13533 output +{"1":[B@5b75e9a6,"2017-12-12":[B@89bdcb8} + + +-- !query 13534 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 13534 schema +struct<> +-- !query 13534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 13535 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13535 schema +struct<> +-- !query 13535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 13536 +SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13536 schema +struct<> +-- !query 13536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 13537 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 13537 schema +struct<> +-- !query 13537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13538 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 13538 schema +struct<> +-- !query 13538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13539 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 13539 schema +struct<> +-- !query 13539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13540 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 13540 schema +struct<> +-- !query 13540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13541 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 13541 schema +struct<> +-- !query 13541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13542 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 13542 schema +struct<> +-- !query 13542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13543 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 13543 schema +struct<> +-- !query 13543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13544 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 13544 schema +struct<> +-- !query 13544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13545 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 13545 schema +struct<> +-- !query 13545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13546 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 13546 schema +struct> +-- !query 13546 output +{"1":true,"2":true} + + +-- !query 13547 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13547 schema +struct<> +-- !query 13547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13548 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13548 schema +struct<> +-- !query 13548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13549 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 13549 schema +struct<> +-- !query 13549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13550 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 13550 schema +struct<> +-- !query 13550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13551 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 13551 schema +struct<> +-- !query 13551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13552 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 13552 schema +struct<> +-- !query 13552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13553 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 13553 schema +struct<> +-- !query 13553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13554 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 13554 schema +struct<> +-- !query 13554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13555 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 13555 schema +struct<> +-- !query 13555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13556 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 13556 schema +struct<> +-- !query 13556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13557 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 13557 schema +struct<> +-- !query 13557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13558 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 13558 schema +struct> +-- !query 13558 output +{"1":true,"2":true} + + +-- !query 13559 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13559 schema +struct<> +-- !query 13559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13560 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13560 schema +struct<> +-- !query 13560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13561 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 13561 schema +struct<> +-- !query 13561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13562 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 13562 schema +struct<> +-- !query 13562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13563 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 13563 schema +struct<> +-- !query 13563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13564 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 13564 schema +struct<> +-- !query 13564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13565 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 13565 schema +struct<> +-- !query 13565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13566 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 13566 schema +struct<> +-- !query 13566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13567 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 13567 schema +struct<> +-- !query 13567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13568 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 13568 schema +struct<> +-- !query 13568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13569 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 13569 schema +struct<> +-- !query 13569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13570 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 13570 schema +struct> +-- !query 13570 output +{"1":true,"2":true} + + +-- !query 13571 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13571 schema +struct<> +-- !query 13571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13572 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13572 schema +struct<> +-- !query 13572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13573 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 13573 schema +struct<> +-- !query 13573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13574 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 13574 schema +struct<> +-- !query 13574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13575 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 13575 schema +struct<> +-- !query 13575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13576 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 13576 schema +struct<> +-- !query 13576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13577 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 13577 schema +struct<> +-- !query 13577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13578 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 13578 schema +struct<> +-- !query 13578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13579 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 13579 schema +struct<> +-- !query 13579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13580 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 13580 schema +struct<> +-- !query 13580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13581 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 13581 schema +struct<> +-- !query 13581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13582 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 13582 schema +struct> +-- !query 13582 output +{"1":true,"2":true} + + +-- !query 13583 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13583 schema +struct<> +-- !query 13583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13584 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13584 schema +struct<> +-- !query 13584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13585 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 13585 schema +struct<> +-- !query 13585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13586 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 13586 schema +struct<> +-- !query 13586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13587 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 13587 schema +struct<> +-- !query 13587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13588 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 13588 schema +struct<> +-- !query 13588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13589 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 13589 schema +struct<> +-- !query 13589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13590 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 13590 schema +struct<> +-- !query 13590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13591 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 13591 schema +struct<> +-- !query 13591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13592 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 13592 schema +struct<> +-- !query 13592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13593 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 13593 schema +struct<> +-- !query 13593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13594 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 13594 schema +struct> +-- !query 13594 output +{"1":true,"2.0":true} + + +-- !query 13595 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13595 schema +struct<> +-- !query 13595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13596 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13596 schema +struct<> +-- !query 13596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13597 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 13597 schema +struct<> +-- !query 13597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13598 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 13598 schema +struct<> +-- !query 13598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13599 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 13599 schema +struct<> +-- !query 13599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13600 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 13600 schema +struct<> +-- !query 13600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13601 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 13601 schema +struct<> +-- !query 13601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13602 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 13602 schema +struct<> +-- !query 13602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13603 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 13603 schema +struct<> +-- !query 13603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13604 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 13604 schema +struct<> +-- !query 13604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13605 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 13605 schema +struct<> +-- !query 13605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13606 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 13606 schema +struct> +-- !query 13606 output +{"1":true,"2.0":true} + + +-- !query 13607 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13607 schema +struct<> +-- !query 13607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13608 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13608 schema +struct<> +-- !query 13608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13609 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 13609 schema +struct<> +-- !query 13609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13610 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 13610 schema +struct<> +-- !query 13610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13611 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 13611 schema +struct<> +-- !query 13611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13612 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 13612 schema +struct<> +-- !query 13612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13613 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 13613 schema +struct<> +-- !query 13613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13614 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 13614 schema +struct<> +-- !query 13614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13615 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 13615 schema +struct<> +-- !query 13615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13616 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 13616 schema +struct<> +-- !query 13616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13617 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 13617 schema +struct<> +-- !query 13617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13618 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 13618 schema +struct> +-- !query 13618 output +{"1":true,"2":true} + + +-- !query 13619 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13619 schema +struct<> +-- !query 13619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13620 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13620 schema +struct<> +-- !query 13620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13621 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 13621 schema +struct<> +-- !query 13621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13622 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 13622 schema +struct<> +-- !query 13622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13623 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 13623 schema +struct<> +-- !query 13623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13624 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 13624 schema +struct<> +-- !query 13624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13625 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 13625 schema +struct<> +-- !query 13625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13626 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 13626 schema +struct<> +-- !query 13626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13627 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 13627 schema +struct<> +-- !query 13627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13628 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 13628 schema +struct<> +-- !query 13628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13629 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 13629 schema +struct<> +-- !query 13629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13630 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 13630 schema +struct> +-- !query 13630 output +{"1":true,"2":true} + + +-- !query 13631 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13631 schema +struct<> +-- !query 13631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13632 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13632 schema +struct<> +-- !query 13632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13633 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 13633 schema +struct<> +-- !query 13633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13634 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 13634 schema +struct<> +-- !query 13634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13635 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 13635 schema +struct<> +-- !query 13635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13636 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 13636 schema +struct<> +-- !query 13636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13637 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 13637 schema +struct<> +-- !query 13637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13638 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 13638 schema +struct<> +-- !query 13638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13639 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 13639 schema +struct<> +-- !query 13639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13640 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 13640 schema +struct<> +-- !query 13640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13641 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 13641 schema +struct<> +-- !query 13641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13642 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 13642 schema +struct<> +-- !query 13642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13643 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13643 schema +struct<> +-- !query 13643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13644 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13644 schema +struct<> +-- !query 13644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13645 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 13645 schema +struct<> +-- !query 13645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13646 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 13646 schema +struct<> +-- !query 13646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13647 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 13647 schema +struct<> +-- !query 13647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13648 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 13648 schema +struct<> +-- !query 13648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13649 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 13649 schema +struct<> +-- !query 13649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13650 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 13650 schema +struct<> +-- !query 13650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13651 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 13651 schema +struct<> +-- !query 13651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13652 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 13652 schema +struct<> +-- !query 13652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13653 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 13653 schema +struct<> +-- !query 13653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13654 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 13654 schema +struct<> +-- !query 13654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13655 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13655 schema +struct<> +-- !query 13655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13656 +SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13656 schema +struct<> +-- !query 13656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13657 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 13657 schema +struct<> +-- !query 13657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13658 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 13658 schema +struct<> +-- !query 13658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13659 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 13659 schema +struct<> +-- !query 13659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13660 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 13660 schema +struct<> +-- !query 13660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13661 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 13661 schema +struct<> +-- !query 13661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13662 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 13662 schema +struct<> +-- !query 13662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13663 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 13663 schema +struct<> +-- !query 13663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13664 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 13664 schema +struct<> +-- !query 13664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13665 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 13665 schema +struct<> +-- !query 13665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13666 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 13666 schema +struct> +-- !query 13666 output +{"1":true,"2017-12-12 09:30:00":true} + + +-- !query 13667 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13667 schema +struct<> +-- !query 13667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13668 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13668 schema +struct<> +-- !query 13668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13669 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 13669 schema +struct<> +-- !query 13669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 13670 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 13670 schema +struct<> +-- !query 13670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 13671 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 13671 schema +struct<> +-- !query 13671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 13672 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 13672 schema +struct<> +-- !query 13672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 13673 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 13673 schema +struct<> +-- !query 13673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 13674 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 13674 schema +struct<> +-- !query 13674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 13675 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 13675 schema +struct<> +-- !query 13675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 13676 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 13676 schema +struct<> +-- !query 13676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 13677 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 13677 schema +struct<> +-- !query 13677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 13678 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 13678 schema +struct> +-- !query 13678 output +{"1":true,"2017-12-12":true} + + +-- !query 13679 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13679 schema +struct<> +-- !query 13679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 13680 +SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13680 schema +struct<> +-- !query 13680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 13681 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 13681 schema +struct<> +-- !query 13681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13682 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 13682 schema +struct<> +-- !query 13682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13683 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 13683 schema +struct<> +-- !query 13683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13684 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 13684 schema +struct<> +-- !query 13684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13685 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 13685 schema +struct<> +-- !query 13685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13686 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 13686 schema +struct<> +-- !query 13686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13687 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 13687 schema +struct<> +-- !query 13687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13688 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 13688 schema +struct> +-- !query 13688 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 13689 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 13689 schema +struct<> +-- !query 13689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13690 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 13690 schema +struct<> +-- !query 13690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13691 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13691 schema +struct> +-- !query 13691 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13692 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13692 schema +struct> +-- !query 13692 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 13693 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 13693 schema +struct<> +-- !query 13693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13694 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 13694 schema +struct<> +-- !query 13694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13695 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 13695 schema +struct<> +-- !query 13695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13696 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 13696 schema +struct<> +-- !query 13696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13697 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 13697 schema +struct<> +-- !query 13697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13698 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 13698 schema +struct<> +-- !query 13698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13699 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 13699 schema +struct<> +-- !query 13699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13700 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 13700 schema +struct> +-- !query 13700 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 13701 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 13701 schema +struct<> +-- !query 13701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13702 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 13702 schema +struct<> +-- !query 13702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13703 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13703 schema +struct> +-- !query 13703 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13704 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13704 schema +struct> +-- !query 13704 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 13705 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 13705 schema +struct<> +-- !query 13705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13706 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 13706 schema +struct<> +-- !query 13706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13707 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 13707 schema +struct<> +-- !query 13707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13708 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 13708 schema +struct<> +-- !query 13708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13709 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 13709 schema +struct<> +-- !query 13709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13710 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 13710 schema +struct<> +-- !query 13710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13711 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 13711 schema +struct<> +-- !query 13711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13712 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 13712 schema +struct> +-- !query 13712 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 13713 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 13713 schema +struct<> +-- !query 13713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13714 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 13714 schema +struct<> +-- !query 13714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13715 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13715 schema +struct> +-- !query 13715 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13716 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13716 schema +struct> +-- !query 13716 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 13717 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 13717 schema +struct<> +-- !query 13717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13718 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 13718 schema +struct<> +-- !query 13718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13719 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 13719 schema +struct<> +-- !query 13719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13720 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 13720 schema +struct<> +-- !query 13720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13721 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 13721 schema +struct<> +-- !query 13721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13722 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 13722 schema +struct<> +-- !query 13722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13723 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 13723 schema +struct<> +-- !query 13723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13724 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 13724 schema +struct> +-- !query 13724 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 13725 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 13725 schema +struct<> +-- !query 13725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13726 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 13726 schema +struct<> +-- !query 13726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13727 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13727 schema +struct> +-- !query 13727 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13728 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13728 schema +struct> +-- !query 13728 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 13729 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 13729 schema +struct<> +-- !query 13729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13730 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 13730 schema +struct<> +-- !query 13730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13731 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 13731 schema +struct<> +-- !query 13731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13732 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 13732 schema +struct<> +-- !query 13732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13733 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 13733 schema +struct<> +-- !query 13733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13734 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 13734 schema +struct<> +-- !query 13734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13735 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 13735 schema +struct<> +-- !query 13735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13736 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 13736 schema +struct> +-- !query 13736 output +{"1":"2017-12-11 09:30:00","2.0":"2"} + + +-- !query 13737 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 13737 schema +struct<> +-- !query 13737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13738 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 13738 schema +struct<> +-- !query 13738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13739 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13739 schema +struct> +-- !query 13739 output +{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 09:30:00.0} + + +-- !query 13740 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13740 schema +struct> +-- !query 13740 output +{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 00:00:00.0} + + +-- !query 13741 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 13741 schema +struct<> +-- !query 13741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13742 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 13742 schema +struct<> +-- !query 13742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13743 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 13743 schema +struct<> +-- !query 13743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13744 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 13744 schema +struct<> +-- !query 13744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13745 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 13745 schema +struct<> +-- !query 13745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13746 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 13746 schema +struct<> +-- !query 13746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13747 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 13747 schema +struct<> +-- !query 13747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13748 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 13748 schema +struct> +-- !query 13748 output +{"1":"2017-12-11 09:30:00","2.0":"2"} + + +-- !query 13749 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 13749 schema +struct<> +-- !query 13749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13750 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 13750 schema +struct<> +-- !query 13750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13751 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13751 schema +struct> +-- !query 13751 output +{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 09:30:00.0} + + +-- !query 13752 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13752 schema +struct> +-- !query 13752 output +{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 00:00:00.0} + + +-- !query 13753 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 13753 schema +struct<> +-- !query 13753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13754 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 13754 schema +struct<> +-- !query 13754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13755 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 13755 schema +struct<> +-- !query 13755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13756 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 13756 schema +struct<> +-- !query 13756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13757 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 13757 schema +struct<> +-- !query 13757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13758 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 13758 schema +struct<> +-- !query 13758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13759 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 13759 schema +struct<> +-- !query 13759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13760 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 13760 schema +struct> +-- !query 13760 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 13761 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 13761 schema +struct<> +-- !query 13761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13762 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 13762 schema +struct<> +-- !query 13762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13763 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13763 schema +struct> +-- !query 13763 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13764 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13764 schema +struct> +-- !query 13764 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 13765 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 13765 schema +struct<> +-- !query 13765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13766 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 13766 schema +struct<> +-- !query 13766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13767 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 13767 schema +struct<> +-- !query 13767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13768 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 13768 schema +struct<> +-- !query 13768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13769 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 13769 schema +struct<> +-- !query 13769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13770 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 13770 schema +struct<> +-- !query 13770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13771 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 13771 schema +struct<> +-- !query 13771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13772 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 13772 schema +struct> +-- !query 13772 output +{"1":"2017-12-11 09:30:00","2":"2"} + + +-- !query 13773 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 13773 schema +struct<> +-- !query 13773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13774 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 13774 schema +struct<> +-- !query 13774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13775 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13775 schema +struct> +-- !query 13775 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13776 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13776 schema +struct> +-- !query 13776 output +{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} + + +-- !query 13777 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 13777 schema +struct<> +-- !query 13777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13778 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 13778 schema +struct<> +-- !query 13778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13779 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 13779 schema +struct<> +-- !query 13779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13780 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 13780 schema +struct<> +-- !query 13780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13781 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 13781 schema +struct<> +-- !query 13781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13782 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 13782 schema +struct<> +-- !query 13782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13783 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 13783 schema +struct<> +-- !query 13783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13784 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 13784 schema +struct<> +-- !query 13784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13785 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 13785 schema +struct<> +-- !query 13785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13786 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 13786 schema +struct<> +-- !query 13786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13787 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13787 schema +struct<> +-- !query 13787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13788 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13788 schema +struct<> +-- !query 13788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13789 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 13789 schema +struct<> +-- !query 13789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13790 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 13790 schema +struct<> +-- !query 13790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13791 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 13791 schema +struct<> +-- !query 13791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13792 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 13792 schema +struct<> +-- !query 13792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13793 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 13793 schema +struct<> +-- !query 13793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13794 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 13794 schema +struct<> +-- !query 13794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13795 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 13795 schema +struct<> +-- !query 13795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13796 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 13796 schema +struct<> +-- !query 13796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13797 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 13797 schema +struct<> +-- !query 13797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13798 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 13798 schema +struct<> +-- !query 13798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13799 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13799 schema +struct<> +-- !query 13799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13800 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13800 schema +struct<> +-- !query 13800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13801 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 13801 schema +struct<> +-- !query 13801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13802 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 13802 schema +struct<> +-- !query 13802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13803 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 13803 schema +struct<> +-- !query 13803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13804 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 13804 schema +struct<> +-- !query 13804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13805 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 13805 schema +struct<> +-- !query 13805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13806 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 13806 schema +struct<> +-- !query 13806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13807 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 13807 schema +struct<> +-- !query 13807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13808 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 13808 schema +struct> +-- !query 13808 output +{"1":"2017-12-11 09:30:00","2017-12-12 09:30:00":"2"} + + +-- !query 13809 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 13809 schema +struct<> +-- !query 13809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13810 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 13810 schema +struct<> +-- !query 13810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13811 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13811 schema +struct> +-- !query 13811 output +{"1":2017-12-11 09:30:00.0,"2017-12-12 09:30:00":2017-12-12 09:30:00.0} + + +-- !query 13812 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13812 schema +struct> +-- !query 13812 output +{"1":2017-12-11 09:30:00.0,"2017-12-12 09:30:00":2017-12-12 00:00:00.0} + + +-- !query 13813 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 13813 schema +struct<> +-- !query 13813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 13814 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 13814 schema +struct<> +-- !query 13814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 13815 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 13815 schema +struct<> +-- !query 13815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 13816 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 13816 schema +struct<> +-- !query 13816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 13817 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 13817 schema +struct<> +-- !query 13817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 13818 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 13818 schema +struct<> +-- !query 13818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 13819 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 13819 schema +struct<> +-- !query 13819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 13820 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 13820 schema +struct> +-- !query 13820 output +{"1":"2017-12-11 09:30:00","2017-12-12":"2"} + + +-- !query 13821 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 13821 schema +struct<> +-- !query 13821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 13822 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 13822 schema +struct<> +-- !query 13822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 13823 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13823 schema +struct> +-- !query 13823 output +{"1":2017-12-11 09:30:00.0,"2017-12-12":2017-12-12 09:30:00.0} + + +-- !query 13824 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13824 schema +struct> +-- !query 13824 output +{"1":2017-12-11 09:30:00.0,"2017-12-12":2017-12-12 00:00:00.0} + + +-- !query 13825 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 13825 schema +struct<> +-- !query 13825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13826 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 13826 schema +struct<> +-- !query 13826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13827 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 13827 schema +struct<> +-- !query 13827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13828 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 13828 schema +struct<> +-- !query 13828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13829 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 13829 schema +struct<> +-- !query 13829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13830 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 13830 schema +struct<> +-- !query 13830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13831 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 13831 schema +struct<> +-- !query 13831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13832 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 13832 schema +struct> +-- !query 13832 output +{"1":"2017-12-11","2":"2"} + + +-- !query 13833 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 13833 schema +struct<> +-- !query 13833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13834 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 13834 schema +struct<> +-- !query 13834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13835 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13835 schema +struct> +-- !query 13835 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13836 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13836 schema +struct> +-- !query 13836 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 13837 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 13837 schema +struct<> +-- !query 13837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13838 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 13838 schema +struct<> +-- !query 13838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13839 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 13839 schema +struct<> +-- !query 13839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13840 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 13840 schema +struct<> +-- !query 13840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13841 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 13841 schema +struct<> +-- !query 13841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13842 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 13842 schema +struct<> +-- !query 13842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13843 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 13843 schema +struct<> +-- !query 13843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13844 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 13844 schema +struct> +-- !query 13844 output +{"1":"2017-12-11","2":"2"} + + +-- !query 13845 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 13845 schema +struct<> +-- !query 13845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13846 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 13846 schema +struct<> +-- !query 13846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13847 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13847 schema +struct> +-- !query 13847 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13848 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13848 schema +struct> +-- !query 13848 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 13849 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 13849 schema +struct<> +-- !query 13849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13850 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 13850 schema +struct<> +-- !query 13850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13851 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 13851 schema +struct<> +-- !query 13851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13852 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 13852 schema +struct<> +-- !query 13852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13853 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 13853 schema +struct<> +-- !query 13853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13854 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 13854 schema +struct<> +-- !query 13854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13855 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 13855 schema +struct<> +-- !query 13855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13856 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 13856 schema +struct> +-- !query 13856 output +{"1":"2017-12-11","2":"2"} + + +-- !query 13857 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 13857 schema +struct<> +-- !query 13857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13858 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 13858 schema +struct<> +-- !query 13858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13859 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13859 schema +struct> +-- !query 13859 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13860 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13860 schema +struct> +-- !query 13860 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 13861 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 13861 schema +struct<> +-- !query 13861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13862 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 13862 schema +struct<> +-- !query 13862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13863 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 13863 schema +struct<> +-- !query 13863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13864 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 13864 schema +struct<> +-- !query 13864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13865 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 13865 schema +struct<> +-- !query 13865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13866 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 13866 schema +struct<> +-- !query 13866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13867 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 13867 schema +struct<> +-- !query 13867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13868 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 13868 schema +struct> +-- !query 13868 output +{"1":"2017-12-11","2":"2"} + + +-- !query 13869 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 13869 schema +struct<> +-- !query 13869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13870 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 13870 schema +struct<> +-- !query 13870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13871 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13871 schema +struct> +-- !query 13871 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13872 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13872 schema +struct> +-- !query 13872 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 13873 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 13873 schema +struct<> +-- !query 13873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13874 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 13874 schema +struct<> +-- !query 13874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13875 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 13875 schema +struct<> +-- !query 13875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13876 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 13876 schema +struct<> +-- !query 13876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13877 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 13877 schema +struct<> +-- !query 13877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13878 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 13878 schema +struct<> +-- !query 13878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13879 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 13879 schema +struct<> +-- !query 13879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13880 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 13880 schema +struct> +-- !query 13880 output +{"1":"2017-12-11","2.0":"2"} + + +-- !query 13881 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 13881 schema +struct<> +-- !query 13881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13882 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 13882 schema +struct<> +-- !query 13882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13883 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13883 schema +struct> +-- !query 13883 output +{"1":2017-12-11 00:00:00.0,"2.0":2017-12-12 09:30:00.0} + + +-- !query 13884 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13884 schema +struct> +-- !query 13884 output +{"1":2017-12-11,"2.0":2017-12-12} + + +-- !query 13885 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 13885 schema +struct<> +-- !query 13885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13886 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 13886 schema +struct<> +-- !query 13886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13887 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 13887 schema +struct<> +-- !query 13887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13888 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 13888 schema +struct<> +-- !query 13888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13889 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 13889 schema +struct<> +-- !query 13889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13890 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 13890 schema +struct<> +-- !query 13890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13891 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 13891 schema +struct<> +-- !query 13891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13892 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 13892 schema +struct> +-- !query 13892 output +{"1":"2017-12-11","2.0":"2"} + + +-- !query 13893 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 13893 schema +struct<> +-- !query 13893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13894 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 13894 schema +struct<> +-- !query 13894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13895 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13895 schema +struct> +-- !query 13895 output +{"1":2017-12-11 00:00:00.0,"2.0":2017-12-12 09:30:00.0} + + +-- !query 13896 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13896 schema +struct> +-- !query 13896 output +{"1":2017-12-11,"2.0":2017-12-12} + + +-- !query 13897 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 13897 schema +struct<> +-- !query 13897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13898 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 13898 schema +struct<> +-- !query 13898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13899 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 13899 schema +struct<> +-- !query 13899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13900 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 13900 schema +struct<> +-- !query 13900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13901 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 13901 schema +struct<> +-- !query 13901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13902 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 13902 schema +struct<> +-- !query 13902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13903 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 13903 schema +struct<> +-- !query 13903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13904 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 13904 schema +struct> +-- !query 13904 output +{"1":"2017-12-11","2":"2"} + + +-- !query 13905 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 13905 schema +struct<> +-- !query 13905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13906 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 13906 schema +struct<> +-- !query 13906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13907 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13907 schema +struct> +-- !query 13907 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13908 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13908 schema +struct> +-- !query 13908 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 13909 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 13909 schema +struct<> +-- !query 13909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13910 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 13910 schema +struct<> +-- !query 13910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13911 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 13911 schema +struct<> +-- !query 13911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13912 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 13912 schema +struct<> +-- !query 13912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13913 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 13913 schema +struct<> +-- !query 13913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13914 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 13914 schema +struct<> +-- !query 13914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13915 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 13915 schema +struct<> +-- !query 13915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13916 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 13916 schema +struct> +-- !query 13916 output +{"1":"2017-12-11","2":"2"} + + +-- !query 13917 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 13917 schema +struct<> +-- !query 13917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13918 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 13918 schema +struct<> +-- !query 13918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13919 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13919 schema +struct> +-- !query 13919 output +{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} + + +-- !query 13920 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13920 schema +struct> +-- !query 13920 output +{"1":2017-12-11,"2":2017-12-12} + + +-- !query 13921 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 13921 schema +struct<> +-- !query 13921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13922 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 13922 schema +struct<> +-- !query 13922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13923 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 13923 schema +struct<> +-- !query 13923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13924 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 13924 schema +struct<> +-- !query 13924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13925 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 13925 schema +struct<> +-- !query 13925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13926 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 13926 schema +struct<> +-- !query 13926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13927 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 13927 schema +struct<> +-- !query 13927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13928 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 13928 schema +struct<> +-- !query 13928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13929 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 13929 schema +struct<> +-- !query 13929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13930 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 13930 schema +struct<> +-- !query 13930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13931 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13931 schema +struct<> +-- !query 13931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13932 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13932 schema +struct<> +-- !query 13932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 13933 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 13933 schema +struct<> +-- !query 13933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13934 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 13934 schema +struct<> +-- !query 13934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13935 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 13935 schema +struct<> +-- !query 13935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13936 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 13936 schema +struct<> +-- !query 13936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13937 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 13937 schema +struct<> +-- !query 13937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13938 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 13938 schema +struct<> +-- !query 13938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13939 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 13939 schema +struct<> +-- !query 13939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13940 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 13940 schema +struct<> +-- !query 13940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13941 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 13941 schema +struct<> +-- !query 13941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13942 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 13942 schema +struct<> +-- !query 13942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13943 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13943 schema +struct<> +-- !query 13943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13944 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13944 schema +struct<> +-- !query 13944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 13945 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 13945 schema +struct<> +-- !query 13945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13946 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 13946 schema +struct<> +-- !query 13946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13947 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 13947 schema +struct<> +-- !query 13947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13948 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 13948 schema +struct<> +-- !query 13948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13949 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 13949 schema +struct<> +-- !query 13949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13950 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 13950 schema +struct<> +-- !query 13950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13951 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 13951 schema +struct<> +-- !query 13951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13952 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 13952 schema +struct> +-- !query 13952 output +{"1":"2017-12-11","2017-12-12 09:30:00":"2"} + + +-- !query 13953 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 13953 schema +struct<> +-- !query 13953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13954 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 13954 schema +struct<> +-- !query 13954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13955 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13955 schema +struct> +-- !query 13955 output +{"1":2017-12-11 00:00:00.0,"2017-12-12 09:30:00":2017-12-12 09:30:00.0} + + +-- !query 13956 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13956 schema +struct> +-- !query 13956 output +{"1":2017-12-11,"2017-12-12 09:30:00":2017-12-12} + + +-- !query 13957 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 13957 schema +struct<> +-- !query 13957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 13958 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 13958 schema +struct<> +-- !query 13958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 13959 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 13959 schema +struct<> +-- !query 13959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 13960 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 13960 schema +struct<> +-- !query 13960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 13961 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 13961 schema +struct<> +-- !query 13961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 13962 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 13962 schema +struct<> +-- !query 13962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 13963 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 13963 schema +struct<> +-- !query 13963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 13964 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 13964 schema +struct> +-- !query 13964 output +{"1":"2017-12-11","2017-12-12":"2"} + + +-- !query 13965 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 13965 schema +struct<> +-- !query 13965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 13966 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 13966 schema +struct<> +-- !query 13966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 13967 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13967 schema +struct> +-- !query 13967 output +{"1":2017-12-11 00:00:00.0,"2017-12-12":2017-12-12 09:30:00.0} + + +-- !query 13968 +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13968 schema +struct> +-- !query 13968 output +{"1":2017-12-11,"2017-12-12":2017-12-12} + + +-- !query 13969 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 13969 schema +struct<> +-- !query 13969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13970 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 13970 schema +struct<> +-- !query 13970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13971 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 13971 schema +struct<> +-- !query 13971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13972 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 13972 schema +struct<> +-- !query 13972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13973 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 13973 schema +struct<> +-- !query 13973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13974 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 13974 schema +struct<> +-- !query 13974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13975 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 13975 schema +struct<> +-- !query 13975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13976 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 13976 schema +struct<> +-- !query 13976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13977 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 13977 schema +struct<> +-- !query 13977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13978 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 13978 schema +struct<> +-- !query 13978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13979 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13979 schema +struct<> +-- !query 13979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13980 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13980 schema +struct<> +-- !query 13980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 13981 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 13981 schema +struct<> +-- !query 13981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13982 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 13982 schema +struct<> +-- !query 13982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13983 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 13983 schema +struct<> +-- !query 13983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13984 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 13984 schema +struct<> +-- !query 13984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13985 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 13985 schema +struct<> +-- !query 13985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13986 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 13986 schema +struct<> +-- !query 13986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13987 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 13987 schema +struct<> +-- !query 13987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13988 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 13988 schema +struct<> +-- !query 13988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13989 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 13989 schema +struct<> +-- !query 13989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13990 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 13990 schema +struct<> +-- !query 13990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13991 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 13991 schema +struct<> +-- !query 13991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13992 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 13992 schema +struct<> +-- !query 13992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 13993 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 13993 schema +struct<> +-- !query 13993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13994 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 13994 schema +struct<> +-- !query 13994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13995 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 13995 schema +struct<> +-- !query 13995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13996 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 13996 schema +struct<> +-- !query 13996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13997 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 13997 schema +struct<> +-- !query 13997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13998 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 13998 schema +struct<> +-- !query 13998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 13999 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 13999 schema +struct<> +-- !query 13999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14000 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 14000 schema +struct<> +-- !query 14000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14001 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 14001 schema +struct<> +-- !query 14001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14002 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 14002 schema +struct<> +-- !query 14002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14003 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14003 schema +struct<> +-- !query 14003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14004 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14004 schema +struct<> +-- !query 14004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14005 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 14005 schema +struct<> +-- !query 14005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14006 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 14006 schema +struct<> +-- !query 14006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14007 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 14007 schema +struct<> +-- !query 14007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14008 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 14008 schema +struct<> +-- !query 14008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14009 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 14009 schema +struct<> +-- !query 14009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14010 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 14010 schema +struct<> +-- !query 14010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14011 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 14011 schema +struct<> +-- !query 14011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14012 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 14012 schema +struct<> +-- !query 14012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14013 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 14013 schema +struct<> +-- !query 14013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14014 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 14014 schema +struct<> +-- !query 14014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14015 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14015 schema +struct<> +-- !query 14015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14016 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14016 schema +struct<> +-- !query 14016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14017 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 14017 schema +struct<> +-- !query 14017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14018 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 14018 schema +struct<> +-- !query 14018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14019 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 14019 schema +struct<> +-- !query 14019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14020 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 14020 schema +struct<> +-- !query 14020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14021 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 14021 schema +struct<> +-- !query 14021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14022 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 14022 schema +struct<> +-- !query 14022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14023 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 14023 schema +struct<> +-- !query 14023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14024 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 14024 schema +struct<> +-- !query 14024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14025 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 14025 schema +struct<> +-- !query 14025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14026 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 14026 schema +struct<> +-- !query 14026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14027 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14027 schema +struct<> +-- !query 14027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14028 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14028 schema +struct<> +-- !query 14028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14029 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 14029 schema +struct<> +-- !query 14029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14030 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 14030 schema +struct<> +-- !query 14030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14031 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 14031 schema +struct<> +-- !query 14031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14032 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 14032 schema +struct<> +-- !query 14032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14033 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 14033 schema +struct<> +-- !query 14033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14034 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 14034 schema +struct<> +-- !query 14034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14035 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 14035 schema +struct<> +-- !query 14035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14036 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 14036 schema +struct<> +-- !query 14036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14037 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 14037 schema +struct<> +-- !query 14037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14038 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 14038 schema +struct<> +-- !query 14038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14039 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14039 schema +struct<> +-- !query 14039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14040 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14040 schema +struct<> +-- !query 14040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14041 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 14041 schema +struct<> +-- !query 14041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14042 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 14042 schema +struct<> +-- !query 14042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14043 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 14043 schema +struct<> +-- !query 14043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14044 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 14044 schema +struct<> +-- !query 14044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14045 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 14045 schema +struct<> +-- !query 14045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14046 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 14046 schema +struct<> +-- !query 14046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14047 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 14047 schema +struct<> +-- !query 14047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14048 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 14048 schema +struct<> +-- !query 14048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14049 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 14049 schema +struct<> +-- !query 14049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14050 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 14050 schema +struct<> +-- !query 14050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14051 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14051 schema +struct<> +-- !query 14051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14052 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14052 schema +struct<> +-- !query 14052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14053 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 14053 schema +struct<> +-- !query 14053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14054 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 14054 schema +struct<> +-- !query 14054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14055 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 14055 schema +struct<> +-- !query 14055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14056 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 14056 schema +struct<> +-- !query 14056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14057 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 14057 schema +struct<> +-- !query 14057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14058 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 14058 schema +struct<> +-- !query 14058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14059 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 14059 schema +struct<> +-- !query 14059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14060 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 14060 schema +struct<> +-- !query 14060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14061 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 14061 schema +struct<> +-- !query 14061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14062 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 14062 schema +struct<> +-- !query 14062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14063 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14063 schema +struct<> +-- !query 14063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14064 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14064 schema +struct<> +-- !query 14064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14065 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 14065 schema +struct> +-- !query 14065 output +{[B@5fb75994:2,[B@6dcc36e4:1} + + +-- !query 14066 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 14066 schema +struct> +-- !query 14066 output +{[B@3bbdbf66:1,[B@695ac83e:2} + + +-- !query 14067 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 14067 schema +struct> +-- !query 14067 output +{[B@43ba6930:2,[B@7da1bf2b:1} + + +-- !query 14068 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 14068 schema +struct> +-- !query 14068 output +{[B@10b21188:2,[B@7774a776:1} + + +-- !query 14069 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 14069 schema +struct> +-- !query 14069 output +{[B@116d8299:1.0,[B@4b2509f2:2.0} + + +-- !query 14070 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 14070 schema +struct> +-- !query 14070 output +{[B@181c1b5a:2.0,[B@3d220f0a:1.0} + + +-- !query 14071 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 14071 schema +struct> +-- !query 14071 output +{[B@28d022fc:2,[B@6a696ae:1} + + +-- !query 14072 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 14072 schema +struct> +-- !query 14072 output +{[B@36727af1:"2",[B@6d24f57a:"1"} + + +-- !query 14073 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 14073 schema +struct<> +-- !query 14073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 14074 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 14074 schema +struct<> +-- !query 14074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 14075 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14075 schema +struct<> +-- !query 14075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 14076 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14076 schema +struct<> +-- !query 14076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 14077 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 14077 schema +struct<> +-- !query 14077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14078 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 14078 schema +struct<> +-- !query 14078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14079 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 14079 schema +struct<> +-- !query 14079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14080 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 14080 schema +struct<> +-- !query 14080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14081 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 14081 schema +struct<> +-- !query 14081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14082 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 14082 schema +struct<> +-- !query 14082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14083 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 14083 schema +struct<> +-- !query 14083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14084 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 14084 schema +struct<> +-- !query 14084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14085 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 14085 schema +struct<> +-- !query 14085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14086 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 14086 schema +struct<> +-- !query 14086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14087 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14087 schema +struct<> +-- !query 14087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14088 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14088 schema +struct<> +-- !query 14088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14089 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 14089 schema +struct<> +-- !query 14089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14090 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 14090 schema +struct<> +-- !query 14090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14091 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 14091 schema +struct<> +-- !query 14091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14092 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 14092 schema +struct<> +-- !query 14092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14093 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 14093 schema +struct<> +-- !query 14093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14094 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 14094 schema +struct<> +-- !query 14094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14095 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 14095 schema +struct<> +-- !query 14095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14096 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 14096 schema +struct<> +-- !query 14096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14097 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 14097 schema +struct<> +-- !query 14097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14098 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 14098 schema +struct<> +-- !query 14098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14099 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14099 schema +struct<> +-- !query 14099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14100 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14100 schema +struct<> +-- !query 14100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14101 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 14101 schema +struct<> +-- !query 14101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14102 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 14102 schema +struct<> +-- !query 14102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14103 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 14103 schema +struct<> +-- !query 14103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14104 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 14104 schema +struct<> +-- !query 14104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14105 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 14105 schema +struct<> +-- !query 14105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14106 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 14106 schema +struct<> +-- !query 14106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14107 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 14107 schema +struct<> +-- !query 14107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14108 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 14108 schema +struct<> +-- !query 14108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14109 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 14109 schema +struct<> +-- !query 14109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14110 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 14110 schema +struct<> +-- !query 14110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14111 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14111 schema +struct<> +-- !query 14111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14112 +SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14112 schema +struct<> +-- !query 14112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14113 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 14113 schema +struct<> +-- !query 14113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14114 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 14114 schema +struct<> +-- !query 14114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14115 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 14115 schema +struct<> +-- !query 14115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14116 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 14116 schema +struct<> +-- !query 14116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14117 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 14117 schema +struct<> +-- !query 14117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14118 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 14118 schema +struct<> +-- !query 14118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14119 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 14119 schema +struct<> +-- !query 14119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14120 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 14120 schema +struct<> +-- !query 14120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14121 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 14121 schema +struct<> +-- !query 14121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14122 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 14122 schema +struct<> +-- !query 14122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14123 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14123 schema +struct<> +-- !query 14123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14124 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14124 schema +struct<> +-- !query 14124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14125 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 14125 schema +struct<> +-- !query 14125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14126 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 14126 schema +struct<> +-- !query 14126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14127 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 14127 schema +struct<> +-- !query 14127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14128 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 14128 schema +struct<> +-- !query 14128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14129 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 14129 schema +struct<> +-- !query 14129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14130 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 14130 schema +struct<> +-- !query 14130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14131 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 14131 schema +struct<> +-- !query 14131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14132 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 14132 schema +struct<> +-- !query 14132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14133 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 14133 schema +struct<> +-- !query 14133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14134 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 14134 schema +struct<> +-- !query 14134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14135 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14135 schema +struct<> +-- !query 14135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14136 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14136 schema +struct<> +-- !query 14136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14137 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 14137 schema +struct<> +-- !query 14137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14138 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 14138 schema +struct<> +-- !query 14138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14139 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 14139 schema +struct<> +-- !query 14139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14140 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 14140 schema +struct<> +-- !query 14140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14141 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 14141 schema +struct<> +-- !query 14141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14142 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 14142 schema +struct<> +-- !query 14142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14143 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 14143 schema +struct<> +-- !query 14143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14144 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 14144 schema +struct<> +-- !query 14144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14145 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 14145 schema +struct<> +-- !query 14145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14146 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 14146 schema +struct<> +-- !query 14146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14147 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14147 schema +struct<> +-- !query 14147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14148 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14148 schema +struct<> +-- !query 14148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14149 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 14149 schema +struct<> +-- !query 14149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14150 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 14150 schema +struct<> +-- !query 14150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14151 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 14151 schema +struct<> +-- !query 14151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14152 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 14152 schema +struct<> +-- !query 14152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14153 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 14153 schema +struct<> +-- !query 14153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14154 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 14154 schema +struct<> +-- !query 14154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14155 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 14155 schema +struct<> +-- !query 14155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14156 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 14156 schema +struct<> +-- !query 14156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14157 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 14157 schema +struct<> +-- !query 14157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14158 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 14158 schema +struct<> +-- !query 14158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14159 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14159 schema +struct<> +-- !query 14159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14160 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14160 schema +struct<> +-- !query 14160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14161 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 14161 schema +struct<> +-- !query 14161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14162 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 14162 schema +struct<> +-- !query 14162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14163 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 14163 schema +struct<> +-- !query 14163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14164 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 14164 schema +struct<> +-- !query 14164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14165 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 14165 schema +struct<> +-- !query 14165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14166 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 14166 schema +struct<> +-- !query 14166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14167 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 14167 schema +struct<> +-- !query 14167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14168 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 14168 schema +struct<> +-- !query 14168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14169 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 14169 schema +struct<> +-- !query 14169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14170 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 14170 schema +struct<> +-- !query 14170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14171 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14171 schema +struct<> +-- !query 14171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14172 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14172 schema +struct<> +-- !query 14172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14173 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 14173 schema +struct<> +-- !query 14173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14174 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 14174 schema +struct<> +-- !query 14174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14175 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 14175 schema +struct<> +-- !query 14175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14176 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 14176 schema +struct<> +-- !query 14176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14177 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 14177 schema +struct<> +-- !query 14177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14178 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 14178 schema +struct<> +-- !query 14178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14179 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 14179 schema +struct<> +-- !query 14179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14180 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 14180 schema +struct<> +-- !query 14180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14181 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 14181 schema +struct<> +-- !query 14181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14182 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 14182 schema +struct<> +-- !query 14182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14183 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14183 schema +struct<> +-- !query 14183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14184 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14184 schema +struct<> +-- !query 14184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14185 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 14185 schema +struct<> +-- !query 14185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14186 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 14186 schema +struct<> +-- !query 14186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14187 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 14187 schema +struct<> +-- !query 14187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14188 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 14188 schema +struct<> +-- !query 14188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14189 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 14189 schema +struct<> +-- !query 14189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14190 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 14190 schema +struct<> +-- !query 14190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14191 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 14191 schema +struct<> +-- !query 14191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14192 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 14192 schema +struct<> +-- !query 14192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14193 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 14193 schema +struct<> +-- !query 14193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14194 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 14194 schema +struct<> +-- !query 14194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14195 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14195 schema +struct<> +-- !query 14195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14196 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14196 schema +struct<> +-- !query 14196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14197 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 14197 schema +struct<> +-- !query 14197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14198 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 14198 schema +struct<> +-- !query 14198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14199 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 14199 schema +struct<> +-- !query 14199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14200 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 14200 schema +struct<> +-- !query 14200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14201 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 14201 schema +struct<> +-- !query 14201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14202 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 14202 schema +struct<> +-- !query 14202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14203 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 14203 schema +struct<> +-- !query 14203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14204 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 14204 schema +struct<> +-- !query 14204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14205 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 14205 schema +struct<> +-- !query 14205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14206 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 14206 schema +struct<> +-- !query 14206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14207 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14207 schema +struct<> +-- !query 14207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14208 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14208 schema +struct<> +-- !query 14208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14209 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 14209 schema +struct> +-- !query 14209 output +{[B@1bc54c53:1,[B@3c65f6f6:2} + + +-- !query 14210 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 14210 schema +struct> +-- !query 14210 output +{[B@105d5fee:1,[B@7a934f08:2} + + +-- !query 14211 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 14211 schema +struct> +-- !query 14211 output +{[B@21a575f8:1,[B@ded62a7:2} + + +-- !query 14212 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 14212 schema +struct> +-- !query 14212 output +{[B@56088bee:1,[B@8dca8fa:2} + + +-- !query 14213 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 14213 schema +struct> +-- !query 14213 output +{[B@1d3fda66:2.0,[B@5a8cc438:1.0} + + +-- !query 14214 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 14214 schema +struct> +-- !query 14214 output +{[B@19fe10ad:2.0,[B@203ef43b:1.0} + + +-- !query 14215 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 14215 schema +struct> +-- !query 14215 output +{[B@7ae6fb53:2,[B@7e99247e:1} + + +-- !query 14216 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 14216 schema +struct> +-- !query 14216 output +{[B@13b6da9f:"1",[B@4f24a261:"2"} + + +-- !query 14217 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 14217 schema +struct<> +-- !query 14217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 14218 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 14218 schema +struct<> +-- !query 14218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 14219 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14219 schema +struct<> +-- !query 14219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 14220 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14220 schema +struct<> +-- !query 14220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 14221 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 14221 schema +struct<> +-- !query 14221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14222 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 14222 schema +struct<> +-- !query 14222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14223 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 14223 schema +struct<> +-- !query 14223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14224 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 14224 schema +struct<> +-- !query 14224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14225 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 14225 schema +struct<> +-- !query 14225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14226 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 14226 schema +struct<> +-- !query 14226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14227 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 14227 schema +struct<> +-- !query 14227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14228 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 14228 schema +struct<> +-- !query 14228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14229 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 14229 schema +struct<> +-- !query 14229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14230 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 14230 schema +struct<> +-- !query 14230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14231 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14231 schema +struct<> +-- !query 14231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14232 +SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14232 schema +struct<> +-- !query 14232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14233 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 14233 schema +struct<> +-- !query 14233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14234 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 14234 schema +struct<> +-- !query 14234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14235 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 14235 schema +struct<> +-- !query 14235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14236 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 14236 schema +struct<> +-- !query 14236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14237 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 14237 schema +struct<> +-- !query 14237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14238 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 14238 schema +struct<> +-- !query 14238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14239 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 14239 schema +struct<> +-- !query 14239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14240 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 14240 schema +struct<> +-- !query 14240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14241 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 14241 schema +struct<> +-- !query 14241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14242 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 14242 schema +struct<> +-- !query 14242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14243 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14243 schema +struct<> +-- !query 14243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14244 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14244 schema +struct<> +-- !query 14244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14245 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 14245 schema +struct<> +-- !query 14245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14246 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 14246 schema +struct<> +-- !query 14246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14247 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 14247 schema +struct<> +-- !query 14247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14248 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 14248 schema +struct<> +-- !query 14248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14249 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 14249 schema +struct<> +-- !query 14249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14250 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 14250 schema +struct<> +-- !query 14250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14251 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 14251 schema +struct<> +-- !query 14251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14252 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 14252 schema +struct<> +-- !query 14252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14253 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 14253 schema +struct<> +-- !query 14253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14254 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 14254 schema +struct<> +-- !query 14254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14255 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14255 schema +struct<> +-- !query 14255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14256 +SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14256 schema +struct<> +-- !query 14256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14257 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 14257 schema +struct<> +-- !query 14257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14258 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 14258 schema +struct<> +-- !query 14258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14259 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 14259 schema +struct<> +-- !query 14259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14260 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 14260 schema +struct<> +-- !query 14260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14261 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 14261 schema +struct<> +-- !query 14261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14262 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 14262 schema +struct<> +-- !query 14262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14263 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 14263 schema +struct<> +-- !query 14263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14264 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 14264 schema +struct<> +-- !query 14264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14265 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 14265 schema +struct<> +-- !query 14265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14266 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 14266 schema +struct<> +-- !query 14266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14267 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14267 schema +struct<> +-- !query 14267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14268 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14268 schema +struct<> +-- !query 14268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14269 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 14269 schema +struct<> +-- !query 14269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14270 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 14270 schema +struct<> +-- !query 14270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14271 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 14271 schema +struct<> +-- !query 14271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14272 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 14272 schema +struct<> +-- !query 14272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14273 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 14273 schema +struct<> +-- !query 14273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14274 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 14274 schema +struct<> +-- !query 14274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14275 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 14275 schema +struct<> +-- !query 14275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14276 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 14276 schema +struct<> +-- !query 14276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14277 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 14277 schema +struct<> +-- !query 14277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14278 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 14278 schema +struct<> +-- !query 14278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14279 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14279 schema +struct<> +-- !query 14279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14280 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14280 schema +struct<> +-- !query 14280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14281 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 14281 schema +struct<> +-- !query 14281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14282 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 14282 schema +struct<> +-- !query 14282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14283 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 14283 schema +struct<> +-- !query 14283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14284 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 14284 schema +struct<> +-- !query 14284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14285 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 14285 schema +struct<> +-- !query 14285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14286 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 14286 schema +struct<> +-- !query 14286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14287 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 14287 schema +struct<> +-- !query 14287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14288 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 14288 schema +struct<> +-- !query 14288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14289 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 14289 schema +struct<> +-- !query 14289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14290 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 14290 schema +struct<> +-- !query 14290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14291 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14291 schema +struct<> +-- !query 14291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14292 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14292 schema +struct<> +-- !query 14292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14293 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 14293 schema +struct<> +-- !query 14293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14294 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 14294 schema +struct<> +-- !query 14294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14295 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 14295 schema +struct<> +-- !query 14295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14296 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 14296 schema +struct<> +-- !query 14296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14297 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 14297 schema +struct<> +-- !query 14297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14298 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 14298 schema +struct<> +-- !query 14298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14299 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 14299 schema +struct<> +-- !query 14299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14300 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 14300 schema +struct<> +-- !query 14300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14301 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 14301 schema +struct<> +-- !query 14301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14302 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 14302 schema +struct<> +-- !query 14302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14303 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14303 schema +struct<> +-- !query 14303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14304 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14304 schema +struct<> +-- !query 14304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14305 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 14305 schema +struct<> +-- !query 14305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14306 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 14306 schema +struct<> +-- !query 14306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14307 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 14307 schema +struct<> +-- !query 14307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14308 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 14308 schema +struct<> +-- !query 14308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14309 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 14309 schema +struct<> +-- !query 14309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14310 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 14310 schema +struct<> +-- !query 14310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14311 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 14311 schema +struct<> +-- !query 14311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14312 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 14312 schema +struct<> +-- !query 14312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14313 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 14313 schema +struct<> +-- !query 14313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14314 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 14314 schema +struct<> +-- !query 14314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14315 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14315 schema +struct<> +-- !query 14315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14316 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14316 schema +struct<> +-- !query 14316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14317 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 14317 schema +struct<> +-- !query 14317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14318 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 14318 schema +struct<> +-- !query 14318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14319 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 14319 schema +struct<> +-- !query 14319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14320 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 14320 schema +struct<> +-- !query 14320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14321 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 14321 schema +struct<> +-- !query 14321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14322 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 14322 schema +struct<> +-- !query 14322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14323 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 14323 schema +struct<> +-- !query 14323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14324 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 14324 schema +struct<> +-- !query 14324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14325 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 14325 schema +struct<> +-- !query 14325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14326 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 14326 schema +struct<> +-- !query 14326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14327 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14327 schema +struct<> +-- !query 14327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14328 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14328 schema +struct<> +-- !query 14328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14329 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 14329 schema +struct<> +-- !query 14329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14330 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 14330 schema +struct<> +-- !query 14330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14331 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 14331 schema +struct<> +-- !query 14331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14332 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 14332 schema +struct<> +-- !query 14332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14333 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 14333 schema +struct<> +-- !query 14333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14334 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 14334 schema +struct<> +-- !query 14334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14335 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 14335 schema +struct<> +-- !query 14335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14336 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 14336 schema +struct<> +-- !query 14336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14337 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 14337 schema +struct<> +-- !query 14337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14338 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 14338 schema +struct<> +-- !query 14338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14339 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14339 schema +struct<> +-- !query 14339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14340 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14340 schema +struct<> +-- !query 14340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14341 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 14341 schema +struct<> +-- !query 14341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14342 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 14342 schema +struct<> +-- !query 14342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14343 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 14343 schema +struct<> +-- !query 14343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14344 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 14344 schema +struct<> +-- !query 14344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14345 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 14345 schema +struct<> +-- !query 14345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14346 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 14346 schema +struct<> +-- !query 14346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14347 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 14347 schema +struct<> +-- !query 14347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14348 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 14348 schema +struct<> +-- !query 14348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14349 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 14349 schema +struct<> +-- !query 14349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14350 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 14350 schema +struct<> +-- !query 14350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14351 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14351 schema +struct<> +-- !query 14351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14352 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14352 schema +struct<> +-- !query 14352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14353 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 14353 schema +struct> +-- !query 14353 output +{[B@141b2c26:1,[B@5a6d138:2} + + +-- !query 14354 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 14354 schema +struct> +-- !query 14354 output +{[B@2fa02956:2,[B@6b862caa:1} + + +-- !query 14355 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 14355 schema +struct> +-- !query 14355 output +{[B@2fd6517c:1,[B@4bd89056:2} + + +-- !query 14356 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 14356 schema +struct> +-- !query 14356 output +{[B@63020bdf:2,[B@66c86b44:1} + + +-- !query 14357 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 14357 schema +struct> +-- !query 14357 output +{[B@1bad8367:1.0,[B@3a51cf61:2.0} + + +-- !query 14358 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 14358 schema +struct> +-- !query 14358 output +{[B@4da6e79e:2.0,[B@79a9407b:1.0} + + +-- !query 14359 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 14359 schema +struct> +-- !query 14359 output +{[B@696bd6fb:2,[B@6b097e40:1} + + +-- !query 14360 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 14360 schema +struct> +-- !query 14360 output +{[B@756ba9e0:"2",[B@799f0f70:"1"} + + +-- !query 14361 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 14361 schema +struct<> +-- !query 14361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 14362 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 14362 schema +struct<> +-- !query 14362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 14363 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14363 schema +struct<> +-- !query 14363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 14364 +SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14364 schema +struct<> +-- !query 14364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 14365 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 14365 schema +struct<> +-- !query 14365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14366 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 14366 schema +struct<> +-- !query 14366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14367 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 14367 schema +struct<> +-- !query 14367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14368 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 14368 schema +struct<> +-- !query 14368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14369 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 14369 schema +struct<> +-- !query 14369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14370 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 14370 schema +struct<> +-- !query 14370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14371 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 14371 schema +struct<> +-- !query 14371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14372 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 14372 schema +struct<> +-- !query 14372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14373 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 14373 schema +struct<> +-- !query 14373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14374 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 14374 schema +struct<> +-- !query 14374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14375 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14375 schema +struct<> +-- !query 14375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14376 +SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14376 schema +struct<> +-- !query 14376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14377 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 14377 schema +struct<> +-- !query 14377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14378 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 14378 schema +struct<> +-- !query 14378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14379 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 14379 schema +struct<> +-- !query 14379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14380 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 14380 schema +struct<> +-- !query 14380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14381 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 14381 schema +struct<> +-- !query 14381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14382 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 14382 schema +struct<> +-- !query 14382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14383 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 14383 schema +struct<> +-- !query 14383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14384 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 14384 schema +struct<> +-- !query 14384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14385 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 14385 schema +struct<> +-- !query 14385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14386 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 14386 schema +struct<> +-- !query 14386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14387 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14387 schema +struct<> +-- !query 14387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14388 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14388 schema +struct<> +-- !query 14388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14389 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 14389 schema +struct<> +-- !query 14389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14390 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 14390 schema +struct<> +-- !query 14390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14391 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 14391 schema +struct<> +-- !query 14391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14392 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 14392 schema +struct<> +-- !query 14392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14393 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 14393 schema +struct<> +-- !query 14393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14394 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 14394 schema +struct<> +-- !query 14394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14395 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 14395 schema +struct<> +-- !query 14395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14396 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 14396 schema +struct<> +-- !query 14396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14397 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 14397 schema +struct<> +-- !query 14397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14398 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 14398 schema +struct<> +-- !query 14398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14399 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14399 schema +struct<> +-- !query 14399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14400 +SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14400 schema +struct<> +-- !query 14400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14401 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 14401 schema +struct<> +-- !query 14401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14402 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 14402 schema +struct<> +-- !query 14402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14403 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 14403 schema +struct<> +-- !query 14403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14404 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 14404 schema +struct<> +-- !query 14404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14405 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 14405 schema +struct<> +-- !query 14405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14406 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 14406 schema +struct<> +-- !query 14406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14407 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 14407 schema +struct<> +-- !query 14407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14408 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 14408 schema +struct<> +-- !query 14408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14409 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 14409 schema +struct<> +-- !query 14409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14410 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 14410 schema +struct<> +-- !query 14410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14411 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14411 schema +struct<> +-- !query 14411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14412 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14412 schema +struct<> +-- !query 14412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14413 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 14413 schema +struct<> +-- !query 14413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14414 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 14414 schema +struct<> +-- !query 14414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14415 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 14415 schema +struct<> +-- !query 14415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14416 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 14416 schema +struct<> +-- !query 14416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14417 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 14417 schema +struct<> +-- !query 14417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14418 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 14418 schema +struct<> +-- !query 14418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14419 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 14419 schema +struct<> +-- !query 14419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14420 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 14420 schema +struct<> +-- !query 14420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14421 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 14421 schema +struct<> +-- !query 14421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14422 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 14422 schema +struct<> +-- !query 14422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14423 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14423 schema +struct<> +-- !query 14423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14424 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14424 schema +struct<> +-- !query 14424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14425 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 14425 schema +struct<> +-- !query 14425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14426 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 14426 schema +struct<> +-- !query 14426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14427 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 14427 schema +struct<> +-- !query 14427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14428 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 14428 schema +struct<> +-- !query 14428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14429 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 14429 schema +struct<> +-- !query 14429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14430 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 14430 schema +struct<> +-- !query 14430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14431 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 14431 schema +struct<> +-- !query 14431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14432 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 14432 schema +struct<> +-- !query 14432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14433 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 14433 schema +struct<> +-- !query 14433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14434 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 14434 schema +struct<> +-- !query 14434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14435 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14435 schema +struct<> +-- !query 14435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14436 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14436 schema +struct<> +-- !query 14436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14437 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 14437 schema +struct<> +-- !query 14437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14438 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 14438 schema +struct<> +-- !query 14438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14439 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 14439 schema +struct<> +-- !query 14439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14440 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 14440 schema +struct<> +-- !query 14440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14441 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 14441 schema +struct<> +-- !query 14441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14442 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 14442 schema +struct<> +-- !query 14442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14443 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 14443 schema +struct<> +-- !query 14443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14444 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 14444 schema +struct<> +-- !query 14444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14445 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 14445 schema +struct<> +-- !query 14445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14446 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 14446 schema +struct<> +-- !query 14446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14447 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14447 schema +struct<> +-- !query 14447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14448 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14448 schema +struct<> +-- !query 14448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14449 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 14449 schema +struct<> +-- !query 14449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14450 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 14450 schema +struct<> +-- !query 14450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14451 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 14451 schema +struct<> +-- !query 14451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14452 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 14452 schema +struct<> +-- !query 14452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14453 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 14453 schema +struct<> +-- !query 14453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14454 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 14454 schema +struct<> +-- !query 14454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14455 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 14455 schema +struct<> +-- !query 14455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14456 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 14456 schema +struct<> +-- !query 14456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14457 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 14457 schema +struct<> +-- !query 14457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14458 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 14458 schema +struct<> +-- !query 14458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14459 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14459 schema +struct<> +-- !query 14459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14460 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14460 schema +struct<> +-- !query 14460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14461 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 14461 schema +struct<> +-- !query 14461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14462 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 14462 schema +struct<> +-- !query 14462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14463 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 14463 schema +struct<> +-- !query 14463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14464 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 14464 schema +struct<> +-- !query 14464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14465 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 14465 schema +struct<> +-- !query 14465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14466 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 14466 schema +struct<> +-- !query 14466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14467 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 14467 schema +struct<> +-- !query 14467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14468 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 14468 schema +struct<> +-- !query 14468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14469 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 14469 schema +struct<> +-- !query 14469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14470 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 14470 schema +struct<> +-- !query 14470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14471 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14471 schema +struct<> +-- !query 14471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14472 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14472 schema +struct<> +-- !query 14472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14473 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 14473 schema +struct<> +-- !query 14473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14474 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 14474 schema +struct<> +-- !query 14474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14475 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 14475 schema +struct<> +-- !query 14475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14476 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 14476 schema +struct<> +-- !query 14476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14477 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 14477 schema +struct<> +-- !query 14477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14478 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 14478 schema +struct<> +-- !query 14478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14479 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 14479 schema +struct<> +-- !query 14479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14480 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 14480 schema +struct<> +-- !query 14480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14481 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 14481 schema +struct<> +-- !query 14481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14482 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 14482 schema +struct<> +-- !query 14482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14483 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14483 schema +struct<> +-- !query 14483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14484 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14484 schema +struct<> +-- !query 14484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14485 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 14485 schema +struct<> +-- !query 14485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14486 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 14486 schema +struct<> +-- !query 14486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14487 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 14487 schema +struct<> +-- !query 14487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14488 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 14488 schema +struct<> +-- !query 14488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14489 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 14489 schema +struct<> +-- !query 14489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14490 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 14490 schema +struct<> +-- !query 14490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14491 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 14491 schema +struct<> +-- !query 14491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14492 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 14492 schema +struct<> +-- !query 14492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14493 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 14493 schema +struct<> +-- !query 14493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14494 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 14494 schema +struct<> +-- !query 14494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14495 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14495 schema +struct<> +-- !query 14495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14496 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14496 schema +struct<> +-- !query 14496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14497 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 14497 schema +struct> +-- !query 14497 output +{[B@2578f50b:1,[B@f18700d:2} + + +-- !query 14498 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 14498 schema +struct> +-- !query 14498 output +{[B@764257f6:2,[B@7bdfe101:1} + + +-- !query 14499 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 14499 schema +struct> +-- !query 14499 output +{[B@4f4ce52d:2,[B@7705d955:1} + + +-- !query 14500 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 14500 schema +struct> +-- !query 14500 output +{[B@3f2a0bb:2,[B@48d88e74:1} + + +-- !query 14501 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 14501 schema +struct> +-- !query 14501 output +{[B@2b6514e8:2.0,[B@4698e16d:1.0} + + +-- !query 14502 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 14502 schema +struct> +-- !query 14502 output +{[B@659415a1:2.0,[B@753e1d4a:1.0} + + +-- !query 14503 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 14503 schema +struct> +-- !query 14503 output +{[B@1b0612e8:2,[B@1fe07e6e:1} + + +-- !query 14504 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 14504 schema +struct> +-- !query 14504 output +{[B@32800c3a:"2",[B@402e2b38:"1"} + + +-- !query 14505 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 14505 schema +struct<> +-- !query 14505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 14506 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 14506 schema +struct<> +-- !query 14506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 14507 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14507 schema +struct<> +-- !query 14507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 14508 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14508 schema +struct<> +-- !query 14508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 14509 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 14509 schema +struct<> +-- !query 14509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14510 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 14510 schema +struct<> +-- !query 14510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14511 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 14511 schema +struct<> +-- !query 14511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14512 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 14512 schema +struct<> +-- !query 14512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14513 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 14513 schema +struct<> +-- !query 14513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14514 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 14514 schema +struct<> +-- !query 14514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14515 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 14515 schema +struct<> +-- !query 14515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14516 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 14516 schema +struct<> +-- !query 14516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14517 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 14517 schema +struct<> +-- !query 14517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14518 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 14518 schema +struct<> +-- !query 14518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14519 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14519 schema +struct<> +-- !query 14519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14520 +SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14520 schema +struct<> +-- !query 14520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14521 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 14521 schema +struct<> +-- !query 14521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14522 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 14522 schema +struct<> +-- !query 14522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14523 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 14523 schema +struct<> +-- !query 14523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14524 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 14524 schema +struct<> +-- !query 14524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14525 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 14525 schema +struct<> +-- !query 14525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14526 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 14526 schema +struct<> +-- !query 14526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14527 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 14527 schema +struct<> +-- !query 14527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14528 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 14528 schema +struct<> +-- !query 14528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14529 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 14529 schema +struct<> +-- !query 14529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14530 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 14530 schema +struct<> +-- !query 14530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14531 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14531 schema +struct<> +-- !query 14531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14532 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14532 schema +struct<> +-- !query 14532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14533 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 14533 schema +struct<> +-- !query 14533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14534 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 14534 schema +struct<> +-- !query 14534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14535 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 14535 schema +struct<> +-- !query 14535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14536 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 14536 schema +struct<> +-- !query 14536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14537 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 14537 schema +struct<> +-- !query 14537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14538 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 14538 schema +struct<> +-- !query 14538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14539 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 14539 schema +struct<> +-- !query 14539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14540 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 14540 schema +struct<> +-- !query 14540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14541 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 14541 schema +struct<> +-- !query 14541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14542 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 14542 schema +struct<> +-- !query 14542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14543 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14543 schema +struct<> +-- !query 14543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14544 +SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14544 schema +struct<> +-- !query 14544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14545 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 14545 schema +struct<> +-- !query 14545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14546 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 14546 schema +struct<> +-- !query 14546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14547 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 14547 schema +struct<> +-- !query 14547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14548 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 14548 schema +struct<> +-- !query 14548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14549 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 14549 schema +struct<> +-- !query 14549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14550 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 14550 schema +struct<> +-- !query 14550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14551 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 14551 schema +struct<> +-- !query 14551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14552 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 14552 schema +struct<> +-- !query 14552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14553 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 14553 schema +struct<> +-- !query 14553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14554 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 14554 schema +struct<> +-- !query 14554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14555 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14555 schema +struct<> +-- !query 14555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14556 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14556 schema +struct<> +-- !query 14556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14557 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 14557 schema +struct<> +-- !query 14557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14558 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 14558 schema +struct<> +-- !query 14558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14559 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 14559 schema +struct<> +-- !query 14559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14560 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 14560 schema +struct<> +-- !query 14560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14561 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 14561 schema +struct<> +-- !query 14561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14562 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 14562 schema +struct<> +-- !query 14562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14563 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 14563 schema +struct<> +-- !query 14563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14564 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 14564 schema +struct<> +-- !query 14564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14565 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 14565 schema +struct<> +-- !query 14565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14566 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 14566 schema +struct<> +-- !query 14566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14567 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14567 schema +struct<> +-- !query 14567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14568 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14568 schema +struct<> +-- !query 14568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14569 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 14569 schema +struct<> +-- !query 14569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14570 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 14570 schema +struct<> +-- !query 14570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14571 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 14571 schema +struct<> +-- !query 14571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14572 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 14572 schema +struct<> +-- !query 14572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14573 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 14573 schema +struct<> +-- !query 14573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14574 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 14574 schema +struct<> +-- !query 14574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14575 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 14575 schema +struct<> +-- !query 14575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14576 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 14576 schema +struct<> +-- !query 14576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14577 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 14577 schema +struct<> +-- !query 14577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14578 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 14578 schema +struct<> +-- !query 14578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14579 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14579 schema +struct<> +-- !query 14579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14580 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14580 schema +struct<> +-- !query 14580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14581 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 14581 schema +struct<> +-- !query 14581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14582 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 14582 schema +struct<> +-- !query 14582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14583 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 14583 schema +struct<> +-- !query 14583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14584 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 14584 schema +struct<> +-- !query 14584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14585 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 14585 schema +struct<> +-- !query 14585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14586 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 14586 schema +struct<> +-- !query 14586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14587 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 14587 schema +struct<> +-- !query 14587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14588 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 14588 schema +struct<> +-- !query 14588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14589 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 14589 schema +struct<> +-- !query 14589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14590 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 14590 schema +struct<> +-- !query 14590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14591 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14591 schema +struct<> +-- !query 14591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14592 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14592 schema +struct<> +-- !query 14592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14593 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 14593 schema +struct<> +-- !query 14593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14594 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 14594 schema +struct<> +-- !query 14594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14595 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 14595 schema +struct<> +-- !query 14595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14596 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 14596 schema +struct<> +-- !query 14596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14597 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 14597 schema +struct<> +-- !query 14597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14598 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 14598 schema +struct<> +-- !query 14598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14599 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 14599 schema +struct<> +-- !query 14599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14600 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 14600 schema +struct<> +-- !query 14600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14601 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 14601 schema +struct<> +-- !query 14601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14602 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 14602 schema +struct<> +-- !query 14602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14603 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14603 schema +struct<> +-- !query 14603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14604 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14604 schema +struct<> +-- !query 14604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14605 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 14605 schema +struct<> +-- !query 14605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14606 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 14606 schema +struct<> +-- !query 14606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14607 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 14607 schema +struct<> +-- !query 14607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14608 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 14608 schema +struct<> +-- !query 14608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14609 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 14609 schema +struct<> +-- !query 14609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14610 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 14610 schema +struct<> +-- !query 14610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14611 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 14611 schema +struct<> +-- !query 14611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14612 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 14612 schema +struct<> +-- !query 14612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14613 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 14613 schema +struct<> +-- !query 14613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14614 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 14614 schema +struct<> +-- !query 14614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14615 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14615 schema +struct<> +-- !query 14615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14616 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14616 schema +struct<> +-- !query 14616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14617 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 14617 schema +struct<> +-- !query 14617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14618 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 14618 schema +struct<> +-- !query 14618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14619 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 14619 schema +struct<> +-- !query 14619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14620 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 14620 schema +struct<> +-- !query 14620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14621 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 14621 schema +struct<> +-- !query 14621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14622 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 14622 schema +struct<> +-- !query 14622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14623 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 14623 schema +struct<> +-- !query 14623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14624 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 14624 schema +struct<> +-- !query 14624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14625 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 14625 schema +struct<> +-- !query 14625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14626 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 14626 schema +struct<> +-- !query 14626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14627 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14627 schema +struct<> +-- !query 14627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14628 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14628 schema +struct<> +-- !query 14628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14629 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 14629 schema +struct<> +-- !query 14629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14630 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 14630 schema +struct<> +-- !query 14630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14631 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 14631 schema +struct<> +-- !query 14631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14632 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 14632 schema +struct<> +-- !query 14632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14633 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 14633 schema +struct<> +-- !query 14633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14634 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 14634 schema +struct<> +-- !query 14634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14635 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 14635 schema +struct<> +-- !query 14635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14636 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 14636 schema +struct<> +-- !query 14636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14637 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 14637 schema +struct<> +-- !query 14637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14638 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 14638 schema +struct<> +-- !query 14638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14639 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14639 schema +struct<> +-- !query 14639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14640 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14640 schema +struct<> +-- !query 14640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14641 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 14641 schema +struct> +-- !query 14641 output +{[B@13125d5b:2.0,[B@2d8a4bb6:1.0} + + +-- !query 14642 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 14642 schema +struct> +-- !query 14642 output +{[B@155e5e45:1.0,[B@771a9501:2.0} + + +-- !query 14643 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 14643 schema +struct> +-- !query 14643 output +{[B@18564e79:2.0,[B@380271b2:1.0} + + +-- !query 14644 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 14644 schema +struct> +-- !query 14644 output +{[B@499a7575:1.0,[B@5402963:2.0} + + +-- !query 14645 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 14645 schema +struct> +-- !query 14645 output +{[B@50193e3a:2.0,[B@65272ecb:1.0} + + +-- !query 14646 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 14646 schema +struct> +-- !query 14646 output +{[B@31086e9f:1.0,[B@735ddd48:2.0} + + +-- !query 14647 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 14647 schema +struct> +-- !query 14647 output +{[B@33ff320a:1.0,[B@dbde1ed:2.0} + + +-- !query 14648 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 14648 schema +struct> +-- !query 14648 output +{[B@341f516a:"1.0",[B@7d448e25:"2"} + + +-- !query 14649 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 14649 schema +struct<> +-- !query 14649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 14650 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 14650 schema +struct<> +-- !query 14650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 14651 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14651 schema +struct<> +-- !query 14651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 14652 +SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14652 schema +struct<> +-- !query 14652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 14653 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 14653 schema +struct<> +-- !query 14653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14654 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 14654 schema +struct<> +-- !query 14654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14655 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 14655 schema +struct<> +-- !query 14655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14656 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 14656 schema +struct<> +-- !query 14656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14657 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 14657 schema +struct<> +-- !query 14657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14658 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 14658 schema +struct<> +-- !query 14658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14659 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 14659 schema +struct<> +-- !query 14659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14660 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 14660 schema +struct<> +-- !query 14660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14661 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 14661 schema +struct<> +-- !query 14661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14662 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 14662 schema +struct<> +-- !query 14662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14663 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14663 schema +struct<> +-- !query 14663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14664 +SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14664 schema +struct<> +-- !query 14664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14665 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 14665 schema +struct<> +-- !query 14665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14666 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 14666 schema +struct<> +-- !query 14666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14667 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 14667 schema +struct<> +-- !query 14667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14668 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 14668 schema +struct<> +-- !query 14668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14669 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 14669 schema +struct<> +-- !query 14669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14670 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 14670 schema +struct<> +-- !query 14670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14671 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 14671 schema +struct<> +-- !query 14671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14672 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 14672 schema +struct<> +-- !query 14672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14673 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 14673 schema +struct<> +-- !query 14673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14674 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 14674 schema +struct<> +-- !query 14674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14675 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14675 schema +struct<> +-- !query 14675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14676 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14676 schema +struct<> +-- !query 14676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14677 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 14677 schema +struct<> +-- !query 14677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14678 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 14678 schema +struct<> +-- !query 14678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14679 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 14679 schema +struct<> +-- !query 14679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14680 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 14680 schema +struct<> +-- !query 14680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14681 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 14681 schema +struct<> +-- !query 14681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14682 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 14682 schema +struct<> +-- !query 14682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14683 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 14683 schema +struct<> +-- !query 14683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14684 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 14684 schema +struct<> +-- !query 14684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14685 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 14685 schema +struct<> +-- !query 14685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14686 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 14686 schema +struct<> +-- !query 14686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14687 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14687 schema +struct<> +-- !query 14687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14688 +SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14688 schema +struct<> +-- !query 14688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14689 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 14689 schema +struct<> +-- !query 14689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14690 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 14690 schema +struct<> +-- !query 14690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14691 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 14691 schema +struct<> +-- !query 14691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14692 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 14692 schema +struct<> +-- !query 14692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14693 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 14693 schema +struct<> +-- !query 14693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14694 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 14694 schema +struct<> +-- !query 14694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14695 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 14695 schema +struct<> +-- !query 14695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14696 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 14696 schema +struct<> +-- !query 14696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14697 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 14697 schema +struct<> +-- !query 14697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14698 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 14698 schema +struct<> +-- !query 14698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14699 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14699 schema +struct<> +-- !query 14699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14700 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14700 schema +struct<> +-- !query 14700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14701 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 14701 schema +struct<> +-- !query 14701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14702 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 14702 schema +struct<> +-- !query 14702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14703 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 14703 schema +struct<> +-- !query 14703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14704 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 14704 schema +struct<> +-- !query 14704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14705 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 14705 schema +struct<> +-- !query 14705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14706 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 14706 schema +struct<> +-- !query 14706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14707 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 14707 schema +struct<> +-- !query 14707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14708 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 14708 schema +struct<> +-- !query 14708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14709 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 14709 schema +struct<> +-- !query 14709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14710 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 14710 schema +struct<> +-- !query 14710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14711 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14711 schema +struct<> +-- !query 14711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14712 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14712 schema +struct<> +-- !query 14712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14713 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 14713 schema +struct<> +-- !query 14713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14714 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 14714 schema +struct<> +-- !query 14714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14715 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 14715 schema +struct<> +-- !query 14715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14716 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 14716 schema +struct<> +-- !query 14716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14717 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 14717 schema +struct<> +-- !query 14717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14718 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 14718 schema +struct<> +-- !query 14718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14719 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 14719 schema +struct<> +-- !query 14719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14720 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 14720 schema +struct<> +-- !query 14720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14721 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 14721 schema +struct<> +-- !query 14721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14722 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 14722 schema +struct<> +-- !query 14722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14723 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14723 schema +struct<> +-- !query 14723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14724 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14724 schema +struct<> +-- !query 14724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14725 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 14725 schema +struct<> +-- !query 14725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14726 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 14726 schema +struct<> +-- !query 14726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14727 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 14727 schema +struct<> +-- !query 14727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14728 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 14728 schema +struct<> +-- !query 14728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14729 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 14729 schema +struct<> +-- !query 14729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14730 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 14730 schema +struct<> +-- !query 14730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14731 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 14731 schema +struct<> +-- !query 14731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14732 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 14732 schema +struct<> +-- !query 14732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14733 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 14733 schema +struct<> +-- !query 14733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14734 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 14734 schema +struct<> +-- !query 14734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14735 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14735 schema +struct<> +-- !query 14735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14736 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14736 schema +struct<> +-- !query 14736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14737 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 14737 schema +struct<> +-- !query 14737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14738 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 14738 schema +struct<> +-- !query 14738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14739 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 14739 schema +struct<> +-- !query 14739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14740 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 14740 schema +struct<> +-- !query 14740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14741 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 14741 schema +struct<> +-- !query 14741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14742 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 14742 schema +struct<> +-- !query 14742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14743 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 14743 schema +struct<> +-- !query 14743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14744 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 14744 schema +struct<> +-- !query 14744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14745 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 14745 schema +struct<> +-- !query 14745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14746 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 14746 schema +struct<> +-- !query 14746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14747 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14747 schema +struct<> +-- !query 14747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14748 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14748 schema +struct<> +-- !query 14748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14749 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 14749 schema +struct<> +-- !query 14749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14750 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 14750 schema +struct<> +-- !query 14750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14751 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 14751 schema +struct<> +-- !query 14751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14752 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 14752 schema +struct<> +-- !query 14752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14753 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 14753 schema +struct<> +-- !query 14753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14754 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 14754 schema +struct<> +-- !query 14754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14755 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 14755 schema +struct<> +-- !query 14755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14756 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 14756 schema +struct<> +-- !query 14756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14757 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 14757 schema +struct<> +-- !query 14757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14758 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 14758 schema +struct<> +-- !query 14758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14759 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14759 schema +struct<> +-- !query 14759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14760 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14760 schema +struct<> +-- !query 14760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14761 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 14761 schema +struct<> +-- !query 14761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14762 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 14762 schema +struct<> +-- !query 14762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14763 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 14763 schema +struct<> +-- !query 14763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14764 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 14764 schema +struct<> +-- !query 14764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14765 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 14765 schema +struct<> +-- !query 14765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14766 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 14766 schema +struct<> +-- !query 14766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14767 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 14767 schema +struct<> +-- !query 14767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14768 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 14768 schema +struct<> +-- !query 14768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14769 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 14769 schema +struct<> +-- !query 14769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14770 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 14770 schema +struct<> +-- !query 14770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14771 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14771 schema +struct<> +-- !query 14771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14772 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14772 schema +struct<> +-- !query 14772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14773 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 14773 schema +struct<> +-- !query 14773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14774 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 14774 schema +struct<> +-- !query 14774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14775 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 14775 schema +struct<> +-- !query 14775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14776 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 14776 schema +struct<> +-- !query 14776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14777 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 14777 schema +struct<> +-- !query 14777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14778 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 14778 schema +struct<> +-- !query 14778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14779 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 14779 schema +struct<> +-- !query 14779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14780 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 14780 schema +struct<> +-- !query 14780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14781 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 14781 schema +struct<> +-- !query 14781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14782 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 14782 schema +struct<> +-- !query 14782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14783 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14783 schema +struct<> +-- !query 14783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14784 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14784 schema +struct<> +-- !query 14784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14785 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 14785 schema +struct> +-- !query 14785 output +{[B@11904705:2.0,[B@29dde0ad:1.0} + + +-- !query 14786 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 14786 schema +struct> +-- !query 14786 output +{[B@16052b77:2.0,[B@5551001c:1.0} + + +-- !query 14787 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 14787 schema +struct> +-- !query 14787 output +{[B@6effbf37:2.0,[B@77dc8af2:1.0} + + +-- !query 14788 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 14788 schema +struct> +-- !query 14788 output +{[B@16b5e727:2.0,[B@4bf7c6e8:1.0} + + +-- !query 14789 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 14789 schema +struct> +-- !query 14789 output +{[B@11949c28:1.0,[B@2831c485:2.0} + + +-- !query 14790 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 14790 schema +struct> +-- !query 14790 output +{[B@2f7d3e4:1.0,[B@6f74de63:2.0} + + +-- !query 14791 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 14791 schema +struct> +-- !query 14791 output +{[B@4890e825:2.0,[B@49ebfa5a:1.0} + + +-- !query 14792 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 14792 schema +struct> +-- !query 14792 output +{[B@1b9c74a9:"2",[B@8a289b5:"1.0"} + + +-- !query 14793 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 14793 schema +struct<> +-- !query 14793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 14794 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 14794 schema +struct<> +-- !query 14794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 14795 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14795 schema +struct<> +-- !query 14795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 14796 +SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14796 schema +struct<> +-- !query 14796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 14797 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 14797 schema +struct<> +-- !query 14797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14798 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 14798 schema +struct<> +-- !query 14798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14799 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 14799 schema +struct<> +-- !query 14799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14800 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 14800 schema +struct<> +-- !query 14800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14801 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 14801 schema +struct<> +-- !query 14801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14802 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 14802 schema +struct<> +-- !query 14802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14803 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 14803 schema +struct<> +-- !query 14803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14804 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 14804 schema +struct<> +-- !query 14804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14805 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 14805 schema +struct<> +-- !query 14805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14806 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 14806 schema +struct<> +-- !query 14806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14807 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14807 schema +struct<> +-- !query 14807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14808 +SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14808 schema +struct<> +-- !query 14808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14809 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 14809 schema +struct<> +-- !query 14809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14810 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 14810 schema +struct<> +-- !query 14810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14811 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 14811 schema +struct<> +-- !query 14811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14812 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 14812 schema +struct<> +-- !query 14812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14813 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 14813 schema +struct<> +-- !query 14813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14814 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 14814 schema +struct<> +-- !query 14814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14815 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 14815 schema +struct<> +-- !query 14815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14816 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 14816 schema +struct<> +-- !query 14816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14817 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 14817 schema +struct<> +-- !query 14817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14818 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 14818 schema +struct<> +-- !query 14818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14819 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14819 schema +struct<> +-- !query 14819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14820 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14820 schema +struct<> +-- !query 14820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14821 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 14821 schema +struct<> +-- !query 14821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14822 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 14822 schema +struct<> +-- !query 14822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14823 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 14823 schema +struct<> +-- !query 14823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14824 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 14824 schema +struct<> +-- !query 14824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14825 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 14825 schema +struct<> +-- !query 14825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14826 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 14826 schema +struct<> +-- !query 14826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14827 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 14827 schema +struct<> +-- !query 14827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14828 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 14828 schema +struct<> +-- !query 14828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14829 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 14829 schema +struct<> +-- !query 14829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14830 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 14830 schema +struct<> +-- !query 14830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14831 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14831 schema +struct<> +-- !query 14831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14832 +SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14832 schema +struct<> +-- !query 14832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14833 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 14833 schema +struct<> +-- !query 14833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14834 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 14834 schema +struct<> +-- !query 14834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14835 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 14835 schema +struct<> +-- !query 14835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14836 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 14836 schema +struct<> +-- !query 14836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14837 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 14837 schema +struct<> +-- !query 14837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14838 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 14838 schema +struct<> +-- !query 14838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14839 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 14839 schema +struct<> +-- !query 14839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14840 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 14840 schema +struct<> +-- !query 14840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14841 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 14841 schema +struct<> +-- !query 14841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14842 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 14842 schema +struct<> +-- !query 14842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14843 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14843 schema +struct<> +-- !query 14843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14844 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14844 schema +struct<> +-- !query 14844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14845 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 14845 schema +struct<> +-- !query 14845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14846 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 14846 schema +struct<> +-- !query 14846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14847 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 14847 schema +struct<> +-- !query 14847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14848 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 14848 schema +struct<> +-- !query 14848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14849 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 14849 schema +struct<> +-- !query 14849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14850 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 14850 schema +struct<> +-- !query 14850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14851 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 14851 schema +struct<> +-- !query 14851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14852 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 14852 schema +struct<> +-- !query 14852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14853 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 14853 schema +struct<> +-- !query 14853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14854 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 14854 schema +struct<> +-- !query 14854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14855 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14855 schema +struct<> +-- !query 14855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14856 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14856 schema +struct<> +-- !query 14856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14857 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 14857 schema +struct<> +-- !query 14857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14858 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 14858 schema +struct<> +-- !query 14858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14859 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 14859 schema +struct<> +-- !query 14859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14860 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 14860 schema +struct<> +-- !query 14860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14861 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 14861 schema +struct<> +-- !query 14861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14862 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 14862 schema +struct<> +-- !query 14862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14863 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 14863 schema +struct<> +-- !query 14863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14864 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 14864 schema +struct<> +-- !query 14864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14865 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 14865 schema +struct<> +-- !query 14865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14866 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 14866 schema +struct<> +-- !query 14866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14867 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14867 schema +struct<> +-- !query 14867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14868 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14868 schema +struct<> +-- !query 14868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 14869 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 14869 schema +struct<> +-- !query 14869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14870 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 14870 schema +struct<> +-- !query 14870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14871 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 14871 schema +struct<> +-- !query 14871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14872 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 14872 schema +struct<> +-- !query 14872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14873 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 14873 schema +struct<> +-- !query 14873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14874 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 14874 schema +struct<> +-- !query 14874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14875 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 14875 schema +struct<> +-- !query 14875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14876 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 14876 schema +struct<> +-- !query 14876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14877 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 14877 schema +struct<> +-- !query 14877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14878 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 14878 schema +struct<> +-- !query 14878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14879 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14879 schema +struct<> +-- !query 14879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14880 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14880 schema +struct<> +-- !query 14880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 14881 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 14881 schema +struct<> +-- !query 14881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14882 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 14882 schema +struct<> +-- !query 14882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14883 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 14883 schema +struct<> +-- !query 14883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14884 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 14884 schema +struct<> +-- !query 14884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14885 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 14885 schema +struct<> +-- !query 14885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14886 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 14886 schema +struct<> +-- !query 14886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14887 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 14887 schema +struct<> +-- !query 14887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14888 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 14888 schema +struct<> +-- !query 14888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14889 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 14889 schema +struct<> +-- !query 14889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14890 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 14890 schema +struct<> +-- !query 14890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14891 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14891 schema +struct<> +-- !query 14891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14892 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14892 schema +struct<> +-- !query 14892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 14893 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 14893 schema +struct<> +-- !query 14893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14894 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 14894 schema +struct<> +-- !query 14894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14895 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 14895 schema +struct<> +-- !query 14895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14896 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 14896 schema +struct<> +-- !query 14896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14897 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 14897 schema +struct<> +-- !query 14897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14898 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 14898 schema +struct<> +-- !query 14898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14899 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 14899 schema +struct<> +-- !query 14899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14900 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 14900 schema +struct<> +-- !query 14900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14901 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 14901 schema +struct<> +-- !query 14901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14902 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 14902 schema +struct<> +-- !query 14902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14903 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14903 schema +struct<> +-- !query 14903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14904 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14904 schema +struct<> +-- !query 14904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 14905 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 14905 schema +struct<> +-- !query 14905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14906 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 14906 schema +struct<> +-- !query 14906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14907 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 14907 schema +struct<> +-- !query 14907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14908 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 14908 schema +struct<> +-- !query 14908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14909 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 14909 schema +struct<> +-- !query 14909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14910 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 14910 schema +struct<> +-- !query 14910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14911 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 14911 schema +struct<> +-- !query 14911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14912 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 14912 schema +struct<> +-- !query 14912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14913 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 14913 schema +struct<> +-- !query 14913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14914 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 14914 schema +struct<> +-- !query 14914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14915 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14915 schema +struct<> +-- !query 14915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14916 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14916 schema +struct<> +-- !query 14916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 14917 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 14917 schema +struct<> +-- !query 14917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14918 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 14918 schema +struct<> +-- !query 14918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14919 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 14919 schema +struct<> +-- !query 14919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14920 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 14920 schema +struct<> +-- !query 14920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14921 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 14921 schema +struct<> +-- !query 14921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14922 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 14922 schema +struct<> +-- !query 14922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14923 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 14923 schema +struct<> +-- !query 14923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14924 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 14924 schema +struct<> +-- !query 14924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14925 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 14925 schema +struct<> +-- !query 14925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14926 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 14926 schema +struct<> +-- !query 14926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14927 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14927 schema +struct<> +-- !query 14927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14928 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14928 schema +struct<> +-- !query 14928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 14929 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 14929 schema +struct> +-- !query 14929 output +{[B@5060be69:2,[B@66c4e9ac:1} + + +-- !query 14930 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 14930 schema +struct> +-- !query 14930 output +{[B@13578d96:1,[B@2b68f474:2} + + +-- !query 14931 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 14931 schema +struct> +-- !query 14931 output +{[B@327bf02a:1,[B@533dffbd:2} + + +-- !query 14932 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 14932 schema +struct> +-- !query 14932 output +{[B@20fbffb:1,[B@9268c57:2} + + +-- !query 14933 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 14933 schema +struct> +-- !query 14933 output +{[B@6681eacf:2.0,[B@be6895e:1.0} + + +-- !query 14934 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 14934 schema +struct> +-- !query 14934 output +{[B@47425fbf:2.0,[B@71346ee6:1.0} + + +-- !query 14935 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 14935 schema +struct> +-- !query 14935 output +{[B@31d6f842:2,[B@7dc13794:1} + + +-- !query 14936 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 14936 schema +struct> +-- !query 14936 output +{[B@1b6ac5a1:"1",[B@4c813fa6:"2"} + + +-- !query 14937 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 14937 schema +struct<> +-- !query 14937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 14938 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 14938 schema +struct<> +-- !query 14938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 14939 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14939 schema +struct<> +-- !query 14939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 14940 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14940 schema +struct<> +-- !query 14940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 14941 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 14941 schema +struct<> +-- !query 14941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14942 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 14942 schema +struct<> +-- !query 14942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14943 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 14943 schema +struct<> +-- !query 14943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14944 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 14944 schema +struct<> +-- !query 14944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14945 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 14945 schema +struct<> +-- !query 14945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14946 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 14946 schema +struct<> +-- !query 14946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14947 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 14947 schema +struct<> +-- !query 14947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14948 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 14948 schema +struct<> +-- !query 14948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14949 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 14949 schema +struct<> +-- !query 14949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14950 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 14950 schema +struct<> +-- !query 14950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14951 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14951 schema +struct<> +-- !query 14951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14952 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14952 schema +struct<> +-- !query 14952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 14953 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 14953 schema +struct<> +-- !query 14953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14954 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 14954 schema +struct<> +-- !query 14954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14955 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 14955 schema +struct<> +-- !query 14955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14956 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 14956 schema +struct<> +-- !query 14956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14957 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 14957 schema +struct<> +-- !query 14957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14958 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 14958 schema +struct<> +-- !query 14958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14959 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 14959 schema +struct<> +-- !query 14959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14960 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 14960 schema +struct<> +-- !query 14960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14961 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 14961 schema +struct<> +-- !query 14961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14962 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 14962 schema +struct<> +-- !query 14962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14963 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14963 schema +struct<> +-- !query 14963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14964 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14964 schema +struct<> +-- !query 14964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 14965 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 14965 schema +struct<> +-- !query 14965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14966 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 14966 schema +struct<> +-- !query 14966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14967 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 14967 schema +struct<> +-- !query 14967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14968 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 14968 schema +struct<> +-- !query 14968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14969 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 14969 schema +struct<> +-- !query 14969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14970 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 14970 schema +struct<> +-- !query 14970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14971 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 14971 schema +struct<> +-- !query 14971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14972 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 14972 schema +struct<> +-- !query 14972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14973 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 14973 schema +struct<> +-- !query 14973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14974 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 14974 schema +struct<> +-- !query 14974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14975 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14975 schema +struct<> +-- !query 14975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14976 +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14976 schema +struct<> +-- !query 14976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 14977 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 14977 schema +struct<> +-- !query 14977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14978 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 14978 schema +struct<> +-- !query 14978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14979 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 14979 schema +struct<> +-- !query 14979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14980 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 14980 schema +struct<> +-- !query 14980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14981 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 14981 schema +struct<> +-- !query 14981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14982 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 14982 schema +struct<> +-- !query 14982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14983 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 14983 schema +struct<> +-- !query 14983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14984 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 14984 schema +struct<> +-- !query 14984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14985 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 14985 schema +struct<> +-- !query 14985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14986 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 14986 schema +struct<> +-- !query 14986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14987 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14987 schema +struct<> +-- !query 14987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14988 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 14988 schema +struct<> +-- !query 14988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 14989 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 14989 schema +struct<> +-- !query 14989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14990 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 14990 schema +struct<> +-- !query 14990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14991 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 14991 schema +struct<> +-- !query 14991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14992 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 14992 schema +struct<> +-- !query 14992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14993 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 14993 schema +struct<> +-- !query 14993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14994 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 14994 schema +struct<> +-- !query 14994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14995 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 14995 schema +struct<> +-- !query 14995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14996 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 14996 schema +struct<> +-- !query 14996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14997 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 14997 schema +struct<> +-- !query 14997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14998 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 14998 schema +struct<> +-- !query 14998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 14999 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 14999 schema +struct<> +-- !query 14999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15000 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15000 schema +struct<> +-- !query 15000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15001 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 15001 schema +struct<> +-- !query 15001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15002 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 15002 schema +struct<> +-- !query 15002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15003 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 15003 schema +struct<> +-- !query 15003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15004 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 15004 schema +struct<> +-- !query 15004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15005 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 15005 schema +struct<> +-- !query 15005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15006 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 15006 schema +struct<> +-- !query 15006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15007 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 15007 schema +struct<> +-- !query 15007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15008 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 15008 schema +struct<> +-- !query 15008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15009 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 15009 schema +struct<> +-- !query 15009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15010 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 15010 schema +struct<> +-- !query 15010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15011 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15011 schema +struct<> +-- !query 15011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15012 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15012 schema +struct<> +-- !query 15012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15013 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 15013 schema +struct<> +-- !query 15013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15014 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 15014 schema +struct<> +-- !query 15014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15015 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 15015 schema +struct<> +-- !query 15015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15016 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 15016 schema +struct<> +-- !query 15016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15017 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 15017 schema +struct<> +-- !query 15017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15018 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 15018 schema +struct<> +-- !query 15018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15019 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 15019 schema +struct<> +-- !query 15019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15020 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 15020 schema +struct<> +-- !query 15020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15021 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 15021 schema +struct<> +-- !query 15021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15022 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 15022 schema +struct<> +-- !query 15022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15023 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15023 schema +struct<> +-- !query 15023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15024 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15024 schema +struct<> +-- !query 15024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15025 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 15025 schema +struct<> +-- !query 15025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15026 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 15026 schema +struct<> +-- !query 15026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15027 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 15027 schema +struct<> +-- !query 15027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15028 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 15028 schema +struct<> +-- !query 15028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15029 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 15029 schema +struct<> +-- !query 15029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15030 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 15030 schema +struct<> +-- !query 15030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15031 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 15031 schema +struct<> +-- !query 15031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15032 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 15032 schema +struct<> +-- !query 15032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15033 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 15033 schema +struct<> +-- !query 15033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15034 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 15034 schema +struct<> +-- !query 15034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15035 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15035 schema +struct<> +-- !query 15035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15036 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15036 schema +struct<> +-- !query 15036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15037 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 15037 schema +struct<> +-- !query 15037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15038 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 15038 schema +struct<> +-- !query 15038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15039 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 15039 schema +struct<> +-- !query 15039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15040 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 15040 schema +struct<> +-- !query 15040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15041 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 15041 schema +struct<> +-- !query 15041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15042 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 15042 schema +struct<> +-- !query 15042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15043 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 15043 schema +struct<> +-- !query 15043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15044 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 15044 schema +struct<> +-- !query 15044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15045 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 15045 schema +struct<> +-- !query 15045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15046 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 15046 schema +struct<> +-- !query 15046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15047 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15047 schema +struct<> +-- !query 15047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15048 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15048 schema +struct<> +-- !query 15048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15049 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 15049 schema +struct<> +-- !query 15049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15050 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 15050 schema +struct<> +-- !query 15050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15051 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 15051 schema +struct<> +-- !query 15051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15052 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 15052 schema +struct<> +-- !query 15052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15053 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 15053 schema +struct<> +-- !query 15053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15054 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 15054 schema +struct<> +-- !query 15054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15055 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 15055 schema +struct<> +-- !query 15055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15056 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 15056 schema +struct<> +-- !query 15056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15057 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 15057 schema +struct<> +-- !query 15057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15058 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 15058 schema +struct<> +-- !query 15058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15059 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15059 schema +struct<> +-- !query 15059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15060 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15060 schema +struct<> +-- !query 15060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15061 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 15061 schema +struct<> +-- !query 15061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15062 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 15062 schema +struct<> +-- !query 15062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15063 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 15063 schema +struct<> +-- !query 15063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15064 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 15064 schema +struct<> +-- !query 15064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15065 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 15065 schema +struct<> +-- !query 15065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15066 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 15066 schema +struct<> +-- !query 15066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15067 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 15067 schema +struct<> +-- !query 15067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15068 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 15068 schema +struct<> +-- !query 15068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15069 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 15069 schema +struct<> +-- !query 15069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15070 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 15070 schema +struct<> +-- !query 15070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15071 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15071 schema +struct<> +-- !query 15071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15072 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15072 schema +struct<> +-- !query 15072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15073 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 15073 schema +struct> +-- !query 15073 output +{[B@1ce53261:"1",[B@62b8a30f:"2"} + + +-- !query 15074 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 15074 schema +struct> +-- !query 15074 output +{[B@6e6ce894:"2",[B@7c9e03d9:"1"} + + +-- !query 15075 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 15075 schema +struct> +-- !query 15075 output +{[B@6d8ed83:"1",[B@7cec0f84:"2"} + + +-- !query 15076 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 15076 schema +struct> +-- !query 15076 output +{[B@299c40b3:"1",[B@4433b29c:"2"} + + +-- !query 15077 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 15077 schema +struct> +-- !query 15077 output +{[B@3023da97:"2.0",[B@3b88fc8f:"1"} + + +-- !query 15078 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 15078 schema +struct> +-- !query 15078 output +{[B@6ec0627:"2.0",[B@72854993:"1"} + + +-- !query 15079 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 15079 schema +struct> +-- !query 15079 output +{[B@121bd854:"2",[B@ebeea1e:"1"} + + +-- !query 15080 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 15080 schema +struct> +-- !query 15080 output +{[B@3eb5f534:"2",[B@77369228:"1"} + + +-- !query 15081 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 15081 schema +struct<> +-- !query 15081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 15082 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 15082 schema +struct<> +-- !query 15082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 15083 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15083 schema +struct> +-- !query 15083 output +{[B@23bfb3ab:"2017-12-12 09:30:00",[B@6b093932:"1"} + + +-- !query 15084 +SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15084 schema +struct> +-- !query 15084 output +{[B@37c22440:"2017-12-12",[B@79424c4d:"1"} + + +-- !query 15085 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 15085 schema +struct<> +-- !query 15085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15086 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 15086 schema +struct<> +-- !query 15086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15087 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 15087 schema +struct<> +-- !query 15087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15088 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 15088 schema +struct<> +-- !query 15088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15089 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 15089 schema +struct<> +-- !query 15089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15090 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 15090 schema +struct<> +-- !query 15090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15091 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 15091 schema +struct<> +-- !query 15091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15092 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 15092 schema +struct<> +-- !query 15092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15093 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 15093 schema +struct<> +-- !query 15093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15094 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 15094 schema +struct<> +-- !query 15094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15095 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15095 schema +struct<> +-- !query 15095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15096 +SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15096 schema +struct<> +-- !query 15096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15097 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 15097 schema +struct<> +-- !query 15097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15098 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 15098 schema +struct<> +-- !query 15098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15099 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 15099 schema +struct<> +-- !query 15099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15100 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 15100 schema +struct<> +-- !query 15100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15101 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 15101 schema +struct<> +-- !query 15101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15102 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 15102 schema +struct<> +-- !query 15102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15103 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 15103 schema +struct<> +-- !query 15103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15104 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 15104 schema +struct<> +-- !query 15104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15105 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 15105 schema +struct<> +-- !query 15105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15106 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 15106 schema +struct<> +-- !query 15106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15107 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15107 schema +struct<> +-- !query 15107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15108 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15108 schema +struct<> +-- !query 15108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15109 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 15109 schema +struct<> +-- !query 15109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15110 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 15110 schema +struct<> +-- !query 15110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15111 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 15111 schema +struct<> +-- !query 15111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15112 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 15112 schema +struct<> +-- !query 15112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15113 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 15113 schema +struct<> +-- !query 15113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15114 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 15114 schema +struct<> +-- !query 15114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15115 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 15115 schema +struct<> +-- !query 15115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15116 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 15116 schema +struct<> +-- !query 15116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15117 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 15117 schema +struct<> +-- !query 15117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15118 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 15118 schema +struct<> +-- !query 15118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15119 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15119 schema +struct<> +-- !query 15119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15120 +SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15120 schema +struct<> +-- !query 15120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15121 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 15121 schema +struct<> +-- !query 15121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15122 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 15122 schema +struct<> +-- !query 15122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15123 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 15123 schema +struct<> +-- !query 15123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15124 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 15124 schema +struct<> +-- !query 15124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15125 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 15125 schema +struct<> +-- !query 15125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15126 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 15126 schema +struct<> +-- !query 15126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15127 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 15127 schema +struct<> +-- !query 15127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15128 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 15128 schema +struct<> +-- !query 15128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15129 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 15129 schema +struct<> +-- !query 15129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15130 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 15130 schema +struct<> +-- !query 15130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15131 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15131 schema +struct<> +-- !query 15131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15132 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15132 schema +struct<> +-- !query 15132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15133 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 15133 schema +struct<> +-- !query 15133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15134 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 15134 schema +struct<> +-- !query 15134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15135 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 15135 schema +struct<> +-- !query 15135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15136 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 15136 schema +struct<> +-- !query 15136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15137 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 15137 schema +struct<> +-- !query 15137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15138 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 15138 schema +struct<> +-- !query 15138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15139 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 15139 schema +struct<> +-- !query 15139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15140 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 15140 schema +struct<> +-- !query 15140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15141 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 15141 schema +struct<> +-- !query 15141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15142 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 15142 schema +struct<> +-- !query 15142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15143 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15143 schema +struct<> +-- !query 15143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15144 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15144 schema +struct<> +-- !query 15144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15145 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 15145 schema +struct<> +-- !query 15145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15146 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 15146 schema +struct<> +-- !query 15146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15147 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 15147 schema +struct<> +-- !query 15147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15148 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 15148 schema +struct<> +-- !query 15148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15149 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 15149 schema +struct<> +-- !query 15149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15150 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 15150 schema +struct<> +-- !query 15150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15151 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 15151 schema +struct<> +-- !query 15151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15152 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 15152 schema +struct<> +-- !query 15152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15153 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 15153 schema +struct<> +-- !query 15153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15154 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 15154 schema +struct<> +-- !query 15154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15155 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15155 schema +struct<> +-- !query 15155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15156 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15156 schema +struct<> +-- !query 15156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15157 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 15157 schema +struct<> +-- !query 15157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15158 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 15158 schema +struct<> +-- !query 15158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15159 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 15159 schema +struct<> +-- !query 15159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15160 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 15160 schema +struct<> +-- !query 15160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15161 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 15161 schema +struct<> +-- !query 15161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15162 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 15162 schema +struct<> +-- !query 15162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15163 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 15163 schema +struct<> +-- !query 15163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15164 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 15164 schema +struct<> +-- !query 15164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15165 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 15165 schema +struct<> +-- !query 15165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15166 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 15166 schema +struct<> +-- !query 15166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15167 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15167 schema +struct<> +-- !query 15167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15168 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15168 schema +struct<> +-- !query 15168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15169 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 15169 schema +struct<> +-- !query 15169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15170 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 15170 schema +struct<> +-- !query 15170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15171 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 15171 schema +struct<> +-- !query 15171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15172 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 15172 schema +struct<> +-- !query 15172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15173 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 15173 schema +struct<> +-- !query 15173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15174 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 15174 schema +struct<> +-- !query 15174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15175 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 15175 schema +struct<> +-- !query 15175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15176 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 15176 schema +struct<> +-- !query 15176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15177 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 15177 schema +struct<> +-- !query 15177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15178 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 15178 schema +struct<> +-- !query 15178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15179 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15179 schema +struct<> +-- !query 15179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15180 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15180 schema +struct<> +-- !query 15180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15181 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 15181 schema +struct<> +-- !query 15181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15182 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 15182 schema +struct<> +-- !query 15182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15183 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 15183 schema +struct<> +-- !query 15183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15184 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 15184 schema +struct<> +-- !query 15184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15185 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 15185 schema +struct<> +-- !query 15185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15186 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 15186 schema +struct<> +-- !query 15186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15187 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 15187 schema +struct<> +-- !query 15187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15188 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 15188 schema +struct<> +-- !query 15188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15189 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 15189 schema +struct<> +-- !query 15189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15190 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 15190 schema +struct<> +-- !query 15190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15191 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15191 schema +struct<> +-- !query 15191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15192 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15192 schema +struct<> +-- !query 15192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15193 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 15193 schema +struct<> +-- !query 15193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15194 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 15194 schema +struct<> +-- !query 15194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15195 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 15195 schema +struct<> +-- !query 15195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15196 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 15196 schema +struct<> +-- !query 15196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15197 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 15197 schema +struct<> +-- !query 15197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15198 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 15198 schema +struct<> +-- !query 15198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15199 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 15199 schema +struct<> +-- !query 15199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15200 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 15200 schema +struct<> +-- !query 15200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15201 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 15201 schema +struct<> +-- !query 15201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15202 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 15202 schema +struct<> +-- !query 15202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15203 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15203 schema +struct<> +-- !query 15203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15204 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15204 schema +struct<> +-- !query 15204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15205 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 15205 schema +struct<> +-- !query 15205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15206 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 15206 schema +struct<> +-- !query 15206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15207 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 15207 schema +struct<> +-- !query 15207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15208 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 15208 schema +struct<> +-- !query 15208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15209 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 15209 schema +struct<> +-- !query 15209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15210 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 15210 schema +struct<> +-- !query 15210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15211 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 15211 schema +struct<> +-- !query 15211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15212 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 15212 schema +struct<> +-- !query 15212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15213 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 15213 schema +struct<> +-- !query 15213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15214 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 15214 schema +struct<> +-- !query 15214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15215 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15215 schema +struct<> +-- !query 15215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15216 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15216 schema +struct<> +-- !query 15216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15217 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 15217 schema +struct<> +-- !query 15217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15218 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 15218 schema +struct<> +-- !query 15218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15219 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 15219 schema +struct<> +-- !query 15219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15220 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 15220 schema +struct<> +-- !query 15220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15221 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 15221 schema +struct<> +-- !query 15221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15222 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 15222 schema +struct<> +-- !query 15222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15223 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 15223 schema +struct<> +-- !query 15223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15224 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 15224 schema +struct<> +-- !query 15224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15225 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 15225 schema +struct> +-- !query 15225 output +{[B@15f41c9f:[B@8fbea1c,[B@28d68fe2:[B@4438400b} + + +-- !query 15226 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 15226 schema +struct<> +-- !query 15226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15227 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15227 schema +struct<> +-- !query 15227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15228 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15228 schema +struct<> +-- !query 15228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15229 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 15229 schema +struct<> +-- !query 15229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15230 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 15230 schema +struct<> +-- !query 15230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15231 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 15231 schema +struct<> +-- !query 15231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15232 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 15232 schema +struct<> +-- !query 15232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15233 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 15233 schema +struct<> +-- !query 15233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15234 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 15234 schema +struct<> +-- !query 15234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15235 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 15235 schema +struct<> +-- !query 15235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15236 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 15236 schema +struct<> +-- !query 15236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15237 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 15237 schema +struct<> +-- !query 15237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15238 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 15238 schema +struct<> +-- !query 15238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15239 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15239 schema +struct<> +-- !query 15239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15240 +SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15240 schema +struct<> +-- !query 15240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15241 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 15241 schema +struct<> +-- !query 15241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15242 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 15242 schema +struct<> +-- !query 15242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15243 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 15243 schema +struct<> +-- !query 15243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15244 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 15244 schema +struct<> +-- !query 15244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15245 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 15245 schema +struct<> +-- !query 15245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15246 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 15246 schema +struct<> +-- !query 15246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15247 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 15247 schema +struct<> +-- !query 15247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15248 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 15248 schema +struct<> +-- !query 15248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15249 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 15249 schema +struct<> +-- !query 15249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15250 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 15250 schema +struct<> +-- !query 15250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15251 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15251 schema +struct<> +-- !query 15251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15252 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15252 schema +struct<> +-- !query 15252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15253 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 15253 schema +struct<> +-- !query 15253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15254 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 15254 schema +struct<> +-- !query 15254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15255 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 15255 schema +struct<> +-- !query 15255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15256 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 15256 schema +struct<> +-- !query 15256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15257 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 15257 schema +struct<> +-- !query 15257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15258 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 15258 schema +struct<> +-- !query 15258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15259 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 15259 schema +struct<> +-- !query 15259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15260 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 15260 schema +struct<> +-- !query 15260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15261 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 15261 schema +struct<> +-- !query 15261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15262 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 15262 schema +struct<> +-- !query 15262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15263 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15263 schema +struct<> +-- !query 15263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15264 +SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15264 schema +struct<> +-- !query 15264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15265 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 15265 schema +struct<> +-- !query 15265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15266 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 15266 schema +struct<> +-- !query 15266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15267 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 15267 schema +struct<> +-- !query 15267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15268 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 15268 schema +struct<> +-- !query 15268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15269 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 15269 schema +struct<> +-- !query 15269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15270 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 15270 schema +struct<> +-- !query 15270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15271 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 15271 schema +struct<> +-- !query 15271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15272 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 15272 schema +struct<> +-- !query 15272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15273 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 15273 schema +struct<> +-- !query 15273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15274 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 15274 schema +struct<> +-- !query 15274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15275 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15275 schema +struct<> +-- !query 15275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15276 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15276 schema +struct<> +-- !query 15276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15277 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 15277 schema +struct<> +-- !query 15277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15278 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 15278 schema +struct<> +-- !query 15278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15279 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 15279 schema +struct<> +-- !query 15279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15280 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 15280 schema +struct<> +-- !query 15280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15281 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 15281 schema +struct<> +-- !query 15281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15282 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 15282 schema +struct<> +-- !query 15282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15283 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 15283 schema +struct<> +-- !query 15283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15284 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 15284 schema +struct<> +-- !query 15284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15285 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 15285 schema +struct<> +-- !query 15285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15286 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 15286 schema +struct<> +-- !query 15286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15287 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15287 schema +struct<> +-- !query 15287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15288 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15288 schema +struct<> +-- !query 15288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15289 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 15289 schema +struct<> +-- !query 15289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15290 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 15290 schema +struct<> +-- !query 15290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15291 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 15291 schema +struct<> +-- !query 15291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15292 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 15292 schema +struct<> +-- !query 15292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15293 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 15293 schema +struct<> +-- !query 15293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15294 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 15294 schema +struct<> +-- !query 15294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15295 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 15295 schema +struct<> +-- !query 15295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15296 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 15296 schema +struct<> +-- !query 15296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15297 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 15297 schema +struct<> +-- !query 15297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15298 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 15298 schema +struct<> +-- !query 15298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15299 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15299 schema +struct<> +-- !query 15299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15300 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15300 schema +struct<> +-- !query 15300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15301 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 15301 schema +struct<> +-- !query 15301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15302 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 15302 schema +struct<> +-- !query 15302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15303 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 15303 schema +struct<> +-- !query 15303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15304 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 15304 schema +struct<> +-- !query 15304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15305 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 15305 schema +struct<> +-- !query 15305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15306 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 15306 schema +struct<> +-- !query 15306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15307 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 15307 schema +struct<> +-- !query 15307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15308 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 15308 schema +struct<> +-- !query 15308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15309 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 15309 schema +struct<> +-- !query 15309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15310 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 15310 schema +struct<> +-- !query 15310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15311 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15311 schema +struct<> +-- !query 15311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15312 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15312 schema +struct<> +-- !query 15312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15313 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 15313 schema +struct<> +-- !query 15313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15314 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 15314 schema +struct<> +-- !query 15314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15315 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 15315 schema +struct<> +-- !query 15315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15316 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 15316 schema +struct<> +-- !query 15316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15317 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 15317 schema +struct<> +-- !query 15317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15318 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 15318 schema +struct<> +-- !query 15318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15319 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 15319 schema +struct<> +-- !query 15319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15320 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 15320 schema +struct<> +-- !query 15320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15321 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 15321 schema +struct<> +-- !query 15321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15322 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 15322 schema +struct<> +-- !query 15322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15323 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15323 schema +struct<> +-- !query 15323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15324 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15324 schema +struct<> +-- !query 15324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15325 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 15325 schema +struct<> +-- !query 15325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15326 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 15326 schema +struct<> +-- !query 15326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15327 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 15327 schema +struct<> +-- !query 15327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15328 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 15328 schema +struct<> +-- !query 15328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15329 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 15329 schema +struct<> +-- !query 15329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15330 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 15330 schema +struct<> +-- !query 15330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15331 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 15331 schema +struct<> +-- !query 15331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15332 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 15332 schema +struct<> +-- !query 15332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15333 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 15333 schema +struct<> +-- !query 15333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15334 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 15334 schema +struct<> +-- !query 15334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15335 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15335 schema +struct<> +-- !query 15335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15336 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15336 schema +struct<> +-- !query 15336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15337 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 15337 schema +struct<> +-- !query 15337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15338 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 15338 schema +struct<> +-- !query 15338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15339 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 15339 schema +struct<> +-- !query 15339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15340 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 15340 schema +struct<> +-- !query 15340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15341 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 15341 schema +struct<> +-- !query 15341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15342 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 15342 schema +struct<> +-- !query 15342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15343 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 15343 schema +struct<> +-- !query 15343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15344 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 15344 schema +struct<> +-- !query 15344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15345 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 15345 schema +struct<> +-- !query 15345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15346 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 15346 schema +struct<> +-- !query 15346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15347 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15347 schema +struct<> +-- !query 15347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15348 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15348 schema +struct<> +-- !query 15348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15349 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 15349 schema +struct<> +-- !query 15349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15350 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 15350 schema +struct<> +-- !query 15350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15351 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 15351 schema +struct<> +-- !query 15351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15352 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 15352 schema +struct<> +-- !query 15352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15353 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 15353 schema +struct<> +-- !query 15353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15354 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 15354 schema +struct<> +-- !query 15354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15355 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 15355 schema +struct<> +-- !query 15355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15356 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 15356 schema +struct<> +-- !query 15356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15357 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 15357 schema +struct<> +-- !query 15357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15358 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 15358 schema +struct<> +-- !query 15358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15359 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15359 schema +struct<> +-- !query 15359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15360 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15360 schema +struct<> +-- !query 15360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15361 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 15361 schema +struct<> +-- !query 15361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15362 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 15362 schema +struct<> +-- !query 15362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15363 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 15363 schema +struct<> +-- !query 15363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15364 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 15364 schema +struct<> +-- !query 15364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15365 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 15365 schema +struct<> +-- !query 15365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15366 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 15366 schema +struct<> +-- !query 15366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15367 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 15367 schema +struct<> +-- !query 15367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15368 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 15368 schema +struct<> +-- !query 15368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15369 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 15369 schema +struct<> +-- !query 15369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15370 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 15370 schema +struct> +-- !query 15370 output +{[B@46bb34c1:true,[B@53b25bb3:true} + + +-- !query 15371 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15371 schema +struct<> +-- !query 15371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15372 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15372 schema +struct<> +-- !query 15372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15373 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 15373 schema +struct<> +-- !query 15373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15374 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 15374 schema +struct<> +-- !query 15374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15375 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 15375 schema +struct<> +-- !query 15375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15376 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 15376 schema +struct<> +-- !query 15376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15377 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 15377 schema +struct<> +-- !query 15377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15378 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 15378 schema +struct<> +-- !query 15378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15379 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 15379 schema +struct<> +-- !query 15379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15380 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 15380 schema +struct<> +-- !query 15380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15381 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 15381 schema +struct<> +-- !query 15381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15382 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 15382 schema +struct<> +-- !query 15382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15383 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15383 schema +struct<> +-- !query 15383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15384 +SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15384 schema +struct<> +-- !query 15384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15385 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 15385 schema +struct<> +-- !query 15385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15386 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 15386 schema +struct<> +-- !query 15386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15387 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 15387 schema +struct<> +-- !query 15387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15388 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 15388 schema +struct<> +-- !query 15388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15389 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 15389 schema +struct<> +-- !query 15389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15390 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 15390 schema +struct<> +-- !query 15390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15391 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 15391 schema +struct<> +-- !query 15391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15392 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 15392 schema +struct<> +-- !query 15392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15393 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 15393 schema +struct<> +-- !query 15393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15394 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 15394 schema +struct<> +-- !query 15394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15395 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15395 schema +struct<> +-- !query 15395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15396 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15396 schema +struct<> +-- !query 15396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15397 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 15397 schema +struct<> +-- !query 15397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15398 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 15398 schema +struct<> +-- !query 15398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15399 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 15399 schema +struct<> +-- !query 15399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15400 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 15400 schema +struct<> +-- !query 15400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15401 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 15401 schema +struct<> +-- !query 15401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15402 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 15402 schema +struct<> +-- !query 15402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15403 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 15403 schema +struct<> +-- !query 15403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15404 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 15404 schema +struct<> +-- !query 15404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15405 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 15405 schema +struct<> +-- !query 15405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15406 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 15406 schema +struct<> +-- !query 15406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15407 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15407 schema +struct<> +-- !query 15407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15408 +SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15408 schema +struct<> +-- !query 15408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15409 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 15409 schema +struct<> +-- !query 15409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15410 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 15410 schema +struct<> +-- !query 15410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15411 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 15411 schema +struct<> +-- !query 15411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15412 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 15412 schema +struct<> +-- !query 15412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15413 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 15413 schema +struct<> +-- !query 15413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15414 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 15414 schema +struct<> +-- !query 15414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15415 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 15415 schema +struct<> +-- !query 15415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15416 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 15416 schema +struct<> +-- !query 15416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15417 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 15417 schema +struct<> +-- !query 15417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15418 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 15418 schema +struct<> +-- !query 15418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15419 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15419 schema +struct<> +-- !query 15419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15420 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15420 schema +struct<> +-- !query 15420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15421 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 15421 schema +struct<> +-- !query 15421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15422 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 15422 schema +struct<> +-- !query 15422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15423 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 15423 schema +struct<> +-- !query 15423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15424 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 15424 schema +struct<> +-- !query 15424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15425 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 15425 schema +struct<> +-- !query 15425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15426 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 15426 schema +struct<> +-- !query 15426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15427 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 15427 schema +struct<> +-- !query 15427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15428 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 15428 schema +struct<> +-- !query 15428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15429 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 15429 schema +struct<> +-- !query 15429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15430 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 15430 schema +struct<> +-- !query 15430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15431 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15431 schema +struct<> +-- !query 15431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15432 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15432 schema +struct<> +-- !query 15432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15433 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 15433 schema +struct<> +-- !query 15433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15434 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 15434 schema +struct<> +-- !query 15434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15435 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 15435 schema +struct<> +-- !query 15435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15436 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 15436 schema +struct<> +-- !query 15436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15437 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 15437 schema +struct<> +-- !query 15437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15438 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 15438 schema +struct<> +-- !query 15438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15439 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 15439 schema +struct<> +-- !query 15439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15440 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 15440 schema +struct<> +-- !query 15440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15441 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 15441 schema +struct<> +-- !query 15441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15442 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 15442 schema +struct<> +-- !query 15442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15443 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15443 schema +struct<> +-- !query 15443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15444 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15444 schema +struct<> +-- !query 15444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15445 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 15445 schema +struct<> +-- !query 15445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15446 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 15446 schema +struct<> +-- !query 15446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15447 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 15447 schema +struct<> +-- !query 15447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15448 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 15448 schema +struct<> +-- !query 15448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15449 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 15449 schema +struct<> +-- !query 15449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15450 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 15450 schema +struct<> +-- !query 15450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15451 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 15451 schema +struct<> +-- !query 15451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15452 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 15452 schema +struct<> +-- !query 15452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15453 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 15453 schema +struct<> +-- !query 15453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15454 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 15454 schema +struct<> +-- !query 15454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15455 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15455 schema +struct<> +-- !query 15455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15456 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15456 schema +struct<> +-- !query 15456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15457 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 15457 schema +struct<> +-- !query 15457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15458 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 15458 schema +struct<> +-- !query 15458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15459 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 15459 schema +struct<> +-- !query 15459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15460 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 15460 schema +struct<> +-- !query 15460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15461 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 15461 schema +struct<> +-- !query 15461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15462 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 15462 schema +struct<> +-- !query 15462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15463 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 15463 schema +struct<> +-- !query 15463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15464 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 15464 schema +struct<> +-- !query 15464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15465 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 15465 schema +struct<> +-- !query 15465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15466 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 15466 schema +struct<> +-- !query 15466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15467 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15467 schema +struct<> +-- !query 15467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15468 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15468 schema +struct<> +-- !query 15468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15469 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 15469 schema +struct<> +-- !query 15469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15470 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 15470 schema +struct<> +-- !query 15470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15471 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 15471 schema +struct<> +-- !query 15471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15472 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 15472 schema +struct<> +-- !query 15472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15473 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 15473 schema +struct<> +-- !query 15473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15474 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 15474 schema +struct<> +-- !query 15474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15475 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 15475 schema +struct<> +-- !query 15475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15476 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 15476 schema +struct<> +-- !query 15476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15477 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 15477 schema +struct<> +-- !query 15477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15478 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 15478 schema +struct<> +-- !query 15478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15479 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15479 schema +struct<> +-- !query 15479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15480 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15480 schema +struct<> +-- !query 15480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15481 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 15481 schema +struct<> +-- !query 15481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15482 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 15482 schema +struct<> +-- !query 15482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15483 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 15483 schema +struct<> +-- !query 15483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15484 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 15484 schema +struct<> +-- !query 15484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15485 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 15485 schema +struct<> +-- !query 15485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15486 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 15486 schema +struct<> +-- !query 15486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15487 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 15487 schema +struct<> +-- !query 15487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15488 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 15488 schema +struct<> +-- !query 15488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15489 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 15489 schema +struct<> +-- !query 15489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15490 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 15490 schema +struct<> +-- !query 15490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15491 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15491 schema +struct<> +-- !query 15491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15492 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15492 schema +struct<> +-- !query 15492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15493 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 15493 schema +struct<> +-- !query 15493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15494 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 15494 schema +struct<> +-- !query 15494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15495 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 15495 schema +struct<> +-- !query 15495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15496 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 15496 schema +struct<> +-- !query 15496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15497 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 15497 schema +struct<> +-- !query 15497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15498 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 15498 schema +struct<> +-- !query 15498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15499 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 15499 schema +struct<> +-- !query 15499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15500 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 15500 schema +struct<> +-- !query 15500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15501 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 15501 schema +struct<> +-- !query 15501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15502 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 15502 schema +struct<> +-- !query 15502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15503 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15503 schema +struct<> +-- !query 15503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15504 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15504 schema +struct<> +-- !query 15504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15505 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 15505 schema +struct<> +-- !query 15505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 15506 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 15506 schema +struct<> +-- !query 15506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 15507 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 15507 schema +struct<> +-- !query 15507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 15508 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 15508 schema +struct<> +-- !query 15508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 15509 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 15509 schema +struct<> +-- !query 15509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 15510 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 15510 schema +struct<> +-- !query 15510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 15511 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 15511 schema +struct<> +-- !query 15511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 15512 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 15512 schema +struct> +-- !query 15512 output +{[B@1148cf25:"2017-12-11 09:30:00",[B@2af64863:"2"} + + +-- !query 15513 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 15513 schema +struct<> +-- !query 15513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 15514 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 15514 schema +struct<> +-- !query 15514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 15515 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15515 schema +struct> +-- !query 15515 output +{[B@24c6d6ac:2017-12-12 09:30:00.0,[B@7d91f23b:2017-12-11 09:30:00.0} + + +-- !query 15516 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15516 schema +struct> +-- !query 15516 output +{[B@430f5757:2017-12-11 09:30:00.0,[B@658a12d6:2017-12-12 00:00:00.0} + + +-- !query 15517 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 15517 schema +struct<> +-- !query 15517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15518 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 15518 schema +struct<> +-- !query 15518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15519 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 15519 schema +struct<> +-- !query 15519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15520 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 15520 schema +struct<> +-- !query 15520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15521 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 15521 schema +struct<> +-- !query 15521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15522 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 15522 schema +struct<> +-- !query 15522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15523 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 15523 schema +struct<> +-- !query 15523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15524 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 15524 schema +struct<> +-- !query 15524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15525 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 15525 schema +struct<> +-- !query 15525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15526 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 15526 schema +struct<> +-- !query 15526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15527 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15527 schema +struct<> +-- !query 15527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15528 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15528 schema +struct<> +-- !query 15528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15529 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 15529 schema +struct<> +-- !query 15529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15530 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 15530 schema +struct<> +-- !query 15530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15531 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 15531 schema +struct<> +-- !query 15531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15532 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 15532 schema +struct<> +-- !query 15532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15533 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 15533 schema +struct<> +-- !query 15533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15534 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 15534 schema +struct<> +-- !query 15534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15535 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 15535 schema +struct<> +-- !query 15535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15536 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 15536 schema +struct<> +-- !query 15536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15537 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 15537 schema +struct<> +-- !query 15537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15538 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 15538 schema +struct<> +-- !query 15538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15539 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15539 schema +struct<> +-- !query 15539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15540 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15540 schema +struct<> +-- !query 15540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15541 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 15541 schema +struct<> +-- !query 15541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15542 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 15542 schema +struct<> +-- !query 15542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15543 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 15543 schema +struct<> +-- !query 15543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15544 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 15544 schema +struct<> +-- !query 15544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15545 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 15545 schema +struct<> +-- !query 15545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15546 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 15546 schema +struct<> +-- !query 15546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15547 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 15547 schema +struct<> +-- !query 15547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15548 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 15548 schema +struct<> +-- !query 15548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15549 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 15549 schema +struct<> +-- !query 15549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15550 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 15550 schema +struct<> +-- !query 15550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15551 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15551 schema +struct<> +-- !query 15551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15552 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15552 schema +struct<> +-- !query 15552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15553 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 15553 schema +struct<> +-- !query 15553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15554 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 15554 schema +struct<> +-- !query 15554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15555 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 15555 schema +struct<> +-- !query 15555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15556 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 15556 schema +struct<> +-- !query 15556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15557 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 15557 schema +struct<> +-- !query 15557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15558 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 15558 schema +struct<> +-- !query 15558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15559 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 15559 schema +struct<> +-- !query 15559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15560 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 15560 schema +struct<> +-- !query 15560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15561 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 15561 schema +struct<> +-- !query 15561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15562 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 15562 schema +struct<> +-- !query 15562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15563 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15563 schema +struct<> +-- !query 15563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15564 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15564 schema +struct<> +-- !query 15564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 15565 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 15565 schema +struct<> +-- !query 15565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15566 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 15566 schema +struct<> +-- !query 15566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15567 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 15567 schema +struct<> +-- !query 15567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15568 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 15568 schema +struct<> +-- !query 15568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15569 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 15569 schema +struct<> +-- !query 15569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15570 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 15570 schema +struct<> +-- !query 15570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15571 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 15571 schema +struct<> +-- !query 15571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15572 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 15572 schema +struct<> +-- !query 15572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15573 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 15573 schema +struct<> +-- !query 15573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15574 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 15574 schema +struct<> +-- !query 15574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15575 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15575 schema +struct<> +-- !query 15575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15576 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15576 schema +struct<> +-- !query 15576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 15577 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 15577 schema +struct<> +-- !query 15577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15578 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 15578 schema +struct<> +-- !query 15578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15579 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 15579 schema +struct<> +-- !query 15579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15580 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 15580 schema +struct<> +-- !query 15580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15581 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 15581 schema +struct<> +-- !query 15581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15582 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 15582 schema +struct<> +-- !query 15582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15583 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 15583 schema +struct<> +-- !query 15583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15584 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 15584 schema +struct<> +-- !query 15584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15585 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 15585 schema +struct<> +-- !query 15585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15586 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 15586 schema +struct<> +-- !query 15586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15587 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15587 schema +struct<> +-- !query 15587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15588 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15588 schema +struct<> +-- !query 15588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 15589 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 15589 schema +struct<> +-- !query 15589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15590 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 15590 schema +struct<> +-- !query 15590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15591 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 15591 schema +struct<> +-- !query 15591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15592 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 15592 schema +struct<> +-- !query 15592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15593 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 15593 schema +struct<> +-- !query 15593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15594 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 15594 schema +struct<> +-- !query 15594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15595 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 15595 schema +struct<> +-- !query 15595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15596 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 15596 schema +struct<> +-- !query 15596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15597 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 15597 schema +struct<> +-- !query 15597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15598 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 15598 schema +struct<> +-- !query 15598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15599 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15599 schema +struct<> +-- !query 15599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15600 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15600 schema +struct<> +-- !query 15600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 15601 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 15601 schema +struct<> +-- !query 15601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15602 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 15602 schema +struct<> +-- !query 15602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15603 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 15603 schema +struct<> +-- !query 15603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15604 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 15604 schema +struct<> +-- !query 15604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15605 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 15605 schema +struct<> +-- !query 15605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15606 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 15606 schema +struct<> +-- !query 15606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15607 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 15607 schema +struct<> +-- !query 15607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15608 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 15608 schema +struct<> +-- !query 15608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15609 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 15609 schema +struct<> +-- !query 15609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15610 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 15610 schema +struct<> +-- !query 15610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15611 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15611 schema +struct<> +-- !query 15611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15612 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15612 schema +struct<> +-- !query 15612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 15613 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 15613 schema +struct<> +-- !query 15613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15614 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 15614 schema +struct<> +-- !query 15614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15615 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 15615 schema +struct<> +-- !query 15615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15616 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 15616 schema +struct<> +-- !query 15616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15617 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 15617 schema +struct<> +-- !query 15617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15618 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 15618 schema +struct<> +-- !query 15618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15619 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 15619 schema +struct<> +-- !query 15619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15620 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 15620 schema +struct<> +-- !query 15620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15621 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 15621 schema +struct<> +-- !query 15621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15622 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 15622 schema +struct<> +-- !query 15622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15623 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15623 schema +struct<> +-- !query 15623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15624 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15624 schema +struct<> +-- !query 15624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 15625 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 15625 schema +struct<> +-- !query 15625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15626 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 15626 schema +struct<> +-- !query 15626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15627 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 15627 schema +struct<> +-- !query 15627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15628 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 15628 schema +struct<> +-- !query 15628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15629 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 15629 schema +struct<> +-- !query 15629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15630 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 15630 schema +struct<> +-- !query 15630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15631 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 15631 schema +struct<> +-- !query 15631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15632 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 15632 schema +struct<> +-- !query 15632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15633 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 15633 schema +struct<> +-- !query 15633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15634 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 15634 schema +struct<> +-- !query 15634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15635 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15635 schema +struct<> +-- !query 15635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15636 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15636 schema +struct<> +-- !query 15636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 15637 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 15637 schema +struct<> +-- !query 15637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15638 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 15638 schema +struct<> +-- !query 15638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15639 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 15639 schema +struct<> +-- !query 15639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15640 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 15640 schema +struct<> +-- !query 15640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15641 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 15641 schema +struct<> +-- !query 15641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15642 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 15642 schema +struct<> +-- !query 15642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15643 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 15643 schema +struct<> +-- !query 15643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15644 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 15644 schema +struct<> +-- !query 15644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15645 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 15645 schema +struct<> +-- !query 15645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15646 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 15646 schema +struct<> +-- !query 15646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15647 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15647 schema +struct<> +-- !query 15647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15648 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15648 schema +struct<> +-- !query 15648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 15649 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 15649 schema +struct<> +-- !query 15649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 15650 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 15650 schema +struct<> +-- !query 15650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 15651 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 15651 schema +struct<> +-- !query 15651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 15652 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 15652 schema +struct<> +-- !query 15652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 15653 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 15653 schema +struct<> +-- !query 15653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 15654 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 15654 schema +struct<> +-- !query 15654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 15655 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 15655 schema +struct<> +-- !query 15655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 15656 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 15656 schema +struct> +-- !query 15656 output +{[B@25ffb6b6:"2017-12-11",[B@4086c558:"2"} + + +-- !query 15657 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 15657 schema +struct<> +-- !query 15657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 15658 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 15658 schema +struct<> +-- !query 15658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 15659 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15659 schema +struct> +-- !query 15659 output +{[B@6fbf9a9f:2017-12-11 00:00:00.0,[B@73bbd1d7:2017-12-12 09:30:00.0} + + +-- !query 15660 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15660 schema +struct> +-- !query 15660 output +{[B@1519ad88:2017-12-12,[B@7f06caf8:2017-12-11} + + +-- !query 15661 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 15661 schema +struct<> +-- !query 15661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15662 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 15662 schema +struct<> +-- !query 15662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15663 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 15663 schema +struct<> +-- !query 15663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15664 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 15664 schema +struct<> +-- !query 15664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15665 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 15665 schema +struct<> +-- !query 15665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15666 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 15666 schema +struct<> +-- !query 15666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15667 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 15667 schema +struct<> +-- !query 15667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15668 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 15668 schema +struct<> +-- !query 15668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15669 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 15669 schema +struct<> +-- !query 15669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15670 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 15670 schema +struct<> +-- !query 15670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15671 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15671 schema +struct<> +-- !query 15671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15672 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15672 schema +struct<> +-- !query 15672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 15673 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 15673 schema +struct<> +-- !query 15673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15674 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 15674 schema +struct<> +-- !query 15674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15675 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 15675 schema +struct<> +-- !query 15675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15676 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 15676 schema +struct<> +-- !query 15676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15677 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 15677 schema +struct<> +-- !query 15677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15678 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 15678 schema +struct<> +-- !query 15678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15679 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 15679 schema +struct<> +-- !query 15679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15680 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 15680 schema +struct<> +-- !query 15680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15681 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 15681 schema +struct<> +-- !query 15681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15682 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 15682 schema +struct<> +-- !query 15682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15683 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15683 schema +struct<> +-- !query 15683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15684 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15684 schema +struct<> +-- !query 15684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 15685 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 15685 schema +struct<> +-- !query 15685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15686 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 15686 schema +struct<> +-- !query 15686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15687 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 15687 schema +struct<> +-- !query 15687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15688 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 15688 schema +struct<> +-- !query 15688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15689 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 15689 schema +struct<> +-- !query 15689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15690 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 15690 schema +struct<> +-- !query 15690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15691 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 15691 schema +struct<> +-- !query 15691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15692 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 15692 schema +struct<> +-- !query 15692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15693 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 15693 schema +struct<> +-- !query 15693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15694 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 15694 schema +struct<> +-- !query 15694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15695 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15695 schema +struct<> +-- !query 15695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15696 +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15696 schema +struct<> +-- !query 15696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 15697 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 15697 schema +struct<> +-- !query 15697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15698 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 15698 schema +struct<> +-- !query 15698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15699 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 15699 schema +struct<> +-- !query 15699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15700 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 15700 schema +struct<> +-- !query 15700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15701 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 15701 schema +struct<> +-- !query 15701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15702 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 15702 schema +struct<> +-- !query 15702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15703 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 15703 schema +struct<> +-- !query 15703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15704 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 15704 schema +struct<> +-- !query 15704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15705 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 15705 schema +struct<> +-- !query 15705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15706 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 15706 schema +struct<> +-- !query 15706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15707 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15707 schema +struct<> +-- !query 15707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15708 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15708 schema +struct<> +-- !query 15708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15709 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 15709 schema +struct<> +-- !query 15709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15710 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 15710 schema +struct<> +-- !query 15710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15711 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 15711 schema +struct<> +-- !query 15711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15712 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 15712 schema +struct<> +-- !query 15712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15713 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 15713 schema +struct<> +-- !query 15713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15714 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 15714 schema +struct<> +-- !query 15714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15715 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 15715 schema +struct<> +-- !query 15715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15716 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 15716 schema +struct<> +-- !query 15716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15717 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 15717 schema +struct<> +-- !query 15717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15718 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 15718 schema +struct<> +-- !query 15718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15719 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15719 schema +struct<> +-- !query 15719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15720 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15720 schema +struct<> +-- !query 15720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15721 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 15721 schema +struct<> +-- !query 15721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15722 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 15722 schema +struct<> +-- !query 15722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15723 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 15723 schema +struct<> +-- !query 15723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15724 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 15724 schema +struct<> +-- !query 15724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15725 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 15725 schema +struct<> +-- !query 15725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15726 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 15726 schema +struct<> +-- !query 15726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15727 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 15727 schema +struct<> +-- !query 15727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15728 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 15728 schema +struct<> +-- !query 15728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15729 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 15729 schema +struct<> +-- !query 15729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15730 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 15730 schema +struct<> +-- !query 15730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15731 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15731 schema +struct<> +-- !query 15731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15732 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15732 schema +struct<> +-- !query 15732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15733 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 15733 schema +struct<> +-- !query 15733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15734 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 15734 schema +struct<> +-- !query 15734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15735 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 15735 schema +struct<> +-- !query 15735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15736 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 15736 schema +struct<> +-- !query 15736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15737 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 15737 schema +struct<> +-- !query 15737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15738 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 15738 schema +struct<> +-- !query 15738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15739 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 15739 schema +struct<> +-- !query 15739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15740 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 15740 schema +struct<> +-- !query 15740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15741 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 15741 schema +struct<> +-- !query 15741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15742 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 15742 schema +struct<> +-- !query 15742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15743 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15743 schema +struct<> +-- !query 15743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15744 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15744 schema +struct<> +-- !query 15744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15745 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 15745 schema +struct<> +-- !query 15745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15746 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 15746 schema +struct<> +-- !query 15746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15747 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 15747 schema +struct<> +-- !query 15747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15748 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 15748 schema +struct<> +-- !query 15748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15749 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 15749 schema +struct<> +-- !query 15749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15750 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 15750 schema +struct<> +-- !query 15750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15751 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 15751 schema +struct<> +-- !query 15751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15752 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 15752 schema +struct<> +-- !query 15752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15753 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 15753 schema +struct<> +-- !query 15753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15754 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 15754 schema +struct<> +-- !query 15754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15755 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15755 schema +struct<> +-- !query 15755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15756 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15756 schema +struct<> +-- !query 15756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15757 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 15757 schema +struct<> +-- !query 15757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15758 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 15758 schema +struct<> +-- !query 15758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15759 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 15759 schema +struct<> +-- !query 15759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15760 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 15760 schema +struct<> +-- !query 15760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15761 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 15761 schema +struct<> +-- !query 15761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15762 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 15762 schema +struct<> +-- !query 15762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15763 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 15763 schema +struct<> +-- !query 15763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15764 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 15764 schema +struct<> +-- !query 15764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15765 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 15765 schema +struct<> +-- !query 15765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15766 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 15766 schema +struct<> +-- !query 15766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15767 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15767 schema +struct<> +-- !query 15767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15768 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15768 schema +struct<> +-- !query 15768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15769 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 15769 schema +struct<> +-- !query 15769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15770 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 15770 schema +struct<> +-- !query 15770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15771 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 15771 schema +struct<> +-- !query 15771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15772 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 15772 schema +struct<> +-- !query 15772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15773 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 15773 schema +struct<> +-- !query 15773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15774 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 15774 schema +struct<> +-- !query 15774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15775 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 15775 schema +struct<> +-- !query 15775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15776 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 15776 schema +struct<> +-- !query 15776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15777 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 15777 schema +struct<> +-- !query 15777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15778 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 15778 schema +struct<> +-- !query 15778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15779 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15779 schema +struct<> +-- !query 15779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15780 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15780 schema +struct<> +-- !query 15780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15781 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 15781 schema +struct<> +-- !query 15781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15782 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 15782 schema +struct<> +-- !query 15782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15783 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 15783 schema +struct<> +-- !query 15783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15784 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 15784 schema +struct<> +-- !query 15784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15785 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 15785 schema +struct<> +-- !query 15785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15786 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 15786 schema +struct<> +-- !query 15786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15787 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 15787 schema +struct<> +-- !query 15787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15788 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 15788 schema +struct<> +-- !query 15788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15789 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 15789 schema +struct<> +-- !query 15789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15790 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 15790 schema +struct<> +-- !query 15790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15791 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15791 schema +struct<> +-- !query 15791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15792 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15792 schema +struct<> +-- !query 15792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15793 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 15793 schema +struct<> +-- !query 15793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15794 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 15794 schema +struct<> +-- !query 15794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15795 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 15795 schema +struct<> +-- !query 15795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15796 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 15796 schema +struct<> +-- !query 15796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15797 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 15797 schema +struct<> +-- !query 15797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15798 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 15798 schema +struct<> +-- !query 15798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15799 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 15799 schema +struct<> +-- !query 15799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15800 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 15800 schema +struct<> +-- !query 15800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15801 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 15801 schema +struct<> +-- !query 15801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15802 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 15802 schema +struct<> +-- !query 15802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15803 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15803 schema +struct<> +-- !query 15803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15804 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15804 schema +struct<> +-- !query 15804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15805 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 15805 schema +struct> +-- !query 15805 output +{true:2} + + +-- !query 15806 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 15806 schema +struct> +-- !query 15806 output +{true:2} + + +-- !query 15807 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 15807 schema +struct> +-- !query 15807 output +{true:2} + + +-- !query 15808 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 15808 schema +struct> +-- !query 15808 output +{true:2} + + +-- !query 15809 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 15809 schema +struct> +-- !query 15809 output +{true:2.0} + + +-- !query 15810 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 15810 schema +struct> +-- !query 15810 output +{true:2.0} + + +-- !query 15811 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 15811 schema +struct> +-- !query 15811 output +{true:2} + + +-- !query 15812 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 15812 schema +struct> +-- !query 15812 output +{true:"2"} + + +-- !query 15813 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 15813 schema +struct<> +-- !query 15813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 15814 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 15814 schema +struct<> +-- !query 15814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 15815 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15815 schema +struct<> +-- !query 15815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 15816 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15816 schema +struct<> +-- !query 15816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 15817 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 15817 schema +struct<> +-- !query 15817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15818 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 15818 schema +struct<> +-- !query 15818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15819 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 15819 schema +struct<> +-- !query 15819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15820 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 15820 schema +struct<> +-- !query 15820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15821 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 15821 schema +struct<> +-- !query 15821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15822 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 15822 schema +struct<> +-- !query 15822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15823 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 15823 schema +struct<> +-- !query 15823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15824 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 15824 schema +struct<> +-- !query 15824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15825 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 15825 schema +struct<> +-- !query 15825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15826 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 15826 schema +struct<> +-- !query 15826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15827 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15827 schema +struct<> +-- !query 15827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15828 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15828 schema +struct<> +-- !query 15828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15829 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 15829 schema +struct<> +-- !query 15829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15830 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 15830 schema +struct<> +-- !query 15830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15831 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 15831 schema +struct<> +-- !query 15831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15832 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 15832 schema +struct<> +-- !query 15832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15833 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 15833 schema +struct<> +-- !query 15833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15834 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 15834 schema +struct<> +-- !query 15834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15835 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 15835 schema +struct<> +-- !query 15835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15836 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 15836 schema +struct<> +-- !query 15836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15837 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 15837 schema +struct<> +-- !query 15837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15838 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 15838 schema +struct<> +-- !query 15838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15839 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15839 schema +struct<> +-- !query 15839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15840 +SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15840 schema +struct<> +-- !query 15840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15841 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 15841 schema +struct<> +-- !query 15841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15842 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 15842 schema +struct<> +-- !query 15842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15843 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 15843 schema +struct<> +-- !query 15843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15844 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 15844 schema +struct<> +-- !query 15844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15845 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 15845 schema +struct<> +-- !query 15845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15846 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 15846 schema +struct<> +-- !query 15846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15847 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 15847 schema +struct<> +-- !query 15847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15848 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 15848 schema +struct<> +-- !query 15848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15849 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 15849 schema +struct<> +-- !query 15849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15850 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 15850 schema +struct<> +-- !query 15850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15851 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15851 schema +struct<> +-- !query 15851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15852 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15852 schema +struct<> +-- !query 15852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15853 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 15853 schema +struct<> +-- !query 15853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15854 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 15854 schema +struct<> +-- !query 15854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15855 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 15855 schema +struct<> +-- !query 15855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15856 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 15856 schema +struct<> +-- !query 15856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15857 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 15857 schema +struct<> +-- !query 15857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15858 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 15858 schema +struct<> +-- !query 15858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15859 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 15859 schema +struct<> +-- !query 15859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15860 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 15860 schema +struct<> +-- !query 15860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15861 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 15861 schema +struct<> +-- !query 15861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15862 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 15862 schema +struct<> +-- !query 15862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15863 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15863 schema +struct<> +-- !query 15863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15864 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15864 schema +struct<> +-- !query 15864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15865 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 15865 schema +struct<> +-- !query 15865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15866 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 15866 schema +struct<> +-- !query 15866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15867 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 15867 schema +struct<> +-- !query 15867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15868 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 15868 schema +struct<> +-- !query 15868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15869 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 15869 schema +struct<> +-- !query 15869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15870 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 15870 schema +struct<> +-- !query 15870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15871 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 15871 schema +struct<> +-- !query 15871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15872 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 15872 schema +struct<> +-- !query 15872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15873 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 15873 schema +struct<> +-- !query 15873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15874 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 15874 schema +struct<> +-- !query 15874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15875 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15875 schema +struct<> +-- !query 15875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15876 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15876 schema +struct<> +-- !query 15876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 15877 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 15877 schema +struct<> +-- !query 15877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15878 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 15878 schema +struct<> +-- !query 15878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15879 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 15879 schema +struct<> +-- !query 15879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15880 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 15880 schema +struct<> +-- !query 15880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15881 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 15881 schema +struct<> +-- !query 15881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15882 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 15882 schema +struct<> +-- !query 15882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15883 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 15883 schema +struct<> +-- !query 15883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15884 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 15884 schema +struct<> +-- !query 15884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15885 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 15885 schema +struct<> +-- !query 15885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15886 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 15886 schema +struct<> +-- !query 15886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15887 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15887 schema +struct<> +-- !query 15887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15888 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15888 schema +struct<> +-- !query 15888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 15889 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 15889 schema +struct<> +-- !query 15889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15890 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 15890 schema +struct<> +-- !query 15890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15891 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 15891 schema +struct<> +-- !query 15891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15892 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 15892 schema +struct<> +-- !query 15892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15893 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 15893 schema +struct<> +-- !query 15893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15894 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 15894 schema +struct<> +-- !query 15894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15895 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 15895 schema +struct<> +-- !query 15895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15896 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 15896 schema +struct<> +-- !query 15896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15897 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 15897 schema +struct<> +-- !query 15897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15898 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 15898 schema +struct<> +-- !query 15898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15899 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15899 schema +struct<> +-- !query 15899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15900 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15900 schema +struct<> +-- !query 15900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 15901 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 15901 schema +struct<> +-- !query 15901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15902 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 15902 schema +struct<> +-- !query 15902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15903 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 15903 schema +struct<> +-- !query 15903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15904 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 15904 schema +struct<> +-- !query 15904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15905 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 15905 schema +struct<> +-- !query 15905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15906 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 15906 schema +struct<> +-- !query 15906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15907 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 15907 schema +struct<> +-- !query 15907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15908 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 15908 schema +struct<> +-- !query 15908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15909 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 15909 schema +struct<> +-- !query 15909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15910 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 15910 schema +struct<> +-- !query 15910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15911 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15911 schema +struct<> +-- !query 15911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15912 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15912 schema +struct<> +-- !query 15912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 15913 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 15913 schema +struct<> +-- !query 15913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15914 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 15914 schema +struct<> +-- !query 15914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15915 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 15915 schema +struct<> +-- !query 15915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15916 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 15916 schema +struct<> +-- !query 15916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15917 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 15917 schema +struct<> +-- !query 15917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15918 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 15918 schema +struct<> +-- !query 15918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15919 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 15919 schema +struct<> +-- !query 15919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15920 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 15920 schema +struct<> +-- !query 15920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15921 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 15921 schema +struct<> +-- !query 15921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15922 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 15922 schema +struct<> +-- !query 15922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15923 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15923 schema +struct<> +-- !query 15923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15924 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15924 schema +struct<> +-- !query 15924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 15925 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 15925 schema +struct<> +-- !query 15925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15926 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 15926 schema +struct<> +-- !query 15926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15927 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 15927 schema +struct<> +-- !query 15927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15928 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 15928 schema +struct<> +-- !query 15928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15929 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 15929 schema +struct<> +-- !query 15929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15930 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 15930 schema +struct<> +-- !query 15930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15931 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 15931 schema +struct<> +-- !query 15931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15932 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 15932 schema +struct<> +-- !query 15932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15933 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 15933 schema +struct<> +-- !query 15933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15934 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 15934 schema +struct<> +-- !query 15934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15935 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15935 schema +struct<> +-- !query 15935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15936 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15936 schema +struct<> +-- !query 15936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 15937 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 15937 schema +struct<> +-- !query 15937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15938 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 15938 schema +struct<> +-- !query 15938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15939 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 15939 schema +struct<> +-- !query 15939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15940 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 15940 schema +struct<> +-- !query 15940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15941 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 15941 schema +struct<> +-- !query 15941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15942 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 15942 schema +struct<> +-- !query 15942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15943 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 15943 schema +struct<> +-- !query 15943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15944 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 15944 schema +struct<> +-- !query 15944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15945 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 15945 schema +struct<> +-- !query 15945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15946 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 15946 schema +struct<> +-- !query 15946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15947 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15947 schema +struct<> +-- !query 15947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15948 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15948 schema +struct<> +-- !query 15948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 15949 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 15949 schema +struct> +-- !query 15949 output +{true:2} + + +-- !query 15950 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 15950 schema +struct> +-- !query 15950 output +{true:2} + + +-- !query 15951 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 15951 schema +struct> +-- !query 15951 output +{true:2} + + +-- !query 15952 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 15952 schema +struct> +-- !query 15952 output +{true:2} + + +-- !query 15953 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 15953 schema +struct> +-- !query 15953 output +{true:2.0} + + +-- !query 15954 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 15954 schema +struct> +-- !query 15954 output +{true:2.0} + + +-- !query 15955 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 15955 schema +struct> +-- !query 15955 output +{true:2} + + +-- !query 15956 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 15956 schema +struct> +-- !query 15956 output +{true:"2"} + + +-- !query 15957 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 15957 schema +struct<> +-- !query 15957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 15958 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 15958 schema +struct<> +-- !query 15958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 15959 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15959 schema +struct<> +-- !query 15959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 15960 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15960 schema +struct<> +-- !query 15960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 15961 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 15961 schema +struct<> +-- !query 15961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15962 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 15962 schema +struct<> +-- !query 15962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15963 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 15963 schema +struct<> +-- !query 15963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15964 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 15964 schema +struct<> +-- !query 15964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15965 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 15965 schema +struct<> +-- !query 15965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15966 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 15966 schema +struct<> +-- !query 15966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15967 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 15967 schema +struct<> +-- !query 15967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15968 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 15968 schema +struct<> +-- !query 15968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15969 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 15969 schema +struct<> +-- !query 15969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15970 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 15970 schema +struct<> +-- !query 15970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15971 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15971 schema +struct<> +-- !query 15971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15972 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15972 schema +struct<> +-- !query 15972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 15973 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 15973 schema +struct<> +-- !query 15973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15974 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 15974 schema +struct<> +-- !query 15974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15975 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 15975 schema +struct<> +-- !query 15975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15976 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 15976 schema +struct<> +-- !query 15976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15977 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 15977 schema +struct<> +-- !query 15977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15978 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 15978 schema +struct<> +-- !query 15978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15979 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 15979 schema +struct<> +-- !query 15979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15980 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 15980 schema +struct<> +-- !query 15980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15981 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 15981 schema +struct<> +-- !query 15981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15982 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 15982 schema +struct<> +-- !query 15982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15983 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15983 schema +struct<> +-- !query 15983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15984 +SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15984 schema +struct<> +-- !query 15984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 15985 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 15985 schema +struct<> +-- !query 15985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15986 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 15986 schema +struct<> +-- !query 15986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15987 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 15987 schema +struct<> +-- !query 15987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15988 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 15988 schema +struct<> +-- !query 15988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15989 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 15989 schema +struct<> +-- !query 15989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15990 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 15990 schema +struct<> +-- !query 15990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15991 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 15991 schema +struct<> +-- !query 15991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15992 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 15992 schema +struct<> +-- !query 15992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15993 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 15993 schema +struct<> +-- !query 15993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15994 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 15994 schema +struct<> +-- !query 15994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15995 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 15995 schema +struct<> +-- !query 15995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15996 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 15996 schema +struct<> +-- !query 15996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 15997 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 15997 schema +struct<> +-- !query 15997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15998 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 15998 schema +struct<> +-- !query 15998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 15999 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 15999 schema +struct<> +-- !query 15999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16000 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 16000 schema +struct<> +-- !query 16000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16001 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 16001 schema +struct<> +-- !query 16001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16002 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 16002 schema +struct<> +-- !query 16002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16003 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 16003 schema +struct<> +-- !query 16003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16004 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 16004 schema +struct<> +-- !query 16004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16005 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 16005 schema +struct<> +-- !query 16005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16006 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 16006 schema +struct<> +-- !query 16006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16007 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16007 schema +struct<> +-- !query 16007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16008 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16008 schema +struct<> +-- !query 16008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16009 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 16009 schema +struct<> +-- !query 16009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16010 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 16010 schema +struct<> +-- !query 16010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16011 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 16011 schema +struct<> +-- !query 16011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16012 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 16012 schema +struct<> +-- !query 16012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16013 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 16013 schema +struct<> +-- !query 16013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16014 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 16014 schema +struct<> +-- !query 16014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16015 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 16015 schema +struct<> +-- !query 16015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16016 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 16016 schema +struct<> +-- !query 16016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16017 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 16017 schema +struct<> +-- !query 16017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16018 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 16018 schema +struct<> +-- !query 16018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16019 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16019 schema +struct<> +-- !query 16019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16020 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16020 schema +struct<> +-- !query 16020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16021 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 16021 schema +struct<> +-- !query 16021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16022 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 16022 schema +struct<> +-- !query 16022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16023 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 16023 schema +struct<> +-- !query 16023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16024 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 16024 schema +struct<> +-- !query 16024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16025 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 16025 schema +struct<> +-- !query 16025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16026 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 16026 schema +struct<> +-- !query 16026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16027 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 16027 schema +struct<> +-- !query 16027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16028 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 16028 schema +struct<> +-- !query 16028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16029 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 16029 schema +struct<> +-- !query 16029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16030 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 16030 schema +struct<> +-- !query 16030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16031 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16031 schema +struct<> +-- !query 16031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16032 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16032 schema +struct<> +-- !query 16032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16033 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 16033 schema +struct<> +-- !query 16033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16034 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 16034 schema +struct<> +-- !query 16034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16035 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 16035 schema +struct<> +-- !query 16035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16036 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 16036 schema +struct<> +-- !query 16036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16037 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 16037 schema +struct<> +-- !query 16037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16038 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 16038 schema +struct<> +-- !query 16038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16039 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 16039 schema +struct<> +-- !query 16039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16040 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 16040 schema +struct<> +-- !query 16040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16041 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 16041 schema +struct<> +-- !query 16041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16042 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 16042 schema +struct<> +-- !query 16042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16043 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16043 schema +struct<> +-- !query 16043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16044 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16044 schema +struct<> +-- !query 16044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16045 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 16045 schema +struct<> +-- !query 16045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16046 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 16046 schema +struct<> +-- !query 16046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16047 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 16047 schema +struct<> +-- !query 16047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16048 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 16048 schema +struct<> +-- !query 16048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16049 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 16049 schema +struct<> +-- !query 16049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16050 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 16050 schema +struct<> +-- !query 16050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16051 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 16051 schema +struct<> +-- !query 16051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16052 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 16052 schema +struct<> +-- !query 16052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16053 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 16053 schema +struct<> +-- !query 16053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16054 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 16054 schema +struct<> +-- !query 16054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16055 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16055 schema +struct<> +-- !query 16055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16056 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16056 schema +struct<> +-- !query 16056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16057 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 16057 schema +struct<> +-- !query 16057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16058 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 16058 schema +struct<> +-- !query 16058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16059 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 16059 schema +struct<> +-- !query 16059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16060 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 16060 schema +struct<> +-- !query 16060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16061 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 16061 schema +struct<> +-- !query 16061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16062 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 16062 schema +struct<> +-- !query 16062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16063 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 16063 schema +struct<> +-- !query 16063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16064 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 16064 schema +struct<> +-- !query 16064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16065 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 16065 schema +struct<> +-- !query 16065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16066 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 16066 schema +struct<> +-- !query 16066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16067 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16067 schema +struct<> +-- !query 16067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16068 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16068 schema +struct<> +-- !query 16068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16069 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 16069 schema +struct<> +-- !query 16069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16070 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 16070 schema +struct<> +-- !query 16070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16071 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 16071 schema +struct<> +-- !query 16071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16072 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 16072 schema +struct<> +-- !query 16072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16073 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 16073 schema +struct<> +-- !query 16073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16074 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 16074 schema +struct<> +-- !query 16074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16075 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 16075 schema +struct<> +-- !query 16075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16076 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 16076 schema +struct<> +-- !query 16076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16077 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 16077 schema +struct<> +-- !query 16077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16078 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 16078 schema +struct<> +-- !query 16078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16079 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16079 schema +struct<> +-- !query 16079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16080 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16080 schema +struct<> +-- !query 16080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16081 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 16081 schema +struct<> +-- !query 16081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16082 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 16082 schema +struct<> +-- !query 16082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16083 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 16083 schema +struct<> +-- !query 16083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16084 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 16084 schema +struct<> +-- !query 16084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16085 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 16085 schema +struct<> +-- !query 16085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16086 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 16086 schema +struct<> +-- !query 16086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16087 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 16087 schema +struct<> +-- !query 16087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16088 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 16088 schema +struct<> +-- !query 16088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16089 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 16089 schema +struct<> +-- !query 16089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16090 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 16090 schema +struct<> +-- !query 16090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16091 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16091 schema +struct<> +-- !query 16091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16092 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16092 schema +struct<> +-- !query 16092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16093 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 16093 schema +struct> +-- !query 16093 output +{true:2} + + +-- !query 16094 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 16094 schema +struct> +-- !query 16094 output +{true:2} + + +-- !query 16095 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 16095 schema +struct> +-- !query 16095 output +{true:2} + + +-- !query 16096 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 16096 schema +struct> +-- !query 16096 output +{true:2} + + +-- !query 16097 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 16097 schema +struct> +-- !query 16097 output +{true:2.0} + + +-- !query 16098 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 16098 schema +struct> +-- !query 16098 output +{true:2.0} + + +-- !query 16099 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 16099 schema +struct> +-- !query 16099 output +{true:2} + + +-- !query 16100 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 16100 schema +struct> +-- !query 16100 output +{true:"2"} + + +-- !query 16101 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 16101 schema +struct<> +-- !query 16101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 16102 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 16102 schema +struct<> +-- !query 16102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 16103 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16103 schema +struct<> +-- !query 16103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 16104 +SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16104 schema +struct<> +-- !query 16104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 16105 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 16105 schema +struct<> +-- !query 16105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16106 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 16106 schema +struct<> +-- !query 16106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16107 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 16107 schema +struct<> +-- !query 16107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16108 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 16108 schema +struct<> +-- !query 16108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16109 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 16109 schema +struct<> +-- !query 16109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16110 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 16110 schema +struct<> +-- !query 16110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16111 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 16111 schema +struct<> +-- !query 16111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16112 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 16112 schema +struct<> +-- !query 16112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16113 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 16113 schema +struct<> +-- !query 16113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16114 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 16114 schema +struct<> +-- !query 16114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16115 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16115 schema +struct<> +-- !query 16115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16116 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16116 schema +struct<> +-- !query 16116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16117 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 16117 schema +struct<> +-- !query 16117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16118 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 16118 schema +struct<> +-- !query 16118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16119 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 16119 schema +struct<> +-- !query 16119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16120 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 16120 schema +struct<> +-- !query 16120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16121 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 16121 schema +struct<> +-- !query 16121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16122 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 16122 schema +struct<> +-- !query 16122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16123 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 16123 schema +struct<> +-- !query 16123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16124 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 16124 schema +struct<> +-- !query 16124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16125 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 16125 schema +struct<> +-- !query 16125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16126 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 16126 schema +struct<> +-- !query 16126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16127 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16127 schema +struct<> +-- !query 16127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16128 +SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16128 schema +struct<> +-- !query 16128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16129 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 16129 schema +struct<> +-- !query 16129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16130 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 16130 schema +struct<> +-- !query 16130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16131 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 16131 schema +struct<> +-- !query 16131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16132 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 16132 schema +struct<> +-- !query 16132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16133 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 16133 schema +struct<> +-- !query 16133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16134 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 16134 schema +struct<> +-- !query 16134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16135 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 16135 schema +struct<> +-- !query 16135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16136 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 16136 schema +struct<> +-- !query 16136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16137 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 16137 schema +struct<> +-- !query 16137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16138 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 16138 schema +struct<> +-- !query 16138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16139 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16139 schema +struct<> +-- !query 16139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16140 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16140 schema +struct<> +-- !query 16140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16141 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 16141 schema +struct<> +-- !query 16141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16142 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 16142 schema +struct<> +-- !query 16142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16143 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 16143 schema +struct<> +-- !query 16143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16144 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 16144 schema +struct<> +-- !query 16144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16145 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 16145 schema +struct<> +-- !query 16145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16146 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 16146 schema +struct<> +-- !query 16146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16147 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 16147 schema +struct<> +-- !query 16147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16148 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 16148 schema +struct<> +-- !query 16148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16149 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 16149 schema +struct<> +-- !query 16149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16150 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 16150 schema +struct<> +-- !query 16150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16151 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16151 schema +struct<> +-- !query 16151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16152 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16152 schema +struct<> +-- !query 16152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16153 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 16153 schema +struct<> +-- !query 16153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16154 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 16154 schema +struct<> +-- !query 16154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16155 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 16155 schema +struct<> +-- !query 16155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16156 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 16156 schema +struct<> +-- !query 16156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16157 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 16157 schema +struct<> +-- !query 16157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16158 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 16158 schema +struct<> +-- !query 16158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16159 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 16159 schema +struct<> +-- !query 16159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16160 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 16160 schema +struct<> +-- !query 16160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16161 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 16161 schema +struct<> +-- !query 16161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16162 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 16162 schema +struct<> +-- !query 16162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16163 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16163 schema +struct<> +-- !query 16163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16164 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16164 schema +struct<> +-- !query 16164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16165 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 16165 schema +struct<> +-- !query 16165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16166 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 16166 schema +struct<> +-- !query 16166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16167 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 16167 schema +struct<> +-- !query 16167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16168 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 16168 schema +struct<> +-- !query 16168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16169 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 16169 schema +struct<> +-- !query 16169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16170 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 16170 schema +struct<> +-- !query 16170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16171 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 16171 schema +struct<> +-- !query 16171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16172 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 16172 schema +struct<> +-- !query 16172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16173 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 16173 schema +struct<> +-- !query 16173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16174 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 16174 schema +struct<> +-- !query 16174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16175 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16175 schema +struct<> +-- !query 16175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16176 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16176 schema +struct<> +-- !query 16176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16177 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 16177 schema +struct<> +-- !query 16177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16178 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 16178 schema +struct<> +-- !query 16178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16179 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 16179 schema +struct<> +-- !query 16179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16180 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 16180 schema +struct<> +-- !query 16180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16181 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 16181 schema +struct<> +-- !query 16181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16182 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 16182 schema +struct<> +-- !query 16182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16183 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 16183 schema +struct<> +-- !query 16183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16184 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 16184 schema +struct<> +-- !query 16184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16185 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 16185 schema +struct<> +-- !query 16185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16186 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 16186 schema +struct<> +-- !query 16186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16187 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16187 schema +struct<> +-- !query 16187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16188 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16188 schema +struct<> +-- !query 16188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16189 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 16189 schema +struct<> +-- !query 16189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16190 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 16190 schema +struct<> +-- !query 16190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16191 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 16191 schema +struct<> +-- !query 16191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16192 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 16192 schema +struct<> +-- !query 16192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16193 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 16193 schema +struct<> +-- !query 16193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16194 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 16194 schema +struct<> +-- !query 16194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16195 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 16195 schema +struct<> +-- !query 16195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16196 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 16196 schema +struct<> +-- !query 16196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16197 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 16197 schema +struct<> +-- !query 16197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16198 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 16198 schema +struct<> +-- !query 16198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16199 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16199 schema +struct<> +-- !query 16199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16200 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16200 schema +struct<> +-- !query 16200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16201 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 16201 schema +struct<> +-- !query 16201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16202 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 16202 schema +struct<> +-- !query 16202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16203 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 16203 schema +struct<> +-- !query 16203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16204 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 16204 schema +struct<> +-- !query 16204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16205 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 16205 schema +struct<> +-- !query 16205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16206 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 16206 schema +struct<> +-- !query 16206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16207 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 16207 schema +struct<> +-- !query 16207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16208 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 16208 schema +struct<> +-- !query 16208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16209 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 16209 schema +struct<> +-- !query 16209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16210 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 16210 schema +struct<> +-- !query 16210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16211 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16211 schema +struct<> +-- !query 16211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16212 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16212 schema +struct<> +-- !query 16212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16213 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 16213 schema +struct<> +-- !query 16213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16214 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 16214 schema +struct<> +-- !query 16214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16215 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 16215 schema +struct<> +-- !query 16215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16216 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 16216 schema +struct<> +-- !query 16216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16217 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 16217 schema +struct<> +-- !query 16217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16218 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 16218 schema +struct<> +-- !query 16218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16219 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 16219 schema +struct<> +-- !query 16219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16220 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 16220 schema +struct<> +-- !query 16220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16221 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 16221 schema +struct<> +-- !query 16221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16222 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 16222 schema +struct<> +-- !query 16222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16223 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16223 schema +struct<> +-- !query 16223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16224 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16224 schema +struct<> +-- !query 16224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16225 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 16225 schema +struct<> +-- !query 16225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16226 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 16226 schema +struct<> +-- !query 16226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16227 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 16227 schema +struct<> +-- !query 16227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16228 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 16228 schema +struct<> +-- !query 16228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16229 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 16229 schema +struct<> +-- !query 16229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16230 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 16230 schema +struct<> +-- !query 16230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16231 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 16231 schema +struct<> +-- !query 16231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16232 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 16232 schema +struct<> +-- !query 16232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16233 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 16233 schema +struct<> +-- !query 16233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16234 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 16234 schema +struct<> +-- !query 16234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16235 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16235 schema +struct<> +-- !query 16235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16236 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16236 schema +struct<> +-- !query 16236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16237 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 16237 schema +struct> +-- !query 16237 output +{true:2} + + +-- !query 16238 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 16238 schema +struct> +-- !query 16238 output +{true:2} + + +-- !query 16239 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 16239 schema +struct> +-- !query 16239 output +{true:2} + + +-- !query 16240 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 16240 schema +struct> +-- !query 16240 output +{true:2} + + +-- !query 16241 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 16241 schema +struct> +-- !query 16241 output +{true:2.0} + + +-- !query 16242 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 16242 schema +struct> +-- !query 16242 output +{true:2.0} + + +-- !query 16243 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 16243 schema +struct> +-- !query 16243 output +{true:2} + + +-- !query 16244 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 16244 schema +struct> +-- !query 16244 output +{true:"2"} + + +-- !query 16245 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 16245 schema +struct<> +-- !query 16245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 16246 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 16246 schema +struct<> +-- !query 16246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 16247 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16247 schema +struct<> +-- !query 16247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 16248 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16248 schema +struct<> +-- !query 16248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 16249 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 16249 schema +struct<> +-- !query 16249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16250 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 16250 schema +struct<> +-- !query 16250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16251 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 16251 schema +struct<> +-- !query 16251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16252 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 16252 schema +struct<> +-- !query 16252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16253 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 16253 schema +struct<> +-- !query 16253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16254 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 16254 schema +struct<> +-- !query 16254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16255 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 16255 schema +struct<> +-- !query 16255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16256 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 16256 schema +struct<> +-- !query 16256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16257 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 16257 schema +struct<> +-- !query 16257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16258 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 16258 schema +struct<> +-- !query 16258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16259 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16259 schema +struct<> +-- !query 16259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16260 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16260 schema +struct<> +-- !query 16260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16261 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 16261 schema +struct<> +-- !query 16261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16262 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 16262 schema +struct<> +-- !query 16262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16263 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 16263 schema +struct<> +-- !query 16263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16264 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 16264 schema +struct<> +-- !query 16264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16265 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 16265 schema +struct<> +-- !query 16265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16266 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 16266 schema +struct<> +-- !query 16266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16267 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 16267 schema +struct<> +-- !query 16267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16268 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 16268 schema +struct<> +-- !query 16268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16269 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 16269 schema +struct<> +-- !query 16269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16270 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 16270 schema +struct<> +-- !query 16270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16271 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16271 schema +struct<> +-- !query 16271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16272 +SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16272 schema +struct<> +-- !query 16272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16273 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 16273 schema +struct<> +-- !query 16273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16274 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 16274 schema +struct<> +-- !query 16274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16275 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 16275 schema +struct<> +-- !query 16275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16276 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 16276 schema +struct<> +-- !query 16276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16277 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 16277 schema +struct<> +-- !query 16277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16278 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 16278 schema +struct<> +-- !query 16278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16279 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 16279 schema +struct<> +-- !query 16279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16280 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 16280 schema +struct<> +-- !query 16280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16281 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 16281 schema +struct<> +-- !query 16281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16282 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 16282 schema +struct<> +-- !query 16282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16283 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16283 schema +struct<> +-- !query 16283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16284 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16284 schema +struct<> +-- !query 16284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16285 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 16285 schema +struct<> +-- !query 16285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16286 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 16286 schema +struct<> +-- !query 16286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16287 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 16287 schema +struct<> +-- !query 16287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16288 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 16288 schema +struct<> +-- !query 16288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16289 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 16289 schema +struct<> +-- !query 16289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16290 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 16290 schema +struct<> +-- !query 16290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16291 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 16291 schema +struct<> +-- !query 16291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16292 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 16292 schema +struct<> +-- !query 16292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16293 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 16293 schema +struct<> +-- !query 16293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16294 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 16294 schema +struct<> +-- !query 16294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16295 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16295 schema +struct<> +-- !query 16295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16296 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16296 schema +struct<> +-- !query 16296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16297 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 16297 schema +struct<> +-- !query 16297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16298 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 16298 schema +struct<> +-- !query 16298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16299 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 16299 schema +struct<> +-- !query 16299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16300 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 16300 schema +struct<> +-- !query 16300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16301 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 16301 schema +struct<> +-- !query 16301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16302 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 16302 schema +struct<> +-- !query 16302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16303 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 16303 schema +struct<> +-- !query 16303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16304 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 16304 schema +struct<> +-- !query 16304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16305 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 16305 schema +struct<> +-- !query 16305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16306 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 16306 schema +struct<> +-- !query 16306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16307 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16307 schema +struct<> +-- !query 16307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16308 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16308 schema +struct<> +-- !query 16308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16309 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 16309 schema +struct<> +-- !query 16309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16310 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 16310 schema +struct<> +-- !query 16310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16311 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 16311 schema +struct<> +-- !query 16311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16312 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 16312 schema +struct<> +-- !query 16312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16313 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 16313 schema +struct<> +-- !query 16313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16314 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 16314 schema +struct<> +-- !query 16314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16315 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 16315 schema +struct<> +-- !query 16315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16316 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 16316 schema +struct<> +-- !query 16316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16317 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 16317 schema +struct<> +-- !query 16317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16318 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 16318 schema +struct<> +-- !query 16318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16319 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16319 schema +struct<> +-- !query 16319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16320 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16320 schema +struct<> +-- !query 16320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16321 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 16321 schema +struct<> +-- !query 16321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16322 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 16322 schema +struct<> +-- !query 16322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16323 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 16323 schema +struct<> +-- !query 16323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16324 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 16324 schema +struct<> +-- !query 16324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16325 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 16325 schema +struct<> +-- !query 16325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16326 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 16326 schema +struct<> +-- !query 16326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16327 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 16327 schema +struct<> +-- !query 16327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16328 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 16328 schema +struct<> +-- !query 16328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16329 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 16329 schema +struct<> +-- !query 16329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16330 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 16330 schema +struct<> +-- !query 16330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16331 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16331 schema +struct<> +-- !query 16331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16332 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16332 schema +struct<> +-- !query 16332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16333 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 16333 schema +struct<> +-- !query 16333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16334 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 16334 schema +struct<> +-- !query 16334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16335 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 16335 schema +struct<> +-- !query 16335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16336 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 16336 schema +struct<> +-- !query 16336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16337 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 16337 schema +struct<> +-- !query 16337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16338 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 16338 schema +struct<> +-- !query 16338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16339 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 16339 schema +struct<> +-- !query 16339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16340 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 16340 schema +struct<> +-- !query 16340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16341 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 16341 schema +struct<> +-- !query 16341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16342 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 16342 schema +struct<> +-- !query 16342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16343 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16343 schema +struct<> +-- !query 16343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16344 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16344 schema +struct<> +-- !query 16344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16345 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 16345 schema +struct<> +-- !query 16345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16346 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 16346 schema +struct<> +-- !query 16346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16347 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 16347 schema +struct<> +-- !query 16347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16348 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 16348 schema +struct<> +-- !query 16348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16349 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 16349 schema +struct<> +-- !query 16349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16350 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 16350 schema +struct<> +-- !query 16350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16351 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 16351 schema +struct<> +-- !query 16351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16352 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 16352 schema +struct<> +-- !query 16352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16353 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 16353 schema +struct<> +-- !query 16353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16354 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 16354 schema +struct<> +-- !query 16354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16355 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16355 schema +struct<> +-- !query 16355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16356 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16356 schema +struct<> +-- !query 16356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16357 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 16357 schema +struct<> +-- !query 16357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16358 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 16358 schema +struct<> +-- !query 16358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16359 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 16359 schema +struct<> +-- !query 16359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16360 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 16360 schema +struct<> +-- !query 16360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16361 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 16361 schema +struct<> +-- !query 16361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16362 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 16362 schema +struct<> +-- !query 16362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16363 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 16363 schema +struct<> +-- !query 16363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16364 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 16364 schema +struct<> +-- !query 16364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16365 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 16365 schema +struct<> +-- !query 16365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16366 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 16366 schema +struct<> +-- !query 16366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16367 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16367 schema +struct<> +-- !query 16367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16368 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16368 schema +struct<> +-- !query 16368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16369 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 16369 schema +struct<> +-- !query 16369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16370 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 16370 schema +struct<> +-- !query 16370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16371 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 16371 schema +struct<> +-- !query 16371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16372 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 16372 schema +struct<> +-- !query 16372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16373 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 16373 schema +struct<> +-- !query 16373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16374 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 16374 schema +struct<> +-- !query 16374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16375 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 16375 schema +struct<> +-- !query 16375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16376 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 16376 schema +struct<> +-- !query 16376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16377 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 16377 schema +struct<> +-- !query 16377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16378 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 16378 schema +struct<> +-- !query 16378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16379 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16379 schema +struct<> +-- !query 16379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16380 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16380 schema +struct<> +-- !query 16380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16381 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 16381 schema +struct> +-- !query 16381 output +{true:2.0} + + +-- !query 16382 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 16382 schema +struct> +-- !query 16382 output +{true:2.0} + + +-- !query 16383 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 16383 schema +struct> +-- !query 16383 output +{true:2.0} + + +-- !query 16384 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 16384 schema +struct> +-- !query 16384 output +{true:2.0} + + +-- !query 16385 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 16385 schema +struct> +-- !query 16385 output +{true:2.0} + + +-- !query 16386 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 16386 schema +struct> +-- !query 16386 output +{true:2.0} + + +-- !query 16387 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 16387 schema +struct> +-- !query 16387 output +{true:2.0} + + +-- !query 16388 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 16388 schema +struct> +-- !query 16388 output +{true:"2"} + + +-- !query 16389 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 16389 schema +struct<> +-- !query 16389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 16390 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 16390 schema +struct<> +-- !query 16390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 16391 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16391 schema +struct<> +-- !query 16391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 16392 +SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16392 schema +struct<> +-- !query 16392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 16393 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 16393 schema +struct<> +-- !query 16393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16394 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 16394 schema +struct<> +-- !query 16394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16395 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 16395 schema +struct<> +-- !query 16395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16396 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 16396 schema +struct<> +-- !query 16396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16397 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 16397 schema +struct<> +-- !query 16397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16398 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 16398 schema +struct<> +-- !query 16398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16399 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 16399 schema +struct<> +-- !query 16399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16400 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 16400 schema +struct<> +-- !query 16400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16401 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 16401 schema +struct<> +-- !query 16401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16402 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 16402 schema +struct<> +-- !query 16402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16403 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16403 schema +struct<> +-- !query 16403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16404 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16404 schema +struct<> +-- !query 16404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16405 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 16405 schema +struct<> +-- !query 16405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16406 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 16406 schema +struct<> +-- !query 16406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16407 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 16407 schema +struct<> +-- !query 16407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16408 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 16408 schema +struct<> +-- !query 16408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16409 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 16409 schema +struct<> +-- !query 16409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16410 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 16410 schema +struct<> +-- !query 16410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16411 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 16411 schema +struct<> +-- !query 16411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16412 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 16412 schema +struct<> +-- !query 16412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16413 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 16413 schema +struct<> +-- !query 16413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16414 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 16414 schema +struct<> +-- !query 16414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16415 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16415 schema +struct<> +-- !query 16415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16416 +SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16416 schema +struct<> +-- !query 16416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16417 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 16417 schema +struct<> +-- !query 16417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16418 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 16418 schema +struct<> +-- !query 16418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16419 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 16419 schema +struct<> +-- !query 16419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16420 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 16420 schema +struct<> +-- !query 16420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16421 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 16421 schema +struct<> +-- !query 16421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16422 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 16422 schema +struct<> +-- !query 16422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16423 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 16423 schema +struct<> +-- !query 16423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16424 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 16424 schema +struct<> +-- !query 16424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16425 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 16425 schema +struct<> +-- !query 16425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16426 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 16426 schema +struct<> +-- !query 16426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16427 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16427 schema +struct<> +-- !query 16427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16428 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16428 schema +struct<> +-- !query 16428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16429 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 16429 schema +struct<> +-- !query 16429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16430 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 16430 schema +struct<> +-- !query 16430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16431 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 16431 schema +struct<> +-- !query 16431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16432 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 16432 schema +struct<> +-- !query 16432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16433 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 16433 schema +struct<> +-- !query 16433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16434 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 16434 schema +struct<> +-- !query 16434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16435 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 16435 schema +struct<> +-- !query 16435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16436 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 16436 schema +struct<> +-- !query 16436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16437 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 16437 schema +struct<> +-- !query 16437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16438 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 16438 schema +struct<> +-- !query 16438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16439 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16439 schema +struct<> +-- !query 16439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16440 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16440 schema +struct<> +-- !query 16440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16441 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 16441 schema +struct<> +-- !query 16441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16442 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 16442 schema +struct<> +-- !query 16442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16443 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 16443 schema +struct<> +-- !query 16443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16444 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 16444 schema +struct<> +-- !query 16444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16445 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 16445 schema +struct<> +-- !query 16445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16446 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 16446 schema +struct<> +-- !query 16446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16447 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 16447 schema +struct<> +-- !query 16447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16448 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 16448 schema +struct<> +-- !query 16448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16449 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 16449 schema +struct<> +-- !query 16449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16450 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 16450 schema +struct<> +-- !query 16450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16451 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16451 schema +struct<> +-- !query 16451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16452 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16452 schema +struct<> +-- !query 16452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16453 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 16453 schema +struct<> +-- !query 16453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16454 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 16454 schema +struct<> +-- !query 16454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16455 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 16455 schema +struct<> +-- !query 16455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16456 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 16456 schema +struct<> +-- !query 16456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16457 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 16457 schema +struct<> +-- !query 16457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16458 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 16458 schema +struct<> +-- !query 16458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16459 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 16459 schema +struct<> +-- !query 16459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16460 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 16460 schema +struct<> +-- !query 16460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16461 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 16461 schema +struct<> +-- !query 16461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16462 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 16462 schema +struct<> +-- !query 16462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16463 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16463 schema +struct<> +-- !query 16463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16464 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16464 schema +struct<> +-- !query 16464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16465 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 16465 schema +struct<> +-- !query 16465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16466 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 16466 schema +struct<> +-- !query 16466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16467 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 16467 schema +struct<> +-- !query 16467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16468 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 16468 schema +struct<> +-- !query 16468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16469 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 16469 schema +struct<> +-- !query 16469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16470 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 16470 schema +struct<> +-- !query 16470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16471 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 16471 schema +struct<> +-- !query 16471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16472 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 16472 schema +struct<> +-- !query 16472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16473 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 16473 schema +struct<> +-- !query 16473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16474 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 16474 schema +struct<> +-- !query 16474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16475 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16475 schema +struct<> +-- !query 16475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16476 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16476 schema +struct<> +-- !query 16476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16477 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 16477 schema +struct<> +-- !query 16477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16478 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 16478 schema +struct<> +-- !query 16478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16479 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 16479 schema +struct<> +-- !query 16479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16480 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 16480 schema +struct<> +-- !query 16480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16481 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 16481 schema +struct<> +-- !query 16481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16482 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 16482 schema +struct<> +-- !query 16482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16483 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 16483 schema +struct<> +-- !query 16483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16484 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 16484 schema +struct<> +-- !query 16484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16485 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 16485 schema +struct<> +-- !query 16485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16486 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 16486 schema +struct<> +-- !query 16486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16487 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16487 schema +struct<> +-- !query 16487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16488 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16488 schema +struct<> +-- !query 16488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16489 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 16489 schema +struct<> +-- !query 16489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16490 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 16490 schema +struct<> +-- !query 16490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16491 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 16491 schema +struct<> +-- !query 16491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16492 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 16492 schema +struct<> +-- !query 16492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16493 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 16493 schema +struct<> +-- !query 16493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16494 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 16494 schema +struct<> +-- !query 16494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16495 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 16495 schema +struct<> +-- !query 16495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16496 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 16496 schema +struct<> +-- !query 16496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16497 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 16497 schema +struct<> +-- !query 16497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16498 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 16498 schema +struct<> +-- !query 16498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16499 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16499 schema +struct<> +-- !query 16499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16500 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16500 schema +struct<> +-- !query 16500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16501 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 16501 schema +struct<> +-- !query 16501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16502 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 16502 schema +struct<> +-- !query 16502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16503 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 16503 schema +struct<> +-- !query 16503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16504 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 16504 schema +struct<> +-- !query 16504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16505 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 16505 schema +struct<> +-- !query 16505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16506 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 16506 schema +struct<> +-- !query 16506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16507 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 16507 schema +struct<> +-- !query 16507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16508 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 16508 schema +struct<> +-- !query 16508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16509 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 16509 schema +struct<> +-- !query 16509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16510 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 16510 schema +struct<> +-- !query 16510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16511 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16511 schema +struct<> +-- !query 16511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16512 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16512 schema +struct<> +-- !query 16512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16513 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 16513 schema +struct<> +-- !query 16513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16514 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 16514 schema +struct<> +-- !query 16514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16515 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 16515 schema +struct<> +-- !query 16515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16516 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 16516 schema +struct<> +-- !query 16516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16517 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 16517 schema +struct<> +-- !query 16517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16518 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 16518 schema +struct<> +-- !query 16518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16519 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 16519 schema +struct<> +-- !query 16519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16520 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 16520 schema +struct<> +-- !query 16520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16521 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 16521 schema +struct<> +-- !query 16521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16522 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 16522 schema +struct<> +-- !query 16522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16523 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16523 schema +struct<> +-- !query 16523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16524 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16524 schema +struct<> +-- !query 16524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16525 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 16525 schema +struct> +-- !query 16525 output +{true:2.0} + + +-- !query 16526 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 16526 schema +struct> +-- !query 16526 output +{true:2.0} + + +-- !query 16527 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 16527 schema +struct> +-- !query 16527 output +{true:2.0} + + +-- !query 16528 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 16528 schema +struct> +-- !query 16528 output +{true:2.0} + + +-- !query 16529 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 16529 schema +struct> +-- !query 16529 output +{true:2.0} + + +-- !query 16530 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 16530 schema +struct> +-- !query 16530 output +{true:2.0} + + +-- !query 16531 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 16531 schema +struct> +-- !query 16531 output +{true:2.0} + + +-- !query 16532 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 16532 schema +struct> +-- !query 16532 output +{true:"2"} + + +-- !query 16533 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 16533 schema +struct<> +-- !query 16533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 16534 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 16534 schema +struct<> +-- !query 16534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 16535 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16535 schema +struct<> +-- !query 16535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 16536 +SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16536 schema +struct<> +-- !query 16536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 16537 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 16537 schema +struct<> +-- !query 16537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16538 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 16538 schema +struct<> +-- !query 16538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16539 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 16539 schema +struct<> +-- !query 16539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16540 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 16540 schema +struct<> +-- !query 16540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16541 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 16541 schema +struct<> +-- !query 16541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16542 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 16542 schema +struct<> +-- !query 16542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16543 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 16543 schema +struct<> +-- !query 16543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16544 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 16544 schema +struct<> +-- !query 16544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16545 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 16545 schema +struct<> +-- !query 16545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16546 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 16546 schema +struct<> +-- !query 16546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16547 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16547 schema +struct<> +-- !query 16547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16548 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16548 schema +struct<> +-- !query 16548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16549 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 16549 schema +struct<> +-- !query 16549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16550 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 16550 schema +struct<> +-- !query 16550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16551 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 16551 schema +struct<> +-- !query 16551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16552 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 16552 schema +struct<> +-- !query 16552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16553 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 16553 schema +struct<> +-- !query 16553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16554 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 16554 schema +struct<> +-- !query 16554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16555 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 16555 schema +struct<> +-- !query 16555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16556 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 16556 schema +struct<> +-- !query 16556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16557 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 16557 schema +struct<> +-- !query 16557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16558 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 16558 schema +struct<> +-- !query 16558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16559 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16559 schema +struct<> +-- !query 16559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16560 +SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16560 schema +struct<> +-- !query 16560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16561 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 16561 schema +struct<> +-- !query 16561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16562 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 16562 schema +struct<> +-- !query 16562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16563 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 16563 schema +struct<> +-- !query 16563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16564 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 16564 schema +struct<> +-- !query 16564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16565 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 16565 schema +struct<> +-- !query 16565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16566 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 16566 schema +struct<> +-- !query 16566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16567 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 16567 schema +struct<> +-- !query 16567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16568 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 16568 schema +struct<> +-- !query 16568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16569 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 16569 schema +struct<> +-- !query 16569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16570 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 16570 schema +struct<> +-- !query 16570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16571 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16571 schema +struct<> +-- !query 16571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16572 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16572 schema +struct<> +-- !query 16572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16573 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 16573 schema +struct<> +-- !query 16573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16574 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 16574 schema +struct<> +-- !query 16574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16575 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 16575 schema +struct<> +-- !query 16575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16576 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 16576 schema +struct<> +-- !query 16576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16577 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 16577 schema +struct<> +-- !query 16577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16578 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 16578 schema +struct<> +-- !query 16578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16579 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 16579 schema +struct<> +-- !query 16579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16580 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 16580 schema +struct<> +-- !query 16580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16581 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 16581 schema +struct<> +-- !query 16581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16582 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 16582 schema +struct<> +-- !query 16582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16583 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16583 schema +struct<> +-- !query 16583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16584 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16584 schema +struct<> +-- !query 16584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16585 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 16585 schema +struct<> +-- !query 16585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16586 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 16586 schema +struct<> +-- !query 16586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16587 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 16587 schema +struct<> +-- !query 16587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16588 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 16588 schema +struct<> +-- !query 16588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16589 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 16589 schema +struct<> +-- !query 16589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16590 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 16590 schema +struct<> +-- !query 16590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16591 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 16591 schema +struct<> +-- !query 16591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16592 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 16592 schema +struct<> +-- !query 16592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16593 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 16593 schema +struct<> +-- !query 16593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16594 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 16594 schema +struct<> +-- !query 16594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16595 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16595 schema +struct<> +-- !query 16595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16596 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16596 schema +struct<> +-- !query 16596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16597 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 16597 schema +struct<> +-- !query 16597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16598 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 16598 schema +struct<> +-- !query 16598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16599 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 16599 schema +struct<> +-- !query 16599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16600 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 16600 schema +struct<> +-- !query 16600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16601 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 16601 schema +struct<> +-- !query 16601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16602 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 16602 schema +struct<> +-- !query 16602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16603 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 16603 schema +struct<> +-- !query 16603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16604 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 16604 schema +struct<> +-- !query 16604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16605 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 16605 schema +struct<> +-- !query 16605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16606 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 16606 schema +struct<> +-- !query 16606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16607 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16607 schema +struct<> +-- !query 16607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16608 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16608 schema +struct<> +-- !query 16608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16609 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 16609 schema +struct<> +-- !query 16609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16610 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 16610 schema +struct<> +-- !query 16610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16611 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 16611 schema +struct<> +-- !query 16611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16612 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 16612 schema +struct<> +-- !query 16612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16613 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 16613 schema +struct<> +-- !query 16613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16614 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 16614 schema +struct<> +-- !query 16614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16615 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 16615 schema +struct<> +-- !query 16615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16616 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 16616 schema +struct<> +-- !query 16616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16617 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 16617 schema +struct<> +-- !query 16617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16618 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 16618 schema +struct<> +-- !query 16618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16619 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16619 schema +struct<> +-- !query 16619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16620 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16620 schema +struct<> +-- !query 16620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16621 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 16621 schema +struct<> +-- !query 16621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16622 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 16622 schema +struct<> +-- !query 16622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16623 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 16623 schema +struct<> +-- !query 16623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16624 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 16624 schema +struct<> +-- !query 16624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16625 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 16625 schema +struct<> +-- !query 16625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16626 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 16626 schema +struct<> +-- !query 16626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16627 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 16627 schema +struct<> +-- !query 16627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16628 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 16628 schema +struct<> +-- !query 16628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16629 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 16629 schema +struct<> +-- !query 16629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16630 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 16630 schema +struct<> +-- !query 16630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16631 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16631 schema +struct<> +-- !query 16631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16632 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16632 schema +struct<> +-- !query 16632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16633 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 16633 schema +struct<> +-- !query 16633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16634 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 16634 schema +struct<> +-- !query 16634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16635 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 16635 schema +struct<> +-- !query 16635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16636 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 16636 schema +struct<> +-- !query 16636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16637 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 16637 schema +struct<> +-- !query 16637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16638 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 16638 schema +struct<> +-- !query 16638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16639 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 16639 schema +struct<> +-- !query 16639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16640 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 16640 schema +struct<> +-- !query 16640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16641 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 16641 schema +struct<> +-- !query 16641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16642 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 16642 schema +struct<> +-- !query 16642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16643 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16643 schema +struct<> +-- !query 16643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16644 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16644 schema +struct<> +-- !query 16644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16645 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 16645 schema +struct<> +-- !query 16645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16646 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 16646 schema +struct<> +-- !query 16646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16647 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 16647 schema +struct<> +-- !query 16647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16648 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 16648 schema +struct<> +-- !query 16648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16649 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 16649 schema +struct<> +-- !query 16649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16650 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 16650 schema +struct<> +-- !query 16650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16651 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 16651 schema +struct<> +-- !query 16651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16652 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 16652 schema +struct<> +-- !query 16652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16653 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 16653 schema +struct<> +-- !query 16653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16654 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 16654 schema +struct<> +-- !query 16654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16655 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16655 schema +struct<> +-- !query 16655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16656 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16656 schema +struct<> +-- !query 16656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16657 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 16657 schema +struct<> +-- !query 16657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16658 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 16658 schema +struct<> +-- !query 16658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16659 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 16659 schema +struct<> +-- !query 16659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16660 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 16660 schema +struct<> +-- !query 16660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16661 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 16661 schema +struct<> +-- !query 16661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16662 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 16662 schema +struct<> +-- !query 16662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16663 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 16663 schema +struct<> +-- !query 16663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16664 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 16664 schema +struct<> +-- !query 16664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16665 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 16665 schema +struct<> +-- !query 16665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16666 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 16666 schema +struct<> +-- !query 16666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16667 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16667 schema +struct<> +-- !query 16667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16668 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16668 schema +struct<> +-- !query 16668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16669 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 16669 schema +struct> +-- !query 16669 output +{true:2} + + +-- !query 16670 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 16670 schema +struct> +-- !query 16670 output +{true:2} + + +-- !query 16671 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 16671 schema +struct> +-- !query 16671 output +{true:2} + + +-- !query 16672 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 16672 schema +struct> +-- !query 16672 output +{true:2} + + +-- !query 16673 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 16673 schema +struct> +-- !query 16673 output +{true:2.0} + + +-- !query 16674 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 16674 schema +struct> +-- !query 16674 output +{true:2.0} + + +-- !query 16675 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 16675 schema +struct> +-- !query 16675 output +{true:2} + + +-- !query 16676 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 16676 schema +struct> +-- !query 16676 output +{true:"2"} + + +-- !query 16677 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 16677 schema +struct<> +-- !query 16677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 16678 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 16678 schema +struct<> +-- !query 16678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 16679 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16679 schema +struct<> +-- !query 16679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 16680 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16680 schema +struct<> +-- !query 16680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 16681 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 16681 schema +struct<> +-- !query 16681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16682 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 16682 schema +struct<> +-- !query 16682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16683 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 16683 schema +struct<> +-- !query 16683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16684 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 16684 schema +struct<> +-- !query 16684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16685 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 16685 schema +struct<> +-- !query 16685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16686 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 16686 schema +struct<> +-- !query 16686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16687 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 16687 schema +struct<> +-- !query 16687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16688 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 16688 schema +struct<> +-- !query 16688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16689 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 16689 schema +struct<> +-- !query 16689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16690 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 16690 schema +struct<> +-- !query 16690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16691 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16691 schema +struct<> +-- !query 16691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16692 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16692 schema +struct<> +-- !query 16692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16693 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 16693 schema +struct<> +-- !query 16693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16694 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 16694 schema +struct<> +-- !query 16694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16695 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 16695 schema +struct<> +-- !query 16695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16696 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 16696 schema +struct<> +-- !query 16696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16697 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 16697 schema +struct<> +-- !query 16697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16698 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 16698 schema +struct<> +-- !query 16698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16699 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 16699 schema +struct<> +-- !query 16699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16700 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 16700 schema +struct<> +-- !query 16700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16701 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 16701 schema +struct<> +-- !query 16701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16702 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 16702 schema +struct<> +-- !query 16702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16703 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16703 schema +struct<> +-- !query 16703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16704 +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16704 schema +struct<> +-- !query 16704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16705 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 16705 schema +struct<> +-- !query 16705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16706 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 16706 schema +struct<> +-- !query 16706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16707 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 16707 schema +struct<> +-- !query 16707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16708 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 16708 schema +struct<> +-- !query 16708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16709 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 16709 schema +struct<> +-- !query 16709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16710 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 16710 schema +struct<> +-- !query 16710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16711 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 16711 schema +struct<> +-- !query 16711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16712 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 16712 schema +struct<> +-- !query 16712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16713 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 16713 schema +struct<> +-- !query 16713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16714 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 16714 schema +struct<> +-- !query 16714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16715 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16715 schema +struct<> +-- !query 16715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16716 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16716 schema +struct<> +-- !query 16716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16717 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 16717 schema +struct<> +-- !query 16717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16718 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 16718 schema +struct<> +-- !query 16718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16719 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 16719 schema +struct<> +-- !query 16719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16720 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 16720 schema +struct<> +-- !query 16720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16721 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 16721 schema +struct<> +-- !query 16721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16722 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 16722 schema +struct<> +-- !query 16722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16723 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 16723 schema +struct<> +-- !query 16723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16724 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 16724 schema +struct<> +-- !query 16724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16725 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 16725 schema +struct<> +-- !query 16725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16726 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 16726 schema +struct<> +-- !query 16726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16727 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16727 schema +struct<> +-- !query 16727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16728 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16728 schema +struct<> +-- !query 16728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16729 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 16729 schema +struct<> +-- !query 16729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16730 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 16730 schema +struct<> +-- !query 16730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16731 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 16731 schema +struct<> +-- !query 16731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16732 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 16732 schema +struct<> +-- !query 16732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16733 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 16733 schema +struct<> +-- !query 16733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16734 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 16734 schema +struct<> +-- !query 16734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16735 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 16735 schema +struct<> +-- !query 16735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16736 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 16736 schema +struct<> +-- !query 16736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16737 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 16737 schema +struct<> +-- !query 16737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16738 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 16738 schema +struct<> +-- !query 16738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16739 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16739 schema +struct<> +-- !query 16739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16740 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16740 schema +struct<> +-- !query 16740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16741 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 16741 schema +struct<> +-- !query 16741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16742 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 16742 schema +struct<> +-- !query 16742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16743 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 16743 schema +struct<> +-- !query 16743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16744 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 16744 schema +struct<> +-- !query 16744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16745 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 16745 schema +struct<> +-- !query 16745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16746 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 16746 schema +struct<> +-- !query 16746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16747 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 16747 schema +struct<> +-- !query 16747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16748 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 16748 schema +struct<> +-- !query 16748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16749 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 16749 schema +struct<> +-- !query 16749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16750 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 16750 schema +struct<> +-- !query 16750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16751 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16751 schema +struct<> +-- !query 16751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16752 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16752 schema +struct<> +-- !query 16752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16753 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 16753 schema +struct<> +-- !query 16753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16754 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 16754 schema +struct<> +-- !query 16754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16755 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 16755 schema +struct<> +-- !query 16755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16756 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 16756 schema +struct<> +-- !query 16756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16757 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 16757 schema +struct<> +-- !query 16757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16758 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 16758 schema +struct<> +-- !query 16758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16759 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 16759 schema +struct<> +-- !query 16759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16760 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 16760 schema +struct<> +-- !query 16760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16761 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 16761 schema +struct<> +-- !query 16761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16762 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 16762 schema +struct<> +-- !query 16762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16763 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16763 schema +struct<> +-- !query 16763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16764 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16764 schema +struct<> +-- !query 16764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16765 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 16765 schema +struct<> +-- !query 16765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16766 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 16766 schema +struct<> +-- !query 16766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16767 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 16767 schema +struct<> +-- !query 16767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16768 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 16768 schema +struct<> +-- !query 16768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16769 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 16769 schema +struct<> +-- !query 16769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16770 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 16770 schema +struct<> +-- !query 16770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16771 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 16771 schema +struct<> +-- !query 16771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16772 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 16772 schema +struct<> +-- !query 16772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16773 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 16773 schema +struct<> +-- !query 16773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16774 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 16774 schema +struct<> +-- !query 16774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16775 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16775 schema +struct<> +-- !query 16775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16776 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16776 schema +struct<> +-- !query 16776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16777 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 16777 schema +struct<> +-- !query 16777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16778 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 16778 schema +struct<> +-- !query 16778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16779 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 16779 schema +struct<> +-- !query 16779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16780 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 16780 schema +struct<> +-- !query 16780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16781 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 16781 schema +struct<> +-- !query 16781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16782 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 16782 schema +struct<> +-- !query 16782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16783 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 16783 schema +struct<> +-- !query 16783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16784 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 16784 schema +struct<> +-- !query 16784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16785 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 16785 schema +struct<> +-- !query 16785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16786 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 16786 schema +struct<> +-- !query 16786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16787 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16787 schema +struct<> +-- !query 16787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16788 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16788 schema +struct<> +-- !query 16788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16789 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 16789 schema +struct<> +-- !query 16789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16790 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 16790 schema +struct<> +-- !query 16790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16791 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 16791 schema +struct<> +-- !query 16791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16792 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 16792 schema +struct<> +-- !query 16792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16793 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 16793 schema +struct<> +-- !query 16793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16794 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 16794 schema +struct<> +-- !query 16794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16795 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 16795 schema +struct<> +-- !query 16795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16796 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 16796 schema +struct<> +-- !query 16796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16797 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 16797 schema +struct<> +-- !query 16797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16798 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 16798 schema +struct<> +-- !query 16798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16799 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16799 schema +struct<> +-- !query 16799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16800 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16800 schema +struct<> +-- !query 16800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16801 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 16801 schema +struct<> +-- !query 16801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16802 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 16802 schema +struct<> +-- !query 16802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16803 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 16803 schema +struct<> +-- !query 16803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16804 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 16804 schema +struct<> +-- !query 16804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16805 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 16805 schema +struct<> +-- !query 16805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16806 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 16806 schema +struct<> +-- !query 16806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16807 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 16807 schema +struct<> +-- !query 16807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16808 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 16808 schema +struct<> +-- !query 16808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16809 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 16809 schema +struct<> +-- !query 16809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16810 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 16810 schema +struct<> +-- !query 16810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16811 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16811 schema +struct<> +-- !query 16811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16812 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16812 schema +struct<> +-- !query 16812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16813 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 16813 schema +struct> +-- !query 16813 output +{true:"2"} + + +-- !query 16814 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 16814 schema +struct> +-- !query 16814 output +{true:"2"} + + +-- !query 16815 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 16815 schema +struct> +-- !query 16815 output +{true:"2"} + + +-- !query 16816 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 16816 schema +struct> +-- !query 16816 output +{true:"2"} + + +-- !query 16817 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 16817 schema +struct> +-- !query 16817 output +{true:"2.0"} + + +-- !query 16818 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 16818 schema +struct> +-- !query 16818 output +{true:"2.0"} + + +-- !query 16819 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 16819 schema +struct> +-- !query 16819 output +{true:"2"} + + +-- !query 16820 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 16820 schema +struct> +-- !query 16820 output +{true:"2"} + + +-- !query 16821 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 16821 schema +struct<> +-- !query 16821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 16822 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 16822 schema +struct<> +-- !query 16822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 16823 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16823 schema +struct> +-- !query 16823 output +{true:"2017-12-12 09:30:00"} + + +-- !query 16824 +SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16824 schema +struct> +-- !query 16824 output +{true:"2017-12-12"} + + +-- !query 16825 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 16825 schema +struct<> +-- !query 16825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16826 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 16826 schema +struct<> +-- !query 16826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16827 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 16827 schema +struct<> +-- !query 16827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16828 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 16828 schema +struct<> +-- !query 16828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16829 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 16829 schema +struct<> +-- !query 16829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16830 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 16830 schema +struct<> +-- !query 16830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16831 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 16831 schema +struct<> +-- !query 16831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16832 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 16832 schema +struct<> +-- !query 16832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16833 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 16833 schema +struct<> +-- !query 16833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16834 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 16834 schema +struct<> +-- !query 16834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16835 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16835 schema +struct<> +-- !query 16835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16836 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16836 schema +struct<> +-- !query 16836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16837 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 16837 schema +struct<> +-- !query 16837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16838 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 16838 schema +struct<> +-- !query 16838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16839 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 16839 schema +struct<> +-- !query 16839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16840 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 16840 schema +struct<> +-- !query 16840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16841 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 16841 schema +struct<> +-- !query 16841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16842 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 16842 schema +struct<> +-- !query 16842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16843 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 16843 schema +struct<> +-- !query 16843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16844 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 16844 schema +struct<> +-- !query 16844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16845 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 16845 schema +struct<> +-- !query 16845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16846 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 16846 schema +struct<> +-- !query 16846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16847 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16847 schema +struct<> +-- !query 16847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16848 +SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16848 schema +struct<> +-- !query 16848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16849 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 16849 schema +struct<> +-- !query 16849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16850 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 16850 schema +struct<> +-- !query 16850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16851 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 16851 schema +struct<> +-- !query 16851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16852 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 16852 schema +struct<> +-- !query 16852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16853 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 16853 schema +struct<> +-- !query 16853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16854 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 16854 schema +struct<> +-- !query 16854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16855 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 16855 schema +struct<> +-- !query 16855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16856 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 16856 schema +struct<> +-- !query 16856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16857 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 16857 schema +struct<> +-- !query 16857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16858 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 16858 schema +struct<> +-- !query 16858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16859 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16859 schema +struct<> +-- !query 16859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16860 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16860 schema +struct<> +-- !query 16860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16861 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 16861 schema +struct<> +-- !query 16861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16862 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 16862 schema +struct<> +-- !query 16862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16863 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 16863 schema +struct<> +-- !query 16863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16864 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 16864 schema +struct<> +-- !query 16864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16865 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 16865 schema +struct<> +-- !query 16865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16866 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 16866 schema +struct<> +-- !query 16866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16867 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 16867 schema +struct<> +-- !query 16867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16868 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 16868 schema +struct<> +-- !query 16868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16869 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 16869 schema +struct<> +-- !query 16869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16870 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 16870 schema +struct<> +-- !query 16870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16871 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16871 schema +struct<> +-- !query 16871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16872 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16872 schema +struct<> +-- !query 16872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 16873 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 16873 schema +struct<> +-- !query 16873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16874 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 16874 schema +struct<> +-- !query 16874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16875 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 16875 schema +struct<> +-- !query 16875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16876 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 16876 schema +struct<> +-- !query 16876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16877 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 16877 schema +struct<> +-- !query 16877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16878 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 16878 schema +struct<> +-- !query 16878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16879 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 16879 schema +struct<> +-- !query 16879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16880 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 16880 schema +struct<> +-- !query 16880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16881 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 16881 schema +struct<> +-- !query 16881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16882 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 16882 schema +struct<> +-- !query 16882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16883 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16883 schema +struct<> +-- !query 16883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16884 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16884 schema +struct<> +-- !query 16884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 16885 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 16885 schema +struct<> +-- !query 16885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16886 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 16886 schema +struct<> +-- !query 16886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16887 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 16887 schema +struct<> +-- !query 16887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16888 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 16888 schema +struct<> +-- !query 16888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16889 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 16889 schema +struct<> +-- !query 16889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16890 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 16890 schema +struct<> +-- !query 16890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16891 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 16891 schema +struct<> +-- !query 16891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16892 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 16892 schema +struct<> +-- !query 16892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16893 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 16893 schema +struct<> +-- !query 16893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16894 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 16894 schema +struct<> +-- !query 16894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16895 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16895 schema +struct<> +-- !query 16895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16896 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16896 schema +struct<> +-- !query 16896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 16897 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 16897 schema +struct<> +-- !query 16897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16898 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 16898 schema +struct<> +-- !query 16898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16899 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 16899 schema +struct<> +-- !query 16899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16900 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 16900 schema +struct<> +-- !query 16900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16901 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 16901 schema +struct<> +-- !query 16901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16902 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 16902 schema +struct<> +-- !query 16902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16903 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 16903 schema +struct<> +-- !query 16903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16904 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 16904 schema +struct<> +-- !query 16904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16905 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 16905 schema +struct<> +-- !query 16905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16906 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 16906 schema +struct<> +-- !query 16906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16907 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16907 schema +struct<> +-- !query 16907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16908 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16908 schema +struct<> +-- !query 16908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 16909 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 16909 schema +struct<> +-- !query 16909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16910 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 16910 schema +struct<> +-- !query 16910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16911 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 16911 schema +struct<> +-- !query 16911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16912 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 16912 schema +struct<> +-- !query 16912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16913 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 16913 schema +struct<> +-- !query 16913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16914 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 16914 schema +struct<> +-- !query 16914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16915 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 16915 schema +struct<> +-- !query 16915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16916 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 16916 schema +struct<> +-- !query 16916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16917 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 16917 schema +struct<> +-- !query 16917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16918 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 16918 schema +struct<> +-- !query 16918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16919 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16919 schema +struct<> +-- !query 16919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16920 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16920 schema +struct<> +-- !query 16920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 16921 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 16921 schema +struct<> +-- !query 16921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16922 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 16922 schema +struct<> +-- !query 16922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16923 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 16923 schema +struct<> +-- !query 16923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16924 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 16924 schema +struct<> +-- !query 16924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16925 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 16925 schema +struct<> +-- !query 16925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16926 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 16926 schema +struct<> +-- !query 16926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16927 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 16927 schema +struct<> +-- !query 16927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16928 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 16928 schema +struct<> +-- !query 16928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16929 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 16929 schema +struct<> +-- !query 16929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16930 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 16930 schema +struct<> +-- !query 16930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16931 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16931 schema +struct<> +-- !query 16931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16932 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16932 schema +struct<> +-- !query 16932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 16933 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 16933 schema +struct<> +-- !query 16933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16934 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 16934 schema +struct<> +-- !query 16934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16935 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 16935 schema +struct<> +-- !query 16935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16936 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 16936 schema +struct<> +-- !query 16936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16937 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 16937 schema +struct<> +-- !query 16937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16938 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 16938 schema +struct<> +-- !query 16938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16939 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 16939 schema +struct<> +-- !query 16939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16940 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 16940 schema +struct<> +-- !query 16940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16941 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 16941 schema +struct<> +-- !query 16941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16942 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 16942 schema +struct<> +-- !query 16942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16943 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16943 schema +struct<> +-- !query 16943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16944 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16944 schema +struct<> +-- !query 16944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 16945 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 16945 schema +struct<> +-- !query 16945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16946 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 16946 schema +struct<> +-- !query 16946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16947 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 16947 schema +struct<> +-- !query 16947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16948 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 16948 schema +struct<> +-- !query 16948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16949 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 16949 schema +struct<> +-- !query 16949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16950 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 16950 schema +struct<> +-- !query 16950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16951 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 16951 schema +struct<> +-- !query 16951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16952 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 16952 schema +struct<> +-- !query 16952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16953 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 16953 schema +struct<> +-- !query 16953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16954 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 16954 schema +struct<> +-- !query 16954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16955 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16955 schema +struct<> +-- !query 16955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16956 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16956 schema +struct<> +-- !query 16956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 16957 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 16957 schema +struct<> +-- !query 16957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 16958 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 16958 schema +struct<> +-- !query 16958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 16959 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 16959 schema +struct<> +-- !query 16959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 16960 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 16960 schema +struct<> +-- !query 16960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 16961 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 16961 schema +struct<> +-- !query 16961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 16962 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 16962 schema +struct<> +-- !query 16962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 16963 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 16963 schema +struct<> +-- !query 16963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 16964 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 16964 schema +struct<> +-- !query 16964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 16965 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 16965 schema +struct> +-- !query 16965 output +{true:[B@230bb9ff} + + +-- !query 16966 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 16966 schema +struct<> +-- !query 16966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 16967 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16967 schema +struct<> +-- !query 16967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 16968 +SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16968 schema +struct<> +-- !query 16968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 16969 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 16969 schema +struct<> +-- !query 16969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16970 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 16970 schema +struct<> +-- !query 16970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16971 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 16971 schema +struct<> +-- !query 16971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16972 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 16972 schema +struct<> +-- !query 16972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16973 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 16973 schema +struct<> +-- !query 16973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16974 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 16974 schema +struct<> +-- !query 16974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16975 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 16975 schema +struct<> +-- !query 16975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16976 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 16976 schema +struct<> +-- !query 16976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16977 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 16977 schema +struct<> +-- !query 16977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16978 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 16978 schema +struct<> +-- !query 16978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16979 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16979 schema +struct<> +-- !query 16979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16980 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16980 schema +struct<> +-- !query 16980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 16981 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 16981 schema +struct<> +-- !query 16981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16982 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 16982 schema +struct<> +-- !query 16982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16983 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 16983 schema +struct<> +-- !query 16983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16984 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 16984 schema +struct<> +-- !query 16984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16985 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 16985 schema +struct<> +-- !query 16985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16986 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 16986 schema +struct<> +-- !query 16986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16987 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 16987 schema +struct<> +-- !query 16987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16988 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 16988 schema +struct<> +-- !query 16988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16989 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 16989 schema +struct<> +-- !query 16989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16990 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 16990 schema +struct<> +-- !query 16990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16991 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 16991 schema +struct<> +-- !query 16991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16992 +SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 16992 schema +struct<> +-- !query 16992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 16993 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 16993 schema +struct<> +-- !query 16993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16994 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 16994 schema +struct<> +-- !query 16994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16995 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 16995 schema +struct<> +-- !query 16995 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16996 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 16996 schema +struct<> +-- !query 16996 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16997 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 16997 schema +struct<> +-- !query 16997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16998 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 16998 schema +struct<> +-- !query 16998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 16999 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 16999 schema +struct<> +-- !query 16999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17000 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 17000 schema +struct<> +-- !query 17000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17001 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 17001 schema +struct<> +-- !query 17001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17002 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 17002 schema +struct<> +-- !query 17002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17003 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17003 schema +struct<> +-- !query 17003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17004 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17004 schema +struct<> +-- !query 17004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17005 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 17005 schema +struct<> +-- !query 17005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17006 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 17006 schema +struct<> +-- !query 17006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17007 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 17007 schema +struct<> +-- !query 17007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17008 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 17008 schema +struct<> +-- !query 17008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17009 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 17009 schema +struct<> +-- !query 17009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17010 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 17010 schema +struct<> +-- !query 17010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17011 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 17011 schema +struct<> +-- !query 17011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17012 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 17012 schema +struct<> +-- !query 17012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17013 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 17013 schema +struct<> +-- !query 17013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17014 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 17014 schema +struct<> +-- !query 17014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17015 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17015 schema +struct<> +-- !query 17015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17016 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17016 schema +struct<> +-- !query 17016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17017 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 17017 schema +struct<> +-- !query 17017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17018 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 17018 schema +struct<> +-- !query 17018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17019 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 17019 schema +struct<> +-- !query 17019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17020 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 17020 schema +struct<> +-- !query 17020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17021 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 17021 schema +struct<> +-- !query 17021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17022 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 17022 schema +struct<> +-- !query 17022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17023 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 17023 schema +struct<> +-- !query 17023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17024 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 17024 schema +struct<> +-- !query 17024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17025 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 17025 schema +struct<> +-- !query 17025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17026 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 17026 schema +struct<> +-- !query 17026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17027 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17027 schema +struct<> +-- !query 17027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17028 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17028 schema +struct<> +-- !query 17028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17029 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 17029 schema +struct<> +-- !query 17029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17030 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 17030 schema +struct<> +-- !query 17030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17031 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 17031 schema +struct<> +-- !query 17031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17032 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 17032 schema +struct<> +-- !query 17032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17033 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 17033 schema +struct<> +-- !query 17033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17034 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 17034 schema +struct<> +-- !query 17034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17035 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 17035 schema +struct<> +-- !query 17035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17036 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 17036 schema +struct<> +-- !query 17036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17037 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 17037 schema +struct<> +-- !query 17037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17038 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 17038 schema +struct<> +-- !query 17038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17039 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17039 schema +struct<> +-- !query 17039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17040 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17040 schema +struct<> +-- !query 17040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17041 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 17041 schema +struct<> +-- !query 17041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17042 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 17042 schema +struct<> +-- !query 17042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17043 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 17043 schema +struct<> +-- !query 17043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17044 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 17044 schema +struct<> +-- !query 17044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17045 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 17045 schema +struct<> +-- !query 17045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17046 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 17046 schema +struct<> +-- !query 17046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17047 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 17047 schema +struct<> +-- !query 17047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17048 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 17048 schema +struct<> +-- !query 17048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17049 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 17049 schema +struct<> +-- !query 17049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17050 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 17050 schema +struct<> +-- !query 17050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17051 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17051 schema +struct<> +-- !query 17051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17052 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17052 schema +struct<> +-- !query 17052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17053 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 17053 schema +struct<> +-- !query 17053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17054 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 17054 schema +struct<> +-- !query 17054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17055 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 17055 schema +struct<> +-- !query 17055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17056 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 17056 schema +struct<> +-- !query 17056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17057 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 17057 schema +struct<> +-- !query 17057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17058 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 17058 schema +struct<> +-- !query 17058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17059 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 17059 schema +struct<> +-- !query 17059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17060 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 17060 schema +struct<> +-- !query 17060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17061 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 17061 schema +struct<> +-- !query 17061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17062 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 17062 schema +struct<> +-- !query 17062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17063 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17063 schema +struct<> +-- !query 17063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17064 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17064 schema +struct<> +-- !query 17064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17065 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 17065 schema +struct<> +-- !query 17065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17066 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 17066 schema +struct<> +-- !query 17066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17067 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 17067 schema +struct<> +-- !query 17067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17068 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 17068 schema +struct<> +-- !query 17068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17069 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 17069 schema +struct<> +-- !query 17069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17070 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 17070 schema +struct<> +-- !query 17070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17071 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 17071 schema +struct<> +-- !query 17071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17072 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 17072 schema +struct<> +-- !query 17072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17073 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 17073 schema +struct<> +-- !query 17073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17074 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 17074 schema +struct<> +-- !query 17074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17075 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17075 schema +struct<> +-- !query 17075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17076 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17076 schema +struct<> +-- !query 17076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17077 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 17077 schema +struct<> +-- !query 17077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17078 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 17078 schema +struct<> +-- !query 17078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17079 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 17079 schema +struct<> +-- !query 17079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17080 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 17080 schema +struct<> +-- !query 17080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17081 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 17081 schema +struct<> +-- !query 17081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17082 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 17082 schema +struct<> +-- !query 17082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17083 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 17083 schema +struct<> +-- !query 17083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17084 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 17084 schema +struct<> +-- !query 17084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17085 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 17085 schema +struct<> +-- !query 17085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17086 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 17086 schema +struct<> +-- !query 17086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17087 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17087 schema +struct<> +-- !query 17087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17088 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17088 schema +struct<> +-- !query 17088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17089 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 17089 schema +struct<> +-- !query 17089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17090 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 17090 schema +struct<> +-- !query 17090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17091 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 17091 schema +struct<> +-- !query 17091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17092 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 17092 schema +struct<> +-- !query 17092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17093 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 17093 schema +struct<> +-- !query 17093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17094 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 17094 schema +struct<> +-- !query 17094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17095 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 17095 schema +struct<> +-- !query 17095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17096 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 17096 schema +struct<> +-- !query 17096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17097 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 17097 schema +struct<> +-- !query 17097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17098 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 17098 schema +struct<> +-- !query 17098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17099 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17099 schema +struct<> +-- !query 17099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17100 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17100 schema +struct<> +-- !query 17100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17101 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 17101 schema +struct<> +-- !query 17101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17102 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 17102 schema +struct<> +-- !query 17102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17103 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 17103 schema +struct<> +-- !query 17103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17104 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 17104 schema +struct<> +-- !query 17104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17105 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 17105 schema +struct<> +-- !query 17105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17106 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 17106 schema +struct<> +-- !query 17106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17107 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 17107 schema +struct<> +-- !query 17107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17108 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 17108 schema +struct<> +-- !query 17108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17109 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 17109 schema +struct<> +-- !query 17109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17110 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 17110 schema +struct> +-- !query 17110 output +{true:true} + + +-- !query 17111 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17111 schema +struct<> +-- !query 17111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17112 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17112 schema +struct<> +-- !query 17112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17113 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 17113 schema +struct<> +-- !query 17113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17114 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 17114 schema +struct<> +-- !query 17114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17115 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 17115 schema +struct<> +-- !query 17115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17116 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 17116 schema +struct<> +-- !query 17116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17117 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 17117 schema +struct<> +-- !query 17117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17118 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 17118 schema +struct<> +-- !query 17118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17119 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 17119 schema +struct<> +-- !query 17119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17120 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 17120 schema +struct<> +-- !query 17120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17121 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 17121 schema +struct<> +-- !query 17121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17122 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 17122 schema +struct<> +-- !query 17122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17123 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17123 schema +struct<> +-- !query 17123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17124 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17124 schema +struct<> +-- !query 17124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17125 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 17125 schema +struct<> +-- !query 17125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17126 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 17126 schema +struct<> +-- !query 17126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17127 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 17127 schema +struct<> +-- !query 17127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17128 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 17128 schema +struct<> +-- !query 17128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17129 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 17129 schema +struct<> +-- !query 17129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17130 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 17130 schema +struct<> +-- !query 17130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17131 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 17131 schema +struct<> +-- !query 17131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17132 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 17132 schema +struct<> +-- !query 17132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17133 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 17133 schema +struct<> +-- !query 17133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17134 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 17134 schema +struct<> +-- !query 17134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17135 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17135 schema +struct<> +-- !query 17135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17136 +SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17136 schema +struct<> +-- !query 17136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17137 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 17137 schema +struct<> +-- !query 17137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17138 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 17138 schema +struct<> +-- !query 17138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17139 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 17139 schema +struct<> +-- !query 17139 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17140 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 17140 schema +struct<> +-- !query 17140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17141 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 17141 schema +struct<> +-- !query 17141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17142 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 17142 schema +struct<> +-- !query 17142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17143 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 17143 schema +struct<> +-- !query 17143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17144 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 17144 schema +struct<> +-- !query 17144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17145 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 17145 schema +struct<> +-- !query 17145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17146 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 17146 schema +struct<> +-- !query 17146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17147 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17147 schema +struct<> +-- !query 17147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17148 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17148 schema +struct<> +-- !query 17148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17149 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 17149 schema +struct<> +-- !query 17149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17150 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 17150 schema +struct<> +-- !query 17150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17151 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 17151 schema +struct<> +-- !query 17151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17152 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 17152 schema +struct<> +-- !query 17152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17153 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 17153 schema +struct<> +-- !query 17153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17154 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 17154 schema +struct<> +-- !query 17154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17155 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 17155 schema +struct<> +-- !query 17155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17156 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 17156 schema +struct<> +-- !query 17156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17157 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 17157 schema +struct<> +-- !query 17157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17158 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 17158 schema +struct<> +-- !query 17158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17159 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17159 schema +struct<> +-- !query 17159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17160 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17160 schema +struct<> +-- !query 17160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17161 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 17161 schema +struct<> +-- !query 17161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17162 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 17162 schema +struct<> +-- !query 17162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17163 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 17163 schema +struct<> +-- !query 17163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17164 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 17164 schema +struct<> +-- !query 17164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17165 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 17165 schema +struct<> +-- !query 17165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17166 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 17166 schema +struct<> +-- !query 17166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17167 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 17167 schema +struct<> +-- !query 17167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17168 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 17168 schema +struct<> +-- !query 17168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17169 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 17169 schema +struct<> +-- !query 17169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17170 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 17170 schema +struct<> +-- !query 17170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17171 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17171 schema +struct<> +-- !query 17171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17172 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17172 schema +struct<> +-- !query 17172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17173 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 17173 schema +struct<> +-- !query 17173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17174 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 17174 schema +struct<> +-- !query 17174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17175 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 17175 schema +struct<> +-- !query 17175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17176 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 17176 schema +struct<> +-- !query 17176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17177 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 17177 schema +struct<> +-- !query 17177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17178 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 17178 schema +struct<> +-- !query 17178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17179 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 17179 schema +struct<> +-- !query 17179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17180 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 17180 schema +struct<> +-- !query 17180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17181 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 17181 schema +struct<> +-- !query 17181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17182 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 17182 schema +struct<> +-- !query 17182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17183 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17183 schema +struct<> +-- !query 17183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17184 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17184 schema +struct<> +-- !query 17184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17185 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 17185 schema +struct<> +-- !query 17185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17186 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 17186 schema +struct<> +-- !query 17186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17187 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 17187 schema +struct<> +-- !query 17187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17188 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 17188 schema +struct<> +-- !query 17188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17189 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 17189 schema +struct<> +-- !query 17189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17190 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 17190 schema +struct<> +-- !query 17190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17191 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 17191 schema +struct<> +-- !query 17191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17192 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 17192 schema +struct<> +-- !query 17192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17193 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 17193 schema +struct<> +-- !query 17193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17194 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 17194 schema +struct<> +-- !query 17194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17195 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17195 schema +struct<> +-- !query 17195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17196 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17196 schema +struct<> +-- !query 17196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17197 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 17197 schema +struct<> +-- !query 17197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17198 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 17198 schema +struct<> +-- !query 17198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17199 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 17199 schema +struct<> +-- !query 17199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17200 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 17200 schema +struct<> +-- !query 17200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17201 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 17201 schema +struct<> +-- !query 17201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17202 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 17202 schema +struct<> +-- !query 17202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17203 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 17203 schema +struct<> +-- !query 17203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17204 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 17204 schema +struct<> +-- !query 17204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17205 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 17205 schema +struct<> +-- !query 17205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17206 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 17206 schema +struct<> +-- !query 17206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17207 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17207 schema +struct<> +-- !query 17207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17208 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17208 schema +struct<> +-- !query 17208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17209 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 17209 schema +struct<> +-- !query 17209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17210 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 17210 schema +struct<> +-- !query 17210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17211 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 17211 schema +struct<> +-- !query 17211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17212 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 17212 schema +struct<> +-- !query 17212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17213 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 17213 schema +struct<> +-- !query 17213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17214 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 17214 schema +struct<> +-- !query 17214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17215 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 17215 schema +struct<> +-- !query 17215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17216 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 17216 schema +struct<> +-- !query 17216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17217 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 17217 schema +struct<> +-- !query 17217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17218 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 17218 schema +struct<> +-- !query 17218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17219 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17219 schema +struct<> +-- !query 17219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17220 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17220 schema +struct<> +-- !query 17220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17221 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 17221 schema +struct<> +-- !query 17221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17222 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 17222 schema +struct<> +-- !query 17222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17223 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 17223 schema +struct<> +-- !query 17223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17224 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 17224 schema +struct<> +-- !query 17224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17225 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 17225 schema +struct<> +-- !query 17225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17226 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 17226 schema +struct<> +-- !query 17226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17227 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 17227 schema +struct<> +-- !query 17227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17228 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 17228 schema +struct<> +-- !query 17228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17229 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 17229 schema +struct<> +-- !query 17229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17230 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 17230 schema +struct<> +-- !query 17230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17231 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17231 schema +struct<> +-- !query 17231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17232 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17232 schema +struct<> +-- !query 17232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17233 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 17233 schema +struct<> +-- !query 17233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17234 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 17234 schema +struct<> +-- !query 17234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17235 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 17235 schema +struct<> +-- !query 17235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17236 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 17236 schema +struct<> +-- !query 17236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17237 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 17237 schema +struct<> +-- !query 17237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17238 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 17238 schema +struct<> +-- !query 17238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17239 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 17239 schema +struct<> +-- !query 17239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17240 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 17240 schema +struct<> +-- !query 17240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17241 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 17241 schema +struct<> +-- !query 17241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17242 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 17242 schema +struct<> +-- !query 17242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17243 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17243 schema +struct<> +-- !query 17243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17244 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17244 schema +struct<> +-- !query 17244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17245 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 17245 schema +struct<> +-- !query 17245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17246 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 17246 schema +struct<> +-- !query 17246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17247 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 17247 schema +struct<> +-- !query 17247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17248 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 17248 schema +struct<> +-- !query 17248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17249 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 17249 schema +struct<> +-- !query 17249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17250 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 17250 schema +struct<> +-- !query 17250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17251 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 17251 schema +struct<> +-- !query 17251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17252 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 17252 schema +struct> +-- !query 17252 output +{true:"2"} + + +-- !query 17253 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 17253 schema +struct<> +-- !query 17253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17254 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 17254 schema +struct<> +-- !query 17254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17255 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17255 schema +struct> +-- !query 17255 output +{true:2017-12-12 09:30:00.0} + + +-- !query 17256 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17256 schema +struct> +-- !query 17256 output +{true:2017-12-12 00:00:00.0} + + +-- !query 17257 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 17257 schema +struct<> +-- !query 17257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17258 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 17258 schema +struct<> +-- !query 17258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17259 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 17259 schema +struct<> +-- !query 17259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17260 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 17260 schema +struct<> +-- !query 17260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17261 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 17261 schema +struct<> +-- !query 17261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17262 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 17262 schema +struct<> +-- !query 17262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17263 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 17263 schema +struct<> +-- !query 17263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17264 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 17264 schema +struct<> +-- !query 17264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17265 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 17265 schema +struct<> +-- !query 17265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17266 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 17266 schema +struct<> +-- !query 17266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17267 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17267 schema +struct<> +-- !query 17267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17268 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17268 schema +struct<> +-- !query 17268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17269 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 17269 schema +struct<> +-- !query 17269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17270 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 17270 schema +struct<> +-- !query 17270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17271 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 17271 schema +struct<> +-- !query 17271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17272 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 17272 schema +struct<> +-- !query 17272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17273 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 17273 schema +struct<> +-- !query 17273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17274 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 17274 schema +struct<> +-- !query 17274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17275 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 17275 schema +struct<> +-- !query 17275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17276 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 17276 schema +struct<> +-- !query 17276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17277 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 17277 schema +struct<> +-- !query 17277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17278 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 17278 schema +struct<> +-- !query 17278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17279 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17279 schema +struct<> +-- !query 17279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17280 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17280 schema +struct<> +-- !query 17280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17281 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 17281 schema +struct<> +-- !query 17281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17282 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 17282 schema +struct<> +-- !query 17282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17283 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 17283 schema +struct<> +-- !query 17283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17284 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 17284 schema +struct<> +-- !query 17284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17285 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 17285 schema +struct<> +-- !query 17285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17286 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 17286 schema +struct<> +-- !query 17286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17287 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 17287 schema +struct<> +-- !query 17287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17288 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 17288 schema +struct<> +-- !query 17288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17289 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 17289 schema +struct<> +-- !query 17289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17290 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 17290 schema +struct<> +-- !query 17290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17291 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17291 schema +struct<> +-- !query 17291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17292 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17292 schema +struct<> +-- !query 17292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 17293 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 17293 schema +struct<> +-- !query 17293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17294 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 17294 schema +struct<> +-- !query 17294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17295 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 17295 schema +struct<> +-- !query 17295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17296 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 17296 schema +struct<> +-- !query 17296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17297 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 17297 schema +struct<> +-- !query 17297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17298 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 17298 schema +struct<> +-- !query 17298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17299 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 17299 schema +struct<> +-- !query 17299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17300 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 17300 schema +struct<> +-- !query 17300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17301 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 17301 schema +struct<> +-- !query 17301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17302 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 17302 schema +struct<> +-- !query 17302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17303 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17303 schema +struct<> +-- !query 17303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17304 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17304 schema +struct<> +-- !query 17304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 17305 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 17305 schema +struct<> +-- !query 17305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17306 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 17306 schema +struct<> +-- !query 17306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17307 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 17307 schema +struct<> +-- !query 17307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17308 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 17308 schema +struct<> +-- !query 17308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17309 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 17309 schema +struct<> +-- !query 17309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17310 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 17310 schema +struct<> +-- !query 17310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17311 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 17311 schema +struct<> +-- !query 17311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17312 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 17312 schema +struct<> +-- !query 17312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17313 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 17313 schema +struct<> +-- !query 17313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17314 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 17314 schema +struct<> +-- !query 17314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17315 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17315 schema +struct<> +-- !query 17315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17316 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17316 schema +struct<> +-- !query 17316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 17317 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 17317 schema +struct<> +-- !query 17317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17318 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 17318 schema +struct<> +-- !query 17318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17319 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 17319 schema +struct<> +-- !query 17319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17320 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 17320 schema +struct<> +-- !query 17320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17321 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 17321 schema +struct<> +-- !query 17321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17322 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 17322 schema +struct<> +-- !query 17322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17323 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 17323 schema +struct<> +-- !query 17323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17324 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 17324 schema +struct<> +-- !query 17324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17325 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 17325 schema +struct<> +-- !query 17325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17326 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 17326 schema +struct<> +-- !query 17326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17327 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17327 schema +struct<> +-- !query 17327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17328 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17328 schema +struct<> +-- !query 17328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 17329 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 17329 schema +struct<> +-- !query 17329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17330 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 17330 schema +struct<> +-- !query 17330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17331 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 17331 schema +struct<> +-- !query 17331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17332 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 17332 schema +struct<> +-- !query 17332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17333 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 17333 schema +struct<> +-- !query 17333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17334 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 17334 schema +struct<> +-- !query 17334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17335 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 17335 schema +struct<> +-- !query 17335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17336 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 17336 schema +struct<> +-- !query 17336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17337 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 17337 schema +struct<> +-- !query 17337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17338 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 17338 schema +struct<> +-- !query 17338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17339 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17339 schema +struct<> +-- !query 17339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17340 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17340 schema +struct<> +-- !query 17340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 17341 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 17341 schema +struct<> +-- !query 17341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17342 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 17342 schema +struct<> +-- !query 17342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17343 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 17343 schema +struct<> +-- !query 17343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17344 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 17344 schema +struct<> +-- !query 17344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17345 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 17345 schema +struct<> +-- !query 17345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17346 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 17346 schema +struct<> +-- !query 17346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17347 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 17347 schema +struct<> +-- !query 17347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17348 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 17348 schema +struct<> +-- !query 17348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17349 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 17349 schema +struct<> +-- !query 17349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17350 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 17350 schema +struct<> +-- !query 17350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17351 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17351 schema +struct<> +-- !query 17351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17352 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17352 schema +struct<> +-- !query 17352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 17353 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 17353 schema +struct<> +-- !query 17353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17354 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 17354 schema +struct<> +-- !query 17354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17355 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 17355 schema +struct<> +-- !query 17355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17356 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 17356 schema +struct<> +-- !query 17356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17357 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 17357 schema +struct<> +-- !query 17357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17358 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 17358 schema +struct<> +-- !query 17358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17359 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 17359 schema +struct<> +-- !query 17359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17360 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 17360 schema +struct<> +-- !query 17360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17361 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 17361 schema +struct<> +-- !query 17361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17362 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 17362 schema +struct<> +-- !query 17362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17363 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17363 schema +struct<> +-- !query 17363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17364 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17364 schema +struct<> +-- !query 17364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 17365 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 17365 schema +struct<> +-- !query 17365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17366 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 17366 schema +struct<> +-- !query 17366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17367 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 17367 schema +struct<> +-- !query 17367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17368 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 17368 schema +struct<> +-- !query 17368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17369 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 17369 schema +struct<> +-- !query 17369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17370 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 17370 schema +struct<> +-- !query 17370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17371 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 17371 schema +struct<> +-- !query 17371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17372 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 17372 schema +struct<> +-- !query 17372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17373 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 17373 schema +struct<> +-- !query 17373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17374 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 17374 schema +struct<> +-- !query 17374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17375 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17375 schema +struct<> +-- !query 17375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17376 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17376 schema +struct<> +-- !query 17376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 17377 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 17377 schema +struct<> +-- !query 17377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17378 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 17378 schema +struct<> +-- !query 17378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17379 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 17379 schema +struct<> +-- !query 17379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17380 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 17380 schema +struct<> +-- !query 17380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17381 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 17381 schema +struct<> +-- !query 17381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17382 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 17382 schema +struct<> +-- !query 17382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17383 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 17383 schema +struct<> +-- !query 17383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17384 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 17384 schema +struct<> +-- !query 17384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17385 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 17385 schema +struct<> +-- !query 17385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17386 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 17386 schema +struct<> +-- !query 17386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17387 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17387 schema +struct<> +-- !query 17387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17388 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17388 schema +struct<> +-- !query 17388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 17389 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 17389 schema +struct<> +-- !query 17389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 17390 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 17390 schema +struct<> +-- !query 17390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 17391 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 17391 schema +struct<> +-- !query 17391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 17392 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 17392 schema +struct<> +-- !query 17392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 17393 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 17393 schema +struct<> +-- !query 17393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 17394 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 17394 schema +struct<> +-- !query 17394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 17395 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 17395 schema +struct<> +-- !query 17395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 17396 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 17396 schema +struct> +-- !query 17396 output +{true:"2"} + + +-- !query 17397 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 17397 schema +struct<> +-- !query 17397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 17398 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 17398 schema +struct<> +-- !query 17398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 17399 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17399 schema +struct> +-- !query 17399 output +{true:2017-12-12 09:30:00.0} + + +-- !query 17400 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17400 schema +struct> +-- !query 17400 output +{true:2017-12-12} + + +-- !query 17401 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 17401 schema +struct<> +-- !query 17401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17402 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 17402 schema +struct<> +-- !query 17402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17403 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 17403 schema +struct<> +-- !query 17403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17404 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 17404 schema +struct<> +-- !query 17404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17405 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 17405 schema +struct<> +-- !query 17405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17406 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 17406 schema +struct<> +-- !query 17406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17407 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 17407 schema +struct<> +-- !query 17407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17408 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 17408 schema +struct<> +-- !query 17408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17409 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 17409 schema +struct<> +-- !query 17409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17410 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 17410 schema +struct<> +-- !query 17410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17411 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17411 schema +struct<> +-- !query 17411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17412 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17412 schema +struct<> +-- !query 17412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 17413 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 17413 schema +struct<> +-- !query 17413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17414 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 17414 schema +struct<> +-- !query 17414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17415 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 17415 schema +struct<> +-- !query 17415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17416 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 17416 schema +struct<> +-- !query 17416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17417 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 17417 schema +struct<> +-- !query 17417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17418 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 17418 schema +struct<> +-- !query 17418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17419 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 17419 schema +struct<> +-- !query 17419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17420 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 17420 schema +struct<> +-- !query 17420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17421 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 17421 schema +struct<> +-- !query 17421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17422 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 17422 schema +struct<> +-- !query 17422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17423 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17423 schema +struct<> +-- !query 17423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17424 +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17424 schema +struct<> +-- !query 17424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 17425 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 17425 schema +struct<> +-- !query 17425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17426 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 17426 schema +struct<> +-- !query 17426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17427 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 17427 schema +struct<> +-- !query 17427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17428 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 17428 schema +struct<> +-- !query 17428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17429 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 17429 schema +struct<> +-- !query 17429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17430 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 17430 schema +struct<> +-- !query 17430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17431 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 17431 schema +struct<> +-- !query 17431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17432 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 17432 schema +struct<> +-- !query 17432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17433 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 17433 schema +struct<> +-- !query 17433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17434 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 17434 schema +struct<> +-- !query 17434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17435 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17435 schema +struct<> +-- !query 17435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17436 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17436 schema +struct<> +-- !query 17436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17437 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 17437 schema +struct<> +-- !query 17437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17438 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 17438 schema +struct<> +-- !query 17438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17439 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 17439 schema +struct<> +-- !query 17439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17440 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 17440 schema +struct<> +-- !query 17440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17441 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 17441 schema +struct<> +-- !query 17441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17442 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 17442 schema +struct<> +-- !query 17442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17443 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 17443 schema +struct<> +-- !query 17443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17444 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 17444 schema +struct<> +-- !query 17444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17445 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 17445 schema +struct<> +-- !query 17445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17446 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 17446 schema +struct<> +-- !query 17446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17447 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17447 schema +struct<> +-- !query 17447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17448 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17448 schema +struct<> +-- !query 17448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17449 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 17449 schema +struct<> +-- !query 17449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17450 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 17450 schema +struct<> +-- !query 17450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17451 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 17451 schema +struct<> +-- !query 17451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17452 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 17452 schema +struct<> +-- !query 17452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17453 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 17453 schema +struct<> +-- !query 17453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17454 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 17454 schema +struct<> +-- !query 17454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17455 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 17455 schema +struct<> +-- !query 17455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17456 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 17456 schema +struct<> +-- !query 17456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17457 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 17457 schema +struct<> +-- !query 17457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17458 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 17458 schema +struct<> +-- !query 17458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17459 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17459 schema +struct<> +-- !query 17459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17460 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17460 schema +struct<> +-- !query 17460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17461 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 17461 schema +struct<> +-- !query 17461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17462 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 17462 schema +struct<> +-- !query 17462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17463 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 17463 schema +struct<> +-- !query 17463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17464 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 17464 schema +struct<> +-- !query 17464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17465 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 17465 schema +struct<> +-- !query 17465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17466 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 17466 schema +struct<> +-- !query 17466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17467 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 17467 schema +struct<> +-- !query 17467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17468 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 17468 schema +struct<> +-- !query 17468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17469 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 17469 schema +struct<> +-- !query 17469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17470 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 17470 schema +struct<> +-- !query 17470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17471 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17471 schema +struct<> +-- !query 17471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17472 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17472 schema +struct<> +-- !query 17472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17473 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 17473 schema +struct<> +-- !query 17473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17474 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 17474 schema +struct<> +-- !query 17474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17475 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 17475 schema +struct<> +-- !query 17475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17476 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 17476 schema +struct<> +-- !query 17476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17477 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 17477 schema +struct<> +-- !query 17477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17478 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 17478 schema +struct<> +-- !query 17478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17479 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 17479 schema +struct<> +-- !query 17479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17480 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 17480 schema +struct<> +-- !query 17480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17481 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 17481 schema +struct<> +-- !query 17481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17482 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 17482 schema +struct<> +-- !query 17482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17483 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17483 schema +struct<> +-- !query 17483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17484 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17484 schema +struct<> +-- !query 17484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17485 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 17485 schema +struct<> +-- !query 17485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17486 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 17486 schema +struct<> +-- !query 17486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17487 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 17487 schema +struct<> +-- !query 17487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17488 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 17488 schema +struct<> +-- !query 17488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17489 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 17489 schema +struct<> +-- !query 17489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17490 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 17490 schema +struct<> +-- !query 17490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17491 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 17491 schema +struct<> +-- !query 17491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17492 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 17492 schema +struct<> +-- !query 17492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17493 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 17493 schema +struct<> +-- !query 17493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17494 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 17494 schema +struct<> +-- !query 17494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17495 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17495 schema +struct<> +-- !query 17495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17496 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17496 schema +struct<> +-- !query 17496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17497 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 17497 schema +struct<> +-- !query 17497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17498 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 17498 schema +struct<> +-- !query 17498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17499 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 17499 schema +struct<> +-- !query 17499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17500 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 17500 schema +struct<> +-- !query 17500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17501 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 17501 schema +struct<> +-- !query 17501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17502 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 17502 schema +struct<> +-- !query 17502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17503 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 17503 schema +struct<> +-- !query 17503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17504 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 17504 schema +struct<> +-- !query 17504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17505 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 17505 schema +struct<> +-- !query 17505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17506 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 17506 schema +struct<> +-- !query 17506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17507 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17507 schema +struct<> +-- !query 17507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17508 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17508 schema +struct<> +-- !query 17508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17509 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 17509 schema +struct> +-- !query 17509 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17510 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 17510 schema +struct> +-- !query 17510 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17511 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 17511 schema +struct> +-- !query 17511 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17512 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 17512 schema +struct> +-- !query 17512 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17513 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 17513 schema +struct> +-- !query 17513 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17514 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 17514 schema +struct> +-- !query 17514 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17515 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 17515 schema +struct> +-- !query 17515 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17516 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 17516 schema +struct> +-- !query 17516 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 17517 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 17517 schema +struct<> +-- !query 17517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 17518 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 17518 schema +struct<> +-- !query 17518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 17519 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17519 schema +struct<> +-- !query 17519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 17520 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17520 schema +struct<> +-- !query 17520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 17521 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 17521 schema +struct<> +-- !query 17521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17522 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 17522 schema +struct<> +-- !query 17522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17523 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 17523 schema +struct<> +-- !query 17523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17524 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 17524 schema +struct<> +-- !query 17524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17525 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 17525 schema +struct<> +-- !query 17525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17526 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 17526 schema +struct<> +-- !query 17526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17527 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 17527 schema +struct<> +-- !query 17527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17528 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 17528 schema +struct<> +-- !query 17528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17529 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 17529 schema +struct<> +-- !query 17529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17530 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 17530 schema +struct<> +-- !query 17530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17531 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17531 schema +struct<> +-- !query 17531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17532 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17532 schema +struct<> +-- !query 17532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17533 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 17533 schema +struct<> +-- !query 17533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17534 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 17534 schema +struct<> +-- !query 17534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17535 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 17535 schema +struct<> +-- !query 17535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17536 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 17536 schema +struct<> +-- !query 17536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17537 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 17537 schema +struct<> +-- !query 17537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17538 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 17538 schema +struct<> +-- !query 17538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17539 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 17539 schema +struct<> +-- !query 17539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17540 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 17540 schema +struct<> +-- !query 17540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17541 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 17541 schema +struct<> +-- !query 17541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17542 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 17542 schema +struct<> +-- !query 17542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17543 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17543 schema +struct<> +-- !query 17543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17544 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17544 schema +struct<> +-- !query 17544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17545 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 17545 schema +struct> +-- !query 17545 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17546 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 17546 schema +struct> +-- !query 17546 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17547 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 17547 schema +struct> +-- !query 17547 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17548 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 17548 schema +struct> +-- !query 17548 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17549 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 17549 schema +struct> +-- !query 17549 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17550 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 17550 schema +struct> +-- !query 17550 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17551 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 17551 schema +struct> +-- !query 17551 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17552 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 17552 schema +struct> +-- !query 17552 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 17553 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 17553 schema +struct<> +-- !query 17553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 17554 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 17554 schema +struct<> +-- !query 17554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 17555 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17555 schema +struct<> +-- !query 17555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 17556 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17556 schema +struct<> +-- !query 17556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 17557 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 17557 schema +struct> +-- !query 17557 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17558 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 17558 schema +struct> +-- !query 17558 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17559 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 17559 schema +struct> +-- !query 17559 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17560 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 17560 schema +struct> +-- !query 17560 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17561 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 17561 schema +struct> +-- !query 17561 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17562 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 17562 schema +struct> +-- !query 17562 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17563 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 17563 schema +struct> +-- !query 17563 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17564 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 17564 schema +struct> +-- !query 17564 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 17565 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 17565 schema +struct<> +-- !query 17565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 17566 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 17566 schema +struct<> +-- !query 17566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 17567 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17567 schema +struct<> +-- !query 17567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 17568 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17568 schema +struct<> +-- !query 17568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 17569 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 17569 schema +struct<> +-- !query 17569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17570 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 17570 schema +struct<> +-- !query 17570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17571 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 17571 schema +struct<> +-- !query 17571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17572 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 17572 schema +struct<> +-- !query 17572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17573 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 17573 schema +struct<> +-- !query 17573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17574 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 17574 schema +struct<> +-- !query 17574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17575 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 17575 schema +struct<> +-- !query 17575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17576 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 17576 schema +struct<> +-- !query 17576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17577 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 17577 schema +struct<> +-- !query 17577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17578 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 17578 schema +struct<> +-- !query 17578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17579 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17579 schema +struct<> +-- !query 17579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17580 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17580 schema +struct<> +-- !query 17580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17581 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 17581 schema +struct<> +-- !query 17581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17582 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 17582 schema +struct<> +-- !query 17582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17583 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 17583 schema +struct<> +-- !query 17583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17584 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 17584 schema +struct<> +-- !query 17584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17585 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 17585 schema +struct<> +-- !query 17585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17586 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 17586 schema +struct<> +-- !query 17586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17587 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 17587 schema +struct<> +-- !query 17587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17588 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 17588 schema +struct<> +-- !query 17588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17589 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 17589 schema +struct<> +-- !query 17589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17590 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 17590 schema +struct<> +-- !query 17590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17591 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17591 schema +struct<> +-- !query 17591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17592 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17592 schema +struct<> +-- !query 17592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17593 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 17593 schema +struct<> +-- !query 17593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17594 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 17594 schema +struct<> +-- !query 17594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17595 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 17595 schema +struct<> +-- !query 17595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17596 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 17596 schema +struct<> +-- !query 17596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17597 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 17597 schema +struct<> +-- !query 17597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17598 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 17598 schema +struct<> +-- !query 17598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17599 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 17599 schema +struct<> +-- !query 17599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17600 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 17600 schema +struct<> +-- !query 17600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17601 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 17601 schema +struct<> +-- !query 17601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17602 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 17602 schema +struct<> +-- !query 17602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17603 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17603 schema +struct<> +-- !query 17603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17604 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17604 schema +struct<> +-- !query 17604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17605 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 17605 schema +struct<> +-- !query 17605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17606 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 17606 schema +struct<> +-- !query 17606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17607 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 17607 schema +struct<> +-- !query 17607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17608 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 17608 schema +struct<> +-- !query 17608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17609 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 17609 schema +struct<> +-- !query 17609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17610 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 17610 schema +struct<> +-- !query 17610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17611 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 17611 schema +struct<> +-- !query 17611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17612 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 17612 schema +struct<> +-- !query 17612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17613 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 17613 schema +struct<> +-- !query 17613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17614 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 17614 schema +struct<> +-- !query 17614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17615 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17615 schema +struct<> +-- !query 17615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17616 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17616 schema +struct<> +-- !query 17616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17617 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 17617 schema +struct<> +-- !query 17617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17618 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 17618 schema +struct<> +-- !query 17618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17619 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 17619 schema +struct<> +-- !query 17619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17620 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 17620 schema +struct<> +-- !query 17620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17621 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 17621 schema +struct<> +-- !query 17621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17622 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 17622 schema +struct<> +-- !query 17622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17623 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 17623 schema +struct<> +-- !query 17623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17624 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 17624 schema +struct<> +-- !query 17624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17625 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 17625 schema +struct<> +-- !query 17625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17626 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 17626 schema +struct<> +-- !query 17626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17627 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17627 schema +struct<> +-- !query 17627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17628 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17628 schema +struct<> +-- !query 17628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17629 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 17629 schema +struct<> +-- !query 17629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17630 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 17630 schema +struct<> +-- !query 17630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17631 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 17631 schema +struct<> +-- !query 17631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17632 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 17632 schema +struct<> +-- !query 17632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17633 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 17633 schema +struct<> +-- !query 17633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17634 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 17634 schema +struct<> +-- !query 17634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17635 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 17635 schema +struct<> +-- !query 17635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17636 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 17636 schema +struct<> +-- !query 17636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17637 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 17637 schema +struct<> +-- !query 17637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17638 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 17638 schema +struct<> +-- !query 17638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17639 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17639 schema +struct<> +-- !query 17639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17640 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17640 schema +struct<> +-- !query 17640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17641 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 17641 schema +struct<> +-- !query 17641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17642 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 17642 schema +struct<> +-- !query 17642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17643 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 17643 schema +struct<> +-- !query 17643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17644 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 17644 schema +struct<> +-- !query 17644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17645 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 17645 schema +struct<> +-- !query 17645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17646 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 17646 schema +struct<> +-- !query 17646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17647 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 17647 schema +struct<> +-- !query 17647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17648 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 17648 schema +struct<> +-- !query 17648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17649 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 17649 schema +struct<> +-- !query 17649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17650 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 17650 schema +struct<> +-- !query 17650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17651 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17651 schema +struct<> +-- !query 17651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17652 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17652 schema +struct<> +-- !query 17652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17653 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 17653 schema +struct> +-- !query 17653 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17654 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 17654 schema +struct> +-- !query 17654 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17655 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 17655 schema +struct> +-- !query 17655 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17656 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 17656 schema +struct> +-- !query 17656 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17657 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 17657 schema +struct> +-- !query 17657 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17658 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 17658 schema +struct> +-- !query 17658 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17659 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 17659 schema +struct> +-- !query 17659 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17660 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 17660 schema +struct> +-- !query 17660 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 17661 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 17661 schema +struct<> +-- !query 17661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 17662 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 17662 schema +struct<> +-- !query 17662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 17663 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17663 schema +struct<> +-- !query 17663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 17664 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17664 schema +struct<> +-- !query 17664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 17665 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 17665 schema +struct<> +-- !query 17665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17666 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 17666 schema +struct<> +-- !query 17666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17667 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 17667 schema +struct<> +-- !query 17667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17668 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 17668 schema +struct<> +-- !query 17668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17669 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 17669 schema +struct<> +-- !query 17669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17670 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 17670 schema +struct<> +-- !query 17670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17671 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 17671 schema +struct<> +-- !query 17671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17672 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 17672 schema +struct<> +-- !query 17672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17673 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 17673 schema +struct<> +-- !query 17673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17674 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 17674 schema +struct<> +-- !query 17674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17675 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17675 schema +struct<> +-- !query 17675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17676 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17676 schema +struct<> +-- !query 17676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17677 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 17677 schema +struct<> +-- !query 17677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17678 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 17678 schema +struct<> +-- !query 17678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17679 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 17679 schema +struct<> +-- !query 17679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17680 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 17680 schema +struct<> +-- !query 17680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17681 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 17681 schema +struct<> +-- !query 17681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17682 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 17682 schema +struct<> +-- !query 17682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17683 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 17683 schema +struct<> +-- !query 17683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17684 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 17684 schema +struct<> +-- !query 17684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17685 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 17685 schema +struct<> +-- !query 17685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17686 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 17686 schema +struct<> +-- !query 17686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17687 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17687 schema +struct<> +-- !query 17687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17688 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17688 schema +struct<> +-- !query 17688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17689 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 17689 schema +struct> +-- !query 17689 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17690 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 17690 schema +struct> +-- !query 17690 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17691 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 17691 schema +struct> +-- !query 17691 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17692 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 17692 schema +struct> +-- !query 17692 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17693 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 17693 schema +struct> +-- !query 17693 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17694 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 17694 schema +struct> +-- !query 17694 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17695 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 17695 schema +struct> +-- !query 17695 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17696 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 17696 schema +struct> +-- !query 17696 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 17697 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 17697 schema +struct<> +-- !query 17697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 17698 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 17698 schema +struct<> +-- !query 17698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 17699 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17699 schema +struct<> +-- !query 17699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 17700 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17700 schema +struct<> +-- !query 17700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 17701 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 17701 schema +struct> +-- !query 17701 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17702 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 17702 schema +struct> +-- !query 17702 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17703 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 17703 schema +struct> +-- !query 17703 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17704 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 17704 schema +struct> +-- !query 17704 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17705 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 17705 schema +struct> +-- !query 17705 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17706 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 17706 schema +struct> +-- !query 17706 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17707 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 17707 schema +struct> +-- !query 17707 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17708 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 17708 schema +struct> +-- !query 17708 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 17709 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 17709 schema +struct<> +-- !query 17709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 17710 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 17710 schema +struct<> +-- !query 17710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 17711 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17711 schema +struct<> +-- !query 17711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 17712 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17712 schema +struct<> +-- !query 17712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 17713 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 17713 schema +struct<> +-- !query 17713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17714 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 17714 schema +struct<> +-- !query 17714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17715 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 17715 schema +struct<> +-- !query 17715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17716 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 17716 schema +struct<> +-- !query 17716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17717 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 17717 schema +struct<> +-- !query 17717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17718 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 17718 schema +struct<> +-- !query 17718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17719 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 17719 schema +struct<> +-- !query 17719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17720 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 17720 schema +struct<> +-- !query 17720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17721 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 17721 schema +struct<> +-- !query 17721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17722 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 17722 schema +struct<> +-- !query 17722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17723 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17723 schema +struct<> +-- !query 17723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17724 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17724 schema +struct<> +-- !query 17724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17725 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 17725 schema +struct<> +-- !query 17725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17726 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 17726 schema +struct<> +-- !query 17726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17727 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 17727 schema +struct<> +-- !query 17727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17728 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 17728 schema +struct<> +-- !query 17728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17729 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 17729 schema +struct<> +-- !query 17729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17730 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 17730 schema +struct<> +-- !query 17730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17731 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 17731 schema +struct<> +-- !query 17731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17732 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 17732 schema +struct<> +-- !query 17732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17733 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 17733 schema +struct<> +-- !query 17733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17734 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 17734 schema +struct<> +-- !query 17734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17735 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17735 schema +struct<> +-- !query 17735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17736 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17736 schema +struct<> +-- !query 17736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17737 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 17737 schema +struct<> +-- !query 17737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17738 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 17738 schema +struct<> +-- !query 17738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17739 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 17739 schema +struct<> +-- !query 17739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17740 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 17740 schema +struct<> +-- !query 17740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17741 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 17741 schema +struct<> +-- !query 17741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17742 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 17742 schema +struct<> +-- !query 17742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17743 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 17743 schema +struct<> +-- !query 17743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17744 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 17744 schema +struct<> +-- !query 17744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17745 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 17745 schema +struct<> +-- !query 17745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17746 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 17746 schema +struct<> +-- !query 17746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17747 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17747 schema +struct<> +-- !query 17747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17748 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17748 schema +struct<> +-- !query 17748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17749 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 17749 schema +struct<> +-- !query 17749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17750 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 17750 schema +struct<> +-- !query 17750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17751 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 17751 schema +struct<> +-- !query 17751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17752 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 17752 schema +struct<> +-- !query 17752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17753 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 17753 schema +struct<> +-- !query 17753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17754 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 17754 schema +struct<> +-- !query 17754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17755 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 17755 schema +struct<> +-- !query 17755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17756 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 17756 schema +struct<> +-- !query 17756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17757 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 17757 schema +struct<> +-- !query 17757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17758 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 17758 schema +struct<> +-- !query 17758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17759 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17759 schema +struct<> +-- !query 17759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17760 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17760 schema +struct<> +-- !query 17760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17761 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 17761 schema +struct<> +-- !query 17761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17762 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 17762 schema +struct<> +-- !query 17762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17763 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 17763 schema +struct<> +-- !query 17763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17764 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 17764 schema +struct<> +-- !query 17764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17765 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 17765 schema +struct<> +-- !query 17765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17766 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 17766 schema +struct<> +-- !query 17766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17767 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 17767 schema +struct<> +-- !query 17767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17768 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 17768 schema +struct<> +-- !query 17768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17769 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 17769 schema +struct<> +-- !query 17769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17770 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 17770 schema +struct<> +-- !query 17770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17771 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17771 schema +struct<> +-- !query 17771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17772 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17772 schema +struct<> +-- !query 17772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17773 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 17773 schema +struct<> +-- !query 17773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17774 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 17774 schema +struct<> +-- !query 17774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17775 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 17775 schema +struct<> +-- !query 17775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17776 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 17776 schema +struct<> +-- !query 17776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17777 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 17777 schema +struct<> +-- !query 17777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17778 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 17778 schema +struct<> +-- !query 17778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17779 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 17779 schema +struct<> +-- !query 17779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17780 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 17780 schema +struct<> +-- !query 17780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17781 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 17781 schema +struct<> +-- !query 17781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17782 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 17782 schema +struct<> +-- !query 17782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17783 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17783 schema +struct<> +-- !query 17783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17784 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17784 schema +struct<> +-- !query 17784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17785 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 17785 schema +struct<> +-- !query 17785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17786 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 17786 schema +struct<> +-- !query 17786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17787 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 17787 schema +struct<> +-- !query 17787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17788 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 17788 schema +struct<> +-- !query 17788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17789 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 17789 schema +struct<> +-- !query 17789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17790 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 17790 schema +struct<> +-- !query 17790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17791 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 17791 schema +struct<> +-- !query 17791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17792 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 17792 schema +struct<> +-- !query 17792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17793 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 17793 schema +struct<> +-- !query 17793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17794 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 17794 schema +struct<> +-- !query 17794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17795 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17795 schema +struct<> +-- !query 17795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17796 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17796 schema +struct<> +-- !query 17796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17797 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 17797 schema +struct> +-- !query 17797 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17798 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 17798 schema +struct> +-- !query 17798 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17799 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 17799 schema +struct> +-- !query 17799 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17800 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 17800 schema +struct> +-- !query 17800 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17801 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 17801 schema +struct> +-- !query 17801 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17802 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 17802 schema +struct> +-- !query 17802 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17803 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 17803 schema +struct> +-- !query 17803 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17804 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 17804 schema +struct> +-- !query 17804 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 17805 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 17805 schema +struct<> +-- !query 17805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 17806 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 17806 schema +struct<> +-- !query 17806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 17807 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17807 schema +struct<> +-- !query 17807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 17808 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17808 schema +struct<> +-- !query 17808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 17809 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 17809 schema +struct<> +-- !query 17809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17810 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 17810 schema +struct<> +-- !query 17810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17811 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 17811 schema +struct<> +-- !query 17811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17812 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 17812 schema +struct<> +-- !query 17812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17813 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 17813 schema +struct<> +-- !query 17813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17814 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 17814 schema +struct<> +-- !query 17814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17815 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 17815 schema +struct<> +-- !query 17815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17816 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 17816 schema +struct<> +-- !query 17816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17817 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 17817 schema +struct<> +-- !query 17817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17818 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 17818 schema +struct<> +-- !query 17818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17819 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17819 schema +struct<> +-- !query 17819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17820 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17820 schema +struct<> +-- !query 17820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17821 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 17821 schema +struct<> +-- !query 17821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17822 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 17822 schema +struct<> +-- !query 17822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17823 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 17823 schema +struct<> +-- !query 17823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17824 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 17824 schema +struct<> +-- !query 17824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17825 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 17825 schema +struct<> +-- !query 17825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17826 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 17826 schema +struct<> +-- !query 17826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17827 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 17827 schema +struct<> +-- !query 17827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17828 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 17828 schema +struct<> +-- !query 17828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17829 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 17829 schema +struct<> +-- !query 17829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17830 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 17830 schema +struct<> +-- !query 17830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17831 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17831 schema +struct<> +-- !query 17831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17832 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17832 schema +struct<> +-- !query 17832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17833 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 17833 schema +struct> +-- !query 17833 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17834 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 17834 schema +struct> +-- !query 17834 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17835 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 17835 schema +struct> +-- !query 17835 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17836 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 17836 schema +struct> +-- !query 17836 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17837 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 17837 schema +struct> +-- !query 17837 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17838 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 17838 schema +struct> +-- !query 17838 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17839 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 17839 schema +struct> +-- !query 17839 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17840 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 17840 schema +struct> +-- !query 17840 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 17841 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 17841 schema +struct<> +-- !query 17841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 17842 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 17842 schema +struct<> +-- !query 17842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 17843 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17843 schema +struct<> +-- !query 17843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 17844 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17844 schema +struct<> +-- !query 17844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 17845 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 17845 schema +struct> +-- !query 17845 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17846 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 17846 schema +struct> +-- !query 17846 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17847 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 17847 schema +struct> +-- !query 17847 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17848 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 17848 schema +struct> +-- !query 17848 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17849 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 17849 schema +struct> +-- !query 17849 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17850 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 17850 schema +struct> +-- !query 17850 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17851 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 17851 schema +struct> +-- !query 17851 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17852 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 17852 schema +struct> +-- !query 17852 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 17853 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 17853 schema +struct<> +-- !query 17853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 17854 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 17854 schema +struct<> +-- !query 17854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 17855 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17855 schema +struct<> +-- !query 17855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 17856 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17856 schema +struct<> +-- !query 17856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 17857 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 17857 schema +struct<> +-- !query 17857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17858 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 17858 schema +struct<> +-- !query 17858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17859 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 17859 schema +struct<> +-- !query 17859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17860 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 17860 schema +struct<> +-- !query 17860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17861 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 17861 schema +struct<> +-- !query 17861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17862 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 17862 schema +struct<> +-- !query 17862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17863 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 17863 schema +struct<> +-- !query 17863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17864 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 17864 schema +struct<> +-- !query 17864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17865 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 17865 schema +struct<> +-- !query 17865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17866 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 17866 schema +struct<> +-- !query 17866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17867 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17867 schema +struct<> +-- !query 17867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17868 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17868 schema +struct<> +-- !query 17868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 17869 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 17869 schema +struct<> +-- !query 17869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17870 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 17870 schema +struct<> +-- !query 17870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17871 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 17871 schema +struct<> +-- !query 17871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17872 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 17872 schema +struct<> +-- !query 17872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17873 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 17873 schema +struct<> +-- !query 17873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17874 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 17874 schema +struct<> +-- !query 17874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17875 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 17875 schema +struct<> +-- !query 17875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17876 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 17876 schema +struct<> +-- !query 17876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17877 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 17877 schema +struct<> +-- !query 17877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17878 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 17878 schema +struct<> +-- !query 17878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17879 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17879 schema +struct<> +-- !query 17879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17880 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17880 schema +struct<> +-- !query 17880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 17881 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 17881 schema +struct<> +-- !query 17881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17882 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 17882 schema +struct<> +-- !query 17882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17883 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 17883 schema +struct<> +-- !query 17883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17884 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 17884 schema +struct<> +-- !query 17884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17885 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 17885 schema +struct<> +-- !query 17885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17886 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 17886 schema +struct<> +-- !query 17886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17887 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 17887 schema +struct<> +-- !query 17887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17888 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 17888 schema +struct<> +-- !query 17888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17889 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 17889 schema +struct<> +-- !query 17889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17890 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 17890 schema +struct<> +-- !query 17890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17891 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17891 schema +struct<> +-- !query 17891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17892 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17892 schema +struct<> +-- !query 17892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 17893 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 17893 schema +struct<> +-- !query 17893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17894 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 17894 schema +struct<> +-- !query 17894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17895 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 17895 schema +struct<> +-- !query 17895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17896 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 17896 schema +struct<> +-- !query 17896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17897 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 17897 schema +struct<> +-- !query 17897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17898 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 17898 schema +struct<> +-- !query 17898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17899 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 17899 schema +struct<> +-- !query 17899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17900 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 17900 schema +struct<> +-- !query 17900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17901 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 17901 schema +struct<> +-- !query 17901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17902 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 17902 schema +struct<> +-- !query 17902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17903 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17903 schema +struct<> +-- !query 17903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17904 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17904 schema +struct<> +-- !query 17904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 17905 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 17905 schema +struct<> +-- !query 17905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17906 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 17906 schema +struct<> +-- !query 17906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17907 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 17907 schema +struct<> +-- !query 17907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17908 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 17908 schema +struct<> +-- !query 17908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17909 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 17909 schema +struct<> +-- !query 17909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17910 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 17910 schema +struct<> +-- !query 17910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17911 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 17911 schema +struct<> +-- !query 17911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17912 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 17912 schema +struct<> +-- !query 17912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17913 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 17913 schema +struct<> +-- !query 17913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17914 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 17914 schema +struct<> +-- !query 17914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17915 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17915 schema +struct<> +-- !query 17915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17916 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17916 schema +struct<> +-- !query 17916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 17917 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 17917 schema +struct<> +-- !query 17917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17918 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 17918 schema +struct<> +-- !query 17918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17919 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 17919 schema +struct<> +-- !query 17919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17920 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 17920 schema +struct<> +-- !query 17920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17921 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 17921 schema +struct<> +-- !query 17921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17922 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 17922 schema +struct<> +-- !query 17922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17923 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 17923 schema +struct<> +-- !query 17923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17924 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 17924 schema +struct<> +-- !query 17924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17925 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 17925 schema +struct<> +-- !query 17925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17926 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 17926 schema +struct<> +-- !query 17926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17927 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17927 schema +struct<> +-- !query 17927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17928 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17928 schema +struct<> +-- !query 17928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 17929 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 17929 schema +struct<> +-- !query 17929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17930 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 17930 schema +struct<> +-- !query 17930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17931 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 17931 schema +struct<> +-- !query 17931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17932 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 17932 schema +struct<> +-- !query 17932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17933 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 17933 schema +struct<> +-- !query 17933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17934 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 17934 schema +struct<> +-- !query 17934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17935 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 17935 schema +struct<> +-- !query 17935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17936 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 17936 schema +struct<> +-- !query 17936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17937 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 17937 schema +struct<> +-- !query 17937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17938 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 17938 schema +struct<> +-- !query 17938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17939 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17939 schema +struct<> +-- !query 17939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17940 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17940 schema +struct<> +-- !query 17940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 17941 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 17941 schema +struct> +-- !query 17941 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17942 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 17942 schema +struct> +-- !query 17942 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17943 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 17943 schema +struct> +-- !query 17943 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17944 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 17944 schema +struct> +-- !query 17944 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17945 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 17945 schema +struct> +-- !query 17945 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17946 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 17946 schema +struct> +-- !query 17946 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 17947 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 17947 schema +struct> +-- !query 17947 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 17948 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 17948 schema +struct> +-- !query 17948 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 17949 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 17949 schema +struct<> +-- !query 17949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 17950 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 17950 schema +struct<> +-- !query 17950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 17951 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17951 schema +struct<> +-- !query 17951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 17952 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17952 schema +struct<> +-- !query 17952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 17953 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 17953 schema +struct<> +-- !query 17953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17954 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 17954 schema +struct<> +-- !query 17954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17955 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 17955 schema +struct<> +-- !query 17955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17956 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 17956 schema +struct<> +-- !query 17956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17957 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 17957 schema +struct<> +-- !query 17957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17958 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 17958 schema +struct<> +-- !query 17958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17959 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 17959 schema +struct<> +-- !query 17959 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17960 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 17960 schema +struct<> +-- !query 17960 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17961 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 17961 schema +struct<> +-- !query 17961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17962 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 17962 schema +struct<> +-- !query 17962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17963 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17963 schema +struct<> +-- !query 17963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17964 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17964 schema +struct<> +-- !query 17964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 17965 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 17965 schema +struct<> +-- !query 17965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17966 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 17966 schema +struct<> +-- !query 17966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17967 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 17967 schema +struct<> +-- !query 17967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17968 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 17968 schema +struct<> +-- !query 17968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17969 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 17969 schema +struct<> +-- !query 17969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17970 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 17970 schema +struct<> +-- !query 17970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17971 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 17971 schema +struct<> +-- !query 17971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17972 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 17972 schema +struct<> +-- !query 17972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17973 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 17973 schema +struct<> +-- !query 17973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17974 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 17974 schema +struct<> +-- !query 17974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17975 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17975 schema +struct<> +-- !query 17975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17976 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17976 schema +struct<> +-- !query 17976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 17977 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 17977 schema +struct> +-- !query 17977 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17978 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 17978 schema +struct> +-- !query 17978 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17979 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 17979 schema +struct> +-- !query 17979 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17980 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 17980 schema +struct> +-- !query 17980 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17981 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 17981 schema +struct> +-- !query 17981 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17982 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 17982 schema +struct> +-- !query 17982 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 17983 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 17983 schema +struct> +-- !query 17983 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 17984 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 17984 schema +struct> +-- !query 17984 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 17985 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 17985 schema +struct<> +-- !query 17985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 17986 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 17986 schema +struct<> +-- !query 17986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 17987 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17987 schema +struct<> +-- !query 17987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 17988 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 17988 schema +struct<> +-- !query 17988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 17989 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 17989 schema +struct> +-- !query 17989 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17990 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 17990 schema +struct> +-- !query 17990 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17991 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 17991 schema +struct> +-- !query 17991 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17992 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 17992 schema +struct> +-- !query 17992 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17993 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 17993 schema +struct> +-- !query 17993 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17994 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 17994 schema +struct> +-- !query 17994 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 17995 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 17995 schema +struct> +-- !query 17995 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 17996 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 17996 schema +struct> +-- !query 17996 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 17997 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 17997 schema +struct<> +-- !query 17997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 17998 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 17998 schema +struct<> +-- !query 17998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 17999 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 17999 schema +struct<> +-- !query 17999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 18000 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18000 schema +struct<> +-- !query 18000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 18001 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 18001 schema +struct<> +-- !query 18001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18002 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 18002 schema +struct<> +-- !query 18002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18003 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 18003 schema +struct<> +-- !query 18003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18004 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 18004 schema +struct<> +-- !query 18004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18005 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 18005 schema +struct<> +-- !query 18005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18006 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 18006 schema +struct<> +-- !query 18006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18007 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 18007 schema +struct<> +-- !query 18007 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18008 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 18008 schema +struct<> +-- !query 18008 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18009 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 18009 schema +struct<> +-- !query 18009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18010 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 18010 schema +struct<> +-- !query 18010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18011 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18011 schema +struct<> +-- !query 18011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18012 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18012 schema +struct<> +-- !query 18012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18013 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 18013 schema +struct<> +-- !query 18013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18014 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 18014 schema +struct<> +-- !query 18014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18015 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 18015 schema +struct<> +-- !query 18015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18016 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 18016 schema +struct<> +-- !query 18016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18017 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 18017 schema +struct<> +-- !query 18017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18018 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 18018 schema +struct<> +-- !query 18018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18019 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 18019 schema +struct<> +-- !query 18019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18020 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 18020 schema +struct<> +-- !query 18020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18021 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 18021 schema +struct<> +-- !query 18021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18022 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 18022 schema +struct<> +-- !query 18022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18023 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18023 schema +struct<> +-- !query 18023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18024 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18024 schema +struct<> +-- !query 18024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18025 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 18025 schema +struct<> +-- !query 18025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18026 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 18026 schema +struct<> +-- !query 18026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18027 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 18027 schema +struct<> +-- !query 18027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18028 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 18028 schema +struct<> +-- !query 18028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18029 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 18029 schema +struct<> +-- !query 18029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18030 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 18030 schema +struct<> +-- !query 18030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18031 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 18031 schema +struct<> +-- !query 18031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18032 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 18032 schema +struct<> +-- !query 18032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18033 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 18033 schema +struct<> +-- !query 18033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18034 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 18034 schema +struct<> +-- !query 18034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18035 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18035 schema +struct<> +-- !query 18035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18036 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18036 schema +struct<> +-- !query 18036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18037 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 18037 schema +struct<> +-- !query 18037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18038 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 18038 schema +struct<> +-- !query 18038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18039 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 18039 schema +struct<> +-- !query 18039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18040 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 18040 schema +struct<> +-- !query 18040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18041 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 18041 schema +struct<> +-- !query 18041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18042 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 18042 schema +struct<> +-- !query 18042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18043 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 18043 schema +struct<> +-- !query 18043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18044 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 18044 schema +struct<> +-- !query 18044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18045 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 18045 schema +struct<> +-- !query 18045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18046 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 18046 schema +struct<> +-- !query 18046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18047 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18047 schema +struct<> +-- !query 18047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18048 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18048 schema +struct<> +-- !query 18048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18049 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 18049 schema +struct<> +-- !query 18049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18050 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 18050 schema +struct<> +-- !query 18050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18051 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 18051 schema +struct<> +-- !query 18051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18052 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 18052 schema +struct<> +-- !query 18052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18053 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 18053 schema +struct<> +-- !query 18053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18054 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 18054 schema +struct<> +-- !query 18054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18055 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 18055 schema +struct<> +-- !query 18055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18056 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 18056 schema +struct<> +-- !query 18056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18057 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 18057 schema +struct<> +-- !query 18057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18058 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 18058 schema +struct<> +-- !query 18058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18059 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18059 schema +struct<> +-- !query 18059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18060 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18060 schema +struct<> +-- !query 18060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18061 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 18061 schema +struct<> +-- !query 18061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18062 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 18062 schema +struct<> +-- !query 18062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18063 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 18063 schema +struct<> +-- !query 18063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18064 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 18064 schema +struct<> +-- !query 18064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18065 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 18065 schema +struct<> +-- !query 18065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18066 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 18066 schema +struct<> +-- !query 18066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18067 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 18067 schema +struct<> +-- !query 18067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18068 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 18068 schema +struct<> +-- !query 18068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18069 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 18069 schema +struct<> +-- !query 18069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18070 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 18070 schema +struct<> +-- !query 18070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18071 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18071 schema +struct<> +-- !query 18071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18072 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18072 schema +struct<> +-- !query 18072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18073 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 18073 schema +struct<> +-- !query 18073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18074 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 18074 schema +struct<> +-- !query 18074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18075 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 18075 schema +struct<> +-- !query 18075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18076 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 18076 schema +struct<> +-- !query 18076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18077 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 18077 schema +struct<> +-- !query 18077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18078 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 18078 schema +struct<> +-- !query 18078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18079 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 18079 schema +struct<> +-- !query 18079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18080 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 18080 schema +struct<> +-- !query 18080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18081 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 18081 schema +struct<> +-- !query 18081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18082 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 18082 schema +struct<> +-- !query 18082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18083 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18083 schema +struct<> +-- !query 18083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18084 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18084 schema +struct<> +-- !query 18084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18085 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 18085 schema +struct> +-- !query 18085 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18086 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 18086 schema +struct> +-- !query 18086 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18087 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 18087 schema +struct> +-- !query 18087 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18088 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 18088 schema +struct> +-- !query 18088 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18089 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 18089 schema +struct> +-- !query 18089 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18090 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 18090 schema +struct> +-- !query 18090 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18091 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 18091 schema +struct> +-- !query 18091 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18092 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 18092 schema +struct> +-- !query 18092 output +{"2":"2","2017-12-11 09:30:00":"1.0"} + + +-- !query 18093 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 18093 schema +struct<> +-- !query 18093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 18094 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 18094 schema +struct<> +-- !query 18094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 18095 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18095 schema +struct<> +-- !query 18095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 18096 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18096 schema +struct<> +-- !query 18096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 18097 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 18097 schema +struct<> +-- !query 18097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18098 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 18098 schema +struct<> +-- !query 18098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18099 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 18099 schema +struct<> +-- !query 18099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18100 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 18100 schema +struct<> +-- !query 18100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18101 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 18101 schema +struct<> +-- !query 18101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18102 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 18102 schema +struct<> +-- !query 18102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18103 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 18103 schema +struct<> +-- !query 18103 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18104 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 18104 schema +struct<> +-- !query 18104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18105 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 18105 schema +struct<> +-- !query 18105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18106 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 18106 schema +struct<> +-- !query 18106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18107 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18107 schema +struct<> +-- !query 18107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18108 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18108 schema +struct<> +-- !query 18108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18109 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 18109 schema +struct<> +-- !query 18109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18110 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 18110 schema +struct<> +-- !query 18110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18111 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 18111 schema +struct<> +-- !query 18111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18112 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 18112 schema +struct<> +-- !query 18112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18113 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 18113 schema +struct<> +-- !query 18113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18114 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 18114 schema +struct<> +-- !query 18114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18115 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 18115 schema +struct<> +-- !query 18115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18116 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 18116 schema +struct<> +-- !query 18116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18117 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 18117 schema +struct<> +-- !query 18117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18118 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 18118 schema +struct<> +-- !query 18118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18119 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18119 schema +struct<> +-- !query 18119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18120 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18120 schema +struct<> +-- !query 18120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18121 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 18121 schema +struct> +-- !query 18121 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18122 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 18122 schema +struct> +-- !query 18122 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18123 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 18123 schema +struct> +-- !query 18123 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18124 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 18124 schema +struct> +-- !query 18124 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18125 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 18125 schema +struct> +-- !query 18125 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18126 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 18126 schema +struct> +-- !query 18126 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18127 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 18127 schema +struct> +-- !query 18127 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18128 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 18128 schema +struct> +-- !query 18128 output +{2017-12-11 09:30:00.0:"1.0",2017-12-12 09:30:00.0:"2"} + + +-- !query 18129 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 18129 schema +struct<> +-- !query 18129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 18130 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 18130 schema +struct<> +-- !query 18130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 18131 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18131 schema +struct<> +-- !query 18131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 18132 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18132 schema +struct<> +-- !query 18132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 18133 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 18133 schema +struct> +-- !query 18133 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18134 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 18134 schema +struct> +-- !query 18134 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18135 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 18135 schema +struct> +-- !query 18135 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18136 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 18136 schema +struct> +-- !query 18136 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18137 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 18137 schema +struct> +-- !query 18137 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18138 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 18138 schema +struct> +-- !query 18138 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18139 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 18139 schema +struct> +-- !query 18139 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18140 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 18140 schema +struct> +-- !query 18140 output +{2017-12-11 09:30:00.0:"1.0",2017-12-12 00:00:00.0:"2"} + + +-- !query 18141 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 18141 schema +struct<> +-- !query 18141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 18142 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 18142 schema +struct<> +-- !query 18142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 18143 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18143 schema +struct<> +-- !query 18143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 18144 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18144 schema +struct<> +-- !query 18144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 18145 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 18145 schema +struct<> +-- !query 18145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18146 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 18146 schema +struct<> +-- !query 18146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18147 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 18147 schema +struct<> +-- !query 18147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18148 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 18148 schema +struct<> +-- !query 18148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18149 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 18149 schema +struct<> +-- !query 18149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18150 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 18150 schema +struct<> +-- !query 18150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18151 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 18151 schema +struct<> +-- !query 18151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18152 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 18152 schema +struct<> +-- !query 18152 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18153 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 18153 schema +struct<> +-- !query 18153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18154 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 18154 schema +struct<> +-- !query 18154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18155 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18155 schema +struct<> +-- !query 18155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18156 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18156 schema +struct<> +-- !query 18156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18157 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 18157 schema +struct<> +-- !query 18157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18158 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 18158 schema +struct<> +-- !query 18158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18159 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 18159 schema +struct<> +-- !query 18159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18160 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 18160 schema +struct<> +-- !query 18160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18161 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 18161 schema +struct<> +-- !query 18161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18162 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 18162 schema +struct<> +-- !query 18162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18163 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 18163 schema +struct<> +-- !query 18163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18164 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 18164 schema +struct<> +-- !query 18164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18165 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 18165 schema +struct<> +-- !query 18165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18166 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 18166 schema +struct<> +-- !query 18166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18167 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18167 schema +struct<> +-- !query 18167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18168 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18168 schema +struct<> +-- !query 18168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18169 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 18169 schema +struct<> +-- !query 18169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18170 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 18170 schema +struct<> +-- !query 18170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18171 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 18171 schema +struct<> +-- !query 18171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18172 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 18172 schema +struct<> +-- !query 18172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18173 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 18173 schema +struct<> +-- !query 18173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18174 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 18174 schema +struct<> +-- !query 18174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18175 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 18175 schema +struct<> +-- !query 18175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18176 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 18176 schema +struct<> +-- !query 18176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18177 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 18177 schema +struct<> +-- !query 18177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18178 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 18178 schema +struct<> +-- !query 18178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18179 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18179 schema +struct<> +-- !query 18179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18180 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18180 schema +struct<> +-- !query 18180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18181 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 18181 schema +struct<> +-- !query 18181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18182 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 18182 schema +struct<> +-- !query 18182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18183 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 18183 schema +struct<> +-- !query 18183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18184 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 18184 schema +struct<> +-- !query 18184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18185 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 18185 schema +struct<> +-- !query 18185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18186 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 18186 schema +struct<> +-- !query 18186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18187 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 18187 schema +struct<> +-- !query 18187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18188 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 18188 schema +struct<> +-- !query 18188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18189 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 18189 schema +struct<> +-- !query 18189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18190 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 18190 schema +struct<> +-- !query 18190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18191 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18191 schema +struct<> +-- !query 18191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18192 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18192 schema +struct<> +-- !query 18192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18193 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 18193 schema +struct<> +-- !query 18193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18194 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 18194 schema +struct<> +-- !query 18194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18195 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 18195 schema +struct<> +-- !query 18195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18196 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 18196 schema +struct<> +-- !query 18196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18197 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 18197 schema +struct<> +-- !query 18197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18198 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 18198 schema +struct<> +-- !query 18198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18199 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 18199 schema +struct<> +-- !query 18199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18200 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 18200 schema +struct<> +-- !query 18200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18201 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 18201 schema +struct<> +-- !query 18201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18202 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 18202 schema +struct<> +-- !query 18202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18203 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18203 schema +struct<> +-- !query 18203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18204 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18204 schema +struct<> +-- !query 18204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18205 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 18205 schema +struct<> +-- !query 18205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18206 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 18206 schema +struct<> +-- !query 18206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18207 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 18207 schema +struct<> +-- !query 18207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18208 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 18208 schema +struct<> +-- !query 18208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18209 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 18209 schema +struct<> +-- !query 18209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18210 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 18210 schema +struct<> +-- !query 18210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18211 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 18211 schema +struct<> +-- !query 18211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18212 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 18212 schema +struct<> +-- !query 18212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18213 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 18213 schema +struct<> +-- !query 18213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18214 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 18214 schema +struct<> +-- !query 18214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18215 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18215 schema +struct<> +-- !query 18215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18216 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18216 schema +struct<> +-- !query 18216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18217 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 18217 schema +struct<> +-- !query 18217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18218 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 18218 schema +struct<> +-- !query 18218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18219 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 18219 schema +struct<> +-- !query 18219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18220 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 18220 schema +struct<> +-- !query 18220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18221 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 18221 schema +struct<> +-- !query 18221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18222 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 18222 schema +struct<> +-- !query 18222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18223 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 18223 schema +struct<> +-- !query 18223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18224 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 18224 schema +struct<> +-- !query 18224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18225 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 18225 schema +struct<> +-- !query 18225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18226 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 18226 schema +struct<> +-- !query 18226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18227 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18227 schema +struct<> +-- !query 18227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18228 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18228 schema +struct<> +-- !query 18228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18229 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 18229 schema +struct> +-- !query 18229 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18230 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 18230 schema +struct> +-- !query 18230 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18231 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 18231 schema +struct> +-- !query 18231 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18232 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 18232 schema +struct> +-- !query 18232 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18233 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 18233 schema +struct> +-- !query 18233 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18234 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 18234 schema +struct> +-- !query 18234 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18235 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 18235 schema +struct> +-- !query 18235 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18236 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 18236 schema +struct> +-- !query 18236 output +{"2":"2","2017-12-11 09:30:00":"1.0"} + + +-- !query 18237 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 18237 schema +struct<> +-- !query 18237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 18238 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 18238 schema +struct<> +-- !query 18238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 18239 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18239 schema +struct<> +-- !query 18239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 18240 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18240 schema +struct<> +-- !query 18240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 18241 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 18241 schema +struct<> +-- !query 18241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18242 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 18242 schema +struct<> +-- !query 18242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18243 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 18243 schema +struct<> +-- !query 18243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18244 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 18244 schema +struct<> +-- !query 18244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18245 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 18245 schema +struct<> +-- !query 18245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18246 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 18246 schema +struct<> +-- !query 18246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18247 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 18247 schema +struct<> +-- !query 18247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18248 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 18248 schema +struct<> +-- !query 18248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18249 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 18249 schema +struct<> +-- !query 18249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18250 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 18250 schema +struct<> +-- !query 18250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18251 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18251 schema +struct<> +-- !query 18251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18252 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18252 schema +struct<> +-- !query 18252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18253 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 18253 schema +struct<> +-- !query 18253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18254 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 18254 schema +struct<> +-- !query 18254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18255 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 18255 schema +struct<> +-- !query 18255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18256 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 18256 schema +struct<> +-- !query 18256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18257 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 18257 schema +struct<> +-- !query 18257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18258 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 18258 schema +struct<> +-- !query 18258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18259 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 18259 schema +struct<> +-- !query 18259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18260 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 18260 schema +struct<> +-- !query 18260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18261 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 18261 schema +struct<> +-- !query 18261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18262 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 18262 schema +struct<> +-- !query 18262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18263 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18263 schema +struct<> +-- !query 18263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18264 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18264 schema +struct<> +-- !query 18264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18265 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 18265 schema +struct> +-- !query 18265 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18266 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 18266 schema +struct> +-- !query 18266 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18267 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 18267 schema +struct> +-- !query 18267 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18268 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 18268 schema +struct> +-- !query 18268 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18269 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 18269 schema +struct> +-- !query 18269 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18270 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 18270 schema +struct> +-- !query 18270 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18271 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 18271 schema +struct> +-- !query 18271 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18272 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 18272 schema +struct> +-- !query 18272 output +{2017-12-11 09:30:00.0:"1.0",2017-12-12 09:30:00.0:"2"} + + +-- !query 18273 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 18273 schema +struct<> +-- !query 18273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 18274 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 18274 schema +struct<> +-- !query 18274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 18275 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18275 schema +struct<> +-- !query 18275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 18276 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18276 schema +struct<> +-- !query 18276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 18277 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 18277 schema +struct> +-- !query 18277 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18278 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 18278 schema +struct> +-- !query 18278 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18279 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 18279 schema +struct> +-- !query 18279 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18280 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 18280 schema +struct> +-- !query 18280 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18281 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 18281 schema +struct> +-- !query 18281 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18282 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 18282 schema +struct> +-- !query 18282 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18283 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 18283 schema +struct> +-- !query 18283 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18284 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 18284 schema +struct> +-- !query 18284 output +{2017-12-11 09:30:00.0:"1.0",2017-12-12 00:00:00.0:"2"} + + +-- !query 18285 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 18285 schema +struct<> +-- !query 18285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 18286 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 18286 schema +struct<> +-- !query 18286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 18287 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18287 schema +struct<> +-- !query 18287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 18288 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18288 schema +struct<> +-- !query 18288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 18289 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 18289 schema +struct<> +-- !query 18289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18290 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 18290 schema +struct<> +-- !query 18290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18291 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 18291 schema +struct<> +-- !query 18291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18292 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 18292 schema +struct<> +-- !query 18292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18293 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 18293 schema +struct<> +-- !query 18293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18294 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 18294 schema +struct<> +-- !query 18294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18295 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 18295 schema +struct<> +-- !query 18295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18296 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 18296 schema +struct<> +-- !query 18296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18297 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 18297 schema +struct<> +-- !query 18297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18298 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 18298 schema +struct<> +-- !query 18298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18299 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18299 schema +struct<> +-- !query 18299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18300 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18300 schema +struct<> +-- !query 18300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18301 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 18301 schema +struct<> +-- !query 18301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18302 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 18302 schema +struct<> +-- !query 18302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18303 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 18303 schema +struct<> +-- !query 18303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18304 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 18304 schema +struct<> +-- !query 18304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18305 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 18305 schema +struct<> +-- !query 18305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18306 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 18306 schema +struct<> +-- !query 18306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18307 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 18307 schema +struct<> +-- !query 18307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18308 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 18308 schema +struct<> +-- !query 18308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18309 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 18309 schema +struct<> +-- !query 18309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18310 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 18310 schema +struct<> +-- !query 18310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18311 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18311 schema +struct<> +-- !query 18311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18312 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18312 schema +struct<> +-- !query 18312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18313 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 18313 schema +struct<> +-- !query 18313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18314 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 18314 schema +struct<> +-- !query 18314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18315 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 18315 schema +struct<> +-- !query 18315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18316 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 18316 schema +struct<> +-- !query 18316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18317 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 18317 schema +struct<> +-- !query 18317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18318 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 18318 schema +struct<> +-- !query 18318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18319 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 18319 schema +struct<> +-- !query 18319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18320 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 18320 schema +struct<> +-- !query 18320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18321 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 18321 schema +struct<> +-- !query 18321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18322 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 18322 schema +struct<> +-- !query 18322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18323 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18323 schema +struct<> +-- !query 18323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18324 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18324 schema +struct<> +-- !query 18324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18325 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 18325 schema +struct<> +-- !query 18325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18326 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 18326 schema +struct<> +-- !query 18326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18327 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 18327 schema +struct<> +-- !query 18327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18328 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 18328 schema +struct<> +-- !query 18328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18329 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 18329 schema +struct<> +-- !query 18329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18330 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 18330 schema +struct<> +-- !query 18330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18331 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 18331 schema +struct<> +-- !query 18331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18332 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 18332 schema +struct<> +-- !query 18332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18333 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 18333 schema +struct<> +-- !query 18333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18334 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 18334 schema +struct<> +-- !query 18334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18335 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18335 schema +struct<> +-- !query 18335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18336 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18336 schema +struct<> +-- !query 18336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18337 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 18337 schema +struct<> +-- !query 18337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18338 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 18338 schema +struct<> +-- !query 18338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18339 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 18339 schema +struct<> +-- !query 18339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18340 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 18340 schema +struct<> +-- !query 18340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18341 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 18341 schema +struct<> +-- !query 18341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18342 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 18342 schema +struct<> +-- !query 18342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18343 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 18343 schema +struct<> +-- !query 18343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18344 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 18344 schema +struct<> +-- !query 18344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18345 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 18345 schema +struct<> +-- !query 18345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18346 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 18346 schema +struct<> +-- !query 18346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18347 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18347 schema +struct<> +-- !query 18347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18348 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18348 schema +struct<> +-- !query 18348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18349 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 18349 schema +struct<> +-- !query 18349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18350 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 18350 schema +struct<> +-- !query 18350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18351 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 18351 schema +struct<> +-- !query 18351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18352 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 18352 schema +struct<> +-- !query 18352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18353 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 18353 schema +struct<> +-- !query 18353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18354 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 18354 schema +struct<> +-- !query 18354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18355 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 18355 schema +struct<> +-- !query 18355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18356 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 18356 schema +struct<> +-- !query 18356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18357 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 18357 schema +struct<> +-- !query 18357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18358 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 18358 schema +struct<> +-- !query 18358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18359 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18359 schema +struct<> +-- !query 18359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18360 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18360 schema +struct<> +-- !query 18360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18361 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 18361 schema +struct<> +-- !query 18361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18362 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 18362 schema +struct<> +-- !query 18362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18363 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 18363 schema +struct<> +-- !query 18363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18364 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 18364 schema +struct<> +-- !query 18364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18365 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 18365 schema +struct<> +-- !query 18365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18366 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 18366 schema +struct<> +-- !query 18366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18367 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 18367 schema +struct<> +-- !query 18367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18368 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 18368 schema +struct<> +-- !query 18368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18369 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 18369 schema +struct<> +-- !query 18369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18370 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 18370 schema +struct<> +-- !query 18370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18371 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18371 schema +struct<> +-- !query 18371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18372 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18372 schema +struct<> +-- !query 18372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18373 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 18373 schema +struct> +-- !query 18373 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 18374 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 18374 schema +struct> +-- !query 18374 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 18375 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 18375 schema +struct> +-- !query 18375 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 18376 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 18376 schema +struct> +-- !query 18376 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 18377 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 18377 schema +struct> +-- !query 18377 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18378 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 18378 schema +struct> +-- !query 18378 output +{"2":2.0,"2017-12-11 09:30:00":1.0} + + +-- !query 18379 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 18379 schema +struct> +-- !query 18379 output +{"2":2,"2017-12-11 09:30:00":1} + + +-- !query 18380 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 18380 schema +struct> +-- !query 18380 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 18381 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 18381 schema +struct<> +-- !query 18381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 18382 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 18382 schema +struct<> +-- !query 18382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 18383 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18383 schema +struct<> +-- !query 18383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 18384 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18384 schema +struct<> +-- !query 18384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 18385 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 18385 schema +struct<> +-- !query 18385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18386 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 18386 schema +struct<> +-- !query 18386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18387 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 18387 schema +struct<> +-- !query 18387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18388 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 18388 schema +struct<> +-- !query 18388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18389 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 18389 schema +struct<> +-- !query 18389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18390 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 18390 schema +struct<> +-- !query 18390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18391 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 18391 schema +struct<> +-- !query 18391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18392 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 18392 schema +struct<> +-- !query 18392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18393 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 18393 schema +struct<> +-- !query 18393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18394 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 18394 schema +struct<> +-- !query 18394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18395 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18395 schema +struct<> +-- !query 18395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18396 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18396 schema +struct<> +-- !query 18396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18397 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 18397 schema +struct<> +-- !query 18397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18398 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 18398 schema +struct<> +-- !query 18398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18399 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 18399 schema +struct<> +-- !query 18399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18400 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 18400 schema +struct<> +-- !query 18400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18401 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 18401 schema +struct<> +-- !query 18401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18402 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 18402 schema +struct<> +-- !query 18402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18403 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 18403 schema +struct<> +-- !query 18403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18404 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 18404 schema +struct<> +-- !query 18404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18405 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 18405 schema +struct<> +-- !query 18405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18406 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 18406 schema +struct<> +-- !query 18406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18407 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18407 schema +struct<> +-- !query 18407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18408 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18408 schema +struct<> +-- !query 18408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18409 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 18409 schema +struct> +-- !query 18409 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 18410 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 18410 schema +struct> +-- !query 18410 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 18411 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 18411 schema +struct> +-- !query 18411 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 18412 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 18412 schema +struct> +-- !query 18412 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 18413 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 18413 schema +struct> +-- !query 18413 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18414 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 18414 schema +struct> +-- !query 18414 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 18415 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 18415 schema +struct> +-- !query 18415 output +{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 18416 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 18416 schema +struct> +-- !query 18416 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 18417 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 18417 schema +struct<> +-- !query 18417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 18418 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 18418 schema +struct<> +-- !query 18418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 18419 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18419 schema +struct<> +-- !query 18419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 18420 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18420 schema +struct<> +-- !query 18420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 18421 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 18421 schema +struct> +-- !query 18421 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 18422 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 18422 schema +struct> +-- !query 18422 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 18423 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 18423 schema +struct> +-- !query 18423 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 18424 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 18424 schema +struct> +-- !query 18424 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 18425 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 18425 schema +struct> +-- !query 18425 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18426 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 18426 schema +struct> +-- !query 18426 output +{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} + + +-- !query 18427 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 18427 schema +struct> +-- !query 18427 output +{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} + + +-- !query 18428 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 18428 schema +struct> +-- !query 18428 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 18429 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 18429 schema +struct<> +-- !query 18429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 18430 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 18430 schema +struct<> +-- !query 18430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 18431 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18431 schema +struct<> +-- !query 18431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 18432 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18432 schema +struct<> +-- !query 18432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 18433 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 18433 schema +struct<> +-- !query 18433 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18434 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 18434 schema +struct<> +-- !query 18434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18435 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 18435 schema +struct<> +-- !query 18435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18436 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 18436 schema +struct<> +-- !query 18436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18437 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 18437 schema +struct<> +-- !query 18437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18438 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 18438 schema +struct<> +-- !query 18438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18439 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 18439 schema +struct<> +-- !query 18439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18440 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 18440 schema +struct<> +-- !query 18440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18441 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 18441 schema +struct<> +-- !query 18441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18442 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 18442 schema +struct<> +-- !query 18442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18443 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18443 schema +struct<> +-- !query 18443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18444 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18444 schema +struct<> +-- !query 18444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18445 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 18445 schema +struct<> +-- !query 18445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18446 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 18446 schema +struct<> +-- !query 18446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18447 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 18447 schema +struct<> +-- !query 18447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18448 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 18448 schema +struct<> +-- !query 18448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18449 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 18449 schema +struct<> +-- !query 18449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18450 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 18450 schema +struct<> +-- !query 18450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18451 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 18451 schema +struct<> +-- !query 18451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18452 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 18452 schema +struct<> +-- !query 18452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18453 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 18453 schema +struct<> +-- !query 18453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18454 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 18454 schema +struct<> +-- !query 18454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18455 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18455 schema +struct<> +-- !query 18455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18456 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18456 schema +struct<> +-- !query 18456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18457 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 18457 schema +struct<> +-- !query 18457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18458 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 18458 schema +struct<> +-- !query 18458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18459 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 18459 schema +struct<> +-- !query 18459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18460 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 18460 schema +struct<> +-- !query 18460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18461 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 18461 schema +struct<> +-- !query 18461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18462 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 18462 schema +struct<> +-- !query 18462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18463 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 18463 schema +struct<> +-- !query 18463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18464 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 18464 schema +struct<> +-- !query 18464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18465 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 18465 schema +struct<> +-- !query 18465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18466 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 18466 schema +struct<> +-- !query 18466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18467 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18467 schema +struct<> +-- !query 18467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18468 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18468 schema +struct<> +-- !query 18468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18469 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 18469 schema +struct<> +-- !query 18469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18470 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 18470 schema +struct<> +-- !query 18470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18471 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 18471 schema +struct<> +-- !query 18471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18472 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 18472 schema +struct<> +-- !query 18472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18473 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 18473 schema +struct<> +-- !query 18473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18474 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 18474 schema +struct<> +-- !query 18474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18475 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 18475 schema +struct<> +-- !query 18475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18476 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 18476 schema +struct<> +-- !query 18476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18477 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 18477 schema +struct<> +-- !query 18477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18478 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 18478 schema +struct<> +-- !query 18478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18479 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18479 schema +struct<> +-- !query 18479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18480 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18480 schema +struct<> +-- !query 18480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18481 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 18481 schema +struct<> +-- !query 18481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18482 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 18482 schema +struct<> +-- !query 18482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18483 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 18483 schema +struct<> +-- !query 18483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18484 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 18484 schema +struct<> +-- !query 18484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18485 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 18485 schema +struct<> +-- !query 18485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18486 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 18486 schema +struct<> +-- !query 18486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18487 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 18487 schema +struct<> +-- !query 18487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18488 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 18488 schema +struct<> +-- !query 18488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18489 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 18489 schema +struct<> +-- !query 18489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18490 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 18490 schema +struct<> +-- !query 18490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18491 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18491 schema +struct<> +-- !query 18491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18492 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18492 schema +struct<> +-- !query 18492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18493 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 18493 schema +struct<> +-- !query 18493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18494 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 18494 schema +struct<> +-- !query 18494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18495 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 18495 schema +struct<> +-- !query 18495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18496 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 18496 schema +struct<> +-- !query 18496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18497 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 18497 schema +struct<> +-- !query 18497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18498 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 18498 schema +struct<> +-- !query 18498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18499 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 18499 schema +struct<> +-- !query 18499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18500 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 18500 schema +struct<> +-- !query 18500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18501 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 18501 schema +struct<> +-- !query 18501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18502 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 18502 schema +struct<> +-- !query 18502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18503 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18503 schema +struct<> +-- !query 18503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18504 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18504 schema +struct<> +-- !query 18504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18505 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 18505 schema +struct<> +-- !query 18505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18506 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 18506 schema +struct<> +-- !query 18506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18507 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 18507 schema +struct<> +-- !query 18507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18508 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 18508 schema +struct<> +-- !query 18508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18509 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 18509 schema +struct<> +-- !query 18509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18510 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 18510 schema +struct<> +-- !query 18510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18511 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 18511 schema +struct<> +-- !query 18511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18512 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 18512 schema +struct<> +-- !query 18512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18513 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 18513 schema +struct<> +-- !query 18513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18514 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 18514 schema +struct<> +-- !query 18514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18515 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18515 schema +struct<> +-- !query 18515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18516 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18516 schema +struct<> +-- !query 18516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18517 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 18517 schema +struct> +-- !query 18517 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 18518 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 18518 schema +struct> +-- !query 18518 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 18519 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 18519 schema +struct> +-- !query 18519 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 18520 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 18520 schema +struct> +-- !query 18520 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 18521 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 18521 schema +struct> +-- !query 18521 output +{"2":"2.0","2017-12-11 09:30:00":"1"} + + +-- !query 18522 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 18522 schema +struct> +-- !query 18522 output +{"2":"2.0","2017-12-11 09:30:00":"1"} + + +-- !query 18523 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 18523 schema +struct> +-- !query 18523 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 18524 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 18524 schema +struct> +-- !query 18524 output +{"2":"2","2017-12-11 09:30:00":"1"} + + +-- !query 18525 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 18525 schema +struct<> +-- !query 18525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 18526 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 18526 schema +struct<> +-- !query 18526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 18527 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18527 schema +struct> +-- !query 18527 output +{"2":"2017-12-12 09:30:00","2017-12-11 09:30:00":"1"} + + +-- !query 18528 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18528 schema +struct> +-- !query 18528 output +{"2":"2017-12-12","2017-12-11 09:30:00":"1"} + + +-- !query 18529 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 18529 schema +struct<> +-- !query 18529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18530 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 18530 schema +struct<> +-- !query 18530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18531 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 18531 schema +struct<> +-- !query 18531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18532 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 18532 schema +struct<> +-- !query 18532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18533 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 18533 schema +struct<> +-- !query 18533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18534 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 18534 schema +struct<> +-- !query 18534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18535 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 18535 schema +struct<> +-- !query 18535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18536 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 18536 schema +struct<> +-- !query 18536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18537 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 18537 schema +struct<> +-- !query 18537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18538 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 18538 schema +struct<> +-- !query 18538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18539 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18539 schema +struct<> +-- !query 18539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18540 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18540 schema +struct<> +-- !query 18540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18541 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 18541 schema +struct<> +-- !query 18541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18542 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 18542 schema +struct<> +-- !query 18542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18543 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 18543 schema +struct<> +-- !query 18543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18544 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 18544 schema +struct<> +-- !query 18544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18545 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 18545 schema +struct<> +-- !query 18545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18546 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 18546 schema +struct<> +-- !query 18546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18547 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 18547 schema +struct<> +-- !query 18547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18548 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 18548 schema +struct<> +-- !query 18548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18549 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 18549 schema +struct<> +-- !query 18549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18550 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 18550 schema +struct<> +-- !query 18550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18551 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18551 schema +struct<> +-- !query 18551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18552 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18552 schema +struct<> +-- !query 18552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18553 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 18553 schema +struct> +-- !query 18553 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 18554 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 18554 schema +struct> +-- !query 18554 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 18555 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 18555 schema +struct> +-- !query 18555 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 18556 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 18556 schema +struct> +-- !query 18556 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 18557 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 18557 schema +struct> +-- !query 18557 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2.0"} + + +-- !query 18558 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 18558 schema +struct> +-- !query 18558 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2.0"} + + +-- !query 18559 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 18559 schema +struct> +-- !query 18559 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 18560 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 18560 schema +struct> +-- !query 18560 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 18561 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 18561 schema +struct<> +-- !query 18561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 18562 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 18562 schema +struct<> +-- !query 18562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 18563 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18563 schema +struct> +-- !query 18563 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12 09:30:00"} + + +-- !query 18564 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18564 schema +struct> +-- !query 18564 output +{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12"} + + +-- !query 18565 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 18565 schema +struct> +-- !query 18565 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 18566 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 18566 schema +struct> +-- !query 18566 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 18567 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 18567 schema +struct> +-- !query 18567 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 18568 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 18568 schema +struct> +-- !query 18568 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 18569 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 18569 schema +struct> +-- !query 18569 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2.0"} + + +-- !query 18570 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 18570 schema +struct> +-- !query 18570 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2.0"} + + +-- !query 18571 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 18571 schema +struct> +-- !query 18571 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 18572 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 18572 schema +struct> +-- !query 18572 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} + + +-- !query 18573 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 18573 schema +struct<> +-- !query 18573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 18574 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 18574 schema +struct<> +-- !query 18574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 18575 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18575 schema +struct> +-- !query 18575 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2017-12-12 09:30:00"} + + +-- !query 18576 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18576 schema +struct> +-- !query 18576 output +{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2017-12-12"} + + +-- !query 18577 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 18577 schema +struct<> +-- !query 18577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18578 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 18578 schema +struct<> +-- !query 18578 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18579 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 18579 schema +struct<> +-- !query 18579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18580 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 18580 schema +struct<> +-- !query 18580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18581 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 18581 schema +struct<> +-- !query 18581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18582 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 18582 schema +struct<> +-- !query 18582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18583 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 18583 schema +struct<> +-- !query 18583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18584 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 18584 schema +struct<> +-- !query 18584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18585 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 18585 schema +struct<> +-- !query 18585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18586 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 18586 schema +struct<> +-- !query 18586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18587 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18587 schema +struct<> +-- !query 18587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18588 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18588 schema +struct<> +-- !query 18588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18589 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 18589 schema +struct<> +-- !query 18589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18590 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 18590 schema +struct<> +-- !query 18590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18591 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 18591 schema +struct<> +-- !query 18591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18592 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 18592 schema +struct<> +-- !query 18592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18593 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 18593 schema +struct<> +-- !query 18593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18594 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 18594 schema +struct<> +-- !query 18594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18595 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 18595 schema +struct<> +-- !query 18595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18596 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 18596 schema +struct<> +-- !query 18596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18597 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 18597 schema +struct<> +-- !query 18597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18598 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 18598 schema +struct<> +-- !query 18598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18599 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18599 schema +struct<> +-- !query 18599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18600 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18600 schema +struct<> +-- !query 18600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18601 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 18601 schema +struct<> +-- !query 18601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18602 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 18602 schema +struct<> +-- !query 18602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18603 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 18603 schema +struct<> +-- !query 18603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18604 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 18604 schema +struct<> +-- !query 18604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18605 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 18605 schema +struct<> +-- !query 18605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18606 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 18606 schema +struct<> +-- !query 18606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18607 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 18607 schema +struct<> +-- !query 18607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18608 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 18608 schema +struct<> +-- !query 18608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18609 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 18609 schema +struct<> +-- !query 18609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18610 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 18610 schema +struct<> +-- !query 18610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18611 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18611 schema +struct<> +-- !query 18611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18612 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18612 schema +struct<> +-- !query 18612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18613 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 18613 schema +struct<> +-- !query 18613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18614 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 18614 schema +struct<> +-- !query 18614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18615 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 18615 schema +struct<> +-- !query 18615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18616 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 18616 schema +struct<> +-- !query 18616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18617 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 18617 schema +struct<> +-- !query 18617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18618 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 18618 schema +struct<> +-- !query 18618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18619 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 18619 schema +struct<> +-- !query 18619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18620 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 18620 schema +struct<> +-- !query 18620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18621 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 18621 schema +struct<> +-- !query 18621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18622 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 18622 schema +struct<> +-- !query 18622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18623 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18623 schema +struct<> +-- !query 18623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18624 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18624 schema +struct<> +-- !query 18624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18625 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 18625 schema +struct<> +-- !query 18625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18626 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 18626 schema +struct<> +-- !query 18626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18627 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 18627 schema +struct<> +-- !query 18627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18628 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 18628 schema +struct<> +-- !query 18628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18629 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 18629 schema +struct<> +-- !query 18629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18630 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 18630 schema +struct<> +-- !query 18630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18631 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 18631 schema +struct<> +-- !query 18631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18632 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 18632 schema +struct<> +-- !query 18632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18633 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 18633 schema +struct<> +-- !query 18633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18634 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 18634 schema +struct<> +-- !query 18634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18635 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18635 schema +struct<> +-- !query 18635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18636 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18636 schema +struct<> +-- !query 18636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18637 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 18637 schema +struct<> +-- !query 18637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18638 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 18638 schema +struct<> +-- !query 18638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18639 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 18639 schema +struct<> +-- !query 18639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18640 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 18640 schema +struct<> +-- !query 18640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18641 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 18641 schema +struct<> +-- !query 18641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18642 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 18642 schema +struct<> +-- !query 18642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18643 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 18643 schema +struct<> +-- !query 18643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18644 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 18644 schema +struct<> +-- !query 18644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18645 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 18645 schema +struct<> +-- !query 18645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18646 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 18646 schema +struct<> +-- !query 18646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18647 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18647 schema +struct<> +-- !query 18647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18648 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18648 schema +struct<> +-- !query 18648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18649 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 18649 schema +struct<> +-- !query 18649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18650 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 18650 schema +struct<> +-- !query 18650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18651 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 18651 schema +struct<> +-- !query 18651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18652 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 18652 schema +struct<> +-- !query 18652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18653 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 18653 schema +struct<> +-- !query 18653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18654 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 18654 schema +struct<> +-- !query 18654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18655 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 18655 schema +struct<> +-- !query 18655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18656 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 18656 schema +struct<> +-- !query 18656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18657 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 18657 schema +struct<> +-- !query 18657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18658 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 18658 schema +struct<> +-- !query 18658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18659 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18659 schema +struct<> +-- !query 18659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18660 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18660 schema +struct<> +-- !query 18660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18661 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 18661 schema +struct<> +-- !query 18661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 18662 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 18662 schema +struct<> +-- !query 18662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 18663 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 18663 schema +struct<> +-- !query 18663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 18664 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 18664 schema +struct<> +-- !query 18664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 18665 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 18665 schema +struct<> +-- !query 18665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 18666 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 18666 schema +struct<> +-- !query 18666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 18667 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 18667 schema +struct<> +-- !query 18667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 18668 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 18668 schema +struct<> +-- !query 18668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 18669 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 18669 schema +struct> +-- !query 18669 output +{"2":[B@51f62d7c,"2017-12-11 09:30:00":[B@12574f4d} + + +-- !query 18670 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 18670 schema +struct<> +-- !query 18670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 18671 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18671 schema +struct<> +-- !query 18671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 18672 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18672 schema +struct<> +-- !query 18672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 18673 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 18673 schema +struct<> +-- !query 18673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18674 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 18674 schema +struct<> +-- !query 18674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18675 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 18675 schema +struct<> +-- !query 18675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18676 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 18676 schema +struct<> +-- !query 18676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18677 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 18677 schema +struct<> +-- !query 18677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18678 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 18678 schema +struct<> +-- !query 18678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18679 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 18679 schema +struct<> +-- !query 18679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18680 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 18680 schema +struct<> +-- !query 18680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18681 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 18681 schema +struct<> +-- !query 18681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18682 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 18682 schema +struct<> +-- !query 18682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18683 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18683 schema +struct<> +-- !query 18683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18684 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18684 schema +struct<> +-- !query 18684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18685 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 18685 schema +struct<> +-- !query 18685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18686 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 18686 schema +struct<> +-- !query 18686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18687 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 18687 schema +struct<> +-- !query 18687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18688 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 18688 schema +struct<> +-- !query 18688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18689 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 18689 schema +struct<> +-- !query 18689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18690 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 18690 schema +struct<> +-- !query 18690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18691 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 18691 schema +struct<> +-- !query 18691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18692 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 18692 schema +struct<> +-- !query 18692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18693 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 18693 schema +struct<> +-- !query 18693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18694 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 18694 schema +struct<> +-- !query 18694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18695 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18695 schema +struct<> +-- !query 18695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18696 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18696 schema +struct<> +-- !query 18696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18697 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 18697 schema +struct<> +-- !query 18697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 18698 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 18698 schema +struct<> +-- !query 18698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 18699 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 18699 schema +struct<> +-- !query 18699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 18700 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 18700 schema +struct<> +-- !query 18700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 18701 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 18701 schema +struct<> +-- !query 18701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 18702 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 18702 schema +struct<> +-- !query 18702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 18703 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 18703 schema +struct<> +-- !query 18703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 18704 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 18704 schema +struct<> +-- !query 18704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 18705 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 18705 schema +struct> +-- !query 18705 output +{2017-12-11 09:30:00.0:[B@1af33ab2,2017-12-12 09:30:00.0:[B@4de132c} + + +-- !query 18706 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 18706 schema +struct<> +-- !query 18706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 18707 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18707 schema +struct<> +-- !query 18707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 18708 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18708 schema +struct<> +-- !query 18708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 18709 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 18709 schema +struct<> +-- !query 18709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 18710 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 18710 schema +struct<> +-- !query 18710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 18711 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 18711 schema +struct<> +-- !query 18711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 18712 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 18712 schema +struct<> +-- !query 18712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 18713 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 18713 schema +struct<> +-- !query 18713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 18714 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 18714 schema +struct<> +-- !query 18714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 18715 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 18715 schema +struct<> +-- !query 18715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 18716 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 18716 schema +struct<> +-- !query 18716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 18717 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 18717 schema +struct> +-- !query 18717 output +{2017-12-11 09:30:00.0:[B@570b083a,2017-12-12 00:00:00.0:[B@56d605c3} + + +-- !query 18718 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 18718 schema +struct<> +-- !query 18718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 18719 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18719 schema +struct<> +-- !query 18719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 18720 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18720 schema +struct<> +-- !query 18720 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 18721 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 18721 schema +struct<> +-- !query 18721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18722 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 18722 schema +struct<> +-- !query 18722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18723 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 18723 schema +struct<> +-- !query 18723 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18724 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 18724 schema +struct<> +-- !query 18724 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18725 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 18725 schema +struct<> +-- !query 18725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18726 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 18726 schema +struct<> +-- !query 18726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18727 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 18727 schema +struct<> +-- !query 18727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18728 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 18728 schema +struct<> +-- !query 18728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18729 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 18729 schema +struct<> +-- !query 18729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18730 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 18730 schema +struct<> +-- !query 18730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18731 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18731 schema +struct<> +-- !query 18731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18732 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18732 schema +struct<> +-- !query 18732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18733 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 18733 schema +struct<> +-- !query 18733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18734 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 18734 schema +struct<> +-- !query 18734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18735 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 18735 schema +struct<> +-- !query 18735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18736 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 18736 schema +struct<> +-- !query 18736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18737 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 18737 schema +struct<> +-- !query 18737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18738 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 18738 schema +struct<> +-- !query 18738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18739 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 18739 schema +struct<> +-- !query 18739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18740 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 18740 schema +struct<> +-- !query 18740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18741 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 18741 schema +struct<> +-- !query 18741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18742 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 18742 schema +struct<> +-- !query 18742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18743 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18743 schema +struct<> +-- !query 18743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18744 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18744 schema +struct<> +-- !query 18744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18745 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 18745 schema +struct<> +-- !query 18745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18746 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 18746 schema +struct<> +-- !query 18746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18747 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 18747 schema +struct<> +-- !query 18747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18748 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 18748 schema +struct<> +-- !query 18748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18749 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 18749 schema +struct<> +-- !query 18749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18750 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 18750 schema +struct<> +-- !query 18750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18751 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 18751 schema +struct<> +-- !query 18751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18752 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 18752 schema +struct<> +-- !query 18752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18753 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 18753 schema +struct<> +-- !query 18753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18754 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 18754 schema +struct<> +-- !query 18754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18755 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18755 schema +struct<> +-- !query 18755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18756 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18756 schema +struct<> +-- !query 18756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18757 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 18757 schema +struct<> +-- !query 18757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18758 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 18758 schema +struct<> +-- !query 18758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18759 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 18759 schema +struct<> +-- !query 18759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18760 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 18760 schema +struct<> +-- !query 18760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18761 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 18761 schema +struct<> +-- !query 18761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18762 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 18762 schema +struct<> +-- !query 18762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18763 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 18763 schema +struct<> +-- !query 18763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18764 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 18764 schema +struct<> +-- !query 18764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18765 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 18765 schema +struct<> +-- !query 18765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18766 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 18766 schema +struct<> +-- !query 18766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18767 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18767 schema +struct<> +-- !query 18767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18768 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18768 schema +struct<> +-- !query 18768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18769 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 18769 schema +struct<> +-- !query 18769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18770 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 18770 schema +struct<> +-- !query 18770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18771 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 18771 schema +struct<> +-- !query 18771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18772 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 18772 schema +struct<> +-- !query 18772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18773 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 18773 schema +struct<> +-- !query 18773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18774 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 18774 schema +struct<> +-- !query 18774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18775 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 18775 schema +struct<> +-- !query 18775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18776 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 18776 schema +struct<> +-- !query 18776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18777 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 18777 schema +struct<> +-- !query 18777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18778 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 18778 schema +struct<> +-- !query 18778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18779 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18779 schema +struct<> +-- !query 18779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18780 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18780 schema +struct<> +-- !query 18780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18781 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 18781 schema +struct<> +-- !query 18781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18782 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 18782 schema +struct<> +-- !query 18782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18783 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 18783 schema +struct<> +-- !query 18783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18784 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 18784 schema +struct<> +-- !query 18784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18785 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 18785 schema +struct<> +-- !query 18785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18786 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 18786 schema +struct<> +-- !query 18786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18787 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 18787 schema +struct<> +-- !query 18787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18788 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 18788 schema +struct<> +-- !query 18788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18789 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 18789 schema +struct<> +-- !query 18789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18790 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 18790 schema +struct<> +-- !query 18790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18791 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18791 schema +struct<> +-- !query 18791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18792 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18792 schema +struct<> +-- !query 18792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18793 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 18793 schema +struct<> +-- !query 18793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18794 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 18794 schema +struct<> +-- !query 18794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18795 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 18795 schema +struct<> +-- !query 18795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18796 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 18796 schema +struct<> +-- !query 18796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18797 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 18797 schema +struct<> +-- !query 18797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18798 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 18798 schema +struct<> +-- !query 18798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18799 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 18799 schema +struct<> +-- !query 18799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18800 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 18800 schema +struct<> +-- !query 18800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18801 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 18801 schema +struct<> +-- !query 18801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18802 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 18802 schema +struct<> +-- !query 18802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18803 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18803 schema +struct<> +-- !query 18803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18804 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18804 schema +struct<> +-- !query 18804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18805 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 18805 schema +struct<> +-- !query 18805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 18806 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 18806 schema +struct<> +-- !query 18806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 18807 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 18807 schema +struct<> +-- !query 18807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 18808 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 18808 schema +struct<> +-- !query 18808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 18809 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 18809 schema +struct<> +-- !query 18809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 18810 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 18810 schema +struct<> +-- !query 18810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 18811 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 18811 schema +struct<> +-- !query 18811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 18812 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 18812 schema +struct<> +-- !query 18812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 18813 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 18813 schema +struct<> +-- !query 18813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 18814 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 18814 schema +struct> +-- !query 18814 output +{"2":true,"2017-12-11 09:30:00":true} + + +-- !query 18815 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18815 schema +struct<> +-- !query 18815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 18816 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18816 schema +struct<> +-- !query 18816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 18817 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 18817 schema +struct<> +-- !query 18817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18818 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 18818 schema +struct<> +-- !query 18818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18819 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 18819 schema +struct<> +-- !query 18819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18820 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 18820 schema +struct<> +-- !query 18820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18821 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 18821 schema +struct<> +-- !query 18821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18822 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 18822 schema +struct<> +-- !query 18822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18823 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 18823 schema +struct<> +-- !query 18823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18824 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 18824 schema +struct<> +-- !query 18824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18825 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 18825 schema +struct<> +-- !query 18825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18826 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 18826 schema +struct<> +-- !query 18826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18827 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18827 schema +struct<> +-- !query 18827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18828 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18828 schema +struct<> +-- !query 18828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18829 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 18829 schema +struct<> +-- !query 18829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18830 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 18830 schema +struct<> +-- !query 18830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18831 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 18831 schema +struct<> +-- !query 18831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18832 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 18832 schema +struct<> +-- !query 18832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18833 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 18833 schema +struct<> +-- !query 18833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18834 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 18834 schema +struct<> +-- !query 18834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18835 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 18835 schema +struct<> +-- !query 18835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18836 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 18836 schema +struct<> +-- !query 18836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18837 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 18837 schema +struct<> +-- !query 18837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18838 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 18838 schema +struct<> +-- !query 18838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18839 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18839 schema +struct<> +-- !query 18839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18840 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18840 schema +struct<> +-- !query 18840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18841 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 18841 schema +struct<> +-- !query 18841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 18842 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 18842 schema +struct<> +-- !query 18842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 18843 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 18843 schema +struct<> +-- !query 18843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 18844 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 18844 schema +struct<> +-- !query 18844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 18845 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 18845 schema +struct<> +-- !query 18845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 18846 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 18846 schema +struct<> +-- !query 18846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 18847 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 18847 schema +struct<> +-- !query 18847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 18848 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 18848 schema +struct<> +-- !query 18848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 18849 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 18849 schema +struct<> +-- !query 18849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 18850 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 18850 schema +struct> +-- !query 18850 output +{2017-12-11 09:30:00.0:true,2017-12-12 09:30:00.0:true} + + +-- !query 18851 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18851 schema +struct<> +-- !query 18851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 18852 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18852 schema +struct<> +-- !query 18852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 18853 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 18853 schema +struct<> +-- !query 18853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 18854 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 18854 schema +struct<> +-- !query 18854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 18855 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 18855 schema +struct<> +-- !query 18855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 18856 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 18856 schema +struct<> +-- !query 18856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 18857 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 18857 schema +struct<> +-- !query 18857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 18858 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 18858 schema +struct<> +-- !query 18858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 18859 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 18859 schema +struct<> +-- !query 18859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 18860 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 18860 schema +struct<> +-- !query 18860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 18861 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 18861 schema +struct<> +-- !query 18861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 18862 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 18862 schema +struct> +-- !query 18862 output +{2017-12-11 09:30:00.0:true,2017-12-12 00:00:00.0:true} + + +-- !query 18863 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18863 schema +struct<> +-- !query 18863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 18864 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18864 schema +struct<> +-- !query 18864 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 18865 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 18865 schema +struct<> +-- !query 18865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18866 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 18866 schema +struct<> +-- !query 18866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18867 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 18867 schema +struct<> +-- !query 18867 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18868 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 18868 schema +struct<> +-- !query 18868 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18869 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 18869 schema +struct<> +-- !query 18869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18870 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 18870 schema +struct<> +-- !query 18870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18871 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 18871 schema +struct<> +-- !query 18871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18872 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 18872 schema +struct<> +-- !query 18872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18873 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 18873 schema +struct<> +-- !query 18873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18874 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 18874 schema +struct<> +-- !query 18874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18875 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18875 schema +struct<> +-- !query 18875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18876 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18876 schema +struct<> +-- !query 18876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18877 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 18877 schema +struct<> +-- !query 18877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18878 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 18878 schema +struct<> +-- !query 18878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18879 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 18879 schema +struct<> +-- !query 18879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18880 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 18880 schema +struct<> +-- !query 18880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18881 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 18881 schema +struct<> +-- !query 18881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18882 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 18882 schema +struct<> +-- !query 18882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18883 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 18883 schema +struct<> +-- !query 18883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18884 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 18884 schema +struct<> +-- !query 18884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18885 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 18885 schema +struct<> +-- !query 18885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18886 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 18886 schema +struct<> +-- !query 18886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18887 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18887 schema +struct<> +-- !query 18887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18888 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18888 schema +struct<> +-- !query 18888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18889 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 18889 schema +struct<> +-- !query 18889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18890 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 18890 schema +struct<> +-- !query 18890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18891 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 18891 schema +struct<> +-- !query 18891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18892 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 18892 schema +struct<> +-- !query 18892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18893 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 18893 schema +struct<> +-- !query 18893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18894 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 18894 schema +struct<> +-- !query 18894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18895 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 18895 schema +struct<> +-- !query 18895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18896 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 18896 schema +struct<> +-- !query 18896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18897 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 18897 schema +struct<> +-- !query 18897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18898 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 18898 schema +struct<> +-- !query 18898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18899 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18899 schema +struct<> +-- !query 18899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18900 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18900 schema +struct<> +-- !query 18900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18901 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 18901 schema +struct<> +-- !query 18901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18902 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 18902 schema +struct<> +-- !query 18902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18903 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 18903 schema +struct<> +-- !query 18903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18904 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 18904 schema +struct<> +-- !query 18904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18905 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 18905 schema +struct<> +-- !query 18905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18906 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 18906 schema +struct<> +-- !query 18906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18907 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 18907 schema +struct<> +-- !query 18907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18908 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 18908 schema +struct<> +-- !query 18908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18909 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 18909 schema +struct<> +-- !query 18909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18910 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 18910 schema +struct<> +-- !query 18910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18911 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18911 schema +struct<> +-- !query 18911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18912 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18912 schema +struct<> +-- !query 18912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18913 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 18913 schema +struct<> +-- !query 18913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18914 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 18914 schema +struct<> +-- !query 18914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18915 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 18915 schema +struct<> +-- !query 18915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18916 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 18916 schema +struct<> +-- !query 18916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18917 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 18917 schema +struct<> +-- !query 18917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18918 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 18918 schema +struct<> +-- !query 18918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18919 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 18919 schema +struct<> +-- !query 18919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18920 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 18920 schema +struct<> +-- !query 18920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18921 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 18921 schema +struct<> +-- !query 18921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18922 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 18922 schema +struct<> +-- !query 18922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18923 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18923 schema +struct<> +-- !query 18923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18924 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18924 schema +struct<> +-- !query 18924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18925 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 18925 schema +struct<> +-- !query 18925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18926 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 18926 schema +struct<> +-- !query 18926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18927 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 18927 schema +struct<> +-- !query 18927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18928 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 18928 schema +struct<> +-- !query 18928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18929 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 18929 schema +struct<> +-- !query 18929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18930 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 18930 schema +struct<> +-- !query 18930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18931 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 18931 schema +struct<> +-- !query 18931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18932 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 18932 schema +struct<> +-- !query 18932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18933 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 18933 schema +struct<> +-- !query 18933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18934 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 18934 schema +struct<> +-- !query 18934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18935 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18935 schema +struct<> +-- !query 18935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18936 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18936 schema +struct<> +-- !query 18936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18937 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 18937 schema +struct<> +-- !query 18937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18938 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 18938 schema +struct<> +-- !query 18938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18939 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 18939 schema +struct<> +-- !query 18939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18940 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 18940 schema +struct<> +-- !query 18940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18941 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 18941 schema +struct<> +-- !query 18941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18942 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 18942 schema +struct<> +-- !query 18942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18943 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 18943 schema +struct<> +-- !query 18943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18944 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 18944 schema +struct<> +-- !query 18944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18945 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 18945 schema +struct<> +-- !query 18945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18946 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 18946 schema +struct<> +-- !query 18946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18947 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18947 schema +struct<> +-- !query 18947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18948 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18948 schema +struct<> +-- !query 18948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18949 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 18949 schema +struct<> +-- !query 18949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18950 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 18950 schema +struct<> +-- !query 18950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18951 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 18951 schema +struct<> +-- !query 18951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18952 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 18952 schema +struct<> +-- !query 18952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18953 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 18953 schema +struct<> +-- !query 18953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18954 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 18954 schema +struct<> +-- !query 18954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18955 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 18955 schema +struct<> +-- !query 18955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18956 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 18956 schema +struct> +-- !query 18956 output +{"2":"2","2017-12-11 09:30:00":"2017-12-11 09:30:00"} + + +-- !query 18957 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 18957 schema +struct<> +-- !query 18957 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18958 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 18958 schema +struct<> +-- !query 18958 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18959 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18959 schema +struct> +-- !query 18959 output +{"2":2017-12-12 09:30:00.0,"2017-12-11 09:30:00":2017-12-11 09:30:00.0} + + +-- !query 18960 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18960 schema +struct> +-- !query 18960 output +{"2":2017-12-12 00:00:00.0,"2017-12-11 09:30:00":2017-12-11 09:30:00.0} + + +-- !query 18961 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 18961 schema +struct<> +-- !query 18961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18962 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 18962 schema +struct<> +-- !query 18962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18963 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 18963 schema +struct<> +-- !query 18963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18964 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 18964 schema +struct<> +-- !query 18964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18965 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 18965 schema +struct<> +-- !query 18965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18966 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 18966 schema +struct<> +-- !query 18966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18967 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 18967 schema +struct<> +-- !query 18967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18968 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 18968 schema +struct<> +-- !query 18968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18969 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 18969 schema +struct<> +-- !query 18969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18970 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 18970 schema +struct<> +-- !query 18970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18971 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18971 schema +struct<> +-- !query 18971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18972 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18972 schema +struct<> +-- !query 18972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18973 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 18973 schema +struct<> +-- !query 18973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18974 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 18974 schema +struct<> +-- !query 18974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18975 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 18975 schema +struct<> +-- !query 18975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18976 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 18976 schema +struct<> +-- !query 18976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18977 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 18977 schema +struct<> +-- !query 18977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18978 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 18978 schema +struct<> +-- !query 18978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18979 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 18979 schema +struct<> +-- !query 18979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18980 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 18980 schema +struct<> +-- !query 18980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18981 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 18981 schema +struct<> +-- !query 18981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18982 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 18982 schema +struct<> +-- !query 18982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18983 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18983 schema +struct<> +-- !query 18983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18984 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18984 schema +struct<> +-- !query 18984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18985 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 18985 schema +struct<> +-- !query 18985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18986 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 18986 schema +struct<> +-- !query 18986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18987 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 18987 schema +struct<> +-- !query 18987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 18988 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 18988 schema +struct<> +-- !query 18988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 18989 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 18989 schema +struct<> +-- !query 18989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 18990 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 18990 schema +struct<> +-- !query 18990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 18991 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 18991 schema +struct<> +-- !query 18991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 18992 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 18992 schema +struct> +-- !query 18992 output +{2017-12-11 09:30:00.0:"2017-12-11 09:30:00",2017-12-12 09:30:00.0:"2"} + + +-- !query 18993 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 18993 schema +struct<> +-- !query 18993 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 18994 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 18994 schema +struct<> +-- !query 18994 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 18995 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 18995 schema +struct> +-- !query 18995 output +{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} + + +-- !query 18996 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 18996 schema +struct> +-- !query 18996 output +{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 00:00:00.0} + + +-- !query 18997 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 18997 schema +struct<> +-- !query 18997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 18998 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 18998 schema +struct<> +-- !query 18998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 18999 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 18999 schema +struct<> +-- !query 18999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19000 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 19000 schema +struct<> +-- !query 19000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19001 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 19001 schema +struct<> +-- !query 19001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19002 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 19002 schema +struct<> +-- !query 19002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19003 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 19003 schema +struct<> +-- !query 19003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19004 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 19004 schema +struct> +-- !query 19004 output +{2017-12-11 09:30:00.0:"2017-12-11 09:30:00",2017-12-12 00:00:00.0:"2"} + + +-- !query 19005 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 19005 schema +struct<> +-- !query 19005 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19006 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 19006 schema +struct<> +-- !query 19006 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19007 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19007 schema +struct> +-- !query 19007 output +{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 00:00:00.0:2017-12-12 09:30:00.0} + + +-- !query 19008 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19008 schema +struct> +-- !query 19008 output +{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 00:00:00.0:2017-12-12 00:00:00.0} + + +-- !query 19009 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 19009 schema +struct<> +-- !query 19009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19010 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 19010 schema +struct<> +-- !query 19010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19011 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 19011 schema +struct<> +-- !query 19011 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19012 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 19012 schema +struct<> +-- !query 19012 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19013 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 19013 schema +struct<> +-- !query 19013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19014 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 19014 schema +struct<> +-- !query 19014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19015 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 19015 schema +struct<> +-- !query 19015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19016 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 19016 schema +struct<> +-- !query 19016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19017 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 19017 schema +struct<> +-- !query 19017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19018 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 19018 schema +struct<> +-- !query 19018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19019 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19019 schema +struct<> +-- !query 19019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19020 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19020 schema +struct<> +-- !query 19020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 19021 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 19021 schema +struct<> +-- !query 19021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19022 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 19022 schema +struct<> +-- !query 19022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19023 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 19023 schema +struct<> +-- !query 19023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19024 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 19024 schema +struct<> +-- !query 19024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19025 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 19025 schema +struct<> +-- !query 19025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19026 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 19026 schema +struct<> +-- !query 19026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19027 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 19027 schema +struct<> +-- !query 19027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19028 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 19028 schema +struct<> +-- !query 19028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19029 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 19029 schema +struct<> +-- !query 19029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19030 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 19030 schema +struct<> +-- !query 19030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19031 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19031 schema +struct<> +-- !query 19031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19032 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19032 schema +struct<> +-- !query 19032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 19033 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 19033 schema +struct<> +-- !query 19033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19034 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 19034 schema +struct<> +-- !query 19034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19035 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 19035 schema +struct<> +-- !query 19035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19036 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 19036 schema +struct<> +-- !query 19036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19037 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 19037 schema +struct<> +-- !query 19037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19038 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 19038 schema +struct<> +-- !query 19038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19039 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 19039 schema +struct<> +-- !query 19039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19040 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 19040 schema +struct<> +-- !query 19040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19041 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 19041 schema +struct<> +-- !query 19041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19042 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 19042 schema +struct<> +-- !query 19042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19043 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19043 schema +struct<> +-- !query 19043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19044 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19044 schema +struct<> +-- !query 19044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 19045 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 19045 schema +struct<> +-- !query 19045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19046 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 19046 schema +struct<> +-- !query 19046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19047 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 19047 schema +struct<> +-- !query 19047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19048 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 19048 schema +struct<> +-- !query 19048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19049 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 19049 schema +struct<> +-- !query 19049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19050 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 19050 schema +struct<> +-- !query 19050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19051 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 19051 schema +struct<> +-- !query 19051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19052 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 19052 schema +struct<> +-- !query 19052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19053 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 19053 schema +struct<> +-- !query 19053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19054 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 19054 schema +struct<> +-- !query 19054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19055 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19055 schema +struct<> +-- !query 19055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19056 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19056 schema +struct<> +-- !query 19056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 19057 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 19057 schema +struct<> +-- !query 19057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19058 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 19058 schema +struct<> +-- !query 19058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19059 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 19059 schema +struct<> +-- !query 19059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19060 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 19060 schema +struct<> +-- !query 19060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19061 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 19061 schema +struct<> +-- !query 19061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19062 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 19062 schema +struct<> +-- !query 19062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19063 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 19063 schema +struct<> +-- !query 19063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19064 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 19064 schema +struct<> +-- !query 19064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19065 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 19065 schema +struct<> +-- !query 19065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19066 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 19066 schema +struct<> +-- !query 19066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19067 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19067 schema +struct<> +-- !query 19067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19068 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19068 schema +struct<> +-- !query 19068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 19069 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 19069 schema +struct<> +-- !query 19069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19070 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 19070 schema +struct<> +-- !query 19070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19071 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 19071 schema +struct<> +-- !query 19071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19072 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 19072 schema +struct<> +-- !query 19072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19073 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 19073 schema +struct<> +-- !query 19073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19074 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 19074 schema +struct<> +-- !query 19074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19075 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 19075 schema +struct<> +-- !query 19075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19076 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 19076 schema +struct<> +-- !query 19076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19077 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 19077 schema +struct<> +-- !query 19077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19078 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 19078 schema +struct<> +-- !query 19078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19079 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19079 schema +struct<> +-- !query 19079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19080 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19080 schema +struct<> +-- !query 19080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 19081 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 19081 schema +struct<> +-- !query 19081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19082 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 19082 schema +struct<> +-- !query 19082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19083 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 19083 schema +struct<> +-- !query 19083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19084 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 19084 schema +struct<> +-- !query 19084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19085 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 19085 schema +struct<> +-- !query 19085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19086 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 19086 schema +struct<> +-- !query 19086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19087 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 19087 schema +struct<> +-- !query 19087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19088 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 19088 schema +struct<> +-- !query 19088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19089 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 19089 schema +struct<> +-- !query 19089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19090 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 19090 schema +struct<> +-- !query 19090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19091 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19091 schema +struct<> +-- !query 19091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19092 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19092 schema +struct<> +-- !query 19092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 19093 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 19093 schema +struct<> +-- !query 19093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19094 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 19094 schema +struct<> +-- !query 19094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19095 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 19095 schema +struct<> +-- !query 19095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19096 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 19096 schema +struct<> +-- !query 19096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19097 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 19097 schema +struct<> +-- !query 19097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19098 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 19098 schema +struct<> +-- !query 19098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19099 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 19099 schema +struct<> +-- !query 19099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19100 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 19100 schema +struct> +-- !query 19100 output +{"2":"2","2017-12-11 09:30:00":"2017-12-11"} + + +-- !query 19101 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 19101 schema +struct<> +-- !query 19101 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19102 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 19102 schema +struct<> +-- !query 19102 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19103 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19103 schema +struct> +-- !query 19103 output +{"2":2017-12-12 09:30:00.0,"2017-12-11 09:30:00":2017-12-11 00:00:00.0} + + +-- !query 19104 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19104 schema +struct> +-- !query 19104 output +{"2":2017-12-12,"2017-12-11 09:30:00":2017-12-11} + + +-- !query 19105 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 19105 schema +struct<> +-- !query 19105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19106 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 19106 schema +struct<> +-- !query 19106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19107 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 19107 schema +struct<> +-- !query 19107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19108 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 19108 schema +struct<> +-- !query 19108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19109 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 19109 schema +struct<> +-- !query 19109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19110 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 19110 schema +struct<> +-- !query 19110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19111 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 19111 schema +struct<> +-- !query 19111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19112 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 19112 schema +struct<> +-- !query 19112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19113 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 19113 schema +struct<> +-- !query 19113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19114 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 19114 schema +struct<> +-- !query 19114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19115 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19115 schema +struct<> +-- !query 19115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19116 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19116 schema +struct<> +-- !query 19116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 19117 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 19117 schema +struct<> +-- !query 19117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19118 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 19118 schema +struct<> +-- !query 19118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19119 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 19119 schema +struct<> +-- !query 19119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19120 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 19120 schema +struct<> +-- !query 19120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19121 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 19121 schema +struct<> +-- !query 19121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19122 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 19122 schema +struct<> +-- !query 19122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19123 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 19123 schema +struct<> +-- !query 19123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19124 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 19124 schema +struct<> +-- !query 19124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19125 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 19125 schema +struct<> +-- !query 19125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19126 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 19126 schema +struct<> +-- !query 19126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19127 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19127 schema +struct<> +-- !query 19127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19128 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19128 schema +struct<> +-- !query 19128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 19129 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 19129 schema +struct<> +-- !query 19129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19130 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 19130 schema +struct<> +-- !query 19130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19131 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 19131 schema +struct<> +-- !query 19131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19132 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 19132 schema +struct<> +-- !query 19132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19133 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 19133 schema +struct<> +-- !query 19133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19134 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 19134 schema +struct<> +-- !query 19134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19135 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 19135 schema +struct<> +-- !query 19135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19136 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 19136 schema +struct> +-- !query 19136 output +{2017-12-11 09:30:00.0:"2017-12-11",2017-12-12 09:30:00.0:"2"} + + +-- !query 19137 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 19137 schema +struct<> +-- !query 19137 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19138 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 19138 schema +struct<> +-- !query 19138 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19139 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19139 schema +struct> +-- !query 19139 output +{2017-12-11 09:30:00.0:2017-12-11 00:00:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} + + +-- !query 19140 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19140 schema +struct> +-- !query 19140 output +{2017-12-11 09:30:00.0:2017-12-11,2017-12-12 09:30:00.0:2017-12-12} + + +-- !query 19141 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 19141 schema +struct<> +-- !query 19141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19142 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 19142 schema +struct<> +-- !query 19142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19143 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 19143 schema +struct<> +-- !query 19143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19144 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 19144 schema +struct<> +-- !query 19144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19145 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 19145 schema +struct<> +-- !query 19145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19146 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 19146 schema +struct<> +-- !query 19146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19147 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 19147 schema +struct<> +-- !query 19147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19148 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 19148 schema +struct> +-- !query 19148 output +{2017-12-11 09:30:00.0:"2017-12-11",2017-12-12 00:00:00.0:"2"} + + +-- !query 19149 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 19149 schema +struct<> +-- !query 19149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19150 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 19150 schema +struct<> +-- !query 19150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19151 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19151 schema +struct> +-- !query 19151 output +{2017-12-11 09:30:00.0:2017-12-11 00:00:00.0,2017-12-12 00:00:00.0:2017-12-12 09:30:00.0} + + +-- !query 19152 +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19152 schema +struct> +-- !query 19152 output +{2017-12-11 09:30:00.0:2017-12-11,2017-12-12 00:00:00.0:2017-12-12} + + +-- !query 19153 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 19153 schema +struct<> +-- !query 19153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19154 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 19154 schema +struct<> +-- !query 19154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19155 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 19155 schema +struct<> +-- !query 19155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19156 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 19156 schema +struct<> +-- !query 19156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19157 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 19157 schema +struct<> +-- !query 19157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19158 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 19158 schema +struct<> +-- !query 19158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19159 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 19159 schema +struct<> +-- !query 19159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19160 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 19160 schema +struct<> +-- !query 19160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19161 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 19161 schema +struct<> +-- !query 19161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19162 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 19162 schema +struct<> +-- !query 19162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19163 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19163 schema +struct<> +-- !query 19163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19164 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19164 schema +struct<> +-- !query 19164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19165 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 19165 schema +struct<> +-- !query 19165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19166 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 19166 schema +struct<> +-- !query 19166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19167 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 19167 schema +struct<> +-- !query 19167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19168 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 19168 schema +struct<> +-- !query 19168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19169 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 19169 schema +struct<> +-- !query 19169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19170 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 19170 schema +struct<> +-- !query 19170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19171 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 19171 schema +struct<> +-- !query 19171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19172 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 19172 schema +struct<> +-- !query 19172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19173 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 19173 schema +struct<> +-- !query 19173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19174 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 19174 schema +struct<> +-- !query 19174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19175 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19175 schema +struct<> +-- !query 19175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19176 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19176 schema +struct<> +-- !query 19176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19177 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 19177 schema +struct<> +-- !query 19177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19178 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 19178 schema +struct<> +-- !query 19178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19179 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +-- !query 19179 schema +struct<> +-- !query 19179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19180 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 19180 schema +struct<> +-- !query 19180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19181 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +-- !query 19181 schema +struct<> +-- !query 19181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19182 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +-- !query 19182 schema +struct<> +-- !query 19182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19183 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 19183 schema +struct<> +-- !query 19183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19184 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +-- !query 19184 schema +struct<> +-- !query 19184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19185 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 19185 schema +struct<> +-- !query 19185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19186 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 19186 schema +struct<> +-- !query 19186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19187 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19187 schema +struct<> +-- !query 19187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19188 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19188 schema +struct<> +-- !query 19188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19189 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 19189 schema +struct<> +-- !query 19189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19190 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 19190 schema +struct<> +-- !query 19190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19191 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 19191 schema +struct<> +-- !query 19191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19192 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 19192 schema +struct<> +-- !query 19192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19193 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 19193 schema +struct<> +-- !query 19193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19194 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 19194 schema +struct<> +-- !query 19194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19195 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 19195 schema +struct<> +-- !query 19195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19196 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 19196 schema +struct<> +-- !query 19196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19197 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 19197 schema +struct<> +-- !query 19197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19198 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 19198 schema +struct<> +-- !query 19198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19199 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19199 schema +struct<> +-- !query 19199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19200 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19200 schema +struct<> +-- !query 19200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19201 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 19201 schema +struct<> +-- !query 19201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19202 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 19202 schema +struct<> +-- !query 19202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19203 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +-- !query 19203 schema +struct<> +-- !query 19203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19204 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 19204 schema +struct<> +-- !query 19204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19205 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +-- !query 19205 schema +struct<> +-- !query 19205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19206 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +-- !query 19206 schema +struct<> +-- !query 19206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19207 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 19207 schema +struct<> +-- !query 19207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19208 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +-- !query 19208 schema +struct<> +-- !query 19208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19209 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 19209 schema +struct<> +-- !query 19209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19210 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 19210 schema +struct<> +-- !query 19210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19211 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19211 schema +struct<> +-- !query 19211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19212 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19212 schema +struct<> +-- !query 19212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19213 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 19213 schema +struct<> +-- !query 19213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19214 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 19214 schema +struct<> +-- !query 19214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19215 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +-- !query 19215 schema +struct<> +-- !query 19215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19216 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 19216 schema +struct<> +-- !query 19216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19217 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +-- !query 19217 schema +struct<> +-- !query 19217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19218 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +-- !query 19218 schema +struct<> +-- !query 19218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19219 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 19219 schema +struct<> +-- !query 19219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19220 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +-- !query 19220 schema +struct<> +-- !query 19220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19221 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 19221 schema +struct<> +-- !query 19221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19222 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 19222 schema +struct<> +-- !query 19222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19223 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19223 schema +struct<> +-- !query 19223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19224 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19224 schema +struct<> +-- !query 19224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19225 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 19225 schema +struct<> +-- !query 19225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19226 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 19226 schema +struct<> +-- !query 19226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19227 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 19227 schema +struct<> +-- !query 19227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19228 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 19228 schema +struct<> +-- !query 19228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19229 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 19229 schema +struct<> +-- !query 19229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19230 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 19230 schema +struct<> +-- !query 19230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19231 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 19231 schema +struct<> +-- !query 19231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19232 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 19232 schema +struct<> +-- !query 19232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19233 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 19233 schema +struct<> +-- !query 19233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19234 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 19234 schema +struct<> +-- !query 19234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19235 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19235 schema +struct<> +-- !query 19235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19236 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19236 schema +struct<> +-- !query 19236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19237 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 19237 schema +struct> +-- !query 19237 output +{"2":2,"2017-12-11":1} + + +-- !query 19238 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 19238 schema +struct> +-- !query 19238 output +{"2":2,"2017-12-11":1} + + +-- !query 19239 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +-- !query 19239 schema +struct> +-- !query 19239 output +{"2":2,"2017-12-11":1} + + +-- !query 19240 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 19240 schema +struct> +-- !query 19240 output +{"2":2,"2017-12-11":1} + + +-- !query 19241 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +-- !query 19241 schema +struct> +-- !query 19241 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19242 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +-- !query 19242 schema +struct> +-- !query 19242 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19243 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 19243 schema +struct> +-- !query 19243 output +{"2":2,"2017-12-11":1} + + +-- !query 19244 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +-- !query 19244 schema +struct> +-- !query 19244 output +{"2":"2","2017-12-11":"1"} + + +-- !query 19245 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 19245 schema +struct<> +-- !query 19245 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 19246 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 19246 schema +struct<> +-- !query 19246 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 19247 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19247 schema +struct<> +-- !query 19247 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 19248 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19248 schema +struct<> +-- !query 19248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 19249 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 19249 schema +struct<> +-- !query 19249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19250 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 19250 schema +struct<> +-- !query 19250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19251 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 19251 schema +struct<> +-- !query 19251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19252 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 19252 schema +struct<> +-- !query 19252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19253 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 19253 schema +struct<> +-- !query 19253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19254 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 19254 schema +struct<> +-- !query 19254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19255 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 19255 schema +struct<> +-- !query 19255 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19256 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 19256 schema +struct<> +-- !query 19256 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19257 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 19257 schema +struct<> +-- !query 19257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19258 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 19258 schema +struct<> +-- !query 19258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19259 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19259 schema +struct<> +-- !query 19259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19260 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19260 schema +struct<> +-- !query 19260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19261 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 19261 schema +struct<> +-- !query 19261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19262 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 19262 schema +struct<> +-- !query 19262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19263 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 19263 schema +struct<> +-- !query 19263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19264 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 19264 schema +struct<> +-- !query 19264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19265 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 19265 schema +struct<> +-- !query 19265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19266 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 19266 schema +struct<> +-- !query 19266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19267 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 19267 schema +struct<> +-- !query 19267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19268 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 19268 schema +struct<> +-- !query 19268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19269 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 19269 schema +struct<> +-- !query 19269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19270 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 19270 schema +struct<> +-- !query 19270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19271 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19271 schema +struct<> +-- !query 19271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19272 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19272 schema +struct<> +-- !query 19272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19273 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 19273 schema +struct> +-- !query 19273 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19274 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 19274 schema +struct> +-- !query 19274 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19275 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 19275 schema +struct> +-- !query 19275 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19276 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 19276 schema +struct> +-- !query 19276 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19277 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 19277 schema +struct> +-- !query 19277 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19278 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 19278 schema +struct> +-- !query 19278 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19279 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 19279 schema +struct> +-- !query 19279 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19280 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 19280 schema +struct> +-- !query 19280 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 19281 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 19281 schema +struct<> +-- !query 19281 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 19282 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 19282 schema +struct<> +-- !query 19282 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 19283 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19283 schema +struct<> +-- !query 19283 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 19284 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19284 schema +struct<> +-- !query 19284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 19285 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 19285 schema +struct> +-- !query 19285 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19286 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 19286 schema +struct> +-- !query 19286 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19287 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 19287 schema +struct> +-- !query 19287 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19288 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 19288 schema +struct> +-- !query 19288 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19289 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 19289 schema +struct> +-- !query 19289 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19290 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 19290 schema +struct> +-- !query 19290 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19291 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 19291 schema +struct> +-- !query 19291 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19292 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 19292 schema +struct> +-- !query 19292 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 19293 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 19293 schema +struct<> +-- !query 19293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 + + +-- !query 19294 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 19294 schema +struct<> +-- !query 19294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 + + +-- !query 19295 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19295 schema +struct<> +-- !query 19295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 + + +-- !query 19296 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19296 schema +struct<> +-- !query 19296 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 + + +-- !query 19297 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 19297 schema +struct<> +-- !query 19297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19298 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 19298 schema +struct<> +-- !query 19298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19299 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 19299 schema +struct<> +-- !query 19299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19300 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 19300 schema +struct<> +-- !query 19300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19301 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 19301 schema +struct<> +-- !query 19301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19302 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 19302 schema +struct<> +-- !query 19302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19303 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 19303 schema +struct<> +-- !query 19303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19304 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 19304 schema +struct<> +-- !query 19304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19305 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 19305 schema +struct<> +-- !query 19305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19306 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 19306 schema +struct<> +-- !query 19306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19307 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19307 schema +struct<> +-- !query 19307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19308 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19308 schema +struct<> +-- !query 19308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19309 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 19309 schema +struct<> +-- !query 19309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19310 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 19310 schema +struct<> +-- !query 19310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19311 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 19311 schema +struct<> +-- !query 19311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19312 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 19312 schema +struct<> +-- !query 19312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19313 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 19313 schema +struct<> +-- !query 19313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19314 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 19314 schema +struct<> +-- !query 19314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19315 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 19315 schema +struct<> +-- !query 19315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19316 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 19316 schema +struct<> +-- !query 19316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19317 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 19317 schema +struct<> +-- !query 19317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19318 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 19318 schema +struct<> +-- !query 19318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19319 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19319 schema +struct<> +-- !query 19319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19320 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19320 schema +struct<> +-- !query 19320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19321 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 19321 schema +struct<> +-- !query 19321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19322 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 19322 schema +struct<> +-- !query 19322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19323 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +-- !query 19323 schema +struct<> +-- !query 19323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19324 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 19324 schema +struct<> +-- !query 19324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19325 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +-- !query 19325 schema +struct<> +-- !query 19325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19326 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +-- !query 19326 schema +struct<> +-- !query 19326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19327 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 19327 schema +struct<> +-- !query 19327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19328 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +-- !query 19328 schema +struct<> +-- !query 19328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19329 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 19329 schema +struct<> +-- !query 19329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19330 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 19330 schema +struct<> +-- !query 19330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19331 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19331 schema +struct<> +-- !query 19331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19332 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19332 schema +struct<> +-- !query 19332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19333 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 19333 schema +struct<> +-- !query 19333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19334 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 19334 schema +struct<> +-- !query 19334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19335 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 19335 schema +struct<> +-- !query 19335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19336 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 19336 schema +struct<> +-- !query 19336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19337 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 19337 schema +struct<> +-- !query 19337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19338 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 19338 schema +struct<> +-- !query 19338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19339 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 19339 schema +struct<> +-- !query 19339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19340 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 19340 schema +struct<> +-- !query 19340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19341 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 19341 schema +struct<> +-- !query 19341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19342 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 19342 schema +struct<> +-- !query 19342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19343 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19343 schema +struct<> +-- !query 19343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19344 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19344 schema +struct<> +-- !query 19344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19345 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 19345 schema +struct<> +-- !query 19345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19346 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 19346 schema +struct<> +-- !query 19346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19347 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +-- !query 19347 schema +struct<> +-- !query 19347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19348 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 19348 schema +struct<> +-- !query 19348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19349 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +-- !query 19349 schema +struct<> +-- !query 19349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19350 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +-- !query 19350 schema +struct<> +-- !query 19350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19351 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 19351 schema +struct<> +-- !query 19351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19352 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +-- !query 19352 schema +struct<> +-- !query 19352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19353 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 19353 schema +struct<> +-- !query 19353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19354 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 19354 schema +struct<> +-- !query 19354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19355 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19355 schema +struct<> +-- !query 19355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19356 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19356 schema +struct<> +-- !query 19356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19357 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 19357 schema +struct<> +-- !query 19357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19358 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 19358 schema +struct<> +-- !query 19358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19359 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +-- !query 19359 schema +struct<> +-- !query 19359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19360 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 19360 schema +struct<> +-- !query 19360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19361 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +-- !query 19361 schema +struct<> +-- !query 19361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19362 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +-- !query 19362 schema +struct<> +-- !query 19362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19363 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 19363 schema +struct<> +-- !query 19363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19364 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +-- !query 19364 schema +struct<> +-- !query 19364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19365 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 19365 schema +struct<> +-- !query 19365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19366 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 19366 schema +struct<> +-- !query 19366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19367 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19367 schema +struct<> +-- !query 19367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19368 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19368 schema +struct<> +-- !query 19368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19369 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 19369 schema +struct<> +-- !query 19369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19370 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 19370 schema +struct<> +-- !query 19370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19371 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 19371 schema +struct<> +-- !query 19371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19372 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 19372 schema +struct<> +-- !query 19372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19373 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 19373 schema +struct<> +-- !query 19373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19374 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 19374 schema +struct<> +-- !query 19374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19375 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 19375 schema +struct<> +-- !query 19375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19376 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 19376 schema +struct<> +-- !query 19376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19377 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 19377 schema +struct<> +-- !query 19377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19378 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 19378 schema +struct<> +-- !query 19378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19379 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19379 schema +struct<> +-- !query 19379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19380 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19380 schema +struct<> +-- !query 19380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19381 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 19381 schema +struct> +-- !query 19381 output +{"2":2,"2017-12-11":1} + + +-- !query 19382 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 19382 schema +struct> +-- !query 19382 output +{"2":2,"2017-12-11":1} + + +-- !query 19383 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +-- !query 19383 schema +struct> +-- !query 19383 output +{"2":2,"2017-12-11":1} + + +-- !query 19384 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 19384 schema +struct> +-- !query 19384 output +{"2":2,"2017-12-11":1} + + +-- !query 19385 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +-- !query 19385 schema +struct> +-- !query 19385 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19386 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +-- !query 19386 schema +struct> +-- !query 19386 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19387 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 19387 schema +struct> +-- !query 19387 output +{"2":2,"2017-12-11":1} + + +-- !query 19388 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +-- !query 19388 schema +struct> +-- !query 19388 output +{"2":"2","2017-12-11":"1"} + + +-- !query 19389 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 19389 schema +struct<> +-- !query 19389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 19390 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 19390 schema +struct<> +-- !query 19390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 19391 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19391 schema +struct<> +-- !query 19391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 19392 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19392 schema +struct<> +-- !query 19392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 19393 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 19393 schema +struct<> +-- !query 19393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19394 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 19394 schema +struct<> +-- !query 19394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19395 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 19395 schema +struct<> +-- !query 19395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19396 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 19396 schema +struct<> +-- !query 19396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19397 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 19397 schema +struct<> +-- !query 19397 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19398 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 19398 schema +struct<> +-- !query 19398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19399 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 19399 schema +struct<> +-- !query 19399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19400 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 19400 schema +struct<> +-- !query 19400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19401 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 19401 schema +struct<> +-- !query 19401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19402 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 19402 schema +struct<> +-- !query 19402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19403 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19403 schema +struct<> +-- !query 19403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19404 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19404 schema +struct<> +-- !query 19404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19405 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 19405 schema +struct<> +-- !query 19405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19406 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 19406 schema +struct<> +-- !query 19406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19407 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 19407 schema +struct<> +-- !query 19407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19408 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 19408 schema +struct<> +-- !query 19408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19409 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 19409 schema +struct<> +-- !query 19409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19410 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 19410 schema +struct<> +-- !query 19410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19411 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 19411 schema +struct<> +-- !query 19411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19412 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 19412 schema +struct<> +-- !query 19412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19413 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 19413 schema +struct<> +-- !query 19413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19414 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 19414 schema +struct<> +-- !query 19414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19415 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19415 schema +struct<> +-- !query 19415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19416 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19416 schema +struct<> +-- !query 19416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19417 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 19417 schema +struct> +-- !query 19417 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19418 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 19418 schema +struct> +-- !query 19418 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19419 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 19419 schema +struct> +-- !query 19419 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19420 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 19420 schema +struct> +-- !query 19420 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19421 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 19421 schema +struct> +-- !query 19421 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19422 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 19422 schema +struct> +-- !query 19422 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19423 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 19423 schema +struct> +-- !query 19423 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19424 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 19424 schema +struct> +-- !query 19424 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 19425 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 19425 schema +struct<> +-- !query 19425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 19426 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 19426 schema +struct<> +-- !query 19426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 19427 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19427 schema +struct<> +-- !query 19427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 19428 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19428 schema +struct<> +-- !query 19428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 19429 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 19429 schema +struct> +-- !query 19429 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19430 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 19430 schema +struct> +-- !query 19430 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19431 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 19431 schema +struct> +-- !query 19431 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19432 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 19432 schema +struct> +-- !query 19432 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19433 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 19433 schema +struct> +-- !query 19433 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19434 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 19434 schema +struct> +-- !query 19434 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19435 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 19435 schema +struct> +-- !query 19435 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19436 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 19436 schema +struct> +-- !query 19436 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 19437 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 19437 schema +struct<> +-- !query 19437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 + + +-- !query 19438 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 19438 schema +struct<> +-- !query 19438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 + + +-- !query 19439 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19439 schema +struct<> +-- !query 19439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 + + +-- !query 19440 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19440 schema +struct<> +-- !query 19440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 + + +-- !query 19441 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 19441 schema +struct<> +-- !query 19441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19442 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 19442 schema +struct<> +-- !query 19442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19443 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 19443 schema +struct<> +-- !query 19443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19444 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 19444 schema +struct<> +-- !query 19444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19445 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 19445 schema +struct<> +-- !query 19445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19446 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 19446 schema +struct<> +-- !query 19446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19447 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 19447 schema +struct<> +-- !query 19447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19448 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 19448 schema +struct<> +-- !query 19448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19449 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 19449 schema +struct<> +-- !query 19449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19450 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 19450 schema +struct<> +-- !query 19450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19451 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19451 schema +struct<> +-- !query 19451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19452 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19452 schema +struct<> +-- !query 19452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19453 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 19453 schema +struct<> +-- !query 19453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19454 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 19454 schema +struct<> +-- !query 19454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19455 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 19455 schema +struct<> +-- !query 19455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19456 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 19456 schema +struct<> +-- !query 19456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19457 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 19457 schema +struct<> +-- !query 19457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19458 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 19458 schema +struct<> +-- !query 19458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19459 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 19459 schema +struct<> +-- !query 19459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19460 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 19460 schema +struct<> +-- !query 19460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19461 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 19461 schema +struct<> +-- !query 19461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19462 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 19462 schema +struct<> +-- !query 19462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19463 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19463 schema +struct<> +-- !query 19463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19464 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19464 schema +struct<> +-- !query 19464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19465 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 19465 schema +struct<> +-- !query 19465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19466 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 19466 schema +struct<> +-- !query 19466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19467 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +-- !query 19467 schema +struct<> +-- !query 19467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19468 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 19468 schema +struct<> +-- !query 19468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19469 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +-- !query 19469 schema +struct<> +-- !query 19469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19470 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +-- !query 19470 schema +struct<> +-- !query 19470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19471 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 19471 schema +struct<> +-- !query 19471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19472 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +-- !query 19472 schema +struct<> +-- !query 19472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19473 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +-- !query 19473 schema +struct<> +-- !query 19473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19474 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 19474 schema +struct<> +-- !query 19474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19475 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19475 schema +struct<> +-- !query 19475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19476 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19476 schema +struct<> +-- !query 19476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19477 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 19477 schema +struct<> +-- !query 19477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19478 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 19478 schema +struct<> +-- !query 19478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19479 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 19479 schema +struct<> +-- !query 19479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19480 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 19480 schema +struct<> +-- !query 19480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19481 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 19481 schema +struct<> +-- !query 19481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19482 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 19482 schema +struct<> +-- !query 19482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19483 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 19483 schema +struct<> +-- !query 19483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19484 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 19484 schema +struct<> +-- !query 19484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19485 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 19485 schema +struct<> +-- !query 19485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19486 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 19486 schema +struct<> +-- !query 19486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19487 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19487 schema +struct<> +-- !query 19487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19488 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19488 schema +struct<> +-- !query 19488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19489 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 19489 schema +struct<> +-- !query 19489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19490 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 19490 schema +struct<> +-- !query 19490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19491 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +-- !query 19491 schema +struct<> +-- !query 19491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19492 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 19492 schema +struct<> +-- !query 19492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19493 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +-- !query 19493 schema +struct<> +-- !query 19493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19494 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +-- !query 19494 schema +struct<> +-- !query 19494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19495 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 19495 schema +struct<> +-- !query 19495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19496 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +-- !query 19496 schema +struct<> +-- !query 19496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19497 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +-- !query 19497 schema +struct<> +-- !query 19497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19498 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 19498 schema +struct<> +-- !query 19498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19499 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19499 schema +struct<> +-- !query 19499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19500 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19500 schema +struct<> +-- !query 19500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19501 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 19501 schema +struct<> +-- !query 19501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19502 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 19502 schema +struct<> +-- !query 19502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19503 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +-- !query 19503 schema +struct<> +-- !query 19503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19504 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 19504 schema +struct<> +-- !query 19504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19505 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +-- !query 19505 schema +struct<> +-- !query 19505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19506 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +-- !query 19506 schema +struct<> +-- !query 19506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19507 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 19507 schema +struct<> +-- !query 19507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19508 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +-- !query 19508 schema +struct<> +-- !query 19508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19509 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +-- !query 19509 schema +struct<> +-- !query 19509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19510 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 19510 schema +struct<> +-- !query 19510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19511 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19511 schema +struct<> +-- !query 19511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19512 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19512 schema +struct<> +-- !query 19512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19513 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 19513 schema +struct<> +-- !query 19513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19514 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 19514 schema +struct<> +-- !query 19514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19515 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 19515 schema +struct<> +-- !query 19515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19516 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 19516 schema +struct<> +-- !query 19516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19517 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 19517 schema +struct<> +-- !query 19517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19518 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 19518 schema +struct<> +-- !query 19518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19519 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 19519 schema +struct<> +-- !query 19519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19520 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 19520 schema +struct<> +-- !query 19520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19521 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 19521 schema +struct<> +-- !query 19521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19522 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 19522 schema +struct<> +-- !query 19522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19523 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19523 schema +struct<> +-- !query 19523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19524 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19524 schema +struct<> +-- !query 19524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19525 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 19525 schema +struct> +-- !query 19525 output +{"2":2,"2017-12-11":1} + + +-- !query 19526 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 19526 schema +struct> +-- !query 19526 output +{"2":2,"2017-12-11":1} + + +-- !query 19527 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +-- !query 19527 schema +struct> +-- !query 19527 output +{"2":2,"2017-12-11":1} + + +-- !query 19528 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 19528 schema +struct> +-- !query 19528 output +{"2":2,"2017-12-11":1} + + +-- !query 19529 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +-- !query 19529 schema +struct> +-- !query 19529 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19530 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +-- !query 19530 schema +struct> +-- !query 19530 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19531 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 19531 schema +struct> +-- !query 19531 output +{"2":2,"2017-12-11":1} + + +-- !query 19532 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +-- !query 19532 schema +struct> +-- !query 19532 output +{"2":"2","2017-12-11":"1"} + + +-- !query 19533 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +-- !query 19533 schema +struct<> +-- !query 19533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 19534 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 19534 schema +struct<> +-- !query 19534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 19535 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19535 schema +struct<> +-- !query 19535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 19536 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19536 schema +struct<> +-- !query 19536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 19537 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 19537 schema +struct<> +-- !query 19537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19538 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 19538 schema +struct<> +-- !query 19538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19539 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +-- !query 19539 schema +struct<> +-- !query 19539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19540 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 19540 schema +struct<> +-- !query 19540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19541 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +-- !query 19541 schema +struct<> +-- !query 19541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19542 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +-- !query 19542 schema +struct<> +-- !query 19542 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19543 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 19543 schema +struct<> +-- !query 19543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19544 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +-- !query 19544 schema +struct<> +-- !query 19544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19545 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 19545 schema +struct<> +-- !query 19545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19546 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 19546 schema +struct<> +-- !query 19546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19547 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19547 schema +struct<> +-- !query 19547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19548 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19548 schema +struct<> +-- !query 19548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19549 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 19549 schema +struct<> +-- !query 19549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19550 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 19550 schema +struct<> +-- !query 19550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19551 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 19551 schema +struct<> +-- !query 19551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19552 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 19552 schema +struct<> +-- !query 19552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19553 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 19553 schema +struct<> +-- !query 19553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19554 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 19554 schema +struct<> +-- !query 19554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19555 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 19555 schema +struct<> +-- !query 19555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19556 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 19556 schema +struct<> +-- !query 19556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19557 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 19557 schema +struct<> +-- !query 19557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19558 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 19558 schema +struct<> +-- !query 19558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19559 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19559 schema +struct<> +-- !query 19559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19560 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19560 schema +struct<> +-- !query 19560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19561 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 19561 schema +struct> +-- !query 19561 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19562 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 19562 schema +struct> +-- !query 19562 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19563 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 19563 schema +struct> +-- !query 19563 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19564 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 19564 schema +struct> +-- !query 19564 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19565 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 19565 schema +struct> +-- !query 19565 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19566 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 19566 schema +struct> +-- !query 19566 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19567 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 19567 schema +struct> +-- !query 19567 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19568 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 19568 schema +struct> +-- !query 19568 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 19569 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 19569 schema +struct<> +-- !query 19569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 19570 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 19570 schema +struct<> +-- !query 19570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 19571 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19571 schema +struct<> +-- !query 19571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 19572 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19572 schema +struct<> +-- !query 19572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 19573 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 19573 schema +struct> +-- !query 19573 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19574 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 19574 schema +struct> +-- !query 19574 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19575 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 19575 schema +struct> +-- !query 19575 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19576 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 19576 schema +struct> +-- !query 19576 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19577 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 19577 schema +struct> +-- !query 19577 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19578 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 19578 schema +struct> +-- !query 19578 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19579 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 19579 schema +struct> +-- !query 19579 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19580 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 19580 schema +struct> +-- !query 19580 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 19581 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 19581 schema +struct<> +-- !query 19581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 + + +-- !query 19582 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 19582 schema +struct<> +-- !query 19582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 + + +-- !query 19583 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19583 schema +struct<> +-- !query 19583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 + + +-- !query 19584 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19584 schema +struct<> +-- !query 19584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 + + +-- !query 19585 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 19585 schema +struct<> +-- !query 19585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19586 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 19586 schema +struct<> +-- !query 19586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19587 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 19587 schema +struct<> +-- !query 19587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19588 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 19588 schema +struct<> +-- !query 19588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19589 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 19589 schema +struct<> +-- !query 19589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19590 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 19590 schema +struct<> +-- !query 19590 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19591 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 19591 schema +struct<> +-- !query 19591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19592 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 19592 schema +struct<> +-- !query 19592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19593 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 19593 schema +struct<> +-- !query 19593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19594 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 19594 schema +struct<> +-- !query 19594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19595 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19595 schema +struct<> +-- !query 19595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19596 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19596 schema +struct<> +-- !query 19596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19597 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 19597 schema +struct<> +-- !query 19597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19598 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 19598 schema +struct<> +-- !query 19598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19599 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 19599 schema +struct<> +-- !query 19599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19600 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 19600 schema +struct<> +-- !query 19600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19601 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 19601 schema +struct<> +-- !query 19601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19602 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 19602 schema +struct<> +-- !query 19602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19603 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 19603 schema +struct<> +-- !query 19603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19604 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 19604 schema +struct<> +-- !query 19604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19605 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 19605 schema +struct<> +-- !query 19605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19606 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 19606 schema +struct<> +-- !query 19606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19607 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19607 schema +struct<> +-- !query 19607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19608 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19608 schema +struct<> +-- !query 19608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19609 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 19609 schema +struct<> +-- !query 19609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19610 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 19610 schema +struct<> +-- !query 19610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19611 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +-- !query 19611 schema +struct<> +-- !query 19611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19612 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 19612 schema +struct<> +-- !query 19612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19613 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +-- !query 19613 schema +struct<> +-- !query 19613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19614 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +-- !query 19614 schema +struct<> +-- !query 19614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19615 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 19615 schema +struct<> +-- !query 19615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19616 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +-- !query 19616 schema +struct<> +-- !query 19616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19617 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +-- !query 19617 schema +struct<> +-- !query 19617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19618 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 19618 schema +struct<> +-- !query 19618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19619 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19619 schema +struct<> +-- !query 19619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19620 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19620 schema +struct<> +-- !query 19620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19621 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 19621 schema +struct<> +-- !query 19621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19622 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 19622 schema +struct<> +-- !query 19622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19623 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 19623 schema +struct<> +-- !query 19623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19624 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 19624 schema +struct<> +-- !query 19624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19625 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 19625 schema +struct<> +-- !query 19625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19626 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 19626 schema +struct<> +-- !query 19626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19627 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 19627 schema +struct<> +-- !query 19627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19628 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 19628 schema +struct<> +-- !query 19628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19629 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 19629 schema +struct<> +-- !query 19629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19630 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 19630 schema +struct<> +-- !query 19630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19631 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19631 schema +struct<> +-- !query 19631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19632 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19632 schema +struct<> +-- !query 19632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19633 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 19633 schema +struct<> +-- !query 19633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19634 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 19634 schema +struct<> +-- !query 19634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19635 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +-- !query 19635 schema +struct<> +-- !query 19635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19636 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 19636 schema +struct<> +-- !query 19636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19637 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +-- !query 19637 schema +struct<> +-- !query 19637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19638 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +-- !query 19638 schema +struct<> +-- !query 19638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19639 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 19639 schema +struct<> +-- !query 19639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19640 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +-- !query 19640 schema +struct<> +-- !query 19640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19641 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +-- !query 19641 schema +struct<> +-- !query 19641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19642 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 19642 schema +struct<> +-- !query 19642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19643 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19643 schema +struct<> +-- !query 19643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19644 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19644 schema +struct<> +-- !query 19644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19645 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 19645 schema +struct<> +-- !query 19645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19646 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 19646 schema +struct<> +-- !query 19646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19647 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +-- !query 19647 schema +struct<> +-- !query 19647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19648 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 19648 schema +struct<> +-- !query 19648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19649 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +-- !query 19649 schema +struct<> +-- !query 19649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19650 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +-- !query 19650 schema +struct<> +-- !query 19650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19651 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 19651 schema +struct<> +-- !query 19651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19652 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +-- !query 19652 schema +struct<> +-- !query 19652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19653 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +-- !query 19653 schema +struct<> +-- !query 19653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19654 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 19654 schema +struct<> +-- !query 19654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19655 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19655 schema +struct<> +-- !query 19655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19656 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19656 schema +struct<> +-- !query 19656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19657 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 19657 schema +struct<> +-- !query 19657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19658 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 19658 schema +struct<> +-- !query 19658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19659 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 19659 schema +struct<> +-- !query 19659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19660 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 19660 schema +struct<> +-- !query 19660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19661 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 19661 schema +struct<> +-- !query 19661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19662 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 19662 schema +struct<> +-- !query 19662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19663 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 19663 schema +struct<> +-- !query 19663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19664 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 19664 schema +struct<> +-- !query 19664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19665 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 19665 schema +struct<> +-- !query 19665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19666 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 19666 schema +struct<> +-- !query 19666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19667 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19667 schema +struct<> +-- !query 19667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19668 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19668 schema +struct<> +-- !query 19668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19669 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 19669 schema +struct> +-- !query 19669 output +{"2":2,"2017-12-11":1} + + +-- !query 19670 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 19670 schema +struct> +-- !query 19670 output +{"2":2,"2017-12-11":1} + + +-- !query 19671 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +-- !query 19671 schema +struct> +-- !query 19671 output +{"2":2,"2017-12-11":1} + + +-- !query 19672 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 19672 schema +struct> +-- !query 19672 output +{"2":2,"2017-12-11":1} + + +-- !query 19673 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +-- !query 19673 schema +struct> +-- !query 19673 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19674 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +-- !query 19674 schema +struct> +-- !query 19674 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19675 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 19675 schema +struct> +-- !query 19675 output +{"2":2,"2017-12-11":1} + + +-- !query 19676 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +-- !query 19676 schema +struct> +-- !query 19676 output +{"2":"2","2017-12-11":"1"} + + +-- !query 19677 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +-- !query 19677 schema +struct<> +-- !query 19677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 19678 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 19678 schema +struct<> +-- !query 19678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 19679 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19679 schema +struct<> +-- !query 19679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 19680 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19680 schema +struct<> +-- !query 19680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 19681 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 19681 schema +struct<> +-- !query 19681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19682 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 19682 schema +struct<> +-- !query 19682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19683 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +-- !query 19683 schema +struct<> +-- !query 19683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19684 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 19684 schema +struct<> +-- !query 19684 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19685 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +-- !query 19685 schema +struct<> +-- !query 19685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19686 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +-- !query 19686 schema +struct<> +-- !query 19686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19687 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 19687 schema +struct<> +-- !query 19687 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19688 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +-- !query 19688 schema +struct<> +-- !query 19688 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19689 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 19689 schema +struct<> +-- !query 19689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19690 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 19690 schema +struct<> +-- !query 19690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19691 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19691 schema +struct<> +-- !query 19691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19692 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19692 schema +struct<> +-- !query 19692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19693 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 19693 schema +struct<> +-- !query 19693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19694 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 19694 schema +struct<> +-- !query 19694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19695 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 19695 schema +struct<> +-- !query 19695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19696 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 19696 schema +struct<> +-- !query 19696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19697 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 19697 schema +struct<> +-- !query 19697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19698 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 19698 schema +struct<> +-- !query 19698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19699 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 19699 schema +struct<> +-- !query 19699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19700 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 19700 schema +struct<> +-- !query 19700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19701 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 19701 schema +struct<> +-- !query 19701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19702 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 19702 schema +struct<> +-- !query 19702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19703 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19703 schema +struct<> +-- !query 19703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19704 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19704 schema +struct<> +-- !query 19704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19705 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 19705 schema +struct> +-- !query 19705 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19706 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 19706 schema +struct> +-- !query 19706 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19707 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 19707 schema +struct> +-- !query 19707 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19708 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 19708 schema +struct> +-- !query 19708 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19709 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 19709 schema +struct> +-- !query 19709 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19710 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 19710 schema +struct> +-- !query 19710 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19711 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 19711 schema +struct> +-- !query 19711 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 19712 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 19712 schema +struct> +-- !query 19712 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 19713 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 19713 schema +struct<> +-- !query 19713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 19714 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 19714 schema +struct<> +-- !query 19714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 19715 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19715 schema +struct<> +-- !query 19715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 19716 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19716 schema +struct<> +-- !query 19716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 19717 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 19717 schema +struct> +-- !query 19717 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19718 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 19718 schema +struct> +-- !query 19718 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19719 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 19719 schema +struct> +-- !query 19719 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19720 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 19720 schema +struct> +-- !query 19720 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19721 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 19721 schema +struct> +-- !query 19721 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19722 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 19722 schema +struct> +-- !query 19722 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19723 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 19723 schema +struct> +-- !query 19723 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 19724 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 19724 schema +struct> +-- !query 19724 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 19725 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 19725 schema +struct<> +-- !query 19725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 + + +-- !query 19726 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 19726 schema +struct<> +-- !query 19726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 + + +-- !query 19727 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19727 schema +struct<> +-- !query 19727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 + + +-- !query 19728 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19728 schema +struct<> +-- !query 19728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 + + +-- !query 19729 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 19729 schema +struct<> +-- !query 19729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19730 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 19730 schema +struct<> +-- !query 19730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19731 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 19731 schema +struct<> +-- !query 19731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19732 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 19732 schema +struct<> +-- !query 19732 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19733 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 19733 schema +struct<> +-- !query 19733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19734 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 19734 schema +struct<> +-- !query 19734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19735 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 19735 schema +struct<> +-- !query 19735 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19736 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 19736 schema +struct<> +-- !query 19736 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19737 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 19737 schema +struct<> +-- !query 19737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19738 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 19738 schema +struct<> +-- !query 19738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19739 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19739 schema +struct<> +-- !query 19739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19740 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19740 schema +struct<> +-- !query 19740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19741 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 19741 schema +struct<> +-- !query 19741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19742 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 19742 schema +struct<> +-- !query 19742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19743 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 19743 schema +struct<> +-- !query 19743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19744 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 19744 schema +struct<> +-- !query 19744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19745 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 19745 schema +struct<> +-- !query 19745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19746 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 19746 schema +struct<> +-- !query 19746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19747 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 19747 schema +struct<> +-- !query 19747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19748 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 19748 schema +struct<> +-- !query 19748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19749 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 19749 schema +struct<> +-- !query 19749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19750 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 19750 schema +struct<> +-- !query 19750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19751 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19751 schema +struct<> +-- !query 19751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19752 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19752 schema +struct<> +-- !query 19752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19753 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 19753 schema +struct<> +-- !query 19753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19754 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 19754 schema +struct<> +-- !query 19754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19755 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t +-- !query 19755 schema +struct<> +-- !query 19755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19756 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 19756 schema +struct<> +-- !query 19756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19757 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t +-- !query 19757 schema +struct<> +-- !query 19757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19758 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t +-- !query 19758 schema +struct<> +-- !query 19758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19759 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 19759 schema +struct<> +-- !query 19759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19760 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t +-- !query 19760 schema +struct<> +-- !query 19760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19761 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t +-- !query 19761 schema +struct<> +-- !query 19761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19762 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 19762 schema +struct<> +-- !query 19762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19763 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19763 schema +struct<> +-- !query 19763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19764 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19764 schema +struct<> +-- !query 19764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19765 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 19765 schema +struct<> +-- !query 19765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19766 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 19766 schema +struct<> +-- !query 19766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19767 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 19767 schema +struct<> +-- !query 19767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19768 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 19768 schema +struct<> +-- !query 19768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19769 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 19769 schema +struct<> +-- !query 19769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19770 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 19770 schema +struct<> +-- !query 19770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19771 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 19771 schema +struct<> +-- !query 19771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19772 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 19772 schema +struct<> +-- !query 19772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19773 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 19773 schema +struct<> +-- !query 19773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19774 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 19774 schema +struct<> +-- !query 19774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19775 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19775 schema +struct<> +-- !query 19775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19776 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19776 schema +struct<> +-- !query 19776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19777 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 19777 schema +struct<> +-- !query 19777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19778 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 19778 schema +struct<> +-- !query 19778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19779 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t +-- !query 19779 schema +struct<> +-- !query 19779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19780 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 19780 schema +struct<> +-- !query 19780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19781 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t +-- !query 19781 schema +struct<> +-- !query 19781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19782 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t +-- !query 19782 schema +struct<> +-- !query 19782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19783 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 19783 schema +struct<> +-- !query 19783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19784 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t +-- !query 19784 schema +struct<> +-- !query 19784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19785 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t +-- !query 19785 schema +struct<> +-- !query 19785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19786 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 19786 schema +struct<> +-- !query 19786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19787 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19787 schema +struct<> +-- !query 19787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19788 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19788 schema +struct<> +-- !query 19788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19789 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 19789 schema +struct<> +-- !query 19789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19790 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 19790 schema +struct<> +-- !query 19790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19791 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t +-- !query 19791 schema +struct<> +-- !query 19791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19792 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 19792 schema +struct<> +-- !query 19792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19793 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t +-- !query 19793 schema +struct<> +-- !query 19793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19794 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t +-- !query 19794 schema +struct<> +-- !query 19794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19795 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 19795 schema +struct<> +-- !query 19795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19796 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t +-- !query 19796 schema +struct<> +-- !query 19796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19797 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t +-- !query 19797 schema +struct<> +-- !query 19797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19798 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 19798 schema +struct<> +-- !query 19798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19799 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19799 schema +struct<> +-- !query 19799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19800 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19800 schema +struct<> +-- !query 19800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19801 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 19801 schema +struct<> +-- !query 19801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19802 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 19802 schema +struct<> +-- !query 19802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19803 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 19803 schema +struct<> +-- !query 19803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19804 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 19804 schema +struct<> +-- !query 19804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19805 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 19805 schema +struct<> +-- !query 19805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19806 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 19806 schema +struct<> +-- !query 19806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19807 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 19807 schema +struct<> +-- !query 19807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19808 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 19808 schema +struct<> +-- !query 19808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19809 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 19809 schema +struct<> +-- !query 19809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19810 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 19810 schema +struct<> +-- !query 19810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19811 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19811 schema +struct<> +-- !query 19811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19812 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19812 schema +struct<> +-- !query 19812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19813 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 19813 schema +struct> +-- !query 19813 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19814 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 19814 schema +struct> +-- !query 19814 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19815 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t +-- !query 19815 schema +struct> +-- !query 19815 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19816 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 19816 schema +struct> +-- !query 19816 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19817 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t +-- !query 19817 schema +struct> +-- !query 19817 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19818 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t +-- !query 19818 schema +struct> +-- !query 19818 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19819 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 19819 schema +struct> +-- !query 19819 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19820 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t +-- !query 19820 schema +struct> +-- !query 19820 output +{"2":"2","2017-12-11":"1.0"} + + +-- !query 19821 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t +-- !query 19821 schema +struct<> +-- !query 19821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 19822 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 19822 schema +struct<> +-- !query 19822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 19823 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19823 schema +struct<> +-- !query 19823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 19824 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19824 schema +struct<> +-- !query 19824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 19825 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 19825 schema +struct<> +-- !query 19825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19826 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 19826 schema +struct<> +-- !query 19826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19827 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t +-- !query 19827 schema +struct<> +-- !query 19827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19828 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 19828 schema +struct<> +-- !query 19828 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19829 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t +-- !query 19829 schema +struct<> +-- !query 19829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19830 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t +-- !query 19830 schema +struct<> +-- !query 19830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19831 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 19831 schema +struct<> +-- !query 19831 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19832 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t +-- !query 19832 schema +struct<> +-- !query 19832 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19833 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 19833 schema +struct<> +-- !query 19833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19834 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 19834 schema +struct<> +-- !query 19834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19835 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19835 schema +struct<> +-- !query 19835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19836 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19836 schema +struct<> +-- !query 19836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19837 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 19837 schema +struct<> +-- !query 19837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19838 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 19838 schema +struct<> +-- !query 19838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19839 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 19839 schema +struct<> +-- !query 19839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19840 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 19840 schema +struct<> +-- !query 19840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19841 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 19841 schema +struct<> +-- !query 19841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19842 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 19842 schema +struct<> +-- !query 19842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19843 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 19843 schema +struct<> +-- !query 19843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19844 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 19844 schema +struct<> +-- !query 19844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19845 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 19845 schema +struct<> +-- !query 19845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19846 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 19846 schema +struct<> +-- !query 19846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19847 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19847 schema +struct<> +-- !query 19847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19848 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19848 schema +struct<> +-- !query 19848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19849 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 19849 schema +struct> +-- !query 19849 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19850 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 19850 schema +struct> +-- !query 19850 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19851 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 19851 schema +struct> +-- !query 19851 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19852 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 19852 schema +struct> +-- !query 19852 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19853 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 19853 schema +struct> +-- !query 19853 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19854 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 19854 schema +struct> +-- !query 19854 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19855 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 19855 schema +struct> +-- !query 19855 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19856 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 19856 schema +struct> +-- !query 19856 output +{2017-12-11 00:00:00.0:"1.0",2017-12-12 09:30:00.0:"2"} + + +-- !query 19857 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 19857 schema +struct<> +-- !query 19857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 19858 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 19858 schema +struct<> +-- !query 19858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 19859 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19859 schema +struct<> +-- !query 19859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 19860 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19860 schema +struct<> +-- !query 19860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 19861 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 19861 schema +struct> +-- !query 19861 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19862 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 19862 schema +struct> +-- !query 19862 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19863 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 19863 schema +struct> +-- !query 19863 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19864 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 19864 schema +struct> +-- !query 19864 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19865 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 19865 schema +struct> +-- !query 19865 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19866 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 19866 schema +struct> +-- !query 19866 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19867 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 19867 schema +struct> +-- !query 19867 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 19868 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 19868 schema +struct> +-- !query 19868 output +{2017-12-11:"1.0",2017-12-12:"2"} + + +-- !query 19869 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 19869 schema +struct<> +-- !query 19869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 + + +-- !query 19870 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 19870 schema +struct<> +-- !query 19870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 + + +-- !query 19871 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19871 schema +struct<> +-- !query 19871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 + + +-- !query 19872 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19872 schema +struct<> +-- !query 19872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 + + +-- !query 19873 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 19873 schema +struct<> +-- !query 19873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19874 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 19874 schema +struct<> +-- !query 19874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19875 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 19875 schema +struct<> +-- !query 19875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19876 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 19876 schema +struct<> +-- !query 19876 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19877 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 19877 schema +struct<> +-- !query 19877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19878 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 19878 schema +struct<> +-- !query 19878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19879 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 19879 schema +struct<> +-- !query 19879 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19880 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 19880 schema +struct<> +-- !query 19880 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19881 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 19881 schema +struct<> +-- !query 19881 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19882 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 19882 schema +struct<> +-- !query 19882 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19883 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19883 schema +struct<> +-- !query 19883 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19884 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19884 schema +struct<> +-- !query 19884 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 19885 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 19885 schema +struct<> +-- !query 19885 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19886 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 19886 schema +struct<> +-- !query 19886 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19887 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 19887 schema +struct<> +-- !query 19887 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19888 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 19888 schema +struct<> +-- !query 19888 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19889 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 19889 schema +struct<> +-- !query 19889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19890 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 19890 schema +struct<> +-- !query 19890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19891 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 19891 schema +struct<> +-- !query 19891 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19892 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 19892 schema +struct<> +-- !query 19892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19893 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 19893 schema +struct<> +-- !query 19893 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19894 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 19894 schema +struct<> +-- !query 19894 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19895 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19895 schema +struct<> +-- !query 19895 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19896 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19896 schema +struct<> +-- !query 19896 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 19897 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 19897 schema +struct<> +-- !query 19897 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19898 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 19898 schema +struct<> +-- !query 19898 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19899 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t +-- !query 19899 schema +struct<> +-- !query 19899 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19900 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 19900 schema +struct<> +-- !query 19900 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19901 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t +-- !query 19901 schema +struct<> +-- !query 19901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19902 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t +-- !query 19902 schema +struct<> +-- !query 19902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19903 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 19903 schema +struct<> +-- !query 19903 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19904 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t +-- !query 19904 schema +struct<> +-- !query 19904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19905 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t +-- !query 19905 schema +struct<> +-- !query 19905 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19906 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 19906 schema +struct<> +-- !query 19906 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19907 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19907 schema +struct<> +-- !query 19907 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19908 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19908 schema +struct<> +-- !query 19908 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 19909 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 19909 schema +struct<> +-- !query 19909 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19910 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 19910 schema +struct<> +-- !query 19910 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19911 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 19911 schema +struct<> +-- !query 19911 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19912 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 19912 schema +struct<> +-- !query 19912 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19913 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 19913 schema +struct<> +-- !query 19913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19914 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 19914 schema +struct<> +-- !query 19914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19915 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 19915 schema +struct<> +-- !query 19915 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19916 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 19916 schema +struct<> +-- !query 19916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19917 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 19917 schema +struct<> +-- !query 19917 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19918 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 19918 schema +struct<> +-- !query 19918 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19919 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19919 schema +struct<> +-- !query 19919 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19920 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19920 schema +struct<> +-- !query 19920 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 19921 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 19921 schema +struct<> +-- !query 19921 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19922 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 19922 schema +struct<> +-- !query 19922 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19923 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t +-- !query 19923 schema +struct<> +-- !query 19923 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19924 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 19924 schema +struct<> +-- !query 19924 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19925 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t +-- !query 19925 schema +struct<> +-- !query 19925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19926 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t +-- !query 19926 schema +struct<> +-- !query 19926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19927 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 19927 schema +struct<> +-- !query 19927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19928 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t +-- !query 19928 schema +struct<> +-- !query 19928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19929 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t +-- !query 19929 schema +struct<> +-- !query 19929 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19930 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 19930 schema +struct<> +-- !query 19930 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19931 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19931 schema +struct<> +-- !query 19931 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19932 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19932 schema +struct<> +-- !query 19932 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 19933 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 19933 schema +struct<> +-- !query 19933 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19934 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 19934 schema +struct<> +-- !query 19934 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19935 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t +-- !query 19935 schema +struct<> +-- !query 19935 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19936 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 19936 schema +struct<> +-- !query 19936 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19937 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t +-- !query 19937 schema +struct<> +-- !query 19937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19938 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t +-- !query 19938 schema +struct<> +-- !query 19938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19939 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 19939 schema +struct<> +-- !query 19939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19940 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t +-- !query 19940 schema +struct<> +-- !query 19940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19941 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t +-- !query 19941 schema +struct<> +-- !query 19941 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19942 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 19942 schema +struct<> +-- !query 19942 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19943 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19943 schema +struct<> +-- !query 19943 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19944 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19944 schema +struct<> +-- !query 19944 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 19945 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 19945 schema +struct<> +-- !query 19945 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19946 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 19946 schema +struct<> +-- !query 19946 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19947 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 19947 schema +struct<> +-- !query 19947 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19948 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 19948 schema +struct<> +-- !query 19948 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19949 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 19949 schema +struct<> +-- !query 19949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19950 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 19950 schema +struct<> +-- !query 19950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19951 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 19951 schema +struct<> +-- !query 19951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19952 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 19952 schema +struct<> +-- !query 19952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19953 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 19953 schema +struct<> +-- !query 19953 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19954 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 19954 schema +struct<> +-- !query 19954 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19955 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19955 schema +struct<> +-- !query 19955 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19956 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19956 schema +struct<> +-- !query 19956 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 19957 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 19957 schema +struct> +-- !query 19957 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19958 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 19958 schema +struct> +-- !query 19958 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19959 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t +-- !query 19959 schema +struct> +-- !query 19959 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19960 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 19960 schema +struct> +-- !query 19960 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19961 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t +-- !query 19961 schema +struct> +-- !query 19961 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19962 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t +-- !query 19962 schema +struct> +-- !query 19962 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19963 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 19963 schema +struct> +-- !query 19963 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 19964 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t +-- !query 19964 schema +struct> +-- !query 19964 output +{"2":"2","2017-12-11":"1.0"} + + +-- !query 19965 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t +-- !query 19965 schema +struct<> +-- !query 19965 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 19966 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 19966 schema +struct<> +-- !query 19966 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 19967 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19967 schema +struct<> +-- !query 19967 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 19968 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19968 schema +struct<> +-- !query 19968 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 19969 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 19969 schema +struct<> +-- !query 19969 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19970 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 19970 schema +struct<> +-- !query 19970 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19971 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t +-- !query 19971 schema +struct<> +-- !query 19971 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19972 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 19972 schema +struct<> +-- !query 19972 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19973 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t +-- !query 19973 schema +struct<> +-- !query 19973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19974 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t +-- !query 19974 schema +struct<> +-- !query 19974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19975 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 19975 schema +struct<> +-- !query 19975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19976 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t +-- !query 19976 schema +struct<> +-- !query 19976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19977 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 19977 schema +struct<> +-- !query 19977 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19978 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 19978 schema +struct<> +-- !query 19978 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19979 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19979 schema +struct<> +-- !query 19979 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19980 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19980 schema +struct<> +-- !query 19980 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 19981 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 19981 schema +struct<> +-- !query 19981 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19982 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 19982 schema +struct<> +-- !query 19982 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19983 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 19983 schema +struct<> +-- !query 19983 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19984 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 19984 schema +struct<> +-- !query 19984 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19985 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 19985 schema +struct<> +-- !query 19985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19986 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 19986 schema +struct<> +-- !query 19986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19987 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 19987 schema +struct<> +-- !query 19987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19988 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 19988 schema +struct<> +-- !query 19988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19989 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 19989 schema +struct<> +-- !query 19989 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19990 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 19990 schema +struct<> +-- !query 19990 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19991 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 19991 schema +struct<> +-- !query 19991 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19992 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 19992 schema +struct<> +-- !query 19992 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 19993 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 19993 schema +struct> +-- !query 19993 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19994 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 19994 schema +struct> +-- !query 19994 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19995 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 19995 schema +struct> +-- !query 19995 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19996 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 19996 schema +struct> +-- !query 19996 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19997 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 19997 schema +struct> +-- !query 19997 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19998 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 19998 schema +struct> +-- !query 19998 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 19999 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 19999 schema +struct> +-- !query 19999 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 20000 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 20000 schema +struct> +-- !query 20000 output +{2017-12-11 00:00:00.0:"1.0",2017-12-12 09:30:00.0:"2"} + + +-- !query 20001 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 20001 schema +struct<> +-- !query 20001 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 20002 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 20002 schema +struct<> +-- !query 20002 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 20003 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20003 schema +struct<> +-- !query 20003 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 20004 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20004 schema +struct<> +-- !query 20004 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 20005 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 20005 schema +struct> +-- !query 20005 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20006 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 20006 schema +struct> +-- !query 20006 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20007 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 20007 schema +struct> +-- !query 20007 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20008 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 20008 schema +struct> +-- !query 20008 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20009 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 20009 schema +struct> +-- !query 20009 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20010 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 20010 schema +struct> +-- !query 20010 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20011 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 20011 schema +struct> +-- !query 20011 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20012 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 20012 schema +struct> +-- !query 20012 output +{2017-12-11:"1.0",2017-12-12:"2"} + + +-- !query 20013 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 20013 schema +struct<> +-- !query 20013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 + + +-- !query 20014 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 20014 schema +struct<> +-- !query 20014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 + + +-- !query 20015 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20015 schema +struct<> +-- !query 20015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 + + +-- !query 20016 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20016 schema +struct<> +-- !query 20016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 + + +-- !query 20017 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 20017 schema +struct<> +-- !query 20017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20018 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 20018 schema +struct<> +-- !query 20018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20019 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 20019 schema +struct<> +-- !query 20019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20020 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 20020 schema +struct<> +-- !query 20020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20021 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 20021 schema +struct<> +-- !query 20021 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20022 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 20022 schema +struct<> +-- !query 20022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20023 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 20023 schema +struct<> +-- !query 20023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20024 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 20024 schema +struct<> +-- !query 20024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20025 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 20025 schema +struct<> +-- !query 20025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20026 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 20026 schema +struct<> +-- !query 20026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20027 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20027 schema +struct<> +-- !query 20027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20028 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20028 schema +struct<> +-- !query 20028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20029 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 20029 schema +struct<> +-- !query 20029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20030 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 20030 schema +struct<> +-- !query 20030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20031 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 20031 schema +struct<> +-- !query 20031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20032 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 20032 schema +struct<> +-- !query 20032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20033 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 20033 schema +struct<> +-- !query 20033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20034 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 20034 schema +struct<> +-- !query 20034 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20035 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 20035 schema +struct<> +-- !query 20035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20036 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 20036 schema +struct<> +-- !query 20036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20037 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 20037 schema +struct<> +-- !query 20037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20038 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 20038 schema +struct<> +-- !query 20038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20039 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20039 schema +struct<> +-- !query 20039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20040 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20040 schema +struct<> +-- !query 20040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20041 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 20041 schema +struct<> +-- !query 20041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20042 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 20042 schema +struct<> +-- !query 20042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20043 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t +-- !query 20043 schema +struct<> +-- !query 20043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20044 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 20044 schema +struct<> +-- !query 20044 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20045 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t +-- !query 20045 schema +struct<> +-- !query 20045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20046 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t +-- !query 20046 schema +struct<> +-- !query 20046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20047 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 20047 schema +struct<> +-- !query 20047 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20048 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t +-- !query 20048 schema +struct<> +-- !query 20048 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20049 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t +-- !query 20049 schema +struct<> +-- !query 20049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20050 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 20050 schema +struct<> +-- !query 20050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20051 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20051 schema +struct<> +-- !query 20051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20052 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20052 schema +struct<> +-- !query 20052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20053 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 20053 schema +struct<> +-- !query 20053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20054 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 20054 schema +struct<> +-- !query 20054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20055 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 20055 schema +struct<> +-- !query 20055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20056 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 20056 schema +struct<> +-- !query 20056 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20057 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 20057 schema +struct<> +-- !query 20057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20058 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 20058 schema +struct<> +-- !query 20058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20059 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 20059 schema +struct<> +-- !query 20059 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20060 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 20060 schema +struct<> +-- !query 20060 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20061 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 20061 schema +struct<> +-- !query 20061 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20062 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 20062 schema +struct<> +-- !query 20062 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20063 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20063 schema +struct<> +-- !query 20063 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20064 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20064 schema +struct<> +-- !query 20064 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20065 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 20065 schema +struct<> +-- !query 20065 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20066 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 20066 schema +struct<> +-- !query 20066 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20067 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t +-- !query 20067 schema +struct<> +-- !query 20067 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20068 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 20068 schema +struct<> +-- !query 20068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20069 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t +-- !query 20069 schema +struct<> +-- !query 20069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20070 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t +-- !query 20070 schema +struct<> +-- !query 20070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20071 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 20071 schema +struct<> +-- !query 20071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20072 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t +-- !query 20072 schema +struct<> +-- !query 20072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20073 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t +-- !query 20073 schema +struct<> +-- !query 20073 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20074 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 20074 schema +struct<> +-- !query 20074 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20075 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20075 schema +struct<> +-- !query 20075 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20076 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20076 schema +struct<> +-- !query 20076 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20077 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 20077 schema +struct<> +-- !query 20077 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20078 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 20078 schema +struct<> +-- !query 20078 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20079 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t +-- !query 20079 schema +struct<> +-- !query 20079 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20080 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 20080 schema +struct<> +-- !query 20080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20081 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t +-- !query 20081 schema +struct<> +-- !query 20081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20082 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t +-- !query 20082 schema +struct<> +-- !query 20082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20083 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 20083 schema +struct<> +-- !query 20083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20084 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t +-- !query 20084 schema +struct<> +-- !query 20084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20085 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t +-- !query 20085 schema +struct<> +-- !query 20085 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20086 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 20086 schema +struct<> +-- !query 20086 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20087 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20087 schema +struct<> +-- !query 20087 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20088 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20088 schema +struct<> +-- !query 20088 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20089 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 20089 schema +struct<> +-- !query 20089 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20090 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 20090 schema +struct<> +-- !query 20090 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20091 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 20091 schema +struct<> +-- !query 20091 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20092 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 20092 schema +struct<> +-- !query 20092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20093 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 20093 schema +struct<> +-- !query 20093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20094 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 20094 schema +struct<> +-- !query 20094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20095 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 20095 schema +struct<> +-- !query 20095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20096 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 20096 schema +struct<> +-- !query 20096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20097 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 20097 schema +struct<> +-- !query 20097 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20098 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 20098 schema +struct<> +-- !query 20098 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20099 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20099 schema +struct<> +-- !query 20099 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20100 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20100 schema +struct<> +-- !query 20100 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20101 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 20101 schema +struct> +-- !query 20101 output +{"2":2,"2017-12-11":1} + + +-- !query 20102 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 20102 schema +struct> +-- !query 20102 output +{"2":2,"2017-12-11":1} + + +-- !query 20103 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t +-- !query 20103 schema +struct> +-- !query 20103 output +{"2":2,"2017-12-11":1} + + +-- !query 20104 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 20104 schema +struct> +-- !query 20104 output +{"2":2,"2017-12-11":1} + + +-- !query 20105 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t +-- !query 20105 schema +struct> +-- !query 20105 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 20106 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t +-- !query 20106 schema +struct> +-- !query 20106 output +{"2":2.0,"2017-12-11":1.0} + + +-- !query 20107 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 20107 schema +struct> +-- !query 20107 output +{"2":2,"2017-12-11":1} + + +-- !query 20108 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t +-- !query 20108 schema +struct> +-- !query 20108 output +{"2":"2","2017-12-11":"1"} + + +-- !query 20109 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t +-- !query 20109 schema +struct<> +-- !query 20109 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 20110 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 20110 schema +struct<> +-- !query 20110 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 20111 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20111 schema +struct<> +-- !query 20111 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 20112 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20112 schema +struct<> +-- !query 20112 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 20113 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 20113 schema +struct<> +-- !query 20113 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20114 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 20114 schema +struct<> +-- !query 20114 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20115 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t +-- !query 20115 schema +struct<> +-- !query 20115 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20116 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 20116 schema +struct<> +-- !query 20116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20117 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t +-- !query 20117 schema +struct<> +-- !query 20117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20118 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t +-- !query 20118 schema +struct<> +-- !query 20118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20119 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 20119 schema +struct<> +-- !query 20119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20120 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t +-- !query 20120 schema +struct<> +-- !query 20120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20121 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 20121 schema +struct<> +-- !query 20121 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20122 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 20122 schema +struct<> +-- !query 20122 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20123 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20123 schema +struct<> +-- !query 20123 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20124 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20124 schema +struct<> +-- !query 20124 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20125 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 20125 schema +struct<> +-- !query 20125 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20126 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 20126 schema +struct<> +-- !query 20126 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20127 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 20127 schema +struct<> +-- !query 20127 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20128 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 20128 schema +struct<> +-- !query 20128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20129 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 20129 schema +struct<> +-- !query 20129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20130 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 20130 schema +struct<> +-- !query 20130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20131 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 20131 schema +struct<> +-- !query 20131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20132 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 20132 schema +struct<> +-- !query 20132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20133 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 20133 schema +struct<> +-- !query 20133 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20134 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 20134 schema +struct<> +-- !query 20134 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20135 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20135 schema +struct<> +-- !query 20135 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20136 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20136 schema +struct<> +-- !query 20136 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20137 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 20137 schema +struct> +-- !query 20137 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 20138 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 20138 schema +struct> +-- !query 20138 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 20139 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 20139 schema +struct> +-- !query 20139 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 20140 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 20140 schema +struct> +-- !query 20140 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 20141 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 20141 schema +struct> +-- !query 20141 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 20142 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 20142 schema +struct> +-- !query 20142 output +{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} + + +-- !query 20143 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 20143 schema +struct> +-- !query 20143 output +{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} + + +-- !query 20144 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 20144 schema +struct> +-- !query 20144 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 20145 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 20145 schema +struct<> +-- !query 20145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 20146 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 20146 schema +struct<> +-- !query 20146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 20147 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20147 schema +struct<> +-- !query 20147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 20148 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20148 schema +struct<> +-- !query 20148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 20149 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 20149 schema +struct> +-- !query 20149 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 20150 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 20150 schema +struct> +-- !query 20150 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 20151 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 20151 schema +struct> +-- !query 20151 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 20152 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 20152 schema +struct> +-- !query 20152 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 20153 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 20153 schema +struct> +-- !query 20153 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20154 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 20154 schema +struct> +-- !query 20154 output +{2017-12-11:1.0,2017-12-12:2.0} + + +-- !query 20155 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 20155 schema +struct> +-- !query 20155 output +{2017-12-11:1,2017-12-12:2} + + +-- !query 20156 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 20156 schema +struct> +-- !query 20156 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 20157 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 20157 schema +struct<> +-- !query 20157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 20158 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 20158 schema +struct<> +-- !query 20158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 20159 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20159 schema +struct<> +-- !query 20159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 20160 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20160 schema +struct<> +-- !query 20160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 + + +-- !query 20161 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 20161 schema +struct<> +-- !query 20161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20162 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 20162 schema +struct<> +-- !query 20162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20163 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 20163 schema +struct<> +-- !query 20163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20164 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 20164 schema +struct<> +-- !query 20164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20165 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 20165 schema +struct<> +-- !query 20165 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20166 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 20166 schema +struct<> +-- !query 20166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20167 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 20167 schema +struct<> +-- !query 20167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20168 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 20168 schema +struct<> +-- !query 20168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20169 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 20169 schema +struct<> +-- !query 20169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20170 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 20170 schema +struct<> +-- !query 20170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20171 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20171 schema +struct<> +-- !query 20171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20172 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20172 schema +struct<> +-- !query 20172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20173 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 20173 schema +struct<> +-- !query 20173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20174 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 20174 schema +struct<> +-- !query 20174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20175 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 20175 schema +struct<> +-- !query 20175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20176 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 20176 schema +struct<> +-- !query 20176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20177 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 20177 schema +struct<> +-- !query 20177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20178 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 20178 schema +struct<> +-- !query 20178 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20179 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 20179 schema +struct<> +-- !query 20179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20180 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 20180 schema +struct<> +-- !query 20180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20181 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 20181 schema +struct<> +-- !query 20181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20182 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 20182 schema +struct<> +-- !query 20182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20183 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20183 schema +struct<> +-- !query 20183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20184 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20184 schema +struct<> +-- !query 20184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20185 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 20185 schema +struct<> +-- !query 20185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20186 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 20186 schema +struct<> +-- !query 20186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20187 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t +-- !query 20187 schema +struct<> +-- !query 20187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20188 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 20188 schema +struct<> +-- !query 20188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20189 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t +-- !query 20189 schema +struct<> +-- !query 20189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20190 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t +-- !query 20190 schema +struct<> +-- !query 20190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20191 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 20191 schema +struct<> +-- !query 20191 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20192 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t +-- !query 20192 schema +struct<> +-- !query 20192 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20193 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t +-- !query 20193 schema +struct<> +-- !query 20193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20194 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 20194 schema +struct<> +-- !query 20194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20195 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20195 schema +struct<> +-- !query 20195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20196 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20196 schema +struct<> +-- !query 20196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20197 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 20197 schema +struct<> +-- !query 20197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20198 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 20198 schema +struct<> +-- !query 20198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20199 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 20199 schema +struct<> +-- !query 20199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20200 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 20200 schema +struct<> +-- !query 20200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20201 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 20201 schema +struct<> +-- !query 20201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20202 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 20202 schema +struct<> +-- !query 20202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20203 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 20203 schema +struct<> +-- !query 20203 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20204 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 20204 schema +struct<> +-- !query 20204 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20205 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 20205 schema +struct<> +-- !query 20205 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20206 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 20206 schema +struct<> +-- !query 20206 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20207 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20207 schema +struct<> +-- !query 20207 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20208 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20208 schema +struct<> +-- !query 20208 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20209 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 20209 schema +struct<> +-- !query 20209 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20210 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 20210 schema +struct<> +-- !query 20210 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20211 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t +-- !query 20211 schema +struct<> +-- !query 20211 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20212 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 20212 schema +struct<> +-- !query 20212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20213 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t +-- !query 20213 schema +struct<> +-- !query 20213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20214 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t +-- !query 20214 schema +struct<> +-- !query 20214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20215 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 20215 schema +struct<> +-- !query 20215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20216 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t +-- !query 20216 schema +struct<> +-- !query 20216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20217 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t +-- !query 20217 schema +struct<> +-- !query 20217 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20218 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 20218 schema +struct<> +-- !query 20218 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20219 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20219 schema +struct<> +-- !query 20219 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20220 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20220 schema +struct<> +-- !query 20220 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20221 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 20221 schema +struct<> +-- !query 20221 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20222 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 20222 schema +struct<> +-- !query 20222 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20223 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t +-- !query 20223 schema +struct<> +-- !query 20223 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20224 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 20224 schema +struct<> +-- !query 20224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20225 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t +-- !query 20225 schema +struct<> +-- !query 20225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20226 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t +-- !query 20226 schema +struct<> +-- !query 20226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20227 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 20227 schema +struct<> +-- !query 20227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20228 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t +-- !query 20228 schema +struct<> +-- !query 20228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20229 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t +-- !query 20229 schema +struct<> +-- !query 20229 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20230 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 20230 schema +struct<> +-- !query 20230 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20231 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20231 schema +struct<> +-- !query 20231 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20232 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20232 schema +struct<> +-- !query 20232 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20233 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 20233 schema +struct<> +-- !query 20233 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20234 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 20234 schema +struct<> +-- !query 20234 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20235 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 20235 schema +struct<> +-- !query 20235 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20236 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 20236 schema +struct<> +-- !query 20236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20237 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 20237 schema +struct<> +-- !query 20237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20238 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 20238 schema +struct<> +-- !query 20238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20239 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 20239 schema +struct<> +-- !query 20239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20240 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 20240 schema +struct<> +-- !query 20240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20241 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 20241 schema +struct<> +-- !query 20241 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20242 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 20242 schema +struct<> +-- !query 20242 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20243 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20243 schema +struct<> +-- !query 20243 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20244 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20244 schema +struct<> +-- !query 20244 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20245 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 20245 schema +struct> +-- !query 20245 output +{"2":"2","2017-12-11":"1"} + + +-- !query 20246 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 20246 schema +struct> +-- !query 20246 output +{"2":"2","2017-12-11":"1"} + + +-- !query 20247 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t +-- !query 20247 schema +struct> +-- !query 20247 output +{"2":"2","2017-12-11":"1"} + + +-- !query 20248 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 20248 schema +struct> +-- !query 20248 output +{"2":"2","2017-12-11":"1"} + + +-- !query 20249 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t +-- !query 20249 schema +struct> +-- !query 20249 output +{"2":"2.0","2017-12-11":"1"} + + +-- !query 20250 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t +-- !query 20250 schema +struct> +-- !query 20250 output +{"2":"2.0","2017-12-11":"1"} + + +-- !query 20251 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 20251 schema +struct> +-- !query 20251 output +{"2":"2","2017-12-11":"1"} + + +-- !query 20252 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t +-- !query 20252 schema +struct> +-- !query 20252 output +{"2":"2","2017-12-11":"1"} + + +-- !query 20253 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t +-- !query 20253 schema +struct<> +-- !query 20253 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 20254 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 20254 schema +struct<> +-- !query 20254 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 20255 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20255 schema +struct> +-- !query 20255 output +{"2":"2017-12-12 09:30:00","2017-12-11":"1"} + + +-- !query 20256 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20256 schema +struct> +-- !query 20256 output +{"2":"2017-12-12","2017-12-11":"1"} + + +-- !query 20257 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 20257 schema +struct<> +-- !query 20257 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20258 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 20258 schema +struct<> +-- !query 20258 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20259 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t +-- !query 20259 schema +struct<> +-- !query 20259 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20260 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 20260 schema +struct<> +-- !query 20260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20261 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t +-- !query 20261 schema +struct<> +-- !query 20261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20262 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t +-- !query 20262 schema +struct<> +-- !query 20262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20263 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 20263 schema +struct<> +-- !query 20263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20264 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t +-- !query 20264 schema +struct<> +-- !query 20264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20265 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 20265 schema +struct<> +-- !query 20265 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20266 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 20266 schema +struct<> +-- !query 20266 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20267 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20267 schema +struct<> +-- !query 20267 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20268 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20268 schema +struct<> +-- !query 20268 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20269 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 20269 schema +struct<> +-- !query 20269 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20270 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 20270 schema +struct<> +-- !query 20270 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20271 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 20271 schema +struct<> +-- !query 20271 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20272 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 20272 schema +struct<> +-- !query 20272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20273 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 20273 schema +struct<> +-- !query 20273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20274 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 20274 schema +struct<> +-- !query 20274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20275 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 20275 schema +struct<> +-- !query 20275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20276 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 20276 schema +struct<> +-- !query 20276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20277 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 20277 schema +struct<> +-- !query 20277 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20278 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 20278 schema +struct<> +-- !query 20278 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20279 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20279 schema +struct<> +-- !query 20279 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20280 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20280 schema +struct<> +-- !query 20280 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20281 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 20281 schema +struct> +-- !query 20281 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 20282 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 20282 schema +struct> +-- !query 20282 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 20283 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 20283 schema +struct> +-- !query 20283 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 20284 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 20284 schema +struct> +-- !query 20284 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 20285 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 20285 schema +struct> +-- !query 20285 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2.0"} + + +-- !query 20286 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 20286 schema +struct> +-- !query 20286 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2.0"} + + +-- !query 20287 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 20287 schema +struct> +-- !query 20287 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 20288 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 20288 schema +struct> +-- !query 20288 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} + + +-- !query 20289 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 20289 schema +struct<> +-- !query 20289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 20290 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 20290 schema +struct<> +-- !query 20290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 20291 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20291 schema +struct> +-- !query 20291 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12 09:30:00"} + + +-- !query 20292 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20292 schema +struct> +-- !query 20292 output +{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12"} + + +-- !query 20293 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 20293 schema +struct> +-- !query 20293 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 20294 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 20294 schema +struct> +-- !query 20294 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 20295 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 20295 schema +struct> +-- !query 20295 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 20296 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 20296 schema +struct> +-- !query 20296 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 20297 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 20297 schema +struct> +-- !query 20297 output +{2017-12-11:"1",2017-12-12:"2.0"} + + +-- !query 20298 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 20298 schema +struct> +-- !query 20298 output +{2017-12-11:"1",2017-12-12:"2.0"} + + +-- !query 20299 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 20299 schema +struct> +-- !query 20299 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 20300 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 20300 schema +struct> +-- !query 20300 output +{2017-12-11:"1",2017-12-12:"2"} + + +-- !query 20301 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 20301 schema +struct<> +-- !query 20301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 + + +-- !query 20302 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 20302 schema +struct<> +-- !query 20302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 + + +-- !query 20303 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20303 schema +struct> +-- !query 20303 output +{2017-12-11:"1",2017-12-12:"2017-12-12 09:30:00"} + + +-- !query 20304 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20304 schema +struct> +-- !query 20304 output +{2017-12-11:"1",2017-12-12:"2017-12-12"} + + +-- !query 20305 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 20305 schema +struct<> +-- !query 20305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20306 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 20306 schema +struct<> +-- !query 20306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20307 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 20307 schema +struct<> +-- !query 20307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20308 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 20308 schema +struct<> +-- !query 20308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20309 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 20309 schema +struct<> +-- !query 20309 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20310 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 20310 schema +struct<> +-- !query 20310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20311 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 20311 schema +struct<> +-- !query 20311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20312 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 20312 schema +struct<> +-- !query 20312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20313 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 20313 schema +struct<> +-- !query 20313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20314 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 20314 schema +struct<> +-- !query 20314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20315 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20315 schema +struct<> +-- !query 20315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20316 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20316 schema +struct<> +-- !query 20316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20317 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 20317 schema +struct<> +-- !query 20317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20318 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 20318 schema +struct<> +-- !query 20318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20319 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 20319 schema +struct<> +-- !query 20319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20320 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 20320 schema +struct<> +-- !query 20320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20321 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 20321 schema +struct<> +-- !query 20321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20322 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 20322 schema +struct<> +-- !query 20322 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20323 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 20323 schema +struct<> +-- !query 20323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20324 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 20324 schema +struct<> +-- !query 20324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20325 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 20325 schema +struct<> +-- !query 20325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20326 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 20326 schema +struct<> +-- !query 20326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20327 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20327 schema +struct<> +-- !query 20327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20328 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20328 schema +struct<> +-- !query 20328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20329 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 20329 schema +struct<> +-- !query 20329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20330 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 20330 schema +struct<> +-- !query 20330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20331 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t +-- !query 20331 schema +struct<> +-- !query 20331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20332 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 20332 schema +struct<> +-- !query 20332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20333 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t +-- !query 20333 schema +struct<> +-- !query 20333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20334 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t +-- !query 20334 schema +struct<> +-- !query 20334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20335 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 20335 schema +struct<> +-- !query 20335 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20336 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t +-- !query 20336 schema +struct<> +-- !query 20336 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20337 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t +-- !query 20337 schema +struct<> +-- !query 20337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20338 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 20338 schema +struct<> +-- !query 20338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20339 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20339 schema +struct<> +-- !query 20339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20340 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20340 schema +struct<> +-- !query 20340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20341 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 20341 schema +struct<> +-- !query 20341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20342 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 20342 schema +struct<> +-- !query 20342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20343 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 20343 schema +struct<> +-- !query 20343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20344 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 20344 schema +struct<> +-- !query 20344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20345 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 20345 schema +struct<> +-- !query 20345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20346 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 20346 schema +struct<> +-- !query 20346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20347 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 20347 schema +struct<> +-- !query 20347 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20348 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 20348 schema +struct<> +-- !query 20348 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20349 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 20349 schema +struct<> +-- !query 20349 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20350 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 20350 schema +struct<> +-- !query 20350 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20351 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20351 schema +struct<> +-- !query 20351 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20352 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20352 schema +struct<> +-- !query 20352 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20353 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 20353 schema +struct<> +-- !query 20353 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20354 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 20354 schema +struct<> +-- !query 20354 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20355 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t +-- !query 20355 schema +struct<> +-- !query 20355 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20356 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 20356 schema +struct<> +-- !query 20356 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20357 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t +-- !query 20357 schema +struct<> +-- !query 20357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20358 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t +-- !query 20358 schema +struct<> +-- !query 20358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20359 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 20359 schema +struct<> +-- !query 20359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20360 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t +-- !query 20360 schema +struct<> +-- !query 20360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20361 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t +-- !query 20361 schema +struct<> +-- !query 20361 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20362 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 20362 schema +struct<> +-- !query 20362 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20363 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20363 schema +struct<> +-- !query 20363 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20364 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20364 schema +struct<> +-- !query 20364 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20365 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 20365 schema +struct<> +-- !query 20365 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20366 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 20366 schema +struct<> +-- !query 20366 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20367 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t +-- !query 20367 schema +struct<> +-- !query 20367 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20368 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 20368 schema +struct<> +-- !query 20368 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20369 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t +-- !query 20369 schema +struct<> +-- !query 20369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20370 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t +-- !query 20370 schema +struct<> +-- !query 20370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20371 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 20371 schema +struct<> +-- !query 20371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20372 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t +-- !query 20372 schema +struct<> +-- !query 20372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20373 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t +-- !query 20373 schema +struct<> +-- !query 20373 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20374 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 20374 schema +struct<> +-- !query 20374 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20375 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20375 schema +struct<> +-- !query 20375 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20376 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20376 schema +struct<> +-- !query 20376 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20377 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 20377 schema +struct<> +-- !query 20377 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20378 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 20378 schema +struct<> +-- !query 20378 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20379 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 20379 schema +struct<> +-- !query 20379 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20380 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 20380 schema +struct<> +-- !query 20380 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20381 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 20381 schema +struct<> +-- !query 20381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20382 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 20382 schema +struct<> +-- !query 20382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20383 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 20383 schema +struct<> +-- !query 20383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20384 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 20384 schema +struct<> +-- !query 20384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20385 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 20385 schema +struct<> +-- !query 20385 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20386 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 20386 schema +struct<> +-- !query 20386 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20387 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20387 schema +struct<> +-- !query 20387 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20388 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20388 schema +struct<> +-- !query 20388 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20389 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 20389 schema +struct<> +-- !query 20389 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 20390 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 20390 schema +struct<> +-- !query 20390 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 20391 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t +-- !query 20391 schema +struct<> +-- !query 20391 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 20392 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 20392 schema +struct<> +-- !query 20392 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 20393 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t +-- !query 20393 schema +struct<> +-- !query 20393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 20394 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t +-- !query 20394 schema +struct<> +-- !query 20394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 20395 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 20395 schema +struct<> +-- !query 20395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 20396 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t +-- !query 20396 schema +struct<> +-- !query 20396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 20397 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t +-- !query 20397 schema +struct> +-- !query 20397 output +{"2":[B@3a1c9c3f,"2017-12-11":[B@df3b099} + + +-- !query 20398 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 20398 schema +struct<> +-- !query 20398 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 20399 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20399 schema +struct<> +-- !query 20399 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 20400 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20400 schema +struct<> +-- !query 20400 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 20401 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 20401 schema +struct<> +-- !query 20401 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20402 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 20402 schema +struct<> +-- !query 20402 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20403 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t +-- !query 20403 schema +struct<> +-- !query 20403 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20404 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 20404 schema +struct<> +-- !query 20404 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20405 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t +-- !query 20405 schema +struct<> +-- !query 20405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20406 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t +-- !query 20406 schema +struct<> +-- !query 20406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20407 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 20407 schema +struct<> +-- !query 20407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20408 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t +-- !query 20408 schema +struct<> +-- !query 20408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20409 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 20409 schema +struct<> +-- !query 20409 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20410 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 20410 schema +struct<> +-- !query 20410 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20411 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20411 schema +struct<> +-- !query 20411 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20412 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20412 schema +struct<> +-- !query 20412 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20413 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 20413 schema +struct<> +-- !query 20413 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20414 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 20414 schema +struct<> +-- !query 20414 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20415 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 20415 schema +struct<> +-- !query 20415 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20416 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 20416 schema +struct<> +-- !query 20416 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20417 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 20417 schema +struct<> +-- !query 20417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20418 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 20418 schema +struct<> +-- !query 20418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20419 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 20419 schema +struct<> +-- !query 20419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20420 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 20420 schema +struct<> +-- !query 20420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20421 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 20421 schema +struct<> +-- !query 20421 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20422 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 20422 schema +struct<> +-- !query 20422 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20423 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20423 schema +struct<> +-- !query 20423 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20424 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20424 schema +struct<> +-- !query 20424 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20425 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 20425 schema +struct<> +-- !query 20425 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 20426 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 20426 schema +struct<> +-- !query 20426 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 20427 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 20427 schema +struct<> +-- !query 20427 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 20428 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 20428 schema +struct<> +-- !query 20428 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 20429 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 20429 schema +struct<> +-- !query 20429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 20430 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 20430 schema +struct<> +-- !query 20430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 20431 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 20431 schema +struct<> +-- !query 20431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 20432 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 20432 schema +struct<> +-- !query 20432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 20433 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 20433 schema +struct> +-- !query 20433 output +{2017-12-11 00:00:00.0:[B@4cec3a23,2017-12-12 09:30:00.0:[B@7dd161ca} + + +-- !query 20434 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 20434 schema +struct<> +-- !query 20434 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 20435 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20435 schema +struct<> +-- !query 20435 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 20436 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20436 schema +struct<> +-- !query 20436 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 20437 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 20437 schema +struct<> +-- !query 20437 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 + + +-- !query 20438 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 20438 schema +struct<> +-- !query 20438 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 + + +-- !query 20439 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 20439 schema +struct<> +-- !query 20439 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 + + +-- !query 20440 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 20440 schema +struct<> +-- !query 20440 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 + + +-- !query 20441 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 20441 schema +struct<> +-- !query 20441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 + + +-- !query 20442 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 20442 schema +struct<> +-- !query 20442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 + + +-- !query 20443 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 20443 schema +struct<> +-- !query 20443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 20444 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 20444 schema +struct<> +-- !query 20444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 + + +-- !query 20445 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 20445 schema +struct> +-- !query 20445 output +{2017-12-11:[B@5d2ca84e,2017-12-12:[B@6ac9f603} + + +-- !query 20446 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 20446 schema +struct<> +-- !query 20446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 + + +-- !query 20447 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20447 schema +struct<> +-- !query 20447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 + + +-- !query 20448 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20448 schema +struct<> +-- !query 20448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 + + +-- !query 20449 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 20449 schema +struct<> +-- !query 20449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20450 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 20450 schema +struct<> +-- !query 20450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20451 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 20451 schema +struct<> +-- !query 20451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20452 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 20452 schema +struct<> +-- !query 20452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20453 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 20453 schema +struct<> +-- !query 20453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20454 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 20454 schema +struct<> +-- !query 20454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20455 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 20455 schema +struct<> +-- !query 20455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20456 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 20456 schema +struct<> +-- !query 20456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20457 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 20457 schema +struct<> +-- !query 20457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20458 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 20458 schema +struct<> +-- !query 20458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20459 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20459 schema +struct<> +-- !query 20459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20460 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20460 schema +struct<> +-- !query 20460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20461 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 20461 schema +struct<> +-- !query 20461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20462 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 20462 schema +struct<> +-- !query 20462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20463 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 20463 schema +struct<> +-- !query 20463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20464 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 20464 schema +struct<> +-- !query 20464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20465 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 20465 schema +struct<> +-- !query 20465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20466 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 20466 schema +struct<> +-- !query 20466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20467 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 20467 schema +struct<> +-- !query 20467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20468 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 20468 schema +struct<> +-- !query 20468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20469 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 20469 schema +struct<> +-- !query 20469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20470 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 20470 schema +struct<> +-- !query 20470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20471 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20471 schema +struct<> +-- !query 20471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20472 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20472 schema +struct<> +-- !query 20472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20473 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 20473 schema +struct<> +-- !query 20473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20474 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 20474 schema +struct<> +-- !query 20474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20475 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t +-- !query 20475 schema +struct<> +-- !query 20475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20476 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 20476 schema +struct<> +-- !query 20476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20477 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t +-- !query 20477 schema +struct<> +-- !query 20477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20478 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t +-- !query 20478 schema +struct<> +-- !query 20478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20479 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 20479 schema +struct<> +-- !query 20479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20480 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t +-- !query 20480 schema +struct<> +-- !query 20480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20481 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t +-- !query 20481 schema +struct<> +-- !query 20481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20482 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 20482 schema +struct<> +-- !query 20482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20483 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20483 schema +struct<> +-- !query 20483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20484 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20484 schema +struct<> +-- !query 20484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20485 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 20485 schema +struct<> +-- !query 20485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20486 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 20486 schema +struct<> +-- !query 20486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20487 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 20487 schema +struct<> +-- !query 20487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20488 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 20488 schema +struct<> +-- !query 20488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20489 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 20489 schema +struct<> +-- !query 20489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20490 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 20490 schema +struct<> +-- !query 20490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20491 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 20491 schema +struct<> +-- !query 20491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20492 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 20492 schema +struct<> +-- !query 20492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20493 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 20493 schema +struct<> +-- !query 20493 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20494 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 20494 schema +struct<> +-- !query 20494 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20495 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20495 schema +struct<> +-- !query 20495 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20496 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20496 schema +struct<> +-- !query 20496 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20497 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 20497 schema +struct<> +-- !query 20497 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20498 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 20498 schema +struct<> +-- !query 20498 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20499 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t +-- !query 20499 schema +struct<> +-- !query 20499 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20500 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 20500 schema +struct<> +-- !query 20500 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20501 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t +-- !query 20501 schema +struct<> +-- !query 20501 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20502 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t +-- !query 20502 schema +struct<> +-- !query 20502 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20503 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 20503 schema +struct<> +-- !query 20503 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20504 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t +-- !query 20504 schema +struct<> +-- !query 20504 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20505 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t +-- !query 20505 schema +struct<> +-- !query 20505 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20506 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 20506 schema +struct<> +-- !query 20506 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20507 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20507 schema +struct<> +-- !query 20507 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20508 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20508 schema +struct<> +-- !query 20508 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20509 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 20509 schema +struct<> +-- !query 20509 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20510 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 20510 schema +struct<> +-- !query 20510 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20511 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t +-- !query 20511 schema +struct<> +-- !query 20511 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20512 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 20512 schema +struct<> +-- !query 20512 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20513 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t +-- !query 20513 schema +struct<> +-- !query 20513 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20514 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t +-- !query 20514 schema +struct<> +-- !query 20514 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20515 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 20515 schema +struct<> +-- !query 20515 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20516 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t +-- !query 20516 schema +struct<> +-- !query 20516 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20517 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t +-- !query 20517 schema +struct<> +-- !query 20517 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20518 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 20518 schema +struct<> +-- !query 20518 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20519 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20519 schema +struct<> +-- !query 20519 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20520 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20520 schema +struct<> +-- !query 20520 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20521 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 20521 schema +struct<> +-- !query 20521 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20522 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 20522 schema +struct<> +-- !query 20522 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20523 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 20523 schema +struct<> +-- !query 20523 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20524 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 20524 schema +struct<> +-- !query 20524 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20525 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 20525 schema +struct<> +-- !query 20525 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20526 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 20526 schema +struct<> +-- !query 20526 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20527 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 20527 schema +struct<> +-- !query 20527 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20528 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 20528 schema +struct<> +-- !query 20528 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20529 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 20529 schema +struct<> +-- !query 20529 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20530 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 20530 schema +struct<> +-- !query 20530 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20531 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20531 schema +struct<> +-- !query 20531 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20532 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20532 schema +struct<> +-- !query 20532 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20533 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 20533 schema +struct<> +-- !query 20533 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 20534 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 20534 schema +struct<> +-- !query 20534 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 20535 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t +-- !query 20535 schema +struct<> +-- !query 20535 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 20536 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 20536 schema +struct<> +-- !query 20536 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 20537 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t +-- !query 20537 schema +struct<> +-- !query 20537 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 20538 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t +-- !query 20538 schema +struct<> +-- !query 20538 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 20539 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 20539 schema +struct<> +-- !query 20539 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 20540 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t +-- !query 20540 schema +struct<> +-- !query 20540 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 20541 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t +-- !query 20541 schema +struct<> +-- !query 20541 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 20542 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 20542 schema +struct> +-- !query 20542 output +{"2":true,"2017-12-11":true} + + +-- !query 20543 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20543 schema +struct<> +-- !query 20543 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 20544 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20544 schema +struct<> +-- !query 20544 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 20545 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 20545 schema +struct<> +-- !query 20545 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20546 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 20546 schema +struct<> +-- !query 20546 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20547 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t +-- !query 20547 schema +struct<> +-- !query 20547 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20548 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 20548 schema +struct<> +-- !query 20548 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20549 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t +-- !query 20549 schema +struct<> +-- !query 20549 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20550 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t +-- !query 20550 schema +struct<> +-- !query 20550 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20551 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 20551 schema +struct<> +-- !query 20551 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20552 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t +-- !query 20552 schema +struct<> +-- !query 20552 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20553 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 20553 schema +struct<> +-- !query 20553 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20554 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 20554 schema +struct<> +-- !query 20554 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20555 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20555 schema +struct<> +-- !query 20555 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20556 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20556 schema +struct<> +-- !query 20556 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20557 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 20557 schema +struct<> +-- !query 20557 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20558 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 20558 schema +struct<> +-- !query 20558 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20559 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 20559 schema +struct<> +-- !query 20559 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20560 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 20560 schema +struct<> +-- !query 20560 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20561 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 20561 schema +struct<> +-- !query 20561 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20562 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 20562 schema +struct<> +-- !query 20562 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20563 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 20563 schema +struct<> +-- !query 20563 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20564 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 20564 schema +struct<> +-- !query 20564 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20565 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 20565 schema +struct<> +-- !query 20565 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20566 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 20566 schema +struct<> +-- !query 20566 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20567 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20567 schema +struct<> +-- !query 20567 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20568 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20568 schema +struct<> +-- !query 20568 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20569 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 20569 schema +struct<> +-- !query 20569 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 20570 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 20570 schema +struct<> +-- !query 20570 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 20571 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 20571 schema +struct<> +-- !query 20571 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 20572 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 20572 schema +struct<> +-- !query 20572 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 20573 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 20573 schema +struct<> +-- !query 20573 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 20574 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 20574 schema +struct<> +-- !query 20574 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 20575 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 20575 schema +struct<> +-- !query 20575 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 20576 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 20576 schema +struct<> +-- !query 20576 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 20577 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 20577 schema +struct<> +-- !query 20577 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 20578 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 20578 schema +struct> +-- !query 20578 output +{2017-12-11 00:00:00.0:true,2017-12-12 09:30:00.0:true} + + +-- !query 20579 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20579 schema +struct<> +-- !query 20579 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 20580 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20580 schema +struct<> +-- !query 20580 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 20581 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 20581 schema +struct<> +-- !query 20581 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 + + +-- !query 20582 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 20582 schema +struct<> +-- !query 20582 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 + + +-- !query 20583 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 20583 schema +struct<> +-- !query 20583 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 + + +-- !query 20584 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 20584 schema +struct<> +-- !query 20584 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 + + +-- !query 20585 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 20585 schema +struct<> +-- !query 20585 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 + + +-- !query 20586 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 20586 schema +struct<> +-- !query 20586 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 + + +-- !query 20587 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 20587 schema +struct<> +-- !query 20587 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 20588 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 20588 schema +struct<> +-- !query 20588 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 + + +-- !query 20589 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 20589 schema +struct<> +-- !query 20589 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 + + +-- !query 20590 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 20590 schema +struct> +-- !query 20590 output +{2017-12-11:true,2017-12-12:true} + + +-- !query 20591 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20591 schema +struct<> +-- !query 20591 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 + + +-- !query 20592 +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20592 schema +struct<> +-- !query 20592 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 + + +-- !query 20593 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 20593 schema +struct<> +-- !query 20593 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20594 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 20594 schema +struct<> +-- !query 20594 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20595 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 20595 schema +struct<> +-- !query 20595 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20596 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 20596 schema +struct<> +-- !query 20596 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20597 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 20597 schema +struct<> +-- !query 20597 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20598 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 20598 schema +struct<> +-- !query 20598 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20599 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 20599 schema +struct<> +-- !query 20599 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20600 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 20600 schema +struct<> +-- !query 20600 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20601 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 20601 schema +struct<> +-- !query 20601 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20602 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 20602 schema +struct<> +-- !query 20602 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20603 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20603 schema +struct<> +-- !query 20603 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20604 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20604 schema +struct<> +-- !query 20604 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20605 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 20605 schema +struct<> +-- !query 20605 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20606 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 20606 schema +struct<> +-- !query 20606 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20607 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 20607 schema +struct<> +-- !query 20607 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20608 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 20608 schema +struct<> +-- !query 20608 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20609 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 20609 schema +struct<> +-- !query 20609 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20610 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 20610 schema +struct<> +-- !query 20610 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20611 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 20611 schema +struct<> +-- !query 20611 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20612 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 20612 schema +struct<> +-- !query 20612 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20613 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 20613 schema +struct<> +-- !query 20613 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20614 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 20614 schema +struct<> +-- !query 20614 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20615 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20615 schema +struct<> +-- !query 20615 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20616 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20616 schema +struct<> +-- !query 20616 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20617 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 20617 schema +struct<> +-- !query 20617 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20618 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 20618 schema +struct<> +-- !query 20618 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20619 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t +-- !query 20619 schema +struct<> +-- !query 20619 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20620 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 20620 schema +struct<> +-- !query 20620 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20621 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t +-- !query 20621 schema +struct<> +-- !query 20621 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20622 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t +-- !query 20622 schema +struct<> +-- !query 20622 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20623 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 20623 schema +struct<> +-- !query 20623 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20624 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t +-- !query 20624 schema +struct<> +-- !query 20624 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20625 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t +-- !query 20625 schema +struct<> +-- !query 20625 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20626 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 20626 schema +struct<> +-- !query 20626 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20627 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20627 schema +struct<> +-- !query 20627 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20628 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20628 schema +struct<> +-- !query 20628 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20629 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 20629 schema +struct<> +-- !query 20629 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20630 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 20630 schema +struct<> +-- !query 20630 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20631 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 20631 schema +struct<> +-- !query 20631 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20632 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 20632 schema +struct<> +-- !query 20632 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20633 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 20633 schema +struct<> +-- !query 20633 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20634 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 20634 schema +struct<> +-- !query 20634 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20635 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 20635 schema +struct<> +-- !query 20635 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20636 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 20636 schema +struct<> +-- !query 20636 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20637 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 20637 schema +struct<> +-- !query 20637 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20638 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 20638 schema +struct<> +-- !query 20638 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20639 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20639 schema +struct<> +-- !query 20639 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20640 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20640 schema +struct<> +-- !query 20640 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20641 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 20641 schema +struct<> +-- !query 20641 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20642 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 20642 schema +struct<> +-- !query 20642 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20643 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t +-- !query 20643 schema +struct<> +-- !query 20643 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20644 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 20644 schema +struct<> +-- !query 20644 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20645 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t +-- !query 20645 schema +struct<> +-- !query 20645 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20646 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t +-- !query 20646 schema +struct<> +-- !query 20646 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20647 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 20647 schema +struct<> +-- !query 20647 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20648 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t +-- !query 20648 schema +struct<> +-- !query 20648 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20649 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t +-- !query 20649 schema +struct<> +-- !query 20649 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20650 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 20650 schema +struct<> +-- !query 20650 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20651 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20651 schema +struct<> +-- !query 20651 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20652 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20652 schema +struct<> +-- !query 20652 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20653 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 20653 schema +struct<> +-- !query 20653 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20654 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 20654 schema +struct<> +-- !query 20654 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20655 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t +-- !query 20655 schema +struct<> +-- !query 20655 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20656 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 20656 schema +struct<> +-- !query 20656 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20657 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t +-- !query 20657 schema +struct<> +-- !query 20657 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20658 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t +-- !query 20658 schema +struct<> +-- !query 20658 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20659 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 20659 schema +struct<> +-- !query 20659 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20660 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t +-- !query 20660 schema +struct<> +-- !query 20660 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20661 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t +-- !query 20661 schema +struct<> +-- !query 20661 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20662 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 20662 schema +struct<> +-- !query 20662 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20663 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20663 schema +struct<> +-- !query 20663 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20664 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20664 schema +struct<> +-- !query 20664 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20665 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 20665 schema +struct<> +-- !query 20665 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20666 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 20666 schema +struct<> +-- !query 20666 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20667 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 20667 schema +struct<> +-- !query 20667 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20668 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 20668 schema +struct<> +-- !query 20668 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20669 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 20669 schema +struct<> +-- !query 20669 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20670 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 20670 schema +struct<> +-- !query 20670 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20671 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 20671 schema +struct<> +-- !query 20671 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20672 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 20672 schema +struct<> +-- !query 20672 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20673 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 20673 schema +struct<> +-- !query 20673 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20674 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 20674 schema +struct<> +-- !query 20674 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20675 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20675 schema +struct<> +-- !query 20675 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20676 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20676 schema +struct<> +-- !query 20676 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20677 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 20677 schema +struct<> +-- !query 20677 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 20678 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 20678 schema +struct<> +-- !query 20678 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 20679 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t +-- !query 20679 schema +struct<> +-- !query 20679 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 20680 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 20680 schema +struct<> +-- !query 20680 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 20681 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t +-- !query 20681 schema +struct<> +-- !query 20681 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 20682 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t +-- !query 20682 schema +struct<> +-- !query 20682 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 20683 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 20683 schema +struct<> +-- !query 20683 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 20684 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t +-- !query 20684 schema +struct> +-- !query 20684 output +{"2":"2","2017-12-11":"2017-12-11 09:30:00"} + + +-- !query 20685 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t +-- !query 20685 schema +struct<> +-- !query 20685 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 20686 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 20686 schema +struct<> +-- !query 20686 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 20687 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20687 schema +struct> +-- !query 20687 output +{"2":2017-12-12 09:30:00.0,"2017-12-11":2017-12-11 09:30:00.0} + + +-- !query 20688 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20688 schema +struct> +-- !query 20688 output +{"2":2017-12-12 00:00:00.0,"2017-12-11":2017-12-11 09:30:00.0} + + +-- !query 20689 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 20689 schema +struct<> +-- !query 20689 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20690 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 20690 schema +struct<> +-- !query 20690 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20691 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t +-- !query 20691 schema +struct<> +-- !query 20691 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20692 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 20692 schema +struct<> +-- !query 20692 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20693 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t +-- !query 20693 schema +struct<> +-- !query 20693 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20694 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t +-- !query 20694 schema +struct<> +-- !query 20694 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20695 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 20695 schema +struct<> +-- !query 20695 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20696 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t +-- !query 20696 schema +struct<> +-- !query 20696 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20697 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 20697 schema +struct<> +-- !query 20697 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20698 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 20698 schema +struct<> +-- !query 20698 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20699 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20699 schema +struct<> +-- !query 20699 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20700 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20700 schema +struct<> +-- !query 20700 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20701 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 20701 schema +struct<> +-- !query 20701 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20702 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 20702 schema +struct<> +-- !query 20702 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20703 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 20703 schema +struct<> +-- !query 20703 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20704 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 20704 schema +struct<> +-- !query 20704 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20705 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 20705 schema +struct<> +-- !query 20705 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20706 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 20706 schema +struct<> +-- !query 20706 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20707 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 20707 schema +struct<> +-- !query 20707 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20708 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 20708 schema +struct<> +-- !query 20708 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20709 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 20709 schema +struct<> +-- !query 20709 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20710 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 20710 schema +struct<> +-- !query 20710 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20711 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20711 schema +struct<> +-- !query 20711 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20712 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20712 schema +struct<> +-- !query 20712 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20713 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 20713 schema +struct<> +-- !query 20713 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 20714 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 20714 schema +struct<> +-- !query 20714 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 20715 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 20715 schema +struct<> +-- !query 20715 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 20716 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 20716 schema +struct<> +-- !query 20716 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 20717 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 20717 schema +struct<> +-- !query 20717 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 20718 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 20718 schema +struct<> +-- !query 20718 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 20719 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 20719 schema +struct<> +-- !query 20719 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 20720 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 20720 schema +struct> +-- !query 20720 output +{2017-12-11 00:00:00.0:"2017-12-11 09:30:00",2017-12-12 09:30:00.0:"2"} + + +-- !query 20721 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 20721 schema +struct<> +-- !query 20721 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 20722 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 20722 schema +struct<> +-- !query 20722 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 20723 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20723 schema +struct> +-- !query 20723 output +{2017-12-11 00:00:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} + + +-- !query 20724 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20724 schema +struct> +-- !query 20724 output +{2017-12-11 00:00:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 00:00:00.0} + + +-- !query 20725 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 20725 schema +struct<> +-- !query 20725 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 + + +-- !query 20726 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 20726 schema +struct<> +-- !query 20726 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 + + +-- !query 20727 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 20727 schema +struct<> +-- !query 20727 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 + + +-- !query 20728 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 20728 schema +struct<> +-- !query 20728 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 + + +-- !query 20729 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 20729 schema +struct<> +-- !query 20729 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 + + +-- !query 20730 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 20730 schema +struct<> +-- !query 20730 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 + + +-- !query 20731 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 20731 schema +struct<> +-- !query 20731 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 20732 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 20732 schema +struct> +-- !query 20732 output +{2017-12-11:"2017-12-11 09:30:00",2017-12-12:"2"} + + +-- !query 20733 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 20733 schema +struct<> +-- !query 20733 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 + + +-- !query 20734 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 20734 schema +struct<> +-- !query 20734 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 + + +-- !query 20735 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20735 schema +struct> +-- !query 20735 output +{2017-12-11:2017-12-11 09:30:00.0,2017-12-12:2017-12-12 09:30:00.0} + + +-- !query 20736 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20736 schema +struct> +-- !query 20736 output +{2017-12-11:2017-12-11 09:30:00.0,2017-12-12:2017-12-12 00:00:00.0} + + +-- !query 20737 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t +-- !query 20737 schema +struct<> +-- !query 20737 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20738 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t +-- !query 20738 schema +struct<> +-- !query 20738 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20739 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t +-- !query 20739 schema +struct<> +-- !query 20739 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20740 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t +-- !query 20740 schema +struct<> +-- !query 20740 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20741 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t +-- !query 20741 schema +struct<> +-- !query 20741 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20742 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t +-- !query 20742 schema +struct<> +-- !query 20742 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20743 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 20743 schema +struct<> +-- !query 20743 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20744 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t +-- !query 20744 schema +struct<> +-- !query 20744 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20745 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t +-- !query 20745 schema +struct<> +-- !query 20745 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20746 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t +-- !query 20746 schema +struct<> +-- !query 20746 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20747 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20747 schema +struct<> +-- !query 20747 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20748 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20748 schema +struct<> +-- !query 20748 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20749 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t +-- !query 20749 schema +struct<> +-- !query 20749 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20750 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t +-- !query 20750 schema +struct<> +-- !query 20750 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20751 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t +-- !query 20751 schema +struct<> +-- !query 20751 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20752 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t +-- !query 20752 schema +struct<> +-- !query 20752 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20753 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t +-- !query 20753 schema +struct<> +-- !query 20753 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20754 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t +-- !query 20754 schema +struct<> +-- !query 20754 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20755 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 20755 schema +struct<> +-- !query 20755 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20756 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t +-- !query 20756 schema +struct<> +-- !query 20756 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20757 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t +-- !query 20757 schema +struct<> +-- !query 20757 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20758 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t +-- !query 20758 schema +struct<> +-- !query 20758 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20759 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20759 schema +struct<> +-- !query 20759 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20760 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20760 schema +struct<> +-- !query 20760 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20761 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t +-- !query 20761 schema +struct<> +-- !query 20761 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20762 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t +-- !query 20762 schema +struct<> +-- !query 20762 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20763 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t +-- !query 20763 schema +struct<> +-- !query 20763 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20764 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t +-- !query 20764 schema +struct<> +-- !query 20764 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20765 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t +-- !query 20765 schema +struct<> +-- !query 20765 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20766 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t +-- !query 20766 schema +struct<> +-- !query 20766 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20767 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 20767 schema +struct<> +-- !query 20767 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20768 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t +-- !query 20768 schema +struct<> +-- !query 20768 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20769 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t +-- !query 20769 schema +struct<> +-- !query 20769 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20770 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t +-- !query 20770 schema +struct<> +-- !query 20770 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20771 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20771 schema +struct<> +-- !query 20771 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20772 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20772 schema +struct<> +-- !query 20772 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20773 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t +-- !query 20773 schema +struct<> +-- !query 20773 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20774 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t +-- !query 20774 schema +struct<> +-- !query 20774 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20775 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t +-- !query 20775 schema +struct<> +-- !query 20775 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20776 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t +-- !query 20776 schema +struct<> +-- !query 20776 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20777 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t +-- !query 20777 schema +struct<> +-- !query 20777 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20778 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t +-- !query 20778 schema +struct<> +-- !query 20778 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20779 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 20779 schema +struct<> +-- !query 20779 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20780 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t +-- !query 20780 schema +struct<> +-- !query 20780 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20781 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t +-- !query 20781 schema +struct<> +-- !query 20781 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20782 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t +-- !query 20782 schema +struct<> +-- !query 20782 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20783 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20783 schema +struct<> +-- !query 20783 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20784 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20784 schema +struct<> +-- !query 20784 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20785 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t +-- !query 20785 schema +struct<> +-- !query 20785 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20786 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t +-- !query 20786 schema +struct<> +-- !query 20786 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20787 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t +-- !query 20787 schema +struct<> +-- !query 20787 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20788 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t +-- !query 20788 schema +struct<> +-- !query 20788 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20789 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t +-- !query 20789 schema +struct<> +-- !query 20789 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20790 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t +-- !query 20790 schema +struct<> +-- !query 20790 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20791 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 20791 schema +struct<> +-- !query 20791 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20792 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t +-- !query 20792 schema +struct<> +-- !query 20792 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20793 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t +-- !query 20793 schema +struct<> +-- !query 20793 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20794 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t +-- !query 20794 schema +struct<> +-- !query 20794 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20795 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20795 schema +struct<> +-- !query 20795 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20796 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20796 schema +struct<> +-- !query 20796 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20797 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t +-- !query 20797 schema +struct<> +-- !query 20797 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20798 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t +-- !query 20798 schema +struct<> +-- !query 20798 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20799 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t +-- !query 20799 schema +struct<> +-- !query 20799 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20800 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t +-- !query 20800 schema +struct<> +-- !query 20800 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20801 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t +-- !query 20801 schema +struct<> +-- !query 20801 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20802 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t +-- !query 20802 schema +struct<> +-- !query 20802 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20803 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 20803 schema +struct<> +-- !query 20803 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20804 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t +-- !query 20804 schema +struct<> +-- !query 20804 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20805 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t +-- !query 20805 schema +struct<> +-- !query 20805 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20806 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t +-- !query 20806 schema +struct<> +-- !query 20806 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20807 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20807 schema +struct<> +-- !query 20807 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20808 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20808 schema +struct<> +-- !query 20808 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20809 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 20809 schema +struct<> +-- !query 20809 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20810 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 20810 schema +struct<> +-- !query 20810 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20811 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 20811 schema +struct<> +-- !query 20811 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20812 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 20812 schema +struct<> +-- !query 20812 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20813 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 20813 schema +struct<> +-- !query 20813 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20814 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 20814 schema +struct<> +-- !query 20814 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20815 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 20815 schema +struct<> +-- !query 20815 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20816 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 20816 schema +struct<> +-- !query 20816 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20817 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 20817 schema +struct<> +-- !query 20817 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20818 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 20818 schema +struct<> +-- !query 20818 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20819 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20819 schema +struct<> +-- !query 20819 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20820 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20820 schema +struct<> +-- !query 20820 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20821 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t +-- !query 20821 schema +struct<> +-- !query 20821 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20822 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t +-- !query 20822 schema +struct<> +-- !query 20822 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20823 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t +-- !query 20823 schema +struct<> +-- !query 20823 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20824 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t +-- !query 20824 schema +struct<> +-- !query 20824 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20825 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t +-- !query 20825 schema +struct<> +-- !query 20825 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20826 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t +-- !query 20826 schema +struct<> +-- !query 20826 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20827 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 20827 schema +struct<> +-- !query 20827 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20828 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t +-- !query 20828 schema +struct> +-- !query 20828 output +{"2":"2","2017-12-11":"2017-12-11"} + + +-- !query 20829 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t +-- !query 20829 schema +struct<> +-- !query 20829 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20830 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t +-- !query 20830 schema +struct<> +-- !query 20830 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20831 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20831 schema +struct> +-- !query 20831 output +{"2":2017-12-12 09:30:00.0,"2017-12-11":2017-12-11 00:00:00.0} + + +-- !query 20832 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20832 schema +struct> +-- !query 20832 output +{"2":2017-12-12,"2017-12-11":2017-12-11} + + +-- !query 20833 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t +-- !query 20833 schema +struct<> +-- !query 20833 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20834 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t +-- !query 20834 schema +struct<> +-- !query 20834 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20835 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t +-- !query 20835 schema +struct<> +-- !query 20835 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20836 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t +-- !query 20836 schema +struct<> +-- !query 20836 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20837 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t +-- !query 20837 schema +struct<> +-- !query 20837 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20838 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t +-- !query 20838 schema +struct<> +-- !query 20838 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20839 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 20839 schema +struct<> +-- !query 20839 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20840 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t +-- !query 20840 schema +struct<> +-- !query 20840 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20841 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t +-- !query 20841 schema +struct<> +-- !query 20841 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20842 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t +-- !query 20842 schema +struct<> +-- !query 20842 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20843 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20843 schema +struct<> +-- !query 20843 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20844 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20844 schema +struct<> +-- !query 20844 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20845 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t +-- !query 20845 schema +struct<> +-- !query 20845 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20846 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t +-- !query 20846 schema +struct<> +-- !query 20846 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20847 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t +-- !query 20847 schema +struct<> +-- !query 20847 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20848 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t +-- !query 20848 schema +struct<> +-- !query 20848 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20849 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t +-- !query 20849 schema +struct<> +-- !query 20849 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20850 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t +-- !query 20850 schema +struct<> +-- !query 20850 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20851 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 20851 schema +struct<> +-- !query 20851 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20852 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t +-- !query 20852 schema +struct<> +-- !query 20852 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20853 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t +-- !query 20853 schema +struct<> +-- !query 20853 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20854 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t +-- !query 20854 schema +struct<> +-- !query 20854 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20855 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20855 schema +struct<> +-- !query 20855 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20856 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20856 schema +struct<> +-- !query 20856 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20857 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 20857 schema +struct<> +-- !query 20857 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20858 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 20858 schema +struct<> +-- !query 20858 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20859 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 20859 schema +struct<> +-- !query 20859 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20860 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 20860 schema +struct<> +-- !query 20860 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20861 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 20861 schema +struct<> +-- !query 20861 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20862 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 20862 schema +struct<> +-- !query 20862 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20863 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 20863 schema +struct<> +-- !query 20863 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20864 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 20864 schema +struct> +-- !query 20864 output +{2017-12-11 00:00:00.0:"2017-12-11",2017-12-12 09:30:00.0:"2"} + + +-- !query 20865 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 20865 schema +struct<> +-- !query 20865 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20866 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 20866 schema +struct<> +-- !query 20866 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20867 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20867 schema +struct> +-- !query 20867 output +{2017-12-11 00:00:00.0:2017-12-11 00:00:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} + + +-- !query 20868 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20868 schema +struct> +-- !query 20868 output +{2017-12-11 00:00:00.0:2017-12-11,2017-12-12 09:30:00.0:2017-12-12} + + +-- !query 20869 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 20869 schema +struct<> +-- !query 20869 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 + + +-- !query 20870 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 20870 schema +struct<> +-- !query 20870 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 + + +-- !query 20871 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +-- !query 20871 schema +struct<> +-- !query 20871 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 + + +-- !query 20872 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 20872 schema +struct<> +-- !query 20872 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 + + +-- !query 20873 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +-- !query 20873 schema +struct<> +-- !query 20873 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 + + +-- !query 20874 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +-- !query 20874 schema +struct<> +-- !query 20874 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 + + +-- !query 20875 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 20875 schema +struct<> +-- !query 20875 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 20876 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +-- !query 20876 schema +struct> +-- !query 20876 output +{2017-12-11:"2017-12-11",2017-12-12:"2"} + + +-- !query 20877 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 20877 schema +struct<> +-- !query 20877 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 + + +-- !query 20878 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 20878 schema +struct<> +-- !query 20878 output +org.apache.spark.sql.AnalysisException +cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 + + +-- !query 20879 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20879 schema +struct> +-- !query 20879 output +{2017-12-11:2017-12-11 00:00:00.0,2017-12-12:2017-12-12 09:30:00.0} + + +-- !query 20880 +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20880 schema +struct> +-- !query 20880 output +{2017-12-11:2017-12-11,2017-12-12:2017-12-12} + + +-- !query 20881 +SELECT sum(cast(1 as tinyint)) FROM t +-- !query 20881 schema +struct +-- !query 20881 output +1 + + +-- !query 20882 +SELECT sum(cast(1 as smallint)) FROM t +-- !query 20882 schema +struct +-- !query 20882 output +1 + + +-- !query 20883 +SELECT sum(cast(1 as int)) FROM t +-- !query 20883 schema +struct +-- !query 20883 output +1 + + +-- !query 20884 +SELECT sum(cast(1 as bigint)) FROM t +-- !query 20884 schema +struct +-- !query 20884 output +1 + + +-- !query 20885 +SELECT sum(cast(1 as float)) FROM t +-- !query 20885 schema +struct +-- !query 20885 output +1.0 + + +-- !query 20886 +SELECT sum(cast(1 as double)) FROM t +-- !query 20886 schema +struct +-- !query 20886 output +1.0 + + +-- !query 20887 +SELECT sum(cast(1 as decimal(10, 0))) FROM t +-- !query 20887 schema +struct +-- !query 20887 output +1 + + +-- !query 20888 +SELECT sum(cast(1 as string)) FROM t +-- !query 20888 schema +struct +-- !query 20888 output +1.0 + + +-- !query 20889 +SELECT sum(cast('1' as binary)) FROM t +-- !query 20889 schema +struct<> +-- !query 20889 output +org.apache.spark.sql.AnalysisException +cannot resolve 'sum(CAST('1' AS BINARY))' due to data type mismatch: function sum requires numeric types, not BinaryType; line 1 pos 7 + + +-- !query 20890 +SELECT sum(cast(1 as boolean)) FROM t +-- !query 20890 schema +struct<> +-- !query 20890 output +org.apache.spark.sql.AnalysisException +cannot resolve 'sum(CAST(1 AS BOOLEAN))' due to data type mismatch: function sum requires numeric types, not BooleanType; line 1 pos 7 + + +-- !query 20891 +SELECT sum(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20891 schema +struct +-- !query 20891 output +1.5130998E9 + + +-- !query 20892 +SELECT sum(cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 20892 schema +struct<> +-- !query 20892 output +org.apache.spark.sql.AnalysisException +cannot resolve 'sum(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function sum requires numeric types, not DateType; line 1 pos 7 + + +-- !query 20893 +SELECT avg(cast(1 as tinyint)) FROM t +-- !query 20893 schema +struct +-- !query 20893 output +1.0 + + +-- !query 20894 +SELECT avg(cast(1 as smallint)) FROM t +-- !query 20894 schema +struct +-- !query 20894 output +1.0 + + +-- !query 20895 +SELECT avg(cast(1 as int)) FROM t +-- !query 20895 schema +struct +-- !query 20895 output +1.0 + + +-- !query 20896 +SELECT avg(cast(1 as bigint)) FROM t +-- !query 20896 schema +struct +-- !query 20896 output +1.0 + + +-- !query 20897 +SELECT avg(cast(1 as float)) FROM t +-- !query 20897 schema +struct +-- !query 20897 output +1.0 + + +-- !query 20898 +SELECT avg(cast(1 as double)) FROM t +-- !query 20898 schema +struct +-- !query 20898 output +1.0 + + +-- !query 20899 +SELECT avg(cast(1 as decimal(10, 0))) FROM t +-- !query 20899 schema +struct +-- !query 20899 output +1 + + +-- !query 20900 +SELECT avg(cast(1 as string)) FROM t +-- !query 20900 schema +struct +-- !query 20900 output +1.0 + + +-- !query 20901 +SELECT avg(cast('1' as binary)) FROM t +-- !query 20901 schema +struct<> +-- !query 20901 output +org.apache.spark.sql.AnalysisException +cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 + + +-- !query 20902 +SELECT avg(cast(1 as boolean)) FROM t +-- !query 20902 schema +struct<> +-- !query 20902 output +org.apache.spark.sql.AnalysisException +cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 + + +-- !query 20903 +SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20903 schema +struct +-- !query 20903 output +1.5130998E9 + + +-- !query 20904 +SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 20904 schema +struct<> +-- !query 20904 output +org.apache.spark.sql.AnalysisException +cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 + + +-- !query 20905 +SELECT avg(cast(1 as tinyint)) FROM t +-- !query 20905 schema +struct +-- !query 20905 output +1.0 + + +-- !query 20906 +SELECT avg(cast(1 as smallint)) FROM t +-- !query 20906 schema +struct +-- !query 20906 output +1.0 + + +-- !query 20907 +SELECT avg(cast(1 as int)) FROM t +-- !query 20907 schema +struct +-- !query 20907 output +1.0 + + +-- !query 20908 +SELECT avg(cast(1 as bigint)) FROM t +-- !query 20908 schema +struct +-- !query 20908 output +1.0 + + +-- !query 20909 +SELECT avg(cast(1 as float)) FROM t +-- !query 20909 schema +struct +-- !query 20909 output +1.0 + + +-- !query 20910 +SELECT avg(cast(1 as double)) FROM t +-- !query 20910 schema +struct +-- !query 20910 output +1.0 + + +-- !query 20911 +SELECT avg(cast(1 as decimal(10, 0))) FROM t +-- !query 20911 schema +struct +-- !query 20911 output +1 + + +-- !query 20912 +SELECT avg(cast(1 as string)) FROM t +-- !query 20912 schema +struct +-- !query 20912 output +1.0 + + +-- !query 20913 +SELECT avg(cast('1' as binary)) FROM t +-- !query 20913 schema +struct<> +-- !query 20913 output +org.apache.spark.sql.AnalysisException +cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 + + +-- !query 20914 +SELECT avg(cast(1 as boolean)) FROM t +-- !query 20914 schema +struct<> +-- !query 20914 output +org.apache.spark.sql.AnalysisException +cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 + + +-- !query 20915 +SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20915 schema +struct +-- !query 20915 output +1.5130998E9 + + +-- !query 20916 +SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 20916 schema +struct<> +-- !query 20916 output +org.apache.spark.sql.AnalysisException +cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 + + +-- !query 20917 +SELECT coalesce(cast(1 as tinyint), cast(2 as tinyint)) FROM t +-- !query 20917 schema +struct +-- !query 20917 output +1 + + +-- !query 20918 +SELECT coalesce(cast(1 as tinyint), cast(2 as smallint)) FROM t +-- !query 20918 schema +struct +-- !query 20918 output +1 + + +-- !query 20919 +SELECT coalesce(cast(1 as tinyint), cast(2 as int)) FROM t +-- !query 20919 schema +struct +-- !query 20919 output +1 + + +-- !query 20920 +SELECT coalesce(cast(1 as tinyint), cast(2 as bigint)) FROM t +-- !query 20920 schema +struct +-- !query 20920 output +1 + + +-- !query 20921 +SELECT coalesce(cast(1 as tinyint), cast(2 as float)) FROM t +-- !query 20921 schema +struct +-- !query 20921 output +1.0 + + +-- !query 20922 +SELECT coalesce(cast(1 as tinyint), cast(2 as double)) FROM t +-- !query 20922 schema +struct +-- !query 20922 output +1.0 + + +-- !query 20923 +SELECT coalesce(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 20923 schema +struct +-- !query 20923 output +1 + + +-- !query 20924 +SELECT coalesce(cast(1 as tinyint), cast(2 as string)) FROM t +-- !query 20924 schema +struct +-- !query 20924 output +1 + + +-- !query 20925 +SELECT coalesce(cast(1 as tinyint), cast('2' as binary)) FROM t +-- !query 20925 schema +struct<> +-- !query 20925 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, binary]; line 1 pos 7 + + +-- !query 20926 +SELECT coalesce(cast(1 as tinyint), cast(2 as boolean)) FROM t +-- !query 20926 schema +struct<> +-- !query 20926 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, boolean]; line 1 pos 7 + + +-- !query 20927 +SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20927 schema +struct<> +-- !query 20927 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, timestamp]; line 1 pos 7 + + +-- !query 20928 +SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20928 schema +struct<> +-- !query 20928 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, date]; line 1 pos 7 + + +-- !query 20929 +SELECT coalesce(cast(1 as smallint), cast(2 as tinyint)) FROM t +-- !query 20929 schema +struct +-- !query 20929 output +1 + + +-- !query 20930 +SELECT coalesce(cast(1 as smallint), cast(2 as smallint)) FROM t +-- !query 20930 schema +struct +-- !query 20930 output +1 + + +-- !query 20931 +SELECT coalesce(cast(1 as smallint), cast(2 as int)) FROM t +-- !query 20931 schema +struct +-- !query 20931 output +1 + + +-- !query 20932 +SELECT coalesce(cast(1 as smallint), cast(2 as bigint)) FROM t +-- !query 20932 schema +struct +-- !query 20932 output +1 + + +-- !query 20933 +SELECT coalesce(cast(1 as smallint), cast(2 as float)) FROM t +-- !query 20933 schema +struct +-- !query 20933 output +1.0 + + +-- !query 20934 +SELECT coalesce(cast(1 as smallint), cast(2 as double)) FROM t +-- !query 20934 schema +struct +-- !query 20934 output +1.0 + + +-- !query 20935 +SELECT coalesce(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 20935 schema +struct +-- !query 20935 output +1 + + +-- !query 20936 +SELECT coalesce(cast(1 as smallint), cast(2 as string)) FROM t +-- !query 20936 schema +struct +-- !query 20936 output +1 + + +-- !query 20937 +SELECT coalesce(cast(1 as smallint), cast('2' as binary)) FROM t +-- !query 20937 schema +struct<> +-- !query 20937 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, binary]; line 1 pos 7 + + +-- !query 20938 +SELECT coalesce(cast(1 as smallint), cast(2 as boolean)) FROM t +-- !query 20938 schema +struct<> +-- !query 20938 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, boolean]; line 1 pos 7 + + +-- !query 20939 +SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20939 schema +struct<> +-- !query 20939 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, timestamp]; line 1 pos 7 + + +-- !query 20940 +SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20940 schema +struct<> +-- !query 20940 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, date]; line 1 pos 7 + + +-- !query 20941 +SELECT coalesce(cast(1 as int), cast(2 as tinyint)) FROM t +-- !query 20941 schema +struct +-- !query 20941 output +1 + + +-- !query 20942 +SELECT coalesce(cast(1 as int), cast(2 as smallint)) FROM t +-- !query 20942 schema +struct +-- !query 20942 output +1 + + +-- !query 20943 +SELECT coalesce(cast(1 as int), cast(2 as int)) FROM t +-- !query 20943 schema +struct +-- !query 20943 output +1 + + +-- !query 20944 +SELECT coalesce(cast(1 as int), cast(2 as bigint)) FROM t +-- !query 20944 schema +struct +-- !query 20944 output +1 + + +-- !query 20945 +SELECT coalesce(cast(1 as int), cast(2 as float)) FROM t +-- !query 20945 schema +struct +-- !query 20945 output +1.0 + + +-- !query 20946 +SELECT coalesce(cast(1 as int), cast(2 as double)) FROM t +-- !query 20946 schema +struct +-- !query 20946 output +1.0 + + +-- !query 20947 +SELECT coalesce(cast(1 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 20947 schema +struct +-- !query 20947 output +1 + + +-- !query 20948 +SELECT coalesce(cast(1 as int), cast(2 as string)) FROM t +-- !query 20948 schema +struct +-- !query 20948 output +1 + + +-- !query 20949 +SELECT coalesce(cast(1 as int), cast('2' as binary)) FROM t +-- !query 20949 schema +struct<> +-- !query 20949 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, binary]; line 1 pos 7 + + +-- !query 20950 +SELECT coalesce(cast(1 as int), cast(2 as boolean)) FROM t +-- !query 20950 schema +struct<> +-- !query 20950 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, boolean]; line 1 pos 7 + + +-- !query 20951 +SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20951 schema +struct<> +-- !query 20951 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, timestamp]; line 1 pos 7 + + +-- !query 20952 +SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20952 schema +struct<> +-- !query 20952 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, date]; line 1 pos 7 + + +-- !query 20953 +SELECT coalesce(cast(1 as bigint), cast(2 as tinyint)) FROM t +-- !query 20953 schema +struct +-- !query 20953 output +1 + + +-- !query 20954 +SELECT coalesce(cast(1 as bigint), cast(2 as smallint)) FROM t +-- !query 20954 schema +struct +-- !query 20954 output +1 + + +-- !query 20955 +SELECT coalesce(cast(1 as bigint), cast(2 as int)) FROM t +-- !query 20955 schema +struct +-- !query 20955 output +1 + + +-- !query 20956 +SELECT coalesce(cast(1 as bigint), cast(2 as bigint)) FROM t +-- !query 20956 schema +struct +-- !query 20956 output +1 + + +-- !query 20957 +SELECT coalesce(cast(1 as bigint), cast(2 as float)) FROM t +-- !query 20957 schema +struct +-- !query 20957 output +1.0 + + +-- !query 20958 +SELECT coalesce(cast(1 as bigint), cast(2 as double)) FROM t +-- !query 20958 schema +struct +-- !query 20958 output +1.0 + + +-- !query 20959 +SELECT coalesce(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 20959 schema +struct +-- !query 20959 output +1 + + +-- !query 20960 +SELECT coalesce(cast(1 as bigint), cast(2 as string)) FROM t +-- !query 20960 schema +struct +-- !query 20960 output +1 + + +-- !query 20961 +SELECT coalesce(cast(1 as bigint), cast('2' as binary)) FROM t +-- !query 20961 schema +struct<> +-- !query 20961 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, binary]; line 1 pos 7 + + +-- !query 20962 +SELECT coalesce(cast(1 as bigint), cast(2 as boolean)) FROM t +-- !query 20962 schema +struct<> +-- !query 20962 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, boolean]; line 1 pos 7 + + +-- !query 20963 +SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20963 schema +struct<> +-- !query 20963 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, timestamp]; line 1 pos 7 + + +-- !query 20964 +SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20964 schema +struct<> +-- !query 20964 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, date]; line 1 pos 7 + + +-- !query 20965 +SELECT coalesce(cast(1 as float), cast(2 as tinyint)) FROM t +-- !query 20965 schema +struct +-- !query 20965 output +1.0 + + +-- !query 20966 +SELECT coalesce(cast(1 as float), cast(2 as smallint)) FROM t +-- !query 20966 schema +struct +-- !query 20966 output +1.0 + + +-- !query 20967 +SELECT coalesce(cast(1 as float), cast(2 as int)) FROM t +-- !query 20967 schema +struct +-- !query 20967 output +1.0 + + +-- !query 20968 +SELECT coalesce(cast(1 as float), cast(2 as bigint)) FROM t +-- !query 20968 schema +struct +-- !query 20968 output +1.0 + + +-- !query 20969 +SELECT coalesce(cast(1 as float), cast(2 as float)) FROM t +-- !query 20969 schema +struct +-- !query 20969 output +1.0 + + +-- !query 20970 +SELECT coalesce(cast(1 as float), cast(2 as double)) FROM t +-- !query 20970 schema +struct +-- !query 20970 output +1.0 + + +-- !query 20971 +SELECT coalesce(cast(1 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 20971 schema +struct +-- !query 20971 output +1.0 + + +-- !query 20972 +SELECT coalesce(cast(1 as float), cast(2 as string)) FROM t +-- !query 20972 schema +struct +-- !query 20972 output +1.0 + + +-- !query 20973 +SELECT coalesce(cast(1 as float), cast('2' as binary)) FROM t +-- !query 20973 schema +struct<> +-- !query 20973 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, binary]; line 1 pos 7 + + +-- !query 20974 +SELECT coalesce(cast(1 as float), cast(2 as boolean)) FROM t +-- !query 20974 schema +struct<> +-- !query 20974 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, boolean]; line 1 pos 7 + + +-- !query 20975 +SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20975 schema +struct<> +-- !query 20975 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, timestamp]; line 1 pos 7 + + +-- !query 20976 +SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20976 schema +struct<> +-- !query 20976 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, date]; line 1 pos 7 + + +-- !query 20977 +SELECT coalesce(cast(1 as double), cast(2 as tinyint)) FROM t +-- !query 20977 schema +struct +-- !query 20977 output +1.0 + + +-- !query 20978 +SELECT coalesce(cast(1 as double), cast(2 as smallint)) FROM t +-- !query 20978 schema +struct +-- !query 20978 output +1.0 + + +-- !query 20979 +SELECT coalesce(cast(1 as double), cast(2 as int)) FROM t +-- !query 20979 schema +struct +-- !query 20979 output +1.0 + + +-- !query 20980 +SELECT coalesce(cast(1 as double), cast(2 as bigint)) FROM t +-- !query 20980 schema +struct +-- !query 20980 output +1.0 + + +-- !query 20981 +SELECT coalesce(cast(1 as double), cast(2 as float)) FROM t +-- !query 20981 schema +struct +-- !query 20981 output +1.0 + + +-- !query 20982 +SELECT coalesce(cast(1 as double), cast(2 as double)) FROM t +-- !query 20982 schema +struct +-- !query 20982 output +1.0 + + +-- !query 20983 +SELECT coalesce(cast(1 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 20983 schema +struct +-- !query 20983 output +1.0 + + +-- !query 20984 +SELECT coalesce(cast(1 as double), cast(2 as string)) FROM t +-- !query 20984 schema +struct +-- !query 20984 output +1.0 + + +-- !query 20985 +SELECT coalesce(cast(1 as double), cast('2' as binary)) FROM t +-- !query 20985 schema +struct<> +-- !query 20985 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, binary]; line 1 pos 7 + + +-- !query 20986 +SELECT coalesce(cast(1 as double), cast(2 as boolean)) FROM t +-- !query 20986 schema +struct<> +-- !query 20986 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, boolean]; line 1 pos 7 + + +-- !query 20987 +SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20987 schema +struct<> +-- !query 20987 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, timestamp]; line 1 pos 7 + + +-- !query 20988 +SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 20988 schema +struct<> +-- !query 20988 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, date]; line 1 pos 7 + + +-- !query 20989 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 20989 schema +struct +-- !query 20989 output +1 + + +-- !query 20990 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 20990 schema +struct +-- !query 20990 output +1 + + +-- !query 20991 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 20991 schema +struct +-- !query 20991 output +1 + + +-- !query 20992 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 20992 schema +struct +-- !query 20992 output +1 + + +-- !query 20993 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 20993 schema +struct +-- !query 20993 output +1.0 + + +-- !query 20994 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 20994 schema +struct +-- !query 20994 output +1.0 + + +-- !query 20995 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 20995 schema +struct +-- !query 20995 output +1 + + +-- !query 20996 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 20996 schema +struct +-- !query 20996 output +1 + + +-- !query 20997 +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 20997 schema +struct<> +-- !query 20997 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 7 + + +-- !query 20998 +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 20998 schema +struct<> +-- !query 20998 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), boolean]; line 1 pos 7 + + +-- !query 20999 +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 20999 schema +struct<> +-- !query 20999 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), timestamp]; line 1 pos 7 + + +-- !query 21000 +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21000 schema +struct<> +-- !query 21000 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), date]; line 1 pos 7 + + +-- !query 21001 +SELECT coalesce(cast(1 as string), cast(2 as tinyint)) FROM t +-- !query 21001 schema +struct +-- !query 21001 output +1 + + +-- !query 21002 +SELECT coalesce(cast(1 as string), cast(2 as smallint)) FROM t +-- !query 21002 schema +struct +-- !query 21002 output +1 + + +-- !query 21003 +SELECT coalesce(cast(1 as string), cast(2 as int)) FROM t +-- !query 21003 schema +struct +-- !query 21003 output +1 + + +-- !query 21004 +SELECT coalesce(cast(1 as string), cast(2 as bigint)) FROM t +-- !query 21004 schema +struct +-- !query 21004 output +1 + + +-- !query 21005 +SELECT coalesce(cast(1 as string), cast(2 as float)) FROM t +-- !query 21005 schema +struct +-- !query 21005 output +1 + + +-- !query 21006 +SELECT coalesce(cast(1 as string), cast(2 as double)) FROM t +-- !query 21006 schema +struct +-- !query 21006 output +1 + + +-- !query 21007 +SELECT coalesce(cast(1 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 21007 schema +struct +-- !query 21007 output +1 + + +-- !query 21008 +SELECT coalesce(cast(1 as string), cast(2 as string)) FROM t +-- !query 21008 schema +struct +-- !query 21008 output +1 + + +-- !query 21009 +SELECT coalesce(cast(1 as string), cast('2' as binary)) FROM t +-- !query 21009 schema +struct<> +-- !query 21009 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, binary]; line 1 pos 7 + + +-- !query 21010 +SELECT coalesce(cast(1 as string), cast(2 as boolean)) FROM t +-- !query 21010 schema +struct<> +-- !query 21010 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, boolean]; line 1 pos 7 + + +-- !query 21011 +SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21011 schema +struct +-- !query 21011 output +1 + + +-- !query 21012 +SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21012 schema +struct +-- !query 21012 output +1 + + +-- !query 21013 +SELECT coalesce(cast('1' as binary), cast(2 as tinyint)) FROM t +-- !query 21013 schema +struct<> +-- !query 21013 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, tinyint]; line 1 pos 7 + + +-- !query 21014 +SELECT coalesce(cast('1' as binary), cast(2 as smallint)) FROM t +-- !query 21014 schema +struct<> +-- !query 21014 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, smallint]; line 1 pos 7 + + +-- !query 21015 +SELECT coalesce(cast('1' as binary), cast(2 as int)) FROM t +-- !query 21015 schema +struct<> +-- !query 21015 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, int]; line 1 pos 7 + + +-- !query 21016 +SELECT coalesce(cast('1' as binary), cast(2 as bigint)) FROM t +-- !query 21016 schema +struct<> +-- !query 21016 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, bigint]; line 1 pos 7 + + +-- !query 21017 +SELECT coalesce(cast('1' as binary), cast(2 as float)) FROM t +-- !query 21017 schema +struct<> +-- !query 21017 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, float]; line 1 pos 7 + + +-- !query 21018 +SELECT coalesce(cast('1' as binary), cast(2 as double)) FROM t +-- !query 21018 schema +struct<> +-- !query 21018 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, double]; line 1 pos 7 + + +-- !query 21019 +SELECT coalesce(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 21019 schema +struct<> +-- !query 21019 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 7 + + +-- !query 21020 +SELECT coalesce(cast('1' as binary), cast(2 as string)) FROM t +-- !query 21020 schema +struct<> +-- !query 21020 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, string]; line 1 pos 7 + + +-- !query 21021 +SELECT coalesce(cast('1' as binary), cast('2' as binary)) FROM t +-- !query 21021 schema +struct +-- !query 21021 output +1 + + +-- !query 21022 +SELECT coalesce(cast('1' as binary), cast(2 as boolean)) FROM t +-- !query 21022 schema +struct<> +-- !query 21022 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, boolean]; line 1 pos 7 + + +-- !query 21023 +SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21023 schema +struct<> +-- !query 21023 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, timestamp]; line 1 pos 7 + + +-- !query 21024 +SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21024 schema +struct<> +-- !query 21024 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, date]; line 1 pos 7 + + +-- !query 21025 +SELECT coalesce(cast(1 as boolean), cast(2 as tinyint)) FROM t +-- !query 21025 schema +struct<> +-- !query 21025 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, tinyint]; line 1 pos 7 + + +-- !query 21026 +SELECT coalesce(cast(1 as boolean), cast(2 as smallint)) FROM t +-- !query 21026 schema +struct<> +-- !query 21026 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, smallint]; line 1 pos 7 + + +-- !query 21027 +SELECT coalesce(cast(1 as boolean), cast(2 as int)) FROM t +-- !query 21027 schema +struct<> +-- !query 21027 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, int]; line 1 pos 7 + + +-- !query 21028 +SELECT coalesce(cast(1 as boolean), cast(2 as bigint)) FROM t +-- !query 21028 schema +struct<> +-- !query 21028 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, bigint]; line 1 pos 7 + + +-- !query 21029 +SELECT coalesce(cast(1 as boolean), cast(2 as float)) FROM t +-- !query 21029 schema +struct<> +-- !query 21029 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, float]; line 1 pos 7 + + +-- !query 21030 +SELECT coalesce(cast(1 as boolean), cast(2 as double)) FROM t +-- !query 21030 schema +struct<> +-- !query 21030 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, double]; line 1 pos 7 + + +-- !query 21031 +SELECT coalesce(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 21031 schema +struct<> +-- !query 21031 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, decimal(10,0)]; line 1 pos 7 + + +-- !query 21032 +SELECT coalesce(cast(1 as boolean), cast(2 as string)) FROM t +-- !query 21032 schema +struct<> +-- !query 21032 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, string]; line 1 pos 7 + + +-- !query 21033 +SELECT coalesce(cast(1 as boolean), cast('2' as binary)) FROM t +-- !query 21033 schema +struct<> +-- !query 21033 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, binary]; line 1 pos 7 + + +-- !query 21034 +SELECT coalesce(cast(1 as boolean), cast(2 as boolean)) FROM t +-- !query 21034 schema +struct +-- !query 21034 output +true + + +-- !query 21035 +SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21035 schema +struct<> +-- !query 21035 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, timestamp]; line 1 pos 7 + + +-- !query 21036 +SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21036 schema +struct<> +-- !query 21036 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, date]; line 1 pos 7 + + +-- !query 21037 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 21037 schema +struct<> +-- !query 21037 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, tinyint]; line 1 pos 7 + + +-- !query 21038 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 21038 schema +struct<> +-- !query 21038 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, smallint]; line 1 pos 7 + + +-- !query 21039 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 21039 schema +struct<> +-- !query 21039 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, int]; line 1 pos 7 + + +-- !query 21040 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 21040 schema +struct<> +-- !query 21040 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, bigint]; line 1 pos 7 + + +-- !query 21041 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 21041 schema +struct<> +-- !query 21041 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, float]; line 1 pos 7 + + +-- !query 21042 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 21042 schema +struct<> +-- !query 21042 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, double]; line 1 pos 7 + + +-- !query 21043 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 21043 schema +struct<> +-- !query 21043 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, decimal(10,0)]; line 1 pos 7 + + +-- !query 21044 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 21044 schema +struct +-- !query 21044 output +2017-12-11 09:30:00 + + +-- !query 21045 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 21045 schema +struct<> +-- !query 21045 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, binary]; line 1 pos 7 + + +-- !query 21046 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 21046 schema +struct<> +-- !query 21046 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, boolean]; line 1 pos 7 + + +-- !query 21047 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21047 schema +struct +-- !query 21047 output +2017-12-11 09:30:00 + + +-- !query 21048 +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21048 schema +struct +-- !query 21048 output +2017-12-11 09:30:00 + + +-- !query 21049 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 21049 schema +struct<> +-- !query 21049 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, tinyint]; line 1 pos 7 + + +-- !query 21050 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 21050 schema +struct<> +-- !query 21050 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, smallint]; line 1 pos 7 + + +-- !query 21051 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t +-- !query 21051 schema +struct<> +-- !query 21051 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, int]; line 1 pos 7 + + +-- !query 21052 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 21052 schema +struct<> +-- !query 21052 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, bigint]; line 1 pos 7 + + +-- !query 21053 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t +-- !query 21053 schema +struct<> +-- !query 21053 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, float]; line 1 pos 7 + + +-- !query 21054 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t +-- !query 21054 schema +struct<> +-- !query 21054 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, double]; line 1 pos 7 + + +-- !query 21055 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 21055 schema +struct<> +-- !query 21055 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, decimal(10,0)]; line 1 pos 7 + + +-- !query 21056 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t +-- !query 21056 schema +struct +-- !query 21056 output +2017-12-11 + + +-- !query 21057 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 21057 schema +struct<> +-- !query 21057 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, binary]; line 1 pos 7 + + +-- !query 21058 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 21058 schema +struct<> +-- !query 21058 output +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, boolean]; line 1 pos 7 + + +-- !query 21059 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21059 schema +struct +-- !query 21059 output +2017-12-11 00:00:00 + + +-- !query 21060 +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21060 schema +struct +-- !query 21060 output +2017-12-11 + + +-- !query 21061 +SELECT greatest(cast(1 as tinyint), cast(2 as tinyint)) FROM t +-- !query 21061 schema +struct +-- !query 21061 output +2 + + +-- !query 21062 +SELECT greatest(cast(1 as tinyint), cast(2 as smallint)) FROM t +-- !query 21062 schema +struct +-- !query 21062 output +2 + + +-- !query 21063 +SELECT greatest(cast(1 as tinyint), cast(2 as int)) FROM t +-- !query 21063 schema +struct +-- !query 21063 output +2 + + +-- !query 21064 +SELECT greatest(cast(1 as tinyint), cast(2 as bigint)) FROM t +-- !query 21064 schema +struct +-- !query 21064 output +2 + + +-- !query 21065 +SELECT greatest(cast(1 as tinyint), cast(2 as float)) FROM t +-- !query 21065 schema +struct +-- !query 21065 output +2.0 + + +-- !query 21066 +SELECT greatest(cast(1 as tinyint), cast(2 as double)) FROM t +-- !query 21066 schema +struct +-- !query 21066 output +2.0 + + +-- !query 21067 +SELECT greatest(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 21067 schema +struct +-- !query 21067 output +2 + + +-- !query 21068 +SELECT greatest(cast(1 as tinyint), cast(2 as string)) FROM t +-- !query 21068 schema +struct<> +-- !query 21068 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, string).; line 1 pos 7 + + +-- !query 21069 +SELECT greatest(cast(1 as tinyint), cast('2' as binary)) FROM t +-- !query 21069 schema +struct<> +-- !query 21069 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, binary).; line 1 pos 7 + + +-- !query 21070 +SELECT greatest(cast(1 as tinyint), cast(2 as boolean)) FROM t +-- !query 21070 schema +struct<> +-- !query 21070 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, boolean).; line 1 pos 7 + + +-- !query 21071 +SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21071 schema +struct<> +-- !query 21071 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, timestamp).; line 1 pos 7 + + +-- !query 21072 +SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21072 schema +struct<> +-- !query 21072 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, date).; line 1 pos 7 + + +-- !query 21073 +SELECT greatest(cast(1 as smallint), cast(2 as tinyint)) FROM t +-- !query 21073 schema +struct +-- !query 21073 output +2 + + +-- !query 21074 +SELECT greatest(cast(1 as smallint), cast(2 as smallint)) FROM t +-- !query 21074 schema +struct +-- !query 21074 output +2 + + +-- !query 21075 +SELECT greatest(cast(1 as smallint), cast(2 as int)) FROM t +-- !query 21075 schema +struct +-- !query 21075 output +2 + + +-- !query 21076 +SELECT greatest(cast(1 as smallint), cast(2 as bigint)) FROM t +-- !query 21076 schema +struct +-- !query 21076 output +2 + + +-- !query 21077 +SELECT greatest(cast(1 as smallint), cast(2 as float)) FROM t +-- !query 21077 schema +struct +-- !query 21077 output +2.0 + + +-- !query 21078 +SELECT greatest(cast(1 as smallint), cast(2 as double)) FROM t +-- !query 21078 schema +struct +-- !query 21078 output +2.0 + + +-- !query 21079 +SELECT greatest(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 21079 schema +struct +-- !query 21079 output +2 + + +-- !query 21080 +SELECT greatest(cast(1 as smallint), cast(2 as string)) FROM t +-- !query 21080 schema +struct<> +-- !query 21080 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, string).; line 1 pos 7 + + +-- !query 21081 +SELECT greatest(cast(1 as smallint), cast('2' as binary)) FROM t +-- !query 21081 schema +struct<> +-- !query 21081 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, binary).; line 1 pos 7 + + +-- !query 21082 +SELECT greatest(cast(1 as smallint), cast(2 as boolean)) FROM t +-- !query 21082 schema +struct<> +-- !query 21082 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, boolean).; line 1 pos 7 + + +-- !query 21083 +SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21083 schema +struct<> +-- !query 21083 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, timestamp).; line 1 pos 7 + + +-- !query 21084 +SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21084 schema +struct<> +-- !query 21084 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, date).; line 1 pos 7 + + +-- !query 21085 +SELECT greatest(cast(1 as int), cast(2 as tinyint)) FROM t +-- !query 21085 schema +struct +-- !query 21085 output +2 + + +-- !query 21086 +SELECT greatest(cast(1 as int), cast(2 as smallint)) FROM t +-- !query 21086 schema +struct +-- !query 21086 output +2 + + +-- !query 21087 +SELECT greatest(cast(1 as int), cast(2 as int)) FROM t +-- !query 21087 schema +struct +-- !query 21087 output +2 + + +-- !query 21088 +SELECT greatest(cast(1 as int), cast(2 as bigint)) FROM t +-- !query 21088 schema +struct +-- !query 21088 output +2 + + +-- !query 21089 +SELECT greatest(cast(1 as int), cast(2 as float)) FROM t +-- !query 21089 schema +struct +-- !query 21089 output +2.0 + + +-- !query 21090 +SELECT greatest(cast(1 as int), cast(2 as double)) FROM t +-- !query 21090 schema +struct +-- !query 21090 output +2.0 + + +-- !query 21091 +SELECT greatest(cast(1 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 21091 schema +struct +-- !query 21091 output +2 + + +-- !query 21092 +SELECT greatest(cast(1 as int), cast(2 as string)) FROM t +-- !query 21092 schema +struct<> +-- !query 21092 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, string).; line 1 pos 7 + + +-- !query 21093 +SELECT greatest(cast(1 as int), cast('2' as binary)) FROM t +-- !query 21093 schema +struct<> +-- !query 21093 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, binary).; line 1 pos 7 + + +-- !query 21094 +SELECT greatest(cast(1 as int), cast(2 as boolean)) FROM t +-- !query 21094 schema +struct<> +-- !query 21094 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, boolean).; line 1 pos 7 + + +-- !query 21095 +SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21095 schema +struct<> +-- !query 21095 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, timestamp).; line 1 pos 7 + + +-- !query 21096 +SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21096 schema +struct<> +-- !query 21096 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, date).; line 1 pos 7 + + +-- !query 21097 +SELECT greatest(cast(1 as bigint), cast(2 as tinyint)) FROM t +-- !query 21097 schema +struct +-- !query 21097 output +2 + + +-- !query 21098 +SELECT greatest(cast(1 as bigint), cast(2 as smallint)) FROM t +-- !query 21098 schema +struct +-- !query 21098 output +2 + + +-- !query 21099 +SELECT greatest(cast(1 as bigint), cast(2 as int)) FROM t +-- !query 21099 schema +struct +-- !query 21099 output +2 + + +-- !query 21100 +SELECT greatest(cast(1 as bigint), cast(2 as bigint)) FROM t +-- !query 21100 schema +struct +-- !query 21100 output +2 + + +-- !query 21101 +SELECT greatest(cast(1 as bigint), cast(2 as float)) FROM t +-- !query 21101 schema +struct +-- !query 21101 output +2.0 + + +-- !query 21102 +SELECT greatest(cast(1 as bigint), cast(2 as double)) FROM t +-- !query 21102 schema +struct +-- !query 21102 output +2.0 + + +-- !query 21103 +SELECT greatest(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 21103 schema +struct +-- !query 21103 output +2 + + +-- !query 21104 +SELECT greatest(cast(1 as bigint), cast(2 as string)) FROM t +-- !query 21104 schema +struct<> +-- !query 21104 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, string).; line 1 pos 7 + + +-- !query 21105 +SELECT greatest(cast(1 as bigint), cast('2' as binary)) FROM t +-- !query 21105 schema +struct<> +-- !query 21105 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, binary).; line 1 pos 7 + + +-- !query 21106 +SELECT greatest(cast(1 as bigint), cast(2 as boolean)) FROM t +-- !query 21106 schema +struct<> +-- !query 21106 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, boolean).; line 1 pos 7 + + +-- !query 21107 +SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21107 schema +struct<> +-- !query 21107 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, timestamp).; line 1 pos 7 + + +-- !query 21108 +SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21108 schema +struct<> +-- !query 21108 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, date).; line 1 pos 7 + + +-- !query 21109 +SELECT greatest(cast(1 as float), cast(2 as tinyint)) FROM t +-- !query 21109 schema +struct +-- !query 21109 output +2.0 + + +-- !query 21110 +SELECT greatest(cast(1 as float), cast(2 as smallint)) FROM t +-- !query 21110 schema +struct +-- !query 21110 output +2.0 + + +-- !query 21111 +SELECT greatest(cast(1 as float), cast(2 as int)) FROM t +-- !query 21111 schema +struct +-- !query 21111 output +2.0 + + +-- !query 21112 +SELECT greatest(cast(1 as float), cast(2 as bigint)) FROM t +-- !query 21112 schema +struct +-- !query 21112 output +2.0 + + +-- !query 21113 +SELECT greatest(cast(1 as float), cast(2 as float)) FROM t +-- !query 21113 schema +struct +-- !query 21113 output +2.0 + + +-- !query 21114 +SELECT greatest(cast(1 as float), cast(2 as double)) FROM t +-- !query 21114 schema +struct +-- !query 21114 output +2.0 + + +-- !query 21115 +SELECT greatest(cast(1 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 21115 schema +struct +-- !query 21115 output +2.0 + + +-- !query 21116 +SELECT greatest(cast(1 as float), cast(2 as string)) FROM t +-- !query 21116 schema +struct<> +-- !query 21116 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, string).; line 1 pos 7 + + +-- !query 21117 +SELECT greatest(cast(1 as float), cast('2' as binary)) FROM t +-- !query 21117 schema +struct<> +-- !query 21117 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, binary).; line 1 pos 7 + + +-- !query 21118 +SELECT greatest(cast(1 as float), cast(2 as boolean)) FROM t +-- !query 21118 schema +struct<> +-- !query 21118 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, boolean).; line 1 pos 7 + + +-- !query 21119 +SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21119 schema +struct<> +-- !query 21119 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, timestamp).; line 1 pos 7 + + +-- !query 21120 +SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21120 schema +struct<> +-- !query 21120 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, date).; line 1 pos 7 + + +-- !query 21121 +SELECT greatest(cast(1 as double), cast(2 as tinyint)) FROM t +-- !query 21121 schema +struct +-- !query 21121 output +2.0 + + +-- !query 21122 +SELECT greatest(cast(1 as double), cast(2 as smallint)) FROM t +-- !query 21122 schema +struct +-- !query 21122 output +2.0 + + +-- !query 21123 +SELECT greatest(cast(1 as double), cast(2 as int)) FROM t +-- !query 21123 schema +struct +-- !query 21123 output +2.0 + + +-- !query 21124 +SELECT greatest(cast(1 as double), cast(2 as bigint)) FROM t +-- !query 21124 schema +struct +-- !query 21124 output +2.0 + + +-- !query 21125 +SELECT greatest(cast(1 as double), cast(2 as float)) FROM t +-- !query 21125 schema +struct +-- !query 21125 output +2.0 + + +-- !query 21126 +SELECT greatest(cast(1 as double), cast(2 as double)) FROM t +-- !query 21126 schema +struct +-- !query 21126 output +2.0 + + +-- !query 21127 +SELECT greatest(cast(1 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 21127 schema +struct +-- !query 21127 output +2.0 + + +-- !query 21128 +SELECT greatest(cast(1 as double), cast(2 as string)) FROM t +-- !query 21128 schema +struct<> +-- !query 21128 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, string).; line 1 pos 7 + + +-- !query 21129 +SELECT greatest(cast(1 as double), cast('2' as binary)) FROM t +-- !query 21129 schema +struct<> +-- !query 21129 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, binary).; line 1 pos 7 + + +-- !query 21130 +SELECT greatest(cast(1 as double), cast(2 as boolean)) FROM t +-- !query 21130 schema +struct<> +-- !query 21130 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, boolean).; line 1 pos 7 + + +-- !query 21131 +SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21131 schema +struct<> +-- !query 21131 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, timestamp).; line 1 pos 7 + + +-- !query 21132 +SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21132 schema +struct<> +-- !query 21132 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, date).; line 1 pos 7 + + +-- !query 21133 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 21133 schema +struct +-- !query 21133 output +2 + + +-- !query 21134 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 21134 schema +struct +-- !query 21134 output +2 + + +-- !query 21135 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 21135 schema +struct +-- !query 21135 output +2 + + +-- !query 21136 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 21136 schema +struct +-- !query 21136 output +2 + + +-- !query 21137 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 21137 schema +struct +-- !query 21137 output +2.0 + + +-- !query 21138 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 21138 schema +struct +-- !query 21138 output +2.0 + + +-- !query 21139 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 21139 schema +struct +-- !query 21139 output +2 + + +-- !query 21140 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 21140 schema +struct<> +-- !query 21140 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), string).; line 1 pos 7 + + +-- !query 21141 +SELECT greatest(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 21141 schema +struct<> +-- !query 21141 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), binary).; line 1 pos 7 + + +-- !query 21142 +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 21142 schema +struct<> +-- !query 21142 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), boolean).; line 1 pos 7 + + +-- !query 21143 +SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21143 schema +struct<> +-- !query 21143 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), timestamp).; line 1 pos 7 + + +-- !query 21144 +SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21144 schema +struct<> +-- !query 21144 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), date).; line 1 pos 7 + + +-- !query 21145 +SELECT greatest(cast(1 as string), cast(2 as tinyint)) FROM t +-- !query 21145 schema +struct<> +-- !query 21145 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, tinyint).; line 1 pos 7 + + +-- !query 21146 +SELECT greatest(cast(1 as string), cast(2 as smallint)) FROM t +-- !query 21146 schema +struct<> +-- !query 21146 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, smallint).; line 1 pos 7 + + +-- !query 21147 +SELECT greatest(cast(1 as string), cast(2 as int)) FROM t +-- !query 21147 schema +struct<> +-- !query 21147 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, int).; line 1 pos 7 + + +-- !query 21148 +SELECT greatest(cast(1 as string), cast(2 as bigint)) FROM t +-- !query 21148 schema +struct<> +-- !query 21148 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, bigint).; line 1 pos 7 + + +-- !query 21149 +SELECT greatest(cast(1 as string), cast(2 as float)) FROM t +-- !query 21149 schema +struct<> +-- !query 21149 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, float).; line 1 pos 7 + + +-- !query 21150 +SELECT greatest(cast(1 as string), cast(2 as double)) FROM t +-- !query 21150 schema +struct<> +-- !query 21150 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, double).; line 1 pos 7 + + +-- !query 21151 +SELECT greatest(cast(1 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 21151 schema +struct<> +-- !query 21151 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, decimal(10,0)).; line 1 pos 7 + + +-- !query 21152 +SELECT greatest(cast(1 as string), cast(2 as string)) FROM t +-- !query 21152 schema +struct +-- !query 21152 output +2 + + +-- !query 21153 +SELECT greatest(cast(1 as string), cast('2' as binary)) FROM t +-- !query 21153 schema +struct<> +-- !query 21153 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, binary).; line 1 pos 7 + + +-- !query 21154 +SELECT greatest(cast(1 as string), cast(2 as boolean)) FROM t +-- !query 21154 schema +struct<> +-- !query 21154 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, boolean).; line 1 pos 7 + + +-- !query 21155 +SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21155 schema +struct<> +-- !query 21155 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, timestamp).; line 1 pos 7 + + +-- !query 21156 +SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21156 schema +struct<> +-- !query 21156 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, date).; line 1 pos 7 + + +-- !query 21157 +SELECT greatest(cast('1' as binary), cast(2 as tinyint)) FROM t +-- !query 21157 schema +struct<> +-- !query 21157 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, tinyint).; line 1 pos 7 + + +-- !query 21158 +SELECT greatest(cast('1' as binary), cast(2 as smallint)) FROM t +-- !query 21158 schema +struct<> +-- !query 21158 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, smallint).; line 1 pos 7 + + +-- !query 21159 +SELECT greatest(cast('1' as binary), cast(2 as int)) FROM t +-- !query 21159 schema +struct<> +-- !query 21159 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, int).; line 1 pos 7 + + +-- !query 21160 +SELECT greatest(cast('1' as binary), cast(2 as bigint)) FROM t +-- !query 21160 schema +struct<> +-- !query 21160 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, bigint).; line 1 pos 7 + + +-- !query 21161 +SELECT greatest(cast('1' as binary), cast(2 as float)) FROM t +-- !query 21161 schema +struct<> +-- !query 21161 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, float).; line 1 pos 7 + + +-- !query 21162 +SELECT greatest(cast('1' as binary), cast(2 as double)) FROM t +-- !query 21162 schema +struct<> +-- !query 21162 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, double).; line 1 pos 7 + + +-- !query 21163 +SELECT greatest(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 21163 schema +struct<> +-- !query 21163 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, decimal(10,0)).; line 1 pos 7 + + +-- !query 21164 +SELECT greatest(cast('1' as binary), cast(2 as string)) FROM t +-- !query 21164 schema +struct<> +-- !query 21164 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, string).; line 1 pos 7 + + +-- !query 21165 +SELECT greatest(cast('1' as binary), cast('2' as binary)) FROM t +-- !query 21165 schema +struct +-- !query 21165 output +2 + + +-- !query 21166 +SELECT greatest(cast('1' as binary), cast(2 as boolean)) FROM t +-- !query 21166 schema +struct<> +-- !query 21166 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, boolean).; line 1 pos 7 + + +-- !query 21167 +SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21167 schema +struct<> +-- !query 21167 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, timestamp).; line 1 pos 7 + + +-- !query 21168 +SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21168 schema +struct<> +-- !query 21168 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, date).; line 1 pos 7 + + +-- !query 21169 +SELECT greatest(cast(1 as boolean), cast(2 as tinyint)) FROM t +-- !query 21169 schema +struct<> +-- !query 21169 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, tinyint).; line 1 pos 7 + + +-- !query 21170 +SELECT greatest(cast(1 as boolean), cast(2 as smallint)) FROM t +-- !query 21170 schema +struct<> +-- !query 21170 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, smallint).; line 1 pos 7 + + +-- !query 21171 +SELECT greatest(cast(1 as boolean), cast(2 as int)) FROM t +-- !query 21171 schema +struct<> +-- !query 21171 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, int).; line 1 pos 7 + + +-- !query 21172 +SELECT greatest(cast(1 as boolean), cast(2 as bigint)) FROM t +-- !query 21172 schema +struct<> +-- !query 21172 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, bigint).; line 1 pos 7 + + +-- !query 21173 +SELECT greatest(cast(1 as boolean), cast(2 as float)) FROM t +-- !query 21173 schema +struct<> +-- !query 21173 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, float).; line 1 pos 7 + + +-- !query 21174 +SELECT greatest(cast(1 as boolean), cast(2 as double)) FROM t +-- !query 21174 schema +struct<> +-- !query 21174 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, double).; line 1 pos 7 + + +-- !query 21175 +SELECT greatest(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 21175 schema +struct<> +-- !query 21175 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, decimal(10,0)).; line 1 pos 7 + + +-- !query 21176 +SELECT greatest(cast(1 as boolean), cast(2 as string)) FROM t +-- !query 21176 schema +struct<> +-- !query 21176 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, string).; line 1 pos 7 + + +-- !query 21177 +SELECT greatest(cast(1 as boolean), cast('2' as binary)) FROM t +-- !query 21177 schema +struct<> +-- !query 21177 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, binary).; line 1 pos 7 + + +-- !query 21178 +SELECT greatest(cast(1 as boolean), cast(2 as boolean)) FROM t +-- !query 21178 schema +struct +-- !query 21178 output +true + + +-- !query 21179 +SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21179 schema +struct<> +-- !query 21179 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, timestamp).; line 1 pos 7 + + +-- !query 21180 +SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21180 schema +struct<> +-- !query 21180 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, date).; line 1 pos 7 + + +-- !query 21181 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 21181 schema +struct<> +-- !query 21181 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, tinyint).; line 1 pos 7 + + +-- !query 21182 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 21182 schema +struct<> +-- !query 21182 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, smallint).; line 1 pos 7 + + +-- !query 21183 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 21183 schema +struct<> +-- !query 21183 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, int).; line 1 pos 7 + + +-- !query 21184 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 21184 schema +struct<> +-- !query 21184 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, bigint).; line 1 pos 7 + + +-- !query 21185 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 21185 schema +struct<> +-- !query 21185 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, float).; line 1 pos 7 + + +-- !query 21186 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 21186 schema +struct<> +-- !query 21186 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, double).; line 1 pos 7 + + +-- !query 21187 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 21187 schema +struct<> +-- !query 21187 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, decimal(10,0)).; line 1 pos 7 + + +-- !query 21188 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 21188 schema +struct<> +-- !query 21188 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, string).; line 1 pos 7 + + +-- !query 21189 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 21189 schema +struct<> +-- !query 21189 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, binary).; line 1 pos 7 + + +-- !query 21190 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 21190 schema +struct<> +-- !query 21190 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, boolean).; line 1 pos 7 + + +-- !query 21191 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21191 schema +struct +-- !query 21191 output +2017-12-12 09:30:00 + + +-- !query 21192 +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21192 schema +struct +-- !query 21192 output +2017-12-12 00:00:00 + + +-- !query 21193 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 21193 schema +struct<> +-- !query 21193 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, tinyint).; line 1 pos 7 + + +-- !query 21194 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 21194 schema +struct<> +-- !query 21194 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, smallint).; line 1 pos 7 + + +-- !query 21195 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t +-- !query 21195 schema +struct<> +-- !query 21195 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, int).; line 1 pos 7 + + +-- !query 21196 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 21196 schema +struct<> +-- !query 21196 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, bigint).; line 1 pos 7 + + +-- !query 21197 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t +-- !query 21197 schema +struct<> +-- !query 21197 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, float).; line 1 pos 7 + + +-- !query 21198 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t +-- !query 21198 schema +struct<> +-- !query 21198 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, double).; line 1 pos 7 + + +-- !query 21199 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 21199 schema +struct<> +-- !query 21199 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, decimal(10,0)).; line 1 pos 7 + + +-- !query 21200 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t +-- !query 21200 schema +struct<> +-- !query 21200 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, string).; line 1 pos 7 + + +-- !query 21201 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 21201 schema +struct<> +-- !query 21201 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, binary).; line 1 pos 7 + + +-- !query 21202 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 21202 schema +struct<> +-- !query 21202 output +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, boolean).; line 1 pos 7 + + +-- !query 21203 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21203 schema +struct +-- !query 21203 output +2017-12-12 09:30:00 + + +-- !query 21204 +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21204 schema +struct +-- !query 21204 output +2017-12-12 + + +-- !query 21205 +SELECT least(cast(1 as tinyint), cast(2 as tinyint)) FROM t +-- !query 21205 schema +struct +-- !query 21205 output +1 + + +-- !query 21206 +SELECT least(cast(1 as tinyint), cast(2 as smallint)) FROM t +-- !query 21206 schema +struct +-- !query 21206 output +1 + + +-- !query 21207 +SELECT least(cast(1 as tinyint), cast(2 as int)) FROM t +-- !query 21207 schema +struct +-- !query 21207 output +1 + + +-- !query 21208 +SELECT least(cast(1 as tinyint), cast(2 as bigint)) FROM t +-- !query 21208 schema +struct +-- !query 21208 output +1 + + +-- !query 21209 +SELECT least(cast(1 as tinyint), cast(2 as float)) FROM t +-- !query 21209 schema +struct +-- !query 21209 output +1.0 + + +-- !query 21210 +SELECT least(cast(1 as tinyint), cast(2 as double)) FROM t +-- !query 21210 schema +struct +-- !query 21210 output +1.0 + + +-- !query 21211 +SELECT least(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 21211 schema +struct +-- !query 21211 output +1 + + +-- !query 21212 +SELECT least(cast(1 as tinyint), cast(2 as string)) FROM t +-- !query 21212 schema +struct<> +-- !query 21212 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, string).; line 1 pos 7 + + +-- !query 21213 +SELECT least(cast(1 as tinyint), cast('2' as binary)) FROM t +-- !query 21213 schema +struct<> +-- !query 21213 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, binary).; line 1 pos 7 + + +-- !query 21214 +SELECT least(cast(1 as tinyint), cast(2 as boolean)) FROM t +-- !query 21214 schema +struct<> +-- !query 21214 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, boolean).; line 1 pos 7 + + +-- !query 21215 +SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21215 schema +struct<> +-- !query 21215 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, timestamp).; line 1 pos 7 + + +-- !query 21216 +SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21216 schema +struct<> +-- !query 21216 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, date).; line 1 pos 7 + + +-- !query 21217 +SELECT least(cast(1 as smallint), cast(2 as tinyint)) FROM t +-- !query 21217 schema +struct +-- !query 21217 output +1 + + +-- !query 21218 +SELECT least(cast(1 as smallint), cast(2 as smallint)) FROM t +-- !query 21218 schema +struct +-- !query 21218 output +1 + + +-- !query 21219 +SELECT least(cast(1 as smallint), cast(2 as int)) FROM t +-- !query 21219 schema +struct +-- !query 21219 output +1 + + +-- !query 21220 +SELECT least(cast(1 as smallint), cast(2 as bigint)) FROM t +-- !query 21220 schema +struct +-- !query 21220 output +1 + + +-- !query 21221 +SELECT least(cast(1 as smallint), cast(2 as float)) FROM t +-- !query 21221 schema +struct +-- !query 21221 output +1.0 + + +-- !query 21222 +SELECT least(cast(1 as smallint), cast(2 as double)) FROM t +-- !query 21222 schema +struct +-- !query 21222 output +1.0 + + +-- !query 21223 +SELECT least(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 21223 schema +struct +-- !query 21223 output +1 + + +-- !query 21224 +SELECT least(cast(1 as smallint), cast(2 as string)) FROM t +-- !query 21224 schema +struct<> +-- !query 21224 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, string).; line 1 pos 7 + + +-- !query 21225 +SELECT least(cast(1 as smallint), cast('2' as binary)) FROM t +-- !query 21225 schema +struct<> +-- !query 21225 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, binary).; line 1 pos 7 + + +-- !query 21226 +SELECT least(cast(1 as smallint), cast(2 as boolean)) FROM t +-- !query 21226 schema +struct<> +-- !query 21226 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, boolean).; line 1 pos 7 + + +-- !query 21227 +SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21227 schema +struct<> +-- !query 21227 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, timestamp).; line 1 pos 7 + + +-- !query 21228 +SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21228 schema +struct<> +-- !query 21228 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, date).; line 1 pos 7 + + +-- !query 21229 +SELECT least(cast(1 as int), cast(2 as tinyint)) FROM t +-- !query 21229 schema +struct +-- !query 21229 output +1 + + +-- !query 21230 +SELECT least(cast(1 as int), cast(2 as smallint)) FROM t +-- !query 21230 schema +struct +-- !query 21230 output +1 + + +-- !query 21231 +SELECT least(cast(1 as int), cast(2 as int)) FROM t +-- !query 21231 schema +struct +-- !query 21231 output +1 + + +-- !query 21232 +SELECT least(cast(1 as int), cast(2 as bigint)) FROM t +-- !query 21232 schema +struct +-- !query 21232 output +1 + + +-- !query 21233 +SELECT least(cast(1 as int), cast(2 as float)) FROM t +-- !query 21233 schema +struct +-- !query 21233 output +1.0 + + +-- !query 21234 +SELECT least(cast(1 as int), cast(2 as double)) FROM t +-- !query 21234 schema +struct +-- !query 21234 output +1.0 + + +-- !query 21235 +SELECT least(cast(1 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 21235 schema +struct +-- !query 21235 output +1 + + +-- !query 21236 +SELECT least(cast(1 as int), cast(2 as string)) FROM t +-- !query 21236 schema +struct<> +-- !query 21236 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, string).; line 1 pos 7 + + +-- !query 21237 +SELECT least(cast(1 as int), cast('2' as binary)) FROM t +-- !query 21237 schema +struct<> +-- !query 21237 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, binary).; line 1 pos 7 + + +-- !query 21238 +SELECT least(cast(1 as int), cast(2 as boolean)) FROM t +-- !query 21238 schema +struct<> +-- !query 21238 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, boolean).; line 1 pos 7 + + +-- !query 21239 +SELECT least(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21239 schema +struct<> +-- !query 21239 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, timestamp).; line 1 pos 7 + + +-- !query 21240 +SELECT least(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21240 schema +struct<> +-- !query 21240 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, date).; line 1 pos 7 + + +-- !query 21241 +SELECT least(cast(1 as bigint), cast(2 as tinyint)) FROM t +-- !query 21241 schema +struct +-- !query 21241 output +1 + + +-- !query 21242 +SELECT least(cast(1 as bigint), cast(2 as smallint)) FROM t +-- !query 21242 schema +struct +-- !query 21242 output +1 + + +-- !query 21243 +SELECT least(cast(1 as bigint), cast(2 as int)) FROM t +-- !query 21243 schema +struct +-- !query 21243 output +1 + + +-- !query 21244 +SELECT least(cast(1 as bigint), cast(2 as bigint)) FROM t +-- !query 21244 schema +struct +-- !query 21244 output +1 + + +-- !query 21245 +SELECT least(cast(1 as bigint), cast(2 as float)) FROM t +-- !query 21245 schema +struct +-- !query 21245 output +1.0 + + +-- !query 21246 +SELECT least(cast(1 as bigint), cast(2 as double)) FROM t +-- !query 21246 schema +struct +-- !query 21246 output +1.0 + + +-- !query 21247 +SELECT least(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 21247 schema +struct +-- !query 21247 output +1 + + +-- !query 21248 +SELECT least(cast(1 as bigint), cast(2 as string)) FROM t +-- !query 21248 schema +struct<> +-- !query 21248 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, string).; line 1 pos 7 + + +-- !query 21249 +SELECT least(cast(1 as bigint), cast('2' as binary)) FROM t +-- !query 21249 schema +struct<> +-- !query 21249 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, binary).; line 1 pos 7 + + +-- !query 21250 +SELECT least(cast(1 as bigint), cast(2 as boolean)) FROM t +-- !query 21250 schema +struct<> +-- !query 21250 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, boolean).; line 1 pos 7 + + +-- !query 21251 +SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21251 schema +struct<> +-- !query 21251 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, timestamp).; line 1 pos 7 + + +-- !query 21252 +SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21252 schema +struct<> +-- !query 21252 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, date).; line 1 pos 7 + + +-- !query 21253 +SELECT least(cast(1 as float), cast(2 as tinyint)) FROM t +-- !query 21253 schema +struct +-- !query 21253 output +1.0 + + +-- !query 21254 +SELECT least(cast(1 as float), cast(2 as smallint)) FROM t +-- !query 21254 schema +struct +-- !query 21254 output +1.0 + + +-- !query 21255 +SELECT least(cast(1 as float), cast(2 as int)) FROM t +-- !query 21255 schema +struct +-- !query 21255 output +1.0 + + +-- !query 21256 +SELECT least(cast(1 as float), cast(2 as bigint)) FROM t +-- !query 21256 schema +struct +-- !query 21256 output +1.0 + + +-- !query 21257 +SELECT least(cast(1 as float), cast(2 as float)) FROM t +-- !query 21257 schema +struct +-- !query 21257 output +1.0 + + +-- !query 21258 +SELECT least(cast(1 as float), cast(2 as double)) FROM t +-- !query 21258 schema +struct +-- !query 21258 output +1.0 + + +-- !query 21259 +SELECT least(cast(1 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 21259 schema +struct +-- !query 21259 output +1.0 + + +-- !query 21260 +SELECT least(cast(1 as float), cast(2 as string)) FROM t +-- !query 21260 schema +struct<> +-- !query 21260 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, string).; line 1 pos 7 + + +-- !query 21261 +SELECT least(cast(1 as float), cast('2' as binary)) FROM t +-- !query 21261 schema +struct<> +-- !query 21261 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, binary).; line 1 pos 7 + + +-- !query 21262 +SELECT least(cast(1 as float), cast(2 as boolean)) FROM t +-- !query 21262 schema +struct<> +-- !query 21262 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, boolean).; line 1 pos 7 + + +-- !query 21263 +SELECT least(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21263 schema +struct<> +-- !query 21263 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, timestamp).; line 1 pos 7 + + +-- !query 21264 +SELECT least(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21264 schema +struct<> +-- !query 21264 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, date).; line 1 pos 7 + + +-- !query 21265 +SELECT least(cast(1 as double), cast(2 as tinyint)) FROM t +-- !query 21265 schema +struct +-- !query 21265 output +1.0 + + +-- !query 21266 +SELECT least(cast(1 as double), cast(2 as smallint)) FROM t +-- !query 21266 schema +struct +-- !query 21266 output +1.0 + + +-- !query 21267 +SELECT least(cast(1 as double), cast(2 as int)) FROM t +-- !query 21267 schema +struct +-- !query 21267 output +1.0 + + +-- !query 21268 +SELECT least(cast(1 as double), cast(2 as bigint)) FROM t +-- !query 21268 schema +struct +-- !query 21268 output +1.0 + + +-- !query 21269 +SELECT least(cast(1 as double), cast(2 as float)) FROM t +-- !query 21269 schema +struct +-- !query 21269 output +1.0 + + +-- !query 21270 +SELECT least(cast(1 as double), cast(2 as double)) FROM t +-- !query 21270 schema +struct +-- !query 21270 output +1.0 + + +-- !query 21271 +SELECT least(cast(1 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 21271 schema +struct +-- !query 21271 output +1.0 + + +-- !query 21272 +SELECT least(cast(1 as double), cast(2 as string)) FROM t +-- !query 21272 schema +struct<> +-- !query 21272 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, string).; line 1 pos 7 + + +-- !query 21273 +SELECT least(cast(1 as double), cast('2' as binary)) FROM t +-- !query 21273 schema +struct<> +-- !query 21273 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, binary).; line 1 pos 7 + + +-- !query 21274 +SELECT least(cast(1 as double), cast(2 as boolean)) FROM t +-- !query 21274 schema +struct<> +-- !query 21274 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, boolean).; line 1 pos 7 + + +-- !query 21275 +SELECT least(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21275 schema +struct<> +-- !query 21275 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, timestamp).; line 1 pos 7 + + +-- !query 21276 +SELECT least(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21276 schema +struct<> +-- !query 21276 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, date).; line 1 pos 7 + + +-- !query 21277 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 21277 schema +struct +-- !query 21277 output +1 + + +-- !query 21278 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 21278 schema +struct +-- !query 21278 output +1 + + +-- !query 21279 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 21279 schema +struct +-- !query 21279 output +1 + + +-- !query 21280 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 21280 schema +struct +-- !query 21280 output +1 + + +-- !query 21281 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 21281 schema +struct +-- !query 21281 output +1.0 + + +-- !query 21282 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 21282 schema +struct +-- !query 21282 output +1.0 + + +-- !query 21283 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 21283 schema +struct +-- !query 21283 output +1 + + +-- !query 21284 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 21284 schema +struct<> +-- !query 21284 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), string).; line 1 pos 7 + + +-- !query 21285 +SELECT least(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 21285 schema +struct<> +-- !query 21285 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), binary).; line 1 pos 7 + + +-- !query 21286 +SELECT least(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 21286 schema +struct<> +-- !query 21286 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), boolean).; line 1 pos 7 + + +-- !query 21287 +SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21287 schema +struct<> +-- !query 21287 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), timestamp).; line 1 pos 7 + + +-- !query 21288 +SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21288 schema +struct<> +-- !query 21288 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), date).; line 1 pos 7 + + +-- !query 21289 +SELECT least(cast(1 as string), cast(2 as tinyint)) FROM t +-- !query 21289 schema +struct<> +-- !query 21289 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, tinyint).; line 1 pos 7 + + +-- !query 21290 +SELECT least(cast(1 as string), cast(2 as smallint)) FROM t +-- !query 21290 schema +struct<> +-- !query 21290 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, smallint).; line 1 pos 7 + + +-- !query 21291 +SELECT least(cast(1 as string), cast(2 as int)) FROM t +-- !query 21291 schema +struct<> +-- !query 21291 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, int).; line 1 pos 7 + + +-- !query 21292 +SELECT least(cast(1 as string), cast(2 as bigint)) FROM t +-- !query 21292 schema +struct<> +-- !query 21292 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, bigint).; line 1 pos 7 + + +-- !query 21293 +SELECT least(cast(1 as string), cast(2 as float)) FROM t +-- !query 21293 schema +struct<> +-- !query 21293 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, float).; line 1 pos 7 + + +-- !query 21294 +SELECT least(cast(1 as string), cast(2 as double)) FROM t +-- !query 21294 schema +struct<> +-- !query 21294 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, double).; line 1 pos 7 + + +-- !query 21295 +SELECT least(cast(1 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 21295 schema +struct<> +-- !query 21295 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, decimal(10,0)).; line 1 pos 7 + + +-- !query 21296 +SELECT least(cast(1 as string), cast(2 as string)) FROM t +-- !query 21296 schema +struct +-- !query 21296 output +1 + + +-- !query 21297 +SELECT least(cast(1 as string), cast('2' as binary)) FROM t +-- !query 21297 schema +struct<> +-- !query 21297 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, binary).; line 1 pos 7 + + +-- !query 21298 +SELECT least(cast(1 as string), cast(2 as boolean)) FROM t +-- !query 21298 schema +struct<> +-- !query 21298 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, boolean).; line 1 pos 7 + + +-- !query 21299 +SELECT least(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21299 schema +struct<> +-- !query 21299 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, timestamp).; line 1 pos 7 + + +-- !query 21300 +SELECT least(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21300 schema +struct<> +-- !query 21300 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, date).; line 1 pos 7 + + +-- !query 21301 +SELECT least(cast('1' as binary), cast(2 as tinyint)) FROM t +-- !query 21301 schema +struct<> +-- !query 21301 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, tinyint).; line 1 pos 7 + + +-- !query 21302 +SELECT least(cast('1' as binary), cast(2 as smallint)) FROM t +-- !query 21302 schema +struct<> +-- !query 21302 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, smallint).; line 1 pos 7 + + +-- !query 21303 +SELECT least(cast('1' as binary), cast(2 as int)) FROM t +-- !query 21303 schema +struct<> +-- !query 21303 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, int).; line 1 pos 7 + + +-- !query 21304 +SELECT least(cast('1' as binary), cast(2 as bigint)) FROM t +-- !query 21304 schema +struct<> +-- !query 21304 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, bigint).; line 1 pos 7 + + +-- !query 21305 +SELECT least(cast('1' as binary), cast(2 as float)) FROM t +-- !query 21305 schema +struct<> +-- !query 21305 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, float).; line 1 pos 7 + + +-- !query 21306 +SELECT least(cast('1' as binary), cast(2 as double)) FROM t +-- !query 21306 schema +struct<> +-- !query 21306 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, double).; line 1 pos 7 + + +-- !query 21307 +SELECT least(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 21307 schema +struct<> +-- !query 21307 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, decimal(10,0)).; line 1 pos 7 + + +-- !query 21308 +SELECT least(cast('1' as binary), cast(2 as string)) FROM t +-- !query 21308 schema +struct<> +-- !query 21308 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, string).; line 1 pos 7 + + +-- !query 21309 +SELECT least(cast('1' as binary), cast('2' as binary)) FROM t +-- !query 21309 schema +struct +-- !query 21309 output +1 + + +-- !query 21310 +SELECT least(cast('1' as binary), cast(2 as boolean)) FROM t +-- !query 21310 schema +struct<> +-- !query 21310 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, boolean).; line 1 pos 7 + + +-- !query 21311 +SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21311 schema +struct<> +-- !query 21311 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, timestamp).; line 1 pos 7 + + +-- !query 21312 +SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21312 schema +struct<> +-- !query 21312 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, date).; line 1 pos 7 + + +-- !query 21313 +SELECT least(cast(1 as boolean), cast(2 as tinyint)) FROM t +-- !query 21313 schema +struct<> +-- !query 21313 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, tinyint).; line 1 pos 7 + + +-- !query 21314 +SELECT least(cast(1 as boolean), cast(2 as smallint)) FROM t +-- !query 21314 schema +struct<> +-- !query 21314 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, smallint).; line 1 pos 7 + + +-- !query 21315 +SELECT least(cast(1 as boolean), cast(2 as int)) FROM t +-- !query 21315 schema +struct<> +-- !query 21315 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, int).; line 1 pos 7 + + +-- !query 21316 +SELECT least(cast(1 as boolean), cast(2 as bigint)) FROM t +-- !query 21316 schema +struct<> +-- !query 21316 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, bigint).; line 1 pos 7 + + +-- !query 21317 +SELECT least(cast(1 as boolean), cast(2 as float)) FROM t +-- !query 21317 schema +struct<> +-- !query 21317 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, float).; line 1 pos 7 + + +-- !query 21318 +SELECT least(cast(1 as boolean), cast(2 as double)) FROM t +-- !query 21318 schema +struct<> +-- !query 21318 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, double).; line 1 pos 7 + + +-- !query 21319 +SELECT least(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 21319 schema +struct<> +-- !query 21319 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, decimal(10,0)).; line 1 pos 7 + + +-- !query 21320 +SELECT least(cast(1 as boolean), cast(2 as string)) FROM t +-- !query 21320 schema +struct<> +-- !query 21320 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, string).; line 1 pos 7 + + +-- !query 21321 +SELECT least(cast(1 as boolean), cast('2' as binary)) FROM t +-- !query 21321 schema +struct<> +-- !query 21321 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, binary).; line 1 pos 7 + + +-- !query 21322 +SELECT least(cast(1 as boolean), cast(2 as boolean)) FROM t +-- !query 21322 schema +struct +-- !query 21322 output +true + + +-- !query 21323 +SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21323 schema +struct<> +-- !query 21323 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, timestamp).; line 1 pos 7 + + +-- !query 21324 +SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21324 schema +struct<> +-- !query 21324 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, date).; line 1 pos 7 + + +-- !query 21325 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 21325 schema +struct<> +-- !query 21325 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, tinyint).; line 1 pos 7 + + +-- !query 21326 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 21326 schema +struct<> +-- !query 21326 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, smallint).; line 1 pos 7 + + +-- !query 21327 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 21327 schema +struct<> +-- !query 21327 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, int).; line 1 pos 7 + + +-- !query 21328 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 21328 schema +struct<> +-- !query 21328 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, bigint).; line 1 pos 7 + + +-- !query 21329 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 21329 schema +struct<> +-- !query 21329 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, float).; line 1 pos 7 + + +-- !query 21330 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 21330 schema +struct<> +-- !query 21330 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, double).; line 1 pos 7 + + +-- !query 21331 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 21331 schema +struct<> +-- !query 21331 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, decimal(10,0)).; line 1 pos 7 + + +-- !query 21332 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 21332 schema +struct<> +-- !query 21332 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, string).; line 1 pos 7 + + +-- !query 21333 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 21333 schema +struct<> +-- !query 21333 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, binary).; line 1 pos 7 + + +-- !query 21334 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 21334 schema +struct<> +-- !query 21334 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, boolean).; line 1 pos 7 + + +-- !query 21335 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21335 schema +struct +-- !query 21335 output +2017-12-11 09:30:00 + + +-- !query 21336 +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21336 schema +struct +-- !query 21336 output +2017-12-11 09:30:00 + + +-- !query 21337 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 21337 schema +struct<> +-- !query 21337 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, tinyint).; line 1 pos 7 + + +-- !query 21338 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 21338 schema +struct<> +-- !query 21338 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, smallint).; line 1 pos 7 + + +-- !query 21339 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t +-- !query 21339 schema +struct<> +-- !query 21339 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, int).; line 1 pos 7 + + +-- !query 21340 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 21340 schema +struct<> +-- !query 21340 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, bigint).; line 1 pos 7 + + +-- !query 21341 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t +-- !query 21341 schema +struct<> +-- !query 21341 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, float).; line 1 pos 7 + + +-- !query 21342 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t +-- !query 21342 schema +struct<> +-- !query 21342 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, double).; line 1 pos 7 + + +-- !query 21343 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 21343 schema +struct<> +-- !query 21343 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, decimal(10,0)).; line 1 pos 7 + + +-- !query 21344 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t +-- !query 21344 schema +struct<> +-- !query 21344 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, string).; line 1 pos 7 + + +-- !query 21345 +SELECT least(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 21345 schema +struct<> +-- !query 21345 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, binary).; line 1 pos 7 + + +-- !query 21346 +SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 21346 schema +struct<> +-- !query 21346 output +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, boolean).; line 1 pos 7 + + +-- !query 21347 +SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21347 schema +struct +-- !query 21347 output +2017-12-11 00:00:00 + + +-- !query 21348 +SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21348 schema +struct +-- !query 21348 output +2017-12-11 + + +-- !query 21349 +SELECT nanvl(cast(1 as tinyint), cast(2 as tinyint)) FROM t +-- !query 21349 schema +struct +-- !query 21349 output +1.0 + + +-- !query 21350 +SELECT nanvl(cast(1 as tinyint), cast(2 as smallint)) FROM t +-- !query 21350 schema +struct +-- !query 21350 output +1.0 + + +-- !query 21351 +SELECT nanvl(cast(1 as tinyint), cast(2 as int)) FROM t +-- !query 21351 schema +struct +-- !query 21351 output +1.0 + + +-- !query 21352 +SELECT nanvl(cast(1 as tinyint), cast(2 as bigint)) FROM t +-- !query 21352 schema +struct +-- !query 21352 output +1.0 + + +-- !query 21353 +SELECT nanvl(cast(1 as tinyint), cast(2 as float)) FROM t +-- !query 21353 schema +struct +-- !query 21353 output +1.0 + + +-- !query 21354 +SELECT nanvl(cast(1 as tinyint), cast(2 as double)) FROM t +-- !query 21354 schema +struct +-- !query 21354 output +1.0 + + +-- !query 21355 +SELECT nanvl(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t +-- !query 21355 schema +struct +-- !query 21355 output +1.0 + + +-- !query 21356 +SELECT nanvl(cast(1 as tinyint), cast(2 as string)) FROM t +-- !query 21356 schema +struct +-- !query 21356 output +1.0 + + +-- !query 21357 +SELECT nanvl(cast(1 as tinyint), cast('2' as binary)) FROM t +-- !query 21357 schema +struct<> +-- !query 21357 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21358 +SELECT nanvl(cast(1 as tinyint), cast(2 as boolean)) FROM t +-- !query 21358 schema +struct<> +-- !query 21358 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21359 +SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21359 schema +struct<> +-- !query 21359 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21360 +SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21360 schema +struct<> +-- !query 21360 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21361 +SELECT nanvl(cast(1 as smallint), cast(2 as tinyint)) FROM t +-- !query 21361 schema +struct +-- !query 21361 output +1.0 + + +-- !query 21362 +SELECT nanvl(cast(1 as smallint), cast(2 as smallint)) FROM t +-- !query 21362 schema +struct +-- !query 21362 output +1.0 + + +-- !query 21363 +SELECT nanvl(cast(1 as smallint), cast(2 as int)) FROM t +-- !query 21363 schema +struct +-- !query 21363 output +1.0 + + +-- !query 21364 +SELECT nanvl(cast(1 as smallint), cast(2 as bigint)) FROM t +-- !query 21364 schema +struct +-- !query 21364 output +1.0 + + +-- !query 21365 +SELECT nanvl(cast(1 as smallint), cast(2 as float)) FROM t +-- !query 21365 schema +struct +-- !query 21365 output +1.0 + + +-- !query 21366 +SELECT nanvl(cast(1 as smallint), cast(2 as double)) FROM t +-- !query 21366 schema +struct +-- !query 21366 output +1.0 + + +-- !query 21367 +SELECT nanvl(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t +-- !query 21367 schema +struct +-- !query 21367 output +1.0 + + +-- !query 21368 +SELECT nanvl(cast(1 as smallint), cast(2 as string)) FROM t +-- !query 21368 schema +struct +-- !query 21368 output +1.0 + + +-- !query 21369 +SELECT nanvl(cast(1 as smallint), cast('2' as binary)) FROM t +-- !query 21369 schema +struct<> +-- !query 21369 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21370 +SELECT nanvl(cast(1 as smallint), cast(2 as boolean)) FROM t +-- !query 21370 schema +struct<> +-- !query 21370 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21371 +SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21371 schema +struct<> +-- !query 21371 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21372 +SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21372 schema +struct<> +-- !query 21372 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21373 +SELECT nanvl(cast(1 as int), cast(2 as tinyint)) FROM t +-- !query 21373 schema +struct +-- !query 21373 output +1.0 + + +-- !query 21374 +SELECT nanvl(cast(1 as int), cast(2 as smallint)) FROM t +-- !query 21374 schema +struct +-- !query 21374 output +1.0 + + +-- !query 21375 +SELECT nanvl(cast(1 as int), cast(2 as int)) FROM t +-- !query 21375 schema +struct +-- !query 21375 output +1.0 + + +-- !query 21376 +SELECT nanvl(cast(1 as int), cast(2 as bigint)) FROM t +-- !query 21376 schema +struct +-- !query 21376 output +1.0 + + +-- !query 21377 +SELECT nanvl(cast(1 as int), cast(2 as float)) FROM t +-- !query 21377 schema +struct +-- !query 21377 output +1.0 + + +-- !query 21378 +SELECT nanvl(cast(1 as int), cast(2 as double)) FROM t +-- !query 21378 schema +struct +-- !query 21378 output +1.0 + + +-- !query 21379 +SELECT nanvl(cast(1 as int), cast(2 as decimal(10, 0))) FROM t +-- !query 21379 schema +struct +-- !query 21379 output +1.0 + + +-- !query 21380 +SELECT nanvl(cast(1 as int), cast(2 as string)) FROM t +-- !query 21380 schema +struct +-- !query 21380 output +1.0 + + +-- !query 21381 +SELECT nanvl(cast(1 as int), cast('2' as binary)) FROM t +-- !query 21381 schema +struct<> +-- !query 21381 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21382 +SELECT nanvl(cast(1 as int), cast(2 as boolean)) FROM t +-- !query 21382 schema +struct<> +-- !query 21382 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21383 +SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21383 schema +struct<> +-- !query 21383 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21384 +SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21384 schema +struct<> +-- !query 21384 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21385 +SELECT nanvl(cast(1 as bigint), cast(2 as tinyint)) FROM t +-- !query 21385 schema +struct +-- !query 21385 output +1.0 + + +-- !query 21386 +SELECT nanvl(cast(1 as bigint), cast(2 as smallint)) FROM t +-- !query 21386 schema +struct +-- !query 21386 output +1.0 + + +-- !query 21387 +SELECT nanvl(cast(1 as bigint), cast(2 as int)) FROM t +-- !query 21387 schema +struct +-- !query 21387 output +1.0 + + +-- !query 21388 +SELECT nanvl(cast(1 as bigint), cast(2 as bigint)) FROM t +-- !query 21388 schema +struct +-- !query 21388 output +1.0 + + +-- !query 21389 +SELECT nanvl(cast(1 as bigint), cast(2 as float)) FROM t +-- !query 21389 schema +struct +-- !query 21389 output +1.0 + + +-- !query 21390 +SELECT nanvl(cast(1 as bigint), cast(2 as double)) FROM t +-- !query 21390 schema +struct +-- !query 21390 output +1.0 + + +-- !query 21391 +SELECT nanvl(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t +-- !query 21391 schema +struct +-- !query 21391 output +1.0 + + +-- !query 21392 +SELECT nanvl(cast(1 as bigint), cast(2 as string)) FROM t +-- !query 21392 schema +struct +-- !query 21392 output +1.0 + + +-- !query 21393 +SELECT nanvl(cast(1 as bigint), cast('2' as binary)) FROM t +-- !query 21393 schema +struct<> +-- !query 21393 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21394 +SELECT nanvl(cast(1 as bigint), cast(2 as boolean)) FROM t +-- !query 21394 schema +struct<> +-- !query 21394 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21395 +SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21395 schema +struct<> +-- !query 21395 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21396 +SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21396 schema +struct<> +-- !query 21396 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21397 +SELECT nanvl(cast(1 as float), cast(2 as tinyint)) FROM t +-- !query 21397 schema +struct +-- !query 21397 output +1.0 + + +-- !query 21398 +SELECT nanvl(cast(1 as float), cast(2 as smallint)) FROM t +-- !query 21398 schema +struct +-- !query 21398 output +1.0 + + +-- !query 21399 +SELECT nanvl(cast(1 as float), cast(2 as int)) FROM t +-- !query 21399 schema +struct +-- !query 21399 output +1.0 + + +-- !query 21400 +SELECT nanvl(cast(1 as float), cast(2 as bigint)) FROM t +-- !query 21400 schema +struct +-- !query 21400 output +1.0 + + +-- !query 21401 +SELECT nanvl(cast(1 as float), cast(2 as float)) FROM t +-- !query 21401 schema +struct +-- !query 21401 output +1.0 + + +-- !query 21402 +SELECT nanvl(cast(1 as float), cast(2 as double)) FROM t +-- !query 21402 schema +struct +-- !query 21402 output +1.0 + + +-- !query 21403 +SELECT nanvl(cast(1 as float), cast(2 as decimal(10, 0))) FROM t +-- !query 21403 schema +struct +-- !query 21403 output +1.0 + + +-- !query 21404 +SELECT nanvl(cast(1 as float), cast(2 as string)) FROM t +-- !query 21404 schema +struct +-- !query 21404 output +1.0 + + +-- !query 21405 +SELECT nanvl(cast(1 as float), cast('2' as binary)) FROM t +-- !query 21405 schema +struct<> +-- !query 21405 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21406 +SELECT nanvl(cast(1 as float), cast(2 as boolean)) FROM t +-- !query 21406 schema +struct<> +-- !query 21406 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21407 +SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21407 schema +struct<> +-- !query 21407 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21408 +SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21408 schema +struct<> +-- !query 21408 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21409 +SELECT nanvl(cast(1 as double), cast(2 as tinyint)) FROM t +-- !query 21409 schema +struct +-- !query 21409 output +1.0 + + +-- !query 21410 +SELECT nanvl(cast(1 as double), cast(2 as smallint)) FROM t +-- !query 21410 schema +struct +-- !query 21410 output +1.0 + + +-- !query 21411 +SELECT nanvl(cast(1 as double), cast(2 as int)) FROM t +-- !query 21411 schema +struct +-- !query 21411 output +1.0 + + +-- !query 21412 +SELECT nanvl(cast(1 as double), cast(2 as bigint)) FROM t +-- !query 21412 schema +struct +-- !query 21412 output +1.0 + + +-- !query 21413 +SELECT nanvl(cast(1 as double), cast(2 as float)) FROM t +-- !query 21413 schema +struct +-- !query 21413 output +1.0 + + +-- !query 21414 +SELECT nanvl(cast(1 as double), cast(2 as double)) FROM t +-- !query 21414 schema +struct +-- !query 21414 output +1.0 + + +-- !query 21415 +SELECT nanvl(cast(1 as double), cast(2 as decimal(10, 0))) FROM t +-- !query 21415 schema +struct +-- !query 21415 output +1.0 + + +-- !query 21416 +SELECT nanvl(cast(1 as double), cast(2 as string)) FROM t +-- !query 21416 schema +struct +-- !query 21416 output +1.0 + + +-- !query 21417 +SELECT nanvl(cast(1 as double), cast('2' as binary)) FROM t +-- !query 21417 schema +struct<> +-- !query 21417 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21418 +SELECT nanvl(cast(1 as double), cast(2 as boolean)) FROM t +-- !query 21418 schema +struct<> +-- !query 21418 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21419 +SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21419 schema +struct<> +-- !query 21419 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21420 +SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21420 schema +struct<> +-- !query 21420 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21421 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t +-- !query 21421 schema +struct +-- !query 21421 output +1.0 + + +-- !query 21422 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t +-- !query 21422 schema +struct +-- !query 21422 output +1.0 + + +-- !query 21423 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t +-- !query 21423 schema +struct +-- !query 21423 output +1.0 + + +-- !query 21424 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t +-- !query 21424 schema +struct +-- !query 21424 output +1.0 + + +-- !query 21425 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t +-- !query 21425 schema +struct +-- !query 21425 output +1.0 + + +-- !query 21426 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t +-- !query 21426 schema +struct +-- !query 21426 output +1.0 + + +-- !query 21427 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +-- !query 21427 schema +struct +-- !query 21427 output +1.0 + + +-- !query 21428 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t +-- !query 21428 schema +struct +-- !query 21428 output +1.0 + + +-- !query 21429 +SELECT nanvl(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t +-- !query 21429 schema +struct<> +-- !query 21429 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21430 +SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t +-- !query 21430 schema +struct<> +-- !query 21430 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21431 +SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21431 schema +struct<> +-- !query 21431 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21432 +SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21432 schema +struct<> +-- !query 21432 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21433 +SELECT nanvl(cast(1 as string), cast(2 as tinyint)) FROM t +-- !query 21433 schema +struct +-- !query 21433 output +1.0 + + +-- !query 21434 +SELECT nanvl(cast(1 as string), cast(2 as smallint)) FROM t +-- !query 21434 schema +struct +-- !query 21434 output +1.0 + + +-- !query 21435 +SELECT nanvl(cast(1 as string), cast(2 as int)) FROM t +-- !query 21435 schema +struct +-- !query 21435 output +1.0 + + +-- !query 21436 +SELECT nanvl(cast(1 as string), cast(2 as bigint)) FROM t +-- !query 21436 schema +struct +-- !query 21436 output +1.0 + + +-- !query 21437 +SELECT nanvl(cast(1 as string), cast(2 as float)) FROM t +-- !query 21437 schema +struct +-- !query 21437 output +1.0 + + +-- !query 21438 +SELECT nanvl(cast(1 as string), cast(2 as double)) FROM t +-- !query 21438 schema +struct +-- !query 21438 output +1.0 + + +-- !query 21439 +SELECT nanvl(cast(1 as string), cast(2 as decimal(10, 0))) FROM t +-- !query 21439 schema +struct +-- !query 21439 output +1.0 + + +-- !query 21440 +SELECT nanvl(cast(1 as string), cast(2 as string)) FROM t +-- !query 21440 schema +struct +-- !query 21440 output +1.0 + + +-- !query 21441 +SELECT nanvl(cast(1 as string), cast('2' as binary)) FROM t +-- !query 21441 schema +struct<> +-- !query 21441 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21442 +SELECT nanvl(cast(1 as string), cast(2 as boolean)) FROM t +-- !query 21442 schema +struct<> +-- !query 21442 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21443 +SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21443 schema +struct<> +-- !query 21443 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21444 +SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21444 schema +struct<> +-- !query 21444 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21445 +SELECT nanvl(cast('1' as binary), cast(2 as tinyint)) FROM t +-- !query 21445 schema +struct<> +-- !query 21445 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21446 +SELECT nanvl(cast('1' as binary), cast(2 as smallint)) FROM t +-- !query 21446 schema +struct<> +-- !query 21446 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21447 +SELECT nanvl(cast('1' as binary), cast(2 as int)) FROM t +-- !query 21447 schema +struct<> +-- !query 21447 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21448 +SELECT nanvl(cast('1' as binary), cast(2 as bigint)) FROM t +-- !query 21448 schema +struct<> +-- !query 21448 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21449 +SELECT nanvl(cast('1' as binary), cast(2 as float)) FROM t +-- !query 21449 schema +struct<> +-- !query 21449 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21450 +SELECT nanvl(cast('1' as binary), cast(2 as double)) FROM t +-- !query 21450 schema +struct<> +-- !query 21450 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21451 +SELECT nanvl(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t +-- !query 21451 schema +struct<> +-- !query 21451 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21452 +SELECT nanvl(cast('1' as binary), cast(2 as string)) FROM t +-- !query 21452 schema +struct<> +-- !query 21452 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21453 +SELECT nanvl(cast('1' as binary), cast('2' as binary)) FROM t +-- !query 21453 schema +struct<> +-- !query 21453 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21454 +SELECT nanvl(cast('1' as binary), cast(2 as boolean)) FROM t +-- !query 21454 schema +struct<> +-- !query 21454 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21455 +SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21455 schema +struct<> +-- !query 21455 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21456 +SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21456 schema +struct<> +-- !query 21456 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21457 +SELECT nanvl(cast(1 as boolean), cast(2 as tinyint)) FROM t +-- !query 21457 schema +struct<> +-- !query 21457 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21458 +SELECT nanvl(cast(1 as boolean), cast(2 as smallint)) FROM t +-- !query 21458 schema +struct<> +-- !query 21458 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21459 +SELECT nanvl(cast(1 as boolean), cast(2 as int)) FROM t +-- !query 21459 schema +struct<> +-- !query 21459 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21460 +SELECT nanvl(cast(1 as boolean), cast(2 as bigint)) FROM t +-- !query 21460 schema +struct<> +-- !query 21460 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21461 +SELECT nanvl(cast(1 as boolean), cast(2 as float)) FROM t +-- !query 21461 schema +struct<> +-- !query 21461 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21462 +SELECT nanvl(cast(1 as boolean), cast(2 as double)) FROM t +-- !query 21462 schema +struct<> +-- !query 21462 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21463 +SELECT nanvl(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t +-- !query 21463 schema +struct<> +-- !query 21463 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21464 +SELECT nanvl(cast(1 as boolean), cast(2 as string)) FROM t +-- !query 21464 schema +struct<> +-- !query 21464 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21465 +SELECT nanvl(cast(1 as boolean), cast('2' as binary)) FROM t +-- !query 21465 schema +struct<> +-- !query 21465 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21466 +SELECT nanvl(cast(1 as boolean), cast(2 as boolean)) FROM t +-- !query 21466 schema +struct<> +-- !query 21466 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21467 +SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21467 schema +struct<> +-- !query 21467 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21468 +SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21468 schema +struct<> +-- !query 21468 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21469 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +-- !query 21469 schema +struct<> +-- !query 21469 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21470 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +-- !query 21470 schema +struct<> +-- !query 21470 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21471 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t +-- !query 21471 schema +struct<> +-- !query 21471 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21472 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +-- !query 21472 schema +struct<> +-- !query 21472 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21473 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t +-- !query 21473 schema +struct<> +-- !query 21473 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21474 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t +-- !query 21474 schema +struct<> +-- !query 21474 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21475 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +-- !query 21475 schema +struct<> +-- !query 21475 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21476 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t +-- !query 21476 schema +struct<> +-- !query 21476 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21477 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +-- !query 21477 schema +struct<> +-- !query 21477 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21478 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +-- !query 21478 schema +struct<> +-- !query 21478 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21479 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21479 schema +struct<> +-- !query 21479 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21480 +SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21480 schema +struct<> +-- !query 21480 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21481 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t +-- !query 21481 schema +struct<> +-- !query 21481 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21482 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t +-- !query 21482 schema +struct<> +-- !query 21482 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21483 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t +-- !query 21483 schema +struct<> +-- !query 21483 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21484 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t +-- !query 21484 schema +struct<> +-- !query 21484 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21485 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t +-- !query 21485 schema +struct<> +-- !query 21485 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21486 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t +-- !query 21486 schema +struct<> +-- !query 21486 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21487 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +-- !query 21487 schema +struct<> +-- !query 21487 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21488 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t +-- !query 21488 schema +struct<> +-- !query 21488 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 + + +-- !query 21489 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t +-- !query 21489 schema +struct<> +-- !query 21489 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 + + +-- !query 21490 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t +-- !query 21490 schema +struct<> +-- !query 21490 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 + + +-- !query 21491 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +-- !query 21491 schema +struct<> +-- !query 21491 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 + + +-- !query 21492 +SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +-- !query 21492 schema +struct<> +-- !query 21492 output +org.apache.spark.sql.AnalysisException +cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 From 3ff5c9b4cbeb8f6e6bbfedfb5b29818e36f7a1a7 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Tue, 19 Dec 2017 23:36:58 +0800 Subject: [PATCH 2/8] simplify --- .../typeCoercion/native/decimalPrecision.sql | 6005 +- .../native/functionArgumentConversion.sql | 20891 +- .../native/decimalPrecision.sql.out | 54332 +---- .../native/functionArgumentConversion.sql.out | 184322 +-------------- 4 files changed, 6141 insertions(+), 259409 deletions(-) diff --git a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql index 9ccdd5e8d8dc0..8b04864b18ce3 100644 --- a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql +++ b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/decimalPrecision.sql @@ -17,6867 +17,1432 @@ CREATE TEMPORARY VIEW t AS SELECT 1; -SELECT cast(1 as tinyint) + cast(1 as decimal(1, 0)) FROM t; SELECT cast(1 as tinyint) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00' as date) FROM t; - - -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast(1 as int), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast(1 as int), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast(1 as int), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast(1 as int), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast(1 as int), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast(1 as float), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast(1 as float), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast(1 as float), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast(1 as float), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast(1 as float), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast(1 as double), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast(1 as double), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast(1 as double), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast(1 as double), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast(1 as double), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 0))) FROM t; + SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 0))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(2, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 1))) FROM t; -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 1))) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as tinyint)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as tinyint)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as tinyint)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as tinyint)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as tinyint)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as tinyint)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as smallint)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as smallint)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as smallint)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as smallint)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as smallint)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as smallint)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as int)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as int)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as int)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as int)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as int)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as int)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as bigint)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as bigint)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as bigint)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as bigint)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as bigint)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as bigint)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as float)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as float)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as float)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as float)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as float)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as float)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as double)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as double)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as double)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as double)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as double)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as double)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as decimal(10, 0))) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as decimal(10, 0))) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as decimal(10, 0))) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as string)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as string)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as string)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as string)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as string)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as string)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast('1' as binary)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast('1' as binary)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast('1' as binary)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast('1' as binary)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast('1' as binary)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast('1' as binary)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as boolean)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as boolean)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as boolean)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as boolean)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as boolean)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as boolean)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; - -SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; + SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT cast(1 as tinyint) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t; - -SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as smallint) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as smallint) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as smallint) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as smallint) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as smallint) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as smallint) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as int) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as int) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as int) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as int) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as int) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as int) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as bigint) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as bigint) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as bigint) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as bigint) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as bigint) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as bigint) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as float) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as float) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as float) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as float) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as float) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as float) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as double) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as double) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as double) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as double) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as double) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as double) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('1' as binary) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast('1' as binary) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast('1' as binary) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast('1' as binary) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast('1' as binary) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast('1' as binary) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 0)) FROM t; + SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 0)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(2, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 1)) FROM t; -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 1)) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as tinyint) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as tinyint) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as tinyint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as smallint) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as smallint) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as smallint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as int) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as int) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as int) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as bigint) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as bigint) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as bigint) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as float) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as float) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as float) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as double) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as double) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as double) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as decimal(10, 0)) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as decimal(10, 0)) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as decimal(10, 0)) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as string) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as string) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as string) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast('1' as binary) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast('1' as binary) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast('1' as binary) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast(1 as boolean) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast(1 as boolean) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast(1 as boolean) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; - -SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; + SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; -SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t; diff --git a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql index 91c03ac3b150f..b18547148eb36 100644 --- a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql +++ b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql @@ -173,20742 +173,161 @@ SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as int)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as float)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as double)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as string)) FROM t; +SELECT map(cast(1 as tinyint), cast('1' as binary)) FROM t; +SELECT map(cast(1 as tinyint), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as smallint), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as int)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as float)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as double)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as smallint), cast(1 as string)) FROM t; +SELECT map(cast(1 as smallint), cast('1' as binary)) FROM t; +SELECT map(cast(1 as smallint), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as int), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as int), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as int), cast(1 as int)) FROM t; +SELECT map(cast(1 as int), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as int), cast(1 as float)) FROM t; +SELECT map(cast(1 as int), cast(1 as double)) FROM t; +SELECT map(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as int), cast(1 as string)) FROM t; +SELECT map(cast(1 as int), cast('1' as binary)) FROM t; +SELECT map(cast(1 as int), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as bigint), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as int)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as float)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as double)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as bigint), cast(1 as string)) FROM t; +SELECT map(cast(1 as bigint), cast('1' as binary)) FROM t; +SELECT map(cast(1 as bigint), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as float), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as float), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as float), cast(1 as int)) FROM t; +SELECT map(cast(1 as float), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as float), cast(1 as float)) FROM t; +SELECT map(cast(1 as float), cast(1 as double)) FROM t; +SELECT map(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as float), cast(1 as string)) FROM t; +SELECT map(cast(1 as float), cast('1' as binary)) FROM t; +SELECT map(cast(1 as float), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as double), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as double), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as double), cast(1 as int)) FROM t; +SELECT map(cast(1 as double), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as double), cast(1 as float)) FROM t; +SELECT map(cast(1 as double), cast(1 as double)) FROM t; +SELECT map(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as double), cast(1 as string)) FROM t; +SELECT map(cast(1 as double), cast('1' as binary)) FROM t; +SELECT map(cast(1 as double), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as string), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as string), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as string), cast(1 as int)) FROM t; +SELECT map(cast(1 as string), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as string), cast(1 as float)) FROM t; +SELECT map(cast(1 as string), cast(1 as double)) FROM t; +SELECT map(cast(1 as string), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as string), cast(1 as string)) FROM t; +SELECT map(cast(1 as string), cast('1' as binary)) FROM t; +SELECT map(cast(1 as string), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast('1' as binary), cast(1 as tinyint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as smallint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as int)) FROM t; +SELECT map(cast('1' as binary), cast(1 as bigint)) FROM t; +SELECT map(cast('1' as binary), cast(1 as float)) FROM t; +SELECT map(cast('1' as binary), cast(1 as double)) FROM t; +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast('1' as binary), cast(1 as string)) FROM t; +SELECT map(cast('1' as binary), cast('1' as binary)) FROM t; +SELECT map(cast('1' as binary), cast(1 as boolean)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast(1 as boolean), cast(1 as tinyint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as smallint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as int)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as bigint)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as float)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as double)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast(1 as boolean), cast(1 as string)) FROM t; +SELECT map(cast(1 as boolean), cast('1' as binary)) FROM t; +SELECT map(cast(1 as boolean), cast(1 as boolean)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT sum(cast(1 as tinyint)) FROM t; SELECT sum(cast(1 as smallint)) FROM t; diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out index 61ed59ef95711..ebc8201ed5a1d 100644 --- a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/decimalPrecision.sql.out @@ -1,5 +1,5 @@ -- Automatically generated by SQLQueryTestSuite --- Number of queries: 6579 +-- Number of queries: 1145 -- !query 0 @@ -11,56760 +11,9504 @@ struct<> -- !query 1 -SELECT cast(1 as tinyint) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as tinyint) + cast(1 as decimal(3, 0)) FROM t -- !query 1 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0))):decimal(4,0)> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) + CAST(1 AS DECIMAL(3,0))):decimal(4,0)> -- !query 1 output 2 -- !query 2 -SELECT cast(1 as tinyint) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as tinyint) + cast(1 as decimal(5, 0)) FROM t -- !query 2 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) + CAST(1 AS DECIMAL(3,0))):decimal(4,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 2 output 2 -- !query 3 -SELECT cast(1 as tinyint) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as tinyint) + cast(1 as decimal(10, 0)) FROM t -- !query 3 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(5,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 3 output 2 -- !query 4 -SELECT cast(1 as tinyint) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as tinyint) + cast(1 as decimal(20, 0)) FROM t -- !query 4 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 4 output 2 -- !query 5 -SELECT cast(1 as tinyint) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as smallint) + cast(1 as decimal(3, 0)) FROM t -- !query 5 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 5 output 2 -- !query 6 -SELECT cast(1 as tinyint) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as smallint) + cast(1 as decimal(5, 0)) FROM t -- !query 6 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) + CAST(1 AS DECIMAL(5,0))):decimal(6,0)> -- !query 6 output 2 -- !query 7 -SELECT cast(1 as tinyint) + cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as smallint) + cast(1 as decimal(10, 0)) FROM t -- !query 7 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 7 output 2 -- !query 8 -SELECT cast(1 as tinyint) + cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as smallint) + cast(1 as decimal(20, 0)) FROM t -- !query 8 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 8 output 2 -- !query 9 -SELECT cast(1 as tinyint) + cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as int) + cast(1 as decimal(3, 0)) FROM t -- !query 9 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 9 output 2 -- !query 10 -SELECT cast(1 as tinyint) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as int) + cast(1 as decimal(5, 0)) FROM t -- !query 10 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 10 output 2 -- !query 11 -SELECT cast(1 as tinyint) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as int) + cast(1 as decimal(10, 0)) FROM t -- !query 11 schema -struct<> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> -- !query 11 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) + cast(1 as decimal(39, 0)) FROM t +2 -- !query 12 -SELECT cast(1 as tinyint) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as int) + cast(1 as decimal(20, 0)) FROM t -- !query 12 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 12 output -NULL +2 -- !query 13 -SELECT cast(1 as tinyint) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as bigint) + cast(1 as decimal(3, 0)) FROM t -- !query 13 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 13 output 2 -- !query 14 -SELECT cast(1 as tinyint) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as bigint) + cast(1 as decimal(5, 0)) FROM t -- !query 14 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 14 output 2 -- !query 15 -SELECT cast(1 as tinyint) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as bigint) + cast(1 as decimal(10, 0)) FROM t -- !query 15 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 15 output 2 -- !query 16 -SELECT cast(1 as tinyint) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as bigint) + cast(1 as decimal(20, 0)) FROM t -- !query 16 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(6,1)> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) + CAST(1 AS DECIMAL(20,0))):decimal(21,0)> -- !query 16 output 2 -- !query 17 -SELECT cast(1 as tinyint) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as float) + cast(1 as decimal(3, 0)) FROM t -- !query 17 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 17 output -2 +2.0 -- !query 18 -SELECT cast(1 as tinyint) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as float) + cast(1 as decimal(5, 0)) FROM t -- !query 18 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 18 output -2 +2.0 -- !query 19 -SELECT cast(1 as tinyint) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as float) + cast(1 as decimal(10, 0)) FROM t -- !query 19 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 19 output -2 +2.0 -- !query 20 -SELECT cast(1 as tinyint) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as float) + cast(1 as decimal(20, 0)) FROM t -- !query 20 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 20 output -2 +2.0 -- !query 21 -SELECT cast(1 as tinyint) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as double) + cast(1 as decimal(3, 0)) FROM t -- !query 21 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 21 output -2 +2.0 -- !query 22 -SELECT cast(1 as tinyint) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as double) + cast(1 as decimal(5, 0)) FROM t -- !query 22 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 22 output -2 +2.0 -- !query 23 -SELECT cast(1 as tinyint) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as double) + cast(1 as decimal(10, 0)) FROM t -- !query 23 schema -struct<> +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 23 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) + cast(1 as decimal(39, 1)) FROM t +2.0 -- !query 24 -SELECT cast(1 as smallint) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as double) + cast(1 as decimal(20, 0)) FROM t -- !query 24 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 24 output -2 +2.0 -- !query 25 -SELECT cast(1 as smallint) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 0)) FROM t -- !query 25 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 25 output 2 -- !query 26 -SELECT cast(1 as smallint) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 0)) FROM t -- !query 26 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 26 output 2 -- !query 27 -SELECT cast(1 as smallint) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t -- !query 27 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) + CAST(1 AS DECIMAL(5,0))):decimal(6,0)> +struct<(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> -- !query 27 output 2 -- !query 28 -SELECT cast(1 as smallint) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 0)) FROM t -- !query 28 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 28 output 2 -- !query 29 -SELECT cast(1 as smallint) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('1' as binary) + cast(1 as decimal(3, 0)) FROM t -- !query 29 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 29 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 30 -SELECT cast(1 as smallint) + cast(1 as decimal(11, 0)) FROM t +SELECT cast('1' as binary) + cast(1 as decimal(5, 0)) FROM t -- !query 30 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<> -- !query 30 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 31 -SELECT cast(1 as smallint) + cast(1 as decimal(20, 0)) FROM t +SELECT cast('1' as binary) + cast(1 as decimal(10, 0)) FROM t -- !query 31 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 31 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 32 -SELECT cast(1 as smallint) + cast(1 as decimal(21, 0)) FROM t +SELECT cast('1' as binary) + cast(1 as decimal(20, 0)) FROM t -- !query 32 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<> -- !query 32 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 33 -SELECT cast(1 as smallint) + cast(1 as decimal(38, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 0)) FROM t -- !query 33 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 33 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 34 -SELECT cast(1 as smallint) + cast(1 as decimal(39, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 0)) FROM t -- !query 34 schema struct<> -- !query 34 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) + cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 35 -SELECT cast(1 as smallint) + cast(1 as decimal(1, 1)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 0)) FROM t -- !query 35 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<> -- !query 35 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 36 -SELECT cast(1 as smallint) + cast(1 as decimal(2, 1)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 0)) FROM t -- !query 36 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<> -- !query 36 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 37 -SELECT cast(1 as smallint) + cast(1 as decimal(3, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 0)) FROM t -- !query 37 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<> -- !query 37 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 38 -SELECT cast(1 as smallint) + cast(1 as decimal(4, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 0)) FROM t -- !query 38 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<> -- !query 38 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 39 -SELECT cast(1 as smallint) + cast(1 as decimal(5, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 0)) FROM t -- !query 39 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<> -- !query 39 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 40 -SELECT cast(1 as smallint) + cast(1 as decimal(6, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 0)) FROM t -- !query 40 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<> -- !query 40 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 41 -SELECT cast(1 as smallint) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as tinyint) FROM t -- !query 41 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +struct<(CAST(1 AS DECIMAL(3,0)) + CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(4,0)> -- !query 41 output 2 -- !query 42 -SELECT cast(1 as smallint) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as tinyint) FROM t -- !query 42 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 42 output 2 -- !query 43 -SELECT cast(1 as smallint) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as tinyint) FROM t -- !query 43 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 43 output 2 -- !query 44 -SELECT cast(1 as smallint) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as tinyint) FROM t -- !query 44 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 44 output 2 -- !query 45 -SELECT cast(1 as smallint) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as smallint) FROM t -- !query 45 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 45 output 2 -- !query 46 -SELECT cast(1 as smallint) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as smallint) FROM t -- !query 46 schema -struct<> +struct<(CAST(1 AS DECIMAL(5,0)) + CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(6,0)> -- !query 46 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) + cast(1 as decimal(39, 1)) FROM t +2 -- !query 47 -SELECT cast(1 as int) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as smallint) FROM t -- !query 47 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 47 output 2 -- !query 48 -SELECT cast(1 as int) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as smallint) FROM t -- !query 48 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 48 output 2 -- !query 49 -SELECT cast(1 as int) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as int) FROM t -- !query 49 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 49 output 2 -- !query 50 -SELECT cast(1 as int) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as int) FROM t -- !query 50 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 50 output 2 -- !query 51 -SELECT cast(1 as int) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as int) FROM t -- !query 51 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(1 AS DECIMAL(10,0)) + CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(11,0)> -- !query 51 output 2 -- !query 52 -SELECT cast(1 as int) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as int) FROM t -- !query 52 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 52 output 2 -- !query 53 -SELECT cast(1 as int) + cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as bigint) FROM t -- !query 53 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 53 output 2 -- !query 54 -SELECT cast(1 as int) + cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as bigint) FROM t -- !query 54 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 54 output 2 -- !query 55 -SELECT cast(1 as int) + cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as bigint) FROM t -- !query 55 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 55 output 2 -- !query 56 -SELECT cast(1 as int) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as bigint) FROM t -- !query 56 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(1 AS DECIMAL(20,0)) + CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(21,0)> -- !query 56 output 2 -- !query 57 -SELECT cast(1 as int) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as float) FROM t -- !query 57 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 57 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) + cast(1 as decimal(39, 0)) FROM t +2.0 -- !query 58 -SELECT cast(1 as int) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as float) FROM t -- !query 58 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 58 output -NULL +2.0 -- !query 59 -SELECT cast(1 as int) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as float) FROM t -- !query 59 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 59 output -2 +2.0 -- !query 60 -SELECT cast(1 as int) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as float) FROM t -- !query 60 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 60 output -2 +2.0 -- !query 61 -SELECT cast(1 as int) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as double) FROM t -- !query 61 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> -- !query 61 output -2 +2.0 -- !query 62 -SELECT cast(1 as int) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as double) FROM t -- !query 62 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> -- !query 62 output -2 +2.0 -- !query 63 -SELECT cast(1 as int) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as double) FROM t -- !query 63 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> -- !query 63 output -2 +2.0 -- !query 64 -SELECT cast(1 as int) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as double) FROM t -- !query 64 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> -- !query 64 output -2 +2.0 -- !query 65 -SELECT cast(1 as int) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as decimal(10, 0)) FROM t -- !query 65 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 65 output 2 -- !query 66 -SELECT cast(1 as int) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as decimal(10, 0)) FROM t -- !query 66 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 66 output 2 -- !query 67 -SELECT cast(1 as int) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t -- !query 67 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> -- !query 67 output 2 -- !query 68 -SELECT cast(1 as int) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as decimal(10, 0)) FROM t -- !query 68 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 68 output 2 -- !query 69 -SELECT cast(1 as int) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as string) FROM t -- !query 69 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 69 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) + cast(1 as decimal(39, 1)) FROM t +2.0 -- !query 70 -SELECT cast(1 as bigint) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as string) FROM t -- !query 70 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 70 output -2 +2.0 -- !query 71 -SELECT cast(1 as bigint) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as string) FROM t -- !query 71 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 71 output -2 +2.0 -- !query 72 -SELECT cast(1 as bigint) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as string) FROM t -- !query 72 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 72 output -2 +2.0 -- !query 73 -SELECT cast(1 as bigint) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast('1' as binary) FROM t -- !query 73 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 73 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 74 -SELECT cast(1 as bigint) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast('1' as binary) FROM t -- !query 74 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 74 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 75 -SELECT cast(1 as bigint) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast('1' as binary) FROM t -- !query 75 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 75 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 76 -SELECT cast(1 as bigint) + cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast('1' as binary) FROM t -- !query 76 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 76 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 77 -SELECT cast(1 as bigint) + cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast(1 as boolean) FROM t -- !query 77 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) + CAST(1 AS DECIMAL(20,0))):decimal(21,0)> +struct<> -- !query 77 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 78 -SELECT cast(1 as bigint) + cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast(1 as boolean) FROM t -- !query 78 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<> -- !query 78 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 79 -SELECT cast(1 as bigint) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast(1 as boolean) FROM t -- !query 79 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 79 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 80 -SELECT cast(1 as bigint) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast(1 as boolean) FROM t -- !query 80 schema struct<> -- !query 80 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) + cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 81 -SELECT cast(1 as bigint) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 81 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 81 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 82 -SELECT cast(1 as bigint) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 82 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 82 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 83 -SELECT cast(1 as bigint) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 83 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 83 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 84 -SELECT cast(1 as bigint) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 84 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 84 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 85 -SELECT cast(1 as bigint) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00' as date) FROM t -- !query 85 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 85 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 86 -SELECT cast(1 as bigint) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00' as date) FROM t -- !query 86 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 86 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 87 -SELECT cast(1 as bigint) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00' as date) FROM t -- !query 87 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 87 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 88 -SELECT cast(1 as bigint) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00' as date) FROM t -- !query 88 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 88 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 89 -SELECT cast(1 as bigint) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as tinyint) - cast(1 as decimal(3, 0)) FROM t -- !query 89 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) - CAST(1 AS DECIMAL(3,0))):decimal(4,0)> -- !query 89 output -2 +0 -- !query 90 -SELECT cast(1 as bigint) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as tinyint) - cast(1 as decimal(5, 0)) FROM t -- !query 90 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 90 output -2 +0 -- !query 91 -SELECT cast(1 as bigint) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as tinyint) - cast(1 as decimal(10, 0)) FROM t -- !query 91 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 91 output -2 +0 -- !query 92 -SELECT cast(1 as bigint) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as tinyint) - cast(1 as decimal(20, 0)) FROM t -- !query 92 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 92 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) + cast(1 as decimal(39, 1)) FROM t +0 -- !query 93 -SELECT cast(1 as float) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as smallint) - cast(1 as decimal(3, 0)) FROM t -- !query 93 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 93 output -2.0 +0 -- !query 94 -SELECT cast(1 as float) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as smallint) - cast(1 as decimal(5, 0)) FROM t -- !query 94 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) - CAST(1 AS DECIMAL(5,0))):decimal(6,0)> -- !query 94 output -2.0 +0 -- !query 95 -SELECT cast(1 as float) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as smallint) - cast(1 as decimal(10, 0)) FROM t -- !query 95 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 95 output -2.0 +0 -- !query 96 -SELECT cast(1 as float) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as smallint) - cast(1 as decimal(20, 0)) FROM t -- !query 96 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 96 output -2.0 +0 -- !query 97 -SELECT cast(1 as float) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as int) - cast(1 as decimal(3, 0)) FROM t -- !query 97 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 97 output -2.0 +0 -- !query 98 -SELECT cast(1 as float) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as int) - cast(1 as decimal(5, 0)) FROM t -- !query 98 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 98 output -2.0 +0 -- !query 99 -SELECT cast(1 as float) + cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as int) - cast(1 as decimal(10, 0)) FROM t -- !query 99 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> -- !query 99 output -2.0 +0 -- !query 100 -SELECT cast(1 as float) + cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as int) - cast(1 as decimal(20, 0)) FROM t -- !query 100 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 100 output -2.0 +0 -- !query 101 -SELECT cast(1 as float) + cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as bigint) - cast(1 as decimal(3, 0)) FROM t -- !query 101 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 101 output -2.0 +0 -- !query 102 -SELECT cast(1 as float) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as bigint) - cast(1 as decimal(5, 0)) FROM t -- !query 102 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 102 output -2.0 +0 -- !query 103 -SELECT cast(1 as float) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as bigint) - cast(1 as decimal(10, 0)) FROM t -- !query 103 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 103 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) + cast(1 as decimal(39, 0)) FROM t +0 -- !query 104 -SELECT cast(1 as float) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as bigint) - cast(1 as decimal(20, 0)) FROM t -- !query 104 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) - CAST(1 AS DECIMAL(20,0))):decimal(21,0)> -- !query 104 output -NULL +0 -- !query 105 -SELECT cast(1 as float) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as float) - cast(1 as decimal(3, 0)) FROM t -- !query 105 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 105 output -2.0 +0.0 -- !query 106 -SELECT cast(1 as float) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as float) - cast(1 as decimal(5, 0)) FROM t -- !query 106 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 106 output -2.0 +0.0 -- !query 107 -SELECT cast(1 as float) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as float) - cast(1 as decimal(10, 0)) FROM t -- !query 107 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 107 output -2.0 +0.0 -- !query 108 -SELECT cast(1 as float) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as float) - cast(1 as decimal(20, 0)) FROM t -- !query 108 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 108 output -2.0 +0.0 -- !query 109 -SELECT cast(1 as float) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as double) - cast(1 as decimal(3, 0)) FROM t -- !query 109 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 109 output -2.0 +0.0 -- !query 110 -SELECT cast(1 as float) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as double) - cast(1 as decimal(5, 0)) FROM t -- !query 110 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 110 output -2.0 +0.0 -- !query 111 -SELECT cast(1 as float) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as double) - cast(1 as decimal(10, 0)) FROM t -- !query 111 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 111 output -2.0 +0.0 -- !query 112 -SELECT cast(1 as float) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as double) - cast(1 as decimal(20, 0)) FROM t -- !query 112 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 112 output -2.0 +0.0 -- !query 113 -SELECT cast(1 as float) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 0)) FROM t -- !query 113 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 113 output -2.0 +0 -- !query 114 -SELECT cast(1 as float) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 0)) FROM t -- !query 114 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 114 output -2.0 +0 -- !query 115 -SELECT cast(1 as float) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t -- !query 115 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> -- !query 115 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) + cast(1 as decimal(39, 1)) FROM t +0 -- !query 116 -SELECT cast(1 as double) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 0)) FROM t -- !query 116 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 116 output -2.0 +0 -- !query 117 -SELECT cast(1 as double) + cast(1 as decimal(3, 0)) FROM t +SELECT cast('1' as binary) - cast(1 as decimal(3, 0)) FROM t -- !query 117 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +struct<> -- !query 117 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 118 -SELECT cast(1 as double) + cast(1 as decimal(4, 0)) FROM t +SELECT cast('1' as binary) - cast(1 as decimal(5, 0)) FROM t -- !query 118 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +struct<> -- !query 118 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 119 -SELECT cast(1 as double) + cast(1 as decimal(5, 0)) FROM t +SELECT cast('1' as binary) - cast(1 as decimal(10, 0)) FROM t -- !query 119 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +struct<> -- !query 119 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 120 -SELECT cast(1 as double) + cast(1 as decimal(6, 0)) FROM t +SELECT cast('1' as binary) - cast(1 as decimal(20, 0)) FROM t -- !query 120 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +struct<> -- !query 120 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 121 -SELECT cast(1 as double) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 0)) FROM t -- !query 121 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +struct<> -- !query 121 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 122 -SELECT cast(1 as double) + cast(1 as decimal(11, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 0)) FROM t -- !query 122 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +struct<> -- !query 122 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 123 -SELECT cast(1 as double) + cast(1 as decimal(20, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 0)) FROM t -- !query 123 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +struct<> -- !query 123 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 124 -SELECT cast(1 as double) + cast(1 as decimal(21, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 0)) FROM t -- !query 124 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +struct<> -- !query 124 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 125 -SELECT cast(1 as double) + cast(1 as decimal(38, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 0)) FROM t -- !query 125 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +struct<> -- !query 125 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 126 -SELECT cast(1 as double) + cast(1 as decimal(39, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 0)) FROM t -- !query 126 schema struct<> -- !query 126 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) + cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 127 -SELECT cast(1 as double) + cast(1 as decimal(1, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 0)) FROM t -- !query 127 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +struct<> -- !query 127 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 128 -SELECT cast(1 as double) + cast(1 as decimal(2, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 0)) FROM t -- !query 128 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +struct<> -- !query 128 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 129 -SELECT cast(1 as double) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as tinyint) FROM t -- !query 129 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(3,0)) - CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(4,0)> -- !query 129 output -2.0 +0 -- !query 130 -SELECT cast(1 as double) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as tinyint) FROM t -- !query 130 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 130 output -2.0 +0 -- !query 131 -SELECT cast(1 as double) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as tinyint) FROM t -- !query 131 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 131 output -2.0 +0 -- !query 132 -SELECT cast(1 as double) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as tinyint) FROM t -- !query 132 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 132 output -2.0 +0 -- !query 133 -SELECT cast(1 as double) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as smallint) FROM t -- !query 133 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> -- !query 133 output -2.0 +0 -- !query 134 -SELECT cast(1 as double) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as smallint) FROM t -- !query 134 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(5,0)) - CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(6,0)> -- !query 134 output -2.0 +0 -- !query 135 -SELECT cast(1 as double) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as smallint) FROM t -- !query 135 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 135 output -2.0 +0 -- !query 136 -SELECT cast(1 as double) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as smallint) FROM t -- !query 136 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 136 output -2.0 +0 -- !query 137 -SELECT cast(1 as double) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as int) FROM t -- !query 137 schema -struct<(CAST(1 AS DOUBLE) + CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 137 output -2.0 +0 -- !query 138 -SELECT cast(1 as double) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as int) FROM t -- !query 138 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 138 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) + cast(1 as decimal(39, 1)) FROM t +0 -- !query 139 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as int) FROM t -- !query 139 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(1 AS DECIMAL(10,0)) - CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(11,0)> -- !query 139 output -2 +0 -- !query 140 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as int) FROM t -- !query 140 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 140 output -2 +0 -- !query 141 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as bigint) FROM t -- !query 141 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 141 output -2 +0 -- !query 142 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as bigint) FROM t -- !query 142 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 142 output -2 +0 -- !query 143 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as bigint) FROM t -- !query 143 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 143 output -2 +0 -- !query 144 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as bigint) FROM t -- !query 144 schema -struct<(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +struct<(CAST(1 AS DECIMAL(20,0)) - CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(21,0)> -- !query 144 output -2 +0 -- !query 145 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as float) FROM t -- !query 145 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 145 output -2 +0.0 -- !query 146 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as float) FROM t -- !query 146 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 146 output -2 +0.0 -- !query 147 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as float) FROM t -- !query 147 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 147 output -2 +0.0 -- !query 148 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as float) FROM t -- !query 148 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 148 output -2 +0.0 -- !query 149 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as double) FROM t -- !query 149 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> -- !query 149 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 0)) FROM t +0.0 -- !query 150 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as double) FROM t -- !query 150 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> -- !query 150 output -NULL +0.0 -- !query 151 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as double) FROM t -- !query 151 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> -- !query 151 output -2 +0.0 -- !query 152 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as double) FROM t -- !query 152 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> -- !query 152 output -2 +0.0 -- !query 153 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as decimal(10, 0)) FROM t -- !query 153 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 153 output -2 +0 -- !query 154 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as decimal(10, 0)) FROM t -- !query 154 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> -- !query 154 output -2 +0 -- !query 155 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t -- !query 155 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> -- !query 155 output -2 +0 -- !query 156 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as decimal(10, 0)) FROM t -- !query 156 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> -- !query 156 output -2 +0 -- !query 157 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as string) FROM t -- !query 157 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 157 output -2 +0.0 -- !query 158 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as string) FROM t -- !query 158 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 158 output -2 +0.0 -- !query 159 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as string) FROM t -- !query 159 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 159 output -2 +0.0 -- !query 160 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as string) FROM t -- !query 160 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 160 output -2 +0.0 -- !query 161 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast('1' as binary) FROM t -- !query 161 schema struct<> -- !query 161 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(39, 1)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 162 -SELECT cast('1' as binary) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast('1' as binary) FROM t -- !query 162 schema struct<> -- !query 162 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 163 -SELECT cast('1' as binary) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast('1' as binary) FROM t -- !query 163 schema struct<> -- !query 163 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 164 -SELECT cast('1' as binary) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast('1' as binary) FROM t -- !query 164 schema struct<> -- !query 164 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 165 -SELECT cast('1' as binary) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast(1 as boolean) FROM t -- !query 165 schema struct<> -- !query 165 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 166 -SELECT cast('1' as binary) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast(1 as boolean) FROM t -- !query 166 schema struct<> -- !query 166 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 167 -SELECT cast('1' as binary) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast(1 as boolean) FROM t -- !query 167 schema struct<> -- !query 167 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 168 -SELECT cast('1' as binary) + cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast(1 as boolean) FROM t -- !query 168 schema struct<> -- !query 168 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 169 -SELECT cast('1' as binary) + cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 169 schema struct<> -- !query 169 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 170 -SELECT cast('1' as binary) + cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 170 schema struct<> -- !query 170 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 171 -SELECT cast('1' as binary) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 171 schema struct<> -- !query 171 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 172 -SELECT cast('1' as binary) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 172 schema struct<> -- !query 172 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) + cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 173 -SELECT cast('1' as binary) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00' as date) FROM t -- !query 173 schema struct<> -- !query 173 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 174 -SELECT cast('1' as binary) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00' as date) FROM t -- !query 174 schema struct<> -- !query 174 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 175 -SELECT cast('1' as binary) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00' as date) FROM t -- !query 175 schema struct<> -- !query 175 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 176 -SELECT cast('1' as binary) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00' as date) FROM t -- !query 176 schema struct<> -- !query 176 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 177 -SELECT cast('1' as binary) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as tinyint) * cast(1 as decimal(3, 0)) FROM t -- !query 177 schema -struct<> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) * CAST(1 AS DECIMAL(3,0))):decimal(7,0)> -- !query 177 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 +1 -- !query 178 -SELECT cast('1' as binary) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as tinyint) * cast(1 as decimal(5, 0)) FROM t -- !query 178 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,0)> -- !query 178 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 +1 -- !query 179 -SELECT cast('1' as binary) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as tinyint) * cast(1 as decimal(10, 0)) FROM t -- !query 179 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> -- !query 179 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 +1 -- !query 180 -SELECT cast('1' as binary) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as tinyint) * cast(1 as decimal(20, 0)) FROM t -- !query 180 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,0)> -- !query 180 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 +1 -- !query 181 -SELECT cast('1' as binary) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as smallint) * cast(1 as decimal(3, 0)) FROM t -- !query 181 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(9,0)> -- !query 181 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 +1 -- !query 182 -SELECT cast('1' as binary) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as smallint) * cast(1 as decimal(5, 0)) FROM t -- !query 182 schema -struct<> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) * CAST(1 AS DECIMAL(5,0))):decimal(11,0)> -- !query 182 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 +1 -- !query 183 -SELECT cast('1' as binary) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as smallint) * cast(1 as decimal(10, 0)) FROM t -- !query 183 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> -- !query 183 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) + CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 +1 -- !query 184 -SELECT cast('1' as binary) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as smallint) * cast(1 as decimal(20, 0)) FROM t -- !query 184 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,0)> -- !query 184 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) + cast(1 as decimal(39, 1)) FROM t +1 -- !query 185 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as int) * cast(1 as decimal(3, 0)) FROM t -- !query 185 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> -- !query 185 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 +1 -- !query 186 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as int) * cast(1 as decimal(5, 0)) FROM t -- !query 186 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> -- !query 186 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 +1 -- !query 187 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as int) * cast(1 as decimal(10, 0)) FROM t -- !query 187 schema -struct<> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> -- !query 187 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 +1 -- !query 188 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as int) * cast(1 as decimal(20, 0)) FROM t -- !query 188 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> -- !query 188 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 +1 -- !query 189 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as bigint) * cast(1 as decimal(3, 0)) FROM t -- !query 189 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(24,0)> -- !query 189 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 +1 -- !query 190 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as bigint) * cast(1 as decimal(5, 0)) FROM t -- !query 190 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,0)> -- !query 190 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 +1 -- !query 191 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as bigint) * cast(1 as decimal(10, 0)) FROM t -- !query 191 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> -- !query 191 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 +1 -- !query 192 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as bigint) * cast(1 as decimal(20, 0)) FROM t -- !query 192 schema -struct<> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) * CAST(1 AS DECIMAL(20,0))):decimal(38,0)> -- !query 192 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 +1 -- !query 193 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as float) * cast(1 as decimal(3, 0)) FROM t -- !query 193 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 193 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 +1.0 -- !query 194 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as float) * cast(1 as decimal(5, 0)) FROM t -- !query 194 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 194 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 +1.0 -- !query 195 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as float) * cast(1 as decimal(10, 0)) FROM t -- !query 195 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 195 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 0)) FROM t +1.0 -- !query 196 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as float) * cast(1 as decimal(20, 0)) FROM t -- !query 196 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 196 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 +1.0 -- !query 197 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as double) * cast(1 as decimal(3, 0)) FROM t -- !query 197 schema -struct<> +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 197 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 +1.0 -- !query 198 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as double) * cast(1 as decimal(5, 0)) FROM t -- !query 198 schema -struct<> +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 198 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 +1.0 -- !query 199 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as double) * cast(1 as decimal(10, 0)) FROM t -- !query 199 schema -struct<> +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 199 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 +1.0 -- !query 200 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as double) * cast(1 as decimal(20, 0)) FROM t -- !query 200 schema -struct<> +struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 200 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 +1.0 -- !query 201 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 0)) FROM t -- !query 201 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> -- !query 201 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 +1 -- !query 202 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 0)) FROM t -- !query 202 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> -- !query 202 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 +1 -- !query 203 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t -- !query 203 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> -- !query 203 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 +1 -- !query 204 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 0)) FROM t -- !query 204 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> -- !query 204 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 +1 -- !query 205 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(21, 1)) FROM t +SELECT cast('1' as binary) * cast(1 as decimal(3, 0)) FROM t -- !query 205 schema struct<> -- !query 205 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 206 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(38, 1)) FROM t +SELECT cast('1' as binary) * cast(1 as decimal(5, 0)) FROM t -- !query 206 schema struct<> -- !query 206 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) + CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 207 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 1)) FROM t +SELECT cast('1' as binary) * cast(1 as decimal(10, 0)) FROM t -- !query 207 schema struct<> -- !query 207 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(39, 1)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 208 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 0)) FROM t +SELECT cast('1' as binary) * cast(1 as decimal(20, 0)) FROM t -- !query 208 schema struct<> -- !query 208 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 209 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 0)) FROM t +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 0)) FROM t -- !query 209 schema struct<> -- !query 209 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 210 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 0)) FROM t +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 0)) FROM t -- !query 210 schema struct<> -- !query 210 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 211 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 0)) FROM t +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 0)) FROM t -- !query 211 schema struct<> -- !query 211 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 212 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 0)) FROM t +SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 0)) FROM t -- !query 212 schema struct<> -- !query 212 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 213 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 0)) FROM t -- !query 213 schema struct<> -- !query 213 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 214 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 0)) FROM t +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 0)) FROM t -- !query 214 schema struct<> -- !query 214 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 215 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 0)) FROM t +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 0)) FROM t -- !query 215 schema struct<> -- !query 215 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 216 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 0)) FROM t +SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 0)) FROM t -- !query 216 schema struct<> -- !query 216 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 +cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 217 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as tinyint) FROM t -- !query 217 schema -struct<> +struct<(CAST(1 AS DECIMAL(3,0)) * CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(7,0)> -- !query 217 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 +1 -- !query 218 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as tinyint) FROM t -- !query 218 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(9,0)> -- !query 218 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 0)) FROM t +1 -- !query 219 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as tinyint) FROM t -- !query 219 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> -- !query 219 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 +1 -- !query 220 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as tinyint) FROM t -- !query 220 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(24,0)> -- !query 220 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 +1 -- !query 221 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as smallint) FROM t -- !query 221 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,0)> -- !query 221 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 +1 -- !query 222 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as smallint) FROM t -- !query 222 schema -struct<> +struct<(CAST(1 AS DECIMAL(5,0)) * CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(11,0)> -- !query 222 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 +1 -- !query 223 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as smallint) FROM t -- !query 223 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> -- !query 223 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 +1 -- !query 224 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as smallint) FROM t -- !query 224 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,0)> -- !query 224 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 +1 -- !query 225 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as int) FROM t -- !query 225 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> -- !query 225 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 +1 -- !query 226 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as int) FROM t -- !query 226 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> -- !query 226 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 +1 -- !query 227 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as int) FROM t -- !query 227 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) * CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(21,0)> -- !query 227 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 +1 -- !query 228 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as int) FROM t -- !query 228 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> -- !query 228 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 +1 -- !query 229 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as bigint) FROM t -- !query 229 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,0)> -- !query 229 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) + CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 +1 -- !query 230 -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as bigint) FROM t -- !query 230 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,0)> -- !query 230 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(39, 1)) FROM t +1 -- !query 231 -SELECT cast(1 as decimal(1, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as bigint) FROM t -- !query 231 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(4,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> -- !query 231 output -2 +1 -- !query 232 -SELECT cast(1 as decimal(3, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as bigint) FROM t -- !query 232 schema -struct<(CAST(1 AS DECIMAL(3,0)) + CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(4,0)> +struct<(CAST(1 AS DECIMAL(20,0)) * CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(38,0)> -- !query 232 output -2 +1 -- !query 233 -SELECT cast(1 as decimal(4, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as float) FROM t -- !query 233 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(5,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 233 output -2 +1.0 -- !query 234 -SELECT cast(1 as decimal(5, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as float) FROM t -- !query 234 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 234 output -2 +1.0 -- !query 235 -SELECT cast(1 as decimal(6, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as float) FROM t -- !query 235 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 235 output -2 +1.0 -- !query 236 -SELECT cast(1 as decimal(10, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as float) FROM t -- !query 236 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 236 output -2 +1.0 -- !query 237 -SELECT cast(1 as decimal(11, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as double) FROM t -- !query 237 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> -- !query 237 output -2 +1.0 -- !query 238 -SELECT cast(1 as decimal(20, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as double) FROM t -- !query 238 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> -- !query 238 output -2 +1.0 -- !query 239 -SELECT cast(1 as decimal(21, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as double) FROM t -- !query 239 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> -- !query 239 output -2 +1.0 -- !query 240 -SELECT cast(1 as decimal(38, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as double) FROM t -- !query 240 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> -- !query 240 output -2 +1.0 -- !query 241 -SELECT cast(1 as decimal(39, 0)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as decimal(10, 0)) FROM t -- !query 241 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> -- !query 241 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as tinyint) FROM t +1 -- !query 242 -SELECT cast(1 as decimal(1, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as decimal(10, 0)) FROM t -- !query 242 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> -- !query 242 output -NULL +1 -- !query 243 -SELECT cast(1 as decimal(2, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t -- !query 243 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> -- !query 243 output -2 +1 -- !query 244 -SELECT cast(1 as decimal(3, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as decimal(10, 0)) FROM t -- !query 244 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> -- !query 244 output -2 +1 -- !query 245 -SELECT cast(1 as decimal(4, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as string) FROM t -- !query 245 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 245 output -2 +1.0 -- !query 246 -SELECT cast(1 as decimal(5, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as string) FROM t -- !query 246 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(6,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 246 output -2 +1.0 -- !query 247 -SELECT cast(1 as decimal(6, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as string) FROM t -- !query 247 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 247 output -2 +1.0 -- !query 248 -SELECT cast(1 as decimal(10, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as string) FROM t -- !query 248 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(11,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 248 output -2 +1.0 -- !query 249 -SELECT cast(1 as decimal(11, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast('1' as binary) FROM t -- !query 249 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 249 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 250 -SELECT cast(1 as decimal(20, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast('1' as binary) FROM t -- !query 250 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<> -- !query 250 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 251 -SELECT cast(1 as decimal(21, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast('1' as binary) FROM t -- !query 251 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 251 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 252 -SELECT cast(1 as decimal(38, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast('1' as binary) FROM t -- !query 252 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<> -- !query 252 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 253 -SELECT cast(1 as decimal(39, 1)) + cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast(1 as boolean) FROM t -- !query 253 schema struct<> -- !query 253 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as tinyint) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 254 -SELECT cast(1 as decimal(1, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast(1 as boolean) FROM t -- !query 254 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<> -- !query 254 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 255 -SELECT cast(1 as decimal(3, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast(1 as boolean) FROM t -- !query 255 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<> -- !query 255 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 256 -SELECT cast(1 as decimal(4, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast(1 as boolean) FROM t -- !query 256 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<> -- !query 256 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 257 -SELECT cast(1 as decimal(5, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t -- !query 257 schema -struct<(CAST(1 AS DECIMAL(5,0)) + CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(6,0)> +struct<> -- !query 257 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 258 -SELECT cast(1 as decimal(6, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t -- !query 258 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct<> -- !query 258 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 259 -SELECT cast(1 as decimal(10, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t -- !query 259 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 259 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 260 -SELECT cast(1 as decimal(11, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t -- !query 260 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<> -- !query 260 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 261 -SELECT cast(1 as decimal(20, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00' as date) FROM t -- !query 261 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 261 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 262 -SELECT cast(1 as decimal(21, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00' as date) FROM t -- !query 262 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<> -- !query 262 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 263 -SELECT cast(1 as decimal(38, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00' as date) FROM t -- !query 263 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 263 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 264 -SELECT cast(1 as decimal(39, 0)) + cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00' as date) FROM t -- !query 264 schema struct<> -- !query 264 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as smallint) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 265 -SELECT cast(1 as decimal(1, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as tinyint) / cast(1 as decimal(3, 0)) FROM t -- !query 265 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) / CAST(1 AS DECIMAL(3,0))):decimal(9,6)> -- !query 265 output -NULL +1 -- !query 266 -SELECT cast(1 as decimal(2, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as tinyint) / cast(1 as decimal(5, 0)) FROM t -- !query 266 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,6)> -- !query 266 output -2 +1 -- !query 267 -SELECT cast(1 as decimal(3, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as tinyint) / cast(1 as decimal(10, 0)) FROM t -- !query 267 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> -- !query 267 output -2 +1 -- !query 268 -SELECT cast(1 as decimal(4, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as tinyint) / cast(1 as decimal(20, 0)) FROM t -- !query 268 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,21)> -- !query 268 output -2 +1 -- !query 269 -SELECT cast(1 as decimal(5, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as smallint) / cast(1 as decimal(3, 0)) FROM t -- !query 269 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(11,6)> -- !query 269 output -2 +1 -- !query 270 -SELECT cast(1 as decimal(6, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as smallint) / cast(1 as decimal(5, 0)) FROM t -- !query 270 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) / CAST(1 AS DECIMAL(5,0))):decimal(11,6)> -- !query 270 output -2 +1 -- !query 271 -SELECT cast(1 as decimal(10, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as smallint) / cast(1 as decimal(10, 0)) FROM t -- !query 271 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(11,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> -- !query 271 output -2 +1 -- !query 272 -SELECT cast(1 as decimal(11, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as smallint) / cast(1 as decimal(20, 0)) FROM t -- !query 272 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,21)> -- !query 272 output -2 +1 -- !query 273 -SELECT cast(1 as decimal(20, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as int) / cast(1 as decimal(3, 0)) FROM t -- !query 273 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> -- !query 273 output -2 +1 -- !query 274 -SELECT cast(1 as decimal(21, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as int) / cast(1 as decimal(5, 0)) FROM t -- !query 274 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> -- !query 274 output -2 +1 -- !query 275 -SELECT cast(1 as decimal(38, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as int) / cast(1 as decimal(10, 0)) FROM t -- !query 275 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> -- !query 275 output -2 +1 -- !query 276 -SELECT cast(1 as decimal(39, 1)) + cast(1 as smallint) FROM t +SELECT cast(1 as int) / cast(1 as decimal(20, 0)) FROM t -- !query 276 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> -- !query 276 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as smallint) FROM t +1 -- !query 277 -SELECT cast(1 as decimal(1, 0)) + cast(1 as int) FROM t +SELECT cast(1 as bigint) / cast(1 as decimal(3, 0)) FROM t -- !query 277 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(26,6)> -- !query 277 output -2 +1 -- !query 278 -SELECT cast(1 as decimal(3, 0)) + cast(1 as int) FROM t +SELECT cast(1 as bigint) / cast(1 as decimal(5, 0)) FROM t -- !query 278 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,6)> -- !query 278 output -2 +1 -- !query 279 -SELECT cast(1 as decimal(4, 0)) + cast(1 as int) FROM t +SELECT cast(1 as bigint) / cast(1 as decimal(10, 0)) FROM t -- !query 279 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> -- !query 279 output -2 +1 -- !query 280 -SELECT cast(1 as decimal(5, 0)) + cast(1 as int) FROM t +SELECT cast(1 as bigint) / cast(1 as decimal(20, 0)) FROM t -- !query 280 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) / CAST(1 AS DECIMAL(20,0))):decimal(38,19)> -- !query 280 output -2 +1 -- !query 281 -SELECT cast(1 as decimal(6, 0)) + cast(1 as int) FROM t +SELECT cast(1 as float) / cast(1 as decimal(3, 0)) FROM t -- !query 281 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) AS DOUBLE)):double> -- !query 281 output -2 +1.0 -- !query 282 -SELECT cast(1 as decimal(10, 0)) + cast(1 as int) FROM t +SELECT cast(1 as float) / cast(1 as decimal(5, 0)) FROM t -- !query 282 schema -struct<(CAST(1 AS DECIMAL(10,0)) + CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) AS DOUBLE)):double> -- !query 282 output -2 +1.0 -- !query 283 -SELECT cast(1 as decimal(11, 0)) + cast(1 as int) FROM t +SELECT cast(1 as float) / cast(1 as decimal(10, 0)) FROM t -- !query 283 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) AS DOUBLE)):double> -- !query 283 output -2 +1.0 -- !query 284 -SELECT cast(1 as decimal(20, 0)) + cast(1 as int) FROM t +SELECT cast(1 as float) / cast(1 as decimal(20, 0)) FROM t -- !query 284 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) AS DOUBLE)):double> -- !query 284 output -2 +1.0 -- !query 285 -SELECT cast(1 as decimal(21, 0)) + cast(1 as int) FROM t +SELECT cast(1 as double) / cast(1 as decimal(3, 0)) FROM t -- !query 285 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 285 output -2 +1.0 -- !query 286 -SELECT cast(1 as decimal(38, 0)) + cast(1 as int) FROM t +SELECT cast(1 as double) / cast(1 as decimal(5, 0)) FROM t -- !query 286 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 286 output -2 +1.0 -- !query 287 -SELECT cast(1 as decimal(39, 0)) + cast(1 as int) FROM t +SELECT cast(1 as double) / cast(1 as decimal(10, 0)) FROM t -- !query 287 schema -struct<> +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 287 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as int) FROM t +1.0 -- !query 288 -SELECT cast(1 as decimal(1, 1)) + cast(1 as int) FROM t +SELECT cast(1 as double) / cast(1 as decimal(20, 0)) FROM t -- !query 288 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 288 output -NULL +1.0 -- !query 289 -SELECT cast(1 as decimal(2, 1)) + cast(1 as int) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 0)) FROM t -- !query 289 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> -- !query 289 output -2 +1 -- !query 290 -SELECT cast(1 as decimal(3, 1)) + cast(1 as int) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 0)) FROM t -- !query 290 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> -- !query 290 output -2 +1 -- !query 291 -SELECT cast(1 as decimal(4, 1)) + cast(1 as int) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t -- !query 291 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> -- !query 291 output -2 +1 -- !query 292 -SELECT cast(1 as decimal(5, 1)) + cast(1 as int) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 0)) FROM t -- !query 292 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> -- !query 292 output -2 +1 -- !query 293 -SELECT cast(1 as decimal(6, 1)) + cast(1 as int) FROM t +SELECT cast('1' as binary) / cast(1 as decimal(3, 0)) FROM t -- !query 293 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 293 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 294 -SELECT cast(1 as decimal(10, 1)) + cast(1 as int) FROM t +SELECT cast('1' as binary) / cast(1 as decimal(5, 0)) FROM t -- !query 294 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 294 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 295 -SELECT cast(1 as decimal(11, 1)) + cast(1 as int) FROM t +SELECT cast('1' as binary) / cast(1 as decimal(10, 0)) FROM t -- !query 295 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 295 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 296 -SELECT cast(1 as decimal(20, 1)) + cast(1 as int) FROM t +SELECT cast('1' as binary) / cast(1 as decimal(20, 0)) FROM t -- !query 296 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<> -- !query 296 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 297 -SELECT cast(1 as decimal(21, 1)) + cast(1 as int) FROM t +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 0)) FROM t -- !query 297 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 297 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 298 -SELECT cast(1 as decimal(38, 1)) + cast(1 as int) FROM t +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 0)) FROM t -- !query 298 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<> -- !query 298 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 299 -SELECT cast(1 as decimal(39, 1)) + cast(1 as int) FROM t +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 0)) FROM t -- !query 299 schema struct<> -- !query 299 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as int) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 300 -SELECT cast(1 as decimal(1, 0)) + cast(1 as bigint) FROM t +SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 0)) FROM t -- !query 300 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 300 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 301 -SELECT cast(1 as decimal(3, 0)) + cast(1 as bigint) FROM t +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 0)) FROM t -- !query 301 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 301 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 302 -SELECT cast(1 as decimal(4, 0)) + cast(1 as bigint) FROM t +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 0)) FROM t -- !query 302 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 302 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 303 -SELECT cast(1 as decimal(5, 0)) + cast(1 as bigint) FROM t +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 0)) FROM t -- !query 303 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 303 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 304 -SELECT cast(1 as decimal(6, 0)) + cast(1 as bigint) FROM t +SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 0)) FROM t -- !query 304 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 304 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 305 -SELECT cast(1 as decimal(10, 0)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as tinyint) FROM t -- !query 305 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(1 AS DECIMAL(3,0)) / CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(9,6)> -- !query 305 output -2 +1 -- !query 306 -SELECT cast(1 as decimal(11, 0)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as tinyint) FROM t -- !query 306 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(11,6)> -- !query 306 output -2 +1 -- !query 307 -SELECT cast(1 as decimal(20, 0)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as tinyint) FROM t -- !query 307 schema -struct<(CAST(1 AS DECIMAL(20,0)) + CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> -- !query 307 output -2 +1 -- !query 308 -SELECT cast(1 as decimal(21, 0)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as tinyint) FROM t -- !query 308 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(26,6)> -- !query 308 output -2 +1 -- !query 309 -SELECT cast(1 as decimal(38, 0)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as smallint) FROM t -- !query 309 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,6)> -- !query 309 output -2 +1 -- !query 310 -SELECT cast(1 as decimal(39, 0)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as smallint) FROM t -- !query 310 schema -struct<> +struct<(CAST(1 AS DECIMAL(5,0)) / CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(11,6)> -- !query 310 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as bigint) FROM t +1 -- !query 311 -SELECT cast(1 as decimal(1, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as smallint) FROM t -- !query 311 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> -- !query 311 output -NULL +1 -- !query 312 -SELECT cast(1 as decimal(2, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as smallint) FROM t -- !query 312 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,6)> -- !query 312 output -2 +1 -- !query 313 -SELECT cast(1 as decimal(3, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as int) FROM t -- !query 313 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> -- !query 313 output -2 +1 -- !query 314 -SELECT cast(1 as decimal(4, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as int) FROM t -- !query 314 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> -- !query 314 output -2 +1 -- !query 315 -SELECT cast(1 as decimal(5, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as int) FROM t -- !query 315 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(1 AS DECIMAL(10,0)) / CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(21,11)> -- !query 315 output -2 +1 -- !query 316 -SELECT cast(1 as decimal(6, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as int) FROM t -- !query 316 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> -- !query 316 output -2 +1 -- !query 317 -SELECT cast(1 as decimal(10, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as bigint) FROM t -- !query 317 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,21)> -- !query 317 output -2 +1 -- !query 318 -SELECT cast(1 as decimal(11, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as bigint) FROM t -- !query 318 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,21)> -- !query 318 output -2 +1 -- !query 319 -SELECT cast(1 as decimal(20, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as bigint) FROM t -- !query 319 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> -- !query 319 output -2 +1 -- !query 320 -SELECT cast(1 as decimal(21, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as bigint) FROM t -- !query 320 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(1 AS DECIMAL(20,0)) / CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(38,19)> -- !query 320 output -2 +1 -- !query 321 -SELECT cast(1 as decimal(38, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as float) FROM t -- !query 321 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 321 output -2 +1.0 -- !query 322 -SELECT cast(1 as decimal(39, 1)) + cast(1 as bigint) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as float) FROM t -- !query 322 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 322 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as bigint) FROM t +1.0 -- !query 323 -SELECT cast(1 as decimal(1, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as float) FROM t -- !query 323 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 323 output -2.0 +1.0 -- !query 324 -SELECT cast(1 as decimal(3, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as float) FROM t -- !query 324 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 324 output -2.0 +1.0 -- !query 325 -SELECT cast(1 as decimal(4, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as double) FROM t -- !query 325 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> -- !query 325 output -2.0 +1.0 -- !query 326 -SELECT cast(1 as decimal(5, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as double) FROM t -- !query 326 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> -- !query 326 output -2.0 +1.0 -- !query 327 -SELECT cast(1 as decimal(6, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as double) FROM t -- !query 327 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> -- !query 327 output -2.0 +1.0 -- !query 328 -SELECT cast(1 as decimal(10, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as double) FROM t -- !query 328 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> -- !query 328 output -2.0 +1.0 -- !query 329 -SELECT cast(1 as decimal(11, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as decimal(10, 0)) FROM t -- !query 329 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> -- !query 329 output -2.0 +1 -- !query 330 -SELECT cast(1 as decimal(20, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as decimal(10, 0)) FROM t -- !query 330 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> -- !query 330 output -2.0 +1 -- !query 331 -SELECT cast(1 as decimal(21, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t -- !query 331 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> -- !query 331 output -2.0 +1 -- !query 332 -SELECT cast(1 as decimal(38, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as decimal(10, 0)) FROM t -- !query 332 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> -- !query 332 output -2.0 +1 -- !query 333 -SELECT cast(1 as decimal(39, 0)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as string) FROM t -- !query 333 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 333 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as float) FROM t +1.0 -- !query 334 -SELECT cast(1 as decimal(1, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as string) FROM t -- !query 334 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 334 output -NULL +1.0 -- !query 335 -SELECT cast(1 as decimal(2, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as string) FROM t -- !query 335 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 335 output -2.0 +1.0 -- !query 336 -SELECT cast(1 as decimal(3, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as string) FROM t -- !query 336 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 336 output -2.0 +1.0 -- !query 337 -SELECT cast(1 as decimal(4, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) / cast('1' as binary) FROM t -- !query 337 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 337 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 338 -SELECT cast(1 as decimal(5, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) / cast('1' as binary) FROM t -- !query 338 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 338 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 339 -SELECT cast(1 as decimal(6, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) / cast('1' as binary) FROM t -- !query 339 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 339 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 340 -SELECT cast(1 as decimal(10, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) / cast('1' as binary) FROM t -- !query 340 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 340 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 341 -SELECT cast(1 as decimal(11, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) / cast(1 as boolean) FROM t -- !query 341 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 341 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 342 -SELECT cast(1 as decimal(20, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) / cast(1 as boolean) FROM t -- !query 342 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 342 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 343 -SELECT cast(1 as decimal(21, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) / cast(1 as boolean) FROM t -- !query 343 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 343 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 344 -SELECT cast(1 as decimal(38, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) / cast(1 as boolean) FROM t -- !query 344 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) + CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 344 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 345 -SELECT cast(1 as decimal(39, 1)) + cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t -- !query 345 schema struct<> -- !query 345 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as float) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 346 -SELECT cast(1 as decimal(1, 0)) + cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t -- !query 346 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<> -- !query 346 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 347 -SELECT cast(1 as decimal(3, 0)) + cast(1 as double) FROM t +SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t -- !query 347 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<> -- !query 347 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 348 -SELECT cast(1 as decimal(4, 0)) + cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t -- !query 348 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<> -- !query 348 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 349 -SELECT cast(1 as decimal(5, 0)) + cast(1 as double) FROM t +SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00' as date) FROM t -- !query 349 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<> -- !query 349 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 350 -SELECT cast(1 as decimal(6, 0)) + cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00' as date) FROM t -- !query 350 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<> -- !query 350 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 351 -SELECT cast(1 as decimal(10, 0)) + cast(1 as double) FROM t +SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00' as date) FROM t -- !query 351 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<> -- !query 351 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 352 -SELECT cast(1 as decimal(11, 0)) + cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00' as date) FROM t -- !query 352 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<> -- !query 352 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 353 -SELECT cast(1 as decimal(20, 0)) + cast(1 as double) FROM t +SELECT cast(1 as tinyint) % cast(1 as decimal(3, 0)) FROM t -- !query 353 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) % CAST(1 AS DECIMAL(3,0))):decimal(3,0)> -- !query 353 output -2.0 +0 -- !query 354 -SELECT cast(1 as decimal(21, 0)) + cast(1 as double) FROM t +SELECT cast(1 as tinyint) % cast(1 as decimal(5, 0)) FROM t -- !query 354 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(3,0)> -- !query 354 output -2.0 +0 -- !query 355 -SELECT cast(1 as decimal(38, 0)) + cast(1 as double) FROM t +SELECT cast(1 as tinyint) % cast(1 as decimal(10, 0)) FROM t -- !query 355 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> -- !query 355 output -2.0 +0 -- !query 356 -SELECT cast(1 as decimal(39, 0)) + cast(1 as double) FROM t +SELECT cast(1 as tinyint) % cast(1 as decimal(20, 0)) FROM t -- !query 356 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(3,0)> -- !query 356 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as double) FROM t +0 -- !query 357 -SELECT cast(1 as decimal(1, 1)) + cast(1 as double) FROM t +SELECT cast(1 as smallint) % cast(1 as decimal(3, 0)) FROM t -- !query 357 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(3,0)> -- !query 357 output -NULL +0 -- !query 358 -SELECT cast(1 as decimal(2, 1)) + cast(1 as double) FROM t +SELECT cast(1 as smallint) % cast(1 as decimal(5, 0)) FROM t -- !query 358 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) % CAST(1 AS DECIMAL(5,0))):decimal(5,0)> -- !query 358 output -2.0 +0 -- !query 359 -SELECT cast(1 as decimal(3, 1)) + cast(1 as double) FROM t +SELECT cast(1 as smallint) % cast(1 as decimal(10, 0)) FROM t -- !query 359 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> -- !query 359 output -2.0 +0 -- !query 360 -SELECT cast(1 as decimal(4, 1)) + cast(1 as double) FROM t +SELECT cast(1 as smallint) % cast(1 as decimal(20, 0)) FROM t -- !query 360 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(5,0)> -- !query 360 output -2.0 +0 -- !query 361 -SELECT cast(1 as decimal(5, 1)) + cast(1 as double) FROM t +SELECT cast(1 as int) % cast(1 as decimal(3, 0)) FROM t -- !query 361 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> -- !query 361 output -2.0 +0 -- !query 362 -SELECT cast(1 as decimal(6, 1)) + cast(1 as double) FROM t +SELECT cast(1 as int) % cast(1 as decimal(5, 0)) FROM t -- !query 362 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> -- !query 362 output -2.0 +0 -- !query 363 -SELECT cast(1 as decimal(10, 1)) + cast(1 as double) FROM t +SELECT cast(1 as int) % cast(1 as decimal(10, 0)) FROM t -- !query 363 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> -- !query 363 output -2.0 +0 -- !query 364 -SELECT cast(1 as decimal(11, 1)) + cast(1 as double) FROM t +SELECT cast(1 as int) % cast(1 as decimal(20, 0)) FROM t -- !query 364 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> -- !query 364 output -2.0 +0 -- !query 365 -SELECT cast(1 as decimal(20, 1)) + cast(1 as double) FROM t +SELECT cast(1 as bigint) % cast(1 as decimal(3, 0)) FROM t -- !query 365 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(3,0)> -- !query 365 output -2.0 +0 -- !query 366 -SELECT cast(1 as decimal(21, 1)) + cast(1 as double) FROM t +SELECT cast(1 as bigint) % cast(1 as decimal(5, 0)) FROM t -- !query 366 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(5,0)> -- !query 366 output -2.0 +0 -- !query 367 -SELECT cast(1 as decimal(38, 1)) + cast(1 as double) FROM t +SELECT cast(1 as bigint) % cast(1 as decimal(10, 0)) FROM t -- !query 367 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) + CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> -- !query 367 output -2.0 +0 -- !query 368 -SELECT cast(1 as decimal(39, 1)) + cast(1 as double) FROM t +SELECT cast(1 as bigint) % cast(1 as decimal(20, 0)) FROM t -- !query 368 schema -struct<> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) % CAST(1 AS DECIMAL(20,0))):decimal(20,0)> -- !query 368 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as double) FROM t +0 -- !query 369 -SELECT cast(1 as decimal(1, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as float) % cast(1 as decimal(3, 0)) FROM t -- !query 369 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 369 output -2 +0.0 -- !query 370 -SELECT cast(1 as decimal(3, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as float) % cast(1 as decimal(5, 0)) FROM t -- !query 370 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 370 output -2 +0.0 -- !query 371 -SELECT cast(1 as decimal(4, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as float) % cast(1 as decimal(10, 0)) FROM t -- !query 371 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 371 output -2 +0.0 -- !query 372 -SELECT cast(1 as decimal(5, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as float) % cast(1 as decimal(20, 0)) FROM t -- !query 372 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 372 output -2 +0.0 -- !query 373 -SELECT cast(1 as decimal(6, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as double) % cast(1 as decimal(3, 0)) FROM t -- !query 373 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> -- !query 373 output -2 +0.0 -- !query 374 -SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as double) % cast(1 as decimal(5, 0)) FROM t -- !query 374 schema -struct<(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> -- !query 374 output -2 +0.0 -- !query 375 -SELECT cast(1 as decimal(11, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as double) % cast(1 as decimal(10, 0)) FROM t -- !query 375 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> -- !query 375 output -2 +0.0 -- !query 376 -SELECT cast(1 as decimal(20, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as double) % cast(1 as decimal(20, 0)) FROM t -- !query 376 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> -- !query 376 output -2 +0.0 -- !query 377 -SELECT cast(1 as decimal(21, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 0)) FROM t -- !query 377 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> -- !query 377 output -2 +0 -- !query 378 -SELECT cast(1 as decimal(38, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 0)) FROM t -- !query 378 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> -- !query 378 output -2 +0 -- !query 379 -SELECT cast(1 as decimal(39, 0)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t -- !query 379 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> -- !query 379 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as decimal(10, 0)) FROM t +0 -- !query 380 -SELECT cast(1 as decimal(1, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 0)) FROM t -- !query 380 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> -- !query 380 output -NULL +0 -- !query 381 -SELECT cast(1 as decimal(2, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('1' as binary) % cast(1 as decimal(3, 0)) FROM t -- !query 381 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 381 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 382 -SELECT cast(1 as decimal(3, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('1' as binary) % cast(1 as decimal(5, 0)) FROM t -- !query 382 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 382 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 383 -SELECT cast(1 as decimal(4, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('1' as binary) % cast(1 as decimal(10, 0)) FROM t -- !query 383 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 383 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 384 -SELECT cast(1 as decimal(5, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('1' as binary) % cast(1 as decimal(20, 0)) FROM t -- !query 384 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 384 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 385 -SELECT cast(1 as decimal(6, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 0)) FROM t -- !query 385 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 385 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 386 -SELECT cast(1 as decimal(10, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 0)) FROM t -- !query 386 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 386 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 387 -SELECT cast(1 as decimal(11, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 0)) FROM t -- !query 387 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 387 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 388 -SELECT cast(1 as decimal(20, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 0)) FROM t -- !query 388 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<> -- !query 388 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 389 -SELECT cast(1 as decimal(21, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 0)) FROM t -- !query 389 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 389 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 390 -SELECT cast(1 as decimal(38, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 0)) FROM t -- !query 390 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) + CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<> -- !query 390 output -2 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 391 -SELECT cast(1 as decimal(39, 1)) + cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 0)) FROM t -- !query 391 schema struct<> -- !query 391 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as decimal(10, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 392 -SELECT cast(1 as decimal(1, 0)) + cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 0)) FROM t -- !query 392 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 392 output -2.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 393 -SELECT cast(1 as decimal(3, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as tinyint) FROM t -- !query 393 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(3,0)) % CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(3,0)> -- !query 393 output -2.0 +0 -- !query 394 -SELECT cast(1 as decimal(4, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as tinyint) FROM t -- !query 394 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(3,0)> -- !query 394 output -2.0 +0 -- !query 395 -SELECT cast(1 as decimal(5, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as tinyint) FROM t -- !query 395 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> -- !query 395 output -2.0 +0 -- !query 396 -SELECT cast(1 as decimal(6, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as tinyint) FROM t -- !query 396 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(3,0)> -- !query 396 output -2.0 +0 -- !query 397 -SELECT cast(1 as decimal(10, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as smallint) FROM t -- !query 397 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(3,0)> -- !query 397 output -2.0 +0 -- !query 398 -SELECT cast(1 as decimal(11, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as smallint) FROM t -- !query 398 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(5,0)) % CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(5,0)> -- !query 398 output -2.0 +0 -- !query 399 -SELECT cast(1 as decimal(20, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as smallint) FROM t -- !query 399 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> -- !query 399 output -2.0 +0 -- !query 400 -SELECT cast(1 as decimal(21, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as smallint) FROM t -- !query 400 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(5,0)> -- !query 400 output -2.0 +0 -- !query 401 -SELECT cast(1 as decimal(38, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as int) FROM t -- !query 401 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> -- !query 401 output -2.0 +0 -- !query 402 -SELECT cast(1 as decimal(39, 0)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as int) FROM t -- !query 402 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> -- !query 402 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as string) FROM t +0 -- !query 403 -SELECT cast(1 as decimal(1, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as int) FROM t -- !query 403 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(10,0)) % CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(10,0)> -- !query 403 output -NULL +0 -- !query 404 -SELECT cast(1 as decimal(2, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as int) FROM t -- !query 404 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> -- !query 404 output -2.0 +0 -- !query 405 -SELECT cast(1 as decimal(3, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as bigint) FROM t -- !query 405 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(3,0)> -- !query 405 output -2.0 +0 -- !query 406 -SELECT cast(1 as decimal(4, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as bigint) FROM t -- !query 406 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(5,0)> -- !query 406 output -2.0 +0 -- !query 407 -SELECT cast(1 as decimal(5, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as bigint) FROM t -- !query 407 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> -- !query 407 output -2.0 +0 -- !query 408 -SELECT cast(1 as decimal(6, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as bigint) FROM t -- !query 408 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(20,0)) % CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(20,0)> -- !query 408 output -2.0 +0 -- !query 409 -SELECT cast(1 as decimal(10, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as float) FROM t -- !query 409 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 409 output -2.0 +0.0 -- !query 410 -SELECT cast(1 as decimal(11, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as float) FROM t -- !query 410 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 410 output -2.0 +0.0 -- !query 411 -SELECT cast(1 as decimal(20, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as float) FROM t -- !query 411 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 411 output -2.0 +0.0 -- !query 412 -SELECT cast(1 as decimal(21, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as float) FROM t -- !query 412 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> -- !query 412 output -2.0 +0.0 -- !query 413 -SELECT cast(1 as decimal(38, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as double) FROM t -- !query 413 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) + CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> -- !query 413 output -2.0 +0.0 -- !query 414 -SELECT cast(1 as decimal(39, 1)) + cast(1 as string) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as double) FROM t -- !query 414 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> -- !query 414 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as string) FROM t +0.0 -- !query 415 -SELECT cast(1 as decimal(1, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as double) FROM t -- !query 415 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> -- !query 415 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 +0.0 -- !query 416 -SELECT cast(1 as decimal(3, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as double) FROM t -- !query 416 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> -- !query 416 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 +0.0 -- !query 417 -SELECT cast(1 as decimal(4, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as decimal(10, 0)) FROM t -- !query 417 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> -- !query 417 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 +0 -- !query 418 -SELECT cast(1 as decimal(5, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as decimal(10, 0)) FROM t -- !query 418 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> -- !query 418 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 +0 -- !query 419 -SELECT cast(1 as decimal(6, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t -- !query 419 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> -- !query 419 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 +0 -- !query 420 -SELECT cast(1 as decimal(10, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as decimal(10, 0)) FROM t -- !query 420 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> -- !query 420 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 +0 -- !query 421 -SELECT cast(1 as decimal(11, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as string) FROM t -- !query 421 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 421 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 +0.0 -- !query 422 -SELECT cast(1 as decimal(20, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as string) FROM t -- !query 422 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 422 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 +0.0 -- !query 423 -SELECT cast(1 as decimal(21, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as string) FROM t -- !query 423 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 423 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 +0.0 -- !query 424 -SELECT cast(1 as decimal(38, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as string) FROM t -- !query 424 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> -- !query 424 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 +0.0 -- !query 425 -SELECT cast(1 as decimal(39, 0)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) % cast('1' as binary) FROM t -- !query 425 schema struct<> -- !query 425 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast('1' as binary) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 426 -SELECT cast(1 as decimal(1, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) % cast('1' as binary) FROM t -- !query 426 schema struct<> -- !query 426 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 427 -SELECT cast(1 as decimal(2, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) % cast('1' as binary) FROM t -- !query 427 schema struct<> -- !query 427 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 428 -SELECT cast(1 as decimal(3, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) % cast('1' as binary) FROM t -- !query 428 schema struct<> -- !query 428 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 429 -SELECT cast(1 as decimal(4, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) % cast(1 as boolean) FROM t -- !query 429 schema struct<> -- !query 429 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 430 -SELECT cast(1 as decimal(5, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) % cast(1 as boolean) FROM t -- !query 430 schema struct<> -- !query 430 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 431 -SELECT cast(1 as decimal(6, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) % cast(1 as boolean) FROM t -- !query 431 schema struct<> -- !query 431 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 432 -SELECT cast(1 as decimal(10, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) % cast(1 as boolean) FROM t -- !query 432 schema struct<> -- !query 432 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 433 -SELECT cast(1 as decimal(11, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 433 schema struct<> -- !query 433 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 434 -SELECT cast(1 as decimal(20, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 434 schema struct<> -- !query 434 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 435 -SELECT cast(1 as decimal(21, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 435 schema struct<> -- !query 435 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 436 -SELECT cast(1 as decimal(38, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 436 schema struct<> -- !query 436 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 437 -SELECT cast(1 as decimal(39, 1)) + cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00' as date) FROM t -- !query 437 schema struct<> -- !query 437 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast('1' as binary) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 438 -SELECT cast(1 as decimal(1, 0)) + cast(1 as boolean) FROM t +SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00' as date) FROM t -- !query 438 schema struct<> -- !query 438 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 439 -SELECT cast(1 as decimal(3, 0)) + cast(1 as boolean) FROM t +SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00' as date) FROM t -- !query 439 schema struct<> -- !query 439 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 440 -SELECT cast(1 as decimal(4, 0)) + cast(1 as boolean) FROM t +SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00' as date) FROM t -- !query 440 schema struct<> -- !query 440 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 441 -SELECT cast(1 as decimal(5, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 0))) FROM t -- !query 441 schema -struct<> +struct -- !query 441 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 +0 -- !query 442 -SELECT cast(1 as decimal(6, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 0))) FROM t -- !query 442 schema -struct<> +struct -- !query 442 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 +0 -- !query 443 -SELECT cast(1 as decimal(10, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t -- !query 443 schema -struct<> +struct -- !query 443 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 +0 -- !query 444 -SELECT cast(1 as decimal(11, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 0))) FROM t -- !query 444 schema -struct<> +struct -- !query 444 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 +0 -- !query 445 -SELECT cast(1 as decimal(20, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 0))) FROM t -- !query 445 schema -struct<> +struct -- !query 445 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 +0 -- !query 446 -SELECT cast(1 as decimal(21, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 0))) FROM t -- !query 446 schema -struct<> +struct -- !query 446 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 +0 -- !query 447 -SELECT cast(1 as decimal(38, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t -- !query 447 schema -struct<> +struct -- !query 447 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 +0 -- !query 448 -SELECT cast(1 as decimal(39, 0)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 0))) FROM t -- !query 448 schema -struct<> +struct -- !query 448 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast(1 as boolean) FROM t +0 -- !query 449 -SELECT cast(1 as decimal(1, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as int), cast(1 as decimal(3, 0))) FROM t -- !query 449 schema -struct<> +struct -- !query 449 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 +0 -- !query 450 -SELECT cast(1 as decimal(2, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as int), cast(1 as decimal(5, 0))) FROM t -- !query 450 schema -struct<> +struct -- !query 450 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 +0 -- !query 451 -SELECT cast(1 as decimal(3, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as int), cast(1 as decimal(10, 0))) FROM t -- !query 451 schema -struct<> +struct -- !query 451 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 +0 -- !query 452 -SELECT cast(1 as decimal(4, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as int), cast(1 as decimal(20, 0))) FROM t -- !query 452 schema -struct<> +struct -- !query 452 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 +0 -- !query 453 -SELECT cast(1 as decimal(5, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 0))) FROM t -- !query 453 schema -struct<> +struct -- !query 453 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 +0 -- !query 454 -SELECT cast(1 as decimal(6, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 0))) FROM t -- !query 454 schema -struct<> +struct -- !query 454 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 +0 -- !query 455 -SELECT cast(1 as decimal(10, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t -- !query 455 schema -struct<> +struct -- !query 455 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 +0 -- !query 456 -SELECT cast(1 as decimal(11, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 0))) FROM t -- !query 456 schema -struct<> +struct -- !query 456 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 +0 -- !query 457 -SELECT cast(1 as decimal(20, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as float), cast(1 as decimal(3, 0))) FROM t -- !query 457 schema -struct<> +struct -- !query 457 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 +0.0 -- !query 458 -SELECT cast(1 as decimal(21, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as float), cast(1 as decimal(5, 0))) FROM t -- !query 458 schema -struct<> +struct -- !query 458 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 +0.0 -- !query 459 -SELECT cast(1 as decimal(38, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as float), cast(1 as decimal(10, 0))) FROM t -- !query 459 schema -struct<> +struct -- !query 459 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 +0.0 -- !query 460 -SELECT cast(1 as decimal(39, 1)) + cast(1 as boolean) FROM t +SELECT pmod(cast(1 as float), cast(1 as decimal(20, 0))) FROM t -- !query 460 schema -struct<> +struct -- !query 460 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast(1 as boolean) FROM t +0.0 -- !query 461 -SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as double), cast(1 as decimal(3, 0))) FROM t -- !query 461 schema -struct<> +struct -- !query 461 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 +0.0 -- !query 462 -SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as double), cast(1 as decimal(5, 0))) FROM t -- !query 462 schema -struct<> +struct -- !query 462 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 +0.0 -- !query 463 -SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as double), cast(1 as decimal(10, 0))) FROM t -- !query 463 schema -struct<> +struct -- !query 463 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 +0.0 -- !query 464 -SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as double), cast(1 as decimal(20, 0))) FROM t -- !query 464 schema -struct<> +struct -- !query 464 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 +0.0 -- !query 465 -SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 0))) FROM t -- !query 465 schema -struct<> +struct -- !query 465 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 +0 -- !query 466 -SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 0))) FROM t -- !query 466 schema -struct<> +struct -- !query 466 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 +0 -- !query 467 -SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t -- !query 467 schema -struct<> +struct -- !query 467 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 +0 -- !query 468 -SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 0))) FROM t -- !query 468 schema -struct<> +struct -- !query 468 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 +0 -- !query 469 -SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 0))) FROM t -- !query 469 schema struct<> -- !query 469 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 470 -SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 0))) FROM t -- !query 470 schema struct<> -- !query 470 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 471 -SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t -- !query 471 schema struct<> -- !query 471 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 472 -SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 0))) FROM t -- !query 472 schema struct<> -- !query 472 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 473 -SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 0))) FROM t -- !query 473 schema struct<> -- !query 473 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 474 -SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 0))) FROM t -- !query 474 schema struct<> -- !query 474 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 475 -SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t -- !query 475 schema struct<> -- !query 475 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 476 -SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 0))) FROM t -- !query 476 schema struct<> -- !query 476 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 477 -SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 0))) FROM t -- !query 477 schema struct<> -- !query 477 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 478 -SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 0))) FROM t -- !query 478 schema struct<> -- !query 478 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 479 -SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t -- !query 479 schema struct<> -- !query 479 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 480 -SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 0))) FROM t -- !query 480 schema struct<> -- !query 480 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 +cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 481 -SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as tinyint)) FROM t -- !query 481 schema -struct<> +struct -- !query 481 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 +0 -- !query 482 -SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as tinyint)) FROM t -- !query 482 schema -struct<> +struct -- !query 482 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 +0 -- !query 483 -SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t -- !query 483 schema -struct<> +struct -- !query 483 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t +0 -- !query 484 -SELECT cast(1 as decimal(1, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as tinyint)) FROM t -- !query 484 schema -struct<> +struct -- !query 484 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 +0 -- !query 485 -SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as smallint)) FROM t -- !query 485 schema -struct<> +struct -- !query 485 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 +0 -- !query 486 -SELECT cast(1 as decimal(4, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as smallint)) FROM t -- !query 486 schema -struct<> +struct -- !query 486 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 +0 -- !query 487 -SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t -- !query 487 schema -struct<> +struct -- !query 487 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 +0 -- !query 488 -SELECT cast(1 as decimal(6, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as smallint)) FROM t -- !query 488 schema -struct<> +struct -- !query 488 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 +0 -- !query 489 -SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as int)) FROM t -- !query 489 schema -struct<> +struct -- !query 489 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 +0 -- !query 490 -SELECT cast(1 as decimal(11, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as int)) FROM t -- !query 490 schema -struct<> +struct -- !query 490 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 +0 -- !query 491 -SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t -- !query 491 schema -struct<> +struct -- !query 491 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 +0 -- !query 492 -SELECT cast(1 as decimal(21, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as int)) FROM t -- !query 492 schema -struct<> +struct -- !query 492 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 +0 -- !query 493 -SELECT cast(1 as decimal(38, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as bigint)) FROM t -- !query 493 schema -struct<> +struct -- !query 493 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 +0 -- !query 494 -SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as bigint)) FROM t -- !query 494 schema -struct<> +struct -- !query 494 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) + cast('2017-12-11 09:30:00' as date) FROM t +0 -- !query 495 -SELECT cast(1 as decimal(1, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t -- !query 495 schema -struct<> +struct -- !query 495 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 +0 -- !query 496 -SELECT cast(1 as decimal(2, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as bigint)) FROM t -- !query 496 schema -struct<> +struct -- !query 496 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 +0 -- !query 497 -SELECT cast(1 as decimal(3, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as float)) FROM t -- !query 497 schema -struct<> +struct -- !query 497 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 +0.0 -- !query 498 -SELECT cast(1 as decimal(4, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as float)) FROM t -- !query 498 schema -struct<> +struct -- !query 498 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 +0.0 -- !query 499 -SELECT cast(1 as decimal(5, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t -- !query 499 schema -struct<> +struct -- !query 499 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 +0.0 -- !query 500 -SELECT cast(1 as decimal(6, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as float)) FROM t -- !query 500 schema -struct<> +struct -- !query 500 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 +0.0 -- !query 501 -SELECT cast(1 as decimal(10, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as double)) FROM t -- !query 501 schema -struct<> +struct -- !query 501 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 +0.0 -- !query 502 -SELECT cast(1 as decimal(11, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as double)) FROM t -- !query 502 schema -struct<> +struct -- !query 502 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 +0.0 -- !query 503 -SELECT cast(1 as decimal(20, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t -- !query 503 schema -struct<> +struct -- !query 503 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 +0.0 -- !query 504 -SELECT cast(1 as decimal(21, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as double)) FROM t -- !query 504 schema -struct<> +struct -- !query 504 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 +0.0 -- !query 505 -SELECT cast(1 as decimal(38, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as decimal(10, 0))) FROM t -- !query 505 schema -struct<> +struct -- !query 505 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) + CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 +0 -- !query 506 -SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as decimal(10, 0))) FROM t -- !query 506 schema -struct<> +struct -- !query 506 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) + cast('2017-12-11 09:30:00' as date) FROM t +0 -- !query 507 -SELECT cast(1 as tinyint) - cast(1 as decimal(1, 0)) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t -- !query 507 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0))):decimal(4,0)> +struct -- !query 507 output 0 -- !query 508 -SELECT cast(1 as tinyint) - cast(1 as decimal(3, 0)) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as decimal(10, 0))) FROM t -- !query 508 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) - CAST(1 AS DECIMAL(3,0))):decimal(4,0)> +struct -- !query 508 output 0 -- !query 509 -SELECT cast(1 as tinyint) - cast(1 as decimal(4, 0)) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as string)) FROM t -- !query 509 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(5,0)> +struct -- !query 509 output -0 +0.0 -- !query 510 -SELECT cast(1 as tinyint) - cast(1 as decimal(5, 0)) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as string)) FROM t -- !query 510 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct -- !query 510 output -0 +0.0 -- !query 511 -SELECT cast(1 as tinyint) - cast(1 as decimal(6, 0)) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t -- !query 511 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct -- !query 511 output -0 +0.0 -- !query 512 -SELECT cast(1 as tinyint) - cast(1 as decimal(10, 0)) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as string)) FROM t -- !query 512 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct -- !query 512 output -0 +0.0 -- !query 513 -SELECT cast(1 as tinyint) - cast(1 as decimal(11, 0)) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast('1' as binary)) FROM t -- !query 513 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<> -- !query 513 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 514 -SELECT cast(1 as tinyint) - cast(1 as decimal(20, 0)) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast('1' as binary)) FROM t -- !query 514 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 514 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 515 -SELECT cast(1 as tinyint) - cast(1 as decimal(21, 0)) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t -- !query 515 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<> -- !query 515 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 516 -SELECT cast(1 as tinyint) - cast(1 as decimal(38, 0)) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast('1' as binary)) FROM t -- !query 516 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 516 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 517 -SELECT cast(1 as tinyint) - cast(1 as decimal(39, 0)) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as boolean)) FROM t -- !query 517 schema struct<> -- !query 517 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) - cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 518 -SELECT cast(1 as tinyint) - cast(1 as decimal(1, 1)) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as boolean)) FROM t -- !query 518 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<> -- !query 518 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 519 -SELECT cast(1 as tinyint) - cast(1 as decimal(2, 1)) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t -- !query 519 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<> -- !query 519 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 520 -SELECT cast(1 as tinyint) - cast(1 as decimal(3, 1)) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as boolean)) FROM t -- !query 520 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<> -- !query 520 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 521 -SELECT cast(1 as tinyint) - cast(1 as decimal(4, 1)) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 521 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1))):decimal(5,1)> +struct<> -- !query 521 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 522 -SELECT cast(1 as tinyint) - cast(1 as decimal(5, 1)) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 522 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(6,1)> +struct<> -- !query 522 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 523 -SELECT cast(1 as tinyint) - cast(1 as decimal(6, 1)) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 523 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<> -- !query 523 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 524 -SELECT cast(1 as tinyint) - cast(1 as decimal(10, 1)) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 524 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +struct<> -- !query 524 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 525 -SELECT cast(1 as tinyint) - cast(1 as decimal(11, 1)) FROM t +SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t -- !query 525 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 525 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 526 -SELECT cast(1 as tinyint) - cast(1 as decimal(20, 1)) FROM t +SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t -- !query 526 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<> -- !query 526 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 527 -SELECT cast(1 as tinyint) - cast(1 as decimal(21, 1)) FROM t +SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 527 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 527 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 528 -SELECT cast(1 as tinyint) - cast(1 as decimal(38, 1)) FROM t +SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 528 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<> -- !query 528 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 529 -SELECT cast(1 as tinyint) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as tinyint) = cast(1 as decimal(3, 0)) FROM t -- !query 529 schema -struct<> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) = CAST(1 AS DECIMAL(3,0))):boolean> -- !query 529 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) - cast(1 as decimal(39, 1)) FROM t +true -- !query 530 -SELECT cast(1 as smallint) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as tinyint) = cast(1 as decimal(5, 0)) FROM t -- !query 530 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 530 output -0 +true -- !query 531 -SELECT cast(1 as smallint) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as tinyint) = cast(1 as decimal(10, 0)) FROM t -- !query 531 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 531 output -0 +true -- !query 532 -SELECT cast(1 as smallint) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as tinyint) = cast(1 as decimal(20, 0)) FROM t -- !query 532 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 532 output -0 +true -- !query 533 -SELECT cast(1 as smallint) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as smallint) = cast(1 as decimal(3, 0)) FROM t -- !query 533 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) - CAST(1 AS DECIMAL(5,0))):decimal(6,0)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 533 output -0 +true -- !query 534 -SELECT cast(1 as smallint) - cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as smallint) = cast(1 as decimal(5, 0)) FROM t -- !query 534 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) = CAST(1 AS DECIMAL(5,0))):boolean> -- !query 534 output -0 +true -- !query 535 -SELECT cast(1 as smallint) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as smallint) = cast(1 as decimal(10, 0)) FROM t -- !query 535 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 535 output -0 +true -- !query 536 -SELECT cast(1 as smallint) - cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as smallint) = cast(1 as decimal(20, 0)) FROM t -- !query 536 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 536 output -0 +true -- !query 537 -SELECT cast(1 as smallint) - cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as int) = cast(1 as decimal(3, 0)) FROM t -- !query 537 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 537 output -0 +true -- !query 538 -SELECT cast(1 as smallint) - cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as int) = cast(1 as decimal(5, 0)) FROM t -- !query 538 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 538 output -0 +true -- !query 539 -SELECT cast(1 as smallint) - cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as int) = cast(1 as decimal(10, 0)) FROM t -- !query 539 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> -- !query 539 output -0 +true -- !query 540 -SELECT cast(1 as smallint) - cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as int) = cast(1 as decimal(20, 0)) FROM t -- !query 540 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 540 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) - cast(1 as decimal(39, 0)) FROM t +true -- !query 541 -SELECT cast(1 as smallint) - cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as bigint) = cast(1 as decimal(3, 0)) FROM t -- !query 541 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 541 output -NULL +true -- !query 542 -SELECT cast(1 as smallint) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as bigint) = cast(1 as decimal(5, 0)) FROM t -- !query 542 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 542 output -0 +true -- !query 543 -SELECT cast(1 as smallint) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as bigint) = cast(1 as decimal(10, 0)) FROM t -- !query 543 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 543 output -0 +true -- !query 544 -SELECT cast(1 as smallint) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as bigint) = cast(1 as decimal(20, 0)) FROM t -- !query 544 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) = CAST(1 AS DECIMAL(20,0))):boolean> -- !query 544 output -0 +true -- !query 545 -SELECT cast(1 as smallint) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as float) = cast(1 as decimal(3, 0)) FROM t -- !query 545 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 545 output -0 +true -- !query 546 -SELECT cast(1 as smallint) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as float) = cast(1 as decimal(5, 0)) FROM t -- !query 546 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 546 output -0 +true -- !query 547 -SELECT cast(1 as smallint) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as float) = cast(1 as decimal(10, 0)) FROM t -- !query 547 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(11,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 547 output -0 +true -- !query 548 -SELECT cast(1 as smallint) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as float) = cast(1 as decimal(20, 0)) FROM t -- !query 548 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 548 output -0 +true -- !query 549 -SELECT cast(1 as smallint) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as double) = cast(1 as decimal(3, 0)) FROM t -- !query 549 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 549 output -0 +true -- !query 550 -SELECT cast(1 as smallint) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as double) = cast(1 as decimal(5, 0)) FROM t -- !query 550 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 550 output -0 +true -- !query 551 -SELECT cast(1 as smallint) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as double) = cast(1 as decimal(10, 0)) FROM t -- !query 551 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 551 output -0 +true -- !query 552 -SELECT cast(1 as smallint) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as double) = cast(1 as decimal(20, 0)) FROM t -- !query 552 schema -struct<> +struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 552 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) - cast(1 as decimal(39, 1)) FROM t +true -- !query 553 -SELECT cast(1 as int) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 0)) FROM t -- !query 553 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 553 output -0 +true -- !query 554 -SELECT cast(1 as int) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 0)) FROM t -- !query 554 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 554 output -0 +true -- !query 555 -SELECT cast(1 as int) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t -- !query 555 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> -- !query 555 output -0 +true -- !query 556 -SELECT cast(1 as int) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 0)) FROM t -- !query 556 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 556 output -0 +true -- !query 557 -SELECT cast(1 as int) - cast(1 as decimal(6, 0)) FROM t +SELECT cast('1' as binary) = cast(1 as decimal(3, 0)) FROM t -- !query 557 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 557 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 558 -SELECT cast(1 as int) - cast(1 as decimal(10, 0)) FROM t +SELECT cast('1' as binary) = cast(1 as decimal(5, 0)) FROM t -- !query 558 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +struct<> -- !query 558 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 559 -SELECT cast(1 as int) - cast(1 as decimal(11, 0)) FROM t +SELECT cast('1' as binary) = cast(1 as decimal(10, 0)) FROM t -- !query 559 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<> -- !query 559 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 560 -SELECT cast(1 as int) - cast(1 as decimal(20, 0)) FROM t +SELECT cast('1' as binary) = cast(1 as decimal(20, 0)) FROM t -- !query 560 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 560 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 561 -SELECT cast(1 as int) - cast(1 as decimal(21, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 0)) FROM t -- !query 561 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<> -- !query 561 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 562 -SELECT cast(1 as int) - cast(1 as decimal(38, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 0)) FROM t -- !query 562 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 562 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 563 -SELECT cast(1 as int) - cast(1 as decimal(39, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 0)) FROM t -- !query 563 schema struct<> -- !query 563 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) - cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 564 -SELECT cast(1 as int) - cast(1 as decimal(1, 1)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 0)) FROM t -- !query 564 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 564 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 565 -SELECT cast(1 as int) - cast(1 as decimal(2, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 0)) FROM t -- !query 565 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 565 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 566 -SELECT cast(1 as int) - cast(1 as decimal(3, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 0)) FROM t -- !query 566 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 566 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 567 -SELECT cast(1 as int) - cast(1 as decimal(4, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 0)) FROM t -- !query 567 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 567 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 568 -SELECT cast(1 as int) - cast(1 as decimal(5, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 0)) FROM t -- !query 568 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 568 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 569 -SELECT cast(1 as int) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as tinyint) FROM t -- !query 569 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> -- !query 569 output -0 +true -- !query 570 -SELECT cast(1 as int) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as tinyint) FROM t -- !query 570 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 570 output -0 +true -- !query 571 -SELECT cast(1 as int) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as tinyint) FROM t -- !query 571 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 571 output -0 +true -- !query 572 -SELECT cast(1 as int) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as tinyint) FROM t -- !query 572 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 572 output -0 +true -- !query 573 -SELECT cast(1 as int) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as smallint) FROM t -- !query 573 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 573 output -0 +true -- !query 574 -SELECT cast(1 as int) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as smallint) FROM t -- !query 574 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> -- !query 574 output -0 +true -- !query 575 -SELECT cast(1 as int) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as smallint) FROM t -- !query 575 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 575 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) - cast(1 as decimal(39, 1)) FROM t +true -- !query 576 -SELECT cast(1 as bigint) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as smallint) FROM t -- !query 576 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 576 output -0 +true -- !query 577 -SELECT cast(1 as bigint) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as int) FROM t -- !query 577 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 577 output -0 +true -- !query 578 -SELECT cast(1 as bigint) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as int) FROM t -- !query 578 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 578 output -0 +true -- !query 579 -SELECT cast(1 as bigint) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as int) FROM t -- !query 579 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> -- !query 579 output -0 +true -- !query 580 -SELECT cast(1 as bigint) - cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as int) FROM t -- !query 580 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 580 output -0 +true -- !query 581 -SELECT cast(1 as bigint) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as bigint) FROM t -- !query 581 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 581 output -0 +true -- !query 582 -SELECT cast(1 as bigint) - cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as bigint) FROM t -- !query 582 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 582 output -0 +true -- !query 583 -SELECT cast(1 as bigint) - cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as bigint) FROM t -- !query 583 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) - CAST(1 AS DECIMAL(20,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 583 output -0 +true -- !query 584 -SELECT cast(1 as bigint) - cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as bigint) FROM t -- !query 584 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> -- !query 584 output -0 +true -- !query 585 -SELECT cast(1 as bigint) - cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as float) FROM t -- !query 585 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 585 output -0 +true -- !query 586 -SELECT cast(1 as bigint) - cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as float) FROM t -- !query 586 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 586 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) - cast(1 as decimal(39, 0)) FROM t +true -- !query 587 -SELECT cast(1 as bigint) - cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as float) FROM t -- !query 587 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 587 output -NULL +true -- !query 588 -SELECT cast(1 as bigint) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as float) FROM t -- !query 588 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 588 output -0 +true -- !query 589 -SELECT cast(1 as bigint) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as double) FROM t -- !query 589 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> -- !query 589 output -0 +true -- !query 590 -SELECT cast(1 as bigint) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as double) FROM t -- !query 590 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> -- !query 590 output -0 +true -- !query 591 -SELECT cast(1 as bigint) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as double) FROM t -- !query 591 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> -- !query 591 output -0 +true -- !query 592 -SELECT cast(1 as bigint) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as double) FROM t -- !query 592 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> -- !query 592 output -0 +true -- !query 593 -SELECT cast(1 as bigint) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as decimal(10, 0)) FROM t -- !query 593 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 593 output -0 +true -- !query 594 -SELECT cast(1 as bigint) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as decimal(10, 0)) FROM t -- !query 594 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 594 output -0 +true -- !query 595 -SELECT cast(1 as bigint) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t -- !query 595 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> -- !query 595 output -0 +true -- !query 596 -SELECT cast(1 as bigint) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as decimal(10, 0)) FROM t -- !query 596 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 596 output -0 +true -- !query 597 -SELECT cast(1 as bigint) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as string) FROM t -- !query 597 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 597 output -0 +true -- !query 598 -SELECT cast(1 as bigint) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as string) FROM t -- !query 598 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 598 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) - cast(1 as decimal(39, 1)) FROM t +true -- !query 599 -SELECT cast(1 as float) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as string) FROM t -- !query 599 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 599 output -0.0 +true -- !query 600 -SELECT cast(1 as float) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as string) FROM t -- !query 600 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 600 output -0.0 +true -- !query 601 -SELECT cast(1 as float) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast('1' as binary) FROM t -- !query 601 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +struct<> -- !query 601 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 602 -SELECT cast(1 as float) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast('1' as binary) FROM t -- !query 602 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +struct<> -- !query 602 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 603 -SELECT cast(1 as float) - cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast('1' as binary) FROM t -- !query 603 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +struct<> -- !query 603 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 604 -SELECT cast(1 as float) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast('1' as binary) FROM t -- !query 604 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +struct<> -- !query 604 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 605 -SELECT cast(1 as float) - cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast(1 as boolean) FROM t -- !query 605 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0))):boolean> -- !query 605 output -0.0 +true -- !query 606 -SELECT cast(1 as float) - cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast(1 as boolean) FROM t -- !query 606 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0))):boolean> -- !query 606 output -0.0 +true -- !query 607 -SELECT cast(1 as float) - cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast(1 as boolean) FROM t -- !query 607 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0))):boolean> -- !query 607 output -0.0 +true -- !query 608 -SELECT cast(1 as float) - cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast(1 as boolean) FROM t -- !query 608 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0))):boolean> -- !query 608 output -0.0 +true -- !query 609 -SELECT cast(1 as float) - cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 609 schema struct<> -- !query 609 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) - cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 610 -SELECT cast(1 as float) - cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 610 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +struct<> -- !query 610 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 611 -SELECT cast(1 as float) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 611 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +struct<> -- !query 611 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 612 -SELECT cast(1 as float) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 612 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +struct<> -- !query 612 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 613 -SELECT cast(1 as float) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00' as date) FROM t -- !query 613 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +struct<> -- !query 613 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 614 -SELECT cast(1 as float) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00' as date) FROM t -- !query 614 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +struct<> -- !query 614 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 615 -SELECT cast(1 as float) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00' as date) FROM t -- !query 615 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +struct<> -- !query 615 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 616 -SELECT cast(1 as float) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00' as date) FROM t -- !query 616 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +struct<> -- !query 616 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 617 -SELECT cast(1 as float) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 0)) FROM t -- !query 617 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) <=> CAST(1 AS DECIMAL(3,0))):boolean> -- !query 617 output -0.0 +true -- !query 618 -SELECT cast(1 as float) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 0)) FROM t -- !query 618 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 618 output -0.0 +true -- !query 619 -SELECT cast(1 as float) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 0)) FROM t -- !query 619 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 619 output -0.0 +true -- !query 620 -SELECT cast(1 as float) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 0)) FROM t -- !query 620 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 620 output -0.0 +true -- !query 621 -SELECT cast(1 as float) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 0)) FROM t -- !query 621 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 621 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) - cast(1 as decimal(39, 1)) FROM t +true -- !query 622 -SELECT cast(1 as double) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 0)) FROM t -- !query 622 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) <=> CAST(1 AS DECIMAL(5,0))):boolean> -- !query 622 output -0.0 +true -- !query 623 -SELECT cast(1 as double) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 0)) FROM t -- !query 623 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 623 output -0.0 +true -- !query 624 -SELECT cast(1 as double) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 0)) FROM t -- !query 624 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 624 output -0.0 +true -- !query 625 -SELECT cast(1 as double) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as int) <=> cast(1 as decimal(3, 0)) FROM t -- !query 625 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 625 output -0.0 +true -- !query 626 -SELECT cast(1 as double) - cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as int) <=> cast(1 as decimal(5, 0)) FROM t -- !query 626 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 626 output -0.0 +true -- !query 627 -SELECT cast(1 as double) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as int) <=> cast(1 as decimal(10, 0)) FROM t -- !query 627 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> -- !query 627 output -0.0 +true -- !query 628 -SELECT cast(1 as double) - cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as int) <=> cast(1 as decimal(20, 0)) FROM t -- !query 628 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 628 output -0.0 +true -- !query 629 -SELECT cast(1 as double) - cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 0)) FROM t -- !query 629 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 629 output -0.0 +true -- !query 630 -SELECT cast(1 as double) - cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 0)) FROM t -- !query 630 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 630 output -0.0 +true -- !query 631 -SELECT cast(1 as double) - cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 0)) FROM t -- !query 631 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 631 output -0.0 +true -- !query 632 -SELECT cast(1 as double) - cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 0)) FROM t -- !query 632 schema -struct<> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) <=> CAST(1 AS DECIMAL(20,0))):boolean> -- !query 632 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) - cast(1 as decimal(39, 0)) FROM t +true -- !query 633 -SELECT cast(1 as double) - cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as float) <=> cast(1 as decimal(3, 0)) FROM t -- !query 633 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 633 output -NULL +true -- !query 634 -SELECT cast(1 as double) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as float) <=> cast(1 as decimal(5, 0)) FROM t -- !query 634 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 634 output -0.0 +true -- !query 635 -SELECT cast(1 as double) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as float) <=> cast(1 as decimal(10, 0)) FROM t -- !query 635 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 635 output -0.0 +true -- !query 636 -SELECT cast(1 as double) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as float) <=> cast(1 as decimal(20, 0)) FROM t -- !query 636 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 636 output -0.0 +true -- !query 637 -SELECT cast(1 as double) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as double) <=> cast(1 as decimal(3, 0)) FROM t -- !query 637 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 637 output -0.0 +true -- !query 638 -SELECT cast(1 as double) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as double) <=> cast(1 as decimal(5, 0)) FROM t -- !query 638 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 638 output -0.0 +true -- !query 639 -SELECT cast(1 as double) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as double) <=> cast(1 as decimal(10, 0)) FROM t -- !query 639 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 639 output -0.0 +true -- !query 640 -SELECT cast(1 as double) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as double) <=> cast(1 as decimal(20, 0)) FROM t -- !query 640 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 640 output -0.0 +true -- !query 641 -SELECT cast(1 as double) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 0)) FROM t -- !query 641 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 641 output -0.0 +true -- !query 642 -SELECT cast(1 as double) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 0)) FROM t -- !query 642 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 642 output -0.0 +true -- !query 643 -SELECT cast(1 as double) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t -- !query 643 schema -struct<(CAST(1 AS DOUBLE) - CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> -- !query 643 output -0.0 +true -- !query 644 -SELECT cast(1 as double) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 0)) FROM t -- !query 644 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 644 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) - cast(1 as decimal(39, 1)) FROM t +true -- !query 645 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 0)) FROM t +SELECT cast('1' as binary) <=> cast(1 as decimal(3, 0)) FROM t -- !query 645 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 645 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 646 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 0)) FROM t +SELECT cast('1' as binary) <=> cast(1 as decimal(5, 0)) FROM t -- !query 646 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 646 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 647 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 0)) FROM t +SELECT cast('1' as binary) <=> cast(1 as decimal(10, 0)) FROM t -- !query 647 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 647 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 648 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 0)) FROM t +SELECT cast('1' as binary) <=> cast(1 as decimal(20, 0)) FROM t -- !query 648 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 648 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 649 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 0)) FROM t -- !query 649 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 649 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 650 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 0)) FROM t -- !query 650 schema -struct<(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +struct<> -- !query 650 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 651 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 0)) FROM t -- !query 651 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<> -- !query 651 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 652 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 0)) FROM t -- !query 652 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 652 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 653 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 0)) FROM t -- !query 653 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<> -- !query 653 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 654 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 0)) FROM t -- !query 654 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 654 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 655 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 0)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 0)) FROM t -- !query 655 schema struct<> -- !query 655 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 656 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(1, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 0)) FROM t -- !query 656 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 656 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 657 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as tinyint) FROM t -- !query 657 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(1 AS DECIMAL(3,0)) <=> CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> -- !query 657 output -0 +true -- !query 658 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as tinyint) FROM t -- !query 658 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 658 output -0 +true -- !query 659 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as tinyint) FROM t -- !query 659 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 659 output -0 +true -- !query 660 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as tinyint) FROM t -- !query 660 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 660 output -0 +true -- !query 661 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as smallint) FROM t -- !query 661 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 661 output -0 +true -- !query 662 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as smallint) FROM t -- !query 662 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(1 AS DECIMAL(5,0)) <=> CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> -- !query 662 output -0 +true -- !query 663 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as smallint) FROM t -- !query 663 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 663 output -0 +true -- !query 664 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as smallint) FROM t -- !query 664 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 664 output -0 +true -- !query 665 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as int) FROM t -- !query 665 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 665 output -0 +true -- !query 666 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as int) FROM t -- !query 666 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 666 output -0 +true -- !query 667 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as int) FROM t -- !query 667 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> -- !query 667 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(39, 1)) FROM t +true -- !query 668 -SELECT cast('1' as binary) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as int) FROM t -- !query 668 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 668 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 +true -- !query 669 -SELECT cast('1' as binary) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as bigint) FROM t -- !query 669 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 669 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 +true -- !query 670 -SELECT cast('1' as binary) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as bigint) FROM t -- !query 670 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 670 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 +true -- !query 671 -SELECT cast('1' as binary) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as bigint) FROM t -- !query 671 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 671 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 +true -- !query 672 -SELECT cast('1' as binary) - cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as bigint) FROM t -- !query 672 schema -struct<> +struct<(CAST(1 AS DECIMAL(20,0)) <=> CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> -- !query 672 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 +true -- !query 673 -SELECT cast('1' as binary) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as float) FROM t -- !query 673 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 673 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 +true -- !query 674 -SELECT cast('1' as binary) - cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as float) FROM t -- !query 674 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 674 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 +true -- !query 675 -SELECT cast('1' as binary) - cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as float) FROM t -- !query 675 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 675 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 +true -- !query 676 -SELECT cast('1' as binary) - cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as float) FROM t -- !query 676 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 676 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 +true -- !query 677 -SELECT cast('1' as binary) - cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as double) FROM t -- !query 677 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> -- !query 677 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 +true -- !query 678 -SELECT cast('1' as binary) - cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as double) FROM t -- !query 678 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> -- !query 678 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) - cast(1 as decimal(39, 0)) FROM t +true -- !query 679 -SELECT cast('1' as binary) - cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as double) FROM t -- !query 679 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> -- !query 679 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 +true -- !query 680 -SELECT cast('1' as binary) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as double) FROM t -- !query 680 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> -- !query 680 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 +true -- !query 681 -SELECT cast('1' as binary) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as decimal(10, 0)) FROM t -- !query 681 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 681 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 +true -- !query 682 -SELECT cast('1' as binary) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as decimal(10, 0)) FROM t -- !query 682 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 682 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 +true -- !query 683 -SELECT cast('1' as binary) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t -- !query 683 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> -- !query 683 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 +true -- !query 684 -SELECT cast('1' as binary) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as decimal(10, 0)) FROM t -- !query 684 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 684 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 +true -- !query 685 -SELECT cast('1' as binary) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as string) FROM t -- !query 685 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 685 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 +true -- !query 686 -SELECT cast('1' as binary) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as string) FROM t -- !query 686 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 686 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 +true -- !query 687 -SELECT cast('1' as binary) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as string) FROM t -- !query 687 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 687 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 +true -- !query 688 -SELECT cast('1' as binary) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as string) FROM t -- !query 688 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 688 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 +true -- !query 689 -SELECT cast('1' as binary) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast('1' as binary) FROM t -- !query 689 schema struct<> -- !query 689 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) - CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 690 -SELECT cast('1' as binary) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast('1' as binary) FROM t -- !query 690 schema struct<> -- !query 690 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) - cast(1 as decimal(39, 1)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 691 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast('1' as binary) FROM t -- !query 691 schema struct<> -- !query 691 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 692 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast('1' as binary) FROM t -- !query 692 schema struct<> -- !query 692 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 693 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast(1 as boolean) FROM t -- !query 693 schema -struct<> +struct<(CAST(1 AS DECIMAL(3,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0))):boolean> -- !query 693 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 +true -- !query 694 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast(1 as boolean) FROM t -- !query 694 schema -struct<> +struct<(CAST(1 AS DECIMAL(5,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0))):boolean> -- !query 694 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 +true -- !query 695 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast(1 as boolean) FROM t -- !query 695 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0))):boolean> -- !query 695 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 +true -- !query 696 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast(1 as boolean) FROM t -- !query 696 schema -struct<> +struct<(CAST(1 AS DECIMAL(20,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0))):boolean> -- !query 696 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 +true -- !query 697 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 697 schema struct<> -- !query 697 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 698 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 698 schema struct<> -- !query 698 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 699 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 699 schema struct<> -- !query 699 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 700 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 700 schema struct<> -- !query 700 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 701 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t -- !query 701 schema struct<> -- !query 701 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 702 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t -- !query 702 schema struct<> -- !query 702 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 703 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t -- !query 703 schema struct<> -- !query 703 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 704 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t -- !query 704 schema struct<> -- !query 704 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 705 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as tinyint) < cast(1 as decimal(3, 0)) FROM t -- !query 705 schema -struct<> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) < CAST(1 AS DECIMAL(3,0))):boolean> -- !query 705 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 +false -- !query 706 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as tinyint) < cast(1 as decimal(5, 0)) FROM t -- !query 706 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 706 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 +false -- !query 707 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as tinyint) < cast(1 as decimal(10, 0)) FROM t -- !query 707 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 707 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 +false -- !query 708 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as tinyint) < cast(1 as decimal(20, 0)) FROM t -- !query 708 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 708 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 +false -- !query 709 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as smallint) < cast(1 as decimal(3, 0)) FROM t -- !query 709 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 709 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 +false -- !query 710 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as smallint) < cast(1 as decimal(5, 0)) FROM t -- !query 710 schema -struct<> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) < CAST(1 AS DECIMAL(5,0))):boolean> -- !query 710 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 +false -- !query 711 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as smallint) < cast(1 as decimal(10, 0)) FROM t -- !query 711 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 711 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 +false -- !query 712 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as smallint) < cast(1 as decimal(20, 0)) FROM t -- !query 712 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 712 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) - CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 +false -- !query 713 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as int) < cast(1 as decimal(3, 0)) FROM t -- !query 713 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 713 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(39, 1)) FROM t +false -- !query 714 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as int) < cast(1 as decimal(5, 0)) FROM t -- !query 714 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 714 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 +false -- !query 715 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as int) < cast(1 as decimal(10, 0)) FROM t -- !query 715 schema -struct<> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> -- !query 715 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 +false -- !query 716 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as int) < cast(1 as decimal(20, 0)) FROM t -- !query 716 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 716 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 +false -- !query 717 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as bigint) < cast(1 as decimal(3, 0)) FROM t -- !query 717 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 717 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 +false -- !query 718 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as bigint) < cast(1 as decimal(5, 0)) FROM t -- !query 718 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 718 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 +false -- !query 719 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as bigint) < cast(1 as decimal(10, 0)) FROM t -- !query 719 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 719 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 +false -- !query 720 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as bigint) < cast(1 as decimal(20, 0)) FROM t -- !query 720 schema -struct<> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) < CAST(1 AS DECIMAL(20,0))):boolean> -- !query 720 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 +false -- !query 721 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as float) < cast(1 as decimal(3, 0)) FROM t -- !query 721 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 721 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 +false -- !query 722 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as float) < cast(1 as decimal(5, 0)) FROM t -- !query 722 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 722 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 +false -- !query 723 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as float) < cast(1 as decimal(10, 0)) FROM t -- !query 723 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 723 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 +false -- !query 724 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as float) < cast(1 as decimal(20, 0)) FROM t -- !query 724 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 724 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 0)) FROM t +false -- !query 725 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as double) < cast(1 as decimal(3, 0)) FROM t -- !query 725 schema -struct<> +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 725 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 +false -- !query 726 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as double) < cast(1 as decimal(5, 0)) FROM t -- !query 726 schema -struct<> +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 726 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 +false -- !query 727 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as double) < cast(1 as decimal(10, 0)) FROM t -- !query 727 schema -struct<> +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 727 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 +false -- !query 728 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as double) < cast(1 as decimal(20, 0)) FROM t -- !query 728 schema -struct<> +struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 728 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 +false -- !query 729 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 0)) FROM t -- !query 729 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 729 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 +false -- !query 730 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 0)) FROM t -- !query 730 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 730 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 +false -- !query 731 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t -- !query 731 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> -- !query 731 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 +false -- !query 732 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 0)) FROM t -- !query 732 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 732 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 +false -- !query 733 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 1)) FROM t +SELECT cast('1' as binary) < cast(1 as decimal(3, 0)) FROM t -- !query 733 schema struct<> -- !query 733 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 734 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(21, 1)) FROM t +SELECT cast('1' as binary) < cast(1 as decimal(5, 0)) FROM t -- !query 734 schema struct<> -- !query 734 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 735 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(38, 1)) FROM t +SELECT cast('1' as binary) < cast(1 as decimal(10, 0)) FROM t -- !query 735 schema struct<> -- !query 735 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) - CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 736 -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 1)) FROM t +SELECT cast('1' as binary) < cast(1 as decimal(20, 0)) FROM t -- !query 736 schema struct<> -- !query 736 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(39, 1)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 737 -SELECT cast(1 as decimal(1, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 0)) FROM t -- !query 737 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(4,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(4,0)> +struct<> -- !query 737 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 738 -SELECT cast(1 as decimal(3, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 0)) FROM t -- !query 738 schema -struct<(CAST(1 AS DECIMAL(3,0)) - CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(4,0)> +struct<> -- !query 738 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 739 -SELECT cast(1 as decimal(4, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 0)) FROM t -- !query 739 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(5,0)> +struct<> -- !query 739 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 740 -SELECT cast(1 as decimal(5, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 0)) FROM t -- !query 740 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<> -- !query 740 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 741 -SELECT cast(1 as decimal(6, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 0)) FROM t -- !query 741 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct<> -- !query 741 output -0 - +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 + -- !query 742 -SELECT cast(1 as decimal(10, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 0)) FROM t -- !query 742 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 742 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 743 -SELECT cast(1 as decimal(11, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 0)) FROM t -- !query 743 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<> -- !query 743 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 744 -SELECT cast(1 as decimal(20, 0)) - cast(1 as tinyint) FROM t +SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 0)) FROM t -- !query 744 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 744 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 745 -SELECT cast(1 as decimal(21, 0)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as tinyint) FROM t -- !query 745 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(1 AS DECIMAL(3,0)) < CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> -- !query 745 output -0 +false -- !query 746 -SELECT cast(1 as decimal(38, 0)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as tinyint) FROM t -- !query 746 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 746 output -0 +false -- !query 747 -SELECT cast(1 as decimal(39, 0)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as tinyint) FROM t -- !query 747 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 747 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as tinyint) FROM t +false -- !query 748 -SELECT cast(1 as decimal(1, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as tinyint) FROM t -- !query 748 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 748 output -NULL +false -- !query 749 -SELECT cast(1 as decimal(2, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as smallint) FROM t -- !query 749 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 749 output -0 +false -- !query 750 -SELECT cast(1 as decimal(3, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as smallint) FROM t -- !query 750 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(1 AS DECIMAL(5,0)) < CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> -- !query 750 output -0 +false -- !query 751 -SELECT cast(1 as decimal(4, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as smallint) FROM t -- !query 751 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(5,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(5,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 751 output -0 +false -- !query 752 -SELECT cast(1 as decimal(5, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as smallint) FROM t -- !query 752 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(6,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 752 output -0 +false -- !query 753 -SELECT cast(1 as decimal(6, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as int) FROM t -- !query 753 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 753 output -0 +false -- !query 754 -SELECT cast(1 as decimal(10, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as int) FROM t -- !query 754 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(11,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 754 output -0 +false -- !query 755 -SELECT cast(1 as decimal(11, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as int) FROM t -- !query 755 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(1 AS DECIMAL(10,0)) < CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> -- !query 755 output -0 +false -- !query 756 -SELECT cast(1 as decimal(20, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as int) FROM t -- !query 756 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 756 output -0 +false -- !query 757 -SELECT cast(1 as decimal(21, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as bigint) FROM t -- !query 757 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 757 output -0 +false -- !query 758 -SELECT cast(1 as decimal(38, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as bigint) FROM t -- !query 758 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 758 output -0 +false -- !query 759 -SELECT cast(1 as decimal(39, 1)) - cast(1 as tinyint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as bigint) FROM t -- !query 759 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 759 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as tinyint) FROM t +false -- !query 760 -SELECT cast(1 as decimal(1, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as bigint) FROM t -- !query 760 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(1 AS DECIMAL(20,0)) < CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> -- !query 760 output -0 +false -- !query 761 -SELECT cast(1 as decimal(3, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as float) FROM t -- !query 761 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 761 output -0 +false -- !query 762 -SELECT cast(1 as decimal(4, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as float) FROM t -- !query 762 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(6,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(6,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 762 output -0 +false -- !query 763 -SELECT cast(1 as decimal(5, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as float) FROM t -- !query 763 schema -struct<(CAST(1 AS DECIMAL(5,0)) - CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(6,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 763 output -0 +false -- !query 764 -SELECT cast(1 as decimal(6, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as float) FROM t -- !query 764 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(7,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,0))):decimal(7,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 764 output -0 +false -- !query 765 -SELECT cast(1 as decimal(10, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as double) FROM t -- !query 765 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> -- !query 765 output -0 +false -- !query 766 -SELECT cast(1 as decimal(11, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as double) FROM t -- !query 766 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> -- !query 766 output -0 +false -- !query 767 -SELECT cast(1 as decimal(20, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as double) FROM t -- !query 767 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> -- !query 767 output -0 +false -- !query 768 -SELECT cast(1 as decimal(21, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as double) FROM t -- !query 768 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> -- !query 768 output -0 +false -- !query 769 -SELECT cast(1 as decimal(38, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as decimal(10, 0)) FROM t -- !query 769 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 769 output -0 +false -- !query 770 -SELECT cast(1 as decimal(39, 0)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as decimal(10, 0)) FROM t -- !query 770 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 770 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as smallint) FROM t +false -- !query 771 -SELECT cast(1 as decimal(1, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t -- !query 771 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> -- !query 771 output -NULL +false -- !query 772 -SELECT cast(1 as decimal(2, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as decimal(10, 0)) FROM t -- !query 772 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 772 output -0 +false -- !query 773 -SELECT cast(1 as decimal(3, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as string) FROM t -- !query 773 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 773 output -0 +false -- !query 774 -SELECT cast(1 as decimal(4, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as string) FROM t -- !query 774 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 774 output -0 +false -- !query 775 -SELECT cast(1 as decimal(5, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as string) FROM t -- !query 775 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 775 output -0 +false -- !query 776 -SELECT cast(1 as decimal(6, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as string) FROM t -- !query 776 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(7,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(7,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 776 output -0 +false -- !query 777 -SELECT cast(1 as decimal(10, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast('1' as binary) FROM t -- !query 777 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(11,1)> +struct<> -- !query 777 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 778 -SELECT cast(1 as decimal(11, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast('1' as binary) FROM t -- !query 778 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<> -- !query 778 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 779 -SELECT cast(1 as decimal(20, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(10, 0)) < cast('1' as binary) FROM t -- !query 779 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<> -- !query 779 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 780 -SELECT cast(1 as decimal(21, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(20, 0)) < cast('1' as binary) FROM t -- !query 780 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 780 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 781 -SELECT cast(1 as decimal(38, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(3, 0)) < cast(1 as boolean) FROM t -- !query 781 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<> -- !query 781 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 782 -SELECT cast(1 as decimal(39, 1)) - cast(1 as smallint) FROM t +SELECT cast(1 as decimal(5, 0)) < cast(1 as boolean) FROM t -- !query 782 schema struct<> -- !query 782 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as smallint) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 783 -SELECT cast(1 as decimal(1, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(10, 0)) < cast(1 as boolean) FROM t -- !query 783 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 783 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 784 -SELECT cast(1 as decimal(3, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(20, 0)) < cast(1 as boolean) FROM t -- !query 784 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 784 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 785 -SELECT cast(1 as decimal(4, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 785 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 785 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 786 -SELECT cast(1 as decimal(5, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 786 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 786 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 787 -SELECT cast(1 as decimal(6, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 787 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 787 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 788 -SELECT cast(1 as decimal(10, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 788 schema -struct<(CAST(1 AS DECIMAL(10,0)) - CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(11,0)> +struct<> -- !query 788 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 789 -SELECT cast(1 as decimal(11, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00' as date) FROM t -- !query 789 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<> -- !query 789 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 790 -SELECT cast(1 as decimal(20, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00' as date) FROM t -- !query 790 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<> -- !query 790 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 791 -SELECT cast(1 as decimal(21, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00' as date) FROM t -- !query 791 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<> -- !query 791 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 792 -SELECT cast(1 as decimal(38, 0)) - cast(1 as int) FROM t +SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00' as date) FROM t -- !query 792 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 792 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 793 -SELECT cast(1 as decimal(39, 0)) - cast(1 as int) FROM t +SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 0)) FROM t -- !query 793 schema -struct<> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) <= CAST(1 AS DECIMAL(3,0))):boolean> -- !query 793 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as int) FROM t +true -- !query 794 -SELECT cast(1 as decimal(1, 1)) - cast(1 as int) FROM t +SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 0)) FROM t -- !query 794 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 794 output -NULL +true -- !query 795 -SELECT cast(1 as decimal(2, 1)) - cast(1 as int) FROM t +SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 0)) FROM t -- !query 795 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 795 output -0 +true -- !query 796 -SELECT cast(1 as decimal(3, 1)) - cast(1 as int) FROM t +SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 0)) FROM t -- !query 796 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 796 output -0 +true -- !query 797 -SELECT cast(1 as decimal(4, 1)) - cast(1 as int) FROM t +SELECT cast(1 as smallint) <= cast(1 as decimal(3, 0)) FROM t -- !query 797 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 797 output -0 +true -- !query 798 -SELECT cast(1 as decimal(5, 1)) - cast(1 as int) FROM t +SELECT cast(1 as smallint) <= cast(1 as decimal(5, 0)) FROM t -- !query 798 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) <= CAST(1 AS DECIMAL(5,0))):boolean> -- !query 798 output -0 +true -- !query 799 -SELECT cast(1 as decimal(6, 1)) - cast(1 as int) FROM t +SELECT cast(1 as smallint) <= cast(1 as decimal(10, 0)) FROM t -- !query 799 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 799 output -0 +true -- !query 800 -SELECT cast(1 as decimal(10, 1)) - cast(1 as int) FROM t +SELECT cast(1 as smallint) <= cast(1 as decimal(20, 0)) FROM t -- !query 800 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 800 output -0 +true -- !query 801 -SELECT cast(1 as decimal(11, 1)) - cast(1 as int) FROM t +SELECT cast(1 as int) <= cast(1 as decimal(3, 0)) FROM t -- !query 801 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 801 output -0 +true -- !query 802 -SELECT cast(1 as decimal(20, 1)) - cast(1 as int) FROM t +SELECT cast(1 as int) <= cast(1 as decimal(5, 0)) FROM t -- !query 802 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 802 output -0 +true -- !query 803 -SELECT cast(1 as decimal(21, 1)) - cast(1 as int) FROM t +SELECT cast(1 as int) <= cast(1 as decimal(10, 0)) FROM t -- !query 803 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> -- !query 803 output -0 +true -- !query 804 -SELECT cast(1 as decimal(38, 1)) - cast(1 as int) FROM t +SELECT cast(1 as int) <= cast(1 as decimal(20, 0)) FROM t -- !query 804 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 804 output -0 +true -- !query 805 -SELECT cast(1 as decimal(39, 1)) - cast(1 as int) FROM t +SELECT cast(1 as bigint) <= cast(1 as decimal(3, 0)) FROM t -- !query 805 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 805 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as int) FROM t +true -- !query 806 -SELECT cast(1 as decimal(1, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as bigint) <= cast(1 as decimal(5, 0)) FROM t -- !query 806 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 806 output -0 +true -- !query 807 -SELECT cast(1 as decimal(3, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as bigint) <= cast(1 as decimal(10, 0)) FROM t -- !query 807 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 807 output -0 +true -- !query 808 -SELECT cast(1 as decimal(4, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as bigint) <= cast(1 as decimal(20, 0)) FROM t -- !query 808 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) <= CAST(1 AS DECIMAL(20,0))):boolean> -- !query 808 output -0 +true -- !query 809 -SELECT cast(1 as decimal(5, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as float) <= cast(1 as decimal(3, 0)) FROM t -- !query 809 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 809 output -0 +true -- !query 810 -SELECT cast(1 as decimal(6, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as float) <= cast(1 as decimal(5, 0)) FROM t -- !query 810 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 810 output -0 +true -- !query 811 -SELECT cast(1 as decimal(10, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as float) <= cast(1 as decimal(10, 0)) FROM t -- !query 811 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 811 output -0 +true -- !query 812 -SELECT cast(1 as decimal(11, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as float) <= cast(1 as decimal(20, 0)) FROM t -- !query 812 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(21,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 812 output -0 +true -- !query 813 -SELECT cast(1 as decimal(20, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as double) <= cast(1 as decimal(3, 0)) FROM t -- !query 813 schema -struct<(CAST(1 AS DECIMAL(20,0)) - CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(21,0)> +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 813 output -0 +true -- !query 814 -SELECT cast(1 as decimal(21, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as double) <= cast(1 as decimal(5, 0)) FROM t -- !query 814 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 814 output -0 +true -- !query 815 -SELECT cast(1 as decimal(38, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as double) <= cast(1 as decimal(10, 0)) FROM t -- !query 815 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 815 output -0 +true -- !query 816 -SELECT cast(1 as decimal(39, 0)) - cast(1 as bigint) FROM t +SELECT cast(1 as double) <= cast(1 as decimal(20, 0)) FROM t -- !query 816 schema -struct<> +struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 816 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as bigint) FROM t +true -- !query 817 -SELECT cast(1 as decimal(1, 1)) - cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 0)) FROM t -- !query 817 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 817 output -NULL +true -- !query 818 -SELECT cast(1 as decimal(2, 1)) - cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 0)) FROM t -- !query 818 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 818 output -0 +true -- !query 819 -SELECT cast(1 as decimal(3, 1)) - cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t -- !query 819 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> -- !query 819 output -0 +true -- !query 820 -SELECT cast(1 as decimal(4, 1)) - cast(1 as bigint) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 0)) FROM t -- !query 820 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 820 output -0 +true -- !query 821 -SELECT cast(1 as decimal(5, 1)) - cast(1 as bigint) FROM t +SELECT cast('1' as binary) <= cast(1 as decimal(3, 0)) FROM t -- !query 821 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 821 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 822 -SELECT cast(1 as decimal(6, 1)) - cast(1 as bigint) FROM t +SELECT cast('1' as binary) <= cast(1 as decimal(5, 0)) FROM t -- !query 822 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 822 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 823 -SELECT cast(1 as decimal(10, 1)) - cast(1 as bigint) FROM t +SELECT cast('1' as binary) <= cast(1 as decimal(10, 0)) FROM t -- !query 823 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 823 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 824 -SELECT cast(1 as decimal(11, 1)) - cast(1 as bigint) FROM t +SELECT cast('1' as binary) <= cast(1 as decimal(20, 0)) FROM t -- !query 824 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 824 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 825 -SELECT cast(1 as decimal(20, 1)) - cast(1 as bigint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 0)) FROM t -- !query 825 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 825 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 826 -SELECT cast(1 as decimal(21, 1)) - cast(1 as bigint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 0)) FROM t -- !query 826 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<> -- !query 826 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 827 -SELECT cast(1 as decimal(38, 1)) - cast(1 as bigint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 0)) FROM t -- !query 827 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<> -- !query 827 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 828 -SELECT cast(1 as decimal(39, 1)) - cast(1 as bigint) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 0)) FROM t -- !query 828 schema struct<> -- !query 828 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as bigint) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 829 -SELECT cast(1 as decimal(1, 0)) - cast(1 as float) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 0)) FROM t -- !query 829 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 829 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 830 -SELECT cast(1 as decimal(3, 0)) - cast(1 as float) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 0)) FROM t -- !query 830 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 830 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 831 -SELECT cast(1 as decimal(4, 0)) - cast(1 as float) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 0)) FROM t -- !query 831 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 831 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 832 -SELECT cast(1 as decimal(5, 0)) - cast(1 as float) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 0)) FROM t -- !query 832 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<> -- !query 832 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 833 -SELECT cast(1 as decimal(6, 0)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as tinyint) FROM t -- !query 833 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(3,0)) <= CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> -- !query 833 output -0.0 +true -- !query 834 -SELECT cast(1 as decimal(10, 0)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as tinyint) FROM t -- !query 834 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 834 output -0.0 +true -- !query 835 -SELECT cast(1 as decimal(11, 0)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as tinyint) FROM t -- !query 835 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 835 output -0.0 +true -- !query 836 -SELECT cast(1 as decimal(20, 0)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as tinyint) FROM t -- !query 836 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 836 output -0.0 +true -- !query 837 -SELECT cast(1 as decimal(21, 0)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as smallint) FROM t -- !query 837 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 837 output -0.0 +true -- !query 838 -SELECT cast(1 as decimal(38, 0)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as smallint) FROM t -- !query 838 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(5,0)) <= CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> -- !query 838 output -0.0 +true -- !query 839 -SELECT cast(1 as decimal(39, 0)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as smallint) FROM t -- !query 839 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 839 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as float) FROM t +true -- !query 840 -SELECT cast(1 as decimal(1, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as smallint) FROM t -- !query 840 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 840 output -NULL +true -- !query 841 -SELECT cast(1 as decimal(2, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as int) FROM t -- !query 841 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 841 output -0.0 +true -- !query 842 -SELECT cast(1 as decimal(3, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as int) FROM t -- !query 842 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 842 output -0.0 +true -- !query 843 -SELECT cast(1 as decimal(4, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as int) FROM t -- !query 843 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> -- !query 843 output -0.0 +true -- !query 844 -SELECT cast(1 as decimal(5, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as int) FROM t -- !query 844 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 844 output -0.0 +true -- !query 845 -SELECT cast(1 as decimal(6, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as bigint) FROM t -- !query 845 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 845 output -0.0 +true -- !query 846 -SELECT cast(1 as decimal(10, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as bigint) FROM t -- !query 846 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 846 output -0.0 +true -- !query 847 -SELECT cast(1 as decimal(11, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as bigint) FROM t -- !query 847 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 847 output -0.0 +true -- !query 848 -SELECT cast(1 as decimal(20, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as bigint) FROM t -- !query 848 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(20,0)) <= CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> -- !query 848 output -0.0 +true -- !query 849 -SELECT cast(1 as decimal(21, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as float) FROM t -- !query 849 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 849 output -0.0 +true -- !query 850 -SELECT cast(1 as decimal(38, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as float) FROM t -- !query 850 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) - CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 850 output -0.0 +true -- !query 851 -SELECT cast(1 as decimal(39, 1)) - cast(1 as float) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as float) FROM t -- !query 851 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 851 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as float) FROM t +true -- !query 852 -SELECT cast(1 as decimal(1, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as float) FROM t -- !query 852 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 852 output -0.0 +true -- !query 853 -SELECT cast(1 as decimal(3, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as double) FROM t -- !query 853 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> -- !query 853 output -0.0 +true -- !query 854 -SELECT cast(1 as decimal(4, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as double) FROM t -- !query 854 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> -- !query 854 output -0.0 +true -- !query 855 -SELECT cast(1 as decimal(5, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as double) FROM t -- !query 855 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> -- !query 855 output -0.0 +true -- !query 856 -SELECT cast(1 as decimal(6, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as double) FROM t -- !query 856 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> -- !query 856 output -0.0 +true -- !query 857 -SELECT cast(1 as decimal(10, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as decimal(10, 0)) FROM t -- !query 857 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 857 output -0.0 +true -- !query 858 -SELECT cast(1 as decimal(11, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as decimal(10, 0)) FROM t -- !query 858 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 858 output -0.0 +true -- !query 859 -SELECT cast(1 as decimal(20, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t -- !query 859 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> -- !query 859 output -0.0 +true -- !query 860 -SELECT cast(1 as decimal(21, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as decimal(10, 0)) FROM t -- !query 860 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 860 output -0.0 +true -- !query 861 -SELECT cast(1 as decimal(38, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as string) FROM t -- !query 861 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 861 output -0.0 +true -- !query 862 -SELECT cast(1 as decimal(39, 0)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as string) FROM t -- !query 862 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 862 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as double) FROM t +true -- !query 863 -SELECT cast(1 as decimal(1, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as string) FROM t -- !query 863 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 863 output -NULL +true -- !query 864 -SELECT cast(1 as decimal(2, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as string) FROM t -- !query 864 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 864 output -0.0 +true -- !query 865 -SELECT cast(1 as decimal(3, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast('1' as binary) FROM t -- !query 865 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 865 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 866 -SELECT cast(1 as decimal(4, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast('1' as binary) FROM t -- !query 866 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 866 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 867 -SELECT cast(1 as decimal(5, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast('1' as binary) FROM t -- !query 867 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 867 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 868 -SELECT cast(1 as decimal(6, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast('1' as binary) FROM t -- !query 868 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 868 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 869 -SELECT cast(1 as decimal(10, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast(1 as boolean) FROM t -- !query 869 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 869 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 870 -SELECT cast(1 as decimal(11, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast(1 as boolean) FROM t -- !query 870 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 870 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 871 -SELECT cast(1 as decimal(20, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast(1 as boolean) FROM t -- !query 871 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 871 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 872 -SELECT cast(1 as decimal(21, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast(1 as boolean) FROM t -- !query 872 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 872 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 873 -SELECT cast(1 as decimal(38, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 873 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) - CAST(1 AS DOUBLE)):double> +struct<> -- !query 873 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 874 -SELECT cast(1 as decimal(39, 1)) - cast(1 as double) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 874 schema struct<> -- !query 874 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as double) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 875 -SELECT cast(1 as decimal(1, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 875 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 875 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 876 -SELECT cast(1 as decimal(3, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 876 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 876 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 877 -SELECT cast(1 as decimal(4, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t -- !query 877 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 877 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 878 -SELECT cast(1 as decimal(5, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t -- !query 878 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 878 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 879 -SELECT cast(1 as decimal(6, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t -- !query 879 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(11,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(11,0)> +struct<> -- !query 879 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 880 -SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t -- !query 880 schema -struct<(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS DECIMAL(10,0))):decimal(11,0)> +struct<> -- !query 880 output -0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 881 -SELECT cast(1 as decimal(11, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as tinyint) > cast(1 as decimal(3, 0)) FROM t -- !query 881 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(12,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,0))):decimal(12,0)> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) > CAST(1 AS DECIMAL(3,0))):boolean> -- !query 881 output -0 +false -- !query 882 -SELECT cast(1 as decimal(20, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as tinyint) > cast(1 as decimal(5, 0)) FROM t -- !query 882 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(21,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(21,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 882 output -0 +false -- !query 883 -SELECT cast(1 as decimal(21, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as tinyint) > cast(1 as decimal(10, 0)) FROM t -- !query 883 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(22,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,0))):decimal(22,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 883 output -0 +false -- !query 884 -SELECT cast(1 as decimal(38, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as tinyint) > cast(1 as decimal(20, 0)) FROM t -- !query 884 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 884 output -0 +false -- !query 885 -SELECT cast(1 as decimal(39, 0)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as smallint) > cast(1 as decimal(3, 0)) FROM t -- !query 885 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 885 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as decimal(10, 0)) FROM t +false -- !query 886 -SELECT cast(1 as decimal(1, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as smallint) > cast(1 as decimal(5, 0)) FROM t -- !query 886 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) > CAST(1 AS DECIMAL(5,0))):boolean> -- !query 886 output -NULL +false -- !query 887 -SELECT cast(1 as decimal(2, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as smallint) > cast(1 as decimal(10, 0)) FROM t -- !query 887 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 887 output -0 +false -- !query 888 -SELECT cast(1 as decimal(3, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as smallint) > cast(1 as decimal(20, 0)) FROM t -- !query 888 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 888 output -0 +false -- !query 889 -SELECT cast(1 as decimal(4, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as int) > cast(1 as decimal(3, 0)) FROM t -- !query 889 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 889 output -0 +false -- !query 890 -SELECT cast(1 as decimal(5, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as int) > cast(1 as decimal(5, 0)) FROM t -- !query 890 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 890 output -0 +false -- !query 891 -SELECT cast(1 as decimal(6, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as int) > cast(1 as decimal(10, 0)) FROM t -- !query 891 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> -- !query 891 output -0 +false -- !query 892 -SELECT cast(1 as decimal(10, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as int) > cast(1 as decimal(20, 0)) FROM t -- !query 892 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 892 output -0 +false -- !query 893 -SELECT cast(1 as decimal(11, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as bigint) > cast(1 as decimal(3, 0)) FROM t -- !query 893 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(12,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(12,1))):decimal(12,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 893 output -0 +false -- !query 894 -SELECT cast(1 as decimal(20, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as bigint) > cast(1 as decimal(5, 0)) FROM t -- !query 894 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(21,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 894 output -0 +false -- !query 895 -SELECT cast(1 as decimal(21, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as bigint) > cast(1 as decimal(10, 0)) FROM t -- !query 895 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(22,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(22,1))):decimal(22,1)> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 895 output -0 +false -- !query 896 -SELECT cast(1 as decimal(38, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as bigint) > cast(1 as decimal(20, 0)) FROM t -- !query 896 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) - CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) > CAST(1 AS DECIMAL(20,0))):boolean> -- !query 896 output -0 +false -- !query 897 -SELECT cast(1 as decimal(39, 1)) - cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as float) > cast(1 as decimal(3, 0)) FROM t -- !query 897 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 897 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as decimal(10, 0)) FROM t +false -- !query 898 -SELECT cast(1 as decimal(1, 0)) - cast(1 as string) FROM t +SELECT cast(1 as float) > cast(1 as decimal(5, 0)) FROM t -- !query 898 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 898 output -0.0 +false -- !query 899 -SELECT cast(1 as decimal(3, 0)) - cast(1 as string) FROM t +SELECT cast(1 as float) > cast(1 as decimal(10, 0)) FROM t -- !query 899 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 899 output -0.0 +false -- !query 900 -SELECT cast(1 as decimal(4, 0)) - cast(1 as string) FROM t +SELECT cast(1 as float) > cast(1 as decimal(20, 0)) FROM t -- !query 900 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 900 output -0.0 +false -- !query 901 -SELECT cast(1 as decimal(5, 0)) - cast(1 as string) FROM t +SELECT cast(1 as double) > cast(1 as decimal(3, 0)) FROM t -- !query 901 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 901 output -0.0 +false -- !query 902 -SELECT cast(1 as decimal(6, 0)) - cast(1 as string) FROM t +SELECT cast(1 as double) > cast(1 as decimal(5, 0)) FROM t -- !query 902 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 902 output -0.0 +false -- !query 903 -SELECT cast(1 as decimal(10, 0)) - cast(1 as string) FROM t +SELECT cast(1 as double) > cast(1 as decimal(10, 0)) FROM t -- !query 903 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 903 output -0.0 +false -- !query 904 -SELECT cast(1 as decimal(11, 0)) - cast(1 as string) FROM t +SELECT cast(1 as double) > cast(1 as decimal(20, 0)) FROM t -- !query 904 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 904 output -0.0 +false -- !query 905 -SELECT cast(1 as decimal(20, 0)) - cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 0)) FROM t -- !query 905 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 905 output -0.0 +false -- !query 906 -SELECT cast(1 as decimal(21, 0)) - cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 0)) FROM t -- !query 906 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 906 output -0.0 +false -- !query 907 -SELECT cast(1 as decimal(38, 0)) - cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t -- !query 907 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> -- !query 907 output -0.0 +false -- !query 908 -SELECT cast(1 as decimal(39, 0)) - cast(1 as string) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 0)) FROM t -- !query 908 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 908 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as string) FROM t +false -- !query 909 -SELECT cast(1 as decimal(1, 1)) - cast(1 as string) FROM t +SELECT cast('1' as binary) > cast(1 as decimal(3, 0)) FROM t -- !query 909 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 909 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 910 -SELECT cast(1 as decimal(2, 1)) - cast(1 as string) FROM t +SELECT cast('1' as binary) > cast(1 as decimal(5, 0)) FROM t -- !query 910 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 910 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 911 -SELECT cast(1 as decimal(3, 1)) - cast(1 as string) FROM t +SELECT cast('1' as binary) > cast(1 as decimal(10, 0)) FROM t -- !query 911 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 911 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 912 -SELECT cast(1 as decimal(4, 1)) - cast(1 as string) FROM t +SELECT cast('1' as binary) > cast(1 as decimal(20, 0)) FROM t -- !query 912 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 912 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 913 -SELECT cast(1 as decimal(5, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 0)) FROM t -- !query 913 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 913 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 914 -SELECT cast(1 as decimal(6, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 0)) FROM t -- !query 914 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 914 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 915 -SELECT cast(1 as decimal(10, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 0)) FROM t -- !query 915 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 915 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 916 -SELECT cast(1 as decimal(11, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 0)) FROM t -- !query 916 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 916 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 917 -SELECT cast(1 as decimal(20, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 0)) FROM t -- !query 917 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 917 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 918 -SELECT cast(1 as decimal(21, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 0)) FROM t -- !query 918 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 918 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 919 -SELECT cast(1 as decimal(38, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 0)) FROM t -- !query 919 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) - CAST(CAST(1 AS STRING) AS DOUBLE)):double> +struct<> -- !query 919 output -0.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 920 -SELECT cast(1 as decimal(39, 1)) - cast(1 as string) FROM t +SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 0)) FROM t -- !query 920 schema struct<> -- !query 920 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as string) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 921 -SELECT cast(1 as decimal(1, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as tinyint) FROM t -- !query 921 schema -struct<> +struct<(CAST(1 AS DECIMAL(3,0)) > CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> -- !query 921 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 +false -- !query 922 -SELECT cast(1 as decimal(3, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as tinyint) FROM t -- !query 922 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 922 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 +false -- !query 923 -SELECT cast(1 as decimal(4, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as tinyint) FROM t -- !query 923 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 923 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 +false -- !query 924 -SELECT cast(1 as decimal(5, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as tinyint) FROM t -- !query 924 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 924 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 +false -- !query 925 -SELECT cast(1 as decimal(6, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as smallint) FROM t -- !query 925 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 925 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 +false -- !query 926 -SELECT cast(1 as decimal(10, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as smallint) FROM t -- !query 926 schema -struct<> +struct<(CAST(1 AS DECIMAL(5,0)) > CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> -- !query 926 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 +false -- !query 927 -SELECT cast(1 as decimal(11, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as smallint) FROM t -- !query 927 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 927 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 +false -- !query 928 -SELECT cast(1 as decimal(20, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as smallint) FROM t -- !query 928 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 928 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 +false -- !query 929 -SELECT cast(1 as decimal(21, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as int) FROM t -- !query 929 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 929 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 +false -- !query 930 -SELECT cast(1 as decimal(38, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as int) FROM t -- !query 930 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 930 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 +false -- !query 931 -SELECT cast(1 as decimal(39, 0)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as int) FROM t -- !query 931 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) > CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> -- !query 931 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast('1' as binary) FROM t +false -- !query 932 -SELECT cast(1 as decimal(1, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as int) FROM t -- !query 932 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 932 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 +false -- !query 933 -SELECT cast(1 as decimal(2, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as bigint) FROM t -- !query 933 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 933 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 +false -- !query 934 -SELECT cast(1 as decimal(3, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as bigint) FROM t -- !query 934 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 934 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 +false -- !query 935 -SELECT cast(1 as decimal(4, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as bigint) FROM t -- !query 935 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 935 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 +false -- !query 936 -SELECT cast(1 as decimal(5, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as bigint) FROM t -- !query 936 schema -struct<> +struct<(CAST(1 AS DECIMAL(20,0)) > CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> -- !query 936 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 +false -- !query 937 -SELECT cast(1 as decimal(6, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as float) FROM t -- !query 937 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 937 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 +false -- !query 938 -SELECT cast(1 as decimal(10, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as float) FROM t -- !query 938 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 938 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 +false -- !query 939 -SELECT cast(1 as decimal(11, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as float) FROM t -- !query 939 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 939 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 +false -- !query 940 -SELECT cast(1 as decimal(20, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as float) FROM t -- !query 940 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 940 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 +false -- !query 941 -SELECT cast(1 as decimal(21, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as double) FROM t -- !query 941 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> -- !query 941 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 +false -- !query 942 -SELECT cast(1 as decimal(38, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as double) FROM t -- !query 942 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> -- !query 942 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 +false -- !query 943 -SELECT cast(1 as decimal(39, 1)) - cast('1' as binary) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as double) FROM t -- !query 943 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> -- !query 943 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast('1' as binary) FROM t +false -- !query 944 -SELECT cast(1 as decimal(1, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as double) FROM t -- !query 944 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> -- !query 944 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 +false -- !query 945 -SELECT cast(1 as decimal(3, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as decimal(10, 0)) FROM t -- !query 945 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 945 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 +false -- !query 946 -SELECT cast(1 as decimal(4, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as decimal(10, 0)) FROM t -- !query 946 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 946 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 +false -- !query 947 -SELECT cast(1 as decimal(5, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t -- !query 947 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> -- !query 947 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 +false -- !query 948 -SELECT cast(1 as decimal(6, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as decimal(10, 0)) FROM t -- !query 948 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 948 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 +false -- !query 949 -SELECT cast(1 as decimal(10, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as string) FROM t -- !query 949 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 949 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 +false -- !query 950 -SELECT cast(1 as decimal(11, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as string) FROM t -- !query 950 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 950 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 +false -- !query 951 -SELECT cast(1 as decimal(20, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as string) FROM t -- !query 951 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 951 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 +false -- !query 952 -SELECT cast(1 as decimal(21, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as string) FROM t -- !query 952 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 952 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 +false -- !query 953 -SELECT cast(1 as decimal(38, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(3, 0)) > cast('1' as binary) FROM t -- !query 953 schema struct<> -- !query 953 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 954 -SELECT cast(1 as decimal(39, 0)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(5, 0)) > cast('1' as binary) FROM t -- !query 954 schema struct<> -- !query 954 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast(1 as boolean) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 955 -SELECT cast(1 as decimal(1, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(10, 0)) > cast('1' as binary) FROM t -- !query 955 schema struct<> -- !query 955 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 956 -SELECT cast(1 as decimal(2, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(20, 0)) > cast('1' as binary) FROM t -- !query 956 schema struct<> -- !query 956 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 957 -SELECT cast(1 as decimal(3, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(3, 0)) > cast(1 as boolean) FROM t -- !query 957 schema struct<> -- !query 957 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 958 -SELECT cast(1 as decimal(4, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(5, 0)) > cast(1 as boolean) FROM t -- !query 958 schema struct<> -- !query 958 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 959 -SELECT cast(1 as decimal(5, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(10, 0)) > cast(1 as boolean) FROM t -- !query 959 schema struct<> -- !query 959 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 960 -SELECT cast(1 as decimal(6, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(20, 0)) > cast(1 as boolean) FROM t -- !query 960 schema struct<> -- !query 960 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 961 -SELECT cast(1 as decimal(10, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 961 schema struct<> -- !query 961 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 962 -SELECT cast(1 as decimal(11, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 962 schema struct<> -- !query 962 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 963 -SELECT cast(1 as decimal(20, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 963 schema struct<> -- !query 963 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 964 -SELECT cast(1 as decimal(21, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 964 schema struct<> -- !query 964 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 965 -SELECT cast(1 as decimal(38, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00' as date) FROM t -- !query 965 schema struct<> -- !query 965 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 966 -SELECT cast(1 as decimal(39, 1)) - cast(1 as boolean) FROM t +SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00' as date) FROM t -- !query 966 schema struct<> -- !query 966 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast(1 as boolean) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 967 -SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00' as date) FROM t -- !query 967 schema struct<> -- !query 967 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 968 -SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00' as date) FROM t -- !query 968 schema struct<> -- !query 968 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 +cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 969 -SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 0)) FROM t -- !query 969 schema -struct<> +struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) >= CAST(1 AS DECIMAL(3,0))):boolean> -- !query 969 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 +true -- !query 970 -SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 0)) FROM t -- !query 970 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 970 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 +true -- !query 971 -SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 0)) FROM t -- !query 971 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 971 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 +true -- !query 972 -SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 0)) FROM t -- !query 972 schema -struct<> +struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 972 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 +true -- !query 973 -SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as smallint) >= cast(1 as decimal(3, 0)) FROM t -- !query 973 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 973 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 +true -- !query 974 -SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as smallint) >= cast(1 as decimal(5, 0)) FROM t -- !query 974 schema -struct<> +struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) >= CAST(1 AS DECIMAL(5,0))):boolean> -- !query 974 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 +true -- !query 975 -SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as smallint) >= cast(1 as decimal(10, 0)) FROM t -- !query 975 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 975 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 +true -- !query 976 -SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as smallint) >= cast(1 as decimal(20, 0)) FROM t -- !query 976 schema -struct<> +struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 976 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 +true -- !query 977 -SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as int) >= cast(1 as decimal(3, 0)) FROM t -- !query 977 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 977 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +true -- !query 978 -SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as int) >= cast(1 as decimal(5, 0)) FROM t -- !query 978 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 978 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 +true -- !query 979 -SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as int) >= cast(1 as decimal(10, 0)) FROM t -- !query 979 schema -struct<> +struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> -- !query 979 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 +true -- !query 980 -SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as int) >= cast(1 as decimal(20, 0)) FROM t -- !query 980 schema -struct<> +struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 980 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 +true -- !query 981 -SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as bigint) >= cast(1 as decimal(3, 0)) FROM t -- !query 981 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 981 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 +true -- !query 982 -SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as bigint) >= cast(1 as decimal(5, 0)) FROM t -- !query 982 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 982 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 +true -- !query 983 -SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as bigint) >= cast(1 as decimal(10, 0)) FROM t -- !query 983 schema -struct<> +struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 983 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 +true -- !query 984 -SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as bigint) >= cast(1 as decimal(20, 0)) FROM t -- !query 984 schema -struct<> +struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) >= CAST(1 AS DECIMAL(20,0))):boolean> -- !query 984 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 +true -- !query 985 -SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as float) >= cast(1 as decimal(3, 0)) FROM t -- !query 985 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 985 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 +true -- !query 986 -SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as float) >= cast(1 as decimal(5, 0)) FROM t -- !query 986 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 986 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 +true -- !query 987 -SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as float) >= cast(1 as decimal(10, 0)) FROM t -- !query 987 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 987 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 +true -- !query 988 -SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as float) >= cast(1 as decimal(20, 0)) FROM t -- !query 988 schema -struct<> +struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 988 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 +true -- !query 989 -SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +SELECT cast(1 as double) >= cast(1 as decimal(3, 0)) FROM t -- !query 989 schema -struct<> +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> -- !query 989 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t +true -- !query 990 -SELECT cast(1 as decimal(1, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as double) >= cast(1 as decimal(5, 0)) FROM t -- !query 990 schema -struct<> +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> -- !query 990 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 +true -- !query 991 -SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as double) >= cast(1 as decimal(10, 0)) FROM t -- !query 991 schema -struct<> +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> -- !query 991 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 +true -- !query 992 -SELECT cast(1 as decimal(4, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as double) >= cast(1 as decimal(20, 0)) FROM t -- !query 992 schema -struct<> +struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> -- !query 992 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 +true -- !query 993 -SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 0)) FROM t -- !query 993 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 993 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 +true -- !query 994 -SELECT cast(1 as decimal(6, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 0)) FROM t -- !query 994 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 994 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 +true -- !query 995 -SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t -- !query 995 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> -- !query 995 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 +true -- !query 996 -SELECT cast(1 as decimal(11, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 0)) FROM t -- !query 996 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 996 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 +true -- !query 997 -SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('1' as binary) >= cast(1 as decimal(3, 0)) FROM t -- !query 997 schema struct<> -- !query 997 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 998 -SELECT cast(1 as decimal(21, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('1' as binary) >= cast(1 as decimal(5, 0)) FROM t -- !query 998 schema struct<> -- !query 998 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 999 -SELECT cast(1 as decimal(38, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('1' as binary) >= cast(1 as decimal(10, 0)) FROM t -- !query 999 schema struct<> -- !query 999 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 1000 -SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('1' as binary) >= cast(1 as decimal(20, 0)) FROM t -- !query 1000 schema struct<> -- !query 1000 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) - cast('2017-12-11 09:30:00' as date) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 1001 -SELECT cast(1 as decimal(1, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 0)) FROM t -- !query 1001 schema struct<> -- !query 1001 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 1002 -SELECT cast(1 as decimal(2, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 0)) FROM t -- !query 1002 schema struct<> -- !query 1002 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 1003 -SELECT cast(1 as decimal(3, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 0)) FROM t -- !query 1003 schema struct<> -- !query 1003 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 1004 -SELECT cast(1 as decimal(4, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 0)) FROM t -- !query 1004 schema struct<> -- !query 1004 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 1005 -SELECT cast(1 as decimal(5, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 0)) FROM t -- !query 1005 schema struct<> -- !query 1005 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 1006 -SELECT cast(1 as decimal(6, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 0)) FROM t -- !query 1006 schema struct<> -- !query 1006 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 1007 -SELECT cast(1 as decimal(10, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 0)) FROM t -- !query 1007 schema struct<> -- !query 1007 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 1008 -SELECT cast(1 as decimal(11, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 0)) FROM t -- !query 1008 schema struct<> -- !query 1008 output org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 1009 -SELECT cast(1 as decimal(20, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as tinyint) FROM t -- !query 1009 schema -struct<> +struct<(CAST(1 AS DECIMAL(3,0)) >= CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> -- !query 1009 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 +true -- !query 1010 -SELECT cast(1 as decimal(21, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as tinyint) FROM t -- !query 1010 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> -- !query 1010 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 +true -- !query 1011 -SELECT cast(1 as decimal(38, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as tinyint) FROM t -- !query 1011 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> -- !query 1011 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) - CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 +true -- !query 1012 -SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as tinyint) FROM t -- !query 1012 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> -- !query 1012 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) - cast('2017-12-11 09:30:00' as date) FROM t +true -- !query 1013 -SELECT cast(1 as tinyint) * cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as smallint) FROM t -- !query 1013 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):decimal(5,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> -- !query 1013 output -1 +true -- !query 1014 -SELECT cast(1 as tinyint) * cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as smallint) FROM t -- !query 1014 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) * CAST(1 AS DECIMAL(3,0))):decimal(7,0)> +struct<(CAST(1 AS DECIMAL(5,0)) >= CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> -- !query 1014 output -1 +true -- !query 1015 -SELECT cast(1 as tinyint) * cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as smallint) FROM t -- !query 1015 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):decimal(8,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> -- !query 1015 output -1 +true -- !query 1016 -SELECT cast(1 as tinyint) * cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as smallint) FROM t -- !query 1016 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> -- !query 1016 output -1 +true -- !query 1017 -SELECT cast(1 as tinyint) * cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as int) FROM t -- !query 1017 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(10,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 1017 output -1 +true -- !query 1018 -SELECT cast(1 as tinyint) * cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as int) FROM t -- !query 1018 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 1018 output -1 +true -- !query 1019 -SELECT cast(1 as tinyint) * cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as int) FROM t -- !query 1019 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(15,0)> +struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> -- !query 1019 output -1 +true -- !query 1020 -SELECT cast(1 as tinyint) * cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as int) FROM t -- !query 1020 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 1020 output -1 +true -- !query 1021 -SELECT cast(1 as tinyint) * cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as bigint) FROM t -- !query 1021 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(25,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 1021 output -1 +true -- !query 1022 -SELECT cast(1 as tinyint) * cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as bigint) FROM t -- !query 1022 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 1022 output -1 +true -- !query 1023 -SELECT cast(1 as tinyint) * cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as bigint) FROM t -- !query 1023 schema -struct<> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> -- !query 1023 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) * cast(1 as decimal(39, 0)) FROM t +true -- !query 1024 -SELECT cast(1 as tinyint) * cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as bigint) FROM t -- !query 1024 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):decimal(5,1)> +struct<(CAST(1 AS DECIMAL(20,0)) >= CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> -- !query 1024 output -NULL +true -- !query 1025 -SELECT cast(1 as tinyint) * cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as float) FROM t -- !query 1025 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):decimal(6,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 1025 output -1 +true -- !query 1026 -SELECT cast(1 as tinyint) * cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as float) FROM t -- !query 1026 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):decimal(7,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 1026 output -1 +true -- !query 1027 -SELECT cast(1 as tinyint) * cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as float) FROM t -- !query 1027 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):decimal(8,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 1027 output -1 +true -- !query 1028 -SELECT cast(1 as tinyint) * cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as float) FROM t -- !query 1028 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):decimal(9,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> -- !query 1028 output -1 +true -- !query 1029 -SELECT cast(1 as tinyint) * cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as double) FROM t -- !query 1029 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(10,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> -- !query 1029 output -1 +true -- !query 1030 -SELECT cast(1 as tinyint) * cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as double) FROM t -- !query 1030 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(14,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> -- !query 1030 output -1 +true -- !query 1031 -SELECT cast(1 as tinyint) * cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as double) FROM t -- !query 1031 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(15,1)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> -- !query 1031 output -1 +true -- !query 1032 -SELECT cast(1 as tinyint) * cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as double) FROM t -- !query 1032 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(24,1)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> -- !query 1032 output -1 +true -- !query 1033 -SELECT cast(1 as tinyint) * cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as decimal(10, 0)) FROM t -- !query 1033 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(25,1)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 1033 output -1 +true -- !query 1034 -SELECT cast(1 as tinyint) * cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as decimal(10, 0)) FROM t -- !query 1034 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> -- !query 1034 output -1 +true -- !query 1035 -SELECT cast(1 as tinyint) * cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t -- !query 1035 schema -struct<> +struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> -- !query 1035 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) * cast(1 as decimal(39, 1)) FROM t +true -- !query 1036 -SELECT cast(1 as smallint) * cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as decimal(10, 0)) FROM t -- !query 1036 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):decimal(7,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> -- !query 1036 output -1 +true -- !query 1037 -SELECT cast(1 as smallint) * cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as string) FROM t -- !query 1037 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(9,0)> +struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 1037 output -1 +true -- !query 1038 -SELECT cast(1 as smallint) * cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as string) FROM t -- !query 1038 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(10,0)> +struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 1038 output -1 +true -- !query 1039 -SELECT cast(1 as smallint) * cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as string) FROM t -- !query 1039 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) * CAST(1 AS DECIMAL(5,0))):decimal(11,0)> +struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 1039 output -1 +true -- !query 1040 -SELECT cast(1 as smallint) * cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as string) FROM t -- !query 1040 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(12,0)> +struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> -- !query 1040 output -1 +true -- !query 1041 -SELECT cast(1 as smallint) * cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast('1' as binary) FROM t -- !query 1041 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> +struct<> -- !query 1041 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 1042 -SELECT cast(1 as smallint) * cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast('1' as binary) FROM t -- !query 1042 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(17,0)> +struct<> -- !query 1042 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 1043 -SELECT cast(1 as smallint) * cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast('1' as binary) FROM t -- !query 1043 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,0)> +struct<> -- !query 1043 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 1044 -SELECT cast(1 as smallint) * cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast('1' as binary) FROM t -- !query 1044 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(27,0)> +struct<> -- !query 1044 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 1045 -SELECT cast(1 as smallint) * cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast(1 as boolean) FROM t -- !query 1045 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 1045 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 -- !query 1046 -SELECT cast(1 as smallint) * cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast(1 as boolean) FROM t -- !query 1046 schema struct<> -- !query 1046 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) * cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 -- !query 1047 -SELECT cast(1 as smallint) * cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast(1 as boolean) FROM t -- !query 1047 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):decimal(7,1)> +struct<> -- !query 1047 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 -- !query 1048 -SELECT cast(1 as smallint) * cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast(1 as boolean) FROM t -- !query 1048 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):decimal(8,1)> +struct<> -- !query 1048 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 -- !query 1049 -SELECT cast(1 as smallint) * cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1049 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):decimal(9,1)> +struct<> -- !query 1049 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 1050 -SELECT cast(1 as smallint) * cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1050 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):decimal(10,1)> +struct<> -- !query 1050 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 1051 -SELECT cast(1 as smallint) * cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1051 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(11,1)> +struct<> -- !query 1051 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 1052 -SELECT cast(1 as smallint) * cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1052 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(12,1)> +struct<> -- !query 1052 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 1053 -SELECT cast(1 as smallint) * cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t -- !query 1053 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(16,1)> +struct<> -- !query 1053 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 1054 -SELECT cast(1 as smallint) * cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t -- !query 1054 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(17,1)> +struct<> -- !query 1054 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 1055 -SELECT cast(1 as smallint) * cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t -- !query 1055 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(26,1)> +struct<> -- !query 1055 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 1056 -SELECT cast(1 as smallint) * cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t -- !query 1056 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(27,1)> +struct<> -- !query 1056 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 -- !query 1057 -SELECT cast(1 as smallint) * cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 0)) FROM t -- !query 1057 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(NOT (CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) = CAST(1 AS DECIMAL(3,0)))):boolean> -- !query 1057 output -1 +false -- !query 1058 -SELECT cast(1 as smallint) * cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 0)) FROM t -- !query 1058 schema -struct<> +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> -- !query 1058 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) * cast(1 as decimal(39, 1)) FROM t +false -- !query 1059 -SELECT cast(1 as int) * cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 0)) FROM t -- !query 1059 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(12,0)> +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> -- !query 1059 output -1 +false -- !query 1060 -SELECT cast(1 as int) * cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 0)) FROM t -- !query 1060 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> +struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> -- !query 1060 output -1 +false -- !query 1061 -SELECT cast(1 as int) * cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as smallint) <> cast(1 as decimal(3, 0)) FROM t -- !query 1061 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(15,0)> +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)))):boolean> -- !query 1061 output -1 +false -- !query 1062 -SELECT cast(1 as int) * cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as smallint) <> cast(1 as decimal(5, 0)) FROM t -- !query 1062 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> +struct<(NOT (CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) = CAST(1 AS DECIMAL(5,0)))):boolean> -- !query 1062 output -1 +false -- !query 1063 -SELECT cast(1 as int) * cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as smallint) <> cast(1 as decimal(10, 0)) FROM t -- !query 1063 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,0)> +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> -- !query 1063 output -1 +false -- !query 1064 -SELECT cast(1 as int) * cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as smallint) <> cast(1 as decimal(20, 0)) FROM t -- !query 1064 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> +struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> -- !query 1064 output -1 +false -- !query 1065 -SELECT cast(1 as int) * cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as int) <> cast(1 as decimal(3, 0)) FROM t -- !query 1065 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,0)> +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> -- !query 1065 output -1 +false -- !query 1066 -SELECT cast(1 as int) * cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as int) <> cast(1 as decimal(5, 0)) FROM t -- !query 1066 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> -- !query 1066 output -1 +false -- !query 1067 -SELECT cast(1 as int) * cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as int) <> cast(1 as decimal(10, 0)) FROM t -- !query 1067 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,0)> +struct<(NOT (CAST(CAST(1 AS INT) AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> -- !query 1067 output -1 +false -- !query 1068 -SELECT cast(1 as int) * cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as int) <> cast(1 as decimal(20, 0)) FROM t -- !query 1068 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> -- !query 1068 output -1 +false -- !query 1069 -SELECT cast(1 as int) * cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as bigint) <> cast(1 as decimal(3, 0)) FROM t -- !query 1069 schema -struct<> +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)))):boolean> -- !query 1069 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) * cast(1 as decimal(39, 0)) FROM t +false -- !query 1070 -SELECT cast(1 as int) * cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as bigint) <> cast(1 as decimal(5, 0)) FROM t -- !query 1070 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(12,1)> +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)))):boolean> -- !query 1070 output -NULL +false -- !query 1071 -SELECT cast(1 as int) * cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as bigint) <> cast(1 as decimal(10, 0)) FROM t -- !query 1071 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(13,1)> +struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> -- !query 1071 output -1 +false -- !query 1072 -SELECT cast(1 as int) * cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as bigint) <> cast(1 as decimal(20, 0)) FROM t -- !query 1072 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(14,1)> +struct<(NOT (CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) = CAST(1 AS DECIMAL(20,0)))):boolean> -- !query 1072 output -1 +false -- !query 1073 -SELECT cast(1 as int) * cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as float) <> cast(1 as decimal(3, 0)) FROM t -- !query 1073 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(15,1)> +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE))):boolean> -- !query 1073 output -1 +false -- !query 1074 -SELECT cast(1 as int) * cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as float) <> cast(1 as decimal(5, 0)) FROM t -- !query 1074 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(16,1)> +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE))):boolean> -- !query 1074 output -1 +false -- !query 1075 -SELECT cast(1 as int) * cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as float) <> cast(1 as decimal(10, 0)) FROM t -- !query 1075 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(17,1)> +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE))):boolean> -- !query 1075 output -1 +false -- !query 1076 -SELECT cast(1 as int) * cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as float) <> cast(1 as decimal(20, 0)) FROM t -- !query 1076 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(21,1)> +struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE))):boolean> -- !query 1076 output -1 +false -- !query 1077 -SELECT cast(1 as int) * cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as double) <> cast(1 as decimal(3, 0)) FROM t -- !query 1077 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(22,1)> +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE))):boolean> -- !query 1077 output -1 +false -- !query 1078 -SELECT cast(1 as int) * cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as double) <> cast(1 as decimal(5, 0)) FROM t -- !query 1078 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(31,1)> +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE))):boolean> -- !query 1078 output -1 +false -- !query 1079 -SELECT cast(1 as int) * cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as double) <> cast(1 as decimal(10, 0)) FROM t -- !query 1079 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(32,1)> +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE))):boolean> -- !query 1079 output -1 +false -- !query 1080 -SELECT cast(1 as int) * cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as double) <> cast(1 as decimal(20, 0)) FROM t -- !query 1080 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE))):boolean> -- !query 1080 output -1 +false -- !query 1081 -SELECT cast(1 as int) * cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 0)) FROM t -- !query 1081 schema -struct<> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> -- !query 1081 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) * cast(1 as decimal(39, 1)) FROM t +false -- !query 1082 -SELECT cast(1 as bigint) * cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 0)) FROM t -- !query 1082 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):decimal(22,0)> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> -- !query 1082 output -1 +false -- !query 1083 -SELECT cast(1 as bigint) * cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t -- !query 1083 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(24,0)> +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> -- !query 1083 output -1 +false -- !query 1084 -SELECT cast(1 as bigint) * cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 0)) FROM t -- !query 1084 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):decimal(25,0)> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> -- !query 1084 output -1 +false -- !query 1085 -SELECT cast(1 as bigint) * cast(1 as decimal(5, 0)) FROM t +SELECT cast('1' as binary) <> cast(1 as decimal(3, 0)) FROM t -- !query 1085 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,0)> +struct<> -- !query 1085 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 -- !query 1086 -SELECT cast(1 as bigint) * cast(1 as decimal(6, 0)) FROM t +SELECT cast('1' as binary) <> cast(1 as decimal(5, 0)) FROM t -- !query 1086 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):decimal(27,0)> +struct<> -- !query 1086 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 -- !query 1087 -SELECT cast(1 as bigint) * cast(1 as decimal(10, 0)) FROM t +SELECT cast('1' as binary) <> cast(1 as decimal(10, 0)) FROM t -- !query 1087 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> +struct<> -- !query 1087 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 -- !query 1088 -SELECT cast(1 as bigint) * cast(1 as decimal(11, 0)) FROM t +SELECT cast('1' as binary) <> cast(1 as decimal(20, 0)) FROM t -- !query 1088 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):decimal(32,0)> +struct<> -- !query 1088 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 -- !query 1089 -SELECT cast(1 as bigint) * cast(1 as decimal(20, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 0)) FROM t -- !query 1089 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) * CAST(1 AS DECIMAL(20,0))):decimal(38,0)> +struct<> -- !query 1089 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 -- !query 1090 -SELECT cast(1 as bigint) * cast(1 as decimal(21, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 0)) FROM t -- !query 1090 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(38,0)> +struct<> -- !query 1090 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 -- !query 1091 -SELECT cast(1 as bigint) * cast(1 as decimal(38, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 0)) FROM t -- !query 1091 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> +struct<> -- !query 1091 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 -- !query 1092 -SELECT cast(1 as bigint) * cast(1 as decimal(39, 0)) FROM t +SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 0)) FROM t -- !query 1092 schema struct<> -- !query 1092 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) * cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 -- !query 1093 -SELECT cast(1 as bigint) * cast(1 as decimal(1, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 0)) FROM t -- !query 1093 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):decimal(22,1)> +struct<> -- !query 1093 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 -- !query 1094 -SELECT cast(1 as bigint) * cast(1 as decimal(2, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 0)) FROM t -- !query 1094 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):decimal(23,1)> +struct<> -- !query 1094 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 -- !query 1095 -SELECT cast(1 as bigint) * cast(1 as decimal(3, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 0)) FROM t -- !query 1095 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):decimal(24,1)> +struct<> -- !query 1095 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 -- !query 1096 -SELECT cast(1 as bigint) * cast(1 as decimal(4, 1)) FROM t +SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 0)) FROM t -- !query 1096 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):decimal(25,1)> +struct<> -- !query 1096 output -1 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 -- !query 1097 -SELECT cast(1 as bigint) * cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as tinyint) FROM t -- !query 1097 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):decimal(26,1)> +struct<(NOT (CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)))):boolean> -- !query 1097 output -1 +false -- !query 1098 -SELECT cast(1 as bigint) * cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as tinyint) FROM t -- !query 1098 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):decimal(27,1)> +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)))):boolean> -- !query 1098 output -1 +false -- !query 1099 -SELECT cast(1 as bigint) * cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as tinyint) FROM t -- !query 1099 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):decimal(31,1)> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> -- !query 1099 output -1 +false -- !query 1100 -SELECT cast(1 as bigint) * cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as tinyint) FROM t -- !query 1100 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):decimal(32,1)> +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)))):boolean> -- !query 1100 output -1 +false -- !query 1101 -SELECT cast(1 as bigint) * cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as smallint) FROM t -- !query 1101 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(38,1)> +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> -- !query 1101 output -1 +false -- !query 1102 -SELECT cast(1 as bigint) * cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as smallint) FROM t -- !query 1102 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(38,1)> +struct<(NOT (CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)))):boolean> -- !query 1102 output -1 +false -- !query 1103 -SELECT cast(1 as bigint) * cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as smallint) FROM t -- !query 1103 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> -- !query 1103 output -1 +false -- !query 1104 -SELECT cast(1 as bigint) * cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as smallint) FROM t -- !query 1104 schema -struct<> +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)))):boolean> -- !query 1104 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) * cast(1 as decimal(39, 1)) FROM t +false -- !query 1105 -SELECT cast(1 as float) * cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as int) FROM t -- !query 1105 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> -- !query 1105 output -1.0 +false -- !query 1106 -SELECT cast(1 as float) * cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as int) FROM t -- !query 1106 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> -- !query 1106 output -1.0 +false -- !query 1107 -SELECT cast(1 as float) * cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as int) FROM t -- !query 1107 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS INT) AS DECIMAL(10,0)))):boolean> -- !query 1107 output -1.0 +false -- !query 1108 -SELECT cast(1 as float) * cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as int) FROM t -- !query 1108 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> -- !query 1108 output -1.0 +false -- !query 1109 -SELECT cast(1 as float) * cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as bigint) FROM t -- !query 1109 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> -- !query 1109 output -1.0 +false -- !query 1110 -SELECT cast(1 as float) * cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as bigint) FROM t -- !query 1110 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> -- !query 1110 output -1.0 +false -- !query 1111 -SELECT cast(1 as float) * cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as bigint) FROM t -- !query 1111 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> -- !query 1111 output -1.0 +false -- !query 1112 -SELECT cast(1 as float) * cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as bigint) FROM t -- !query 1112 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +struct<(NOT (CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)))):boolean> -- !query 1112 output -1.0 +false -- !query 1113 -SELECT cast(1 as float) * cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as float) FROM t -- !query 1113 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> -- !query 1113 output -1.0 +false -- !query 1114 -SELECT cast(1 as float) * cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as float) FROM t -- !query 1114 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> -- !query 1114 output -1.0 +false -- !query 1115 -SELECT cast(1 as float) * cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as float) FROM t -- !query 1115 schema -struct<> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> -- !query 1115 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) * cast(1 as decimal(39, 0)) FROM t +false -- !query 1116 -SELECT cast(1 as float) * cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as float) FROM t -- !query 1116 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> -- !query 1116 output -NULL +false -- !query 1117 -SELECT cast(1 as float) * cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as double) FROM t -- !query 1117 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> -- !query 1117 output -1.0 +false -- !query 1118 -SELECT cast(1 as float) * cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as double) FROM t -- !query 1118 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> -- !query 1118 output -1.0 +false -- !query 1119 -SELECT cast(1 as float) * cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as double) FROM t -- !query 1119 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> -- !query 1119 output -1.0 +false -- !query 1120 -SELECT cast(1 as float) * cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as double) FROM t -- !query 1120 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> -- !query 1120 output -1.0 +false -- !query 1121 -SELECT cast(1 as float) * cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as decimal(10, 0)) FROM t -- !query 1121 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> -- !query 1121 output -1.0 +false -- !query 1122 -SELECT cast(1 as float) * cast(1 as decimal(10, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as decimal(10, 0)) FROM t -- !query 1122 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> -- !query 1122 output -1.0 +false -- !query 1123 -SELECT cast(1 as float) * cast(1 as decimal(11, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t -- !query 1123 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> -- !query 1123 output -1.0 +false -- !query 1124 -SELECT cast(1 as float) * cast(1 as decimal(20, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as decimal(10, 0)) FROM t -- !query 1124 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> -- !query 1124 output -1.0 +false -- !query 1125 -SELECT cast(1 as float) * cast(1 as decimal(21, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as string) FROM t -- !query 1125 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> -- !query 1125 output -1.0 +false -- !query 1126 -SELECT cast(1 as float) * cast(1 as decimal(38, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as string) FROM t -- !query 1126 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> -- !query 1126 output -1.0 +false -- !query 1127 -SELECT cast(1 as float) * cast(1 as decimal(39, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as string) FROM t -- !query 1127 schema -struct<> +struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> -- !query 1127 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) * cast(1 as decimal(39, 1)) FROM t +false -- !query 1128 -SELECT cast(1 as double) * cast(1 as decimal(1, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as string) FROM t -- !query 1128 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> +struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> -- !query 1128 output -1.0 +false -- !query 1129 -SELECT cast(1 as double) * cast(1 as decimal(3, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast('1' as binary) FROM t -- !query 1129 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> +struct<> -- !query 1129 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 -- !query 1130 -SELECT cast(1 as double) * cast(1 as decimal(4, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast('1' as binary) FROM t -- !query 1130 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> +struct<> -- !query 1130 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 -- !query 1131 -SELECT cast(1 as double) * cast(1 as decimal(5, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast('1' as binary) FROM t -- !query 1131 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> +struct<> -- !query 1131 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 -- !query 1132 -SELECT cast(1 as double) * cast(1 as decimal(6, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast('1' as binary) FROM t -- !query 1132 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> +struct<> -- !query 1132 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 -- !query 1133 -SELECT cast(1 as double) * cast(1 as decimal(10, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast(1 as boolean) FROM t -- !query 1133 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> +struct<(NOT (CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0)))):boolean> -- !query 1133 output -1.0 +false -- !query 1134 -SELECT cast(1 as double) * cast(1 as decimal(11, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast(1 as boolean) FROM t -- !query 1134 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> +struct<(NOT (CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0)))):boolean> -- !query 1134 output -1.0 +false -- !query 1135 -SELECT cast(1 as double) * cast(1 as decimal(20, 0)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast(1 as boolean) FROM t -- !query 1135 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> +struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0)))):boolean> -- !query 1135 output -1.0 +false -- !query 1136 -SELECT cast(1 as double) * cast(1 as decimal(21, 0)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast(1 as boolean) FROM t -- !query 1136 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> +struct<(NOT (CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0)))):boolean> -- !query 1136 output -1.0 +false -- !query 1137 -SELECT cast(1 as double) * cast(1 as decimal(38, 0)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1137 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> +struct<> -- !query 1137 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 -- !query 1138 -SELECT cast(1 as double) * cast(1 as decimal(39, 0)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1138 schema struct<> -- !query 1138 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) * cast(1 as decimal(39, 0)) FROM t +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 -- !query 1139 -SELECT cast(1 as double) * cast(1 as decimal(1, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1139 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> +struct<> -- !query 1139 output -NULL +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 -- !query 1140 -SELECT cast(1 as double) * cast(1 as decimal(2, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t -- !query 1140 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> +struct<> -- !query 1140 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 -- !query 1141 -SELECT cast(1 as double) * cast(1 as decimal(3, 1)) FROM t +SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t -- !query 1141 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> +struct<> -- !query 1141 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 -- !query 1142 -SELECT cast(1 as double) * cast(1 as decimal(4, 1)) FROM t +SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t -- !query 1142 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> +struct<> -- !query 1142 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 -- !query 1143 -SELECT cast(1 as double) * cast(1 as decimal(5, 1)) FROM t +SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t -- !query 1143 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> +struct<> -- !query 1143 output -1.0 +org.apache.spark.sql.AnalysisException +cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 -- !query 1144 -SELECT cast(1 as double) * cast(1 as decimal(6, 1)) FROM t +SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t -- !query 1144 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> --- !query 1144 output -1.0 - - --- !query 1145 -SELECT cast(1 as double) * cast(1 as decimal(10, 1)) FROM t --- !query 1145 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> --- !query 1145 output -1.0 - - --- !query 1146 -SELECT cast(1 as double) * cast(1 as decimal(11, 1)) FROM t --- !query 1146 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> --- !query 1146 output -1.0 - - --- !query 1147 -SELECT cast(1 as double) * cast(1 as decimal(20, 1)) FROM t --- !query 1147 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> --- !query 1147 output -1.0 - - --- !query 1148 -SELECT cast(1 as double) * cast(1 as decimal(21, 1)) FROM t --- !query 1148 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> --- !query 1148 output -1.0 - - --- !query 1149 -SELECT cast(1 as double) * cast(1 as decimal(38, 1)) FROM t --- !query 1149 schema -struct<(CAST(1 AS DOUBLE) * CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> --- !query 1149 output -1.0 - - --- !query 1150 -SELECT cast(1 as double) * cast(1 as decimal(39, 1)) FROM t --- !query 1150 schema -struct<> --- !query 1150 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) * cast(1 as decimal(39, 1)) FROM t - - --- !query 1151 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 0)) FROM t --- !query 1151 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(12,0)> --- !query 1151 output -1 - - --- !query 1152 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 0)) FROM t --- !query 1152 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> --- !query 1152 output -1 - - --- !query 1153 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 0)) FROM t --- !query 1153 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(15,0)> --- !query 1153 output -1 - - --- !query 1154 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 0)) FROM t --- !query 1154 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> --- !query 1154 output -1 - - --- !query 1155 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 0)) FROM t --- !query 1155 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,0)> --- !query 1155 output -1 - - --- !query 1156 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1156 schema -struct<(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> --- !query 1156 output -1 - - --- !query 1157 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 0)) FROM t --- !query 1157 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,0)> --- !query 1157 output -1 - - --- !query 1158 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 0)) FROM t --- !query 1158 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> --- !query 1158 output -1 - - --- !query 1159 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 0)) FROM t --- !query 1159 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,0)> --- !query 1159 output -1 - - --- !query 1160 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 0)) FROM t --- !query 1160 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,0)> --- !query 1160 output -1 - - --- !query 1161 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 0)) FROM t --- !query 1161 schema -struct<> --- !query 1161 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 0)) FROM t - - --- !query 1162 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(1, 1)) FROM t --- !query 1162 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(12,1)> --- !query 1162 output -NULL - - --- !query 1163 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(2, 1)) FROM t --- !query 1163 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(13,1)> --- !query 1163 output -1 - - --- !query 1164 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 1)) FROM t --- !query 1164 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(14,1)> --- !query 1164 output -1 - - --- !query 1165 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(4, 1)) FROM t --- !query 1165 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(15,1)> --- !query 1165 output -1 - - --- !query 1166 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 1)) FROM t --- !query 1166 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(16,1)> --- !query 1166 output -1 - - --- !query 1167 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(6, 1)) FROM t --- !query 1167 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(17,1)> --- !query 1167 output -1 - - --- !query 1168 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 1)) FROM t --- !query 1168 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(21,1)> --- !query 1168 output -1 - - --- !query 1169 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(11, 1)) FROM t --- !query 1169 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(22,1)> --- !query 1169 output -1 - - --- !query 1170 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 1)) FROM t --- !query 1170 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(31,1)> --- !query 1170 output -1 - - --- !query 1171 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(21, 1)) FROM t --- !query 1171 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(32,1)> --- !query 1171 output -1 - - --- !query 1172 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(38, 1)) FROM t --- !query 1172 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,1)> --- !query 1172 output -1 - - --- !query 1173 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 1)) FROM t --- !query 1173 schema -struct<> --- !query 1173 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(39, 1)) FROM t - - --- !query 1174 -SELECT cast('1' as binary) * cast(1 as decimal(1, 0)) FROM t --- !query 1174 schema -struct<> --- !query 1174 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 1175 -SELECT cast('1' as binary) * cast(1 as decimal(3, 0)) FROM t --- !query 1175 schema -struct<> --- !query 1175 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 1176 -SELECT cast('1' as binary) * cast(1 as decimal(4, 0)) FROM t --- !query 1176 schema -struct<> --- !query 1176 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 1177 -SELECT cast('1' as binary) * cast(1 as decimal(5, 0)) FROM t --- !query 1177 schema -struct<> --- !query 1177 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 1178 -SELECT cast('1' as binary) * cast(1 as decimal(6, 0)) FROM t --- !query 1178 schema struct<> --- !query 1178 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 1179 -SELECT cast('1' as binary) * cast(1 as decimal(10, 0)) FROM t --- !query 1179 schema -struct<> --- !query 1179 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 1180 -SELECT cast('1' as binary) * cast(1 as decimal(11, 0)) FROM t --- !query 1180 schema -struct<> --- !query 1180 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 1181 -SELECT cast('1' as binary) * cast(1 as decimal(20, 0)) FROM t --- !query 1181 schema -struct<> --- !query 1181 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 1182 -SELECT cast('1' as binary) * cast(1 as decimal(21, 0)) FROM t --- !query 1182 schema -struct<> --- !query 1182 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 1183 -SELECT cast('1' as binary) * cast(1 as decimal(38, 0)) FROM t --- !query 1183 schema -struct<> --- !query 1183 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 1184 -SELECT cast('1' as binary) * cast(1 as decimal(39, 0)) FROM t --- !query 1184 schema -struct<> --- !query 1184 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) * cast(1 as decimal(39, 0)) FROM t - - --- !query 1185 -SELECT cast('1' as binary) * cast(1 as decimal(1, 1)) FROM t --- !query 1185 schema -struct<> --- !query 1185 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 1186 -SELECT cast('1' as binary) * cast(1 as decimal(2, 1)) FROM t --- !query 1186 schema -struct<> --- !query 1186 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 1187 -SELECT cast('1' as binary) * cast(1 as decimal(3, 1)) FROM t --- !query 1187 schema -struct<> --- !query 1187 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 1188 -SELECT cast('1' as binary) * cast(1 as decimal(4, 1)) FROM t --- !query 1188 schema -struct<> --- !query 1188 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 1189 -SELECT cast('1' as binary) * cast(1 as decimal(5, 1)) FROM t --- !query 1189 schema -struct<> --- !query 1189 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 1190 -SELECT cast('1' as binary) * cast(1 as decimal(6, 1)) FROM t --- !query 1190 schema -struct<> --- !query 1190 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 1191 -SELECT cast('1' as binary) * cast(1 as decimal(10, 1)) FROM t --- !query 1191 schema -struct<> --- !query 1191 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 1192 -SELECT cast('1' as binary) * cast(1 as decimal(11, 1)) FROM t --- !query 1192 schema -struct<> --- !query 1192 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 1193 -SELECT cast('1' as binary) * cast(1 as decimal(20, 1)) FROM t --- !query 1193 schema -struct<> --- !query 1193 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 1194 -SELECT cast('1' as binary) * cast(1 as decimal(21, 1)) FROM t --- !query 1194 schema -struct<> --- !query 1194 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 1195 -SELECT cast('1' as binary) * cast(1 as decimal(38, 1)) FROM t --- !query 1195 schema -struct<> --- !query 1195 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) * CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 1196 -SELECT cast('1' as binary) * cast(1 as decimal(39, 1)) FROM t --- !query 1196 schema -struct<> --- !query 1196 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) * cast(1 as decimal(39, 1)) FROM t - - --- !query 1197 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 0)) FROM t --- !query 1197 schema -struct<> --- !query 1197 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 1198 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 0)) FROM t --- !query 1198 schema -struct<> --- !query 1198 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 1199 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 0)) FROM t --- !query 1199 schema -struct<> --- !query 1199 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 1200 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 0)) FROM t --- !query 1200 schema -struct<> --- !query 1200 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 1201 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 0)) FROM t --- !query 1201 schema -struct<> --- !query 1201 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 1202 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 0)) FROM t --- !query 1202 schema -struct<> --- !query 1202 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 1203 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 0)) FROM t --- !query 1203 schema -struct<> --- !query 1203 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 1204 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 0)) FROM t --- !query 1204 schema -struct<> --- !query 1204 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 1205 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 0)) FROM t --- !query 1205 schema -struct<> --- !query 1205 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 1206 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 0)) FROM t --- !query 1206 schema -struct<> --- !query 1206 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 1207 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 0)) FROM t --- !query 1207 schema -struct<> --- !query 1207 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 0)) FROM t - - --- !query 1208 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(1, 1)) FROM t --- !query 1208 schema -struct<> --- !query 1208 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 1209 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(2, 1)) FROM t --- !query 1209 schema -struct<> --- !query 1209 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 1210 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 1)) FROM t --- !query 1210 schema -struct<> --- !query 1210 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 1211 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(4, 1)) FROM t --- !query 1211 schema -struct<> --- !query 1211 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 1212 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 1)) FROM t --- !query 1212 schema -struct<> --- !query 1212 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 1213 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(6, 1)) FROM t --- !query 1213 schema -struct<> --- !query 1213 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 1214 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 1)) FROM t --- !query 1214 schema -struct<> --- !query 1214 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 1215 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(11, 1)) FROM t --- !query 1215 schema -struct<> --- !query 1215 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 1216 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 1)) FROM t --- !query 1216 schema -struct<> --- !query 1216 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 1217 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(21, 1)) FROM t --- !query 1217 schema -struct<> --- !query 1217 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 1218 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(38, 1)) FROM t --- !query 1218 schema -struct<> --- !query 1218 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00.0' AS TIMESTAMP) * CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 1219 -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 1)) FROM t --- !query 1219 schema -struct<> --- !query 1219 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(39, 1)) FROM t - - --- !query 1220 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 0)) FROM t --- !query 1220 schema -struct<> --- !query 1220 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 1221 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 0)) FROM t --- !query 1221 schema -struct<> --- !query 1221 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 1222 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 0)) FROM t --- !query 1222 schema -struct<> --- !query 1222 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 1223 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 0)) FROM t --- !query 1223 schema -struct<> --- !query 1223 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 1224 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 0)) FROM t --- !query 1224 schema -struct<> --- !query 1224 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 1225 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 0)) FROM t --- !query 1225 schema -struct<> --- !query 1225 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 1226 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 0)) FROM t --- !query 1226 schema -struct<> --- !query 1226 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 1227 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 0)) FROM t --- !query 1227 schema -struct<> --- !query 1227 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 1228 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 0)) FROM t --- !query 1228 schema -struct<> --- !query 1228 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 1229 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 0)) FROM t --- !query 1229 schema -struct<> --- !query 1229 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 1230 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 0)) FROM t --- !query 1230 schema -struct<> --- !query 1230 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 0)) FROM t - - --- !query 1231 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(1, 1)) FROM t --- !query 1231 schema -struct<> --- !query 1231 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 1232 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(2, 1)) FROM t --- !query 1232 schema -struct<> --- !query 1232 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 1233 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 1)) FROM t --- !query 1233 schema -struct<> --- !query 1233 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 1234 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(4, 1)) FROM t --- !query 1234 schema -struct<> --- !query 1234 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 1235 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 1)) FROM t --- !query 1235 schema -struct<> --- !query 1235 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 1236 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(6, 1)) FROM t --- !query 1236 schema -struct<> --- !query 1236 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 1237 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 1)) FROM t --- !query 1237 schema -struct<> --- !query 1237 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 1238 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(11, 1)) FROM t --- !query 1238 schema -struct<> --- !query 1238 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 1239 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 1)) FROM t --- !query 1239 schema -struct<> --- !query 1239 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 1240 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(21, 1)) FROM t --- !query 1240 schema -struct<> --- !query 1240 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 1241 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(38, 1)) FROM t --- !query 1241 schema -struct<> --- !query 1241 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017*12*11 09:30:00' AS DATE) * CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 1242 -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 1)) FROM t --- !query 1242 schema -struct<> --- !query 1242 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(39, 1)) FROM t - - --- !query 1243 -SELECT cast(1 as decimal(1, 0)) * cast(1 as tinyint) FROM t --- !query 1243 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):decimal(5,0)> --- !query 1243 output -1 - - --- !query 1244 -SELECT cast(1 as decimal(3, 0)) * cast(1 as tinyint) FROM t --- !query 1244 schema -struct<(CAST(1 AS DECIMAL(3,0)) * CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(7,0)> --- !query 1244 output -1 - - --- !query 1245 -SELECT cast(1 as decimal(4, 0)) * cast(1 as tinyint) FROM t --- !query 1245 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(8,0)> --- !query 1245 output -1 - - --- !query 1246 -SELECT cast(1 as decimal(5, 0)) * cast(1 as tinyint) FROM t --- !query 1246 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(9,0)> --- !query 1246 output -1 - - --- !query 1247 -SELECT cast(1 as decimal(6, 0)) * cast(1 as tinyint) FROM t --- !query 1247 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(10,0)> --- !query 1247 output -1 - - --- !query 1248 -SELECT cast(1 as decimal(10, 0)) * cast(1 as tinyint) FROM t --- !query 1248 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(14,0)> --- !query 1248 output -1 - - --- !query 1249 -SELECT cast(1 as decimal(11, 0)) * cast(1 as tinyint) FROM t --- !query 1249 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(15,0)> --- !query 1249 output -1 - - --- !query 1250 -SELECT cast(1 as decimal(20, 0)) * cast(1 as tinyint) FROM t --- !query 1250 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(24,0)> --- !query 1250 output -1 - - --- !query 1251 -SELECT cast(1 as decimal(21, 0)) * cast(1 as tinyint) FROM t --- !query 1251 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(25,0)> --- !query 1251 output -1 - - --- !query 1252 -SELECT cast(1 as decimal(38, 0)) * cast(1 as tinyint) FROM t --- !query 1252 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,0)> --- !query 1252 output -1 - - --- !query 1253 -SELECT cast(1 as decimal(39, 0)) * cast(1 as tinyint) FROM t --- !query 1253 schema -struct<> --- !query 1253 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as tinyint) FROM t - - --- !query 1254 -SELECT cast(1 as decimal(1, 1)) * cast(1 as tinyint) FROM t --- !query 1254 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(5,1)> --- !query 1254 output -NULL - - --- !query 1255 -SELECT cast(1 as decimal(2, 1)) * cast(1 as tinyint) FROM t --- !query 1255 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(6,1)> --- !query 1255 output -1 - - --- !query 1256 -SELECT cast(1 as decimal(3, 1)) * cast(1 as tinyint) FROM t --- !query 1256 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(7,1)> --- !query 1256 output -1 - - --- !query 1257 -SELECT cast(1 as decimal(4, 1)) * cast(1 as tinyint) FROM t --- !query 1257 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(8,1)> --- !query 1257 output -1 - - --- !query 1258 -SELECT cast(1 as decimal(5, 1)) * cast(1 as tinyint) FROM t --- !query 1258 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(9,1)> --- !query 1258 output -1 - - --- !query 1259 -SELECT cast(1 as decimal(6, 1)) * cast(1 as tinyint) FROM t --- !query 1259 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(10,1)> --- !query 1259 output -1 - - --- !query 1260 -SELECT cast(1 as decimal(10, 1)) * cast(1 as tinyint) FROM t --- !query 1260 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):decimal(14,1)> --- !query 1260 output -1 - - --- !query 1261 -SELECT cast(1 as decimal(11, 1)) * cast(1 as tinyint) FROM t --- !query 1261 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(15,1)> --- !query 1261 output -1 - - --- !query 1262 -SELECT cast(1 as decimal(20, 1)) * cast(1 as tinyint) FROM t --- !query 1262 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):decimal(24,1)> --- !query 1262 output -1 - - --- !query 1263 -SELECT cast(1 as decimal(21, 1)) * cast(1 as tinyint) FROM t --- !query 1263 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(25,1)> --- !query 1263 output -1 - - --- !query 1264 -SELECT cast(1 as decimal(38, 1)) * cast(1 as tinyint) FROM t --- !query 1264 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,1)> --- !query 1264 output -1 - - --- !query 1265 -SELECT cast(1 as decimal(39, 1)) * cast(1 as tinyint) FROM t --- !query 1265 schema -struct<> --- !query 1265 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as tinyint) FROM t - - --- !query 1266 -SELECT cast(1 as decimal(1, 0)) * cast(1 as smallint) FROM t --- !query 1266 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(7,0)> --- !query 1266 output -1 - - --- !query 1267 -SELECT cast(1 as decimal(3, 0)) * cast(1 as smallint) FROM t --- !query 1267 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,0)> --- !query 1267 output -1 - - --- !query 1268 -SELECT cast(1 as decimal(4, 0)) * cast(1 as smallint) FROM t --- !query 1268 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(10,0)> --- !query 1268 output -1 - - --- !query 1269 -SELECT cast(1 as decimal(5, 0)) * cast(1 as smallint) FROM t --- !query 1269 schema -struct<(CAST(1 AS DECIMAL(5,0)) * CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(11,0)> --- !query 1269 output -1 - - --- !query 1270 -SELECT cast(1 as decimal(6, 0)) * cast(1 as smallint) FROM t --- !query 1270 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(12,0)> --- !query 1270 output -1 - - --- !query 1271 -SELECT cast(1 as decimal(10, 0)) * cast(1 as smallint) FROM t --- !query 1271 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,0)> --- !query 1271 output -1 - - --- !query 1272 -SELECT cast(1 as decimal(11, 0)) * cast(1 as smallint) FROM t --- !query 1272 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(17,0)> --- !query 1272 output -1 - - --- !query 1273 -SELECT cast(1 as decimal(20, 0)) * cast(1 as smallint) FROM t --- !query 1273 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,0)> --- !query 1273 output -1 - - --- !query 1274 -SELECT cast(1 as decimal(21, 0)) * cast(1 as smallint) FROM t --- !query 1274 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(27,0)> --- !query 1274 output -1 - - --- !query 1275 -SELECT cast(1 as decimal(38, 0)) * cast(1 as smallint) FROM t --- !query 1275 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,0)> --- !query 1275 output -1 - - --- !query 1276 -SELECT cast(1 as decimal(39, 0)) * cast(1 as smallint) FROM t --- !query 1276 schema -struct<> --- !query 1276 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as smallint) FROM t - - --- !query 1277 -SELECT cast(1 as decimal(1, 1)) * cast(1 as smallint) FROM t --- !query 1277 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(7,1)> --- !query 1277 output -NULL - - --- !query 1278 -SELECT cast(1 as decimal(2, 1)) * cast(1 as smallint) FROM t --- !query 1278 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(8,1)> --- !query 1278 output -1 - - --- !query 1279 -SELECT cast(1 as decimal(3, 1)) * cast(1 as smallint) FROM t --- !query 1279 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(9,1)> --- !query 1279 output -1 - - --- !query 1280 -SELECT cast(1 as decimal(4, 1)) * cast(1 as smallint) FROM t --- !query 1280 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(10,1)> --- !query 1280 output -1 - - --- !query 1281 -SELECT cast(1 as decimal(5, 1)) * cast(1 as smallint) FROM t --- !query 1281 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(11,1)> --- !query 1281 output -1 - - --- !query 1282 -SELECT cast(1 as decimal(6, 1)) * cast(1 as smallint) FROM t --- !query 1282 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(12,1)> --- !query 1282 output -1 - - --- !query 1283 -SELECT cast(1 as decimal(10, 1)) * cast(1 as smallint) FROM t --- !query 1283 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):decimal(16,1)> --- !query 1283 output -1 - - --- !query 1284 -SELECT cast(1 as decimal(11, 1)) * cast(1 as smallint) FROM t --- !query 1284 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(17,1)> --- !query 1284 output -1 - - --- !query 1285 -SELECT cast(1 as decimal(20, 1)) * cast(1 as smallint) FROM t --- !query 1285 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):decimal(26,1)> --- !query 1285 output -1 - - --- !query 1286 -SELECT cast(1 as decimal(21, 1)) * cast(1 as smallint) FROM t --- !query 1286 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(27,1)> --- !query 1286 output -1 - - --- !query 1287 -SELECT cast(1 as decimal(38, 1)) * cast(1 as smallint) FROM t --- !query 1287 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,1)> --- !query 1287 output -1 - - --- !query 1288 -SELECT cast(1 as decimal(39, 1)) * cast(1 as smallint) FROM t --- !query 1288 schema -struct<> --- !query 1288 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as smallint) FROM t - - --- !query 1289 -SELECT cast(1 as decimal(1, 0)) * cast(1 as int) FROM t --- !query 1289 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,0)> --- !query 1289 output -1 - - --- !query 1290 -SELECT cast(1 as decimal(3, 0)) * cast(1 as int) FROM t --- !query 1290 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> --- !query 1290 output -1 - - --- !query 1291 -SELECT cast(1 as decimal(4, 0)) * cast(1 as int) FROM t --- !query 1291 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,0)> --- !query 1291 output -1 - - --- !query 1292 -SELECT cast(1 as decimal(5, 0)) * cast(1 as int) FROM t --- !query 1292 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> --- !query 1292 output -1 - - --- !query 1293 -SELECT cast(1 as decimal(6, 0)) * cast(1 as int) FROM t --- !query 1293 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,0)> --- !query 1293 output -1 - - --- !query 1294 -SELECT cast(1 as decimal(10, 0)) * cast(1 as int) FROM t --- !query 1294 schema -struct<(CAST(1 AS DECIMAL(10,0)) * CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(21,0)> --- !query 1294 output -1 - - --- !query 1295 -SELECT cast(1 as decimal(11, 0)) * cast(1 as int) FROM t --- !query 1295 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,0)> --- !query 1295 output -1 - - --- !query 1296 -SELECT cast(1 as decimal(20, 0)) * cast(1 as int) FROM t --- !query 1296 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> --- !query 1296 output -1 - - --- !query 1297 -SELECT cast(1 as decimal(21, 0)) * cast(1 as int) FROM t --- !query 1297 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,0)> --- !query 1297 output -1 - - --- !query 1298 -SELECT cast(1 as decimal(38, 0)) * cast(1 as int) FROM t --- !query 1298 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> --- !query 1298 output -1 - - --- !query 1299 -SELECT cast(1 as decimal(39, 0)) * cast(1 as int) FROM t --- !query 1299 schema -struct<> --- !query 1299 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as int) FROM t - - --- !query 1300 -SELECT cast(1 as decimal(1, 1)) * cast(1 as int) FROM t --- !query 1300 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,1)> --- !query 1300 output -NULL - - --- !query 1301 -SELECT cast(1 as decimal(2, 1)) * cast(1 as int) FROM t --- !query 1301 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,1)> --- !query 1301 output -1 - - --- !query 1302 -SELECT cast(1 as decimal(3, 1)) * cast(1 as int) FROM t --- !query 1302 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,1)> --- !query 1302 output -1 - - --- !query 1303 -SELECT cast(1 as decimal(4, 1)) * cast(1 as int) FROM t --- !query 1303 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,1)> --- !query 1303 output -1 - - --- !query 1304 -SELECT cast(1 as decimal(5, 1)) * cast(1 as int) FROM t --- !query 1304 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,1)> --- !query 1304 output -1 - - --- !query 1305 -SELECT cast(1 as decimal(6, 1)) * cast(1 as int) FROM t --- !query 1305 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,1)> --- !query 1305 output -1 - - --- !query 1306 -SELECT cast(1 as decimal(10, 1)) * cast(1 as int) FROM t --- !query 1306 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,1)> --- !query 1306 output -1 - - --- !query 1307 -SELECT cast(1 as decimal(11, 1)) * cast(1 as int) FROM t --- !query 1307 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,1)> --- !query 1307 output -1 - - --- !query 1308 -SELECT cast(1 as decimal(20, 1)) * cast(1 as int) FROM t --- !query 1308 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,1)> --- !query 1308 output -1 - - --- !query 1309 -SELECT cast(1 as decimal(21, 1)) * cast(1 as int) FROM t --- !query 1309 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,1)> --- !query 1309 output -1 - - --- !query 1310 -SELECT cast(1 as decimal(38, 1)) * cast(1 as int) FROM t --- !query 1310 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> --- !query 1310 output -1 - - --- !query 1311 -SELECT cast(1 as decimal(39, 1)) * cast(1 as int) FROM t --- !query 1311 schema -struct<> --- !query 1311 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as int) FROM t - - --- !query 1312 -SELECT cast(1 as decimal(1, 0)) * cast(1 as bigint) FROM t --- !query 1312 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(22,0)> --- !query 1312 output -1 - - --- !query 1313 -SELECT cast(1 as decimal(3, 0)) * cast(1 as bigint) FROM t --- !query 1313 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,0)> --- !query 1313 output -1 - - --- !query 1314 -SELECT cast(1 as decimal(4, 0)) * cast(1 as bigint) FROM t --- !query 1314 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(25,0)> --- !query 1314 output -1 - - --- !query 1315 -SELECT cast(1 as decimal(5, 0)) * cast(1 as bigint) FROM t --- !query 1315 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,0)> --- !query 1315 output -1 - - --- !query 1316 -SELECT cast(1 as decimal(6, 0)) * cast(1 as bigint) FROM t --- !query 1316 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(27,0)> --- !query 1316 output -1 - - --- !query 1317 -SELECT cast(1 as decimal(10, 0)) * cast(1 as bigint) FROM t --- !query 1317 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,0)> --- !query 1317 output -1 - - --- !query 1318 -SELECT cast(1 as decimal(11, 0)) * cast(1 as bigint) FROM t --- !query 1318 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(32,0)> --- !query 1318 output -1 - - --- !query 1319 -SELECT cast(1 as decimal(20, 0)) * cast(1 as bigint) FROM t --- !query 1319 schema -struct<(CAST(1 AS DECIMAL(20,0)) * CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(38,0)> --- !query 1319 output -1 - - --- !query 1320 -SELECT cast(1 as decimal(21, 0)) * cast(1 as bigint) FROM t --- !query 1320 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(38,0)> --- !query 1320 output -1 - - --- !query 1321 -SELECT cast(1 as decimal(38, 0)) * cast(1 as bigint) FROM t --- !query 1321 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,0)> --- !query 1321 output -1 - - --- !query 1322 -SELECT cast(1 as decimal(39, 0)) * cast(1 as bigint) FROM t --- !query 1322 schema -struct<> --- !query 1322 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as bigint) FROM t - - --- !query 1323 -SELECT cast(1 as decimal(1, 1)) * cast(1 as bigint) FROM t --- !query 1323 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(22,1)> --- !query 1323 output -NULL - - --- !query 1324 -SELECT cast(1 as decimal(2, 1)) * cast(1 as bigint) FROM t --- !query 1324 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(23,1)> --- !query 1324 output -1 - - --- !query 1325 -SELECT cast(1 as decimal(3, 1)) * cast(1 as bigint) FROM t --- !query 1325 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(24,1)> --- !query 1325 output -1 - - --- !query 1326 -SELECT cast(1 as decimal(4, 1)) * cast(1 as bigint) FROM t --- !query 1326 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(25,1)> --- !query 1326 output -1 - - --- !query 1327 -SELECT cast(1 as decimal(5, 1)) * cast(1 as bigint) FROM t --- !query 1327 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(26,1)> --- !query 1327 output -1 - - --- !query 1328 -SELECT cast(1 as decimal(6, 1)) * cast(1 as bigint) FROM t --- !query 1328 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(27,1)> --- !query 1328 output -1 - - --- !query 1329 -SELECT cast(1 as decimal(10, 1)) * cast(1 as bigint) FROM t --- !query 1329 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(31,1)> --- !query 1329 output -1 - - --- !query 1330 -SELECT cast(1 as decimal(11, 1)) * cast(1 as bigint) FROM t --- !query 1330 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(32,1)> --- !query 1330 output -1 - - --- !query 1331 -SELECT cast(1 as decimal(20, 1)) * cast(1 as bigint) FROM t --- !query 1331 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,1)> --- !query 1331 output -1 - - --- !query 1332 -SELECT cast(1 as decimal(21, 1)) * cast(1 as bigint) FROM t --- !query 1332 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,1)> --- !query 1332 output -1 - - --- !query 1333 -SELECT cast(1 as decimal(38, 1)) * cast(1 as bigint) FROM t --- !query 1333 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,1)> --- !query 1333 output -1 - - --- !query 1334 -SELECT cast(1 as decimal(39, 1)) * cast(1 as bigint) FROM t --- !query 1334 schema -struct<> --- !query 1334 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as bigint) FROM t - - --- !query 1335 -SELECT cast(1 as decimal(1, 0)) * cast(1 as float) FROM t --- !query 1335 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1335 output -1.0 - - --- !query 1336 -SELECT cast(1 as decimal(3, 0)) * cast(1 as float) FROM t --- !query 1336 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1336 output -1.0 - - --- !query 1337 -SELECT cast(1 as decimal(4, 0)) * cast(1 as float) FROM t --- !query 1337 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1337 output -1.0 - - --- !query 1338 -SELECT cast(1 as decimal(5, 0)) * cast(1 as float) FROM t --- !query 1338 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1338 output -1.0 - - --- !query 1339 -SELECT cast(1 as decimal(6, 0)) * cast(1 as float) FROM t --- !query 1339 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1339 output -1.0 - - --- !query 1340 -SELECT cast(1 as decimal(10, 0)) * cast(1 as float) FROM t --- !query 1340 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1340 output -1.0 - - --- !query 1341 -SELECT cast(1 as decimal(11, 0)) * cast(1 as float) FROM t --- !query 1341 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1341 output -1.0 - - --- !query 1342 -SELECT cast(1 as decimal(20, 0)) * cast(1 as float) FROM t --- !query 1342 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1342 output -1.0 - - --- !query 1343 -SELECT cast(1 as decimal(21, 0)) * cast(1 as float) FROM t --- !query 1343 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1343 output -1.0 - - --- !query 1344 -SELECT cast(1 as decimal(38, 0)) * cast(1 as float) FROM t --- !query 1344 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1344 output -1.0 - - --- !query 1345 -SELECT cast(1 as decimal(39, 0)) * cast(1 as float) FROM t --- !query 1345 schema -struct<> --- !query 1345 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as float) FROM t - - --- !query 1346 -SELECT cast(1 as decimal(1, 1)) * cast(1 as float) FROM t --- !query 1346 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1346 output -NULL - - --- !query 1347 -SELECT cast(1 as decimal(2, 1)) * cast(1 as float) FROM t --- !query 1347 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1347 output -1.0 - - --- !query 1348 -SELECT cast(1 as decimal(3, 1)) * cast(1 as float) FROM t --- !query 1348 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1348 output -1.0 - - --- !query 1349 -SELECT cast(1 as decimal(4, 1)) * cast(1 as float) FROM t --- !query 1349 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1349 output -1.0 - - --- !query 1350 -SELECT cast(1 as decimal(5, 1)) * cast(1 as float) FROM t --- !query 1350 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1350 output -1.0 - - --- !query 1351 -SELECT cast(1 as decimal(6, 1)) * cast(1 as float) FROM t --- !query 1351 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1351 output -1.0 - - --- !query 1352 -SELECT cast(1 as decimal(10, 1)) * cast(1 as float) FROM t --- !query 1352 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1352 output -1.0 - - --- !query 1353 -SELECT cast(1 as decimal(11, 1)) * cast(1 as float) FROM t --- !query 1353 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1353 output -1.0 - - --- !query 1354 -SELECT cast(1 as decimal(20, 1)) * cast(1 as float) FROM t --- !query 1354 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1354 output -1.0 - - --- !query 1355 -SELECT cast(1 as decimal(21, 1)) * cast(1 as float) FROM t --- !query 1355 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1355 output -1.0 - - --- !query 1356 -SELECT cast(1 as decimal(38, 1)) * cast(1 as float) FROM t --- !query 1356 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) * CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1356 output -1.0 - - --- !query 1357 -SELECT cast(1 as decimal(39, 1)) * cast(1 as float) FROM t --- !query 1357 schema -struct<> --- !query 1357 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as float) FROM t - - --- !query 1358 -SELECT cast(1 as decimal(1, 0)) * cast(1 as double) FROM t --- !query 1358 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1358 output -1.0 - - --- !query 1359 -SELECT cast(1 as decimal(3, 0)) * cast(1 as double) FROM t --- !query 1359 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1359 output -1.0 - - --- !query 1360 -SELECT cast(1 as decimal(4, 0)) * cast(1 as double) FROM t --- !query 1360 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1360 output -1.0 - - --- !query 1361 -SELECT cast(1 as decimal(5, 0)) * cast(1 as double) FROM t --- !query 1361 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1361 output -1.0 - - --- !query 1362 -SELECT cast(1 as decimal(6, 0)) * cast(1 as double) FROM t --- !query 1362 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1362 output -1.0 - - --- !query 1363 -SELECT cast(1 as decimal(10, 0)) * cast(1 as double) FROM t --- !query 1363 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1363 output -1.0 - - --- !query 1364 -SELECT cast(1 as decimal(11, 0)) * cast(1 as double) FROM t --- !query 1364 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1364 output -1.0 - - --- !query 1365 -SELECT cast(1 as decimal(20, 0)) * cast(1 as double) FROM t --- !query 1365 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1365 output -1.0 - - --- !query 1366 -SELECT cast(1 as decimal(21, 0)) * cast(1 as double) FROM t --- !query 1366 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1366 output -1.0 - - --- !query 1367 -SELECT cast(1 as decimal(38, 0)) * cast(1 as double) FROM t --- !query 1367 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1367 output -1.0 - - --- !query 1368 -SELECT cast(1 as decimal(39, 0)) * cast(1 as double) FROM t --- !query 1368 schema -struct<> --- !query 1368 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as double) FROM t - - --- !query 1369 -SELECT cast(1 as decimal(1, 1)) * cast(1 as double) FROM t --- !query 1369 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1369 output -NULL - - --- !query 1370 -SELECT cast(1 as decimal(2, 1)) * cast(1 as double) FROM t --- !query 1370 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1370 output -1.0 - - --- !query 1371 -SELECT cast(1 as decimal(3, 1)) * cast(1 as double) FROM t --- !query 1371 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1371 output -1.0 - - --- !query 1372 -SELECT cast(1 as decimal(4, 1)) * cast(1 as double) FROM t --- !query 1372 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1372 output -1.0 - - --- !query 1373 -SELECT cast(1 as decimal(5, 1)) * cast(1 as double) FROM t --- !query 1373 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1373 output -1.0 - - --- !query 1374 -SELECT cast(1 as decimal(6, 1)) * cast(1 as double) FROM t --- !query 1374 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1374 output -1.0 - - --- !query 1375 -SELECT cast(1 as decimal(10, 1)) * cast(1 as double) FROM t --- !query 1375 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1375 output -1.0 - - --- !query 1376 -SELECT cast(1 as decimal(11, 1)) * cast(1 as double) FROM t --- !query 1376 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1376 output -1.0 - - --- !query 1377 -SELECT cast(1 as decimal(20, 1)) * cast(1 as double) FROM t --- !query 1377 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1377 output -1.0 - - --- !query 1378 -SELECT cast(1 as decimal(21, 1)) * cast(1 as double) FROM t --- !query 1378 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1378 output -1.0 - - --- !query 1379 -SELECT cast(1 as decimal(38, 1)) * cast(1 as double) FROM t --- !query 1379 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) * CAST(1 AS DOUBLE)):double> --- !query 1379 output -1.0 - - --- !query 1380 -SELECT cast(1 as decimal(39, 1)) * cast(1 as double) FROM t --- !query 1380 schema -struct<> --- !query 1380 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as double) FROM t - - --- !query 1381 -SELECT cast(1 as decimal(1, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1381 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,0)> --- !query 1381 output -1 - - --- !query 1382 -SELECT cast(1 as decimal(3, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1382 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,0)> --- !query 1382 output -1 - - --- !query 1383 -SELECT cast(1 as decimal(4, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1383 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,0)> --- !query 1383 output -1 - - --- !query 1384 -SELECT cast(1 as decimal(5, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1384 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,0)> --- !query 1384 output -1 - - --- !query 1385 -SELECT cast(1 as decimal(6, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1385 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,0)> --- !query 1385 output -1 - - --- !query 1386 -SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1386 schema -struct<(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS DECIMAL(10,0))):decimal(21,0)> --- !query 1386 output -1 - - --- !query 1387 -SELECT cast(1 as decimal(11, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1387 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,0)> --- !query 1387 output -1 - - --- !query 1388 -SELECT cast(1 as decimal(20, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1388 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,0)> --- !query 1388 output -1 - - --- !query 1389 -SELECT cast(1 as decimal(21, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1389 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,0)> --- !query 1389 output -1 - - --- !query 1390 -SELECT cast(1 as decimal(38, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1390 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,0)> --- !query 1390 output -1 - - --- !query 1391 -SELECT cast(1 as decimal(39, 0)) * cast(1 as decimal(10, 0)) FROM t --- !query 1391 schema -struct<> --- !query 1391 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as decimal(10, 0)) FROM t - - --- !query 1392 -SELECT cast(1 as decimal(1, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1392 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,1)> --- !query 1392 output -NULL - - --- !query 1393 -SELECT cast(1 as decimal(2, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1393 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,1)> --- !query 1393 output -1 - - --- !query 1394 -SELECT cast(1 as decimal(3, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1394 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,1)> --- !query 1394 output -1 - - --- !query 1395 -SELECT cast(1 as decimal(4, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1395 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,1)> --- !query 1395 output -1 - - --- !query 1396 -SELECT cast(1 as decimal(5, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1396 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,1)> --- !query 1396 output -1 - - --- !query 1397 -SELECT cast(1 as decimal(6, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1397 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,1)> --- !query 1397 output -1 - - --- !query 1398 -SELECT cast(1 as decimal(10, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1398 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,1)> --- !query 1398 output -1 - - --- !query 1399 -SELECT cast(1 as decimal(11, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1399 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,1)> --- !query 1399 output -1 - - --- !query 1400 -SELECT cast(1 as decimal(20, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1400 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,1)> --- !query 1400 output -1 - - --- !query 1401 -SELECT cast(1 as decimal(21, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1401 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,1)> --- !query 1401 output -1 - - --- !query 1402 -SELECT cast(1 as decimal(38, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1402 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) * CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,1)> --- !query 1402 output -1 - - --- !query 1403 -SELECT cast(1 as decimal(39, 1)) * cast(1 as decimal(10, 0)) FROM t --- !query 1403 schema -struct<> --- !query 1403 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as decimal(10, 0)) FROM t - - --- !query 1404 -SELECT cast(1 as decimal(1, 0)) * cast(1 as string) FROM t --- !query 1404 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1404 output -1.0 - - --- !query 1405 -SELECT cast(1 as decimal(3, 0)) * cast(1 as string) FROM t --- !query 1405 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1405 output -1.0 - - --- !query 1406 -SELECT cast(1 as decimal(4, 0)) * cast(1 as string) FROM t --- !query 1406 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1406 output -1.0 - - --- !query 1407 -SELECT cast(1 as decimal(5, 0)) * cast(1 as string) FROM t --- !query 1407 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1407 output -1.0 - - --- !query 1408 -SELECT cast(1 as decimal(6, 0)) * cast(1 as string) FROM t --- !query 1408 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1408 output -1.0 - - --- !query 1409 -SELECT cast(1 as decimal(10, 0)) * cast(1 as string) FROM t --- !query 1409 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1409 output -1.0 - - --- !query 1410 -SELECT cast(1 as decimal(11, 0)) * cast(1 as string) FROM t --- !query 1410 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1410 output -1.0 - - --- !query 1411 -SELECT cast(1 as decimal(20, 0)) * cast(1 as string) FROM t --- !query 1411 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1411 output -1.0 - - --- !query 1412 -SELECT cast(1 as decimal(21, 0)) * cast(1 as string) FROM t --- !query 1412 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1412 output -1.0 - - --- !query 1413 -SELECT cast(1 as decimal(38, 0)) * cast(1 as string) FROM t --- !query 1413 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1413 output -1.0 - - --- !query 1414 -SELECT cast(1 as decimal(39, 0)) * cast(1 as string) FROM t --- !query 1414 schema -struct<> --- !query 1414 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as string) FROM t - - --- !query 1415 -SELECT cast(1 as decimal(1, 1)) * cast(1 as string) FROM t --- !query 1415 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1415 output -NULL - - --- !query 1416 -SELECT cast(1 as decimal(2, 1)) * cast(1 as string) FROM t --- !query 1416 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1416 output -1.0 - - --- !query 1417 -SELECT cast(1 as decimal(3, 1)) * cast(1 as string) FROM t --- !query 1417 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1417 output -1.0 - - --- !query 1418 -SELECT cast(1 as decimal(4, 1)) * cast(1 as string) FROM t --- !query 1418 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1418 output -1.0 - - --- !query 1419 -SELECT cast(1 as decimal(5, 1)) * cast(1 as string) FROM t --- !query 1419 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1419 output -1.0 - - --- !query 1420 -SELECT cast(1 as decimal(6, 1)) * cast(1 as string) FROM t --- !query 1420 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1420 output -1.0 - - --- !query 1421 -SELECT cast(1 as decimal(10, 1)) * cast(1 as string) FROM t --- !query 1421 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1421 output -1.0 - - --- !query 1422 -SELECT cast(1 as decimal(11, 1)) * cast(1 as string) FROM t --- !query 1422 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1422 output -1.0 - - --- !query 1423 -SELECT cast(1 as decimal(20, 1)) * cast(1 as string) FROM t --- !query 1423 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1423 output -1.0 - - --- !query 1424 -SELECT cast(1 as decimal(21, 1)) * cast(1 as string) FROM t --- !query 1424 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1424 output -1.0 - - --- !query 1425 -SELECT cast(1 as decimal(38, 1)) * cast(1 as string) FROM t --- !query 1425 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) * CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1425 output -1.0 - - --- !query 1426 -SELECT cast(1 as decimal(39, 1)) * cast(1 as string) FROM t --- !query 1426 schema -struct<> --- !query 1426 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as string) FROM t - - --- !query 1427 -SELECT cast(1 as decimal(1, 0)) * cast('1' as binary) FROM t --- !query 1427 schema -struct<> --- !query 1427 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 1428 -SELECT cast(1 as decimal(3, 0)) * cast('1' as binary) FROM t --- !query 1428 schema -struct<> --- !query 1428 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 1429 -SELECT cast(1 as decimal(4, 0)) * cast('1' as binary) FROM t --- !query 1429 schema -struct<> --- !query 1429 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 1430 -SELECT cast(1 as decimal(5, 0)) * cast('1' as binary) FROM t --- !query 1430 schema -struct<> --- !query 1430 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 1431 -SELECT cast(1 as decimal(6, 0)) * cast('1' as binary) FROM t --- !query 1431 schema -struct<> --- !query 1431 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 1432 -SELECT cast(1 as decimal(10, 0)) * cast('1' as binary) FROM t --- !query 1432 schema -struct<> --- !query 1432 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 1433 -SELECT cast(1 as decimal(11, 0)) * cast('1' as binary) FROM t --- !query 1433 schema -struct<> --- !query 1433 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 1434 -SELECT cast(1 as decimal(20, 0)) * cast('1' as binary) FROM t --- !query 1434 schema -struct<> --- !query 1434 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 1435 -SELECT cast(1 as decimal(21, 0)) * cast('1' as binary) FROM t --- !query 1435 schema -struct<> --- !query 1435 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 1436 -SELECT cast(1 as decimal(38, 0)) * cast('1' as binary) FROM t --- !query 1436 schema -struct<> --- !query 1436 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 1437 -SELECT cast(1 as decimal(39, 0)) * cast('1' as binary) FROM t --- !query 1437 schema -struct<> --- !query 1437 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast('1' as binary) FROM t - - --- !query 1438 -SELECT cast(1 as decimal(1, 1)) * cast('1' as binary) FROM t --- !query 1438 schema -struct<> --- !query 1438 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 1439 -SELECT cast(1 as decimal(2, 1)) * cast('1' as binary) FROM t --- !query 1439 schema -struct<> --- !query 1439 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 1440 -SELECT cast(1 as decimal(3, 1)) * cast('1' as binary) FROM t --- !query 1440 schema -struct<> --- !query 1440 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 1441 -SELECT cast(1 as decimal(4, 1)) * cast('1' as binary) FROM t --- !query 1441 schema -struct<> --- !query 1441 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 1442 -SELECT cast(1 as decimal(5, 1)) * cast('1' as binary) FROM t --- !query 1442 schema -struct<> --- !query 1442 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 1443 -SELECT cast(1 as decimal(6, 1)) * cast('1' as binary) FROM t --- !query 1443 schema -struct<> --- !query 1443 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 1444 -SELECT cast(1 as decimal(10, 1)) * cast('1' as binary) FROM t --- !query 1444 schema -struct<> --- !query 1444 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 1445 -SELECT cast(1 as decimal(11, 1)) * cast('1' as binary) FROM t --- !query 1445 schema -struct<> --- !query 1445 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 1446 -SELECT cast(1 as decimal(20, 1)) * cast('1' as binary) FROM t --- !query 1446 schema -struct<> --- !query 1446 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 1447 -SELECT cast(1 as decimal(21, 1)) * cast('1' as binary) FROM t --- !query 1447 schema -struct<> --- !query 1447 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 1448 -SELECT cast(1 as decimal(38, 1)) * cast('1' as binary) FROM t --- !query 1448 schema -struct<> --- !query 1448 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 1449 -SELECT cast(1 as decimal(39, 1)) * cast('1' as binary) FROM t --- !query 1449 schema -struct<> --- !query 1449 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast('1' as binary) FROM t - - --- !query 1450 -SELECT cast(1 as decimal(1, 0)) * cast(1 as boolean) FROM t --- !query 1450 schema -struct<> --- !query 1450 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 1451 -SELECT cast(1 as decimal(3, 0)) * cast(1 as boolean) FROM t --- !query 1451 schema -struct<> --- !query 1451 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 1452 -SELECT cast(1 as decimal(4, 0)) * cast(1 as boolean) FROM t --- !query 1452 schema -struct<> --- !query 1452 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 1453 -SELECT cast(1 as decimal(5, 0)) * cast(1 as boolean) FROM t --- !query 1453 schema -struct<> --- !query 1453 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 1454 -SELECT cast(1 as decimal(6, 0)) * cast(1 as boolean) FROM t --- !query 1454 schema -struct<> --- !query 1454 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 1455 -SELECT cast(1 as decimal(10, 0)) * cast(1 as boolean) FROM t --- !query 1455 schema -struct<> --- !query 1455 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 1456 -SELECT cast(1 as decimal(11, 0)) * cast(1 as boolean) FROM t --- !query 1456 schema -struct<> --- !query 1456 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 1457 -SELECT cast(1 as decimal(20, 0)) * cast(1 as boolean) FROM t --- !query 1457 schema -struct<> --- !query 1457 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 1458 -SELECT cast(1 as decimal(21, 0)) * cast(1 as boolean) FROM t --- !query 1458 schema -struct<> --- !query 1458 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 1459 -SELECT cast(1 as decimal(38, 0)) * cast(1 as boolean) FROM t --- !query 1459 schema -struct<> --- !query 1459 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 1460 -SELECT cast(1 as decimal(39, 0)) * cast(1 as boolean) FROM t --- !query 1460 schema -struct<> --- !query 1460 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast(1 as boolean) FROM t - - --- !query 1461 -SELECT cast(1 as decimal(1, 1)) * cast(1 as boolean) FROM t --- !query 1461 schema -struct<> --- !query 1461 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 1462 -SELECT cast(1 as decimal(2, 1)) * cast(1 as boolean) FROM t --- !query 1462 schema -struct<> --- !query 1462 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 1463 -SELECT cast(1 as decimal(3, 1)) * cast(1 as boolean) FROM t --- !query 1463 schema -struct<> --- !query 1463 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 1464 -SELECT cast(1 as decimal(4, 1)) * cast(1 as boolean) FROM t --- !query 1464 schema -struct<> --- !query 1464 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 1465 -SELECT cast(1 as decimal(5, 1)) * cast(1 as boolean) FROM t --- !query 1465 schema -struct<> --- !query 1465 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 1466 -SELECT cast(1 as decimal(6, 1)) * cast(1 as boolean) FROM t --- !query 1466 schema -struct<> --- !query 1466 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 1467 -SELECT cast(1 as decimal(10, 1)) * cast(1 as boolean) FROM t --- !query 1467 schema -struct<> --- !query 1467 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 1468 -SELECT cast(1 as decimal(11, 1)) * cast(1 as boolean) FROM t --- !query 1468 schema -struct<> --- !query 1468 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 1469 -SELECT cast(1 as decimal(20, 1)) * cast(1 as boolean) FROM t --- !query 1469 schema -struct<> --- !query 1469 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 1470 -SELECT cast(1 as decimal(21, 1)) * cast(1 as boolean) FROM t --- !query 1470 schema -struct<> --- !query 1470 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 1471 -SELECT cast(1 as decimal(38, 1)) * cast(1 as boolean) FROM t --- !query 1471 schema -struct<> --- !query 1471 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 1472 -SELECT cast(1 as decimal(39, 1)) * cast(1 as boolean) FROM t --- !query 1472 schema -struct<> --- !query 1472 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast(1 as boolean) FROM t - - --- !query 1473 -SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1473 schema -struct<> --- !query 1473 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 1474 -SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1474 schema -struct<> --- !query 1474 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 1475 -SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1475 schema -struct<> --- !query 1475 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 1476 -SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1476 schema -struct<> --- !query 1476 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 1477 -SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1477 schema -struct<> --- !query 1477 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 1478 -SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1478 schema -struct<> --- !query 1478 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 1479 -SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1479 schema -struct<> --- !query 1479 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 1480 -SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1480 schema -struct<> --- !query 1480 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 1481 -SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1481 schema -struct<> --- !query 1481 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 1482 -SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1482 schema -struct<> --- !query 1482 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 1483 -SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1483 schema -struct<> --- !query 1483 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t - - --- !query 1484 -SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1484 schema -struct<> --- !query 1484 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 1485 -SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1485 schema -struct<> --- !query 1485 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 1486 -SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1486 schema -struct<> --- !query 1486 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 1487 -SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1487 schema -struct<> --- !query 1487 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 1488 -SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1488 schema -struct<> --- !query 1488 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 1489 -SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1489 schema -struct<> --- !query 1489 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 1490 -SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1490 schema -struct<> --- !query 1490 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 1491 -SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1491 schema -struct<> --- !query 1491 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 1492 -SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1492 schema -struct<> --- !query 1492 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 1493 -SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1493 schema -struct<> --- !query 1493 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 1494 -SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1494 schema -struct<> --- !query 1494 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 1495 -SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t --- !query 1495 schema -struct<> --- !query 1495 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t - - --- !query 1496 -SELECT cast(1 as decimal(1, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1496 schema -struct<> --- !query 1496 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 1497 -SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1497 schema -struct<> --- !query 1497 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 1498 -SELECT cast(1 as decimal(4, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1498 schema -struct<> --- !query 1498 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 1499 -SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1499 schema -struct<> --- !query 1499 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 1500 -SELECT cast(1 as decimal(6, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1500 schema -struct<> --- !query 1500 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 1501 -SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1501 schema -struct<> --- !query 1501 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 1502 -SELECT cast(1 as decimal(11, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1502 schema -struct<> --- !query 1502 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 1503 -SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1503 schema -struct<> --- !query 1503 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 1504 -SELECT cast(1 as decimal(21, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1504 schema -struct<> --- !query 1504 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 1505 -SELECT cast(1 as decimal(38, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1505 schema -struct<> --- !query 1505 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 1506 -SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1506 schema -struct<> --- !query 1506 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) * cast('2017*12*11 09:30:00' as date) FROM t - - --- !query 1507 -SELECT cast(1 as decimal(1, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1507 schema -struct<> --- !query 1507 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 1508 -SELECT cast(1 as decimal(2, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1508 schema -struct<> --- !query 1508 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 1509 -SELECT cast(1 as decimal(3, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1509 schema -struct<> --- !query 1509 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 1510 -SELECT cast(1 as decimal(4, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1510 schema -struct<> --- !query 1510 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 1511 -SELECT cast(1 as decimal(5, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1511 schema -struct<> --- !query 1511 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 1512 -SELECT cast(1 as decimal(6, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1512 schema -struct<> --- !query 1512 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 1513 -SELECT cast(1 as decimal(10, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1513 schema -struct<> --- !query 1513 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 1514 -SELECT cast(1 as decimal(11, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1514 schema -struct<> --- !query 1514 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 1515 -SELECT cast(1 as decimal(20, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1515 schema -struct<> --- !query 1515 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 1516 -SELECT cast(1 as decimal(21, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1516 schema -struct<> --- !query 1516 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 1517 -SELECT cast(1 as decimal(38, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1517 schema -struct<> --- !query 1517 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) * CAST('2017*12*11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 1518 -SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00' as date) FROM t --- !query 1518 schema -struct<> --- !query 1518 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) * cast('2017*12*11 09:30:00' as date) FROM t - - --- !query 1519 -SELECT cast(1 as tinyint) / cast(1 as decimal(1, 0)) FROM t --- !query 1519 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):decimal(9,6)> --- !query 1519 output -1 - - --- !query 1520 -SELECT cast(1 as tinyint) / cast(1 as decimal(3, 0)) FROM t --- !query 1520 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) / CAST(1 AS DECIMAL(3,0))):decimal(9,6)> --- !query 1520 output -1 - - --- !query 1521 -SELECT cast(1 as tinyint) / cast(1 as decimal(4, 0)) FROM t --- !query 1521 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):decimal(9,6)> --- !query 1521 output -1 - - --- !query 1522 -SELECT cast(1 as tinyint) / cast(1 as decimal(5, 0)) FROM t --- !query 1522 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,6)> --- !query 1522 output -1 - - --- !query 1523 -SELECT cast(1 as tinyint) / cast(1 as decimal(6, 0)) FROM t --- !query 1523 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(10,7)> --- !query 1523 output -1 - - --- !query 1524 -SELECT cast(1 as tinyint) / cast(1 as decimal(10, 0)) FROM t --- !query 1524 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> --- !query 1524 output -1 - - --- !query 1525 -SELECT cast(1 as tinyint) / cast(1 as decimal(11, 0)) FROM t --- !query 1525 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(15,12)> --- !query 1525 output -1 - - --- !query 1526 -SELECT cast(1 as tinyint) / cast(1 as decimal(20, 0)) FROM t --- !query 1526 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,21)> --- !query 1526 output -1 - - --- !query 1527 -SELECT cast(1 as tinyint) / cast(1 as decimal(21, 0)) FROM t --- !query 1527 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(25,22)> --- !query 1527 output -1 - - --- !query 1528 -SELECT cast(1 as tinyint) / cast(1 as decimal(38, 0)) FROM t --- !query 1528 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,36)> --- !query 1528 output -1 - - --- !query 1529 -SELECT cast(1 as tinyint) / cast(1 as decimal(39, 0)) FROM t --- !query 1529 schema -struct<> --- !query 1529 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1530 -SELECT cast(1 as tinyint) / cast(1 as decimal(1, 1)) FROM t --- !query 1530 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):decimal(10,6)> --- !query 1530 output -NULL - - --- !query 1531 -SELECT cast(1 as tinyint) / cast(1 as decimal(2, 1)) FROM t --- !query 1531 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):decimal(10,6)> --- !query 1531 output -1 - - --- !query 1532 -SELECT cast(1 as tinyint) / cast(1 as decimal(3, 1)) FROM t --- !query 1532 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):decimal(10,6)> --- !query 1532 output -1 - - --- !query 1533 -SELECT cast(1 as tinyint) / cast(1 as decimal(4, 1)) FROM t --- !query 1533 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):decimal(10,6)> --- !query 1533 output -1 - - --- !query 1534 -SELECT cast(1 as tinyint) / cast(1 as decimal(5, 1)) FROM t --- !query 1534 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):decimal(10,6)> --- !query 1534 output -1 - - --- !query 1535 -SELECT cast(1 as tinyint) / cast(1 as decimal(6, 1)) FROM t --- !query 1535 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(11,7)> --- !query 1535 output -1 - - --- !query 1536 -SELECT cast(1 as tinyint) / cast(1 as decimal(10, 1)) FROM t --- !query 1536 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(15,11)> --- !query 1536 output -1 - - --- !query 1537 -SELECT cast(1 as tinyint) / cast(1 as decimal(11, 1)) FROM t --- !query 1537 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(16,12)> --- !query 1537 output -1 - - --- !query 1538 -SELECT cast(1 as tinyint) / cast(1 as decimal(20, 1)) FROM t --- !query 1538 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(25,21)> --- !query 1538 output -1 - - --- !query 1539 -SELECT cast(1 as tinyint) / cast(1 as decimal(21, 1)) FROM t --- !query 1539 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(26,22)> --- !query 1539 output -1 - - --- !query 1540 -SELECT cast(1 as tinyint) / cast(1 as decimal(38, 1)) FROM t --- !query 1540 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,35)> --- !query 1540 output -1 - - --- !query 1541 -SELECT cast(1 as tinyint) / cast(1 as decimal(39, 1)) FROM t --- !query 1541 schema -struct<> --- !query 1541 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1542 -SELECT cast(1 as smallint) / cast(1 as decimal(1, 0)) FROM t --- !query 1542 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):decimal(11,6)> --- !query 1542 output -1 - - --- !query 1543 -SELECT cast(1 as smallint) / cast(1 as decimal(3, 0)) FROM t --- !query 1543 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(11,6)> --- !query 1543 output -1 - - --- !query 1544 -SELECT cast(1 as smallint) / cast(1 as decimal(4, 0)) FROM t --- !query 1544 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(11,6)> --- !query 1544 output -1 - - --- !query 1545 -SELECT cast(1 as smallint) / cast(1 as decimal(5, 0)) FROM t --- !query 1545 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) / CAST(1 AS DECIMAL(5,0))):decimal(11,6)> --- !query 1545 output -1 - - --- !query 1546 -SELECT cast(1 as smallint) / cast(1 as decimal(6, 0)) FROM t --- !query 1546 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(12,7)> --- !query 1546 output -1 - - --- !query 1547 -SELECT cast(1 as smallint) / cast(1 as decimal(10, 0)) FROM t --- !query 1547 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> --- !query 1547 output -1 - - --- !query 1548 -SELECT cast(1 as smallint) / cast(1 as decimal(11, 0)) FROM t --- !query 1548 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(17,12)> --- !query 1548 output -1 - - --- !query 1549 -SELECT cast(1 as smallint) / cast(1 as decimal(20, 0)) FROM t --- !query 1549 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,21)> --- !query 1549 output -1 - - --- !query 1550 -SELECT cast(1 as smallint) / cast(1 as decimal(21, 0)) FROM t --- !query 1550 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(27,22)> --- !query 1550 output -1 - - --- !query 1551 -SELECT cast(1 as smallint) / cast(1 as decimal(38, 0)) FROM t --- !query 1551 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,35)> --- !query 1551 output -1 - - --- !query 1552 -SELECT cast(1 as smallint) / cast(1 as decimal(39, 0)) FROM t --- !query 1552 schema -struct<> --- !query 1552 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1553 -SELECT cast(1 as smallint) / cast(1 as decimal(1, 1)) FROM t --- !query 1553 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):decimal(12,6)> --- !query 1553 output -NULL - - --- !query 1554 -SELECT cast(1 as smallint) / cast(1 as decimal(2, 1)) FROM t --- !query 1554 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):decimal(12,6)> --- !query 1554 output -1 - - --- !query 1555 -SELECT cast(1 as smallint) / cast(1 as decimal(3, 1)) FROM t --- !query 1555 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):decimal(12,6)> --- !query 1555 output -1 - - --- !query 1556 -SELECT cast(1 as smallint) / cast(1 as decimal(4, 1)) FROM t --- !query 1556 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):decimal(12,6)> --- !query 1556 output -1 - - --- !query 1557 -SELECT cast(1 as smallint) / cast(1 as decimal(5, 1)) FROM t --- !query 1557 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(12,6)> --- !query 1557 output -1 - - --- !query 1558 -SELECT cast(1 as smallint) / cast(1 as decimal(6, 1)) FROM t --- !query 1558 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(13,7)> --- !query 1558 output -1 - - --- !query 1559 -SELECT cast(1 as smallint) / cast(1 as decimal(10, 1)) FROM t --- !query 1559 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(17,11)> --- !query 1559 output -1 - - --- !query 1560 -SELECT cast(1 as smallint) / cast(1 as decimal(11, 1)) FROM t --- !query 1560 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(18,12)> --- !query 1560 output -1 - - --- !query 1561 -SELECT cast(1 as smallint) / cast(1 as decimal(20, 1)) FROM t --- !query 1561 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(27,21)> --- !query 1561 output -1 - - --- !query 1562 -SELECT cast(1 as smallint) / cast(1 as decimal(21, 1)) FROM t --- !query 1562 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(28,22)> --- !query 1562 output -1 - - --- !query 1563 -SELECT cast(1 as smallint) / cast(1 as decimal(38, 1)) FROM t --- !query 1563 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,34)> --- !query 1563 output -1 - - --- !query 1564 -SELECT cast(1 as smallint) / cast(1 as decimal(39, 1)) FROM t --- !query 1564 schema -struct<> --- !query 1564 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1565 -SELECT cast(1 as int) / cast(1 as decimal(1, 0)) FROM t --- !query 1565 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1565 output -1 - - --- !query 1566 -SELECT cast(1 as int) / cast(1 as decimal(3, 0)) FROM t --- !query 1566 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1566 output -1 - - --- !query 1567 -SELECT cast(1 as int) / cast(1 as decimal(4, 0)) FROM t --- !query 1567 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1567 output -1 - - --- !query 1568 -SELECT cast(1 as int) / cast(1 as decimal(5, 0)) FROM t --- !query 1568 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1568 output -1 - - --- !query 1569 -SELECT cast(1 as int) / cast(1 as decimal(6, 0)) FROM t --- !query 1569 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,7)> --- !query 1569 output -1 - - --- !query 1570 -SELECT cast(1 as int) / cast(1 as decimal(10, 0)) FROM t --- !query 1570 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> --- !query 1570 output -1 - - --- !query 1571 -SELECT cast(1 as int) / cast(1 as decimal(11, 0)) FROM t --- !query 1571 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,12)> --- !query 1571 output -1 - - --- !query 1572 -SELECT cast(1 as int) / cast(1 as decimal(20, 0)) FROM t --- !query 1572 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> --- !query 1572 output -1 - - --- !query 1573 -SELECT cast(1 as int) / cast(1 as decimal(21, 0)) FROM t --- !query 1573 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,22)> --- !query 1573 output -1 - - --- !query 1574 -SELECT cast(1 as int) / cast(1 as decimal(38, 0)) FROM t --- !query 1574 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,32)> --- !query 1574 output -1 - - --- !query 1575 -SELECT cast(1 as int) / cast(1 as decimal(39, 0)) FROM t --- !query 1575 schema -struct<> --- !query 1575 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1576 -SELECT cast(1 as int) / cast(1 as decimal(1, 1)) FROM t --- !query 1576 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1576 output -NULL - - --- !query 1577 -SELECT cast(1 as int) / cast(1 as decimal(2, 1)) FROM t --- !query 1577 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1577 output -1 - - --- !query 1578 -SELECT cast(1 as int) / cast(1 as decimal(3, 1)) FROM t --- !query 1578 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1578 output -1 - - --- !query 1579 -SELECT cast(1 as int) / cast(1 as decimal(4, 1)) FROM t --- !query 1579 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1579 output -1 - - --- !query 1580 -SELECT cast(1 as int) / cast(1 as decimal(5, 1)) FROM t --- !query 1580 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1580 output -1 - - --- !query 1581 -SELECT cast(1 as int) / cast(1 as decimal(6, 1)) FROM t --- !query 1581 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(18,7)> --- !query 1581 output -1 - - --- !query 1582 -SELECT cast(1 as int) / cast(1 as decimal(10, 1)) FROM t --- !query 1582 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(22,11)> --- !query 1582 output -1 - - --- !query 1583 -SELECT cast(1 as int) / cast(1 as decimal(11, 1)) FROM t --- !query 1583 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(23,12)> --- !query 1583 output -1 - - --- !query 1584 -SELECT cast(1 as int) / cast(1 as decimal(20, 1)) FROM t --- !query 1584 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(32,21)> --- !query 1584 output -1 - - --- !query 1585 -SELECT cast(1 as int) / cast(1 as decimal(21, 1)) FROM t --- !query 1585 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(33,22)> --- !query 1585 output -1 - - --- !query 1586 -SELECT cast(1 as int) / cast(1 as decimal(38, 1)) FROM t --- !query 1586 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,32)> --- !query 1586 output -1 - - --- !query 1587 -SELECT cast(1 as int) / cast(1 as decimal(39, 1)) FROM t --- !query 1587 schema -struct<> --- !query 1587 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1588 -SELECT cast(1 as bigint) / cast(1 as decimal(1, 0)) FROM t --- !query 1588 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):decimal(26,6)> --- !query 1588 output -1 - - --- !query 1589 -SELECT cast(1 as bigint) / cast(1 as decimal(3, 0)) FROM t --- !query 1589 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(26,6)> --- !query 1589 output -1 - - --- !query 1590 -SELECT cast(1 as bigint) / cast(1 as decimal(4, 0)) FROM t --- !query 1590 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):decimal(26,6)> --- !query 1590 output -1 - - --- !query 1591 -SELECT cast(1 as bigint) / cast(1 as decimal(5, 0)) FROM t --- !query 1591 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,6)> --- !query 1591 output -1 - - --- !query 1592 -SELECT cast(1 as bigint) / cast(1 as decimal(6, 0)) FROM t --- !query 1592 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):decimal(27,7)> --- !query 1592 output -1 - - --- !query 1593 -SELECT cast(1 as bigint) / cast(1 as decimal(10, 0)) FROM t --- !query 1593 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> --- !query 1593 output -1 - - --- !query 1594 -SELECT cast(1 as bigint) / cast(1 as decimal(11, 0)) FROM t --- !query 1594 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):decimal(32,12)> --- !query 1594 output -1 - - --- !query 1595 -SELECT cast(1 as bigint) / cast(1 as decimal(20, 0)) FROM t --- !query 1595 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) / CAST(1 AS DECIMAL(20,0))):decimal(38,19)> --- !query 1595 output -1 - - --- !query 1596 -SELECT cast(1 as bigint) / cast(1 as decimal(21, 0)) FROM t --- !query 1596 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(38,19)> --- !query 1596 output -1 - - --- !query 1597 -SELECT cast(1 as bigint) / cast(1 as decimal(38, 0)) FROM t --- !query 1597 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,27)> --- !query 1597 output -1 - - --- !query 1598 -SELECT cast(1 as bigint) / cast(1 as decimal(39, 0)) FROM t --- !query 1598 schema -struct<> --- !query 1598 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1599 -SELECT cast(1 as bigint) / cast(1 as decimal(1, 1)) FROM t --- !query 1599 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):decimal(27,6)> --- !query 1599 output -NULL - - --- !query 1600 -SELECT cast(1 as bigint) / cast(1 as decimal(2, 1)) FROM t --- !query 1600 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):decimal(27,6)> --- !query 1600 output -1 - - --- !query 1601 -SELECT cast(1 as bigint) / cast(1 as decimal(3, 1)) FROM t --- !query 1601 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):decimal(27,6)> --- !query 1601 output -1 - - --- !query 1602 -SELECT cast(1 as bigint) / cast(1 as decimal(4, 1)) FROM t --- !query 1602 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):decimal(27,6)> --- !query 1602 output -1 - - --- !query 1603 -SELECT cast(1 as bigint) / cast(1 as decimal(5, 1)) FROM t --- !query 1603 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):decimal(27,6)> --- !query 1603 output -1 - - --- !query 1604 -SELECT cast(1 as bigint) / cast(1 as decimal(6, 1)) FROM t --- !query 1604 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):decimal(28,7)> --- !query 1604 output -1 - - --- !query 1605 -SELECT cast(1 as bigint) / cast(1 as decimal(10, 1)) FROM t --- !query 1605 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):decimal(32,11)> --- !query 1605 output -1 - - --- !query 1606 -SELECT cast(1 as bigint) / cast(1 as decimal(11, 1)) FROM t --- !query 1606 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):decimal(33,12)> --- !query 1606 output -1 - - --- !query 1607 -SELECT cast(1 as bigint) / cast(1 as decimal(20, 1)) FROM t --- !query 1607 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(38,18)> --- !query 1607 output -1 - - --- !query 1608 -SELECT cast(1 as bigint) / cast(1 as decimal(21, 1)) FROM t --- !query 1608 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(38,19)> --- !query 1608 output -1 - - --- !query 1609 -SELECT cast(1 as bigint) / cast(1 as decimal(38, 1)) FROM t --- !query 1609 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,27)> --- !query 1609 output -1 - - --- !query 1610 -SELECT cast(1 as bigint) / cast(1 as decimal(39, 1)) FROM t --- !query 1610 schema -struct<> --- !query 1610 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1611 -SELECT cast(1 as float) / cast(1 as decimal(1, 0)) FROM t --- !query 1611 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1611 output -1.0 - - --- !query 1612 -SELECT cast(1 as float) / cast(1 as decimal(3, 0)) FROM t --- !query 1612 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1612 output -1.0 - - --- !query 1613 -SELECT cast(1 as float) / cast(1 as decimal(4, 0)) FROM t --- !query 1613 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1613 output -1.0 - - --- !query 1614 -SELECT cast(1 as float) / cast(1 as decimal(5, 0)) FROM t --- !query 1614 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1614 output -1.0 - - --- !query 1615 -SELECT cast(1 as float) / cast(1 as decimal(6, 0)) FROM t --- !query 1615 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1615 output -1.0 - - --- !query 1616 -SELECT cast(1 as float) / cast(1 as decimal(10, 0)) FROM t --- !query 1616 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1616 output -1.0 - - --- !query 1617 -SELECT cast(1 as float) / cast(1 as decimal(11, 0)) FROM t --- !query 1617 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1617 output -1.0 - - --- !query 1618 -SELECT cast(1 as float) / cast(1 as decimal(20, 0)) FROM t --- !query 1618 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1618 output -1.0 - - --- !query 1619 -SELECT cast(1 as float) / cast(1 as decimal(21, 0)) FROM t --- !query 1619 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1619 output -1.0 - - --- !query 1620 -SELECT cast(1 as float) / cast(1 as decimal(38, 0)) FROM t --- !query 1620 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) AS DOUBLE)):double> --- !query 1620 output -1.0 - - --- !query 1621 -SELECT cast(1 as float) / cast(1 as decimal(39, 0)) FROM t --- !query 1621 schema -struct<> --- !query 1621 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1622 -SELECT cast(1 as float) / cast(1 as decimal(1, 1)) FROM t --- !query 1622 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1622 output -NULL - - --- !query 1623 -SELECT cast(1 as float) / cast(1 as decimal(2, 1)) FROM t --- !query 1623 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1623 output -1.0 - - --- !query 1624 -SELECT cast(1 as float) / cast(1 as decimal(3, 1)) FROM t --- !query 1624 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1624 output -1.0 - - --- !query 1625 -SELECT cast(1 as float) / cast(1 as decimal(4, 1)) FROM t --- !query 1625 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1625 output -1.0 - - --- !query 1626 -SELECT cast(1 as float) / cast(1 as decimal(5, 1)) FROM t --- !query 1626 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1626 output -1.0 - - --- !query 1627 -SELECT cast(1 as float) / cast(1 as decimal(6, 1)) FROM t --- !query 1627 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1627 output -1.0 - - --- !query 1628 -SELECT cast(1 as float) / cast(1 as decimal(10, 1)) FROM t --- !query 1628 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1628 output -1.0 - - --- !query 1629 -SELECT cast(1 as float) / cast(1 as decimal(11, 1)) FROM t --- !query 1629 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1629 output -1.0 - - --- !query 1630 -SELECT cast(1 as float) / cast(1 as decimal(20, 1)) FROM t --- !query 1630 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1630 output -1.0 - - --- !query 1631 -SELECT cast(1 as float) / cast(1 as decimal(21, 1)) FROM t --- !query 1631 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1631 output -1.0 - - --- !query 1632 -SELECT cast(1 as float) / cast(1 as decimal(38, 1)) FROM t --- !query 1632 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) / CAST(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) AS DOUBLE)):double> --- !query 1632 output -1.0 - - --- !query 1633 -SELECT cast(1 as float) / cast(1 as decimal(39, 1)) FROM t --- !query 1633 schema -struct<> --- !query 1633 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1634 -SELECT cast(1 as double) / cast(1 as decimal(1, 0)) FROM t --- !query 1634 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> --- !query 1634 output -1.0 - - --- !query 1635 -SELECT cast(1 as double) / cast(1 as decimal(3, 0)) FROM t --- !query 1635 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> --- !query 1635 output -1.0 - - --- !query 1636 -SELECT cast(1 as double) / cast(1 as decimal(4, 0)) FROM t --- !query 1636 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> --- !query 1636 output -1.0 - - --- !query 1637 -SELECT cast(1 as double) / cast(1 as decimal(5, 0)) FROM t --- !query 1637 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> --- !query 1637 output -1.0 - - --- !query 1638 -SELECT cast(1 as double) / cast(1 as decimal(6, 0)) FROM t --- !query 1638 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> --- !query 1638 output -1.0 - - --- !query 1639 -SELECT cast(1 as double) / cast(1 as decimal(10, 0)) FROM t --- !query 1639 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> --- !query 1639 output -1.0 - - --- !query 1640 -SELECT cast(1 as double) / cast(1 as decimal(11, 0)) FROM t --- !query 1640 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> --- !query 1640 output -1.0 - - --- !query 1641 -SELECT cast(1 as double) / cast(1 as decimal(20, 0)) FROM t --- !query 1641 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> --- !query 1641 output -1.0 - - --- !query 1642 -SELECT cast(1 as double) / cast(1 as decimal(21, 0)) FROM t --- !query 1642 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> --- !query 1642 output -1.0 - - --- !query 1643 -SELECT cast(1 as double) / cast(1 as decimal(38, 0)) FROM t --- !query 1643 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> --- !query 1643 output -1.0 - - --- !query 1644 -SELECT cast(1 as double) / cast(1 as decimal(39, 0)) FROM t --- !query 1644 schema -struct<> --- !query 1644 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1645 -SELECT cast(1 as double) / cast(1 as decimal(1, 1)) FROM t --- !query 1645 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> --- !query 1645 output -NULL - - --- !query 1646 -SELECT cast(1 as double) / cast(1 as decimal(2, 1)) FROM t --- !query 1646 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> --- !query 1646 output -1.0 - - --- !query 1647 -SELECT cast(1 as double) / cast(1 as decimal(3, 1)) FROM t --- !query 1647 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> --- !query 1647 output -1.0 - - --- !query 1648 -SELECT cast(1 as double) / cast(1 as decimal(4, 1)) FROM t --- !query 1648 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> --- !query 1648 output -1.0 - - --- !query 1649 -SELECT cast(1 as double) / cast(1 as decimal(5, 1)) FROM t --- !query 1649 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> --- !query 1649 output -1.0 - - --- !query 1650 -SELECT cast(1 as double) / cast(1 as decimal(6, 1)) FROM t --- !query 1650 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> --- !query 1650 output -1.0 - - --- !query 1651 -SELECT cast(1 as double) / cast(1 as decimal(10, 1)) FROM t --- !query 1651 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> --- !query 1651 output -1.0 - - --- !query 1652 -SELECT cast(1 as double) / cast(1 as decimal(11, 1)) FROM t --- !query 1652 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> --- !query 1652 output -1.0 - - --- !query 1653 -SELECT cast(1 as double) / cast(1 as decimal(20, 1)) FROM t --- !query 1653 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> --- !query 1653 output -1.0 - - --- !query 1654 -SELECT cast(1 as double) / cast(1 as decimal(21, 1)) FROM t --- !query 1654 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> --- !query 1654 output -1.0 - - --- !query 1655 -SELECT cast(1 as double) / cast(1 as decimal(38, 1)) FROM t --- !query 1655 schema -struct<(CAST(1 AS DOUBLE) / CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> --- !query 1655 output -1.0 - - --- !query 1656 -SELECT cast(1 as double) / cast(1 as decimal(39, 1)) FROM t --- !query 1656 schema -struct<> --- !query 1656 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1657 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 0)) FROM t --- !query 1657 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1657 output -1 - - --- !query 1658 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 0)) FROM t --- !query 1658 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1658 output -1 - - --- !query 1659 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 0)) FROM t --- !query 1659 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1659 output -1 - - --- !query 1660 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 0)) FROM t --- !query 1660 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1660 output -1 - - --- !query 1661 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 0)) FROM t --- !query 1661 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(17,7)> --- !query 1661 output -1 - - --- !query 1662 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1662 schema -struct<(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> --- !query 1662 output -1 - - --- !query 1663 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 0)) FROM t --- !query 1663 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(22,12)> --- !query 1663 output -1 - - --- !query 1664 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 0)) FROM t --- !query 1664 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> --- !query 1664 output -1 - - --- !query 1665 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 0)) FROM t --- !query 1665 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(32,22)> --- !query 1665 output -1 - - --- !query 1666 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 0)) FROM t --- !query 1666 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(38,32)> --- !query 1666 output -1 - - --- !query 1667 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 0)) FROM t --- !query 1667 schema -struct<> --- !query 1667 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1668 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(1, 1)) FROM t --- !query 1668 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1668 output -NULL - - --- !query 1669 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(2, 1)) FROM t --- !query 1669 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1669 output -1 - - --- !query 1670 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 1)) FROM t --- !query 1670 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1670 output -1 - - --- !query 1671 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(4, 1)) FROM t --- !query 1671 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1671 output -1 - - --- !query 1672 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 1)) FROM t --- !query 1672 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(17,6)> --- !query 1672 output -1 - - --- !query 1673 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(6, 1)) FROM t --- !query 1673 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(18,7)> --- !query 1673 output -1 - - --- !query 1674 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 1)) FROM t --- !query 1674 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(22,11)> --- !query 1674 output -1 - - --- !query 1675 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(11, 1)) FROM t --- !query 1675 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(23,12)> --- !query 1675 output -1 - - --- !query 1676 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 1)) FROM t --- !query 1676 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(32,21)> --- !query 1676 output -1 - - --- !query 1677 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(21, 1)) FROM t --- !query 1677 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(33,22)> --- !query 1677 output -1 - - --- !query 1678 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(38, 1)) FROM t --- !query 1678 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(38,32)> --- !query 1678 output -1 - - --- !query 1679 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 1)) FROM t --- !query 1679 schema -struct<> --- !query 1679 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1680 -SELECT cast('1' as binary) / cast(1 as decimal(1, 0)) FROM t --- !query 1680 schema -struct<> --- !query 1680 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 1681 -SELECT cast('1' as binary) / cast(1 as decimal(3, 0)) FROM t --- !query 1681 schema -struct<> --- !query 1681 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 1682 -SELECT cast('1' as binary) / cast(1 as decimal(4, 0)) FROM t --- !query 1682 schema -struct<> --- !query 1682 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 1683 -SELECT cast('1' as binary) / cast(1 as decimal(5, 0)) FROM t --- !query 1683 schema -struct<> --- !query 1683 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 1684 -SELECT cast('1' as binary) / cast(1 as decimal(6, 0)) FROM t --- !query 1684 schema -struct<> --- !query 1684 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 1685 -SELECT cast('1' as binary) / cast(1 as decimal(10, 0)) FROM t --- !query 1685 schema -struct<> --- !query 1685 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 1686 -SELECT cast('1' as binary) / cast(1 as decimal(11, 0)) FROM t --- !query 1686 schema -struct<> --- !query 1686 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 1687 -SELECT cast('1' as binary) / cast(1 as decimal(20, 0)) FROM t --- !query 1687 schema -struct<> --- !query 1687 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 1688 -SELECT cast('1' as binary) / cast(1 as decimal(21, 0)) FROM t --- !query 1688 schema -struct<> --- !query 1688 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 1689 -SELECT cast('1' as binary) / cast(1 as decimal(38, 0)) FROM t --- !query 1689 schema -struct<> --- !query 1689 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 1690 -SELECT cast('1' as binary) / cast(1 as decimal(39, 0)) FROM t --- !query 1690 schema -struct<> --- !query 1690 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1691 -SELECT cast('1' as binary) / cast(1 as decimal(1, 1)) FROM t --- !query 1691 schema -struct<> --- !query 1691 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 1692 -SELECT cast('1' as binary) / cast(1 as decimal(2, 1)) FROM t --- !query 1692 schema -struct<> --- !query 1692 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 1693 -SELECT cast('1' as binary) / cast(1 as decimal(3, 1)) FROM t --- !query 1693 schema -struct<> --- !query 1693 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 1694 -SELECT cast('1' as binary) / cast(1 as decimal(4, 1)) FROM t --- !query 1694 schema -struct<> --- !query 1694 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 1695 -SELECT cast('1' as binary) / cast(1 as decimal(5, 1)) FROM t --- !query 1695 schema -struct<> --- !query 1695 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 1696 -SELECT cast('1' as binary) / cast(1 as decimal(6, 1)) FROM t --- !query 1696 schema -struct<> --- !query 1696 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 1697 -SELECT cast('1' as binary) / cast(1 as decimal(10, 1)) FROM t --- !query 1697 schema -struct<> --- !query 1697 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 1698 -SELECT cast('1' as binary) / cast(1 as decimal(11, 1)) FROM t --- !query 1698 schema -struct<> --- !query 1698 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 1699 -SELECT cast('1' as binary) / cast(1 as decimal(20, 1)) FROM t --- !query 1699 schema -struct<> --- !query 1699 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 1700 -SELECT cast('1' as binary) / cast(1 as decimal(21, 1)) FROM t --- !query 1700 schema -struct<> --- !query 1700 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 1701 -SELECT cast('1' as binary) / cast(1 as decimal(38, 1)) FROM t --- !query 1701 schema -struct<> --- !query 1701 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) / CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 1702 -SELECT cast('1' as binary) / cast(1 as decimal(39, 1)) FROM t --- !query 1702 schema -struct<> --- !query 1702 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1703 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 0)) FROM t --- !query 1703 schema -struct<> --- !query 1703 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 1704 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 0)) FROM t --- !query 1704 schema -struct<> --- !query 1704 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 1705 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 0)) FROM t --- !query 1705 schema -struct<> --- !query 1705 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 1706 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 0)) FROM t --- !query 1706 schema -struct<> --- !query 1706 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 1707 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 0)) FROM t --- !query 1707 schema -struct<> --- !query 1707 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 1708 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 0)) FROM t --- !query 1708 schema -struct<> --- !query 1708 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 1709 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 0)) FROM t --- !query 1709 schema -struct<> --- !query 1709 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 1710 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 0)) FROM t --- !query 1710 schema -struct<> --- !query 1710 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 1711 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 0)) FROM t --- !query 1711 schema -struct<> --- !query 1711 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 1712 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 0)) FROM t --- !query 1712 schema -struct<> --- !query 1712 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 1713 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 0)) FROM t --- !query 1713 schema -struct<> --- !query 1713 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1714 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(1, 1)) FROM t --- !query 1714 schema -struct<> --- !query 1714 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 1715 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(2, 1)) FROM t --- !query 1715 schema -struct<> --- !query 1715 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 1716 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 1)) FROM t --- !query 1716 schema -struct<> --- !query 1716 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 1717 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(4, 1)) FROM t --- !query 1717 schema -struct<> --- !query 1717 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 1718 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 1)) FROM t --- !query 1718 schema -struct<> --- !query 1718 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 1719 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(6, 1)) FROM t --- !query 1719 schema -struct<> --- !query 1719 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 1720 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 1)) FROM t --- !query 1720 schema -struct<> --- !query 1720 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 1721 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(11, 1)) FROM t --- !query 1721 schema -struct<> --- !query 1721 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 1722 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 1)) FROM t --- !query 1722 schema -struct<> --- !query 1722 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 1723 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(21, 1)) FROM t --- !query 1723 schema -struct<> --- !query 1723 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 1724 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(38, 1)) FROM t --- !query 1724 schema -struct<> --- !query 1724 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00.0' AS TIMESTAMP) / CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 1725 -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 1)) FROM t --- !query 1725 schema -struct<> --- !query 1725 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1726 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 0)) FROM t --- !query 1726 schema -struct<> --- !query 1726 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 1727 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 0)) FROM t --- !query 1727 schema -struct<> --- !query 1727 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 1728 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 0)) FROM t --- !query 1728 schema -struct<> --- !query 1728 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 1729 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 0)) FROM t --- !query 1729 schema -struct<> --- !query 1729 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 1730 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 0)) FROM t --- !query 1730 schema -struct<> --- !query 1730 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 1731 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 0)) FROM t --- !query 1731 schema -struct<> --- !query 1731 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 1732 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 0)) FROM t --- !query 1732 schema -struct<> --- !query 1732 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 1733 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 0)) FROM t --- !query 1733 schema -struct<> --- !query 1733 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 1734 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 0)) FROM t --- !query 1734 schema -struct<> --- !query 1734 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 1735 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 0)) FROM t --- !query 1735 schema -struct<> --- !query 1735 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 1736 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 0)) FROM t --- !query 1736 schema -struct<> --- !query 1736 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 0)) FROM t - - --- !query 1737 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(1, 1)) FROM t --- !query 1737 schema -struct<> --- !query 1737 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 1738 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(2, 1)) FROM t --- !query 1738 schema -struct<> --- !query 1738 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 1739 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 1)) FROM t --- !query 1739 schema -struct<> --- !query 1739 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 1740 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(4, 1)) FROM t --- !query 1740 schema -struct<> --- !query 1740 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 1741 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 1)) FROM t --- !query 1741 schema -struct<> --- !query 1741 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 1742 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(6, 1)) FROM t --- !query 1742 schema -struct<> --- !query 1742 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 1743 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 1)) FROM t --- !query 1743 schema -struct<> --- !query 1743 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 1744 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(11, 1)) FROM t --- !query 1744 schema -struct<> --- !query 1744 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 1745 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 1)) FROM t --- !query 1745 schema -struct<> --- !query 1745 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 1746 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(21, 1)) FROM t --- !query 1746 schema -struct<> --- !query 1746 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 1747 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(38, 1)) FROM t --- !query 1747 schema -struct<> --- !query 1747 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017/12/11 09:30:00' AS DATE) / CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 1748 -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 1)) FROM t --- !query 1748 schema -struct<> --- !query 1748 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(39, 1)) FROM t - - --- !query 1749 -SELECT cast(1 as decimal(1, 0)) / cast(1 as tinyint) FROM t --- !query 1749 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):decimal(7,6)> --- !query 1749 output -1 - - --- !query 1750 -SELECT cast(1 as decimal(3, 0)) / cast(1 as tinyint) FROM t --- !query 1750 schema -struct<(CAST(1 AS DECIMAL(3,0)) / CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(9,6)> --- !query 1750 output -1 - - --- !query 1751 -SELECT cast(1 as decimal(4, 0)) / cast(1 as tinyint) FROM t --- !query 1751 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(10,6)> --- !query 1751 output -1 - - --- !query 1752 -SELECT cast(1 as decimal(5, 0)) / cast(1 as tinyint) FROM t --- !query 1752 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(11,6)> --- !query 1752 output -1 - - --- !query 1753 -SELECT cast(1 as decimal(6, 0)) / cast(1 as tinyint) FROM t --- !query 1753 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(12,6)> --- !query 1753 output -1 - - --- !query 1754 -SELECT cast(1 as decimal(10, 0)) / cast(1 as tinyint) FROM t --- !query 1754 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1754 output -1 - - --- !query 1755 -SELECT cast(1 as decimal(11, 0)) / cast(1 as tinyint) FROM t --- !query 1755 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(17,6)> --- !query 1755 output -1 - - --- !query 1756 -SELECT cast(1 as decimal(20, 0)) / cast(1 as tinyint) FROM t --- !query 1756 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(26,6)> --- !query 1756 output -1 - - --- !query 1757 -SELECT cast(1 as decimal(21, 0)) / cast(1 as tinyint) FROM t --- !query 1757 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(27,6)> --- !query 1757 output -1 - - --- !query 1758 -SELECT cast(1 as decimal(38, 0)) / cast(1 as tinyint) FROM t --- !query 1758 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(38,2)> --- !query 1758 output -1 - - --- !query 1759 -SELECT cast(1 as decimal(39, 0)) / cast(1 as tinyint) FROM t --- !query 1759 schema -struct<> --- !query 1759 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as tinyint) FROM t - - --- !query 1760 -SELECT cast(1 as decimal(1, 1)) / cast(1 as tinyint) FROM t --- !query 1760 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(6,6)> --- !query 1760 output -NULL - - --- !query 1761 -SELECT cast(1 as decimal(2, 1)) / cast(1 as tinyint) FROM t --- !query 1761 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(7,6)> --- !query 1761 output -1 - - --- !query 1762 -SELECT cast(1 as decimal(3, 1)) / cast(1 as tinyint) FROM t --- !query 1762 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(8,6)> --- !query 1762 output -1 - - --- !query 1763 -SELECT cast(1 as decimal(4, 1)) / cast(1 as tinyint) FROM t --- !query 1763 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(9,6)> --- !query 1763 output -1 - - --- !query 1764 -SELECT cast(1 as decimal(5, 1)) / cast(1 as tinyint) FROM t --- !query 1764 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(10,6)> --- !query 1764 output -1 - - --- !query 1765 -SELECT cast(1 as decimal(6, 1)) / cast(1 as tinyint) FROM t --- !query 1765 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(11,6)> --- !query 1765 output -1 - - --- !query 1766 -SELECT cast(1 as decimal(10, 1)) / cast(1 as tinyint) FROM t --- !query 1766 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):decimal(15,6)> --- !query 1766 output -1 - - --- !query 1767 -SELECT cast(1 as decimal(11, 1)) / cast(1 as tinyint) FROM t --- !query 1767 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(16,6)> --- !query 1767 output -1 - - --- !query 1768 -SELECT cast(1 as decimal(20, 1)) / cast(1 as tinyint) FROM t --- !query 1768 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):decimal(25,6)> --- !query 1768 output -1 - - --- !query 1769 -SELECT cast(1 as decimal(21, 1)) / cast(1 as tinyint) FROM t --- !query 1769 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(26,6)> --- !query 1769 output -1 - - --- !query 1770 -SELECT cast(1 as decimal(38, 1)) / cast(1 as tinyint) FROM t --- !query 1770 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(38,3)> --- !query 1770 output -1 - - --- !query 1771 -SELECT cast(1 as decimal(39, 1)) / cast(1 as tinyint) FROM t --- !query 1771 schema -struct<> --- !query 1771 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as tinyint) FROM t - - --- !query 1772 -SELECT cast(1 as decimal(1, 0)) / cast(1 as smallint) FROM t --- !query 1772 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(7,6)> --- !query 1772 output -1 - - --- !query 1773 -SELECT cast(1 as decimal(3, 0)) / cast(1 as smallint) FROM t --- !query 1773 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(9,6)> --- !query 1773 output -1 - - --- !query 1774 -SELECT cast(1 as decimal(4, 0)) / cast(1 as smallint) FROM t --- !query 1774 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(10,6)> --- !query 1774 output -1 - - --- !query 1775 -SELECT cast(1 as decimal(5, 0)) / cast(1 as smallint) FROM t --- !query 1775 schema -struct<(CAST(1 AS DECIMAL(5,0)) / CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(11,6)> --- !query 1775 output -1 - - --- !query 1776 -SELECT cast(1 as decimal(6, 0)) / cast(1 as smallint) FROM t --- !query 1776 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(12,6)> --- !query 1776 output -1 - - --- !query 1777 -SELECT cast(1 as decimal(10, 0)) / cast(1 as smallint) FROM t --- !query 1777 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(16,6)> --- !query 1777 output -1 - - --- !query 1778 -SELECT cast(1 as decimal(11, 0)) / cast(1 as smallint) FROM t --- !query 1778 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(17,6)> --- !query 1778 output -1 - - --- !query 1779 -SELECT cast(1 as decimal(20, 0)) / cast(1 as smallint) FROM t --- !query 1779 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(26,6)> --- !query 1779 output -1 - - --- !query 1780 -SELECT cast(1 as decimal(21, 0)) / cast(1 as smallint) FROM t --- !query 1780 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(27,6)> --- !query 1780 output -1 - - --- !query 1781 -SELECT cast(1 as decimal(38, 0)) / cast(1 as smallint) FROM t --- !query 1781 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(38,2)> --- !query 1781 output -1 - - --- !query 1782 -SELECT cast(1 as decimal(39, 0)) / cast(1 as smallint) FROM t --- !query 1782 schema -struct<> --- !query 1782 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as smallint) FROM t - - --- !query 1783 -SELECT cast(1 as decimal(1, 1)) / cast(1 as smallint) FROM t --- !query 1783 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(7,7)> --- !query 1783 output -NULL - - --- !query 1784 -SELECT cast(1 as decimal(2, 1)) / cast(1 as smallint) FROM t --- !query 1784 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(8,7)> --- !query 1784 output -1 - - --- !query 1785 -SELECT cast(1 as decimal(3, 1)) / cast(1 as smallint) FROM t --- !query 1785 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(9,7)> --- !query 1785 output -1 - - --- !query 1786 -SELECT cast(1 as decimal(4, 1)) / cast(1 as smallint) FROM t --- !query 1786 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(10,7)> --- !query 1786 output -1 - - --- !query 1787 -SELECT cast(1 as decimal(5, 1)) / cast(1 as smallint) FROM t --- !query 1787 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(11,7)> --- !query 1787 output -1 - - --- !query 1788 -SELECT cast(1 as decimal(6, 1)) / cast(1 as smallint) FROM t --- !query 1788 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(12,7)> --- !query 1788 output -1 - - --- !query 1789 -SELECT cast(1 as decimal(10, 1)) / cast(1 as smallint) FROM t --- !query 1789 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):decimal(16,7)> --- !query 1789 output -1 - - --- !query 1790 -SELECT cast(1 as decimal(11, 1)) / cast(1 as smallint) FROM t --- !query 1790 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(17,7)> --- !query 1790 output -1 - - --- !query 1791 -SELECT cast(1 as decimal(20, 1)) / cast(1 as smallint) FROM t --- !query 1791 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):decimal(26,7)> --- !query 1791 output -1 - - --- !query 1792 -SELECT cast(1 as decimal(21, 1)) / cast(1 as smallint) FROM t --- !query 1792 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(27,7)> --- !query 1792 output -1 - - --- !query 1793 -SELECT cast(1 as decimal(38, 1)) / cast(1 as smallint) FROM t --- !query 1793 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(38,3)> --- !query 1793 output -1 - - --- !query 1794 -SELECT cast(1 as decimal(39, 1)) / cast(1 as smallint) FROM t --- !query 1794 schema -struct<> --- !query 1794 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as smallint) FROM t - - --- !query 1795 -SELECT cast(1 as decimal(1, 0)) / cast(1 as int) FROM t --- !query 1795 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,11)> --- !query 1795 output -1 - - --- !query 1796 -SELECT cast(1 as decimal(3, 0)) / cast(1 as int) FROM t --- !query 1796 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> --- !query 1796 output -1 - - --- !query 1797 -SELECT cast(1 as decimal(4, 0)) / cast(1 as int) FROM t --- !query 1797 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,11)> --- !query 1797 output -1 - - --- !query 1798 -SELECT cast(1 as decimal(5, 0)) / cast(1 as int) FROM t --- !query 1798 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> --- !query 1798 output -1 - - --- !query 1799 -SELECT cast(1 as decimal(6, 0)) / cast(1 as int) FROM t --- !query 1799 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,11)> --- !query 1799 output -1 - - --- !query 1800 -SELECT cast(1 as decimal(10, 0)) / cast(1 as int) FROM t --- !query 1800 schema -struct<(CAST(1 AS DECIMAL(10,0)) / CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(21,11)> --- !query 1800 output -1 - - --- !query 1801 -SELECT cast(1 as decimal(11, 0)) / cast(1 as int) FROM t --- !query 1801 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,11)> --- !query 1801 output -1 - - --- !query 1802 -SELECT cast(1 as decimal(20, 0)) / cast(1 as int) FROM t --- !query 1802 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> --- !query 1802 output -1 - - --- !query 1803 -SELECT cast(1 as decimal(21, 0)) / cast(1 as int) FROM t --- !query 1803 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,11)> --- !query 1803 output -1 - - --- !query 1804 -SELECT cast(1 as decimal(38, 0)) / cast(1 as int) FROM t --- !query 1804 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,5)> --- !query 1804 output -1 - - --- !query 1805 -SELECT cast(1 as decimal(39, 0)) / cast(1 as int) FROM t --- !query 1805 schema -struct<> --- !query 1805 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as int) FROM t - - --- !query 1806 -SELECT cast(1 as decimal(1, 1)) / cast(1 as int) FROM t --- !query 1806 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,12)> --- !query 1806 output -NULL - - --- !query 1807 -SELECT cast(1 as decimal(2, 1)) / cast(1 as int) FROM t --- !query 1807 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,12)> --- !query 1807 output -1 - - --- !query 1808 -SELECT cast(1 as decimal(3, 1)) / cast(1 as int) FROM t --- !query 1808 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,12)> --- !query 1808 output -1 - - --- !query 1809 -SELECT cast(1 as decimal(4, 1)) / cast(1 as int) FROM t --- !query 1809 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,12)> --- !query 1809 output -1 - - --- !query 1810 -SELECT cast(1 as decimal(5, 1)) / cast(1 as int) FROM t --- !query 1810 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,12)> --- !query 1810 output -1 - - --- !query 1811 -SELECT cast(1 as decimal(6, 1)) / cast(1 as int) FROM t --- !query 1811 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,12)> --- !query 1811 output -1 - - --- !query 1812 -SELECT cast(1 as decimal(10, 1)) / cast(1 as int) FROM t --- !query 1812 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,12)> --- !query 1812 output -1 - - --- !query 1813 -SELECT cast(1 as decimal(11, 1)) / cast(1 as int) FROM t --- !query 1813 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,12)> --- !query 1813 output -1 - - --- !query 1814 -SELECT cast(1 as decimal(20, 1)) / cast(1 as int) FROM t --- !query 1814 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,12)> --- !query 1814 output -1 - - --- !query 1815 -SELECT cast(1 as decimal(21, 1)) / cast(1 as int) FROM t --- !query 1815 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,12)> --- !query 1815 output -1 - - --- !query 1816 -SELECT cast(1 as decimal(38, 1)) / cast(1 as int) FROM t --- !query 1816 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,6)> --- !query 1816 output -1 - - --- !query 1817 -SELECT cast(1 as decimal(39, 1)) / cast(1 as int) FROM t --- !query 1817 schema -struct<> --- !query 1817 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as int) FROM t - - --- !query 1818 -SELECT cast(1 as decimal(1, 0)) / cast(1 as bigint) FROM t --- !query 1818 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(22,21)> --- !query 1818 output -1 - - --- !query 1819 -SELECT cast(1 as decimal(3, 0)) / cast(1 as bigint) FROM t --- !query 1819 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(24,21)> --- !query 1819 output -1 - - --- !query 1820 -SELECT cast(1 as decimal(4, 0)) / cast(1 as bigint) FROM t --- !query 1820 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(25,21)> --- !query 1820 output -1 - - --- !query 1821 -SELECT cast(1 as decimal(5, 0)) / cast(1 as bigint) FROM t --- !query 1821 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(26,21)> --- !query 1821 output -1 - - --- !query 1822 -SELECT cast(1 as decimal(6, 0)) / cast(1 as bigint) FROM t --- !query 1822 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(27,21)> --- !query 1822 output -1 - - --- !query 1823 -SELECT cast(1 as decimal(10, 0)) / cast(1 as bigint) FROM t --- !query 1823 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(31,21)> --- !query 1823 output -1 - - --- !query 1824 -SELECT cast(1 as decimal(11, 0)) / cast(1 as bigint) FROM t --- !query 1824 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(32,21)> --- !query 1824 output -1 - - --- !query 1825 -SELECT cast(1 as decimal(20, 0)) / cast(1 as bigint) FROM t --- !query 1825 schema -struct<(CAST(1 AS DECIMAL(20,0)) / CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(38,19)> --- !query 1825 output -1 - - --- !query 1826 -SELECT cast(1 as decimal(21, 0)) / cast(1 as bigint) FROM t --- !query 1826 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(38,18)> --- !query 1826 output -1 - - --- !query 1827 -SELECT cast(1 as decimal(38, 0)) / cast(1 as bigint) FROM t --- !query 1827 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(38,10)> --- !query 1827 output -1 - - --- !query 1828 -SELECT cast(1 as decimal(39, 0)) / cast(1 as bigint) FROM t --- !query 1828 schema -struct<> --- !query 1828 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as bigint) FROM t - - --- !query 1829 -SELECT cast(1 as decimal(1, 1)) / cast(1 as bigint) FROM t --- !query 1829 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(22,22)> --- !query 1829 output -NULL - - --- !query 1830 -SELECT cast(1 as decimal(2, 1)) / cast(1 as bigint) FROM t --- !query 1830 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(23,22)> --- !query 1830 output -1 - - --- !query 1831 -SELECT cast(1 as decimal(3, 1)) / cast(1 as bigint) FROM t --- !query 1831 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(24,22)> --- !query 1831 output -1 - - --- !query 1832 -SELECT cast(1 as decimal(4, 1)) / cast(1 as bigint) FROM t --- !query 1832 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(25,22)> --- !query 1832 output -1 - - --- !query 1833 -SELECT cast(1 as decimal(5, 1)) / cast(1 as bigint) FROM t --- !query 1833 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(26,22)> --- !query 1833 output -1 - - --- !query 1834 -SELECT cast(1 as decimal(6, 1)) / cast(1 as bigint) FROM t --- !query 1834 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(27,22)> --- !query 1834 output -1 - - --- !query 1835 -SELECT cast(1 as decimal(10, 1)) / cast(1 as bigint) FROM t --- !query 1835 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(31,22)> --- !query 1835 output -1 - - --- !query 1836 -SELECT cast(1 as decimal(11, 1)) / cast(1 as bigint) FROM t --- !query 1836 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(32,22)> --- !query 1836 output -1 - - --- !query 1837 -SELECT cast(1 as decimal(20, 1)) / cast(1 as bigint) FROM t --- !query 1837 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,20)> --- !query 1837 output -1 - - --- !query 1838 -SELECT cast(1 as decimal(21, 1)) / cast(1 as bigint) FROM t --- !query 1838 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(38,19)> --- !query 1838 output -1 - - --- !query 1839 -SELECT cast(1 as decimal(38, 1)) / cast(1 as bigint) FROM t --- !query 1839 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(38,11)> --- !query 1839 output -1 - - --- !query 1840 -SELECT cast(1 as decimal(39, 1)) / cast(1 as bigint) FROM t --- !query 1840 schema -struct<> --- !query 1840 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as bigint) FROM t - - --- !query 1841 -SELECT cast(1 as decimal(1, 0)) / cast(1 as float) FROM t --- !query 1841 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1841 output -1.0 - - --- !query 1842 -SELECT cast(1 as decimal(3, 0)) / cast(1 as float) FROM t --- !query 1842 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1842 output -1.0 - - --- !query 1843 -SELECT cast(1 as decimal(4, 0)) / cast(1 as float) FROM t --- !query 1843 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1843 output -1.0 - - --- !query 1844 -SELECT cast(1 as decimal(5, 0)) / cast(1 as float) FROM t --- !query 1844 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1844 output -1.0 - - --- !query 1845 -SELECT cast(1 as decimal(6, 0)) / cast(1 as float) FROM t --- !query 1845 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1845 output -1.0 - - --- !query 1846 -SELECT cast(1 as decimal(10, 0)) / cast(1 as float) FROM t --- !query 1846 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1846 output -1.0 - - --- !query 1847 -SELECT cast(1 as decimal(11, 0)) / cast(1 as float) FROM t --- !query 1847 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1847 output -1.0 - - --- !query 1848 -SELECT cast(1 as decimal(20, 0)) / cast(1 as float) FROM t --- !query 1848 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1848 output -1.0 - - --- !query 1849 -SELECT cast(1 as decimal(21, 0)) / cast(1 as float) FROM t --- !query 1849 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1849 output -1.0 - - --- !query 1850 -SELECT cast(1 as decimal(38, 0)) / cast(1 as float) FROM t --- !query 1850 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1850 output -1.0 - - --- !query 1851 -SELECT cast(1 as decimal(39, 0)) / cast(1 as float) FROM t --- !query 1851 schema -struct<> --- !query 1851 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as float) FROM t - - --- !query 1852 -SELECT cast(1 as decimal(1, 1)) / cast(1 as float) FROM t --- !query 1852 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1852 output -NULL - - --- !query 1853 -SELECT cast(1 as decimal(2, 1)) / cast(1 as float) FROM t --- !query 1853 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1853 output -1.0 - - --- !query 1854 -SELECT cast(1 as decimal(3, 1)) / cast(1 as float) FROM t --- !query 1854 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1854 output -1.0 - - --- !query 1855 -SELECT cast(1 as decimal(4, 1)) / cast(1 as float) FROM t --- !query 1855 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1855 output -1.0 - - --- !query 1856 -SELECT cast(1 as decimal(5, 1)) / cast(1 as float) FROM t --- !query 1856 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1856 output -1.0 - - --- !query 1857 -SELECT cast(1 as decimal(6, 1)) / cast(1 as float) FROM t --- !query 1857 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1857 output -1.0 - - --- !query 1858 -SELECT cast(1 as decimal(10, 1)) / cast(1 as float) FROM t --- !query 1858 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1858 output -1.0 - - --- !query 1859 -SELECT cast(1 as decimal(11, 1)) / cast(1 as float) FROM t --- !query 1859 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1859 output -1.0 - - --- !query 1860 -SELECT cast(1 as decimal(20, 1)) / cast(1 as float) FROM t --- !query 1860 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1860 output -1.0 - - --- !query 1861 -SELECT cast(1 as decimal(21, 1)) / cast(1 as float) FROM t --- !query 1861 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1861 output -1.0 - - --- !query 1862 -SELECT cast(1 as decimal(38, 1)) / cast(1 as float) FROM t --- !query 1862 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) / CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 1862 output -1.0 - - --- !query 1863 -SELECT cast(1 as decimal(39, 1)) / cast(1 as float) FROM t --- !query 1863 schema -struct<> --- !query 1863 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as float) FROM t - - --- !query 1864 -SELECT cast(1 as decimal(1, 0)) / cast(1 as double) FROM t --- !query 1864 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1864 output -1.0 - - --- !query 1865 -SELECT cast(1 as decimal(3, 0)) / cast(1 as double) FROM t --- !query 1865 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1865 output -1.0 - - --- !query 1866 -SELECT cast(1 as decimal(4, 0)) / cast(1 as double) FROM t --- !query 1866 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1866 output -1.0 - - --- !query 1867 -SELECT cast(1 as decimal(5, 0)) / cast(1 as double) FROM t --- !query 1867 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1867 output -1.0 - - --- !query 1868 -SELECT cast(1 as decimal(6, 0)) / cast(1 as double) FROM t --- !query 1868 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1868 output -1.0 - - --- !query 1869 -SELECT cast(1 as decimal(10, 0)) / cast(1 as double) FROM t --- !query 1869 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1869 output -1.0 - - --- !query 1870 -SELECT cast(1 as decimal(11, 0)) / cast(1 as double) FROM t --- !query 1870 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1870 output -1.0 - - --- !query 1871 -SELECT cast(1 as decimal(20, 0)) / cast(1 as double) FROM t --- !query 1871 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1871 output -1.0 - - --- !query 1872 -SELECT cast(1 as decimal(21, 0)) / cast(1 as double) FROM t --- !query 1872 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1872 output -1.0 - - --- !query 1873 -SELECT cast(1 as decimal(38, 0)) / cast(1 as double) FROM t --- !query 1873 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1873 output -1.0 - - --- !query 1874 -SELECT cast(1 as decimal(39, 0)) / cast(1 as double) FROM t --- !query 1874 schema -struct<> --- !query 1874 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as double) FROM t - - --- !query 1875 -SELECT cast(1 as decimal(1, 1)) / cast(1 as double) FROM t --- !query 1875 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1875 output -NULL - - --- !query 1876 -SELECT cast(1 as decimal(2, 1)) / cast(1 as double) FROM t --- !query 1876 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1876 output -1.0 - - --- !query 1877 -SELECT cast(1 as decimal(3, 1)) / cast(1 as double) FROM t --- !query 1877 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1877 output -1.0 - - --- !query 1878 -SELECT cast(1 as decimal(4, 1)) / cast(1 as double) FROM t --- !query 1878 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1878 output -1.0 - - --- !query 1879 -SELECT cast(1 as decimal(5, 1)) / cast(1 as double) FROM t --- !query 1879 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1879 output -1.0 - - --- !query 1880 -SELECT cast(1 as decimal(6, 1)) / cast(1 as double) FROM t --- !query 1880 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1880 output -1.0 - - --- !query 1881 -SELECT cast(1 as decimal(10, 1)) / cast(1 as double) FROM t --- !query 1881 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1881 output -1.0 - - --- !query 1882 -SELECT cast(1 as decimal(11, 1)) / cast(1 as double) FROM t --- !query 1882 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1882 output -1.0 - - --- !query 1883 -SELECT cast(1 as decimal(20, 1)) / cast(1 as double) FROM t --- !query 1883 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1883 output -1.0 - - --- !query 1884 -SELECT cast(1 as decimal(21, 1)) / cast(1 as double) FROM t --- !query 1884 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1884 output -1.0 - - --- !query 1885 -SELECT cast(1 as decimal(38, 1)) / cast(1 as double) FROM t --- !query 1885 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) / CAST(1 AS DOUBLE)):double> --- !query 1885 output -1.0 - - --- !query 1886 -SELECT cast(1 as decimal(39, 1)) / cast(1 as double) FROM t --- !query 1886 schema -struct<> --- !query 1886 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as double) FROM t - - --- !query 1887 -SELECT cast(1 as decimal(1, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1887 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(12,11)> --- !query 1887 output -1 - - --- !query 1888 -SELECT cast(1 as decimal(3, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1888 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(14,11)> --- !query 1888 output -1 - - --- !query 1889 -SELECT cast(1 as decimal(4, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1889 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(15,11)> --- !query 1889 output -1 - - --- !query 1890 -SELECT cast(1 as decimal(5, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1890 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(16,11)> --- !query 1890 output -1 - - --- !query 1891 -SELECT cast(1 as decimal(6, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1891 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(17,11)> --- !query 1891 output -1 - - --- !query 1892 -SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1892 schema -struct<(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS DECIMAL(10,0))):decimal(21,11)> --- !query 1892 output -1 - - --- !query 1893 -SELECT cast(1 as decimal(11, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1893 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(22,11)> --- !query 1893 output -1 - - --- !query 1894 -SELECT cast(1 as decimal(20, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1894 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(31,11)> --- !query 1894 output -1 - - --- !query 1895 -SELECT cast(1 as decimal(21, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1895 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(32,11)> --- !query 1895 output -1 - - --- !query 1896 -SELECT cast(1 as decimal(38, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1896 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(38,5)> --- !query 1896 output -1 - - --- !query 1897 -SELECT cast(1 as decimal(39, 0)) / cast(1 as decimal(10, 0)) FROM t --- !query 1897 schema -struct<> --- !query 1897 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as decimal(10, 0)) FROM t - - --- !query 1898 -SELECT cast(1 as decimal(1, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1898 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(12,12)> --- !query 1898 output -NULL - - --- !query 1899 -SELECT cast(1 as decimal(2, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1899 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(13,12)> --- !query 1899 output -1 - - --- !query 1900 -SELECT cast(1 as decimal(3, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1900 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(14,12)> --- !query 1900 output -1 - - --- !query 1901 -SELECT cast(1 as decimal(4, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1901 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(15,12)> --- !query 1901 output -1 - - --- !query 1902 -SELECT cast(1 as decimal(5, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1902 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(16,12)> --- !query 1902 output -1 - - --- !query 1903 -SELECT cast(1 as decimal(6, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1903 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(17,12)> --- !query 1903 output -1 - - --- !query 1904 -SELECT cast(1 as decimal(10, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1904 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(21,12)> --- !query 1904 output -1 - - --- !query 1905 -SELECT cast(1 as decimal(11, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1905 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(22,12)> --- !query 1905 output -1 - - --- !query 1906 -SELECT cast(1 as decimal(20, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1906 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(31,12)> --- !query 1906 output -1 - - --- !query 1907 -SELECT cast(1 as decimal(21, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1907 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(32,12)> --- !query 1907 output -1 - - --- !query 1908 -SELECT cast(1 as decimal(38, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1908 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) / CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(38,6)> --- !query 1908 output -1 - - --- !query 1909 -SELECT cast(1 as decimal(39, 1)) / cast(1 as decimal(10, 0)) FROM t --- !query 1909 schema -struct<> --- !query 1909 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as decimal(10, 0)) FROM t - - --- !query 1910 -SELECT cast(1 as decimal(1, 0)) / cast(1 as string) FROM t --- !query 1910 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1910 output -1.0 - - --- !query 1911 -SELECT cast(1 as decimal(3, 0)) / cast(1 as string) FROM t --- !query 1911 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1911 output -1.0 - - --- !query 1912 -SELECT cast(1 as decimal(4, 0)) / cast(1 as string) FROM t --- !query 1912 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1912 output -1.0 - - --- !query 1913 -SELECT cast(1 as decimal(5, 0)) / cast(1 as string) FROM t --- !query 1913 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1913 output -1.0 - - --- !query 1914 -SELECT cast(1 as decimal(6, 0)) / cast(1 as string) FROM t --- !query 1914 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1914 output -1.0 - - --- !query 1915 -SELECT cast(1 as decimal(10, 0)) / cast(1 as string) FROM t --- !query 1915 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1915 output -1.0 - - --- !query 1916 -SELECT cast(1 as decimal(11, 0)) / cast(1 as string) FROM t --- !query 1916 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1916 output -1.0 - - --- !query 1917 -SELECT cast(1 as decimal(20, 0)) / cast(1 as string) FROM t --- !query 1917 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1917 output -1.0 - - --- !query 1918 -SELECT cast(1 as decimal(21, 0)) / cast(1 as string) FROM t --- !query 1918 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1918 output -1.0 - - --- !query 1919 -SELECT cast(1 as decimal(38, 0)) / cast(1 as string) FROM t --- !query 1919 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1919 output -1.0 - - --- !query 1920 -SELECT cast(1 as decimal(39, 0)) / cast(1 as string) FROM t --- !query 1920 schema -struct<> --- !query 1920 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as string) FROM t - - --- !query 1921 -SELECT cast(1 as decimal(1, 1)) / cast(1 as string) FROM t --- !query 1921 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1921 output -NULL - - --- !query 1922 -SELECT cast(1 as decimal(2, 1)) / cast(1 as string) FROM t --- !query 1922 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1922 output -1.0 - - --- !query 1923 -SELECT cast(1 as decimal(3, 1)) / cast(1 as string) FROM t --- !query 1923 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1923 output -1.0 - - --- !query 1924 -SELECT cast(1 as decimal(4, 1)) / cast(1 as string) FROM t --- !query 1924 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1924 output -1.0 - - --- !query 1925 -SELECT cast(1 as decimal(5, 1)) / cast(1 as string) FROM t --- !query 1925 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1925 output -1.0 - - --- !query 1926 -SELECT cast(1 as decimal(6, 1)) / cast(1 as string) FROM t --- !query 1926 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1926 output -1.0 - - --- !query 1927 -SELECT cast(1 as decimal(10, 1)) / cast(1 as string) FROM t --- !query 1927 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1927 output -1.0 - - --- !query 1928 -SELECT cast(1 as decimal(11, 1)) / cast(1 as string) FROM t --- !query 1928 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1928 output -1.0 - - --- !query 1929 -SELECT cast(1 as decimal(20, 1)) / cast(1 as string) FROM t --- !query 1929 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1929 output -1.0 - - --- !query 1930 -SELECT cast(1 as decimal(21, 1)) / cast(1 as string) FROM t --- !query 1930 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1930 output -1.0 - - --- !query 1931 -SELECT cast(1 as decimal(38, 1)) / cast(1 as string) FROM t --- !query 1931 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) / CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 1931 output -1.0 - - --- !query 1932 -SELECT cast(1 as decimal(39, 1)) / cast(1 as string) FROM t --- !query 1932 schema -struct<> --- !query 1932 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as string) FROM t - - --- !query 1933 -SELECT cast(1 as decimal(1, 0)) / cast('1' as binary) FROM t --- !query 1933 schema -struct<> --- !query 1933 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 1934 -SELECT cast(1 as decimal(3, 0)) / cast('1' as binary) FROM t --- !query 1934 schema -struct<> --- !query 1934 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 1935 -SELECT cast(1 as decimal(4, 0)) / cast('1' as binary) FROM t --- !query 1935 schema -struct<> --- !query 1935 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 1936 -SELECT cast(1 as decimal(5, 0)) / cast('1' as binary) FROM t --- !query 1936 schema -struct<> --- !query 1936 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 1937 -SELECT cast(1 as decimal(6, 0)) / cast('1' as binary) FROM t --- !query 1937 schema -struct<> --- !query 1937 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 1938 -SELECT cast(1 as decimal(10, 0)) / cast('1' as binary) FROM t --- !query 1938 schema -struct<> --- !query 1938 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 1939 -SELECT cast(1 as decimal(11, 0)) / cast('1' as binary) FROM t --- !query 1939 schema -struct<> --- !query 1939 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 1940 -SELECT cast(1 as decimal(20, 0)) / cast('1' as binary) FROM t --- !query 1940 schema -struct<> --- !query 1940 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 1941 -SELECT cast(1 as decimal(21, 0)) / cast('1' as binary) FROM t --- !query 1941 schema -struct<> --- !query 1941 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 1942 -SELECT cast(1 as decimal(38, 0)) / cast('1' as binary) FROM t --- !query 1942 schema -struct<> --- !query 1942 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 1943 -SELECT cast(1 as decimal(39, 0)) / cast('1' as binary) FROM t --- !query 1943 schema -struct<> --- !query 1943 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast('1' as binary) FROM t - - --- !query 1944 -SELECT cast(1 as decimal(1, 1)) / cast('1' as binary) FROM t --- !query 1944 schema -struct<> --- !query 1944 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 1945 -SELECT cast(1 as decimal(2, 1)) / cast('1' as binary) FROM t --- !query 1945 schema -struct<> --- !query 1945 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 1946 -SELECT cast(1 as decimal(3, 1)) / cast('1' as binary) FROM t --- !query 1946 schema -struct<> --- !query 1946 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 1947 -SELECT cast(1 as decimal(4, 1)) / cast('1' as binary) FROM t --- !query 1947 schema -struct<> --- !query 1947 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 1948 -SELECT cast(1 as decimal(5, 1)) / cast('1' as binary) FROM t --- !query 1948 schema -struct<> --- !query 1948 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 1949 -SELECT cast(1 as decimal(6, 1)) / cast('1' as binary) FROM t --- !query 1949 schema -struct<> --- !query 1949 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 1950 -SELECT cast(1 as decimal(10, 1)) / cast('1' as binary) FROM t --- !query 1950 schema -struct<> --- !query 1950 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 1951 -SELECT cast(1 as decimal(11, 1)) / cast('1' as binary) FROM t --- !query 1951 schema -struct<> --- !query 1951 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 1952 -SELECT cast(1 as decimal(20, 1)) / cast('1' as binary) FROM t --- !query 1952 schema -struct<> --- !query 1952 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 1953 -SELECT cast(1 as decimal(21, 1)) / cast('1' as binary) FROM t --- !query 1953 schema -struct<> --- !query 1953 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 1954 -SELECT cast(1 as decimal(38, 1)) / cast('1' as binary) FROM t --- !query 1954 schema -struct<> --- !query 1954 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 1955 -SELECT cast(1 as decimal(39, 1)) / cast('1' as binary) FROM t --- !query 1955 schema -struct<> --- !query 1955 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast('1' as binary) FROM t - - --- !query 1956 -SELECT cast(1 as decimal(1, 0)) / cast(1 as boolean) FROM t --- !query 1956 schema -struct<> --- !query 1956 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 1957 -SELECT cast(1 as decimal(3, 0)) / cast(1 as boolean) FROM t --- !query 1957 schema -struct<> --- !query 1957 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 1958 -SELECT cast(1 as decimal(4, 0)) / cast(1 as boolean) FROM t --- !query 1958 schema -struct<> --- !query 1958 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 1959 -SELECT cast(1 as decimal(5, 0)) / cast(1 as boolean) FROM t --- !query 1959 schema -struct<> --- !query 1959 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 1960 -SELECT cast(1 as decimal(6, 0)) / cast(1 as boolean) FROM t --- !query 1960 schema -struct<> --- !query 1960 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 1961 -SELECT cast(1 as decimal(10, 0)) / cast(1 as boolean) FROM t --- !query 1961 schema -struct<> --- !query 1961 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 1962 -SELECT cast(1 as decimal(11, 0)) / cast(1 as boolean) FROM t --- !query 1962 schema -struct<> --- !query 1962 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 1963 -SELECT cast(1 as decimal(20, 0)) / cast(1 as boolean) FROM t --- !query 1963 schema -struct<> --- !query 1963 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 1964 -SELECT cast(1 as decimal(21, 0)) / cast(1 as boolean) FROM t --- !query 1964 schema -struct<> --- !query 1964 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 1965 -SELECT cast(1 as decimal(38, 0)) / cast(1 as boolean) FROM t --- !query 1965 schema -struct<> --- !query 1965 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 1966 -SELECT cast(1 as decimal(39, 0)) / cast(1 as boolean) FROM t --- !query 1966 schema -struct<> --- !query 1966 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast(1 as boolean) FROM t - - --- !query 1967 -SELECT cast(1 as decimal(1, 1)) / cast(1 as boolean) FROM t --- !query 1967 schema -struct<> --- !query 1967 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 1968 -SELECT cast(1 as decimal(2, 1)) / cast(1 as boolean) FROM t --- !query 1968 schema -struct<> --- !query 1968 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 1969 -SELECT cast(1 as decimal(3, 1)) / cast(1 as boolean) FROM t --- !query 1969 schema -struct<> --- !query 1969 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 1970 -SELECT cast(1 as decimal(4, 1)) / cast(1 as boolean) FROM t --- !query 1970 schema -struct<> --- !query 1970 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 1971 -SELECT cast(1 as decimal(5, 1)) / cast(1 as boolean) FROM t --- !query 1971 schema -struct<> --- !query 1971 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 1972 -SELECT cast(1 as decimal(6, 1)) / cast(1 as boolean) FROM t --- !query 1972 schema -struct<> --- !query 1972 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 1973 -SELECT cast(1 as decimal(10, 1)) / cast(1 as boolean) FROM t --- !query 1973 schema -struct<> --- !query 1973 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 1974 -SELECT cast(1 as decimal(11, 1)) / cast(1 as boolean) FROM t --- !query 1974 schema -struct<> --- !query 1974 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 1975 -SELECT cast(1 as decimal(20, 1)) / cast(1 as boolean) FROM t --- !query 1975 schema -struct<> --- !query 1975 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 1976 -SELECT cast(1 as decimal(21, 1)) / cast(1 as boolean) FROM t --- !query 1976 schema -struct<> --- !query 1976 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 1977 -SELECT cast(1 as decimal(38, 1)) / cast(1 as boolean) FROM t --- !query 1977 schema -struct<> --- !query 1977 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 1978 -SELECT cast(1 as decimal(39, 1)) / cast(1 as boolean) FROM t --- !query 1978 schema -struct<> --- !query 1978 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast(1 as boolean) FROM t - - --- !query 1979 -SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1979 schema -struct<> --- !query 1979 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 1980 -SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1980 schema -struct<> --- !query 1980 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 1981 -SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1981 schema -struct<> --- !query 1981 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 1982 -SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1982 schema -struct<> --- !query 1982 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 1983 -SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1983 schema -struct<> --- !query 1983 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 1984 -SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1984 schema -struct<> --- !query 1984 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 1985 -SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1985 schema -struct<> --- !query 1985 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 1986 -SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1986 schema -struct<> --- !query 1986 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 1987 -SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1987 schema -struct<> --- !query 1987 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 1988 -SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1988 schema -struct<> --- !query 1988 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 1989 -SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1989 schema -struct<> --- !query 1989 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t - - --- !query 1990 -SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1990 schema -struct<> --- !query 1990 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 1991 -SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1991 schema -struct<> --- !query 1991 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 1992 -SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1992 schema -struct<> --- !query 1992 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 1993 -SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1993 schema -struct<> --- !query 1993 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 1994 -SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1994 schema -struct<> --- !query 1994 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 1995 -SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1995 schema -struct<> --- !query 1995 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 1996 -SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1996 schema -struct<> --- !query 1996 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 1997 -SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1997 schema -struct<> --- !query 1997 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 1998 -SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1998 schema -struct<> --- !query 1998 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 1999 -SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 1999 schema -struct<> --- !query 1999 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 2000 -SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 2000 schema -struct<> --- !query 2000 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 2001 -SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t --- !query 2001 schema -struct<> --- !query 2001 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t - - --- !query 2002 -SELECT cast(1 as decimal(1, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2002 schema -struct<> --- !query 2002 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 2003 -SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2003 schema -struct<> --- !query 2003 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 2004 -SELECT cast(1 as decimal(4, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2004 schema -struct<> --- !query 2004 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 2005 -SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2005 schema -struct<> --- !query 2005 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 2006 -SELECT cast(1 as decimal(6, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2006 schema -struct<> --- !query 2006 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 2007 -SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2007 schema -struct<> --- !query 2007 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 2008 -SELECT cast(1 as decimal(11, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2008 schema -struct<> --- !query 2008 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 2009 -SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2009 schema -struct<> --- !query 2009 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 2010 -SELECT cast(1 as decimal(21, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2010 schema -struct<> --- !query 2010 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 2011 -SELECT cast(1 as decimal(38, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2011 schema -struct<> --- !query 2011 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 2012 -SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2012 schema -struct<> --- !query 2012 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) / cast('2017/12/11 09:30:00' as date) FROM t - - --- !query 2013 -SELECT cast(1 as decimal(1, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2013 schema -struct<> --- !query 2013 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 2014 -SELECT cast(1 as decimal(2, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2014 schema -struct<> --- !query 2014 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 2015 -SELECT cast(1 as decimal(3, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2015 schema -struct<> --- !query 2015 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 2016 -SELECT cast(1 as decimal(4, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2016 schema -struct<> --- !query 2016 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 2017 -SELECT cast(1 as decimal(5, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2017 schema -struct<> --- !query 2017 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 2018 -SELECT cast(1 as decimal(6, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2018 schema -struct<> --- !query 2018 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 2019 -SELECT cast(1 as decimal(10, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2019 schema -struct<> --- !query 2019 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 2020 -SELECT cast(1 as decimal(11, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2020 schema -struct<> --- !query 2020 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 2021 -SELECT cast(1 as decimal(20, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2021 schema -struct<> --- !query 2021 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 2022 -SELECT cast(1 as decimal(21, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2022 schema -struct<> --- !query 2022 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 2023 -SELECT cast(1 as decimal(38, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2023 schema -struct<> --- !query 2023 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) / CAST('2017/12/11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 2024 -SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00' as date) FROM t --- !query 2024 schema -struct<> --- !query 2024 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) / cast('2017/12/11 09:30:00' as date) FROM t - - --- !query 2025 -SELECT cast(1 as tinyint) % cast(1 as decimal(1, 0)) FROM t --- !query 2025 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):decimal(1,0)> --- !query 2025 output -0 - - --- !query 2026 -SELECT cast(1 as tinyint) % cast(1 as decimal(3, 0)) FROM t --- !query 2026 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) % CAST(1 AS DECIMAL(3,0))):decimal(3,0)> --- !query 2026 output -0 - - --- !query 2027 -SELECT cast(1 as tinyint) % cast(1 as decimal(4, 0)) FROM t --- !query 2027 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):decimal(3,0)> --- !query 2027 output -0 - - --- !query 2028 -SELECT cast(1 as tinyint) % cast(1 as decimal(5, 0)) FROM t --- !query 2028 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(3,0)> --- !query 2028 output -0 - - --- !query 2029 -SELECT cast(1 as tinyint) % cast(1 as decimal(6, 0)) FROM t --- !query 2029 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(3,0)> --- !query 2029 output -0 - - --- !query 2030 -SELECT cast(1 as tinyint) % cast(1 as decimal(10, 0)) FROM t --- !query 2030 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> --- !query 2030 output -0 - - --- !query 2031 -SELECT cast(1 as tinyint) % cast(1 as decimal(11, 0)) FROM t --- !query 2031 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(3,0)> --- !query 2031 output -0 - - --- !query 2032 -SELECT cast(1 as tinyint) % cast(1 as decimal(20, 0)) FROM t --- !query 2032 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(3,0)> --- !query 2032 output -0 - - --- !query 2033 -SELECT cast(1 as tinyint) % cast(1 as decimal(21, 0)) FROM t --- !query 2033 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(3,0)> --- !query 2033 output -0 - - --- !query 2034 -SELECT cast(1 as tinyint) % cast(1 as decimal(38, 0)) FROM t --- !query 2034 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(3,0)> --- !query 2034 output -0 - - --- !query 2035 -SELECT cast(1 as tinyint) % cast(1 as decimal(39, 0)) FROM t --- !query 2035 schema -struct<> --- !query 2035 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2036 -SELECT cast(1 as tinyint) % cast(1 as decimal(1, 1)) FROM t --- !query 2036 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):decimal(1,1)> --- !query 2036 output -NULL - - --- !query 2037 -SELECT cast(1 as tinyint) % cast(1 as decimal(2, 1)) FROM t --- !query 2037 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):decimal(2,1)> --- !query 2037 output -0 - - --- !query 2038 -SELECT cast(1 as tinyint) % cast(1 as decimal(3, 1)) FROM t --- !query 2038 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):decimal(3,1)> --- !query 2038 output -0 - - --- !query 2039 -SELECT cast(1 as tinyint) % cast(1 as decimal(4, 1)) FROM t --- !query 2039 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):decimal(4,1)> --- !query 2039 output -0 - - --- !query 2040 -SELECT cast(1 as tinyint) % cast(1 as decimal(5, 1)) FROM t --- !query 2040 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):decimal(4,1)> --- !query 2040 output -0 - - --- !query 2041 -SELECT cast(1 as tinyint) % cast(1 as decimal(6, 1)) FROM t --- !query 2041 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(4,1)> --- !query 2041 output -0 - - --- !query 2042 -SELECT cast(1 as tinyint) % cast(1 as decimal(10, 1)) FROM t --- !query 2042 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(4,1)> --- !query 2042 output -0 - - --- !query 2043 -SELECT cast(1 as tinyint) % cast(1 as decimal(11, 1)) FROM t --- !query 2043 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(4,1)> --- !query 2043 output -0 - - --- !query 2044 -SELECT cast(1 as tinyint) % cast(1 as decimal(20, 1)) FROM t --- !query 2044 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(4,1)> --- !query 2044 output -0 - - --- !query 2045 -SELECT cast(1 as tinyint) % cast(1 as decimal(21, 1)) FROM t --- !query 2045 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(4,1)> --- !query 2045 output -0 - - --- !query 2046 -SELECT cast(1 as tinyint) % cast(1 as decimal(38, 1)) FROM t --- !query 2046 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(4,1)> --- !query 2046 output -0 - - --- !query 2047 -SELECT cast(1 as tinyint) % cast(1 as decimal(39, 1)) FROM t --- !query 2047 schema -struct<> --- !query 2047 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2048 -SELECT cast(1 as smallint) % cast(1 as decimal(1, 0)) FROM t --- !query 2048 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):decimal(1,0)> --- !query 2048 output -0 - - --- !query 2049 -SELECT cast(1 as smallint) % cast(1 as decimal(3, 0)) FROM t --- !query 2049 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(3,0)> --- !query 2049 output -0 - - --- !query 2050 -SELECT cast(1 as smallint) % cast(1 as decimal(4, 0)) FROM t --- !query 2050 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):decimal(4,0)> --- !query 2050 output -0 - - --- !query 2051 -SELECT cast(1 as smallint) % cast(1 as decimal(5, 0)) FROM t --- !query 2051 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) % CAST(1 AS DECIMAL(5,0))):decimal(5,0)> --- !query 2051 output -0 - - --- !query 2052 -SELECT cast(1 as smallint) % cast(1 as decimal(6, 0)) FROM t --- !query 2052 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):decimal(5,0)> --- !query 2052 output -0 - - --- !query 2053 -SELECT cast(1 as smallint) % cast(1 as decimal(10, 0)) FROM t --- !query 2053 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> --- !query 2053 output -0 - - --- !query 2054 -SELECT cast(1 as smallint) % cast(1 as decimal(11, 0)) FROM t --- !query 2054 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(5,0)> --- !query 2054 output -0 - - --- !query 2055 -SELECT cast(1 as smallint) % cast(1 as decimal(20, 0)) FROM t --- !query 2055 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(5,0)> --- !query 2055 output -0 - - --- !query 2056 -SELECT cast(1 as smallint) % cast(1 as decimal(21, 0)) FROM t --- !query 2056 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(5,0)> --- !query 2056 output -0 - - --- !query 2057 -SELECT cast(1 as smallint) % cast(1 as decimal(38, 0)) FROM t --- !query 2057 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(5,0)> --- !query 2057 output -0 - - --- !query 2058 -SELECT cast(1 as smallint) % cast(1 as decimal(39, 0)) FROM t --- !query 2058 schema -struct<> --- !query 2058 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2059 -SELECT cast(1 as smallint) % cast(1 as decimal(1, 1)) FROM t --- !query 2059 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):decimal(1,1)> --- !query 2059 output -NULL - - --- !query 2060 -SELECT cast(1 as smallint) % cast(1 as decimal(2, 1)) FROM t --- !query 2060 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):decimal(2,1)> --- !query 2060 output -0 - - --- !query 2061 -SELECT cast(1 as smallint) % cast(1 as decimal(3, 1)) FROM t --- !query 2061 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):decimal(3,1)> --- !query 2061 output -0 - - --- !query 2062 -SELECT cast(1 as smallint) % cast(1 as decimal(4, 1)) FROM t --- !query 2062 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):decimal(4,1)> --- !query 2062 output -0 - - --- !query 2063 -SELECT cast(1 as smallint) % cast(1 as decimal(5, 1)) FROM t --- !query 2063 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):decimal(5,1)> --- !query 2063 output -0 - - --- !query 2064 -SELECT cast(1 as smallint) % cast(1 as decimal(6, 1)) FROM t --- !query 2064 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):decimal(6,1)> --- !query 2064 output -0 - - --- !query 2065 -SELECT cast(1 as smallint) % cast(1 as decimal(10, 1)) FROM t --- !query 2065 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):decimal(6,1)> --- !query 2065 output -0 - - --- !query 2066 -SELECT cast(1 as smallint) % cast(1 as decimal(11, 1)) FROM t --- !query 2066 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(6,1)> --- !query 2066 output -0 - - --- !query 2067 -SELECT cast(1 as smallint) % cast(1 as decimal(20, 1)) FROM t --- !query 2067 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(6,1)> --- !query 2067 output -0 - - --- !query 2068 -SELECT cast(1 as smallint) % cast(1 as decimal(21, 1)) FROM t --- !query 2068 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(6,1)> --- !query 2068 output -0 - - --- !query 2069 -SELECT cast(1 as smallint) % cast(1 as decimal(38, 1)) FROM t --- !query 2069 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(6,1)> --- !query 2069 output -0 - - --- !query 2070 -SELECT cast(1 as smallint) % cast(1 as decimal(39, 1)) FROM t --- !query 2070 schema -struct<> --- !query 2070 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2071 -SELECT cast(1 as int) % cast(1 as decimal(1, 0)) FROM t --- !query 2071 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(1,0)> --- !query 2071 output -0 - - --- !query 2072 -SELECT cast(1 as int) % cast(1 as decimal(3, 0)) FROM t --- !query 2072 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> --- !query 2072 output -0 - - --- !query 2073 -SELECT cast(1 as int) % cast(1 as decimal(4, 0)) FROM t --- !query 2073 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(4,0)> --- !query 2073 output -0 - - --- !query 2074 -SELECT cast(1 as int) % cast(1 as decimal(5, 0)) FROM t --- !query 2074 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> --- !query 2074 output -0 - - --- !query 2075 -SELECT cast(1 as int) % cast(1 as decimal(6, 0)) FROM t --- !query 2075 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(6,0)> --- !query 2075 output -0 - - --- !query 2076 -SELECT cast(1 as int) % cast(1 as decimal(10, 0)) FROM t --- !query 2076 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> --- !query 2076 output -0 - - --- !query 2077 -SELECT cast(1 as int) % cast(1 as decimal(11, 0)) FROM t --- !query 2077 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(10,0)> --- !query 2077 output -0 - - --- !query 2078 -SELECT cast(1 as int) % cast(1 as decimal(20, 0)) FROM t --- !query 2078 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> --- !query 2078 output -0 - - --- !query 2079 -SELECT cast(1 as int) % cast(1 as decimal(21, 0)) FROM t --- !query 2079 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(10,0)> --- !query 2079 output -0 - - --- !query 2080 -SELECT cast(1 as int) % cast(1 as decimal(38, 0)) FROM t --- !query 2080 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(10,0)> --- !query 2080 output -0 - - --- !query 2081 -SELECT cast(1 as int) % cast(1 as decimal(39, 0)) FROM t --- !query 2081 schema -struct<> --- !query 2081 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2082 -SELECT cast(1 as int) % cast(1 as decimal(1, 1)) FROM t --- !query 2082 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(1,1)> --- !query 2082 output -NULL - - --- !query 2083 -SELECT cast(1 as int) % cast(1 as decimal(2, 1)) FROM t --- !query 2083 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(2,1)> --- !query 2083 output -0 - - --- !query 2084 -SELECT cast(1 as int) % cast(1 as decimal(3, 1)) FROM t --- !query 2084 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(3,1)> --- !query 2084 output -0 - - --- !query 2085 -SELECT cast(1 as int) % cast(1 as decimal(4, 1)) FROM t --- !query 2085 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(4,1)> --- !query 2085 output -0 - - --- !query 2086 -SELECT cast(1 as int) % cast(1 as decimal(5, 1)) FROM t --- !query 2086 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(5,1)> --- !query 2086 output -0 - - --- !query 2087 -SELECT cast(1 as int) % cast(1 as decimal(6, 1)) FROM t --- !query 2087 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(6,1)> --- !query 2087 output -0 - - --- !query 2088 -SELECT cast(1 as int) % cast(1 as decimal(10, 1)) FROM t --- !query 2088 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(10,1)> --- !query 2088 output -0 - - --- !query 2089 -SELECT cast(1 as int) % cast(1 as decimal(11, 1)) FROM t --- !query 2089 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(11,1)> --- !query 2089 output -0 - - --- !query 2090 -SELECT cast(1 as int) % cast(1 as decimal(20, 1)) FROM t --- !query 2090 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(11,1)> --- !query 2090 output -0 - - --- !query 2091 -SELECT cast(1 as int) % cast(1 as decimal(21, 1)) FROM t --- !query 2091 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(11,1)> --- !query 2091 output -0 - - --- !query 2092 -SELECT cast(1 as int) % cast(1 as decimal(38, 1)) FROM t --- !query 2092 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(11,1)> --- !query 2092 output -0 - - --- !query 2093 -SELECT cast(1 as int) % cast(1 as decimal(39, 1)) FROM t --- !query 2093 schema -struct<> --- !query 2093 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2094 -SELECT cast(1 as bigint) % cast(1 as decimal(1, 0)) FROM t --- !query 2094 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):decimal(1,0)> --- !query 2094 output -0 - - --- !query 2095 -SELECT cast(1 as bigint) % cast(1 as decimal(3, 0)) FROM t --- !query 2095 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(3,0)> --- !query 2095 output -0 - - --- !query 2096 -SELECT cast(1 as bigint) % cast(1 as decimal(4, 0)) FROM t --- !query 2096 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):decimal(4,0)> --- !query 2096 output -0 - - --- !query 2097 -SELECT cast(1 as bigint) % cast(1 as decimal(5, 0)) FROM t --- !query 2097 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(5,0)> --- !query 2097 output -0 - - --- !query 2098 -SELECT cast(1 as bigint) % cast(1 as decimal(6, 0)) FROM t --- !query 2098 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):decimal(6,0)> --- !query 2098 output -0 - - --- !query 2099 -SELECT cast(1 as bigint) % cast(1 as decimal(10, 0)) FROM t --- !query 2099 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> --- !query 2099 output -0 - - --- !query 2100 -SELECT cast(1 as bigint) % cast(1 as decimal(11, 0)) FROM t --- !query 2100 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):decimal(11,0)> --- !query 2100 output -0 - - --- !query 2101 -SELECT cast(1 as bigint) % cast(1 as decimal(20, 0)) FROM t --- !query 2101 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) % CAST(1 AS DECIMAL(20,0))):decimal(20,0)> --- !query 2101 output -0 - - --- !query 2102 -SELECT cast(1 as bigint) % cast(1 as decimal(21, 0)) FROM t --- !query 2102 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(20,0)> --- !query 2102 output -0 - - --- !query 2103 -SELECT cast(1 as bigint) % cast(1 as decimal(38, 0)) FROM t --- !query 2103 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(20,0)> --- !query 2103 output -0 - - --- !query 2104 -SELECT cast(1 as bigint) % cast(1 as decimal(39, 0)) FROM t --- !query 2104 schema -struct<> --- !query 2104 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2105 -SELECT cast(1 as bigint) % cast(1 as decimal(1, 1)) FROM t --- !query 2105 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):decimal(1,1)> --- !query 2105 output -NULL - - --- !query 2106 -SELECT cast(1 as bigint) % cast(1 as decimal(2, 1)) FROM t --- !query 2106 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):decimal(2,1)> --- !query 2106 output -0 - - --- !query 2107 -SELECT cast(1 as bigint) % cast(1 as decimal(3, 1)) FROM t --- !query 2107 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):decimal(3,1)> --- !query 2107 output -0 - - --- !query 2108 -SELECT cast(1 as bigint) % cast(1 as decimal(4, 1)) FROM t --- !query 2108 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):decimal(4,1)> --- !query 2108 output -0 - - --- !query 2109 -SELECT cast(1 as bigint) % cast(1 as decimal(5, 1)) FROM t --- !query 2109 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):decimal(5,1)> --- !query 2109 output -0 - - --- !query 2110 -SELECT cast(1 as bigint) % cast(1 as decimal(6, 1)) FROM t --- !query 2110 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):decimal(6,1)> --- !query 2110 output -0 - - --- !query 2111 -SELECT cast(1 as bigint) % cast(1 as decimal(10, 1)) FROM t --- !query 2111 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):decimal(10,1)> --- !query 2111 output -0 - - --- !query 2112 -SELECT cast(1 as bigint) % cast(1 as decimal(11, 1)) FROM t --- !query 2112 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):decimal(11,1)> --- !query 2112 output -0 - - --- !query 2113 -SELECT cast(1 as bigint) % cast(1 as decimal(20, 1)) FROM t --- !query 2113 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):decimal(20,1)> --- !query 2113 output -0 - - --- !query 2114 -SELECT cast(1 as bigint) % cast(1 as decimal(21, 1)) FROM t --- !query 2114 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(21,1)> --- !query 2114 output -0 - - --- !query 2115 -SELECT cast(1 as bigint) % cast(1 as decimal(38, 1)) FROM t --- !query 2115 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(21,1)> --- !query 2115 output -0 - - --- !query 2116 -SELECT cast(1 as bigint) % cast(1 as decimal(39, 1)) FROM t --- !query 2116 schema -struct<> --- !query 2116 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2117 -SELECT cast(1 as float) % cast(1 as decimal(1, 0)) FROM t --- !query 2117 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> --- !query 2117 output -0.0 - - --- !query 2118 -SELECT cast(1 as float) % cast(1 as decimal(3, 0)) FROM t --- !query 2118 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> --- !query 2118 output -0.0 - - --- !query 2119 -SELECT cast(1 as float) % cast(1 as decimal(4, 0)) FROM t --- !query 2119 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> --- !query 2119 output -0.0 - - --- !query 2120 -SELECT cast(1 as float) % cast(1 as decimal(5, 0)) FROM t --- !query 2120 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> --- !query 2120 output -0.0 - - --- !query 2121 -SELECT cast(1 as float) % cast(1 as decimal(6, 0)) FROM t --- !query 2121 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> --- !query 2121 output -0.0 - - --- !query 2122 -SELECT cast(1 as float) % cast(1 as decimal(10, 0)) FROM t --- !query 2122 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> --- !query 2122 output -0.0 - - --- !query 2123 -SELECT cast(1 as float) % cast(1 as decimal(11, 0)) FROM t --- !query 2123 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> --- !query 2123 output -0.0 - - --- !query 2124 -SELECT cast(1 as float) % cast(1 as decimal(20, 0)) FROM t --- !query 2124 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> --- !query 2124 output -0.0 - - --- !query 2125 -SELECT cast(1 as float) % cast(1 as decimal(21, 0)) FROM t --- !query 2125 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> --- !query 2125 output -0.0 - - --- !query 2126 -SELECT cast(1 as float) % cast(1 as decimal(38, 0)) FROM t --- !query 2126 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> --- !query 2126 output -0.0 - - --- !query 2127 -SELECT cast(1 as float) % cast(1 as decimal(39, 0)) FROM t --- !query 2127 schema -struct<> --- !query 2127 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2128 -SELECT cast(1 as float) % cast(1 as decimal(1, 1)) FROM t --- !query 2128 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> --- !query 2128 output -NULL - - --- !query 2129 -SELECT cast(1 as float) % cast(1 as decimal(2, 1)) FROM t --- !query 2129 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> --- !query 2129 output -0.0 - - --- !query 2130 -SELECT cast(1 as float) % cast(1 as decimal(3, 1)) FROM t --- !query 2130 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> --- !query 2130 output -0.0 - - --- !query 2131 -SELECT cast(1 as float) % cast(1 as decimal(4, 1)) FROM t --- !query 2131 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> --- !query 2131 output -0.0 - - --- !query 2132 -SELECT cast(1 as float) % cast(1 as decimal(5, 1)) FROM t --- !query 2132 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> --- !query 2132 output -0.0 - - --- !query 2133 -SELECT cast(1 as float) % cast(1 as decimal(6, 1)) FROM t --- !query 2133 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> --- !query 2133 output -0.0 - - --- !query 2134 -SELECT cast(1 as float) % cast(1 as decimal(10, 1)) FROM t --- !query 2134 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> --- !query 2134 output -0.0 - - --- !query 2135 -SELECT cast(1 as float) % cast(1 as decimal(11, 1)) FROM t --- !query 2135 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> --- !query 2135 output -0.0 - - --- !query 2136 -SELECT cast(1 as float) % cast(1 as decimal(20, 1)) FROM t --- !query 2136 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> --- !query 2136 output -0.0 - - --- !query 2137 -SELECT cast(1 as float) % cast(1 as decimal(21, 1)) FROM t --- !query 2137 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> --- !query 2137 output -0.0 - - --- !query 2138 -SELECT cast(1 as float) % cast(1 as decimal(38, 1)) FROM t --- !query 2138 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> --- !query 2138 output -0.0 - - --- !query 2139 -SELECT cast(1 as float) % cast(1 as decimal(39, 1)) FROM t --- !query 2139 schema -struct<> --- !query 2139 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2140 -SELECT cast(1 as double) % cast(1 as decimal(1, 0)) FROM t --- !query 2140 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):double> --- !query 2140 output -0.0 - - --- !query 2141 -SELECT cast(1 as double) % cast(1 as decimal(3, 0)) FROM t --- !query 2141 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):double> --- !query 2141 output -0.0 - - --- !query 2142 -SELECT cast(1 as double) % cast(1 as decimal(4, 0)) FROM t --- !query 2142 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):double> --- !query 2142 output -0.0 - - --- !query 2143 -SELECT cast(1 as double) % cast(1 as decimal(5, 0)) FROM t --- !query 2143 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):double> --- !query 2143 output -0.0 - - --- !query 2144 -SELECT cast(1 as double) % cast(1 as decimal(6, 0)) FROM t --- !query 2144 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):double> --- !query 2144 output -0.0 - - --- !query 2145 -SELECT cast(1 as double) % cast(1 as decimal(10, 0)) FROM t --- !query 2145 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):double> --- !query 2145 output -0.0 - - --- !query 2146 -SELECT cast(1 as double) % cast(1 as decimal(11, 0)) FROM t --- !query 2146 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):double> --- !query 2146 output -0.0 - - --- !query 2147 -SELECT cast(1 as double) % cast(1 as decimal(20, 0)) FROM t --- !query 2147 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):double> --- !query 2147 output -0.0 - - --- !query 2148 -SELECT cast(1 as double) % cast(1 as decimal(21, 0)) FROM t --- !query 2148 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):double> --- !query 2148 output -0.0 - - --- !query 2149 -SELECT cast(1 as double) % cast(1 as decimal(38, 0)) FROM t --- !query 2149 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):double> --- !query 2149 output -0.0 - - --- !query 2150 -SELECT cast(1 as double) % cast(1 as decimal(39, 0)) FROM t --- !query 2150 schema -struct<> --- !query 2150 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2151 -SELECT cast(1 as double) % cast(1 as decimal(1, 1)) FROM t --- !query 2151 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):double> --- !query 2151 output -NULL - - --- !query 2152 -SELECT cast(1 as double) % cast(1 as decimal(2, 1)) FROM t --- !query 2152 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):double> --- !query 2152 output -0.0 - - --- !query 2153 -SELECT cast(1 as double) % cast(1 as decimal(3, 1)) FROM t --- !query 2153 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):double> --- !query 2153 output -0.0 - - --- !query 2154 -SELECT cast(1 as double) % cast(1 as decimal(4, 1)) FROM t --- !query 2154 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):double> --- !query 2154 output -0.0 - - --- !query 2155 -SELECT cast(1 as double) % cast(1 as decimal(5, 1)) FROM t --- !query 2155 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):double> --- !query 2155 output -0.0 - - --- !query 2156 -SELECT cast(1 as double) % cast(1 as decimal(6, 1)) FROM t --- !query 2156 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):double> --- !query 2156 output -0.0 - - --- !query 2157 -SELECT cast(1 as double) % cast(1 as decimal(10, 1)) FROM t --- !query 2157 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):double> --- !query 2157 output -0.0 - - --- !query 2158 -SELECT cast(1 as double) % cast(1 as decimal(11, 1)) FROM t --- !query 2158 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):double> --- !query 2158 output -0.0 - - --- !query 2159 -SELECT cast(1 as double) % cast(1 as decimal(20, 1)) FROM t --- !query 2159 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):double> --- !query 2159 output -0.0 - - --- !query 2160 -SELECT cast(1 as double) % cast(1 as decimal(21, 1)) FROM t --- !query 2160 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):double> --- !query 2160 output -0.0 - - --- !query 2161 -SELECT cast(1 as double) % cast(1 as decimal(38, 1)) FROM t --- !query 2161 schema -struct<(CAST(1 AS DOUBLE) % CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):double> --- !query 2161 output -0.0 - - --- !query 2162 -SELECT cast(1 as double) % cast(1 as decimal(39, 1)) FROM t --- !query 2162 schema -struct<> --- !query 2162 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2163 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 0)) FROM t --- !query 2163 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):decimal(1,0)> --- !query 2163 output -0 - - --- !query 2164 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 0)) FROM t --- !query 2164 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> --- !query 2164 output -0 - - --- !query 2165 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 0)) FROM t --- !query 2165 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):decimal(4,0)> --- !query 2165 output -0 - - --- !query 2166 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 0)) FROM t --- !query 2166 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> --- !query 2166 output -0 - - --- !query 2167 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 0)) FROM t --- !query 2167 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):decimal(6,0)> --- !query 2167 output -0 - - --- !query 2168 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2168 schema -struct<(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> --- !query 2168 output -0 - - --- !query 2169 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 0)) FROM t --- !query 2169 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):decimal(10,0)> --- !query 2169 output -0 - - --- !query 2170 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 0)) FROM t --- !query 2170 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> --- !query 2170 output -0 - - --- !query 2171 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 0)) FROM t --- !query 2171 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):decimal(10,0)> --- !query 2171 output -0 - - --- !query 2172 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 0)) FROM t --- !query 2172 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):decimal(10,0)> --- !query 2172 output -0 - - --- !query 2173 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 0)) FROM t --- !query 2173 schema -struct<> --- !query 2173 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2174 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(1, 1)) FROM t --- !query 2174 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):decimal(1,1)> --- !query 2174 output -NULL - - --- !query 2175 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(2, 1)) FROM t --- !query 2175 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):decimal(2,1)> --- !query 2175 output -0 - - --- !query 2176 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 1)) FROM t --- !query 2176 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):decimal(3,1)> --- !query 2176 output -0 - - --- !query 2177 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(4, 1)) FROM t --- !query 2177 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):decimal(4,1)> --- !query 2177 output -0 - - --- !query 2178 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 1)) FROM t --- !query 2178 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):decimal(5,1)> --- !query 2178 output -0 - - --- !query 2179 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(6, 1)) FROM t --- !query 2179 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):decimal(6,1)> --- !query 2179 output -0 - - --- !query 2180 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 1)) FROM t --- !query 2180 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):decimal(10,1)> --- !query 2180 output -0 - - --- !query 2181 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(11, 1)) FROM t --- !query 2181 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):decimal(11,1)> --- !query 2181 output -0 - - --- !query 2182 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 1)) FROM t --- !query 2182 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):decimal(11,1)> --- !query 2182 output -0 - - --- !query 2183 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(21, 1)) FROM t --- !query 2183 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):decimal(11,1)> --- !query 2183 output -0 - - --- !query 2184 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(38, 1)) FROM t --- !query 2184 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):decimal(11,1)> --- !query 2184 output -0 - - --- !query 2185 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 1)) FROM t --- !query 2185 schema -struct<> --- !query 2185 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2186 -SELECT cast('1' as binary) % cast(1 as decimal(1, 0)) FROM t --- !query 2186 schema -struct<> --- !query 2186 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 2187 -SELECT cast('1' as binary) % cast(1 as decimal(3, 0)) FROM t --- !query 2187 schema -struct<> --- !query 2187 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 2188 -SELECT cast('1' as binary) % cast(1 as decimal(4, 0)) FROM t --- !query 2188 schema -struct<> --- !query 2188 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 2189 -SELECT cast('1' as binary) % cast(1 as decimal(5, 0)) FROM t --- !query 2189 schema -struct<> --- !query 2189 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 2190 -SELECT cast('1' as binary) % cast(1 as decimal(6, 0)) FROM t --- !query 2190 schema -struct<> --- !query 2190 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 2191 -SELECT cast('1' as binary) % cast(1 as decimal(10, 0)) FROM t --- !query 2191 schema -struct<> --- !query 2191 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 2192 -SELECT cast('1' as binary) % cast(1 as decimal(11, 0)) FROM t --- !query 2192 schema -struct<> --- !query 2192 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 2193 -SELECT cast('1' as binary) % cast(1 as decimal(20, 0)) FROM t --- !query 2193 schema -struct<> --- !query 2193 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 2194 -SELECT cast('1' as binary) % cast(1 as decimal(21, 0)) FROM t --- !query 2194 schema -struct<> --- !query 2194 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 2195 -SELECT cast('1' as binary) % cast(1 as decimal(38, 0)) FROM t --- !query 2195 schema -struct<> --- !query 2195 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 2196 -SELECT cast('1' as binary) % cast(1 as decimal(39, 0)) FROM t --- !query 2196 schema -struct<> --- !query 2196 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2197 -SELECT cast('1' as binary) % cast(1 as decimal(1, 1)) FROM t --- !query 2197 schema -struct<> --- !query 2197 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 2198 -SELECT cast('1' as binary) % cast(1 as decimal(2, 1)) FROM t --- !query 2198 schema -struct<> --- !query 2198 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 2199 -SELECT cast('1' as binary) % cast(1 as decimal(3, 1)) FROM t --- !query 2199 schema -struct<> --- !query 2199 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 2200 -SELECT cast('1' as binary) % cast(1 as decimal(4, 1)) FROM t --- !query 2200 schema -struct<> --- !query 2200 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 2201 -SELECT cast('1' as binary) % cast(1 as decimal(5, 1)) FROM t --- !query 2201 schema -struct<> --- !query 2201 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 2202 -SELECT cast('1' as binary) % cast(1 as decimal(6, 1)) FROM t --- !query 2202 schema -struct<> --- !query 2202 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 2203 -SELECT cast('1' as binary) % cast(1 as decimal(10, 1)) FROM t --- !query 2203 schema -struct<> --- !query 2203 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 2204 -SELECT cast('1' as binary) % cast(1 as decimal(11, 1)) FROM t --- !query 2204 schema -struct<> --- !query 2204 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 2205 -SELECT cast('1' as binary) % cast(1 as decimal(20, 1)) FROM t --- !query 2205 schema -struct<> --- !query 2205 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 2206 -SELECT cast('1' as binary) % cast(1 as decimal(21, 1)) FROM t --- !query 2206 schema -struct<> --- !query 2206 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 2207 -SELECT cast('1' as binary) % cast(1 as decimal(38, 1)) FROM t --- !query 2207 schema -struct<> --- !query 2207 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) % CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 2208 -SELECT cast('1' as binary) % cast(1 as decimal(39, 1)) FROM t --- !query 2208 schema -struct<> --- !query 2208 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2209 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 0)) FROM t --- !query 2209 schema -struct<> --- !query 2209 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 2210 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 0)) FROM t --- !query 2210 schema -struct<> --- !query 2210 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 2211 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 0)) FROM t --- !query 2211 schema -struct<> --- !query 2211 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 2212 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 0)) FROM t --- !query 2212 schema -struct<> --- !query 2212 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 2213 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 0)) FROM t --- !query 2213 schema -struct<> --- !query 2213 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 2214 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 0)) FROM t --- !query 2214 schema -struct<> --- !query 2214 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 2215 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 0)) FROM t --- !query 2215 schema -struct<> --- !query 2215 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 2216 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 0)) FROM t --- !query 2216 schema -struct<> --- !query 2216 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 2217 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 0)) FROM t --- !query 2217 schema -struct<> --- !query 2217 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 2218 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 0)) FROM t --- !query 2218 schema -struct<> --- !query 2218 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 2219 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 0)) FROM t --- !query 2219 schema -struct<> --- !query 2219 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2220 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(1, 1)) FROM t --- !query 2220 schema -struct<> --- !query 2220 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 2221 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(2, 1)) FROM t --- !query 2221 schema -struct<> --- !query 2221 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 2222 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 1)) FROM t --- !query 2222 schema -struct<> --- !query 2222 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 2223 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(4, 1)) FROM t --- !query 2223 schema -struct<> --- !query 2223 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 2224 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 1)) FROM t --- !query 2224 schema -struct<> --- !query 2224 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 2225 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(6, 1)) FROM t --- !query 2225 schema -struct<> --- !query 2225 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 2226 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 1)) FROM t --- !query 2226 schema -struct<> --- !query 2226 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 2227 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(11, 1)) FROM t --- !query 2227 schema -struct<> --- !query 2227 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 2228 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 1)) FROM t --- !query 2228 schema -struct<> --- !query 2228 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 2229 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(21, 1)) FROM t --- !query 2229 schema -struct<> --- !query 2229 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 2230 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(38, 1)) FROM t --- !query 2230 schema -struct<> --- !query 2230 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 2231 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 1)) FROM t --- !query 2231 schema -struct<> --- !query 2231 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2232 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 0)) FROM t --- !query 2232 schema -struct<> --- !query 2232 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 2233 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 0)) FROM t --- !query 2233 schema -struct<> --- !query 2233 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 2234 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 0)) FROM t --- !query 2234 schema -struct<> --- !query 2234 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 2235 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 0)) FROM t --- !query 2235 schema -struct<> --- !query 2235 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 2236 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 0)) FROM t --- !query 2236 schema -struct<> --- !query 2236 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 2237 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 0)) FROM t --- !query 2237 schema -struct<> --- !query 2237 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 2238 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 0)) FROM t --- !query 2238 schema -struct<> --- !query 2238 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 2239 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 0)) FROM t --- !query 2239 schema -struct<> --- !query 2239 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 2240 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 0)) FROM t --- !query 2240 schema -struct<> --- !query 2240 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 2241 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 0)) FROM t --- !query 2241 schema -struct<> --- !query 2241 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 2242 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 0)) FROM t --- !query 2242 schema -struct<> --- !query 2242 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 0)) FROM t - - --- !query 2243 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(1, 1)) FROM t --- !query 2243 schema -struct<> --- !query 2243 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 2244 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(2, 1)) FROM t --- !query 2244 schema -struct<> --- !query 2244 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 2245 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 1)) FROM t --- !query 2245 schema -struct<> --- !query 2245 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 2246 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(4, 1)) FROM t --- !query 2246 schema -struct<> --- !query 2246 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 2247 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 1)) FROM t --- !query 2247 schema -struct<> --- !query 2247 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 2248 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(6, 1)) FROM t --- !query 2248 schema -struct<> --- !query 2248 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 2249 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 1)) FROM t --- !query 2249 schema -struct<> --- !query 2249 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 2250 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(11, 1)) FROM t --- !query 2250 schema -struct<> --- !query 2250 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 2251 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 1)) FROM t --- !query 2251 schema -struct<> --- !query 2251 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 2252 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(21, 1)) FROM t --- !query 2252 schema -struct<> --- !query 2252 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 2253 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(38, 1)) FROM t --- !query 2253 schema -struct<> --- !query 2253 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) % CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 2254 -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 1)) FROM t --- !query 2254 schema -struct<> --- !query 2254 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(39, 1)) FROM t - - --- !query 2255 -SELECT cast(1 as decimal(1, 0)) % cast(1 as tinyint) FROM t --- !query 2255 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):decimal(1,0)> --- !query 2255 output -0 - - --- !query 2256 -SELECT cast(1 as decimal(3, 0)) % cast(1 as tinyint) FROM t --- !query 2256 schema -struct<(CAST(1 AS DECIMAL(3,0)) % CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):decimal(3,0)> --- !query 2256 output -0 - - --- !query 2257 -SELECT cast(1 as decimal(4, 0)) % cast(1 as tinyint) FROM t --- !query 2257 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):decimal(3,0)> --- !query 2257 output -0 - - --- !query 2258 -SELECT cast(1 as decimal(5, 0)) % cast(1 as tinyint) FROM t --- !query 2258 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):decimal(3,0)> --- !query 2258 output -0 - - --- !query 2259 -SELECT cast(1 as decimal(6, 0)) % cast(1 as tinyint) FROM t --- !query 2259 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):decimal(3,0)> --- !query 2259 output -0 - - --- !query 2260 -SELECT cast(1 as decimal(10, 0)) % cast(1 as tinyint) FROM t --- !query 2260 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):decimal(3,0)> --- !query 2260 output -0 - - --- !query 2261 -SELECT cast(1 as decimal(11, 0)) % cast(1 as tinyint) FROM t --- !query 2261 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):decimal(3,0)> --- !query 2261 output -0 - - --- !query 2262 -SELECT cast(1 as decimal(20, 0)) % cast(1 as tinyint) FROM t --- !query 2262 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):decimal(3,0)> --- !query 2262 output -0 - - --- !query 2263 -SELECT cast(1 as decimal(21, 0)) % cast(1 as tinyint) FROM t --- !query 2263 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):decimal(3,0)> --- !query 2263 output -0 - - --- !query 2264 -SELECT cast(1 as decimal(38, 0)) % cast(1 as tinyint) FROM t --- !query 2264 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):decimal(3,0)> --- !query 2264 output -0 - - --- !query 2265 -SELECT cast(1 as decimal(39, 0)) % cast(1 as tinyint) FROM t --- !query 2265 schema -struct<> --- !query 2265 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as tinyint) FROM t - - --- !query 2266 -SELECT cast(1 as decimal(1, 1)) % cast(1 as tinyint) FROM t --- !query 2266 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(1,1)> --- !query 2266 output -NULL - - --- !query 2267 -SELECT cast(1 as decimal(2, 1)) % cast(1 as tinyint) FROM t --- !query 2267 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(2,1)> --- !query 2267 output -0 - - --- !query 2268 -SELECT cast(1 as decimal(3, 1)) % cast(1 as tinyint) FROM t --- !query 2268 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(3,1)> --- !query 2268 output -0 - - --- !query 2269 -SELECT cast(1 as decimal(4, 1)) % cast(1 as tinyint) FROM t --- !query 2269 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):decimal(4,1)> --- !query 2269 output -0 - - --- !query 2270 -SELECT cast(1 as decimal(5, 1)) % cast(1 as tinyint) FROM t --- !query 2270 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):decimal(4,1)> --- !query 2270 output -0 - - --- !query 2271 -SELECT cast(1 as decimal(6, 1)) % cast(1 as tinyint) FROM t --- !query 2271 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):decimal(4,1)> --- !query 2271 output -0 - - --- !query 2272 -SELECT cast(1 as decimal(10, 1)) % cast(1 as tinyint) FROM t --- !query 2272 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):decimal(4,1)> --- !query 2272 output -0 - - --- !query 2273 -SELECT cast(1 as decimal(11, 1)) % cast(1 as tinyint) FROM t --- !query 2273 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):decimal(4,1)> --- !query 2273 output -0 - - --- !query 2274 -SELECT cast(1 as decimal(20, 1)) % cast(1 as tinyint) FROM t --- !query 2274 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):decimal(4,1)> --- !query 2274 output -0 - - --- !query 2275 -SELECT cast(1 as decimal(21, 1)) % cast(1 as tinyint) FROM t --- !query 2275 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):decimal(4,1)> --- !query 2275 output -0 - - --- !query 2276 -SELECT cast(1 as decimal(38, 1)) % cast(1 as tinyint) FROM t --- !query 2276 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):decimal(4,1)> --- !query 2276 output -0 - - --- !query 2277 -SELECT cast(1 as decimal(39, 1)) % cast(1 as tinyint) FROM t --- !query 2277 schema -struct<> --- !query 2277 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as tinyint) FROM t - - --- !query 2278 -SELECT cast(1 as decimal(1, 0)) % cast(1 as smallint) FROM t --- !query 2278 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(1,0)> --- !query 2278 output -0 - - --- !query 2279 -SELECT cast(1 as decimal(3, 0)) % cast(1 as smallint) FROM t --- !query 2279 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(3,0)> --- !query 2279 output -0 - - --- !query 2280 -SELECT cast(1 as decimal(4, 0)) % cast(1 as smallint) FROM t --- !query 2280 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):decimal(4,0)> --- !query 2280 output -0 - - --- !query 2281 -SELECT cast(1 as decimal(5, 0)) % cast(1 as smallint) FROM t --- !query 2281 schema -struct<(CAST(1 AS DECIMAL(5,0)) % CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):decimal(5,0)> --- !query 2281 output -0 - - --- !query 2282 -SELECT cast(1 as decimal(6, 0)) % cast(1 as smallint) FROM t --- !query 2282 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):decimal(5,0)> --- !query 2282 output -0 - - --- !query 2283 -SELECT cast(1 as decimal(10, 0)) % cast(1 as smallint) FROM t --- !query 2283 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):decimal(5,0)> --- !query 2283 output -0 - - --- !query 2284 -SELECT cast(1 as decimal(11, 0)) % cast(1 as smallint) FROM t --- !query 2284 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):decimal(5,0)> --- !query 2284 output -0 - - --- !query 2285 -SELECT cast(1 as decimal(20, 0)) % cast(1 as smallint) FROM t --- !query 2285 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):decimal(5,0)> --- !query 2285 output -0 - - --- !query 2286 -SELECT cast(1 as decimal(21, 0)) % cast(1 as smallint) FROM t --- !query 2286 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):decimal(5,0)> --- !query 2286 output -0 - - --- !query 2287 -SELECT cast(1 as decimal(38, 0)) % cast(1 as smallint) FROM t --- !query 2287 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):decimal(5,0)> --- !query 2287 output -0 - - --- !query 2288 -SELECT cast(1 as decimal(39, 0)) % cast(1 as smallint) FROM t --- !query 2288 schema -struct<> --- !query 2288 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as smallint) FROM t - - --- !query 2289 -SELECT cast(1 as decimal(1, 1)) % cast(1 as smallint) FROM t --- !query 2289 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(1,1)> --- !query 2289 output -NULL - - --- !query 2290 -SELECT cast(1 as decimal(2, 1)) % cast(1 as smallint) FROM t --- !query 2290 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(2,1)> --- !query 2290 output -0 - - --- !query 2291 -SELECT cast(1 as decimal(3, 1)) % cast(1 as smallint) FROM t --- !query 2291 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(3,1)> --- !query 2291 output -0 - - --- !query 2292 -SELECT cast(1 as decimal(4, 1)) % cast(1 as smallint) FROM t --- !query 2292 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(4,1)> --- !query 2292 output -0 - - --- !query 2293 -SELECT cast(1 as decimal(5, 1)) % cast(1 as smallint) FROM t --- !query 2293 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(5,1)> --- !query 2293 output -0 - - --- !query 2294 -SELECT cast(1 as decimal(6, 1)) % cast(1 as smallint) FROM t --- !query 2294 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):decimal(6,1)> --- !query 2294 output -0 - - --- !query 2295 -SELECT cast(1 as decimal(10, 1)) % cast(1 as smallint) FROM t --- !query 2295 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):decimal(6,1)> --- !query 2295 output -0 - - --- !query 2296 -SELECT cast(1 as decimal(11, 1)) % cast(1 as smallint) FROM t --- !query 2296 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):decimal(6,1)> --- !query 2296 output -0 - - --- !query 2297 -SELECT cast(1 as decimal(20, 1)) % cast(1 as smallint) FROM t --- !query 2297 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):decimal(6,1)> --- !query 2297 output -0 - - --- !query 2298 -SELECT cast(1 as decimal(21, 1)) % cast(1 as smallint) FROM t --- !query 2298 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):decimal(6,1)> --- !query 2298 output -0 - - --- !query 2299 -SELECT cast(1 as decimal(38, 1)) % cast(1 as smallint) FROM t --- !query 2299 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):decimal(6,1)> --- !query 2299 output -0 - - --- !query 2300 -SELECT cast(1 as decimal(39, 1)) % cast(1 as smallint) FROM t --- !query 2300 schema -struct<> --- !query 2300 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as smallint) FROM t - - --- !query 2301 -SELECT cast(1 as decimal(1, 0)) % cast(1 as int) FROM t --- !query 2301 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(1,0)> --- !query 2301 output -0 - - --- !query 2302 -SELECT cast(1 as decimal(3, 0)) % cast(1 as int) FROM t --- !query 2302 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> --- !query 2302 output -0 - - --- !query 2303 -SELECT cast(1 as decimal(4, 0)) % cast(1 as int) FROM t --- !query 2303 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(4,0)> --- !query 2303 output -0 - - --- !query 2304 -SELECT cast(1 as decimal(5, 0)) % cast(1 as int) FROM t --- !query 2304 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> --- !query 2304 output -0 - - --- !query 2305 -SELECT cast(1 as decimal(6, 0)) % cast(1 as int) FROM t --- !query 2305 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(6,0)> --- !query 2305 output -0 - - --- !query 2306 -SELECT cast(1 as decimal(10, 0)) % cast(1 as int) FROM t --- !query 2306 schema -struct<(CAST(1 AS DECIMAL(10,0)) % CAST(CAST(1 AS INT) AS DECIMAL(10,0))):decimal(10,0)> --- !query 2306 output -0 - - --- !query 2307 -SELECT cast(1 as decimal(11, 0)) % cast(1 as int) FROM t --- !query 2307 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(10,0)> --- !query 2307 output -0 - - --- !query 2308 -SELECT cast(1 as decimal(20, 0)) % cast(1 as int) FROM t --- !query 2308 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> --- !query 2308 output -0 - - --- !query 2309 -SELECT cast(1 as decimal(21, 0)) % cast(1 as int) FROM t --- !query 2309 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(10,0)> --- !query 2309 output -0 - - --- !query 2310 -SELECT cast(1 as decimal(38, 0)) % cast(1 as int) FROM t --- !query 2310 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(10,0)> --- !query 2310 output -0 - - --- !query 2311 -SELECT cast(1 as decimal(39, 0)) % cast(1 as int) FROM t --- !query 2311 schema -struct<> --- !query 2311 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as int) FROM t - - --- !query 2312 -SELECT cast(1 as decimal(1, 1)) % cast(1 as int) FROM t --- !query 2312 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(1,1)> --- !query 2312 output -NULL - - --- !query 2313 -SELECT cast(1 as decimal(2, 1)) % cast(1 as int) FROM t --- !query 2313 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(2,1)> --- !query 2313 output -0 - - --- !query 2314 -SELECT cast(1 as decimal(3, 1)) % cast(1 as int) FROM t --- !query 2314 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(3,1)> --- !query 2314 output -0 - - --- !query 2315 -SELECT cast(1 as decimal(4, 1)) % cast(1 as int) FROM t --- !query 2315 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(4,1)> --- !query 2315 output -0 - - --- !query 2316 -SELECT cast(1 as decimal(5, 1)) % cast(1 as int) FROM t --- !query 2316 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(5,1)> --- !query 2316 output -0 - - --- !query 2317 -SELECT cast(1 as decimal(6, 1)) % cast(1 as int) FROM t --- !query 2317 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(6,1)> --- !query 2317 output -0 - - --- !query 2318 -SELECT cast(1 as decimal(10, 1)) % cast(1 as int) FROM t --- !query 2318 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(10,1)> --- !query 2318 output -0 - - --- !query 2319 -SELECT cast(1 as decimal(11, 1)) % cast(1 as int) FROM t --- !query 2319 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(11,1)> --- !query 2319 output -0 - - --- !query 2320 -SELECT cast(1 as decimal(20, 1)) % cast(1 as int) FROM t --- !query 2320 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(11,1)> --- !query 2320 output -0 - - --- !query 2321 -SELECT cast(1 as decimal(21, 1)) % cast(1 as int) FROM t --- !query 2321 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(11,1)> --- !query 2321 output -0 - - --- !query 2322 -SELECT cast(1 as decimal(38, 1)) % cast(1 as int) FROM t --- !query 2322 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(11,1)> --- !query 2322 output -0 - - --- !query 2323 -SELECT cast(1 as decimal(39, 1)) % cast(1 as int) FROM t --- !query 2323 schema -struct<> --- !query 2323 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as int) FROM t - - --- !query 2324 -SELECT cast(1 as decimal(1, 0)) % cast(1 as bigint) FROM t --- !query 2324 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(1,0)> --- !query 2324 output -0 - - --- !query 2325 -SELECT cast(1 as decimal(3, 0)) % cast(1 as bigint) FROM t --- !query 2325 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(3,0)> --- !query 2325 output -0 - - --- !query 2326 -SELECT cast(1 as decimal(4, 0)) % cast(1 as bigint) FROM t --- !query 2326 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(4,0)> --- !query 2326 output -0 - - --- !query 2327 -SELECT cast(1 as decimal(5, 0)) % cast(1 as bigint) FROM t --- !query 2327 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(5,0)> --- !query 2327 output -0 - - --- !query 2328 -SELECT cast(1 as decimal(6, 0)) % cast(1 as bigint) FROM t --- !query 2328 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(6,0)> --- !query 2328 output -0 - - --- !query 2329 -SELECT cast(1 as decimal(10, 0)) % cast(1 as bigint) FROM t --- !query 2329 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(10,0)> --- !query 2329 output -0 - - --- !query 2330 -SELECT cast(1 as decimal(11, 0)) % cast(1 as bigint) FROM t --- !query 2330 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):decimal(11,0)> --- !query 2330 output -0 - - --- !query 2331 -SELECT cast(1 as decimal(20, 0)) % cast(1 as bigint) FROM t --- !query 2331 schema -struct<(CAST(1 AS DECIMAL(20,0)) % CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):decimal(20,0)> --- !query 2331 output -0 - - --- !query 2332 -SELECT cast(1 as decimal(21, 0)) % cast(1 as bigint) FROM t --- !query 2332 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):decimal(20,0)> --- !query 2332 output -0 - - --- !query 2333 -SELECT cast(1 as decimal(38, 0)) % cast(1 as bigint) FROM t --- !query 2333 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):decimal(20,0)> --- !query 2333 output -0 - - --- !query 2334 -SELECT cast(1 as decimal(39, 0)) % cast(1 as bigint) FROM t --- !query 2334 schema -struct<> --- !query 2334 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as bigint) FROM t - - --- !query 2335 -SELECT cast(1 as decimal(1, 1)) % cast(1 as bigint) FROM t --- !query 2335 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(1,1)> --- !query 2335 output -NULL - - --- !query 2336 -SELECT cast(1 as decimal(2, 1)) % cast(1 as bigint) FROM t --- !query 2336 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(2,1)> --- !query 2336 output -0 - - --- !query 2337 -SELECT cast(1 as decimal(3, 1)) % cast(1 as bigint) FROM t --- !query 2337 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(3,1)> --- !query 2337 output -0 - - --- !query 2338 -SELECT cast(1 as decimal(4, 1)) % cast(1 as bigint) FROM t --- !query 2338 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(4,1)> --- !query 2338 output -0 - - --- !query 2339 -SELECT cast(1 as decimal(5, 1)) % cast(1 as bigint) FROM t --- !query 2339 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(5,1)> --- !query 2339 output -0 - - --- !query 2340 -SELECT cast(1 as decimal(6, 1)) % cast(1 as bigint) FROM t --- !query 2340 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(6,1)> --- !query 2340 output -0 - - --- !query 2341 -SELECT cast(1 as decimal(10, 1)) % cast(1 as bigint) FROM t --- !query 2341 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(10,1)> --- !query 2341 output -0 - - --- !query 2342 -SELECT cast(1 as decimal(11, 1)) % cast(1 as bigint) FROM t --- !query 2342 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(11,1)> --- !query 2342 output -0 - - --- !query 2343 -SELECT cast(1 as decimal(20, 1)) % cast(1 as bigint) FROM t --- !query 2343 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(20,1)> --- !query 2343 output -0 - - --- !query 2344 -SELECT cast(1 as decimal(21, 1)) % cast(1 as bigint) FROM t --- !query 2344 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):decimal(21,1)> --- !query 2344 output -0 - - --- !query 2345 -SELECT cast(1 as decimal(38, 1)) % cast(1 as bigint) FROM t --- !query 2345 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):decimal(21,1)> --- !query 2345 output -0 - - --- !query 2346 -SELECT cast(1 as decimal(39, 1)) % cast(1 as bigint) FROM t --- !query 2346 schema -struct<> --- !query 2346 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as bigint) FROM t - - --- !query 2347 -SELECT cast(1 as decimal(1, 0)) % cast(1 as float) FROM t --- !query 2347 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2347 output -0.0 - - --- !query 2348 -SELECT cast(1 as decimal(3, 0)) % cast(1 as float) FROM t --- !query 2348 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2348 output -0.0 - - --- !query 2349 -SELECT cast(1 as decimal(4, 0)) % cast(1 as float) FROM t --- !query 2349 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2349 output -0.0 - - --- !query 2350 -SELECT cast(1 as decimal(5, 0)) % cast(1 as float) FROM t --- !query 2350 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2350 output -0.0 - - --- !query 2351 -SELECT cast(1 as decimal(6, 0)) % cast(1 as float) FROM t --- !query 2351 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2351 output -0.0 - - --- !query 2352 -SELECT cast(1 as decimal(10, 0)) % cast(1 as float) FROM t --- !query 2352 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2352 output -0.0 - - --- !query 2353 -SELECT cast(1 as decimal(11, 0)) % cast(1 as float) FROM t --- !query 2353 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2353 output -0.0 - - --- !query 2354 -SELECT cast(1 as decimal(20, 0)) % cast(1 as float) FROM t --- !query 2354 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2354 output -0.0 - - --- !query 2355 -SELECT cast(1 as decimal(21, 0)) % cast(1 as float) FROM t --- !query 2355 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2355 output -0.0 - - --- !query 2356 -SELECT cast(1 as decimal(38, 0)) % cast(1 as float) FROM t --- !query 2356 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2356 output -0.0 - - --- !query 2357 -SELECT cast(1 as decimal(39, 0)) % cast(1 as float) FROM t --- !query 2357 schema -struct<> --- !query 2357 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as float) FROM t - - --- !query 2358 -SELECT cast(1 as decimal(1, 1)) % cast(1 as float) FROM t --- !query 2358 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2358 output -NULL - - --- !query 2359 -SELECT cast(1 as decimal(2, 1)) % cast(1 as float) FROM t --- !query 2359 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2359 output -0.0 - - --- !query 2360 -SELECT cast(1 as decimal(3, 1)) % cast(1 as float) FROM t --- !query 2360 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2360 output -0.0 - - --- !query 2361 -SELECT cast(1 as decimal(4, 1)) % cast(1 as float) FROM t --- !query 2361 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2361 output -0.0 - - --- !query 2362 -SELECT cast(1 as decimal(5, 1)) % cast(1 as float) FROM t --- !query 2362 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2362 output -0.0 - - --- !query 2363 -SELECT cast(1 as decimal(6, 1)) % cast(1 as float) FROM t --- !query 2363 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2363 output -0.0 - - --- !query 2364 -SELECT cast(1 as decimal(10, 1)) % cast(1 as float) FROM t --- !query 2364 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2364 output -0.0 - - --- !query 2365 -SELECT cast(1 as decimal(11, 1)) % cast(1 as float) FROM t --- !query 2365 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2365 output -0.0 - - --- !query 2366 -SELECT cast(1 as decimal(20, 1)) % cast(1 as float) FROM t --- !query 2366 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2366 output -0.0 - - --- !query 2367 -SELECT cast(1 as decimal(21, 1)) % cast(1 as float) FROM t --- !query 2367 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2367 output -0.0 - - --- !query 2368 -SELECT cast(1 as decimal(38, 1)) % cast(1 as float) FROM t --- !query 2368 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) % CAST(CAST(1 AS FLOAT) AS DOUBLE)):double> --- !query 2368 output -0.0 - - --- !query 2369 -SELECT cast(1 as decimal(39, 1)) % cast(1 as float) FROM t --- !query 2369 schema -struct<> --- !query 2369 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as float) FROM t - - --- !query 2370 -SELECT cast(1 as decimal(1, 0)) % cast(1 as double) FROM t --- !query 2370 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2370 output -0.0 - - --- !query 2371 -SELECT cast(1 as decimal(3, 0)) % cast(1 as double) FROM t --- !query 2371 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2371 output -0.0 - - --- !query 2372 -SELECT cast(1 as decimal(4, 0)) % cast(1 as double) FROM t --- !query 2372 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2372 output -0.0 - - --- !query 2373 -SELECT cast(1 as decimal(5, 0)) % cast(1 as double) FROM t --- !query 2373 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2373 output -0.0 - - --- !query 2374 -SELECT cast(1 as decimal(6, 0)) % cast(1 as double) FROM t --- !query 2374 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2374 output -0.0 - - --- !query 2375 -SELECT cast(1 as decimal(10, 0)) % cast(1 as double) FROM t --- !query 2375 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2375 output -0.0 - - --- !query 2376 -SELECT cast(1 as decimal(11, 0)) % cast(1 as double) FROM t --- !query 2376 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2376 output -0.0 - - --- !query 2377 -SELECT cast(1 as decimal(20, 0)) % cast(1 as double) FROM t --- !query 2377 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2377 output -0.0 - - --- !query 2378 -SELECT cast(1 as decimal(21, 0)) % cast(1 as double) FROM t --- !query 2378 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2378 output -0.0 - - --- !query 2379 -SELECT cast(1 as decimal(38, 0)) % cast(1 as double) FROM t --- !query 2379 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2379 output -0.0 - - --- !query 2380 -SELECT cast(1 as decimal(39, 0)) % cast(1 as double) FROM t --- !query 2380 schema -struct<> --- !query 2380 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as double) FROM t - - --- !query 2381 -SELECT cast(1 as decimal(1, 1)) % cast(1 as double) FROM t --- !query 2381 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2381 output -NULL - - --- !query 2382 -SELECT cast(1 as decimal(2, 1)) % cast(1 as double) FROM t --- !query 2382 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2382 output -0.0 - - --- !query 2383 -SELECT cast(1 as decimal(3, 1)) % cast(1 as double) FROM t --- !query 2383 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2383 output -0.0 - - --- !query 2384 -SELECT cast(1 as decimal(4, 1)) % cast(1 as double) FROM t --- !query 2384 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2384 output -0.0 - - --- !query 2385 -SELECT cast(1 as decimal(5, 1)) % cast(1 as double) FROM t --- !query 2385 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2385 output -0.0 - - --- !query 2386 -SELECT cast(1 as decimal(6, 1)) % cast(1 as double) FROM t --- !query 2386 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2386 output -0.0 - - --- !query 2387 -SELECT cast(1 as decimal(10, 1)) % cast(1 as double) FROM t --- !query 2387 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2387 output -0.0 - - --- !query 2388 -SELECT cast(1 as decimal(11, 1)) % cast(1 as double) FROM t --- !query 2388 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2388 output -0.0 - - --- !query 2389 -SELECT cast(1 as decimal(20, 1)) % cast(1 as double) FROM t --- !query 2389 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2389 output -0.0 - - --- !query 2390 -SELECT cast(1 as decimal(21, 1)) % cast(1 as double) FROM t --- !query 2390 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2390 output -0.0 - - --- !query 2391 -SELECT cast(1 as decimal(38, 1)) % cast(1 as double) FROM t --- !query 2391 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) % CAST(1 AS DOUBLE)):double> --- !query 2391 output -0.0 - - --- !query 2392 -SELECT cast(1 as decimal(39, 1)) % cast(1 as double) FROM t --- !query 2392 schema -struct<> --- !query 2392 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as double) FROM t - - --- !query 2393 -SELECT cast(1 as decimal(1, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2393 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(1,0)> --- !query 2393 output -0 - - --- !query 2394 -SELECT cast(1 as decimal(3, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2394 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(3,0)> --- !query 2394 output -0 - - --- !query 2395 -SELECT cast(1 as decimal(4, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2395 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(4,0)> --- !query 2395 output -0 - - --- !query 2396 -SELECT cast(1 as decimal(5, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2396 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(5,0)> --- !query 2396 output -0 - - --- !query 2397 -SELECT cast(1 as decimal(6, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2397 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):decimal(6,0)> --- !query 2397 output -0 - - --- !query 2398 -SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2398 schema -struct<(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS DECIMAL(10,0))):decimal(10,0)> --- !query 2398 output -0 - - --- !query 2399 -SELECT cast(1 as decimal(11, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2399 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):decimal(10,0)> --- !query 2399 output -0 - - --- !query 2400 -SELECT cast(1 as decimal(20, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2400 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):decimal(10,0)> --- !query 2400 output -0 - - --- !query 2401 -SELECT cast(1 as decimal(21, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2401 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):decimal(10,0)> --- !query 2401 output -0 - - --- !query 2402 -SELECT cast(1 as decimal(38, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2402 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):decimal(10,0)> --- !query 2402 output -0 - - --- !query 2403 -SELECT cast(1 as decimal(39, 0)) % cast(1 as decimal(10, 0)) FROM t --- !query 2403 schema -struct<> --- !query 2403 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as decimal(10, 0)) FROM t - - --- !query 2404 -SELECT cast(1 as decimal(1, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2404 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(1,1)> --- !query 2404 output -NULL - - --- !query 2405 -SELECT cast(1 as decimal(2, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2405 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(2,1)> --- !query 2405 output -0 - - --- !query 2406 -SELECT cast(1 as decimal(3, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2406 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(3,1)> --- !query 2406 output -0 - - --- !query 2407 -SELECT cast(1 as decimal(4, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2407 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(4,1)> --- !query 2407 output -0 - - --- !query 2408 -SELECT cast(1 as decimal(5, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2408 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(5,1)> --- !query 2408 output -0 - - --- !query 2409 -SELECT cast(1 as decimal(6, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2409 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(6,1)> --- !query 2409 output -0 - - --- !query 2410 -SELECT cast(1 as decimal(10, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2410 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(10,1)> --- !query 2410 output -0 - - --- !query 2411 -SELECT cast(1 as decimal(11, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2411 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):decimal(11,1)> --- !query 2411 output -0 - - --- !query 2412 -SELECT cast(1 as decimal(20, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2412 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):decimal(11,1)> --- !query 2412 output -0 - - --- !query 2413 -SELECT cast(1 as decimal(21, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2413 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):decimal(11,1)> --- !query 2413 output -0 - - --- !query 2414 -SELECT cast(1 as decimal(38, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2414 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) % CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):decimal(11,1)> --- !query 2414 output -0 - - --- !query 2415 -SELECT cast(1 as decimal(39, 1)) % cast(1 as decimal(10, 0)) FROM t --- !query 2415 schema -struct<> --- !query 2415 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as decimal(10, 0)) FROM t - - --- !query 2416 -SELECT cast(1 as decimal(1, 0)) % cast(1 as string) FROM t --- !query 2416 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2416 output -0.0 - - --- !query 2417 -SELECT cast(1 as decimal(3, 0)) % cast(1 as string) FROM t --- !query 2417 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2417 output -0.0 - - --- !query 2418 -SELECT cast(1 as decimal(4, 0)) % cast(1 as string) FROM t --- !query 2418 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2418 output -0.0 - - --- !query 2419 -SELECT cast(1 as decimal(5, 0)) % cast(1 as string) FROM t --- !query 2419 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2419 output -0.0 - - --- !query 2420 -SELECT cast(1 as decimal(6, 0)) % cast(1 as string) FROM t --- !query 2420 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2420 output -0.0 - - --- !query 2421 -SELECT cast(1 as decimal(10, 0)) % cast(1 as string) FROM t --- !query 2421 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2421 output -0.0 - - --- !query 2422 -SELECT cast(1 as decimal(11, 0)) % cast(1 as string) FROM t --- !query 2422 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2422 output -0.0 - - --- !query 2423 -SELECT cast(1 as decimal(20, 0)) % cast(1 as string) FROM t --- !query 2423 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2423 output -0.0 - - --- !query 2424 -SELECT cast(1 as decimal(21, 0)) % cast(1 as string) FROM t --- !query 2424 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2424 output -0.0 - - --- !query 2425 -SELECT cast(1 as decimal(38, 0)) % cast(1 as string) FROM t --- !query 2425 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2425 output -0.0 - - --- !query 2426 -SELECT cast(1 as decimal(39, 0)) % cast(1 as string) FROM t --- !query 2426 schema -struct<> --- !query 2426 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as string) FROM t - - --- !query 2427 -SELECT cast(1 as decimal(1, 1)) % cast(1 as string) FROM t --- !query 2427 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2427 output -NULL - - --- !query 2428 -SELECT cast(1 as decimal(2, 1)) % cast(1 as string) FROM t --- !query 2428 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2428 output -0.0 - - --- !query 2429 -SELECT cast(1 as decimal(3, 1)) % cast(1 as string) FROM t --- !query 2429 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2429 output -0.0 - - --- !query 2430 -SELECT cast(1 as decimal(4, 1)) % cast(1 as string) FROM t --- !query 2430 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2430 output -0.0 - - --- !query 2431 -SELECT cast(1 as decimal(5, 1)) % cast(1 as string) FROM t --- !query 2431 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2431 output -0.0 - - --- !query 2432 -SELECT cast(1 as decimal(6, 1)) % cast(1 as string) FROM t --- !query 2432 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2432 output -0.0 - - --- !query 2433 -SELECT cast(1 as decimal(10, 1)) % cast(1 as string) FROM t --- !query 2433 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2433 output -0.0 - - --- !query 2434 -SELECT cast(1 as decimal(11, 1)) % cast(1 as string) FROM t --- !query 2434 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2434 output -0.0 - - --- !query 2435 -SELECT cast(1 as decimal(20, 1)) % cast(1 as string) FROM t --- !query 2435 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2435 output -0.0 - - --- !query 2436 -SELECT cast(1 as decimal(21, 1)) % cast(1 as string) FROM t --- !query 2436 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2436 output -0.0 - - --- !query 2437 -SELECT cast(1 as decimal(38, 1)) % cast(1 as string) FROM t --- !query 2437 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) % CAST(CAST(1 AS STRING) AS DOUBLE)):double> --- !query 2437 output -0.0 - - --- !query 2438 -SELECT cast(1 as decimal(39, 1)) % cast(1 as string) FROM t --- !query 2438 schema -struct<> --- !query 2438 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as string) FROM t - - --- !query 2439 -SELECT cast(1 as decimal(1, 0)) % cast('1' as binary) FROM t --- !query 2439 schema -struct<> --- !query 2439 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 2440 -SELECT cast(1 as decimal(3, 0)) % cast('1' as binary) FROM t --- !query 2440 schema -struct<> --- !query 2440 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 2441 -SELECT cast(1 as decimal(4, 0)) % cast('1' as binary) FROM t --- !query 2441 schema -struct<> --- !query 2441 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 2442 -SELECT cast(1 as decimal(5, 0)) % cast('1' as binary) FROM t --- !query 2442 schema -struct<> --- !query 2442 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 2443 -SELECT cast(1 as decimal(6, 0)) % cast('1' as binary) FROM t --- !query 2443 schema -struct<> --- !query 2443 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 2444 -SELECT cast(1 as decimal(10, 0)) % cast('1' as binary) FROM t --- !query 2444 schema -struct<> --- !query 2444 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 2445 -SELECT cast(1 as decimal(11, 0)) % cast('1' as binary) FROM t --- !query 2445 schema -struct<> --- !query 2445 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 2446 -SELECT cast(1 as decimal(20, 0)) % cast('1' as binary) FROM t --- !query 2446 schema -struct<> --- !query 2446 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 2447 -SELECT cast(1 as decimal(21, 0)) % cast('1' as binary) FROM t --- !query 2447 schema -struct<> --- !query 2447 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 2448 -SELECT cast(1 as decimal(38, 0)) % cast('1' as binary) FROM t --- !query 2448 schema -struct<> --- !query 2448 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 2449 -SELECT cast(1 as decimal(39, 0)) % cast('1' as binary) FROM t --- !query 2449 schema -struct<> --- !query 2449 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast('1' as binary) FROM t - - --- !query 2450 -SELECT cast(1 as decimal(1, 1)) % cast('1' as binary) FROM t --- !query 2450 schema -struct<> --- !query 2450 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 2451 -SELECT cast(1 as decimal(2, 1)) % cast('1' as binary) FROM t --- !query 2451 schema -struct<> --- !query 2451 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 2452 -SELECT cast(1 as decimal(3, 1)) % cast('1' as binary) FROM t --- !query 2452 schema -struct<> --- !query 2452 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 2453 -SELECT cast(1 as decimal(4, 1)) % cast('1' as binary) FROM t --- !query 2453 schema -struct<> --- !query 2453 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 2454 -SELECT cast(1 as decimal(5, 1)) % cast('1' as binary) FROM t --- !query 2454 schema -struct<> --- !query 2454 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 2455 -SELECT cast(1 as decimal(6, 1)) % cast('1' as binary) FROM t --- !query 2455 schema -struct<> --- !query 2455 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 2456 -SELECT cast(1 as decimal(10, 1)) % cast('1' as binary) FROM t --- !query 2456 schema -struct<> --- !query 2456 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 2457 -SELECT cast(1 as decimal(11, 1)) % cast('1' as binary) FROM t --- !query 2457 schema -struct<> --- !query 2457 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 2458 -SELECT cast(1 as decimal(20, 1)) % cast('1' as binary) FROM t --- !query 2458 schema -struct<> --- !query 2458 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 2459 -SELECT cast(1 as decimal(21, 1)) % cast('1' as binary) FROM t --- !query 2459 schema -struct<> --- !query 2459 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 2460 -SELECT cast(1 as decimal(38, 1)) % cast('1' as binary) FROM t --- !query 2460 schema -struct<> --- !query 2460 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 2461 -SELECT cast(1 as decimal(39, 1)) % cast('1' as binary) FROM t --- !query 2461 schema -struct<> --- !query 2461 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast('1' as binary) FROM t - - --- !query 2462 -SELECT cast(1 as decimal(1, 0)) % cast(1 as boolean) FROM t --- !query 2462 schema -struct<> --- !query 2462 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 2463 -SELECT cast(1 as decimal(3, 0)) % cast(1 as boolean) FROM t --- !query 2463 schema -struct<> --- !query 2463 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 2464 -SELECT cast(1 as decimal(4, 0)) % cast(1 as boolean) FROM t --- !query 2464 schema -struct<> --- !query 2464 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 2465 -SELECT cast(1 as decimal(5, 0)) % cast(1 as boolean) FROM t --- !query 2465 schema -struct<> --- !query 2465 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 2466 -SELECT cast(1 as decimal(6, 0)) % cast(1 as boolean) FROM t --- !query 2466 schema -struct<> --- !query 2466 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 2467 -SELECT cast(1 as decimal(10, 0)) % cast(1 as boolean) FROM t --- !query 2467 schema -struct<> --- !query 2467 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 2468 -SELECT cast(1 as decimal(11, 0)) % cast(1 as boolean) FROM t --- !query 2468 schema -struct<> --- !query 2468 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 2469 -SELECT cast(1 as decimal(20, 0)) % cast(1 as boolean) FROM t --- !query 2469 schema -struct<> --- !query 2469 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 2470 -SELECT cast(1 as decimal(21, 0)) % cast(1 as boolean) FROM t --- !query 2470 schema -struct<> --- !query 2470 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 2471 -SELECT cast(1 as decimal(38, 0)) % cast(1 as boolean) FROM t --- !query 2471 schema -struct<> --- !query 2471 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 2472 -SELECT cast(1 as decimal(39, 0)) % cast(1 as boolean) FROM t --- !query 2472 schema -struct<> --- !query 2472 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast(1 as boolean) FROM t - - --- !query 2473 -SELECT cast(1 as decimal(1, 1)) % cast(1 as boolean) FROM t --- !query 2473 schema -struct<> --- !query 2473 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 2474 -SELECT cast(1 as decimal(2, 1)) % cast(1 as boolean) FROM t --- !query 2474 schema -struct<> --- !query 2474 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 2475 -SELECT cast(1 as decimal(3, 1)) % cast(1 as boolean) FROM t --- !query 2475 schema -struct<> --- !query 2475 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 2476 -SELECT cast(1 as decimal(4, 1)) % cast(1 as boolean) FROM t --- !query 2476 schema -struct<> --- !query 2476 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 2477 -SELECT cast(1 as decimal(5, 1)) % cast(1 as boolean) FROM t --- !query 2477 schema -struct<> --- !query 2477 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 2478 -SELECT cast(1 as decimal(6, 1)) % cast(1 as boolean) FROM t --- !query 2478 schema -struct<> --- !query 2478 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 2479 -SELECT cast(1 as decimal(10, 1)) % cast(1 as boolean) FROM t --- !query 2479 schema -struct<> --- !query 2479 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 2480 -SELECT cast(1 as decimal(11, 1)) % cast(1 as boolean) FROM t --- !query 2480 schema -struct<> --- !query 2480 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 2481 -SELECT cast(1 as decimal(20, 1)) % cast(1 as boolean) FROM t --- !query 2481 schema -struct<> --- !query 2481 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 2482 -SELECT cast(1 as decimal(21, 1)) % cast(1 as boolean) FROM t --- !query 2482 schema -struct<> --- !query 2482 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 2483 -SELECT cast(1 as decimal(38, 1)) % cast(1 as boolean) FROM t --- !query 2483 schema -struct<> --- !query 2483 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 2484 -SELECT cast(1 as decimal(39, 1)) % cast(1 as boolean) FROM t --- !query 2484 schema -struct<> --- !query 2484 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast(1 as boolean) FROM t - - --- !query 2485 -SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2485 schema -struct<> --- !query 2485 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 2486 -SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2486 schema -struct<> --- !query 2486 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 2487 -SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2487 schema -struct<> --- !query 2487 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 2488 -SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2488 schema -struct<> --- !query 2488 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 2489 -SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2489 schema -struct<> --- !query 2489 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 2490 -SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2490 schema -struct<> --- !query 2490 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 2491 -SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2491 schema -struct<> --- !query 2491 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 2492 -SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2492 schema -struct<> --- !query 2492 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 2493 -SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2493 schema -struct<> --- !query 2493 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 2494 -SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2494 schema -struct<> --- !query 2494 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 2495 -SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2495 schema -struct<> --- !query 2495 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 2496 -SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2496 schema -struct<> --- !query 2496 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 2497 -SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2497 schema -struct<> --- !query 2497 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 2498 -SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2498 schema -struct<> --- !query 2498 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 2499 -SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2499 schema -struct<> --- !query 2499 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 2500 -SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2500 schema -struct<> --- !query 2500 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 2501 -SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2501 schema -struct<> --- !query 2501 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 2502 -SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2502 schema -struct<> --- !query 2502 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 2503 -SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2503 schema -struct<> --- !query 2503 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 2504 -SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2504 schema -struct<> --- !query 2504 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 2505 -SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2505 schema -struct<> --- !query 2505 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 2506 -SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2506 schema -struct<> --- !query 2506 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 2507 -SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 2507 schema -struct<> --- !query 2507 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 2508 -SELECT cast(1 as decimal(1, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2508 schema -struct<> --- !query 2508 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 2509 -SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2509 schema -struct<> --- !query 2509 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 2510 -SELECT cast(1 as decimal(4, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2510 schema -struct<> --- !query 2510 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 2511 -SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2511 schema -struct<> --- !query 2511 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 2512 -SELECT cast(1 as decimal(6, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2512 schema -struct<> --- !query 2512 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 2513 -SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2513 schema -struct<> --- !query 2513 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 2514 -SELECT cast(1 as decimal(11, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2514 schema -struct<> --- !query 2514 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 2515 -SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2515 schema -struct<> --- !query 2515 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 2516 -SELECT cast(1 as decimal(21, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2516 schema -struct<> --- !query 2516 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 2517 -SELECT cast(1 as decimal(38, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2517 schema -struct<> --- !query 2517 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 2518 -SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2518 schema -struct<> --- !query 2518 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) % cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 2519 -SELECT cast(1 as decimal(1, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2519 schema -struct<> --- !query 2519 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 2520 -SELECT cast(1 as decimal(2, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2520 schema -struct<> --- !query 2520 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 2521 -SELECT cast(1 as decimal(3, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2521 schema -struct<> --- !query 2521 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 2522 -SELECT cast(1 as decimal(4, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2522 schema -struct<> --- !query 2522 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 2523 -SELECT cast(1 as decimal(5, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2523 schema -struct<> --- !query 2523 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 2524 -SELECT cast(1 as decimal(6, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2524 schema -struct<> --- !query 2524 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 2525 -SELECT cast(1 as decimal(10, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2525 schema -struct<> --- !query 2525 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 2526 -SELECT cast(1 as decimal(11, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2526 schema -struct<> --- !query 2526 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 2527 -SELECT cast(1 as decimal(20, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2527 schema -struct<> --- !query 2527 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 2528 -SELECT cast(1 as decimal(21, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2528 schema -struct<> --- !query 2528 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 2529 -SELECT cast(1 as decimal(38, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2529 schema -struct<> --- !query 2529 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) % CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 2530 -SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00' as date) FROM t --- !query 2530 schema -struct<> --- !query 2530 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) % cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 2531 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 0))) FROM t --- !query 2531 schema -struct --- !query 2531 output -0 - - --- !query 2532 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 0))) FROM t --- !query 2532 schema -struct --- !query 2532 output -0 - - --- !query 2533 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 0))) FROM t --- !query 2533 schema -struct --- !query 2533 output -0 - - --- !query 2534 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 0))) FROM t --- !query 2534 schema -struct --- !query 2534 output -0 - - --- !query 2535 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 0))) FROM t --- !query 2535 schema -struct --- !query 2535 output -0 - - --- !query 2536 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t --- !query 2536 schema -struct --- !query 2536 output -0 - - --- !query 2537 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 0))) FROM t --- !query 2537 schema -struct --- !query 2537 output -0 - - --- !query 2538 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 0))) FROM t --- !query 2538 schema -struct --- !query 2538 output -0 - - --- !query 2539 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 0))) FROM t --- !query 2539 schema -struct --- !query 2539 output -0 - - --- !query 2540 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 0))) FROM t --- !query 2540 schema -struct --- !query 2540 output -0 - - --- !query 2541 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 0))) FROM t --- !query 2541 schema -struct<> --- !query 2541 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 0))) FROM t - - --- !query 2542 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(1, 1))) FROM t --- !query 2542 schema -struct --- !query 2542 output -NULL - - --- !query 2543 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(2, 1))) FROM t --- !query 2543 schema -struct --- !query 2543 output -0 - - --- !query 2544 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 1))) FROM t --- !query 2544 schema -struct --- !query 2544 output -0 - - --- !query 2545 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(4, 1))) FROM t --- !query 2545 schema -struct --- !query 2545 output -0 - - --- !query 2546 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 1))) FROM t --- !query 2546 schema -struct --- !query 2546 output -0 - - --- !query 2547 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(6, 1))) FROM t --- !query 2547 schema -struct --- !query 2547 output -0 - - --- !query 2548 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 1))) FROM t --- !query 2548 schema -struct --- !query 2548 output -0 - - --- !query 2549 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(11, 1))) FROM t --- !query 2549 schema -struct --- !query 2549 output -0 - - --- !query 2550 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 1))) FROM t --- !query 2550 schema -struct --- !query 2550 output -0 - - --- !query 2551 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(21, 1))) FROM t --- !query 2551 schema -struct --- !query 2551 output -0 - - --- !query 2552 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(38, 1))) FROM t --- !query 2552 schema -struct --- !query 2552 output -0 - - --- !query 2553 -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 1))) FROM t --- !query 2553 schema -struct<> --- !query 2553 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as tinyint), cast(1 as decimal(39, 1))) FROM t - - --- !query 2554 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 0))) FROM t --- !query 2554 schema -struct --- !query 2554 output -0 - - --- !query 2555 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 0))) FROM t --- !query 2555 schema -struct --- !query 2555 output -0 - - --- !query 2556 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 0))) FROM t --- !query 2556 schema -struct --- !query 2556 output -0 - - --- !query 2557 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 0))) FROM t --- !query 2557 schema -struct --- !query 2557 output -0 - - --- !query 2558 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 0))) FROM t --- !query 2558 schema -struct --- !query 2558 output -0 - - --- !query 2559 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t --- !query 2559 schema -struct --- !query 2559 output -0 - - --- !query 2560 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 0))) FROM t --- !query 2560 schema -struct --- !query 2560 output -0 - - --- !query 2561 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 0))) FROM t --- !query 2561 schema -struct --- !query 2561 output -0 - - --- !query 2562 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 0))) FROM t --- !query 2562 schema -struct --- !query 2562 output -0 - - --- !query 2563 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 0))) FROM t --- !query 2563 schema -struct --- !query 2563 output -0 - - --- !query 2564 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 0))) FROM t --- !query 2564 schema -struct<> --- !query 2564 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 0))) FROM t - - --- !query 2565 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(1, 1))) FROM t --- !query 2565 schema -struct --- !query 2565 output -NULL - - --- !query 2566 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(2, 1))) FROM t --- !query 2566 schema -struct --- !query 2566 output -0 - - --- !query 2567 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 1))) FROM t --- !query 2567 schema -struct --- !query 2567 output -0 - - --- !query 2568 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(4, 1))) FROM t --- !query 2568 schema -struct --- !query 2568 output -0 - - --- !query 2569 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 1))) FROM t --- !query 2569 schema -struct --- !query 2569 output -0 - - --- !query 2570 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(6, 1))) FROM t --- !query 2570 schema -struct --- !query 2570 output -0 - - --- !query 2571 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 1))) FROM t --- !query 2571 schema -struct --- !query 2571 output -0 - - --- !query 2572 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(11, 1))) FROM t --- !query 2572 schema -struct --- !query 2572 output -0 - - --- !query 2573 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 1))) FROM t --- !query 2573 schema -struct --- !query 2573 output -0 - - --- !query 2574 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(21, 1))) FROM t --- !query 2574 schema -struct --- !query 2574 output -0 - - --- !query 2575 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(38, 1))) FROM t --- !query 2575 schema -struct --- !query 2575 output -0 - - --- !query 2576 -SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 1))) FROM t --- !query 2576 schema -struct<> --- !query 2576 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as smallint), cast(1 as decimal(39, 1))) FROM t - - --- !query 2577 -SELECT pmod(cast(1 as int), cast(1 as decimal(1, 0))) FROM t --- !query 2577 schema -struct --- !query 2577 output -0 - - --- !query 2578 -SELECT pmod(cast(1 as int), cast(1 as decimal(3, 0))) FROM t --- !query 2578 schema -struct --- !query 2578 output -0 - - --- !query 2579 -SELECT pmod(cast(1 as int), cast(1 as decimal(4, 0))) FROM t --- !query 2579 schema -struct --- !query 2579 output -0 - - --- !query 2580 -SELECT pmod(cast(1 as int), cast(1 as decimal(5, 0))) FROM t --- !query 2580 schema -struct --- !query 2580 output -0 - - --- !query 2581 -SELECT pmod(cast(1 as int), cast(1 as decimal(6, 0))) FROM t --- !query 2581 schema -struct --- !query 2581 output -0 - - --- !query 2582 -SELECT pmod(cast(1 as int), cast(1 as decimal(10, 0))) FROM t --- !query 2582 schema -struct --- !query 2582 output -0 - - --- !query 2583 -SELECT pmod(cast(1 as int), cast(1 as decimal(11, 0))) FROM t --- !query 2583 schema -struct --- !query 2583 output -0 - - --- !query 2584 -SELECT pmod(cast(1 as int), cast(1 as decimal(20, 0))) FROM t --- !query 2584 schema -struct --- !query 2584 output -0 - - --- !query 2585 -SELECT pmod(cast(1 as int), cast(1 as decimal(21, 0))) FROM t --- !query 2585 schema -struct --- !query 2585 output -0 - - --- !query 2586 -SELECT pmod(cast(1 as int), cast(1 as decimal(38, 0))) FROM t --- !query 2586 schema -struct --- !query 2586 output -0 - - --- !query 2587 -SELECT pmod(cast(1 as int), cast(1 as decimal(39, 0))) FROM t --- !query 2587 schema -struct<> --- !query 2587 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as int), cast(1 as decimal(39, 0))) FROM t - - --- !query 2588 -SELECT pmod(cast(1 as int), cast(1 as decimal(1, 1))) FROM t --- !query 2588 schema -struct --- !query 2588 output -NULL - - --- !query 2589 -SELECT pmod(cast(1 as int), cast(1 as decimal(2, 1))) FROM t --- !query 2589 schema -struct --- !query 2589 output -0 - - --- !query 2590 -SELECT pmod(cast(1 as int), cast(1 as decimal(3, 1))) FROM t --- !query 2590 schema -struct --- !query 2590 output -0 - - --- !query 2591 -SELECT pmod(cast(1 as int), cast(1 as decimal(4, 1))) FROM t --- !query 2591 schema -struct --- !query 2591 output -0 - - --- !query 2592 -SELECT pmod(cast(1 as int), cast(1 as decimal(5, 1))) FROM t --- !query 2592 schema -struct --- !query 2592 output -0 - - --- !query 2593 -SELECT pmod(cast(1 as int), cast(1 as decimal(6, 1))) FROM t --- !query 2593 schema -struct --- !query 2593 output -0 - - --- !query 2594 -SELECT pmod(cast(1 as int), cast(1 as decimal(10, 1))) FROM t --- !query 2594 schema -struct --- !query 2594 output -0 - - --- !query 2595 -SELECT pmod(cast(1 as int), cast(1 as decimal(11, 1))) FROM t --- !query 2595 schema -struct --- !query 2595 output -0 - - --- !query 2596 -SELECT pmod(cast(1 as int), cast(1 as decimal(20, 1))) FROM t --- !query 2596 schema -struct --- !query 2596 output -0 - - --- !query 2597 -SELECT pmod(cast(1 as int), cast(1 as decimal(21, 1))) FROM t --- !query 2597 schema -struct --- !query 2597 output -0 - - --- !query 2598 -SELECT pmod(cast(1 as int), cast(1 as decimal(38, 1))) FROM t --- !query 2598 schema -struct --- !query 2598 output -0 - - --- !query 2599 -SELECT pmod(cast(1 as int), cast(1 as decimal(39, 1))) FROM t --- !query 2599 schema -struct<> --- !query 2599 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as int), cast(1 as decimal(39, 1))) FROM t - - --- !query 2600 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 0))) FROM t --- !query 2600 schema -struct --- !query 2600 output -0 - - --- !query 2601 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 0))) FROM t --- !query 2601 schema -struct --- !query 2601 output -0 - - --- !query 2602 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 0))) FROM t --- !query 2602 schema -struct --- !query 2602 output -0 - - --- !query 2603 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 0))) FROM t --- !query 2603 schema -struct --- !query 2603 output -0 - - --- !query 2604 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 0))) FROM t --- !query 2604 schema -struct --- !query 2604 output -0 - - --- !query 2605 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t --- !query 2605 schema -struct --- !query 2605 output -0 - - --- !query 2606 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 0))) FROM t --- !query 2606 schema -struct --- !query 2606 output -0 - - --- !query 2607 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 0))) FROM t --- !query 2607 schema -struct --- !query 2607 output -0 - - --- !query 2608 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 0))) FROM t --- !query 2608 schema -struct --- !query 2608 output -0 - - --- !query 2609 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 0))) FROM t --- !query 2609 schema -struct --- !query 2609 output -0 - - --- !query 2610 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 0))) FROM t --- !query 2610 schema -struct<> --- !query 2610 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 0))) FROM t - - --- !query 2611 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(1, 1))) FROM t --- !query 2611 schema -struct --- !query 2611 output -NULL - - --- !query 2612 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(2, 1))) FROM t --- !query 2612 schema -struct --- !query 2612 output -0 - - --- !query 2613 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 1))) FROM t --- !query 2613 schema -struct --- !query 2613 output -0 - - --- !query 2614 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(4, 1))) FROM t --- !query 2614 schema -struct --- !query 2614 output -0 - - --- !query 2615 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 1))) FROM t --- !query 2615 schema -struct --- !query 2615 output -0 - - --- !query 2616 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(6, 1))) FROM t --- !query 2616 schema -struct --- !query 2616 output -0 - - --- !query 2617 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 1))) FROM t --- !query 2617 schema -struct --- !query 2617 output -0 - - --- !query 2618 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(11, 1))) FROM t --- !query 2618 schema -struct --- !query 2618 output -0 - - --- !query 2619 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 1))) FROM t --- !query 2619 schema -struct --- !query 2619 output -0 - - --- !query 2620 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(21, 1))) FROM t --- !query 2620 schema -struct --- !query 2620 output -0 - - --- !query 2621 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(38, 1))) FROM t --- !query 2621 schema -struct --- !query 2621 output -0 - - --- !query 2622 -SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 1))) FROM t --- !query 2622 schema -struct<> --- !query 2622 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as bigint), cast(1 as decimal(39, 1))) FROM t - - --- !query 2623 -SELECT pmod(cast(1 as float), cast(1 as decimal(1, 0))) FROM t --- !query 2623 schema -struct --- !query 2623 output -0.0 - - --- !query 2624 -SELECT pmod(cast(1 as float), cast(1 as decimal(3, 0))) FROM t --- !query 2624 schema -struct --- !query 2624 output -0.0 - - --- !query 2625 -SELECT pmod(cast(1 as float), cast(1 as decimal(4, 0))) FROM t --- !query 2625 schema -struct --- !query 2625 output -0.0 - - --- !query 2626 -SELECT pmod(cast(1 as float), cast(1 as decimal(5, 0))) FROM t --- !query 2626 schema -struct --- !query 2626 output -0.0 - - --- !query 2627 -SELECT pmod(cast(1 as float), cast(1 as decimal(6, 0))) FROM t --- !query 2627 schema -struct --- !query 2627 output -0.0 - - --- !query 2628 -SELECT pmod(cast(1 as float), cast(1 as decimal(10, 0))) FROM t --- !query 2628 schema -struct --- !query 2628 output -0.0 - - --- !query 2629 -SELECT pmod(cast(1 as float), cast(1 as decimal(11, 0))) FROM t --- !query 2629 schema -struct --- !query 2629 output -0.0 - - --- !query 2630 -SELECT pmod(cast(1 as float), cast(1 as decimal(20, 0))) FROM t --- !query 2630 schema -struct --- !query 2630 output -0.0 - - --- !query 2631 -SELECT pmod(cast(1 as float), cast(1 as decimal(21, 0))) FROM t --- !query 2631 schema -struct --- !query 2631 output -0.0 - - --- !query 2632 -SELECT pmod(cast(1 as float), cast(1 as decimal(38, 0))) FROM t --- !query 2632 schema -struct --- !query 2632 output -0.0 - - --- !query 2633 -SELECT pmod(cast(1 as float), cast(1 as decimal(39, 0))) FROM t --- !query 2633 schema -struct<> --- !query 2633 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as float), cast(1 as decimal(39, 0))) FROM t - - --- !query 2634 -SELECT pmod(cast(1 as float), cast(1 as decimal(1, 1))) FROM t --- !query 2634 schema -struct --- !query 2634 output -NULL - - --- !query 2635 -SELECT pmod(cast(1 as float), cast(1 as decimal(2, 1))) FROM t --- !query 2635 schema -struct --- !query 2635 output -0.0 - - --- !query 2636 -SELECT pmod(cast(1 as float), cast(1 as decimal(3, 1))) FROM t --- !query 2636 schema -struct --- !query 2636 output -0.0 - - --- !query 2637 -SELECT pmod(cast(1 as float), cast(1 as decimal(4, 1))) FROM t --- !query 2637 schema -struct --- !query 2637 output -0.0 - - --- !query 2638 -SELECT pmod(cast(1 as float), cast(1 as decimal(5, 1))) FROM t --- !query 2638 schema -struct --- !query 2638 output -0.0 - - --- !query 2639 -SELECT pmod(cast(1 as float), cast(1 as decimal(6, 1))) FROM t --- !query 2639 schema -struct --- !query 2639 output -0.0 - - --- !query 2640 -SELECT pmod(cast(1 as float), cast(1 as decimal(10, 1))) FROM t --- !query 2640 schema -struct --- !query 2640 output -0.0 - - --- !query 2641 -SELECT pmod(cast(1 as float), cast(1 as decimal(11, 1))) FROM t --- !query 2641 schema -struct --- !query 2641 output -0.0 - - --- !query 2642 -SELECT pmod(cast(1 as float), cast(1 as decimal(20, 1))) FROM t --- !query 2642 schema -struct --- !query 2642 output -0.0 - - --- !query 2643 -SELECT pmod(cast(1 as float), cast(1 as decimal(21, 1))) FROM t --- !query 2643 schema -struct --- !query 2643 output -0.0 - - --- !query 2644 -SELECT pmod(cast(1 as float), cast(1 as decimal(38, 1))) FROM t --- !query 2644 schema -struct --- !query 2644 output -0.0 - - --- !query 2645 -SELECT pmod(cast(1 as float), cast(1 as decimal(39, 1))) FROM t --- !query 2645 schema -struct<> --- !query 2645 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as float), cast(1 as decimal(39, 1))) FROM t - - --- !query 2646 -SELECT pmod(cast(1 as double), cast(1 as decimal(1, 0))) FROM t --- !query 2646 schema -struct --- !query 2646 output -0.0 - - --- !query 2647 -SELECT pmod(cast(1 as double), cast(1 as decimal(3, 0))) FROM t --- !query 2647 schema -struct --- !query 2647 output -0.0 - - --- !query 2648 -SELECT pmod(cast(1 as double), cast(1 as decimal(4, 0))) FROM t --- !query 2648 schema -struct --- !query 2648 output -0.0 - - --- !query 2649 -SELECT pmod(cast(1 as double), cast(1 as decimal(5, 0))) FROM t --- !query 2649 schema -struct --- !query 2649 output -0.0 - - --- !query 2650 -SELECT pmod(cast(1 as double), cast(1 as decimal(6, 0))) FROM t --- !query 2650 schema -struct --- !query 2650 output -0.0 - - --- !query 2651 -SELECT pmod(cast(1 as double), cast(1 as decimal(10, 0))) FROM t --- !query 2651 schema -struct --- !query 2651 output -0.0 - - --- !query 2652 -SELECT pmod(cast(1 as double), cast(1 as decimal(11, 0))) FROM t --- !query 2652 schema -struct --- !query 2652 output -0.0 - - --- !query 2653 -SELECT pmod(cast(1 as double), cast(1 as decimal(20, 0))) FROM t --- !query 2653 schema -struct --- !query 2653 output -0.0 - - --- !query 2654 -SELECT pmod(cast(1 as double), cast(1 as decimal(21, 0))) FROM t --- !query 2654 schema -struct --- !query 2654 output -0.0 - - --- !query 2655 -SELECT pmod(cast(1 as double), cast(1 as decimal(38, 0))) FROM t --- !query 2655 schema -struct --- !query 2655 output -0.0 - - --- !query 2656 -SELECT pmod(cast(1 as double), cast(1 as decimal(39, 0))) FROM t --- !query 2656 schema -struct<> --- !query 2656 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as double), cast(1 as decimal(39, 0))) FROM t - - --- !query 2657 -SELECT pmod(cast(1 as double), cast(1 as decimal(1, 1))) FROM t --- !query 2657 schema -struct --- !query 2657 output -NULL - - --- !query 2658 -SELECT pmod(cast(1 as double), cast(1 as decimal(2, 1))) FROM t --- !query 2658 schema -struct --- !query 2658 output -0.0 - - --- !query 2659 -SELECT pmod(cast(1 as double), cast(1 as decimal(3, 1))) FROM t --- !query 2659 schema -struct --- !query 2659 output -0.0 - - --- !query 2660 -SELECT pmod(cast(1 as double), cast(1 as decimal(4, 1))) FROM t --- !query 2660 schema -struct --- !query 2660 output -0.0 - - --- !query 2661 -SELECT pmod(cast(1 as double), cast(1 as decimal(5, 1))) FROM t --- !query 2661 schema -struct --- !query 2661 output -0.0 - - --- !query 2662 -SELECT pmod(cast(1 as double), cast(1 as decimal(6, 1))) FROM t --- !query 2662 schema -struct --- !query 2662 output -0.0 - - --- !query 2663 -SELECT pmod(cast(1 as double), cast(1 as decimal(10, 1))) FROM t --- !query 2663 schema -struct --- !query 2663 output -0.0 - - --- !query 2664 -SELECT pmod(cast(1 as double), cast(1 as decimal(11, 1))) FROM t --- !query 2664 schema -struct --- !query 2664 output -0.0 - - --- !query 2665 -SELECT pmod(cast(1 as double), cast(1 as decimal(20, 1))) FROM t --- !query 2665 schema -struct --- !query 2665 output -0.0 - - --- !query 2666 -SELECT pmod(cast(1 as double), cast(1 as decimal(21, 1))) FROM t --- !query 2666 schema -struct --- !query 2666 output -0.0 - - --- !query 2667 -SELECT pmod(cast(1 as double), cast(1 as decimal(38, 1))) FROM t --- !query 2667 schema -struct --- !query 2667 output -0.0 - - --- !query 2668 -SELECT pmod(cast(1 as double), cast(1 as decimal(39, 1))) FROM t --- !query 2668 schema -struct<> --- !query 2668 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as double), cast(1 as decimal(39, 1))) FROM t - - --- !query 2669 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 0))) FROM t --- !query 2669 schema -struct --- !query 2669 output -0 - - --- !query 2670 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 0))) FROM t --- !query 2670 schema -struct --- !query 2670 output -0 - - --- !query 2671 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 0))) FROM t --- !query 2671 schema -struct --- !query 2671 output -0 - - --- !query 2672 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 0))) FROM t --- !query 2672 schema -struct --- !query 2672 output -0 - - --- !query 2673 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 0))) FROM t --- !query 2673 schema -struct --- !query 2673 output -0 - - --- !query 2674 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 2674 schema -struct --- !query 2674 output -0 - - --- !query 2675 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 0))) FROM t --- !query 2675 schema -struct --- !query 2675 output -0 - - --- !query 2676 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 0))) FROM t --- !query 2676 schema -struct --- !query 2676 output -0 - - --- !query 2677 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 0))) FROM t --- !query 2677 schema -struct --- !query 2677 output -0 - - --- !query 2678 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 0))) FROM t --- !query 2678 schema -struct --- !query 2678 output -0 - - --- !query 2679 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 0))) FROM t --- !query 2679 schema -struct<> --- !query 2679 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 0))) FROM t - - --- !query 2680 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(1, 1))) FROM t --- !query 2680 schema -struct --- !query 2680 output -NULL - - --- !query 2681 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(2, 1))) FROM t --- !query 2681 schema -struct --- !query 2681 output -0 - - --- !query 2682 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 1))) FROM t --- !query 2682 schema -struct --- !query 2682 output -0 - - --- !query 2683 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(4, 1))) FROM t --- !query 2683 schema -struct --- !query 2683 output -0 - - --- !query 2684 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 1))) FROM t --- !query 2684 schema -struct --- !query 2684 output -0 - - --- !query 2685 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(6, 1))) FROM t --- !query 2685 schema -struct --- !query 2685 output -0 - - --- !query 2686 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 1))) FROM t --- !query 2686 schema -struct --- !query 2686 output -0 - - --- !query 2687 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(11, 1))) FROM t --- !query 2687 schema -struct --- !query 2687 output -0 - - --- !query 2688 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 1))) FROM t --- !query 2688 schema -struct --- !query 2688 output -0 - - --- !query 2689 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(21, 1))) FROM t --- !query 2689 schema -struct --- !query 2689 output -0 - - --- !query 2690 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(38, 1))) FROM t --- !query 2690 schema -struct --- !query 2690 output -0 - - --- !query 2691 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 1))) FROM t --- !query 2691 schema -struct<> --- !query 2691 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(39, 1))) FROM t - - --- !query 2692 -SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 0))) FROM t --- !query 2692 schema -struct<> --- !query 2692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 2693 -SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 0))) FROM t --- !query 2693 schema -struct<> --- !query 2693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 2694 -SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 0))) FROM t --- !query 2694 schema -struct<> --- !query 2694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 2695 -SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 0))) FROM t --- !query 2695 schema -struct<> --- !query 2695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 2696 -SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 0))) FROM t --- !query 2696 schema -struct<> --- !query 2696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 2697 -SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t --- !query 2697 schema -struct<> --- !query 2697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 2698 -SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 0))) FROM t --- !query 2698 schema -struct<> --- !query 2698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 2699 -SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 0))) FROM t --- !query 2699 schema -struct<> --- !query 2699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 2700 -SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 0))) FROM t --- !query 2700 schema -struct<> --- !query 2700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 2701 -SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 0))) FROM t --- !query 2701 schema -struct<> --- !query 2701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 2702 -SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 0))) FROM t --- !query 2702 schema -struct<> --- !query 2702 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 0))) FROM t - - --- !query 2703 -SELECT pmod(cast('1' as binary), cast(1 as decimal(1, 1))) FROM t --- !query 2703 schema -struct<> --- !query 2703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 2704 -SELECT pmod(cast('1' as binary), cast(1 as decimal(2, 1))) FROM t --- !query 2704 schema -struct<> --- !query 2704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 2705 -SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 1))) FROM t --- !query 2705 schema -struct<> --- !query 2705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 2706 -SELECT pmod(cast('1' as binary), cast(1 as decimal(4, 1))) FROM t --- !query 2706 schema -struct<> --- !query 2706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 2707 -SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 1))) FROM t --- !query 2707 schema -struct<> --- !query 2707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 2708 -SELECT pmod(cast('1' as binary), cast(1 as decimal(6, 1))) FROM t --- !query 2708 schema -struct<> --- !query 2708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 2709 -SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 1))) FROM t --- !query 2709 schema -struct<> --- !query 2709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 2710 -SELECT pmod(cast('1' as binary), cast(1 as decimal(11, 1))) FROM t --- !query 2710 schema -struct<> --- !query 2710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 2711 -SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 1))) FROM t --- !query 2711 schema -struct<> --- !query 2711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 2712 -SELECT pmod(cast('1' as binary), cast(1 as decimal(21, 1))) FROM t --- !query 2712 schema -struct<> --- !query 2712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 2713 -SELECT pmod(cast('1' as binary), cast(1 as decimal(38, 1))) FROM t --- !query 2713 schema -struct<> --- !query 2713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in 'pmod(CAST('1' AS BINARY), CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 2714 -SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 1))) FROM t --- !query 2714 schema -struct<> --- !query 2714 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast('1' as binary), cast(1 as decimal(39, 1))) FROM t - - --- !query 2715 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 0))) FROM t --- !query 2715 schema -struct<> --- !query 2715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 2716 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 0))) FROM t --- !query 2716 schema -struct<> --- !query 2716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 2717 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 0))) FROM t --- !query 2717 schema -struct<> --- !query 2717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 2718 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 0))) FROM t --- !query 2718 schema -struct<> --- !query 2718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 2719 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 0))) FROM t --- !query 2719 schema -struct<> --- !query 2719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 2720 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t --- !query 2720 schema -struct<> --- !query 2720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 2721 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 0))) FROM t --- !query 2721 schema -struct<> --- !query 2721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 2722 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 0))) FROM t --- !query 2722 schema -struct<> --- !query 2722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 2723 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 0))) FROM t --- !query 2723 schema -struct<> --- !query 2723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 2724 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 0))) FROM t --- !query 2724 schema -struct<> --- !query 2724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 2725 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 0))) FROM t --- !query 2725 schema -struct<> --- !query 2725 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 0))) FROM t - - --- !query 2726 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(1, 1))) FROM t --- !query 2726 schema -struct<> --- !query 2726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 2727 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(2, 1))) FROM t --- !query 2727 schema -struct<> --- !query 2727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 2728 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 1))) FROM t --- !query 2728 schema -struct<> --- !query 2728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 2729 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(4, 1))) FROM t --- !query 2729 schema -struct<> --- !query 2729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 2730 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 1))) FROM t --- !query 2730 schema -struct<> --- !query 2730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 2731 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(6, 1))) FROM t --- !query 2731 schema -struct<> --- !query 2731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 2732 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 1))) FROM t --- !query 2732 schema -struct<> --- !query 2732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 2733 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(11, 1))) FROM t --- !query 2733 schema -struct<> --- !query 2733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 2734 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 1))) FROM t --- !query 2734 schema -struct<> --- !query 2734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 2735 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(21, 1))) FROM t --- !query 2735 schema -struct<> --- !query 2735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 2736 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(38, 1))) FROM t --- !query 2736 schema -struct<> --- !query 2736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 2737 -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 1))) FROM t --- !query 2737 schema -struct<> --- !query 2737 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(39, 1))) FROM t - - --- !query 2738 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 0))) FROM t --- !query 2738 schema -struct<> --- !query 2738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 2739 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 0))) FROM t --- !query 2739 schema -struct<> --- !query 2739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 2740 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 0))) FROM t --- !query 2740 schema -struct<> --- !query 2740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 2741 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 0))) FROM t --- !query 2741 schema -struct<> --- !query 2741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 2742 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 0))) FROM t --- !query 2742 schema -struct<> --- !query 2742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 2743 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t --- !query 2743 schema -struct<> --- !query 2743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 2744 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 0))) FROM t --- !query 2744 schema -struct<> --- !query 2744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 2745 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 0))) FROM t --- !query 2745 schema -struct<> --- !query 2745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 2746 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 0))) FROM t --- !query 2746 schema -struct<> --- !query 2746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 2747 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 0))) FROM t --- !query 2747 schema -struct<> --- !query 2747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 2748 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 0))) FROM t --- !query 2748 schema -struct<> --- !query 2748 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 0))) FROM t - - --- !query 2749 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(1, 1))) FROM t --- !query 2749 schema -struct<> --- !query 2749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 2750 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(2, 1))) FROM t --- !query 2750 schema -struct<> --- !query 2750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 2751 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 1))) FROM t --- !query 2751 schema -struct<> --- !query 2751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 2752 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(4, 1))) FROM t --- !query 2752 schema -struct<> --- !query 2752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 2753 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 1))) FROM t --- !query 2753 schema -struct<> --- !query 2753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 2754 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(6, 1))) FROM t --- !query 2754 schema -struct<> --- !query 2754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 2755 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 1))) FROM t --- !query 2755 schema -struct<> --- !query 2755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 2756 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(11, 1))) FROM t --- !query 2756 schema -struct<> --- !query 2756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 2757 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 1))) FROM t --- !query 2757 schema -struct<> --- !query 2757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 2758 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(21, 1))) FROM t --- !query 2758 schema -struct<> --- !query 2758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 2759 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(38, 1))) FROM t --- !query 2759 schema -struct<> --- !query 2759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 2760 -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 1))) FROM t --- !query 2760 schema -struct<> --- !query 2760 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(39, 1))) FROM t - - --- !query 2761 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as tinyint)) FROM t --- !query 2761 schema -struct --- !query 2761 output -0 - - --- !query 2762 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as tinyint)) FROM t --- !query 2762 schema -struct --- !query 2762 output -0 - - --- !query 2763 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as tinyint)) FROM t --- !query 2763 schema -struct --- !query 2763 output -0 - - --- !query 2764 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as tinyint)) FROM t --- !query 2764 schema -struct --- !query 2764 output -0 - - --- !query 2765 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as tinyint)) FROM t --- !query 2765 schema -struct --- !query 2765 output -0 - - --- !query 2766 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t --- !query 2766 schema -struct --- !query 2766 output -0 - - --- !query 2767 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as tinyint)) FROM t --- !query 2767 schema -struct --- !query 2767 output -0 - - --- !query 2768 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as tinyint)) FROM t --- !query 2768 schema -struct --- !query 2768 output -0 - - --- !query 2769 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as tinyint)) FROM t --- !query 2769 schema -struct --- !query 2769 output -0 - - --- !query 2770 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as tinyint)) FROM t --- !query 2770 schema -struct --- !query 2770 output -0 - - --- !query 2771 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as tinyint)) FROM t --- !query 2771 schema -struct<> --- !query 2771 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as tinyint)) FROM t - - --- !query 2772 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as tinyint)) FROM t --- !query 2772 schema -struct --- !query 2772 output -NULL - - --- !query 2773 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as tinyint)) FROM t --- !query 2773 schema -struct --- !query 2773 output -0 - - --- !query 2774 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as tinyint)) FROM t --- !query 2774 schema -struct --- !query 2774 output -0 - - --- !query 2775 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as tinyint)) FROM t --- !query 2775 schema -struct --- !query 2775 output -0 - - --- !query 2776 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as tinyint)) FROM t --- !query 2776 schema -struct --- !query 2776 output -0 - - --- !query 2777 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as tinyint)) FROM t --- !query 2777 schema -struct --- !query 2777 output -0 - - --- !query 2778 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as tinyint)) FROM t --- !query 2778 schema -struct --- !query 2778 output -0 - - --- !query 2779 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as tinyint)) FROM t --- !query 2779 schema -struct --- !query 2779 output -0 - - --- !query 2780 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as tinyint)) FROM t --- !query 2780 schema -struct --- !query 2780 output -0 - - --- !query 2781 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as tinyint)) FROM t --- !query 2781 schema -struct --- !query 2781 output -0 - - --- !query 2782 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as tinyint)) FROM t --- !query 2782 schema -struct --- !query 2782 output -0 - - --- !query 2783 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as tinyint)) FROM t --- !query 2783 schema -struct<> --- !query 2783 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as tinyint)) FROM t - - --- !query 2784 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as smallint)) FROM t --- !query 2784 schema -struct --- !query 2784 output -0 - - --- !query 2785 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as smallint)) FROM t --- !query 2785 schema -struct --- !query 2785 output -0 - - --- !query 2786 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as smallint)) FROM t --- !query 2786 schema -struct --- !query 2786 output -0 - - --- !query 2787 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as smallint)) FROM t --- !query 2787 schema -struct --- !query 2787 output -0 - - --- !query 2788 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as smallint)) FROM t --- !query 2788 schema -struct --- !query 2788 output -0 - - --- !query 2789 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t --- !query 2789 schema -struct --- !query 2789 output -0 - - --- !query 2790 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as smallint)) FROM t --- !query 2790 schema -struct --- !query 2790 output -0 - - --- !query 2791 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as smallint)) FROM t --- !query 2791 schema -struct --- !query 2791 output -0 - - --- !query 2792 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as smallint)) FROM t --- !query 2792 schema -struct --- !query 2792 output -0 - - --- !query 2793 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as smallint)) FROM t --- !query 2793 schema -struct --- !query 2793 output -0 - - --- !query 2794 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as smallint)) FROM t --- !query 2794 schema -struct<> --- !query 2794 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as smallint)) FROM t - - --- !query 2795 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as smallint)) FROM t --- !query 2795 schema -struct --- !query 2795 output -NULL - - --- !query 2796 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as smallint)) FROM t --- !query 2796 schema -struct --- !query 2796 output -0 - - --- !query 2797 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as smallint)) FROM t --- !query 2797 schema -struct --- !query 2797 output -0 - - --- !query 2798 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as smallint)) FROM t --- !query 2798 schema -struct --- !query 2798 output -0 - - --- !query 2799 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as smallint)) FROM t --- !query 2799 schema -struct --- !query 2799 output -0 - - --- !query 2800 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as smallint)) FROM t --- !query 2800 schema -struct --- !query 2800 output -0 - - --- !query 2801 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as smallint)) FROM t --- !query 2801 schema -struct --- !query 2801 output -0 - - --- !query 2802 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as smallint)) FROM t --- !query 2802 schema -struct --- !query 2802 output -0 - - --- !query 2803 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as smallint)) FROM t --- !query 2803 schema -struct --- !query 2803 output -0 - - --- !query 2804 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as smallint)) FROM t --- !query 2804 schema -struct --- !query 2804 output -0 - - --- !query 2805 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as smallint)) FROM t --- !query 2805 schema -struct --- !query 2805 output -0 - - --- !query 2806 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as smallint)) FROM t --- !query 2806 schema -struct<> --- !query 2806 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as smallint)) FROM t - - --- !query 2807 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as int)) FROM t --- !query 2807 schema -struct --- !query 2807 output -0 - - --- !query 2808 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as int)) FROM t --- !query 2808 schema -struct --- !query 2808 output -0 - - --- !query 2809 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as int)) FROM t --- !query 2809 schema -struct --- !query 2809 output -0 - - --- !query 2810 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as int)) FROM t --- !query 2810 schema -struct --- !query 2810 output -0 - - --- !query 2811 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as int)) FROM t --- !query 2811 schema -struct --- !query 2811 output -0 - - --- !query 2812 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t --- !query 2812 schema -struct --- !query 2812 output -0 - - --- !query 2813 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as int)) FROM t --- !query 2813 schema -struct --- !query 2813 output -0 - - --- !query 2814 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as int)) FROM t --- !query 2814 schema -struct --- !query 2814 output -0 - - --- !query 2815 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as int)) FROM t --- !query 2815 schema -struct --- !query 2815 output -0 - - --- !query 2816 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as int)) FROM t --- !query 2816 schema -struct --- !query 2816 output -0 - - --- !query 2817 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as int)) FROM t --- !query 2817 schema -struct<> --- !query 2817 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as int)) FROM t - - --- !query 2818 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as int)) FROM t --- !query 2818 schema -struct --- !query 2818 output -NULL - - --- !query 2819 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as int)) FROM t --- !query 2819 schema -struct --- !query 2819 output -0 - - --- !query 2820 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as int)) FROM t --- !query 2820 schema -struct --- !query 2820 output -0 - - --- !query 2821 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as int)) FROM t --- !query 2821 schema -struct --- !query 2821 output -0 - - --- !query 2822 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as int)) FROM t --- !query 2822 schema -struct --- !query 2822 output -0 - - --- !query 2823 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as int)) FROM t --- !query 2823 schema -struct --- !query 2823 output -0 - - --- !query 2824 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as int)) FROM t --- !query 2824 schema -struct --- !query 2824 output -0 - - --- !query 2825 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as int)) FROM t --- !query 2825 schema -struct --- !query 2825 output -0 - - --- !query 2826 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as int)) FROM t --- !query 2826 schema -struct --- !query 2826 output -0 - - --- !query 2827 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as int)) FROM t --- !query 2827 schema -struct --- !query 2827 output -0 - - --- !query 2828 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as int)) FROM t --- !query 2828 schema -struct --- !query 2828 output -0 - - --- !query 2829 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as int)) FROM t --- !query 2829 schema -struct<> --- !query 2829 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as int)) FROM t - - --- !query 2830 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as bigint)) FROM t --- !query 2830 schema -struct --- !query 2830 output -0 - - --- !query 2831 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as bigint)) FROM t --- !query 2831 schema -struct --- !query 2831 output -0 - - --- !query 2832 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as bigint)) FROM t --- !query 2832 schema -struct --- !query 2832 output -0 - - --- !query 2833 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as bigint)) FROM t --- !query 2833 schema -struct --- !query 2833 output -0 - - --- !query 2834 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as bigint)) FROM t --- !query 2834 schema -struct --- !query 2834 output -0 - - --- !query 2835 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t --- !query 2835 schema -struct --- !query 2835 output -0 - - --- !query 2836 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as bigint)) FROM t --- !query 2836 schema -struct --- !query 2836 output -0 - - --- !query 2837 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as bigint)) FROM t --- !query 2837 schema -struct --- !query 2837 output -0 - - --- !query 2838 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as bigint)) FROM t --- !query 2838 schema -struct --- !query 2838 output -0 - - --- !query 2839 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as bigint)) FROM t --- !query 2839 schema -struct --- !query 2839 output -0 - - --- !query 2840 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as bigint)) FROM t --- !query 2840 schema -struct<> --- !query 2840 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as bigint)) FROM t - - --- !query 2841 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as bigint)) FROM t --- !query 2841 schema -struct --- !query 2841 output -NULL - - --- !query 2842 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as bigint)) FROM t --- !query 2842 schema -struct --- !query 2842 output -0 - - --- !query 2843 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as bigint)) FROM t --- !query 2843 schema -struct --- !query 2843 output -0 - - --- !query 2844 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as bigint)) FROM t --- !query 2844 schema -struct --- !query 2844 output -0 - - --- !query 2845 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as bigint)) FROM t --- !query 2845 schema -struct --- !query 2845 output -0 - - --- !query 2846 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as bigint)) FROM t --- !query 2846 schema -struct --- !query 2846 output -0 - - --- !query 2847 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as bigint)) FROM t --- !query 2847 schema -struct --- !query 2847 output -0 - - --- !query 2848 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as bigint)) FROM t --- !query 2848 schema -struct --- !query 2848 output -0 - - --- !query 2849 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as bigint)) FROM t --- !query 2849 schema -struct --- !query 2849 output -0 - - --- !query 2850 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as bigint)) FROM t --- !query 2850 schema -struct --- !query 2850 output -0 - - --- !query 2851 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as bigint)) FROM t --- !query 2851 schema -struct --- !query 2851 output -0 - - --- !query 2852 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as bigint)) FROM t --- !query 2852 schema -struct<> --- !query 2852 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as bigint)) FROM t - - --- !query 2853 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as float)) FROM t --- !query 2853 schema -struct --- !query 2853 output -0.0 - - --- !query 2854 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as float)) FROM t --- !query 2854 schema -struct --- !query 2854 output -0.0 - - --- !query 2855 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as float)) FROM t --- !query 2855 schema -struct --- !query 2855 output -0.0 - - --- !query 2856 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as float)) FROM t --- !query 2856 schema -struct --- !query 2856 output -0.0 - - --- !query 2857 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as float)) FROM t --- !query 2857 schema -struct --- !query 2857 output -0.0 - - --- !query 2858 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t --- !query 2858 schema -struct --- !query 2858 output -0.0 - - --- !query 2859 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as float)) FROM t --- !query 2859 schema -struct --- !query 2859 output -0.0 - - --- !query 2860 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as float)) FROM t --- !query 2860 schema -struct --- !query 2860 output -0.0 - - --- !query 2861 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as float)) FROM t --- !query 2861 schema -struct --- !query 2861 output -0.0 - - --- !query 2862 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as float)) FROM t --- !query 2862 schema -struct --- !query 2862 output -0.0 - - --- !query 2863 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as float)) FROM t --- !query 2863 schema -struct<> --- !query 2863 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as float)) FROM t - - --- !query 2864 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as float)) FROM t --- !query 2864 schema -struct --- !query 2864 output -NULL - - --- !query 2865 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as float)) FROM t --- !query 2865 schema -struct --- !query 2865 output -0.0 - - --- !query 2866 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as float)) FROM t --- !query 2866 schema -struct --- !query 2866 output -0.0 - - --- !query 2867 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as float)) FROM t --- !query 2867 schema -struct --- !query 2867 output -0.0 - - --- !query 2868 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as float)) FROM t --- !query 2868 schema -struct --- !query 2868 output -0.0 - - --- !query 2869 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as float)) FROM t --- !query 2869 schema -struct --- !query 2869 output -0.0 - - --- !query 2870 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as float)) FROM t --- !query 2870 schema -struct --- !query 2870 output -0.0 - - --- !query 2871 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as float)) FROM t --- !query 2871 schema -struct --- !query 2871 output -0.0 - - --- !query 2872 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as float)) FROM t --- !query 2872 schema -struct --- !query 2872 output -0.0 - - --- !query 2873 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as float)) FROM t --- !query 2873 schema -struct --- !query 2873 output -0.0 - - --- !query 2874 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as float)) FROM t --- !query 2874 schema -struct --- !query 2874 output -0.0 - - --- !query 2875 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as float)) FROM t --- !query 2875 schema -struct<> --- !query 2875 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as float)) FROM t - - --- !query 2876 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as double)) FROM t --- !query 2876 schema -struct --- !query 2876 output -0.0 - - --- !query 2877 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as double)) FROM t --- !query 2877 schema -struct --- !query 2877 output -0.0 - - --- !query 2878 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as double)) FROM t --- !query 2878 schema -struct --- !query 2878 output -0.0 - - --- !query 2879 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as double)) FROM t --- !query 2879 schema -struct --- !query 2879 output -0.0 - - --- !query 2880 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as double)) FROM t --- !query 2880 schema -struct --- !query 2880 output -0.0 - - --- !query 2881 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t --- !query 2881 schema -struct --- !query 2881 output -0.0 - - --- !query 2882 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as double)) FROM t --- !query 2882 schema -struct --- !query 2882 output -0.0 - - --- !query 2883 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as double)) FROM t --- !query 2883 schema -struct --- !query 2883 output -0.0 - - --- !query 2884 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as double)) FROM t --- !query 2884 schema -struct --- !query 2884 output -0.0 - - --- !query 2885 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as double)) FROM t --- !query 2885 schema -struct --- !query 2885 output -0.0 - - --- !query 2886 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as double)) FROM t --- !query 2886 schema -struct<> --- !query 2886 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as double)) FROM t - - --- !query 2887 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as double)) FROM t --- !query 2887 schema -struct --- !query 2887 output -NULL - - --- !query 2888 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as double)) FROM t --- !query 2888 schema -struct --- !query 2888 output -0.0 - - --- !query 2889 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as double)) FROM t --- !query 2889 schema -struct --- !query 2889 output -0.0 - - --- !query 2890 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as double)) FROM t --- !query 2890 schema -struct --- !query 2890 output -0.0 - - --- !query 2891 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as double)) FROM t --- !query 2891 schema -struct --- !query 2891 output -0.0 - - --- !query 2892 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as double)) FROM t --- !query 2892 schema -struct --- !query 2892 output -0.0 - - --- !query 2893 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as double)) FROM t --- !query 2893 schema -struct --- !query 2893 output -0.0 - - --- !query 2894 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as double)) FROM t --- !query 2894 schema -struct --- !query 2894 output -0.0 - - --- !query 2895 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as double)) FROM t --- !query 2895 schema -struct --- !query 2895 output -0.0 - - --- !query 2896 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as double)) FROM t --- !query 2896 schema -struct --- !query 2896 output -0.0 - - --- !query 2897 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as double)) FROM t --- !query 2897 schema -struct --- !query 2897 output -0.0 - - --- !query 2898 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as double)) FROM t --- !query 2898 schema -struct<> --- !query 2898 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as double)) FROM t - - --- !query 2899 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as decimal(10, 0))) FROM t --- !query 2899 schema -struct --- !query 2899 output -0 - - --- !query 2900 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as decimal(10, 0))) FROM t --- !query 2900 schema -struct --- !query 2900 output -0 - - --- !query 2901 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as decimal(10, 0))) FROM t --- !query 2901 schema -struct --- !query 2901 output -0 - - --- !query 2902 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as decimal(10, 0))) FROM t --- !query 2902 schema -struct --- !query 2902 output -0 - - --- !query 2903 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as decimal(10, 0))) FROM t --- !query 2903 schema -struct --- !query 2903 output -0 - - --- !query 2904 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 2904 schema -struct --- !query 2904 output -0 - - --- !query 2905 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 2905 schema -struct --- !query 2905 output -0 - - --- !query 2906 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 2906 schema -struct --- !query 2906 output -0 - - --- !query 2907 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 2907 schema -struct --- !query 2907 output -0 - - --- !query 2908 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 2908 schema -struct --- !query 2908 output -0 - - --- !query 2909 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 2909 schema -struct<> --- !query 2909 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as decimal(10, 0))) FROM t - - --- !query 2910 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as decimal(10, 0))) FROM t --- !query 2910 schema -struct --- !query 2910 output -NULL - - --- !query 2911 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as decimal(10, 0))) FROM t --- !query 2911 schema -struct --- !query 2911 output -0 - - --- !query 2912 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as decimal(10, 0))) FROM t --- !query 2912 schema -struct --- !query 2912 output -0 - - --- !query 2913 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as decimal(10, 0))) FROM t --- !query 2913 schema -struct --- !query 2913 output -0 - - --- !query 2914 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as decimal(10, 0))) FROM t --- !query 2914 schema -struct --- !query 2914 output -0 - - --- !query 2915 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as decimal(10, 0))) FROM t --- !query 2915 schema -struct --- !query 2915 output -0 - - --- !query 2916 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as decimal(10, 0))) FROM t --- !query 2916 schema -struct --- !query 2916 output -0 - - --- !query 2917 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as decimal(10, 0))) FROM t --- !query 2917 schema -struct --- !query 2917 output -0 - - --- !query 2918 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as decimal(10, 0))) FROM t --- !query 2918 schema -struct --- !query 2918 output -0 - - --- !query 2919 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as decimal(10, 0))) FROM t --- !query 2919 schema -struct --- !query 2919 output -0 - - --- !query 2920 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as decimal(10, 0))) FROM t --- !query 2920 schema -struct --- !query 2920 output -0 - - --- !query 2921 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as decimal(10, 0))) FROM t --- !query 2921 schema -struct<> --- !query 2921 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as decimal(10, 0))) FROM t - - --- !query 2922 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as string)) FROM t --- !query 2922 schema -struct --- !query 2922 output -0.0 - - --- !query 2923 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as string)) FROM t --- !query 2923 schema -struct --- !query 2923 output -0.0 - - --- !query 2924 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as string)) FROM t --- !query 2924 schema -struct --- !query 2924 output -0.0 - - --- !query 2925 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as string)) FROM t --- !query 2925 schema -struct --- !query 2925 output -0.0 - - --- !query 2926 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as string)) FROM t --- !query 2926 schema -struct --- !query 2926 output -0.0 - - --- !query 2927 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t --- !query 2927 schema -struct --- !query 2927 output -0.0 - - --- !query 2928 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as string)) FROM t --- !query 2928 schema -struct --- !query 2928 output -0.0 - - --- !query 2929 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as string)) FROM t --- !query 2929 schema -struct --- !query 2929 output -0.0 - - --- !query 2930 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as string)) FROM t --- !query 2930 schema -struct --- !query 2930 output -0.0 - - --- !query 2931 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as string)) FROM t --- !query 2931 schema -struct --- !query 2931 output -0.0 - - --- !query 2932 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as string)) FROM t --- !query 2932 schema -struct<> --- !query 2932 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as string)) FROM t - - --- !query 2933 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as string)) FROM t --- !query 2933 schema -struct --- !query 2933 output -NULL - - --- !query 2934 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as string)) FROM t --- !query 2934 schema -struct --- !query 2934 output -0.0 - - --- !query 2935 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as string)) FROM t --- !query 2935 schema -struct --- !query 2935 output -0.0 - - --- !query 2936 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as string)) FROM t --- !query 2936 schema -struct --- !query 2936 output -0.0 - - --- !query 2937 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as string)) FROM t --- !query 2937 schema -struct --- !query 2937 output -0.0 - - --- !query 2938 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as string)) FROM t --- !query 2938 schema -struct --- !query 2938 output -0.0 - - --- !query 2939 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as string)) FROM t --- !query 2939 schema -struct --- !query 2939 output -0.0 - - --- !query 2940 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as string)) FROM t --- !query 2940 schema -struct --- !query 2940 output -0.0 - - --- !query 2941 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as string)) FROM t --- !query 2941 schema -struct --- !query 2941 output -0.0 - - --- !query 2942 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as string)) FROM t --- !query 2942 schema -struct --- !query 2942 output -0.0 - - --- !query 2943 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as string)) FROM t --- !query 2943 schema -struct --- !query 2943 output -0.0 - - --- !query 2944 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as string)) FROM t --- !query 2944 schema -struct<> --- !query 2944 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as string)) FROM t - - --- !query 2945 -SELECT pmod(cast(1 as decimal(1, 0)) , cast('1' as binary)) FROM t --- !query 2945 schema -struct<> --- !query 2945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 2946 -SELECT pmod(cast(1 as decimal(3, 0)) , cast('1' as binary)) FROM t --- !query 2946 schema -struct<> --- !query 2946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 2947 -SELECT pmod(cast(1 as decimal(4, 0)) , cast('1' as binary)) FROM t --- !query 2947 schema -struct<> --- !query 2947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 2948 -SELECT pmod(cast(1 as decimal(5, 0)) , cast('1' as binary)) FROM t --- !query 2948 schema -struct<> --- !query 2948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 2949 -SELECT pmod(cast(1 as decimal(6, 0)) , cast('1' as binary)) FROM t --- !query 2949 schema -struct<> --- !query 2949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 2950 -SELECT pmod(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t --- !query 2950 schema -struct<> --- !query 2950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 2951 -SELECT pmod(cast(1 as decimal(11, 0)), cast('1' as binary)) FROM t --- !query 2951 schema -struct<> --- !query 2951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 2952 -SELECT pmod(cast(1 as decimal(20, 0)), cast('1' as binary)) FROM t --- !query 2952 schema -struct<> --- !query 2952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 2953 -SELECT pmod(cast(1 as decimal(21, 0)), cast('1' as binary)) FROM t --- !query 2953 schema -struct<> --- !query 2953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 2954 -SELECT pmod(cast(1 as decimal(38, 0)), cast('1' as binary)) FROM t --- !query 2954 schema -struct<> --- !query 2954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 2955 -SELECT pmod(cast(1 as decimal(39, 0)), cast('1' as binary)) FROM t --- !query 2955 schema -struct<> --- !query 2955 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast('1' as binary)) FROM t - - --- !query 2956 -SELECT pmod(cast(1 as decimal(1, 1)) , cast('1' as binary)) FROM t --- !query 2956 schema -struct<> --- !query 2956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 2957 -SELECT pmod(cast(1 as decimal(2, 1)) , cast('1' as binary)) FROM t --- !query 2957 schema -struct<> --- !query 2957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 2958 -SELECT pmod(cast(1 as decimal(3, 1)) , cast('1' as binary)) FROM t --- !query 2958 schema -struct<> --- !query 2958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 2959 -SELECT pmod(cast(1 as decimal(4, 1)) , cast('1' as binary)) FROM t --- !query 2959 schema -struct<> --- !query 2959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 2960 -SELECT pmod(cast(1 as decimal(5, 1)) , cast('1' as binary)) FROM t --- !query 2960 schema -struct<> --- !query 2960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 2961 -SELECT pmod(cast(1 as decimal(6, 1)) , cast('1' as binary)) FROM t --- !query 2961 schema -struct<> --- !query 2961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 2962 -SELECT pmod(cast(1 as decimal(10, 1)), cast('1' as binary)) FROM t --- !query 2962 schema -struct<> --- !query 2962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 2963 -SELECT pmod(cast(1 as decimal(11, 1)), cast('1' as binary)) FROM t --- !query 2963 schema -struct<> --- !query 2963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 2964 -SELECT pmod(cast(1 as decimal(20, 1)), cast('1' as binary)) FROM t --- !query 2964 schema -struct<> --- !query 2964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 2965 -SELECT pmod(cast(1 as decimal(21, 1)), cast('1' as binary)) FROM t --- !query 2965 schema -struct<> --- !query 2965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 2966 -SELECT pmod(cast(1 as decimal(38, 1)), cast('1' as binary)) FROM t --- !query 2966 schema -struct<> --- !query 2966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('1' AS BINARY))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 2967 -SELECT pmod(cast(1 as decimal(39, 1)), cast('1' as binary)) FROM t --- !query 2967 schema -struct<> --- !query 2967 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast('1' as binary)) FROM t - - --- !query 2968 -SELECT pmod(cast(1 as decimal(1, 0)) , cast(1 as boolean)) FROM t --- !query 2968 schema -struct<> --- !query 2968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 2969 -SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as boolean)) FROM t --- !query 2969 schema -struct<> --- !query 2969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 2970 -SELECT pmod(cast(1 as decimal(4, 0)) , cast(1 as boolean)) FROM t --- !query 2970 schema -struct<> --- !query 2970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 2971 -SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as boolean)) FROM t --- !query 2971 schema -struct<> --- !query 2971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 2972 -SELECT pmod(cast(1 as decimal(6, 0)) , cast(1 as boolean)) FROM t --- !query 2972 schema -struct<> --- !query 2972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 2973 -SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t --- !query 2973 schema -struct<> --- !query 2973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 2974 -SELECT pmod(cast(1 as decimal(11, 0)), cast(1 as boolean)) FROM t --- !query 2974 schema -struct<> --- !query 2974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 2975 -SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as boolean)) FROM t --- !query 2975 schema -struct<> --- !query 2975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 2976 -SELECT pmod(cast(1 as decimal(21, 0)), cast(1 as boolean)) FROM t --- !query 2976 schema -struct<> --- !query 2976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 2977 -SELECT pmod(cast(1 as decimal(38, 0)), cast(1 as boolean)) FROM t --- !query 2977 schema -struct<> --- !query 2977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 2978 -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as boolean)) FROM t --- !query 2978 schema -struct<> --- !query 2978 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast(1 as boolean)) FROM t - - --- !query 2979 -SELECT pmod(cast(1 as decimal(1, 1)) , cast(1 as boolean)) FROM t --- !query 2979 schema -struct<> --- !query 2979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 2980 -SELECT pmod(cast(1 as decimal(2, 1)) , cast(1 as boolean)) FROM t --- !query 2980 schema -struct<> --- !query 2980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 2981 -SELECT pmod(cast(1 as decimal(3, 1)) , cast(1 as boolean)) FROM t --- !query 2981 schema -struct<> --- !query 2981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 2982 -SELECT pmod(cast(1 as decimal(4, 1)) , cast(1 as boolean)) FROM t --- !query 2982 schema -struct<> --- !query 2982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 2983 -SELECT pmod(cast(1 as decimal(5, 1)) , cast(1 as boolean)) FROM t --- !query 2983 schema -struct<> --- !query 2983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 2984 -SELECT pmod(cast(1 as decimal(6, 1)) , cast(1 as boolean)) FROM t --- !query 2984 schema -struct<> --- !query 2984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 2985 -SELECT pmod(cast(1 as decimal(10, 1)), cast(1 as boolean)) FROM t --- !query 2985 schema -struct<> --- !query 2985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 2986 -SELECT pmod(cast(1 as decimal(11, 1)), cast(1 as boolean)) FROM t --- !query 2986 schema -struct<> --- !query 2986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 2987 -SELECT pmod(cast(1 as decimal(20, 1)), cast(1 as boolean)) FROM t --- !query 2987 schema -struct<> --- !query 2987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 2988 -SELECT pmod(cast(1 as decimal(21, 1)), cast(1 as boolean)) FROM t --- !query 2988 schema -struct<> --- !query 2988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 2989 -SELECT pmod(cast(1 as decimal(38, 1)), cast(1 as boolean)) FROM t --- !query 2989 schema -struct<> --- !query 2989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 2990 -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as boolean)) FROM t --- !query 2990 schema -struct<> --- !query 2990 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast(1 as boolean)) FROM t - - --- !query 2991 -SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2991 schema -struct<> --- !query 2991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 2992 -SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2992 schema -struct<> --- !query 2992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 2993 -SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2993 schema -struct<> --- !query 2993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 2994 -SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2994 schema -struct<> --- !query 2994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 2995 -SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2995 schema -struct<> --- !query 2995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 2996 -SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2996 schema -struct<> --- !query 2996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 2997 -SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2997 schema -struct<> --- !query 2997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 2998 -SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2998 schema -struct<> --- !query 2998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 2999 -SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 2999 schema -struct<> --- !query 2999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 3000 -SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3000 schema -struct<> --- !query 3000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 3001 -SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3001 schema -struct<> --- !query 3001 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t - - --- !query 3002 -SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3002 schema -struct<> --- !query 3002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 3003 -SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3003 schema -struct<> --- !query 3003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 3004 -SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3004 schema -struct<> --- !query 3004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 3005 -SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3005 schema -struct<> --- !query 3005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 3006 -SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3006 schema -struct<> --- !query 3006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 3007 -SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3007 schema -struct<> --- !query 3007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 3008 -SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3008 schema -struct<> --- !query 3008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 3009 -SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3009 schema -struct<> --- !query 3009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 3010 -SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3010 schema -struct<> --- !query 3010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 3011 -SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3011 schema -struct<> --- !query 3011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 3012 -SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3012 schema -struct<> --- !query 3012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 3013 -SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 3013 schema -struct<> --- !query 3013 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t - - --- !query 3014 -SELECT pmod(cast(1 as decimal(1, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3014 schema -struct<> --- !query 3014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 3015 -SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3015 schema -struct<> --- !query 3015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 3016 -SELECT pmod(cast(1 as decimal(4, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3016 schema -struct<> --- !query 3016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 3017 -SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3017 schema -struct<> --- !query 3017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 3018 -SELECT pmod(cast(1 as decimal(6, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3018 schema -struct<> --- !query 3018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 3019 -SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3019 schema -struct<> --- !query 3019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 3020 -SELECT pmod(cast(1 as decimal(11, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3020 schema -struct<> --- !query 3020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 3021 -SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3021 schema -struct<> --- !query 3021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 3022 -SELECT pmod(cast(1 as decimal(21, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3022 schema -struct<> --- !query 3022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 3023 -SELECT pmod(cast(1 as decimal(38, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3023 schema -struct<> --- !query 3023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,0)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 3024 -SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3024 schema -struct<> --- !query 3024 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 0)), cast('2017-12-11 09:30:00' as date)) FROM t - - --- !query 3025 -SELECT pmod(cast(1 as decimal(1, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3025 schema -struct<> --- !query 3025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(1,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 3026 -SELECT pmod(cast(1 as decimal(2, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3026 schema -struct<> --- !query 3026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(2,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 3027 -SELECT pmod(cast(1 as decimal(3, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3027 schema -struct<> --- !query 3027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(3,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 3028 -SELECT pmod(cast(1 as decimal(4, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3028 schema -struct<> --- !query 3028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(4,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 3029 -SELECT pmod(cast(1 as decimal(5, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3029 schema -struct<> --- !query 3029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(5,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 3030 -SELECT pmod(cast(1 as decimal(6, 1)) , cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3030 schema -struct<> --- !query 3030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(6,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 3031 -SELECT pmod(cast(1 as decimal(10, 1)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3031 schema -struct<> --- !query 3031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(10,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 3032 -SELECT pmod(cast(1 as decimal(11, 1)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3032 schema -struct<> --- !query 3032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(11,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 3033 -SELECT pmod(cast(1 as decimal(20, 1)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3033 schema -struct<> --- !query 3033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(20,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 3034 -SELECT pmod(cast(1 as decimal(21, 1)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3034 schema -struct<> --- !query 3034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(21,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 3035 -SELECT pmod(cast(1 as decimal(38, 1)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3035 schema -struct<> --- !query 3035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in 'pmod(CAST(1 AS DECIMAL(38,1)), CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 3036 -SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 3036 schema -struct<> --- !query 3036 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT pmod(cast(1 as decimal(39, 1)), cast('2017-12-11 09:30:00' as date)) FROM t - - --- !query 3037 -SELECT cast(1 as tinyint) = cast(1 as decimal(1, 0)) FROM t --- !query 3037 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> --- !query 3037 output -true - - --- !query 3038 -SELECT cast(1 as tinyint) = cast(1 as decimal(3, 0)) FROM t --- !query 3038 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) = CAST(1 AS DECIMAL(3,0))):boolean> --- !query 3038 output -true - - --- !query 3039 -SELECT cast(1 as tinyint) = cast(1 as decimal(4, 0)) FROM t --- !query 3039 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> --- !query 3039 output -true - - --- !query 3040 -SELECT cast(1 as tinyint) = cast(1 as decimal(5, 0)) FROM t --- !query 3040 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3040 output -true - - --- !query 3041 -SELECT cast(1 as tinyint) = cast(1 as decimal(6, 0)) FROM t --- !query 3041 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 3041 output -true - - --- !query 3042 -SELECT cast(1 as tinyint) = cast(1 as decimal(10, 0)) FROM t --- !query 3042 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3042 output -true - - --- !query 3043 -SELECT cast(1 as tinyint) = cast(1 as decimal(11, 0)) FROM t --- !query 3043 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3043 output -true - - --- !query 3044 -SELECT cast(1 as tinyint) = cast(1 as decimal(20, 0)) FROM t --- !query 3044 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3044 output -true - - --- !query 3045 -SELECT cast(1 as tinyint) = cast(1 as decimal(21, 0)) FROM t --- !query 3045 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3045 output -true - - --- !query 3046 -SELECT cast(1 as tinyint) = cast(1 as decimal(38, 0)) FROM t --- !query 3046 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3046 output -true - - --- !query 3047 -SELECT cast(1 as tinyint) = cast(1 as decimal(39, 0)) FROM t --- !query 3047 schema -struct<> --- !query 3047 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3048 -SELECT cast(1 as tinyint) = cast(1 as decimal(1, 1)) FROM t --- !query 3048 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> --- !query 3048 output -NULL - - --- !query 3049 -SELECT cast(1 as tinyint) = cast(1 as decimal(2, 1)) FROM t --- !query 3049 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> --- !query 3049 output -true - - --- !query 3050 -SELECT cast(1 as tinyint) = cast(1 as decimal(3, 1)) FROM t --- !query 3050 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> --- !query 3050 output -true - - --- !query 3051 -SELECT cast(1 as tinyint) = cast(1 as decimal(4, 1)) FROM t --- !query 3051 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> --- !query 3051 output -true - - --- !query 3052 -SELECT cast(1 as tinyint) = cast(1 as decimal(5, 1)) FROM t --- !query 3052 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> --- !query 3052 output -true - - --- !query 3053 -SELECT cast(1 as tinyint) = cast(1 as decimal(6, 1)) FROM t --- !query 3053 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 3053 output -true - - --- !query 3054 -SELECT cast(1 as tinyint) = cast(1 as decimal(10, 1)) FROM t --- !query 3054 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 3054 output -true - - --- !query 3055 -SELECT cast(1 as tinyint) = cast(1 as decimal(11, 1)) FROM t --- !query 3055 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3055 output -true - - --- !query 3056 -SELECT cast(1 as tinyint) = cast(1 as decimal(20, 1)) FROM t --- !query 3056 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3056 output -true - - --- !query 3057 -SELECT cast(1 as tinyint) = cast(1 as decimal(21, 1)) FROM t --- !query 3057 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3057 output -true - - --- !query 3058 -SELECT cast(1 as tinyint) = cast(1 as decimal(38, 1)) FROM t --- !query 3058 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3058 output -true - - --- !query 3059 -SELECT cast(1 as tinyint) = cast(1 as decimal(39, 1)) FROM t --- !query 3059 schema -struct<> --- !query 3059 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3060 -SELECT cast(1 as smallint) = cast(1 as decimal(1, 0)) FROM t --- !query 3060 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> --- !query 3060 output -true - - --- !query 3061 -SELECT cast(1 as smallint) = cast(1 as decimal(3, 0)) FROM t --- !query 3061 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 3061 output -true - - --- !query 3062 -SELECT cast(1 as smallint) = cast(1 as decimal(4, 0)) FROM t --- !query 3062 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> --- !query 3062 output -true - - --- !query 3063 -SELECT cast(1 as smallint) = cast(1 as decimal(5, 0)) FROM t --- !query 3063 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) = CAST(1 AS DECIMAL(5,0))):boolean> --- !query 3063 output -true - - --- !query 3064 -SELECT cast(1 as smallint) = cast(1 as decimal(6, 0)) FROM t --- !query 3064 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 3064 output -true - - --- !query 3065 -SELECT cast(1 as smallint) = cast(1 as decimal(10, 0)) FROM t --- !query 3065 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3065 output -true - - --- !query 3066 -SELECT cast(1 as smallint) = cast(1 as decimal(11, 0)) FROM t --- !query 3066 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3066 output -true - - --- !query 3067 -SELECT cast(1 as smallint) = cast(1 as decimal(20, 0)) FROM t --- !query 3067 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3067 output -true - - --- !query 3068 -SELECT cast(1 as smallint) = cast(1 as decimal(21, 0)) FROM t --- !query 3068 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3068 output -true - - --- !query 3069 -SELECT cast(1 as smallint) = cast(1 as decimal(38, 0)) FROM t --- !query 3069 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3069 output -true - - --- !query 3070 -SELECT cast(1 as smallint) = cast(1 as decimal(39, 0)) FROM t --- !query 3070 schema -struct<> --- !query 3070 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3071 -SELECT cast(1 as smallint) = cast(1 as decimal(1, 1)) FROM t --- !query 3071 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> --- !query 3071 output -NULL - - --- !query 3072 -SELECT cast(1 as smallint) = cast(1 as decimal(2, 1)) FROM t --- !query 3072 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> --- !query 3072 output -true - - --- !query 3073 -SELECT cast(1 as smallint) = cast(1 as decimal(3, 1)) FROM t --- !query 3073 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> --- !query 3073 output -true - - --- !query 3074 -SELECT cast(1 as smallint) = cast(1 as decimal(4, 1)) FROM t --- !query 3074 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> --- !query 3074 output -true - - --- !query 3075 -SELECT cast(1 as smallint) = cast(1 as decimal(5, 1)) FROM t --- !query 3075 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> --- !query 3075 output -true - - --- !query 3076 -SELECT cast(1 as smallint) = cast(1 as decimal(6, 1)) FROM t --- !query 3076 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 3076 output -true - - --- !query 3077 -SELECT cast(1 as smallint) = cast(1 as decimal(10, 1)) FROM t --- !query 3077 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 3077 output -true - - --- !query 3078 -SELECT cast(1 as smallint) = cast(1 as decimal(11, 1)) FROM t --- !query 3078 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3078 output -true - - --- !query 3079 -SELECT cast(1 as smallint) = cast(1 as decimal(20, 1)) FROM t --- !query 3079 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3079 output -true - - --- !query 3080 -SELECT cast(1 as smallint) = cast(1 as decimal(21, 1)) FROM t --- !query 3080 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3080 output -true - - --- !query 3081 -SELECT cast(1 as smallint) = cast(1 as decimal(38, 1)) FROM t --- !query 3081 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3081 output -true - - --- !query 3082 -SELECT cast(1 as smallint) = cast(1 as decimal(39, 1)) FROM t --- !query 3082 schema -struct<> --- !query 3082 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3083 -SELECT cast(1 as int) = cast(1 as decimal(1, 0)) FROM t --- !query 3083 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 3083 output -true - - --- !query 3084 -SELECT cast(1 as int) = cast(1 as decimal(3, 0)) FROM t --- !query 3084 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 3084 output -true - - --- !query 3085 -SELECT cast(1 as int) = cast(1 as decimal(4, 0)) FROM t --- !query 3085 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 3085 output -true - - --- !query 3086 -SELECT cast(1 as int) = cast(1 as decimal(5, 0)) FROM t --- !query 3086 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 3086 output -true - - --- !query 3087 -SELECT cast(1 as int) = cast(1 as decimal(6, 0)) FROM t --- !query 3087 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 3087 output -true - - --- !query 3088 -SELECT cast(1 as int) = cast(1 as decimal(10, 0)) FROM t --- !query 3088 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> --- !query 3088 output -true - - --- !query 3089 -SELECT cast(1 as int) = cast(1 as decimal(11, 0)) FROM t --- !query 3089 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3089 output -true - - --- !query 3090 -SELECT cast(1 as int) = cast(1 as decimal(20, 0)) FROM t --- !query 3090 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3090 output -true - - --- !query 3091 -SELECT cast(1 as int) = cast(1 as decimal(21, 0)) FROM t --- !query 3091 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3091 output -true - - --- !query 3092 -SELECT cast(1 as int) = cast(1 as decimal(38, 0)) FROM t --- !query 3092 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3092 output -true - - --- !query 3093 -SELECT cast(1 as int) = cast(1 as decimal(39, 0)) FROM t --- !query 3093 schema -struct<> --- !query 3093 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3094 -SELECT cast(1 as int) = cast(1 as decimal(1, 1)) FROM t --- !query 3094 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 3094 output -NULL - - --- !query 3095 -SELECT cast(1 as int) = cast(1 as decimal(2, 1)) FROM t --- !query 3095 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 3095 output -true - - --- !query 3096 -SELECT cast(1 as int) = cast(1 as decimal(3, 1)) FROM t --- !query 3096 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 3096 output -true - - --- !query 3097 -SELECT cast(1 as int) = cast(1 as decimal(4, 1)) FROM t --- !query 3097 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 3097 output -true - - --- !query 3098 -SELECT cast(1 as int) = cast(1 as decimal(5, 1)) FROM t --- !query 3098 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 3098 output -true - - --- !query 3099 -SELECT cast(1 as int) = cast(1 as decimal(6, 1)) FROM t --- !query 3099 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 3099 output -true - - --- !query 3100 -SELECT cast(1 as int) = cast(1 as decimal(10, 1)) FROM t --- !query 3100 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 3100 output -true - - --- !query 3101 -SELECT cast(1 as int) = cast(1 as decimal(11, 1)) FROM t --- !query 3101 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3101 output -true - - --- !query 3102 -SELECT cast(1 as int) = cast(1 as decimal(20, 1)) FROM t --- !query 3102 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3102 output -true - - --- !query 3103 -SELECT cast(1 as int) = cast(1 as decimal(21, 1)) FROM t --- !query 3103 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3103 output -true - - --- !query 3104 -SELECT cast(1 as int) = cast(1 as decimal(38, 1)) FROM t --- !query 3104 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3104 output -true - - --- !query 3105 -SELECT cast(1 as int) = cast(1 as decimal(39, 1)) FROM t --- !query 3105 schema -struct<> --- !query 3105 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3106 -SELECT cast(1 as bigint) = cast(1 as decimal(1, 0)) FROM t --- !query 3106 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> --- !query 3106 output -true - - --- !query 3107 -SELECT cast(1 as bigint) = cast(1 as decimal(3, 0)) FROM t --- !query 3107 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 3107 output -true - - --- !query 3108 -SELECT cast(1 as bigint) = cast(1 as decimal(4, 0)) FROM t --- !query 3108 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> --- !query 3108 output -true - - --- !query 3109 -SELECT cast(1 as bigint) = cast(1 as decimal(5, 0)) FROM t --- !query 3109 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 3109 output -true - - --- !query 3110 -SELECT cast(1 as bigint) = cast(1 as decimal(6, 0)) FROM t --- !query 3110 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> --- !query 3110 output -true - - --- !query 3111 -SELECT cast(1 as bigint) = cast(1 as decimal(10, 0)) FROM t --- !query 3111 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 3111 output -true - - --- !query 3112 -SELECT cast(1 as bigint) = cast(1 as decimal(11, 0)) FROM t --- !query 3112 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> --- !query 3112 output -true - - --- !query 3113 -SELECT cast(1 as bigint) = cast(1 as decimal(20, 0)) FROM t --- !query 3113 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) = CAST(1 AS DECIMAL(20,0))):boolean> --- !query 3113 output -true - - --- !query 3114 -SELECT cast(1 as bigint) = cast(1 as decimal(21, 0)) FROM t --- !query 3114 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3114 output -true - - --- !query 3115 -SELECT cast(1 as bigint) = cast(1 as decimal(38, 0)) FROM t --- !query 3115 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3115 output -true - - --- !query 3116 -SELECT cast(1 as bigint) = cast(1 as decimal(39, 0)) FROM t --- !query 3116 schema -struct<> --- !query 3116 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3117 -SELECT cast(1 as bigint) = cast(1 as decimal(1, 1)) FROM t --- !query 3117 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> --- !query 3117 output -NULL - - --- !query 3118 -SELECT cast(1 as bigint) = cast(1 as decimal(2, 1)) FROM t --- !query 3118 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> --- !query 3118 output -true - - --- !query 3119 -SELECT cast(1 as bigint) = cast(1 as decimal(3, 1)) FROM t --- !query 3119 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> --- !query 3119 output -true - - --- !query 3120 -SELECT cast(1 as bigint) = cast(1 as decimal(4, 1)) FROM t --- !query 3120 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> --- !query 3120 output -true - - --- !query 3121 -SELECT cast(1 as bigint) = cast(1 as decimal(5, 1)) FROM t --- !query 3121 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> --- !query 3121 output -true - - --- !query 3122 -SELECT cast(1 as bigint) = cast(1 as decimal(6, 1)) FROM t --- !query 3122 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> --- !query 3122 output -true - - --- !query 3123 -SELECT cast(1 as bigint) = cast(1 as decimal(10, 1)) FROM t --- !query 3123 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> --- !query 3123 output -true - - --- !query 3124 -SELECT cast(1 as bigint) = cast(1 as decimal(11, 1)) FROM t --- !query 3124 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> --- !query 3124 output -true - - --- !query 3125 -SELECT cast(1 as bigint) = cast(1 as decimal(20, 1)) FROM t --- !query 3125 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> --- !query 3125 output -true - - --- !query 3126 -SELECT cast(1 as bigint) = cast(1 as decimal(21, 1)) FROM t --- !query 3126 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3126 output -true - - --- !query 3127 -SELECT cast(1 as bigint) = cast(1 as decimal(38, 1)) FROM t --- !query 3127 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3127 output -true - - --- !query 3128 -SELECT cast(1 as bigint) = cast(1 as decimal(39, 1)) FROM t --- !query 3128 schema -struct<> --- !query 3128 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3129 -SELECT cast(1 as float) = cast(1 as decimal(1, 0)) FROM t --- !query 3129 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 3129 output -true - - --- !query 3130 -SELECT cast(1 as float) = cast(1 as decimal(3, 0)) FROM t --- !query 3130 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 3130 output -true - - --- !query 3131 -SELECT cast(1 as float) = cast(1 as decimal(4, 0)) FROM t --- !query 3131 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 3131 output -true - - --- !query 3132 -SELECT cast(1 as float) = cast(1 as decimal(5, 0)) FROM t --- !query 3132 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 3132 output -true - - --- !query 3133 -SELECT cast(1 as float) = cast(1 as decimal(6, 0)) FROM t --- !query 3133 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 3133 output -true - - --- !query 3134 -SELECT cast(1 as float) = cast(1 as decimal(10, 0)) FROM t --- !query 3134 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 3134 output -true - - --- !query 3135 -SELECT cast(1 as float) = cast(1 as decimal(11, 0)) FROM t --- !query 3135 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 3135 output -true - - --- !query 3136 -SELECT cast(1 as float) = cast(1 as decimal(20, 0)) FROM t --- !query 3136 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 3136 output -true - - --- !query 3137 -SELECT cast(1 as float) = cast(1 as decimal(21, 0)) FROM t --- !query 3137 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 3137 output -true - - --- !query 3138 -SELECT cast(1 as float) = cast(1 as decimal(38, 0)) FROM t --- !query 3138 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 3138 output -true - - --- !query 3139 -SELECT cast(1 as float) = cast(1 as decimal(39, 0)) FROM t --- !query 3139 schema -struct<> --- !query 3139 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3140 -SELECT cast(1 as float) = cast(1 as decimal(1, 1)) FROM t --- !query 3140 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 3140 output -NULL - - --- !query 3141 -SELECT cast(1 as float) = cast(1 as decimal(2, 1)) FROM t --- !query 3141 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 3141 output -true - - --- !query 3142 -SELECT cast(1 as float) = cast(1 as decimal(3, 1)) FROM t --- !query 3142 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 3142 output -true - - --- !query 3143 -SELECT cast(1 as float) = cast(1 as decimal(4, 1)) FROM t --- !query 3143 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 3143 output -true - - --- !query 3144 -SELECT cast(1 as float) = cast(1 as decimal(5, 1)) FROM t --- !query 3144 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 3144 output -true - - --- !query 3145 -SELECT cast(1 as float) = cast(1 as decimal(6, 1)) FROM t --- !query 3145 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 3145 output -true - - --- !query 3146 -SELECT cast(1 as float) = cast(1 as decimal(10, 1)) FROM t --- !query 3146 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 3146 output -true - - --- !query 3147 -SELECT cast(1 as float) = cast(1 as decimal(11, 1)) FROM t --- !query 3147 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 3147 output -true - - --- !query 3148 -SELECT cast(1 as float) = cast(1 as decimal(20, 1)) FROM t --- !query 3148 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 3148 output -true - - --- !query 3149 -SELECT cast(1 as float) = cast(1 as decimal(21, 1)) FROM t --- !query 3149 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 3149 output -true - - --- !query 3150 -SELECT cast(1 as float) = cast(1 as decimal(38, 1)) FROM t --- !query 3150 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 3150 output -true - - --- !query 3151 -SELECT cast(1 as float) = cast(1 as decimal(39, 1)) FROM t --- !query 3151 schema -struct<> --- !query 3151 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3152 -SELECT cast(1 as double) = cast(1 as decimal(1, 0)) FROM t --- !query 3152 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 3152 output -true - - --- !query 3153 -SELECT cast(1 as double) = cast(1 as decimal(3, 0)) FROM t --- !query 3153 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 3153 output -true - - --- !query 3154 -SELECT cast(1 as double) = cast(1 as decimal(4, 0)) FROM t --- !query 3154 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 3154 output -true - - --- !query 3155 -SELECT cast(1 as double) = cast(1 as decimal(5, 0)) FROM t --- !query 3155 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 3155 output -true - - --- !query 3156 -SELECT cast(1 as double) = cast(1 as decimal(6, 0)) FROM t --- !query 3156 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 3156 output -true - - --- !query 3157 -SELECT cast(1 as double) = cast(1 as decimal(10, 0)) FROM t --- !query 3157 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 3157 output -true - - --- !query 3158 -SELECT cast(1 as double) = cast(1 as decimal(11, 0)) FROM t --- !query 3158 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 3158 output -true - - --- !query 3159 -SELECT cast(1 as double) = cast(1 as decimal(20, 0)) FROM t --- !query 3159 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 3159 output -true - - --- !query 3160 -SELECT cast(1 as double) = cast(1 as decimal(21, 0)) FROM t --- !query 3160 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 3160 output -true - - --- !query 3161 -SELECT cast(1 as double) = cast(1 as decimal(38, 0)) FROM t --- !query 3161 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 3161 output -true - - --- !query 3162 -SELECT cast(1 as double) = cast(1 as decimal(39, 0)) FROM t --- !query 3162 schema -struct<> --- !query 3162 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3163 -SELECT cast(1 as double) = cast(1 as decimal(1, 1)) FROM t --- !query 3163 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 3163 output -NULL - - --- !query 3164 -SELECT cast(1 as double) = cast(1 as decimal(2, 1)) FROM t --- !query 3164 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 3164 output -true - - --- !query 3165 -SELECT cast(1 as double) = cast(1 as decimal(3, 1)) FROM t --- !query 3165 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 3165 output -true - - --- !query 3166 -SELECT cast(1 as double) = cast(1 as decimal(4, 1)) FROM t --- !query 3166 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 3166 output -true - - --- !query 3167 -SELECT cast(1 as double) = cast(1 as decimal(5, 1)) FROM t --- !query 3167 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 3167 output -true - - --- !query 3168 -SELECT cast(1 as double) = cast(1 as decimal(6, 1)) FROM t --- !query 3168 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 3168 output -true - - --- !query 3169 -SELECT cast(1 as double) = cast(1 as decimal(10, 1)) FROM t --- !query 3169 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 3169 output -true - - --- !query 3170 -SELECT cast(1 as double) = cast(1 as decimal(11, 1)) FROM t --- !query 3170 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 3170 output -true - - --- !query 3171 -SELECT cast(1 as double) = cast(1 as decimal(20, 1)) FROM t --- !query 3171 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 3171 output -true - - --- !query 3172 -SELECT cast(1 as double) = cast(1 as decimal(21, 1)) FROM t --- !query 3172 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 3172 output -true - - --- !query 3173 -SELECT cast(1 as double) = cast(1 as decimal(38, 1)) FROM t --- !query 3173 schema -struct<(CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 3173 output -true - - --- !query 3174 -SELECT cast(1 as double) = cast(1 as decimal(39, 1)) FROM t --- !query 3174 schema -struct<> --- !query 3174 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3175 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 0)) FROM t --- !query 3175 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 3175 output -true - - --- !query 3176 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 0)) FROM t --- !query 3176 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 3176 output -true - - --- !query 3177 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 0)) FROM t --- !query 3177 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 3177 output -true - - --- !query 3178 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 0)) FROM t --- !query 3178 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 3178 output -true - - --- !query 3179 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 0)) FROM t --- !query 3179 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 3179 output -true - - --- !query 3180 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3180 schema -struct<(CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> --- !query 3180 output -true - - --- !query 3181 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 0)) FROM t --- !query 3181 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3181 output -true - - --- !query 3182 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 0)) FROM t --- !query 3182 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3182 output -true - - --- !query 3183 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 0)) FROM t --- !query 3183 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3183 output -true - - --- !query 3184 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 0)) FROM t --- !query 3184 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3184 output -true - - --- !query 3185 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 0)) FROM t --- !query 3185 schema -struct<> --- !query 3185 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3186 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(1, 1)) FROM t --- !query 3186 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 3186 output -NULL - - --- !query 3187 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(2, 1)) FROM t --- !query 3187 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 3187 output -true - - --- !query 3188 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 1)) FROM t --- !query 3188 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 3188 output -true - - --- !query 3189 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(4, 1)) FROM t --- !query 3189 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 3189 output -true - - --- !query 3190 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 1)) FROM t --- !query 3190 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 3190 output -true - - --- !query 3191 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(6, 1)) FROM t --- !query 3191 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 3191 output -true - - --- !query 3192 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 1)) FROM t --- !query 3192 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 3192 output -true - - --- !query 3193 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(11, 1)) FROM t --- !query 3193 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3193 output -true - - --- !query 3194 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 1)) FROM t --- !query 3194 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3194 output -true - - --- !query 3195 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(21, 1)) FROM t --- !query 3195 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3195 output -true - - --- !query 3196 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(38, 1)) FROM t --- !query 3196 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3196 output -true - - --- !query 3197 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 1)) FROM t --- !query 3197 schema -struct<> --- !query 3197 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3198 -SELECT cast('1' as binary) = cast(1 as decimal(1, 0)) FROM t --- !query 3198 schema -struct<> --- !query 3198 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 3199 -SELECT cast('1' as binary) = cast(1 as decimal(3, 0)) FROM t --- !query 3199 schema -struct<> --- !query 3199 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 3200 -SELECT cast('1' as binary) = cast(1 as decimal(4, 0)) FROM t --- !query 3200 schema -struct<> --- !query 3200 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 3201 -SELECT cast('1' as binary) = cast(1 as decimal(5, 0)) FROM t --- !query 3201 schema -struct<> --- !query 3201 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 3202 -SELECT cast('1' as binary) = cast(1 as decimal(6, 0)) FROM t --- !query 3202 schema -struct<> --- !query 3202 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 3203 -SELECT cast('1' as binary) = cast(1 as decimal(10, 0)) FROM t --- !query 3203 schema -struct<> --- !query 3203 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 3204 -SELECT cast('1' as binary) = cast(1 as decimal(11, 0)) FROM t --- !query 3204 schema -struct<> --- !query 3204 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 3205 -SELECT cast('1' as binary) = cast(1 as decimal(20, 0)) FROM t --- !query 3205 schema -struct<> --- !query 3205 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 3206 -SELECT cast('1' as binary) = cast(1 as decimal(21, 0)) FROM t --- !query 3206 schema -struct<> --- !query 3206 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 3207 -SELECT cast('1' as binary) = cast(1 as decimal(38, 0)) FROM t --- !query 3207 schema -struct<> --- !query 3207 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 3208 -SELECT cast('1' as binary) = cast(1 as decimal(39, 0)) FROM t --- !query 3208 schema -struct<> --- !query 3208 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3209 -SELECT cast('1' as binary) = cast(1 as decimal(1, 1)) FROM t --- !query 3209 schema -struct<> --- !query 3209 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 3210 -SELECT cast('1' as binary) = cast(1 as decimal(2, 1)) FROM t --- !query 3210 schema -struct<> --- !query 3210 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 3211 -SELECT cast('1' as binary) = cast(1 as decimal(3, 1)) FROM t --- !query 3211 schema -struct<> --- !query 3211 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 3212 -SELECT cast('1' as binary) = cast(1 as decimal(4, 1)) FROM t --- !query 3212 schema -struct<> --- !query 3212 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 3213 -SELECT cast('1' as binary) = cast(1 as decimal(5, 1)) FROM t --- !query 3213 schema -struct<> --- !query 3213 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 3214 -SELECT cast('1' as binary) = cast(1 as decimal(6, 1)) FROM t --- !query 3214 schema -struct<> --- !query 3214 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 3215 -SELECT cast('1' as binary) = cast(1 as decimal(10, 1)) FROM t --- !query 3215 schema -struct<> --- !query 3215 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 3216 -SELECT cast('1' as binary) = cast(1 as decimal(11, 1)) FROM t --- !query 3216 schema -struct<> --- !query 3216 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 3217 -SELECT cast('1' as binary) = cast(1 as decimal(20, 1)) FROM t --- !query 3217 schema -struct<> --- !query 3217 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 3218 -SELECT cast('1' as binary) = cast(1 as decimal(21, 1)) FROM t --- !query 3218 schema -struct<> --- !query 3218 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 3219 -SELECT cast('1' as binary) = cast(1 as decimal(38, 1)) FROM t --- !query 3219 schema -struct<> --- !query 3219 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 3220 -SELECT cast('1' as binary) = cast(1 as decimal(39, 1)) FROM t --- !query 3220 schema -struct<> --- !query 3220 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3221 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 0)) FROM t --- !query 3221 schema -struct<> --- !query 3221 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 3222 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 0)) FROM t --- !query 3222 schema -struct<> --- !query 3222 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 3223 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 0)) FROM t --- !query 3223 schema -struct<> --- !query 3223 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 3224 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 0)) FROM t --- !query 3224 schema -struct<> --- !query 3224 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 3225 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 0)) FROM t --- !query 3225 schema -struct<> --- !query 3225 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 3226 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 0)) FROM t --- !query 3226 schema -struct<> --- !query 3226 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 3227 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 0)) FROM t --- !query 3227 schema -struct<> --- !query 3227 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 3228 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 0)) FROM t --- !query 3228 schema -struct<> --- !query 3228 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 3229 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 0)) FROM t --- !query 3229 schema -struct<> --- !query 3229 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 3230 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 0)) FROM t --- !query 3230 schema -struct<> --- !query 3230 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 3231 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 0)) FROM t --- !query 3231 schema -struct<> --- !query 3231 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3232 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(1, 1)) FROM t --- !query 3232 schema -struct<> --- !query 3232 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 3233 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(2, 1)) FROM t --- !query 3233 schema -struct<> --- !query 3233 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 3234 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 1)) FROM t --- !query 3234 schema -struct<> --- !query 3234 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 3235 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(4, 1)) FROM t --- !query 3235 schema -struct<> --- !query 3235 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 3236 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 1)) FROM t --- !query 3236 schema -struct<> --- !query 3236 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 3237 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(6, 1)) FROM t --- !query 3237 schema -struct<> --- !query 3237 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 3238 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 1)) FROM t --- !query 3238 schema -struct<> --- !query 3238 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 3239 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(11, 1)) FROM t --- !query 3239 schema -struct<> --- !query 3239 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 3240 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 1)) FROM t --- !query 3240 schema -struct<> --- !query 3240 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 3241 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(21, 1)) FROM t --- !query 3241 schema -struct<> --- !query 3241 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 3242 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(38, 1)) FROM t --- !query 3242 schema -struct<> --- !query 3242 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 3243 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 1)) FROM t --- !query 3243 schema -struct<> --- !query 3243 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3244 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 0)) FROM t --- !query 3244 schema -struct<> --- !query 3244 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 3245 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 0)) FROM t --- !query 3245 schema -struct<> --- !query 3245 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 3246 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 0)) FROM t --- !query 3246 schema -struct<> --- !query 3246 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 3247 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 0)) FROM t --- !query 3247 schema -struct<> --- !query 3247 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 3248 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 0)) FROM t --- !query 3248 schema -struct<> --- !query 3248 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 3249 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 0)) FROM t --- !query 3249 schema -struct<> --- !query 3249 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 3250 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 0)) FROM t --- !query 3250 schema -struct<> --- !query 3250 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 3251 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 0)) FROM t --- !query 3251 schema -struct<> --- !query 3251 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 3252 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 0)) FROM t --- !query 3252 schema -struct<> --- !query 3252 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 3253 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 0)) FROM t --- !query 3253 schema -struct<> --- !query 3253 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 3254 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 0)) FROM t --- !query 3254 schema -struct<> --- !query 3254 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 0)) FROM t - - --- !query 3255 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(1, 1)) FROM t --- !query 3255 schema -struct<> --- !query 3255 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 3256 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(2, 1)) FROM t --- !query 3256 schema -struct<> --- !query 3256 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 3257 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 1)) FROM t --- !query 3257 schema -struct<> --- !query 3257 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 3258 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(4, 1)) FROM t --- !query 3258 schema -struct<> --- !query 3258 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 3259 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 1)) FROM t --- !query 3259 schema -struct<> --- !query 3259 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 3260 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(6, 1)) FROM t --- !query 3260 schema -struct<> --- !query 3260 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 3261 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 1)) FROM t --- !query 3261 schema -struct<> --- !query 3261 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 3262 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(11, 1)) FROM t --- !query 3262 schema -struct<> --- !query 3262 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 3263 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 1)) FROM t --- !query 3263 schema -struct<> --- !query 3263 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 3264 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(21, 1)) FROM t --- !query 3264 schema -struct<> --- !query 3264 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 3265 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(38, 1)) FROM t --- !query 3265 schema -struct<> --- !query 3265 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 3266 -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 1)) FROM t --- !query 3266 schema -struct<> --- !query 3266 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(39, 1)) FROM t - - --- !query 3267 -SELECT cast(1 as decimal(1, 0)) = cast(1 as tinyint) FROM t --- !query 3267 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> --- !query 3267 output -true - - --- !query 3268 -SELECT cast(1 as decimal(3, 0)) = cast(1 as tinyint) FROM t --- !query 3268 schema -struct<(CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> --- !query 3268 output -true - - --- !query 3269 -SELECT cast(1 as decimal(4, 0)) = cast(1 as tinyint) FROM t --- !query 3269 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> --- !query 3269 output -true - - --- !query 3270 -SELECT cast(1 as decimal(5, 0)) = cast(1 as tinyint) FROM t --- !query 3270 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 3270 output -true - - --- !query 3271 -SELECT cast(1 as decimal(6, 0)) = cast(1 as tinyint) FROM t --- !query 3271 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> --- !query 3271 output -true - - --- !query 3272 -SELECT cast(1 as decimal(10, 0)) = cast(1 as tinyint) FROM t --- !query 3272 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 3272 output -true - - --- !query 3273 -SELECT cast(1 as decimal(11, 0)) = cast(1 as tinyint) FROM t --- !query 3273 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> --- !query 3273 output -true - - --- !query 3274 -SELECT cast(1 as decimal(20, 0)) = cast(1 as tinyint) FROM t --- !query 3274 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 3274 output -true - - --- !query 3275 -SELECT cast(1 as decimal(21, 0)) = cast(1 as tinyint) FROM t --- !query 3275 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> --- !query 3275 output -true - - --- !query 3276 -SELECT cast(1 as decimal(38, 0)) = cast(1 as tinyint) FROM t --- !query 3276 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> --- !query 3276 output -true - - --- !query 3277 -SELECT cast(1 as decimal(39, 0)) = cast(1 as tinyint) FROM t --- !query 3277 schema -struct<> --- !query 3277 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as tinyint) FROM t - - --- !query 3278 -SELECT cast(1 as decimal(1, 1)) = cast(1 as tinyint) FROM t --- !query 3278 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3278 output -NULL - - --- !query 3279 -SELECT cast(1 as decimal(2, 1)) = cast(1 as tinyint) FROM t --- !query 3279 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3279 output -true - - --- !query 3280 -SELECT cast(1 as decimal(3, 1)) = cast(1 as tinyint) FROM t --- !query 3280 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3280 output -true - - --- !query 3281 -SELECT cast(1 as decimal(4, 1)) = cast(1 as tinyint) FROM t --- !query 3281 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3281 output -true - - --- !query 3282 -SELECT cast(1 as decimal(5, 1)) = cast(1 as tinyint) FROM t --- !query 3282 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> --- !query 3282 output -true - - --- !query 3283 -SELECT cast(1 as decimal(6, 1)) = cast(1 as tinyint) FROM t --- !query 3283 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> --- !query 3283 output -true - - --- !query 3284 -SELECT cast(1 as decimal(10, 1)) = cast(1 as tinyint) FROM t --- !query 3284 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> --- !query 3284 output -true - - --- !query 3285 -SELECT cast(1 as decimal(11, 1)) = cast(1 as tinyint) FROM t --- !query 3285 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> --- !query 3285 output -true - - --- !query 3286 -SELECT cast(1 as decimal(20, 1)) = cast(1 as tinyint) FROM t --- !query 3286 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> --- !query 3286 output -true - - --- !query 3287 -SELECT cast(1 as decimal(21, 1)) = cast(1 as tinyint) FROM t --- !query 3287 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> --- !query 3287 output -true - - --- !query 3288 -SELECT cast(1 as decimal(38, 1)) = cast(1 as tinyint) FROM t --- !query 3288 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> --- !query 3288 output -true - - --- !query 3289 -SELECT cast(1 as decimal(39, 1)) = cast(1 as tinyint) FROM t --- !query 3289 schema -struct<> --- !query 3289 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as tinyint) FROM t - - --- !query 3290 -SELECT cast(1 as decimal(1, 0)) = cast(1 as smallint) FROM t --- !query 3290 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3290 output -true - - --- !query 3291 -SELECT cast(1 as decimal(3, 0)) = cast(1 as smallint) FROM t --- !query 3291 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3291 output -true - - --- !query 3292 -SELECT cast(1 as decimal(4, 0)) = cast(1 as smallint) FROM t --- !query 3292 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3292 output -true - - --- !query 3293 -SELECT cast(1 as decimal(5, 0)) = cast(1 as smallint) FROM t --- !query 3293 schema -struct<(CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> --- !query 3293 output -true - - --- !query 3294 -SELECT cast(1 as decimal(6, 0)) = cast(1 as smallint) FROM t --- !query 3294 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> --- !query 3294 output -true - - --- !query 3295 -SELECT cast(1 as decimal(10, 0)) = cast(1 as smallint) FROM t --- !query 3295 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 3295 output -true - - --- !query 3296 -SELECT cast(1 as decimal(11, 0)) = cast(1 as smallint) FROM t --- !query 3296 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> --- !query 3296 output -true - - --- !query 3297 -SELECT cast(1 as decimal(20, 0)) = cast(1 as smallint) FROM t --- !query 3297 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 3297 output -true - - --- !query 3298 -SELECT cast(1 as decimal(21, 0)) = cast(1 as smallint) FROM t --- !query 3298 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> --- !query 3298 output -true - - --- !query 3299 -SELECT cast(1 as decimal(38, 0)) = cast(1 as smallint) FROM t --- !query 3299 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> --- !query 3299 output -true - - --- !query 3300 -SELECT cast(1 as decimal(39, 0)) = cast(1 as smallint) FROM t --- !query 3300 schema -struct<> --- !query 3300 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as smallint) FROM t - - --- !query 3301 -SELECT cast(1 as decimal(1, 1)) = cast(1 as smallint) FROM t --- !query 3301 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3301 output -NULL - - --- !query 3302 -SELECT cast(1 as decimal(2, 1)) = cast(1 as smallint) FROM t --- !query 3302 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3302 output -true - - --- !query 3303 -SELECT cast(1 as decimal(3, 1)) = cast(1 as smallint) FROM t --- !query 3303 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3303 output -true - - --- !query 3304 -SELECT cast(1 as decimal(4, 1)) = cast(1 as smallint) FROM t --- !query 3304 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3304 output -true - - --- !query 3305 -SELECT cast(1 as decimal(5, 1)) = cast(1 as smallint) FROM t --- !query 3305 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3305 output -true - - --- !query 3306 -SELECT cast(1 as decimal(6, 1)) = cast(1 as smallint) FROM t --- !query 3306 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3306 output -true - - --- !query 3307 -SELECT cast(1 as decimal(10, 1)) = cast(1 as smallint) FROM t --- !query 3307 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> --- !query 3307 output -true - - --- !query 3308 -SELECT cast(1 as decimal(11, 1)) = cast(1 as smallint) FROM t --- !query 3308 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> --- !query 3308 output -true - - --- !query 3309 -SELECT cast(1 as decimal(20, 1)) = cast(1 as smallint) FROM t --- !query 3309 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> --- !query 3309 output -true - - --- !query 3310 -SELECT cast(1 as decimal(21, 1)) = cast(1 as smallint) FROM t --- !query 3310 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> --- !query 3310 output -true - - --- !query 3311 -SELECT cast(1 as decimal(38, 1)) = cast(1 as smallint) FROM t --- !query 3311 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> --- !query 3311 output -true - - --- !query 3312 -SELECT cast(1 as decimal(39, 1)) = cast(1 as smallint) FROM t --- !query 3312 schema -struct<> --- !query 3312 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as smallint) FROM t - - --- !query 3313 -SELECT cast(1 as decimal(1, 0)) = cast(1 as int) FROM t --- !query 3313 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3313 output -true - - --- !query 3314 -SELECT cast(1 as decimal(3, 0)) = cast(1 as int) FROM t --- !query 3314 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3314 output -true - - --- !query 3315 -SELECT cast(1 as decimal(4, 0)) = cast(1 as int) FROM t --- !query 3315 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3315 output -true - - --- !query 3316 -SELECT cast(1 as decimal(5, 0)) = cast(1 as int) FROM t --- !query 3316 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3316 output -true - - --- !query 3317 -SELECT cast(1 as decimal(6, 0)) = cast(1 as int) FROM t --- !query 3317 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3317 output -true - - --- !query 3318 -SELECT cast(1 as decimal(10, 0)) = cast(1 as int) FROM t --- !query 3318 schema -struct<(CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> --- !query 3318 output -true - - --- !query 3319 -SELECT cast(1 as decimal(11, 0)) = cast(1 as int) FROM t --- !query 3319 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 3319 output -true - - --- !query 3320 -SELECT cast(1 as decimal(20, 0)) = cast(1 as int) FROM t --- !query 3320 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 3320 output -true - - --- !query 3321 -SELECT cast(1 as decimal(21, 0)) = cast(1 as int) FROM t --- !query 3321 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 3321 output -true - - --- !query 3322 -SELECT cast(1 as decimal(38, 0)) = cast(1 as int) FROM t --- !query 3322 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 3322 output -true - - --- !query 3323 -SELECT cast(1 as decimal(39, 0)) = cast(1 as int) FROM t --- !query 3323 schema -struct<> --- !query 3323 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as int) FROM t - - --- !query 3324 -SELECT cast(1 as decimal(1, 1)) = cast(1 as int) FROM t --- !query 3324 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3324 output -NULL - - --- !query 3325 -SELECT cast(1 as decimal(2, 1)) = cast(1 as int) FROM t --- !query 3325 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3325 output -true - - --- !query 3326 -SELECT cast(1 as decimal(3, 1)) = cast(1 as int) FROM t --- !query 3326 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3326 output -true - - --- !query 3327 -SELECT cast(1 as decimal(4, 1)) = cast(1 as int) FROM t --- !query 3327 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3327 output -true - - --- !query 3328 -SELECT cast(1 as decimal(5, 1)) = cast(1 as int) FROM t --- !query 3328 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3328 output -true - - --- !query 3329 -SELECT cast(1 as decimal(6, 1)) = cast(1 as int) FROM t --- !query 3329 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3329 output -true - - --- !query 3330 -SELECT cast(1 as decimal(10, 1)) = cast(1 as int) FROM t --- !query 3330 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3330 output -true - - --- !query 3331 -SELECT cast(1 as decimal(11, 1)) = cast(1 as int) FROM t --- !query 3331 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3331 output -true - - --- !query 3332 -SELECT cast(1 as decimal(20, 1)) = cast(1 as int) FROM t --- !query 3332 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 3332 output -true - - --- !query 3333 -SELECT cast(1 as decimal(21, 1)) = cast(1 as int) FROM t --- !query 3333 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 3333 output -true - - --- !query 3334 -SELECT cast(1 as decimal(38, 1)) = cast(1 as int) FROM t --- !query 3334 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 3334 output -true - - --- !query 3335 -SELECT cast(1 as decimal(39, 1)) = cast(1 as int) FROM t --- !query 3335 schema -struct<> --- !query 3335 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as int) FROM t - - --- !query 3336 -SELECT cast(1 as decimal(1, 0)) = cast(1 as bigint) FROM t --- !query 3336 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3336 output -true - - --- !query 3337 -SELECT cast(1 as decimal(3, 0)) = cast(1 as bigint) FROM t --- !query 3337 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3337 output -true - - --- !query 3338 -SELECT cast(1 as decimal(4, 0)) = cast(1 as bigint) FROM t --- !query 3338 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3338 output -true - - --- !query 3339 -SELECT cast(1 as decimal(5, 0)) = cast(1 as bigint) FROM t --- !query 3339 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3339 output -true - - --- !query 3340 -SELECT cast(1 as decimal(6, 0)) = cast(1 as bigint) FROM t --- !query 3340 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3340 output -true - - --- !query 3341 -SELECT cast(1 as decimal(10, 0)) = cast(1 as bigint) FROM t --- !query 3341 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3341 output -true - - --- !query 3342 -SELECT cast(1 as decimal(11, 0)) = cast(1 as bigint) FROM t --- !query 3342 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3342 output -true - - --- !query 3343 -SELECT cast(1 as decimal(20, 0)) = cast(1 as bigint) FROM t --- !query 3343 schema -struct<(CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> --- !query 3343 output -true - - --- !query 3344 -SELECT cast(1 as decimal(21, 0)) = cast(1 as bigint) FROM t --- !query 3344 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> --- !query 3344 output -true - - --- !query 3345 -SELECT cast(1 as decimal(38, 0)) = cast(1 as bigint) FROM t --- !query 3345 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> --- !query 3345 output -true - - --- !query 3346 -SELECT cast(1 as decimal(39, 0)) = cast(1 as bigint) FROM t --- !query 3346 schema -struct<> --- !query 3346 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as bigint) FROM t - - --- !query 3347 -SELECT cast(1 as decimal(1, 1)) = cast(1 as bigint) FROM t --- !query 3347 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3347 output -NULL - - --- !query 3348 -SELECT cast(1 as decimal(2, 1)) = cast(1 as bigint) FROM t --- !query 3348 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3348 output -true - - --- !query 3349 -SELECT cast(1 as decimal(3, 1)) = cast(1 as bigint) FROM t --- !query 3349 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3349 output -true - - --- !query 3350 -SELECT cast(1 as decimal(4, 1)) = cast(1 as bigint) FROM t --- !query 3350 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3350 output -true - - --- !query 3351 -SELECT cast(1 as decimal(5, 1)) = cast(1 as bigint) FROM t --- !query 3351 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3351 output -true - - --- !query 3352 -SELECT cast(1 as decimal(6, 1)) = cast(1 as bigint) FROM t --- !query 3352 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3352 output -true - - --- !query 3353 -SELECT cast(1 as decimal(10, 1)) = cast(1 as bigint) FROM t --- !query 3353 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3353 output -true - - --- !query 3354 -SELECT cast(1 as decimal(11, 1)) = cast(1 as bigint) FROM t --- !query 3354 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3354 output -true - - --- !query 3355 -SELECT cast(1 as decimal(20, 1)) = cast(1 as bigint) FROM t --- !query 3355 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3355 output -true - - --- !query 3356 -SELECT cast(1 as decimal(21, 1)) = cast(1 as bigint) FROM t --- !query 3356 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3356 output -true - - --- !query 3357 -SELECT cast(1 as decimal(38, 1)) = cast(1 as bigint) FROM t --- !query 3357 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> --- !query 3357 output -true - - --- !query 3358 -SELECT cast(1 as decimal(39, 1)) = cast(1 as bigint) FROM t --- !query 3358 schema -struct<> --- !query 3358 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as bigint) FROM t - - --- !query 3359 -SELECT cast(1 as decimal(1, 0)) = cast(1 as float) FROM t --- !query 3359 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3359 output -true - - --- !query 3360 -SELECT cast(1 as decimal(3, 0)) = cast(1 as float) FROM t --- !query 3360 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3360 output -true - - --- !query 3361 -SELECT cast(1 as decimal(4, 0)) = cast(1 as float) FROM t --- !query 3361 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3361 output -true - - --- !query 3362 -SELECT cast(1 as decimal(5, 0)) = cast(1 as float) FROM t --- !query 3362 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3362 output -true - - --- !query 3363 -SELECT cast(1 as decimal(6, 0)) = cast(1 as float) FROM t --- !query 3363 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3363 output -true - - --- !query 3364 -SELECT cast(1 as decimal(10, 0)) = cast(1 as float) FROM t --- !query 3364 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3364 output -true - - --- !query 3365 -SELECT cast(1 as decimal(11, 0)) = cast(1 as float) FROM t --- !query 3365 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3365 output -true - - --- !query 3366 -SELECT cast(1 as decimal(20, 0)) = cast(1 as float) FROM t --- !query 3366 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3366 output -true - - --- !query 3367 -SELECT cast(1 as decimal(21, 0)) = cast(1 as float) FROM t --- !query 3367 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3367 output -true - - --- !query 3368 -SELECT cast(1 as decimal(38, 0)) = cast(1 as float) FROM t --- !query 3368 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3368 output -true - - --- !query 3369 -SELECT cast(1 as decimal(39, 0)) = cast(1 as float) FROM t --- !query 3369 schema -struct<> --- !query 3369 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as float) FROM t - - --- !query 3370 -SELECT cast(1 as decimal(1, 1)) = cast(1 as float) FROM t --- !query 3370 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3370 output -NULL - - --- !query 3371 -SELECT cast(1 as decimal(2, 1)) = cast(1 as float) FROM t --- !query 3371 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3371 output -true - - --- !query 3372 -SELECT cast(1 as decimal(3, 1)) = cast(1 as float) FROM t --- !query 3372 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3372 output -true - - --- !query 3373 -SELECT cast(1 as decimal(4, 1)) = cast(1 as float) FROM t --- !query 3373 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3373 output -true - - --- !query 3374 -SELECT cast(1 as decimal(5, 1)) = cast(1 as float) FROM t --- !query 3374 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3374 output -true - - --- !query 3375 -SELECT cast(1 as decimal(6, 1)) = cast(1 as float) FROM t --- !query 3375 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3375 output -true - - --- !query 3376 -SELECT cast(1 as decimal(10, 1)) = cast(1 as float) FROM t --- !query 3376 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3376 output -true - - --- !query 3377 -SELECT cast(1 as decimal(11, 1)) = cast(1 as float) FROM t --- !query 3377 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3377 output -true - - --- !query 3378 -SELECT cast(1 as decimal(20, 1)) = cast(1 as float) FROM t --- !query 3378 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3378 output -true - - --- !query 3379 -SELECT cast(1 as decimal(21, 1)) = cast(1 as float) FROM t --- !query 3379 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3379 output -true - - --- !query 3380 -SELECT cast(1 as decimal(38, 1)) = cast(1 as float) FROM t --- !query 3380 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3380 output -true - - --- !query 3381 -SELECT cast(1 as decimal(39, 1)) = cast(1 as float) FROM t --- !query 3381 schema -struct<> --- !query 3381 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as float) FROM t - - --- !query 3382 -SELECT cast(1 as decimal(1, 0)) = cast(1 as double) FROM t --- !query 3382 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3382 output -true - - --- !query 3383 -SELECT cast(1 as decimal(3, 0)) = cast(1 as double) FROM t --- !query 3383 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3383 output -true - - --- !query 3384 -SELECT cast(1 as decimal(4, 0)) = cast(1 as double) FROM t --- !query 3384 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3384 output -true - - --- !query 3385 -SELECT cast(1 as decimal(5, 0)) = cast(1 as double) FROM t --- !query 3385 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3385 output -true - - --- !query 3386 -SELECT cast(1 as decimal(6, 0)) = cast(1 as double) FROM t --- !query 3386 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3386 output -true - - --- !query 3387 -SELECT cast(1 as decimal(10, 0)) = cast(1 as double) FROM t --- !query 3387 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3387 output -true - - --- !query 3388 -SELECT cast(1 as decimal(11, 0)) = cast(1 as double) FROM t --- !query 3388 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3388 output -true - - --- !query 3389 -SELECT cast(1 as decimal(20, 0)) = cast(1 as double) FROM t --- !query 3389 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3389 output -true - - --- !query 3390 -SELECT cast(1 as decimal(21, 0)) = cast(1 as double) FROM t --- !query 3390 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3390 output -true - - --- !query 3391 -SELECT cast(1 as decimal(38, 0)) = cast(1 as double) FROM t --- !query 3391 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3391 output -true - - --- !query 3392 -SELECT cast(1 as decimal(39, 0)) = cast(1 as double) FROM t --- !query 3392 schema -struct<> --- !query 3392 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as double) FROM t - - --- !query 3393 -SELECT cast(1 as decimal(1, 1)) = cast(1 as double) FROM t --- !query 3393 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3393 output -NULL - - --- !query 3394 -SELECT cast(1 as decimal(2, 1)) = cast(1 as double) FROM t --- !query 3394 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3394 output -true - - --- !query 3395 -SELECT cast(1 as decimal(3, 1)) = cast(1 as double) FROM t --- !query 3395 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3395 output -true - - --- !query 3396 -SELECT cast(1 as decimal(4, 1)) = cast(1 as double) FROM t --- !query 3396 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3396 output -true - - --- !query 3397 -SELECT cast(1 as decimal(5, 1)) = cast(1 as double) FROM t --- !query 3397 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3397 output -true - - --- !query 3398 -SELECT cast(1 as decimal(6, 1)) = cast(1 as double) FROM t --- !query 3398 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3398 output -true - - --- !query 3399 -SELECT cast(1 as decimal(10, 1)) = cast(1 as double) FROM t --- !query 3399 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3399 output -true - - --- !query 3400 -SELECT cast(1 as decimal(11, 1)) = cast(1 as double) FROM t --- !query 3400 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3400 output -true - - --- !query 3401 -SELECT cast(1 as decimal(20, 1)) = cast(1 as double) FROM t --- !query 3401 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3401 output -true - - --- !query 3402 -SELECT cast(1 as decimal(21, 1)) = cast(1 as double) FROM t --- !query 3402 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3402 output -true - - --- !query 3403 -SELECT cast(1 as decimal(38, 1)) = cast(1 as double) FROM t --- !query 3403 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(1 AS DOUBLE)):boolean> --- !query 3403 output -true - - --- !query 3404 -SELECT cast(1 as decimal(39, 1)) = cast(1 as double) FROM t --- !query 3404 schema -struct<> --- !query 3404 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as double) FROM t - - --- !query 3405 -SELECT cast(1 as decimal(1, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3405 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3405 output -true - - --- !query 3406 -SELECT cast(1 as decimal(3, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3406 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3406 output -true - - --- !query 3407 -SELECT cast(1 as decimal(4, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3407 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3407 output -true - - --- !query 3408 -SELECT cast(1 as decimal(5, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3408 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3408 output -true - - --- !query 3409 -SELECT cast(1 as decimal(6, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3409 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3409 output -true - - --- !query 3410 -SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3410 schema -struct<(CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0))):boolean> --- !query 3410 output -true - - --- !query 3411 -SELECT cast(1 as decimal(11, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3411 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 3411 output -true - - --- !query 3412 -SELECT cast(1 as decimal(20, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3412 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 3412 output -true - - --- !query 3413 -SELECT cast(1 as decimal(21, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3413 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 3413 output -true - - --- !query 3414 -SELECT cast(1 as decimal(38, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3414 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 3414 output -true - - --- !query 3415 -SELECT cast(1 as decimal(39, 0)) = cast(1 as decimal(10, 0)) FROM t --- !query 3415 schema -struct<> --- !query 3415 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as decimal(10, 0)) FROM t - - --- !query 3416 -SELECT cast(1 as decimal(1, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3416 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3416 output -NULL - - --- !query 3417 -SELECT cast(1 as decimal(2, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3417 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3417 output -true - - --- !query 3418 -SELECT cast(1 as decimal(3, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3418 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3418 output -true - - --- !query 3419 -SELECT cast(1 as decimal(4, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3419 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3419 output -true - - --- !query 3420 -SELECT cast(1 as decimal(5, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3420 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3420 output -true - - --- !query 3421 -SELECT cast(1 as decimal(6, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3421 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3421 output -true - - --- !query 3422 -SELECT cast(1 as decimal(10, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3422 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3422 output -true - - --- !query 3423 -SELECT cast(1 as decimal(11, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3423 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3423 output -true - - --- !query 3424 -SELECT cast(1 as decimal(20, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3424 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 3424 output -true - - --- !query 3425 -SELECT cast(1 as decimal(21, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3425 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 3425 output -true - - --- !query 3426 -SELECT cast(1 as decimal(38, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3426 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 3426 output -true - - --- !query 3427 -SELECT cast(1 as decimal(39, 1)) = cast(1 as decimal(10, 0)) FROM t --- !query 3427 schema -struct<> --- !query 3427 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as decimal(10, 0)) FROM t - - --- !query 3428 -SELECT cast(1 as decimal(1, 0)) = cast(1 as string) FROM t --- !query 3428 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3428 output -true - - --- !query 3429 -SELECT cast(1 as decimal(3, 0)) = cast(1 as string) FROM t --- !query 3429 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3429 output -true - - --- !query 3430 -SELECT cast(1 as decimal(4, 0)) = cast(1 as string) FROM t --- !query 3430 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3430 output -true - - --- !query 3431 -SELECT cast(1 as decimal(5, 0)) = cast(1 as string) FROM t --- !query 3431 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3431 output -true - - --- !query 3432 -SELECT cast(1 as decimal(6, 0)) = cast(1 as string) FROM t --- !query 3432 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3432 output -true - - --- !query 3433 -SELECT cast(1 as decimal(10, 0)) = cast(1 as string) FROM t --- !query 3433 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3433 output -true - - --- !query 3434 -SELECT cast(1 as decimal(11, 0)) = cast(1 as string) FROM t --- !query 3434 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3434 output -true - - --- !query 3435 -SELECT cast(1 as decimal(20, 0)) = cast(1 as string) FROM t --- !query 3435 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3435 output -true - - --- !query 3436 -SELECT cast(1 as decimal(21, 0)) = cast(1 as string) FROM t --- !query 3436 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3436 output -true - - --- !query 3437 -SELECT cast(1 as decimal(38, 0)) = cast(1 as string) FROM t --- !query 3437 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3437 output -true - - --- !query 3438 -SELECT cast(1 as decimal(39, 0)) = cast(1 as string) FROM t --- !query 3438 schema -struct<> --- !query 3438 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as string) FROM t - - --- !query 3439 -SELECT cast(1 as decimal(1, 1)) = cast(1 as string) FROM t --- !query 3439 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3439 output -NULL - - --- !query 3440 -SELECT cast(1 as decimal(2, 1)) = cast(1 as string) FROM t --- !query 3440 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3440 output -true - - --- !query 3441 -SELECT cast(1 as decimal(3, 1)) = cast(1 as string) FROM t --- !query 3441 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3441 output -true - - --- !query 3442 -SELECT cast(1 as decimal(4, 1)) = cast(1 as string) FROM t --- !query 3442 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3442 output -true - - --- !query 3443 -SELECT cast(1 as decimal(5, 1)) = cast(1 as string) FROM t --- !query 3443 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3443 output -true - - --- !query 3444 -SELECT cast(1 as decimal(6, 1)) = cast(1 as string) FROM t --- !query 3444 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3444 output -true - - --- !query 3445 -SELECT cast(1 as decimal(10, 1)) = cast(1 as string) FROM t --- !query 3445 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3445 output -true - - --- !query 3446 -SELECT cast(1 as decimal(11, 1)) = cast(1 as string) FROM t --- !query 3446 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3446 output -true - - --- !query 3447 -SELECT cast(1 as decimal(20, 1)) = cast(1 as string) FROM t --- !query 3447 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3447 output -true - - --- !query 3448 -SELECT cast(1 as decimal(21, 1)) = cast(1 as string) FROM t --- !query 3448 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3448 output -true - - --- !query 3449 -SELECT cast(1 as decimal(38, 1)) = cast(1 as string) FROM t --- !query 3449 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3449 output -true - - --- !query 3450 -SELECT cast(1 as decimal(39, 1)) = cast(1 as string) FROM t --- !query 3450 schema -struct<> --- !query 3450 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as string) FROM t - - --- !query 3451 -SELECT cast(1 as decimal(1, 0)) = cast('1' as binary) FROM t --- !query 3451 schema -struct<> --- !query 3451 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 3452 -SELECT cast(1 as decimal(3, 0)) = cast('1' as binary) FROM t --- !query 3452 schema -struct<> --- !query 3452 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 3453 -SELECT cast(1 as decimal(4, 0)) = cast('1' as binary) FROM t --- !query 3453 schema -struct<> --- !query 3453 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 3454 -SELECT cast(1 as decimal(5, 0)) = cast('1' as binary) FROM t --- !query 3454 schema -struct<> --- !query 3454 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 3455 -SELECT cast(1 as decimal(6, 0)) = cast('1' as binary) FROM t --- !query 3455 schema -struct<> --- !query 3455 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 3456 -SELECT cast(1 as decimal(10, 0)) = cast('1' as binary) FROM t --- !query 3456 schema -struct<> --- !query 3456 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 3457 -SELECT cast(1 as decimal(11, 0)) = cast('1' as binary) FROM t --- !query 3457 schema -struct<> --- !query 3457 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 3458 -SELECT cast(1 as decimal(20, 0)) = cast('1' as binary) FROM t --- !query 3458 schema -struct<> --- !query 3458 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 3459 -SELECT cast(1 as decimal(21, 0)) = cast('1' as binary) FROM t --- !query 3459 schema -struct<> --- !query 3459 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 3460 -SELECT cast(1 as decimal(38, 0)) = cast('1' as binary) FROM t --- !query 3460 schema -struct<> --- !query 3460 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 3461 -SELECT cast(1 as decimal(39, 0)) = cast('1' as binary) FROM t --- !query 3461 schema -struct<> --- !query 3461 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast('1' as binary) FROM t - - --- !query 3462 -SELECT cast(1 as decimal(1, 1)) = cast('1' as binary) FROM t --- !query 3462 schema -struct<> --- !query 3462 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 3463 -SELECT cast(1 as decimal(2, 1)) = cast('1' as binary) FROM t --- !query 3463 schema -struct<> --- !query 3463 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 3464 -SELECT cast(1 as decimal(3, 1)) = cast('1' as binary) FROM t --- !query 3464 schema -struct<> --- !query 3464 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 3465 -SELECT cast(1 as decimal(4, 1)) = cast('1' as binary) FROM t --- !query 3465 schema -struct<> --- !query 3465 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 3466 -SELECT cast(1 as decimal(5, 1)) = cast('1' as binary) FROM t --- !query 3466 schema -struct<> --- !query 3466 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 3467 -SELECT cast(1 as decimal(6, 1)) = cast('1' as binary) FROM t --- !query 3467 schema -struct<> --- !query 3467 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 3468 -SELECT cast(1 as decimal(10, 1)) = cast('1' as binary) FROM t --- !query 3468 schema -struct<> --- !query 3468 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 3469 -SELECT cast(1 as decimal(11, 1)) = cast('1' as binary) FROM t --- !query 3469 schema -struct<> --- !query 3469 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 3470 -SELECT cast(1 as decimal(20, 1)) = cast('1' as binary) FROM t --- !query 3470 schema -struct<> --- !query 3470 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 3471 -SELECT cast(1 as decimal(21, 1)) = cast('1' as binary) FROM t --- !query 3471 schema -struct<> --- !query 3471 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 3472 -SELECT cast(1 as decimal(38, 1)) = cast('1' as binary) FROM t --- !query 3472 schema -struct<> --- !query 3472 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 3473 -SELECT cast(1 as decimal(39, 1)) = cast('1' as binary) FROM t --- !query 3473 schema -struct<> --- !query 3473 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast('1' as binary) FROM t - - --- !query 3474 -SELECT cast(1 as decimal(1, 0)) = cast(1 as boolean) FROM t --- !query 3474 schema -struct<(CAST(1 AS DECIMAL(1,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,0))):boolean> --- !query 3474 output -true - - --- !query 3475 -SELECT cast(1 as decimal(3, 0)) = cast(1 as boolean) FROM t --- !query 3475 schema -struct<(CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0))):boolean> --- !query 3475 output -true - - --- !query 3476 -SELECT cast(1 as decimal(4, 0)) = cast(1 as boolean) FROM t --- !query 3476 schema -struct<(CAST(1 AS DECIMAL(4,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,0))):boolean> --- !query 3476 output -true - - --- !query 3477 -SELECT cast(1 as decimal(5, 0)) = cast(1 as boolean) FROM t --- !query 3477 schema -struct<(CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0))):boolean> --- !query 3477 output -true - - --- !query 3478 -SELECT cast(1 as decimal(6, 0)) = cast(1 as boolean) FROM t --- !query 3478 schema -struct<(CAST(1 AS DECIMAL(6,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,0))):boolean> --- !query 3478 output -true - - --- !query 3479 -SELECT cast(1 as decimal(10, 0)) = cast(1 as boolean) FROM t --- !query 3479 schema -struct<(CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0))):boolean> --- !query 3479 output -true - - --- !query 3480 -SELECT cast(1 as decimal(11, 0)) = cast(1 as boolean) FROM t --- !query 3480 schema -struct<(CAST(1 AS DECIMAL(11,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,0))):boolean> --- !query 3480 output -true - - --- !query 3481 -SELECT cast(1 as decimal(20, 0)) = cast(1 as boolean) FROM t --- !query 3481 schema -struct<(CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0))):boolean> --- !query 3481 output -true - - --- !query 3482 -SELECT cast(1 as decimal(21, 0)) = cast(1 as boolean) FROM t --- !query 3482 schema -struct<(CAST(1 AS DECIMAL(21,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,0))):boolean> --- !query 3482 output -true - - --- !query 3483 -SELECT cast(1 as decimal(38, 0)) = cast(1 as boolean) FROM t --- !query 3483 schema -struct<(CAST(1 AS DECIMAL(38,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,0))):boolean> --- !query 3483 output -true - - --- !query 3484 -SELECT cast(1 as decimal(39, 0)) = cast(1 as boolean) FROM t --- !query 3484 schema -struct<> --- !query 3484 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast(1 as boolean) FROM t - - --- !query 3485 -SELECT cast(1 as decimal(1, 1)) = cast(1 as boolean) FROM t --- !query 3485 schema -struct<(CAST(1 AS DECIMAL(1,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,1))):boolean> --- !query 3485 output -NULL - - --- !query 3486 -SELECT cast(1 as decimal(2, 1)) = cast(1 as boolean) FROM t --- !query 3486 schema -struct<(CAST(1 AS DECIMAL(2,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(2,1))):boolean> --- !query 3486 output -true - - --- !query 3487 -SELECT cast(1 as decimal(3, 1)) = cast(1 as boolean) FROM t --- !query 3487 schema -struct<(CAST(1 AS DECIMAL(3,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,1))):boolean> --- !query 3487 output -true - - --- !query 3488 -SELECT cast(1 as decimal(4, 1)) = cast(1 as boolean) FROM t --- !query 3488 schema -struct<(CAST(1 AS DECIMAL(4,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,1))):boolean> --- !query 3488 output -true - - --- !query 3489 -SELECT cast(1 as decimal(5, 1)) = cast(1 as boolean) FROM t --- !query 3489 schema -struct<(CAST(1 AS DECIMAL(5,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,1))):boolean> --- !query 3489 output -true - - --- !query 3490 -SELECT cast(1 as decimal(6, 1)) = cast(1 as boolean) FROM t --- !query 3490 schema -struct<(CAST(1 AS DECIMAL(6,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,1))):boolean> --- !query 3490 output -true - - --- !query 3491 -SELECT cast(1 as decimal(10, 1)) = cast(1 as boolean) FROM t --- !query 3491 schema -struct<(CAST(1 AS DECIMAL(10,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,1))):boolean> --- !query 3491 output -true - - --- !query 3492 -SELECT cast(1 as decimal(11, 1)) = cast(1 as boolean) FROM t --- !query 3492 schema -struct<(CAST(1 AS DECIMAL(11,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,1))):boolean> --- !query 3492 output -true - - --- !query 3493 -SELECT cast(1 as decimal(20, 1)) = cast(1 as boolean) FROM t --- !query 3493 schema -struct<(CAST(1 AS DECIMAL(20,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,1))):boolean> --- !query 3493 output -true - - --- !query 3494 -SELECT cast(1 as decimal(21, 1)) = cast(1 as boolean) FROM t --- !query 3494 schema -struct<(CAST(1 AS DECIMAL(21,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,1))):boolean> --- !query 3494 output -true - - --- !query 3495 -SELECT cast(1 as decimal(38, 1)) = cast(1 as boolean) FROM t --- !query 3495 schema -struct<(CAST(1 AS DECIMAL(38,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,1))):boolean> --- !query 3495 output -true - - --- !query 3496 -SELECT cast(1 as decimal(39, 1)) = cast(1 as boolean) FROM t --- !query 3496 schema -struct<> --- !query 3496 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast(1 as boolean) FROM t - - --- !query 3497 -SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3497 schema -struct<> --- !query 3497 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 3498 -SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3498 schema -struct<> --- !query 3498 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 3499 -SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3499 schema -struct<> --- !query 3499 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 3500 -SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3500 schema -struct<> --- !query 3500 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 3501 -SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3501 schema -struct<> --- !query 3501 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 3502 -SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3502 schema -struct<> --- !query 3502 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 3503 -SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3503 schema -struct<> --- !query 3503 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 3504 -SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3504 schema -struct<> --- !query 3504 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 3505 -SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3505 schema -struct<> --- !query 3505 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 3506 -SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3506 schema -struct<> --- !query 3506 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 3507 -SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3507 schema -struct<> --- !query 3507 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 3508 -SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3508 schema -struct<> --- !query 3508 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 3509 -SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3509 schema -struct<> --- !query 3509 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 3510 -SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3510 schema -struct<> --- !query 3510 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 3511 -SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3511 schema -struct<> --- !query 3511 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 3512 -SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3512 schema -struct<> --- !query 3512 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 3513 -SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3513 schema -struct<> --- !query 3513 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 3514 -SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3514 schema -struct<> --- !query 3514 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 3515 -SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3515 schema -struct<> --- !query 3515 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 3516 -SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3516 schema -struct<> --- !query 3516 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 3517 -SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3517 schema -struct<> --- !query 3517 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 3518 -SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3518 schema -struct<> --- !query 3518 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 3519 -SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 3519 schema -struct<> --- !query 3519 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 3520 -SELECT cast(1 as decimal(1, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3520 schema -struct<> --- !query 3520 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 3521 -SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3521 schema -struct<> --- !query 3521 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 3522 -SELECT cast(1 as decimal(4, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3522 schema -struct<> --- !query 3522 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 3523 -SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3523 schema -struct<> --- !query 3523 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 3524 -SELECT cast(1 as decimal(6, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3524 schema -struct<> --- !query 3524 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 3525 -SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3525 schema -struct<> --- !query 3525 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 3526 -SELECT cast(1 as decimal(11, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3526 schema -struct<> --- !query 3526 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 3527 -SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3527 schema -struct<> --- !query 3527 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 3528 -SELECT cast(1 as decimal(21, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3528 schema -struct<> --- !query 3528 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 3529 -SELECT cast(1 as decimal(38, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3529 schema -struct<> --- !query 3529 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 3530 -SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3530 schema -struct<> --- !query 3530 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) = cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 3531 -SELECT cast(1 as decimal(1, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3531 schema -struct<> --- !query 3531 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 3532 -SELECT cast(1 as decimal(2, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3532 schema -struct<> --- !query 3532 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 3533 -SELECT cast(1 as decimal(3, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3533 schema -struct<> --- !query 3533 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 3534 -SELECT cast(1 as decimal(4, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3534 schema -struct<> --- !query 3534 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 3535 -SELECT cast(1 as decimal(5, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3535 schema -struct<> --- !query 3535 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 3536 -SELECT cast(1 as decimal(6, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3536 schema -struct<> --- !query 3536 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 3537 -SELECT cast(1 as decimal(10, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3537 schema -struct<> --- !query 3537 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 3538 -SELECT cast(1 as decimal(11, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3538 schema -struct<> --- !query 3538 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 3539 -SELECT cast(1 as decimal(20, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3539 schema -struct<> --- !query 3539 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 3540 -SELECT cast(1 as decimal(21, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3540 schema -struct<> --- !query 3540 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 3541 -SELECT cast(1 as decimal(38, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3541 schema -struct<> --- !query 3541 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 3542 -SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00' as date) FROM t --- !query 3542 schema -struct<> --- !query 3542 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) = cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 3543 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3543 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> --- !query 3543 output -true - - --- !query 3544 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3544 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) <=> CAST(1 AS DECIMAL(3,0))):boolean> --- !query 3544 output -true - - --- !query 3545 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3545 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> --- !query 3545 output -true - - --- !query 3546 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3546 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3546 output -true - - --- !query 3547 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3547 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 3547 output -true - - --- !query 3548 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3548 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3548 output -true - - --- !query 3549 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3549 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3549 output -true - - --- !query 3550 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3550 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3550 output -true - - --- !query 3551 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3551 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3551 output -true - - --- !query 3552 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3552 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3552 output -true - - --- !query 3553 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3553 schema -struct<> --- !query 3553 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3554 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3554 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> --- !query 3554 output -false - - --- !query 3555 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3555 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> --- !query 3555 output -true - - --- !query 3556 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3556 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> --- !query 3556 output -true - - --- !query 3557 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3557 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> --- !query 3557 output -true - - --- !query 3558 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3558 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> --- !query 3558 output -true - - --- !query 3559 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3559 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 3559 output -true - - --- !query 3560 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3560 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 3560 output -true - - --- !query 3561 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3561 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3561 output -true - - --- !query 3562 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3562 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3562 output -true - - --- !query 3563 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3563 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3563 output -true - - --- !query 3564 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3564 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3564 output -true - - --- !query 3565 -SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3565 schema -struct<> --- !query 3565 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3566 -SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3566 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> --- !query 3566 output -true - - --- !query 3567 -SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3567 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 3567 output -true - - --- !query 3568 -SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3568 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> --- !query 3568 output -true - - --- !query 3569 -SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3569 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) <=> CAST(1 AS DECIMAL(5,0))):boolean> --- !query 3569 output -true - - --- !query 3570 -SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3570 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 3570 output -true - - --- !query 3571 -SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3571 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3571 output -true - - --- !query 3572 -SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3572 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3572 output -true - - --- !query 3573 -SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3573 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3573 output -true - - --- !query 3574 -SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3574 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3574 output -true - - --- !query 3575 -SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3575 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3575 output -true - - --- !query 3576 -SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3576 schema -struct<> --- !query 3576 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3577 -SELECT cast(1 as smallint) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3577 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> --- !query 3577 output -false - - --- !query 3578 -SELECT cast(1 as smallint) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3578 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> --- !query 3578 output -true - - --- !query 3579 -SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3579 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> --- !query 3579 output -true - - --- !query 3580 -SELECT cast(1 as smallint) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3580 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> --- !query 3580 output -true - - --- !query 3581 -SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3581 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> --- !query 3581 output -true - - --- !query 3582 -SELECT cast(1 as smallint) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3582 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 3582 output -true - - --- !query 3583 -SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3583 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 3583 output -true - - --- !query 3584 -SELECT cast(1 as smallint) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3584 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3584 output -true - - --- !query 3585 -SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3585 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3585 output -true - - --- !query 3586 -SELECT cast(1 as smallint) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3586 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3586 output -true - - --- !query 3587 -SELECT cast(1 as smallint) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3587 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3587 output -true - - --- !query 3588 -SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3588 schema -struct<> --- !query 3588 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3589 -SELECT cast(1 as int) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3589 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 3589 output -true - - --- !query 3590 -SELECT cast(1 as int) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3590 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 3590 output -true - - --- !query 3591 -SELECT cast(1 as int) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3591 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 3591 output -true - - --- !query 3592 -SELECT cast(1 as int) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3592 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 3592 output -true - - --- !query 3593 -SELECT cast(1 as int) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3593 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 3593 output -true - - --- !query 3594 -SELECT cast(1 as int) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3594 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> --- !query 3594 output -true - - --- !query 3595 -SELECT cast(1 as int) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3595 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3595 output -true - - --- !query 3596 -SELECT cast(1 as int) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3596 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3596 output -true - - --- !query 3597 -SELECT cast(1 as int) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3597 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3597 output -true - - --- !query 3598 -SELECT cast(1 as int) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3598 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3598 output -true - - --- !query 3599 -SELECT cast(1 as int) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3599 schema -struct<> --- !query 3599 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3600 -SELECT cast(1 as int) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3600 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 3600 output -false - - --- !query 3601 -SELECT cast(1 as int) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3601 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 3601 output -true - - --- !query 3602 -SELECT cast(1 as int) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3602 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 3602 output -true - - --- !query 3603 -SELECT cast(1 as int) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3603 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 3603 output -true - - --- !query 3604 -SELECT cast(1 as int) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3604 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 3604 output -true - - --- !query 3605 -SELECT cast(1 as int) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3605 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 3605 output -true - - --- !query 3606 -SELECT cast(1 as int) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3606 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 3606 output -true - - --- !query 3607 -SELECT cast(1 as int) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3607 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3607 output -true - - --- !query 3608 -SELECT cast(1 as int) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3608 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3608 output -true - - --- !query 3609 -SELECT cast(1 as int) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3609 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3609 output -true - - --- !query 3610 -SELECT cast(1 as int) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3610 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3610 output -true - - --- !query 3611 -SELECT cast(1 as int) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3611 schema -struct<> --- !query 3611 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3612 -SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3612 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> --- !query 3612 output -true - - --- !query 3613 -SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3613 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 3613 output -true - - --- !query 3614 -SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3614 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> --- !query 3614 output -true - - --- !query 3615 -SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3615 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 3615 output -true - - --- !query 3616 -SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3616 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> --- !query 3616 output -true - - --- !query 3617 -SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3617 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 3617 output -true - - --- !query 3618 -SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3618 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> --- !query 3618 output -true - - --- !query 3619 -SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3619 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) <=> CAST(1 AS DECIMAL(20,0))):boolean> --- !query 3619 output -true - - --- !query 3620 -SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3620 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3620 output -true - - --- !query 3621 -SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3621 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3621 output -true - - --- !query 3622 -SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3622 schema -struct<> --- !query 3622 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3623 -SELECT cast(1 as bigint) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3623 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> --- !query 3623 output -false - - --- !query 3624 -SELECT cast(1 as bigint) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3624 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> --- !query 3624 output -true - - --- !query 3625 -SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3625 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> --- !query 3625 output -true - - --- !query 3626 -SELECT cast(1 as bigint) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3626 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> --- !query 3626 output -true - - --- !query 3627 -SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3627 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> --- !query 3627 output -true - - --- !query 3628 -SELECT cast(1 as bigint) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3628 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> --- !query 3628 output -true - - --- !query 3629 -SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3629 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> --- !query 3629 output -true - - --- !query 3630 -SELECT cast(1 as bigint) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3630 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> --- !query 3630 output -true - - --- !query 3631 -SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3631 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> --- !query 3631 output -true - - --- !query 3632 -SELECT cast(1 as bigint) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3632 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3632 output -true - - --- !query 3633 -SELECT cast(1 as bigint) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3633 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3633 output -true - - --- !query 3634 -SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3634 schema -struct<> --- !query 3634 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3635 -SELECT cast(1 as float) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3635 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 3635 output -true - - --- !query 3636 -SELECT cast(1 as float) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3636 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 3636 output -true - - --- !query 3637 -SELECT cast(1 as float) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3637 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 3637 output -true - - --- !query 3638 -SELECT cast(1 as float) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3638 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 3638 output -true - - --- !query 3639 -SELECT cast(1 as float) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3639 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 3639 output -true - - --- !query 3640 -SELECT cast(1 as float) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3640 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 3640 output -true - - --- !query 3641 -SELECT cast(1 as float) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3641 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 3641 output -true - - --- !query 3642 -SELECT cast(1 as float) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3642 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 3642 output -true - - --- !query 3643 -SELECT cast(1 as float) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3643 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 3643 output -true - - --- !query 3644 -SELECT cast(1 as float) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3644 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 3644 output -true - - --- !query 3645 -SELECT cast(1 as float) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3645 schema -struct<> --- !query 3645 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3646 -SELECT cast(1 as float) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3646 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 3646 output -false - - --- !query 3647 -SELECT cast(1 as float) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3647 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 3647 output -true - - --- !query 3648 -SELECT cast(1 as float) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3648 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 3648 output -true - - --- !query 3649 -SELECT cast(1 as float) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3649 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 3649 output -true - - --- !query 3650 -SELECT cast(1 as float) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3650 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 3650 output -true - - --- !query 3651 -SELECT cast(1 as float) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3651 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 3651 output -true - - --- !query 3652 -SELECT cast(1 as float) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3652 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 3652 output -true - - --- !query 3653 -SELECT cast(1 as float) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3653 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 3653 output -true - - --- !query 3654 -SELECT cast(1 as float) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3654 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 3654 output -true - - --- !query 3655 -SELECT cast(1 as float) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3655 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 3655 output -true - - --- !query 3656 -SELECT cast(1 as float) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3656 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 3656 output -true - - --- !query 3657 -SELECT cast(1 as float) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3657 schema -struct<> --- !query 3657 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3658 -SELECT cast(1 as double) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3658 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 3658 output -true - - --- !query 3659 -SELECT cast(1 as double) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3659 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 3659 output -true - - --- !query 3660 -SELECT cast(1 as double) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3660 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 3660 output -true - - --- !query 3661 -SELECT cast(1 as double) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3661 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 3661 output -true - - --- !query 3662 -SELECT cast(1 as double) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3662 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 3662 output -true - - --- !query 3663 -SELECT cast(1 as double) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3663 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 3663 output -true - - --- !query 3664 -SELECT cast(1 as double) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3664 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 3664 output -true - - --- !query 3665 -SELECT cast(1 as double) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3665 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 3665 output -true - - --- !query 3666 -SELECT cast(1 as double) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3666 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 3666 output -true - - --- !query 3667 -SELECT cast(1 as double) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3667 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 3667 output -true - - --- !query 3668 -SELECT cast(1 as double) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3668 schema -struct<> --- !query 3668 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3669 -SELECT cast(1 as double) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3669 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 3669 output -false - - --- !query 3670 -SELECT cast(1 as double) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3670 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 3670 output -true - - --- !query 3671 -SELECT cast(1 as double) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3671 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 3671 output -true - - --- !query 3672 -SELECT cast(1 as double) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3672 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 3672 output -true - - --- !query 3673 -SELECT cast(1 as double) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3673 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 3673 output -true - - --- !query 3674 -SELECT cast(1 as double) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3674 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 3674 output -true - - --- !query 3675 -SELECT cast(1 as double) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3675 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 3675 output -true - - --- !query 3676 -SELECT cast(1 as double) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3676 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 3676 output -true - - --- !query 3677 -SELECT cast(1 as double) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3677 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 3677 output -true - - --- !query 3678 -SELECT cast(1 as double) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3678 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 3678 output -true - - --- !query 3679 -SELECT cast(1 as double) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3679 schema -struct<(CAST(1 AS DOUBLE) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 3679 output -true - - --- !query 3680 -SELECT cast(1 as double) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3680 schema -struct<> --- !query 3680 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3681 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3681 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 3681 output -true - - --- !query 3682 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3682 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 3682 output -true - - --- !query 3683 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3683 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 3683 output -true - - --- !query 3684 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3684 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 3684 output -true - - --- !query 3685 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3685 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 3685 output -true - - --- !query 3686 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3686 schema -struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> --- !query 3686 output -true - - --- !query 3687 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3687 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 3687 output -true - - --- !query 3688 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3688 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3688 output -true - - --- !query 3689 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3689 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 3689 output -true - - --- !query 3690 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3690 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 3690 output -true - - --- !query 3691 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3691 schema -struct<> --- !query 3691 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3692 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3692 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 3692 output -false - - --- !query 3693 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3693 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 3693 output -true - - --- !query 3694 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3694 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 3694 output -true - - --- !query 3695 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3695 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 3695 output -true - - --- !query 3696 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3696 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 3696 output -true - - --- !query 3697 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3697 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 3697 output -true - - --- !query 3698 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3698 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 3698 output -true - - --- !query 3699 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3699 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 3699 output -true - - --- !query 3700 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3700 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 3700 output -true - - --- !query 3701 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3701 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 3701 output -true - - --- !query 3702 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3702 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 3702 output -true - - --- !query 3703 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3703 schema -struct<> --- !query 3703 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3704 -SELECT cast('1' as binary) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3704 schema -struct<> --- !query 3704 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 3705 -SELECT cast('1' as binary) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3705 schema -struct<> --- !query 3705 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 3706 -SELECT cast('1' as binary) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3706 schema -struct<> --- !query 3706 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 3707 -SELECT cast('1' as binary) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3707 schema -struct<> --- !query 3707 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 3708 -SELECT cast('1' as binary) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3708 schema -struct<> --- !query 3708 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 3709 -SELECT cast('1' as binary) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3709 schema -struct<> --- !query 3709 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 3710 -SELECT cast('1' as binary) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3710 schema -struct<> --- !query 3710 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 3711 -SELECT cast('1' as binary) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3711 schema -struct<> --- !query 3711 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 3712 -SELECT cast('1' as binary) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3712 schema -struct<> --- !query 3712 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 3713 -SELECT cast('1' as binary) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3713 schema -struct<> --- !query 3713 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 3714 -SELECT cast('1' as binary) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3714 schema -struct<> --- !query 3714 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3715 -SELECT cast('1' as binary) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3715 schema -struct<> --- !query 3715 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 3716 -SELECT cast('1' as binary) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3716 schema -struct<> --- !query 3716 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 3717 -SELECT cast('1' as binary) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3717 schema -struct<> --- !query 3717 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 3718 -SELECT cast('1' as binary) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3718 schema -struct<> --- !query 3718 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 3719 -SELECT cast('1' as binary) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3719 schema -struct<> --- !query 3719 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 3720 -SELECT cast('1' as binary) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3720 schema -struct<> --- !query 3720 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 3721 -SELECT cast('1' as binary) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3721 schema -struct<> --- !query 3721 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 3722 -SELECT cast('1' as binary) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3722 schema -struct<> --- !query 3722 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 3723 -SELECT cast('1' as binary) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3723 schema -struct<> --- !query 3723 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 3724 -SELECT cast('1' as binary) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3724 schema -struct<> --- !query 3724 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 3725 -SELECT cast('1' as binary) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3725 schema -struct<> --- !query 3725 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <=> CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 3726 -SELECT cast('1' as binary) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3726 schema -struct<> --- !query 3726 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3727 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3727 schema -struct<> --- !query 3727 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 3728 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3728 schema -struct<> --- !query 3728 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 3729 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3729 schema -struct<> --- !query 3729 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 3730 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3730 schema -struct<> --- !query 3730 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 3731 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3731 schema -struct<> --- !query 3731 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 3732 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3732 schema -struct<> --- !query 3732 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 3733 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3733 schema -struct<> --- !query 3733 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 3734 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3734 schema -struct<> --- !query 3734 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 3735 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3735 schema -struct<> --- !query 3735 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 3736 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3736 schema -struct<> --- !query 3736 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 3737 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3737 schema -struct<> --- !query 3737 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3738 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3738 schema -struct<> --- !query 3738 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 3739 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3739 schema -struct<> --- !query 3739 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 3740 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3740 schema -struct<> --- !query 3740 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 3741 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3741 schema -struct<> --- !query 3741 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 3742 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3742 schema -struct<> --- !query 3742 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 3743 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3743 schema -struct<> --- !query 3743 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 3744 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3744 schema -struct<> --- !query 3744 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 3745 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3745 schema -struct<> --- !query 3745 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 3746 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3746 schema -struct<> --- !query 3746 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 3747 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3747 schema -struct<> --- !query 3747 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 3748 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3748 schema -struct<> --- !query 3748 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <=> CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 3749 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3749 schema -struct<> --- !query 3749 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3750 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 0)) FROM t --- !query 3750 schema -struct<> --- !query 3750 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 3751 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 0)) FROM t --- !query 3751 schema -struct<> --- !query 3751 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 3752 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 0)) FROM t --- !query 3752 schema -struct<> --- !query 3752 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 3753 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 0)) FROM t --- !query 3753 schema -struct<> --- !query 3753 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 3754 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 0)) FROM t --- !query 3754 schema -struct<> --- !query 3754 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 3755 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3755 schema -struct<> --- !query 3755 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 3756 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 0)) FROM t --- !query 3756 schema -struct<> --- !query 3756 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 3757 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 0)) FROM t --- !query 3757 schema -struct<> --- !query 3757 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 3758 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 0)) FROM t --- !query 3758 schema -struct<> --- !query 3758 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 3759 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 0)) FROM t --- !query 3759 schema -struct<> --- !query 3759 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 3760 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 0)) FROM t --- !query 3760 schema -struct<> --- !query 3760 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 0)) FROM t - - --- !query 3761 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(1, 1)) FROM t --- !query 3761 schema -struct<> --- !query 3761 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 3762 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(2, 1)) FROM t --- !query 3762 schema -struct<> --- !query 3762 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 3763 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 1)) FROM t --- !query 3763 schema -struct<> --- !query 3763 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 3764 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(4, 1)) FROM t --- !query 3764 schema -struct<> --- !query 3764 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 3765 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 1)) FROM t --- !query 3765 schema -struct<> --- !query 3765 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 3766 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(6, 1)) FROM t --- !query 3766 schema -struct<> --- !query 3766 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 3767 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 1)) FROM t --- !query 3767 schema -struct<> --- !query 3767 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 3768 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(11, 1)) FROM t --- !query 3768 schema -struct<> --- !query 3768 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 3769 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 1)) FROM t --- !query 3769 schema -struct<> --- !query 3769 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 3770 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(21, 1)) FROM t --- !query 3770 schema -struct<> --- !query 3770 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 3771 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(38, 1)) FROM t --- !query 3771 schema -struct<> --- !query 3771 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <=> CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 3772 -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 1)) FROM t --- !query 3772 schema -struct<> --- !query 3772 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(39, 1)) FROM t - - --- !query 3773 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as tinyint) FROM t --- !query 3773 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> --- !query 3773 output -true - - --- !query 3774 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as tinyint) FROM t --- !query 3774 schema -struct<(CAST(1 AS DECIMAL(3,0)) <=> CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> --- !query 3774 output -true - - --- !query 3775 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as tinyint) FROM t --- !query 3775 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> --- !query 3775 output -true - - --- !query 3776 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as tinyint) FROM t --- !query 3776 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 3776 output -true - - --- !query 3777 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as tinyint) FROM t --- !query 3777 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> --- !query 3777 output -true - - --- !query 3778 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as tinyint) FROM t --- !query 3778 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 3778 output -true - - --- !query 3779 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as tinyint) FROM t --- !query 3779 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> --- !query 3779 output -true - - --- !query 3780 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as tinyint) FROM t --- !query 3780 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 3780 output -true - - --- !query 3781 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as tinyint) FROM t --- !query 3781 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> --- !query 3781 output -true - - --- !query 3782 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as tinyint) FROM t --- !query 3782 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> --- !query 3782 output -true - - --- !query 3783 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as tinyint) FROM t --- !query 3783 schema -struct<> --- !query 3783 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as tinyint) FROM t - - --- !query 3784 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as tinyint) FROM t --- !query 3784 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3784 output -false - - --- !query 3785 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as tinyint) FROM t --- !query 3785 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3785 output -true - - --- !query 3786 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as tinyint) FROM t --- !query 3786 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3786 output -true - - --- !query 3787 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as tinyint) FROM t --- !query 3787 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 3787 output -true - - --- !query 3788 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as tinyint) FROM t --- !query 3788 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> --- !query 3788 output -true - - --- !query 3789 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as tinyint) FROM t --- !query 3789 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> --- !query 3789 output -true - - --- !query 3790 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as tinyint) FROM t --- !query 3790 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> --- !query 3790 output -true - - --- !query 3791 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as tinyint) FROM t --- !query 3791 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> --- !query 3791 output -true - - --- !query 3792 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as tinyint) FROM t --- !query 3792 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> --- !query 3792 output -true - - --- !query 3793 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as tinyint) FROM t --- !query 3793 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> --- !query 3793 output -true - - --- !query 3794 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as tinyint) FROM t --- !query 3794 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> --- !query 3794 output -true - - --- !query 3795 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as tinyint) FROM t --- !query 3795 schema -struct<> --- !query 3795 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as tinyint) FROM t - - --- !query 3796 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as smallint) FROM t --- !query 3796 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3796 output -true - - --- !query 3797 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as smallint) FROM t --- !query 3797 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3797 output -true - - --- !query 3798 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as smallint) FROM t --- !query 3798 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 3798 output -true - - --- !query 3799 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as smallint) FROM t --- !query 3799 schema -struct<(CAST(1 AS DECIMAL(5,0)) <=> CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> --- !query 3799 output -true - - --- !query 3800 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as smallint) FROM t --- !query 3800 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> --- !query 3800 output -true - - --- !query 3801 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as smallint) FROM t --- !query 3801 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 3801 output -true - - --- !query 3802 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as smallint) FROM t --- !query 3802 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> --- !query 3802 output -true - - --- !query 3803 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as smallint) FROM t --- !query 3803 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 3803 output -true - - --- !query 3804 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as smallint) FROM t --- !query 3804 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> --- !query 3804 output -true - - --- !query 3805 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as smallint) FROM t --- !query 3805 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> --- !query 3805 output -true - - --- !query 3806 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as smallint) FROM t --- !query 3806 schema -struct<> --- !query 3806 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as smallint) FROM t - - --- !query 3807 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as smallint) FROM t --- !query 3807 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3807 output -false - - --- !query 3808 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as smallint) FROM t --- !query 3808 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3808 output -true - - --- !query 3809 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as smallint) FROM t --- !query 3809 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3809 output -true - - --- !query 3810 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as smallint) FROM t --- !query 3810 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3810 output -true - - --- !query 3811 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as smallint) FROM t --- !query 3811 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3811 output -true - - --- !query 3812 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as smallint) FROM t --- !query 3812 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 3812 output -true - - --- !query 3813 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as smallint) FROM t --- !query 3813 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> --- !query 3813 output -true - - --- !query 3814 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as smallint) FROM t --- !query 3814 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> --- !query 3814 output -true - - --- !query 3815 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as smallint) FROM t --- !query 3815 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> --- !query 3815 output -true - - --- !query 3816 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as smallint) FROM t --- !query 3816 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> --- !query 3816 output -true - - --- !query 3817 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as smallint) FROM t --- !query 3817 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> --- !query 3817 output -true - - --- !query 3818 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as smallint) FROM t --- !query 3818 schema -struct<> --- !query 3818 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as smallint) FROM t - - --- !query 3819 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as int) FROM t --- !query 3819 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3819 output -true - - --- !query 3820 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as int) FROM t --- !query 3820 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3820 output -true - - --- !query 3821 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as int) FROM t --- !query 3821 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3821 output -true - - --- !query 3822 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as int) FROM t --- !query 3822 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3822 output -true - - --- !query 3823 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as int) FROM t --- !query 3823 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3823 output -true - - --- !query 3824 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as int) FROM t --- !query 3824 schema -struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> --- !query 3824 output -true - - --- !query 3825 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as int) FROM t --- !query 3825 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 3825 output -true - - --- !query 3826 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as int) FROM t --- !query 3826 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 3826 output -true - - --- !query 3827 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as int) FROM t --- !query 3827 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 3827 output -true - - --- !query 3828 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as int) FROM t --- !query 3828 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 3828 output -true - - --- !query 3829 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as int) FROM t --- !query 3829 schema -struct<> --- !query 3829 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as int) FROM t - - --- !query 3830 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as int) FROM t --- !query 3830 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3830 output -false - - --- !query 3831 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as int) FROM t --- !query 3831 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3831 output -true - - --- !query 3832 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as int) FROM t --- !query 3832 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3832 output -true - - --- !query 3833 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as int) FROM t --- !query 3833 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3833 output -true - - --- !query 3834 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as int) FROM t --- !query 3834 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3834 output -true - - --- !query 3835 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as int) FROM t --- !query 3835 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3835 output -true - - --- !query 3836 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as int) FROM t --- !query 3836 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3836 output -true - - --- !query 3837 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as int) FROM t --- !query 3837 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3837 output -true - - --- !query 3838 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as int) FROM t --- !query 3838 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 3838 output -true - - --- !query 3839 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as int) FROM t --- !query 3839 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 3839 output -true - - --- !query 3840 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as int) FROM t --- !query 3840 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 3840 output -true - - --- !query 3841 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as int) FROM t --- !query 3841 schema -struct<> --- !query 3841 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as int) FROM t - - --- !query 3842 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as bigint) FROM t --- !query 3842 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3842 output -true - - --- !query 3843 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as bigint) FROM t --- !query 3843 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3843 output -true - - --- !query 3844 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as bigint) FROM t --- !query 3844 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3844 output -true - - --- !query 3845 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as bigint) FROM t --- !query 3845 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3845 output -true - - --- !query 3846 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as bigint) FROM t --- !query 3846 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3846 output -true - - --- !query 3847 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as bigint) FROM t --- !query 3847 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3847 output -true - - --- !query 3848 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as bigint) FROM t --- !query 3848 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 3848 output -true - - --- !query 3849 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as bigint) FROM t --- !query 3849 schema -struct<(CAST(1 AS DECIMAL(20,0)) <=> CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> --- !query 3849 output -true - - --- !query 3850 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as bigint) FROM t --- !query 3850 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> --- !query 3850 output -true - - --- !query 3851 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as bigint) FROM t --- !query 3851 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> --- !query 3851 output -true - - --- !query 3852 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as bigint) FROM t --- !query 3852 schema -struct<> --- !query 3852 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as bigint) FROM t - - --- !query 3853 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as bigint) FROM t --- !query 3853 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3853 output -false - - --- !query 3854 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as bigint) FROM t --- !query 3854 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3854 output -true - - --- !query 3855 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as bigint) FROM t --- !query 3855 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3855 output -true - - --- !query 3856 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as bigint) FROM t --- !query 3856 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3856 output -true - - --- !query 3857 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as bigint) FROM t --- !query 3857 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3857 output -true - - --- !query 3858 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as bigint) FROM t --- !query 3858 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3858 output -true - - --- !query 3859 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as bigint) FROM t --- !query 3859 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3859 output -true - - --- !query 3860 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as bigint) FROM t --- !query 3860 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3860 output -true - - --- !query 3861 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as bigint) FROM t --- !query 3861 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3861 output -true - - --- !query 3862 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as bigint) FROM t --- !query 3862 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 3862 output -true - - --- !query 3863 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as bigint) FROM t --- !query 3863 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> --- !query 3863 output -true - - --- !query 3864 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as bigint) FROM t --- !query 3864 schema -struct<> --- !query 3864 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as bigint) FROM t - - --- !query 3865 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as float) FROM t --- !query 3865 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3865 output -true - - --- !query 3866 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as float) FROM t --- !query 3866 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3866 output -true - - --- !query 3867 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as float) FROM t --- !query 3867 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3867 output -true - - --- !query 3868 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as float) FROM t --- !query 3868 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3868 output -true - - --- !query 3869 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as float) FROM t --- !query 3869 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3869 output -true - - --- !query 3870 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as float) FROM t --- !query 3870 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3870 output -true - - --- !query 3871 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as float) FROM t --- !query 3871 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3871 output -true - - --- !query 3872 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as float) FROM t --- !query 3872 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3872 output -true - - --- !query 3873 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as float) FROM t --- !query 3873 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3873 output -true - - --- !query 3874 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as float) FROM t --- !query 3874 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3874 output -true - - --- !query 3875 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as float) FROM t --- !query 3875 schema -struct<> --- !query 3875 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as float) FROM t - - --- !query 3876 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as float) FROM t --- !query 3876 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3876 output -false - - --- !query 3877 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as float) FROM t --- !query 3877 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3877 output -true - - --- !query 3878 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as float) FROM t --- !query 3878 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3878 output -true - - --- !query 3879 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as float) FROM t --- !query 3879 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3879 output -true - - --- !query 3880 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as float) FROM t --- !query 3880 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3880 output -true - - --- !query 3881 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as float) FROM t --- !query 3881 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3881 output -true - - --- !query 3882 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as float) FROM t --- !query 3882 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3882 output -true - - --- !query 3883 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as float) FROM t --- !query 3883 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3883 output -true - - --- !query 3884 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as float) FROM t --- !query 3884 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3884 output -true - - --- !query 3885 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as float) FROM t --- !query 3885 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3885 output -true - - --- !query 3886 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as float) FROM t --- !query 3886 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <=> CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 3886 output -true - - --- !query 3887 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as float) FROM t --- !query 3887 schema -struct<> --- !query 3887 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as float) FROM t - - --- !query 3888 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as double) FROM t --- !query 3888 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3888 output -true - - --- !query 3889 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as double) FROM t --- !query 3889 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3889 output -true - - --- !query 3890 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as double) FROM t --- !query 3890 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3890 output -true - - --- !query 3891 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as double) FROM t --- !query 3891 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3891 output -true - - --- !query 3892 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as double) FROM t --- !query 3892 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3892 output -true - - --- !query 3893 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as double) FROM t --- !query 3893 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3893 output -true - - --- !query 3894 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as double) FROM t --- !query 3894 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3894 output -true - - --- !query 3895 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as double) FROM t --- !query 3895 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3895 output -true - - --- !query 3896 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as double) FROM t --- !query 3896 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3896 output -true - - --- !query 3897 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as double) FROM t --- !query 3897 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3897 output -true - - --- !query 3898 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as double) FROM t --- !query 3898 schema -struct<> --- !query 3898 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as double) FROM t - - --- !query 3899 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as double) FROM t --- !query 3899 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3899 output -false - - --- !query 3900 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as double) FROM t --- !query 3900 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3900 output -true - - --- !query 3901 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as double) FROM t --- !query 3901 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3901 output -true - - --- !query 3902 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as double) FROM t --- !query 3902 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3902 output -true - - --- !query 3903 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as double) FROM t --- !query 3903 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3903 output -true - - --- !query 3904 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as double) FROM t --- !query 3904 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3904 output -true - - --- !query 3905 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as double) FROM t --- !query 3905 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3905 output -true - - --- !query 3906 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as double) FROM t --- !query 3906 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3906 output -true - - --- !query 3907 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as double) FROM t --- !query 3907 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3907 output -true - - --- !query 3908 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as double) FROM t --- !query 3908 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3908 output -true - - --- !query 3909 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as double) FROM t --- !query 3909 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <=> CAST(1 AS DOUBLE)):boolean> --- !query 3909 output -true - - --- !query 3910 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as double) FROM t --- !query 3910 schema -struct<> --- !query 3910 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as double) FROM t - - --- !query 3911 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3911 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3911 output -true - - --- !query 3912 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3912 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3912 output -true - - --- !query 3913 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3913 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3913 output -true - - --- !query 3914 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3914 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3914 output -true - - --- !query 3915 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3915 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 3915 output -true - - --- !query 3916 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3916 schema -struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(1 AS DECIMAL(10,0))):boolean> --- !query 3916 output -true - - --- !query 3917 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3917 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 3917 output -true - - --- !query 3918 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3918 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 3918 output -true - - --- !query 3919 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3919 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 3919 output -true - - --- !query 3920 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3920 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 3920 output -true - - --- !query 3921 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3921 schema -struct<> --- !query 3921 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as decimal(10, 0)) FROM t - - --- !query 3922 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3922 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3922 output -false - - --- !query 3923 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3923 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3923 output -true - - --- !query 3924 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3924 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3924 output -true - - --- !query 3925 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3925 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3925 output -true - - --- !query 3926 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3926 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3926 output -true - - --- !query 3927 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3927 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3927 output -true - - --- !query 3928 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3928 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3928 output -true - - --- !query 3929 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3929 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 3929 output -true - - --- !query 3930 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3930 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 3930 output -true - - --- !query 3931 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3931 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 3931 output -true - - --- !query 3932 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3932 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <=> CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 3932 output -true - - --- !query 3933 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as decimal(10, 0)) FROM t --- !query 3933 schema -struct<> --- !query 3933 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as decimal(10, 0)) FROM t - - --- !query 3934 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as string) FROM t --- !query 3934 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3934 output -true - - --- !query 3935 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as string) FROM t --- !query 3935 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3935 output -true - - --- !query 3936 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as string) FROM t --- !query 3936 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3936 output -true - - --- !query 3937 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as string) FROM t --- !query 3937 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3937 output -true - - --- !query 3938 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as string) FROM t --- !query 3938 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3938 output -true - - --- !query 3939 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as string) FROM t --- !query 3939 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3939 output -true - - --- !query 3940 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as string) FROM t --- !query 3940 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3940 output -true - - --- !query 3941 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as string) FROM t --- !query 3941 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3941 output -true - - --- !query 3942 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as string) FROM t --- !query 3942 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3942 output -true - - --- !query 3943 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as string) FROM t --- !query 3943 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3943 output -true - - --- !query 3944 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as string) FROM t --- !query 3944 schema -struct<> --- !query 3944 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as string) FROM t - - --- !query 3945 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as string) FROM t --- !query 3945 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3945 output -false - - --- !query 3946 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as string) FROM t --- !query 3946 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3946 output -true - - --- !query 3947 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as string) FROM t --- !query 3947 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3947 output -true - - --- !query 3948 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as string) FROM t --- !query 3948 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3948 output -true - - --- !query 3949 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as string) FROM t --- !query 3949 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3949 output -true - - --- !query 3950 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as string) FROM t --- !query 3950 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3950 output -true - - --- !query 3951 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as string) FROM t --- !query 3951 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3951 output -true - - --- !query 3952 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as string) FROM t --- !query 3952 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3952 output -true - - --- !query 3953 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as string) FROM t --- !query 3953 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3953 output -true - - --- !query 3954 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as string) FROM t --- !query 3954 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3954 output -true - - --- !query 3955 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as string) FROM t --- !query 3955 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <=> CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 3955 output -true - - --- !query 3956 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as string) FROM t --- !query 3956 schema -struct<> --- !query 3956 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as string) FROM t - - --- !query 3957 -SELECT cast(1 as decimal(1, 0)) <=> cast('1' as binary) FROM t --- !query 3957 schema -struct<> --- !query 3957 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <=> CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 3958 -SELECT cast(1 as decimal(3, 0)) <=> cast('1' as binary) FROM t --- !query 3958 schema -struct<> --- !query 3958 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 3959 -SELECT cast(1 as decimal(4, 0)) <=> cast('1' as binary) FROM t --- !query 3959 schema -struct<> --- !query 3959 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <=> CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 3960 -SELECT cast(1 as decimal(5, 0)) <=> cast('1' as binary) FROM t --- !query 3960 schema -struct<> --- !query 3960 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 3961 -SELECT cast(1 as decimal(6, 0)) <=> cast('1' as binary) FROM t --- !query 3961 schema -struct<> --- !query 3961 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <=> CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 3962 -SELECT cast(1 as decimal(10, 0)) <=> cast('1' as binary) FROM t --- !query 3962 schema -struct<> --- !query 3962 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 3963 -SELECT cast(1 as decimal(11, 0)) <=> cast('1' as binary) FROM t --- !query 3963 schema -struct<> --- !query 3963 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <=> CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 3964 -SELECT cast(1 as decimal(20, 0)) <=> cast('1' as binary) FROM t --- !query 3964 schema -struct<> --- !query 3964 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 3965 -SELECT cast(1 as decimal(21, 0)) <=> cast('1' as binary) FROM t --- !query 3965 schema -struct<> --- !query 3965 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <=> CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 3966 -SELECT cast(1 as decimal(38, 0)) <=> cast('1' as binary) FROM t --- !query 3966 schema -struct<> --- !query 3966 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <=> CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 3967 -SELECT cast(1 as decimal(39, 0)) <=> cast('1' as binary) FROM t --- !query 3967 schema -struct<> --- !query 3967 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast('1' as binary) FROM t - - --- !query 3968 -SELECT cast(1 as decimal(1, 1)) <=> cast('1' as binary) FROM t --- !query 3968 schema -struct<> --- !query 3968 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <=> CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 3969 -SELECT cast(1 as decimal(2, 1)) <=> cast('1' as binary) FROM t --- !query 3969 schema -struct<> --- !query 3969 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <=> CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 3970 -SELECT cast(1 as decimal(3, 1)) <=> cast('1' as binary) FROM t --- !query 3970 schema -struct<> --- !query 3970 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <=> CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 3971 -SELECT cast(1 as decimal(4, 1)) <=> cast('1' as binary) FROM t --- !query 3971 schema -struct<> --- !query 3971 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <=> CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 3972 -SELECT cast(1 as decimal(5, 1)) <=> cast('1' as binary) FROM t --- !query 3972 schema -struct<> --- !query 3972 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <=> CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 3973 -SELECT cast(1 as decimal(6, 1)) <=> cast('1' as binary) FROM t --- !query 3973 schema -struct<> --- !query 3973 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <=> CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 3974 -SELECT cast(1 as decimal(10, 1)) <=> cast('1' as binary) FROM t --- !query 3974 schema -struct<> --- !query 3974 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <=> CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 3975 -SELECT cast(1 as decimal(11, 1)) <=> cast('1' as binary) FROM t --- !query 3975 schema -struct<> --- !query 3975 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <=> CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 3976 -SELECT cast(1 as decimal(20, 1)) <=> cast('1' as binary) FROM t --- !query 3976 schema -struct<> --- !query 3976 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <=> CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 3977 -SELECT cast(1 as decimal(21, 1)) <=> cast('1' as binary) FROM t --- !query 3977 schema -struct<> --- !query 3977 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <=> CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 3978 -SELECT cast(1 as decimal(38, 1)) <=> cast('1' as binary) FROM t --- !query 3978 schema -struct<> --- !query 3978 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) <=> CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <=> CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 3979 -SELECT cast(1 as decimal(39, 1)) <=> cast('1' as binary) FROM t --- !query 3979 schema -struct<> --- !query 3979 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast('1' as binary) FROM t - - --- !query 3980 -SELECT cast(1 as decimal(1, 0)) <=> cast(1 as boolean) FROM t --- !query 3980 schema -struct<(CAST(1 AS DECIMAL(1,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,0))):boolean> --- !query 3980 output -true - - --- !query 3981 -SELECT cast(1 as decimal(3, 0)) <=> cast(1 as boolean) FROM t --- !query 3981 schema -struct<(CAST(1 AS DECIMAL(3,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0))):boolean> --- !query 3981 output -true - - --- !query 3982 -SELECT cast(1 as decimal(4, 0)) <=> cast(1 as boolean) FROM t --- !query 3982 schema -struct<(CAST(1 AS DECIMAL(4,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,0))):boolean> --- !query 3982 output -true - - --- !query 3983 -SELECT cast(1 as decimal(5, 0)) <=> cast(1 as boolean) FROM t --- !query 3983 schema -struct<(CAST(1 AS DECIMAL(5,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0))):boolean> --- !query 3983 output -true - - --- !query 3984 -SELECT cast(1 as decimal(6, 0)) <=> cast(1 as boolean) FROM t --- !query 3984 schema -struct<(CAST(1 AS DECIMAL(6,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,0))):boolean> --- !query 3984 output -true - - --- !query 3985 -SELECT cast(1 as decimal(10, 0)) <=> cast(1 as boolean) FROM t --- !query 3985 schema -struct<(CAST(1 AS DECIMAL(10,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0))):boolean> --- !query 3985 output -true - - --- !query 3986 -SELECT cast(1 as decimal(11, 0)) <=> cast(1 as boolean) FROM t --- !query 3986 schema -struct<(CAST(1 AS DECIMAL(11,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,0))):boolean> --- !query 3986 output -true - - --- !query 3987 -SELECT cast(1 as decimal(20, 0)) <=> cast(1 as boolean) FROM t --- !query 3987 schema -struct<(CAST(1 AS DECIMAL(20,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0))):boolean> --- !query 3987 output -true - - --- !query 3988 -SELECT cast(1 as decimal(21, 0)) <=> cast(1 as boolean) FROM t --- !query 3988 schema -struct<(CAST(1 AS DECIMAL(21,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,0))):boolean> --- !query 3988 output -true - - --- !query 3989 -SELECT cast(1 as decimal(38, 0)) <=> cast(1 as boolean) FROM t --- !query 3989 schema -struct<(CAST(1 AS DECIMAL(38,0)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,0))):boolean> --- !query 3989 output -true - - --- !query 3990 -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as boolean) FROM t --- !query 3990 schema -struct<> --- !query 3990 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast(1 as boolean) FROM t - - --- !query 3991 -SELECT cast(1 as decimal(1, 1)) <=> cast(1 as boolean) FROM t --- !query 3991 schema -struct<(CAST(1 AS DECIMAL(1,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,1))):boolean> --- !query 3991 output -true - - --- !query 3992 -SELECT cast(1 as decimal(2, 1)) <=> cast(1 as boolean) FROM t --- !query 3992 schema -struct<(CAST(1 AS DECIMAL(2,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(2,1))):boolean> --- !query 3992 output -true - - --- !query 3993 -SELECT cast(1 as decimal(3, 1)) <=> cast(1 as boolean) FROM t --- !query 3993 schema -struct<(CAST(1 AS DECIMAL(3,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,1))):boolean> --- !query 3993 output -true - - --- !query 3994 -SELECT cast(1 as decimal(4, 1)) <=> cast(1 as boolean) FROM t --- !query 3994 schema -struct<(CAST(1 AS DECIMAL(4,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,1))):boolean> --- !query 3994 output -true - - --- !query 3995 -SELECT cast(1 as decimal(5, 1)) <=> cast(1 as boolean) FROM t --- !query 3995 schema -struct<(CAST(1 AS DECIMAL(5,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,1))):boolean> --- !query 3995 output -true - - --- !query 3996 -SELECT cast(1 as decimal(6, 1)) <=> cast(1 as boolean) FROM t --- !query 3996 schema -struct<(CAST(1 AS DECIMAL(6,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,1))):boolean> --- !query 3996 output -true - - --- !query 3997 -SELECT cast(1 as decimal(10, 1)) <=> cast(1 as boolean) FROM t --- !query 3997 schema -struct<(CAST(1 AS DECIMAL(10,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,1))):boolean> --- !query 3997 output -true - - --- !query 3998 -SELECT cast(1 as decimal(11, 1)) <=> cast(1 as boolean) FROM t --- !query 3998 schema -struct<(CAST(1 AS DECIMAL(11,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,1))):boolean> --- !query 3998 output -true - - --- !query 3999 -SELECT cast(1 as decimal(20, 1)) <=> cast(1 as boolean) FROM t --- !query 3999 schema -struct<(CAST(1 AS DECIMAL(20,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,1))):boolean> --- !query 3999 output -true - - --- !query 4000 -SELECT cast(1 as decimal(21, 1)) <=> cast(1 as boolean) FROM t --- !query 4000 schema -struct<(CAST(1 AS DECIMAL(21,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,1))):boolean> --- !query 4000 output -true - - --- !query 4001 -SELECT cast(1 as decimal(38, 1)) <=> cast(1 as boolean) FROM t --- !query 4001 schema -struct<(CAST(1 AS DECIMAL(38,1)) <=> CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,1))):boolean> --- !query 4001 output -true - - --- !query 4002 -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as boolean) FROM t --- !query 4002 schema -struct<> --- !query 4002 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast(1 as boolean) FROM t - - --- !query 4003 -SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4003 schema -struct<> --- !query 4003 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 4004 -SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4004 schema -struct<> --- !query 4004 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 4005 -SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4005 schema -struct<> --- !query 4005 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 4006 -SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4006 schema -struct<> --- !query 4006 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 4007 -SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4007 schema -struct<> --- !query 4007 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 4008 -SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4008 schema -struct<> --- !query 4008 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 4009 -SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4009 schema -struct<> --- !query 4009 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 4010 -SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4010 schema -struct<> --- !query 4010 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 4011 -SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4011 schema -struct<> --- !query 4011 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 4012 -SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4012 schema -struct<> --- !query 4012 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 4013 -SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4013 schema -struct<> --- !query 4013 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 4014 -SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4014 schema -struct<> --- !query 4014 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 4015 -SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4015 schema -struct<> --- !query 4015 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 4016 -SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4016 schema -struct<> --- !query 4016 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 4017 -SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4017 schema -struct<> --- !query 4017 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 4018 -SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4018 schema -struct<> --- !query 4018 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 4019 -SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4019 schema -struct<> --- !query 4019 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 4020 -SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4020 schema -struct<> --- !query 4020 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 4021 -SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4021 schema -struct<> --- !query 4021 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 4022 -SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4022 schema -struct<> --- !query 4022 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 4023 -SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4023 schema -struct<> --- !query 4023 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 4024 -SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4024 schema -struct<> --- !query 4024 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 4025 -SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4025 schema -struct<> --- !query 4025 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 4026 -SELECT cast(1 as decimal(1, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4026 schema -struct<> --- !query 4026 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 4027 -SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4027 schema -struct<> --- !query 4027 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 4028 -SELECT cast(1 as decimal(4, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4028 schema -struct<> --- !query 4028 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 4029 -SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4029 schema -struct<> --- !query 4029 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 4030 -SELECT cast(1 as decimal(6, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4030 schema -struct<> --- !query 4030 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 4031 -SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4031 schema -struct<> --- !query 4031 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 4032 -SELECT cast(1 as decimal(11, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4032 schema -struct<> --- !query 4032 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 4033 -SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4033 schema -struct<> --- !query 4033 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 4034 -SELECT cast(1 as decimal(21, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4034 schema -struct<> --- !query 4034 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 4035 -SELECT cast(1 as decimal(38, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4035 schema -struct<> --- !query 4035 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 4036 -SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4036 schema -struct<> --- !query 4036 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 4037 -SELECT cast(1 as decimal(1, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4037 schema -struct<> --- !query 4037 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 4038 -SELECT cast(1 as decimal(2, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4038 schema -struct<> --- !query 4038 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 4039 -SELECT cast(1 as decimal(3, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4039 schema -struct<> --- !query 4039 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 4040 -SELECT cast(1 as decimal(4, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4040 schema -struct<> --- !query 4040 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 4041 -SELECT cast(1 as decimal(5, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4041 schema -struct<> --- !query 4041 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 4042 -SELECT cast(1 as decimal(6, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4042 schema -struct<> --- !query 4042 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 4043 -SELECT cast(1 as decimal(10, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4043 schema -struct<> --- !query 4043 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 4044 -SELECT cast(1 as decimal(11, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4044 schema -struct<> --- !query 4044 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 4045 -SELECT cast(1 as decimal(20, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4045 schema -struct<> --- !query 4045 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 4046 -SELECT cast(1 as decimal(21, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4046 schema -struct<> --- !query 4046 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 4047 -SELECT cast(1 as decimal(38, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4047 schema -struct<> --- !query 4047 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <=> CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 4048 -SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t --- !query 4048 schema -struct<> --- !query 4048 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <=> cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 4049 -SELECT cast(1 as tinyint) < cast(1 as decimal(1, 0)) FROM t --- !query 4049 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> --- !query 4049 output -false - - --- !query 4050 -SELECT cast(1 as tinyint) < cast(1 as decimal(3, 0)) FROM t --- !query 4050 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) < CAST(1 AS DECIMAL(3,0))):boolean> --- !query 4050 output -false - - --- !query 4051 -SELECT cast(1 as tinyint) < cast(1 as decimal(4, 0)) FROM t --- !query 4051 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> --- !query 4051 output -false - - --- !query 4052 -SELECT cast(1 as tinyint) < cast(1 as decimal(5, 0)) FROM t --- !query 4052 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4052 output -false - - --- !query 4053 -SELECT cast(1 as tinyint) < cast(1 as decimal(6, 0)) FROM t --- !query 4053 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 4053 output -false - - --- !query 4054 -SELECT cast(1 as tinyint) < cast(1 as decimal(10, 0)) FROM t --- !query 4054 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4054 output -false - - --- !query 4055 -SELECT cast(1 as tinyint) < cast(1 as decimal(11, 0)) FROM t --- !query 4055 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4055 output -false - - --- !query 4056 -SELECT cast(1 as tinyint) < cast(1 as decimal(20, 0)) FROM t --- !query 4056 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4056 output -false - - --- !query 4057 -SELECT cast(1 as tinyint) < cast(1 as decimal(21, 0)) FROM t --- !query 4057 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4057 output -false - - --- !query 4058 -SELECT cast(1 as tinyint) < cast(1 as decimal(38, 0)) FROM t --- !query 4058 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4058 output -false - - --- !query 4059 -SELECT cast(1 as tinyint) < cast(1 as decimal(39, 0)) FROM t --- !query 4059 schema -struct<> --- !query 4059 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4060 -SELECT cast(1 as tinyint) < cast(1 as decimal(1, 1)) FROM t --- !query 4060 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> --- !query 4060 output -NULL - - --- !query 4061 -SELECT cast(1 as tinyint) < cast(1 as decimal(2, 1)) FROM t --- !query 4061 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> --- !query 4061 output -false - - --- !query 4062 -SELECT cast(1 as tinyint) < cast(1 as decimal(3, 1)) FROM t --- !query 4062 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> --- !query 4062 output -false - - --- !query 4063 -SELECT cast(1 as tinyint) < cast(1 as decimal(4, 1)) FROM t --- !query 4063 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> --- !query 4063 output -false - - --- !query 4064 -SELECT cast(1 as tinyint) < cast(1 as decimal(5, 1)) FROM t --- !query 4064 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> --- !query 4064 output -false - - --- !query 4065 -SELECT cast(1 as tinyint) < cast(1 as decimal(6, 1)) FROM t --- !query 4065 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 4065 output -false - - --- !query 4066 -SELECT cast(1 as tinyint) < cast(1 as decimal(10, 1)) FROM t --- !query 4066 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 4066 output -false - - --- !query 4067 -SELECT cast(1 as tinyint) < cast(1 as decimal(11, 1)) FROM t --- !query 4067 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4067 output -false - - --- !query 4068 -SELECT cast(1 as tinyint) < cast(1 as decimal(20, 1)) FROM t --- !query 4068 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4068 output -false - - --- !query 4069 -SELECT cast(1 as tinyint) < cast(1 as decimal(21, 1)) FROM t --- !query 4069 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4069 output -false - - --- !query 4070 -SELECT cast(1 as tinyint) < cast(1 as decimal(38, 1)) FROM t --- !query 4070 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4070 output -false - - --- !query 4071 -SELECT cast(1 as tinyint) < cast(1 as decimal(39, 1)) FROM t --- !query 4071 schema -struct<> --- !query 4071 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4072 -SELECT cast(1 as smallint) < cast(1 as decimal(1, 0)) FROM t --- !query 4072 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> --- !query 4072 output -false - - --- !query 4073 -SELECT cast(1 as smallint) < cast(1 as decimal(3, 0)) FROM t --- !query 4073 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 4073 output -false - - --- !query 4074 -SELECT cast(1 as smallint) < cast(1 as decimal(4, 0)) FROM t --- !query 4074 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> --- !query 4074 output -false - - --- !query 4075 -SELECT cast(1 as smallint) < cast(1 as decimal(5, 0)) FROM t --- !query 4075 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) < CAST(1 AS DECIMAL(5,0))):boolean> --- !query 4075 output -false - - --- !query 4076 -SELECT cast(1 as smallint) < cast(1 as decimal(6, 0)) FROM t --- !query 4076 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 4076 output -false - - --- !query 4077 -SELECT cast(1 as smallint) < cast(1 as decimal(10, 0)) FROM t --- !query 4077 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4077 output -false - - --- !query 4078 -SELECT cast(1 as smallint) < cast(1 as decimal(11, 0)) FROM t --- !query 4078 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4078 output -false - - --- !query 4079 -SELECT cast(1 as smallint) < cast(1 as decimal(20, 0)) FROM t --- !query 4079 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4079 output -false - - --- !query 4080 -SELECT cast(1 as smallint) < cast(1 as decimal(21, 0)) FROM t --- !query 4080 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4080 output -false - - --- !query 4081 -SELECT cast(1 as smallint) < cast(1 as decimal(38, 0)) FROM t --- !query 4081 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4081 output -false - - --- !query 4082 -SELECT cast(1 as smallint) < cast(1 as decimal(39, 0)) FROM t --- !query 4082 schema -struct<> --- !query 4082 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4083 -SELECT cast(1 as smallint) < cast(1 as decimal(1, 1)) FROM t --- !query 4083 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> --- !query 4083 output -NULL - - --- !query 4084 -SELECT cast(1 as smallint) < cast(1 as decimal(2, 1)) FROM t --- !query 4084 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> --- !query 4084 output -false - - --- !query 4085 -SELECT cast(1 as smallint) < cast(1 as decimal(3, 1)) FROM t --- !query 4085 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> --- !query 4085 output -false - - --- !query 4086 -SELECT cast(1 as smallint) < cast(1 as decimal(4, 1)) FROM t --- !query 4086 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> --- !query 4086 output -false - - --- !query 4087 -SELECT cast(1 as smallint) < cast(1 as decimal(5, 1)) FROM t --- !query 4087 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> --- !query 4087 output -false - - --- !query 4088 -SELECT cast(1 as smallint) < cast(1 as decimal(6, 1)) FROM t --- !query 4088 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 4088 output -false - - --- !query 4089 -SELECT cast(1 as smallint) < cast(1 as decimal(10, 1)) FROM t --- !query 4089 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 4089 output -false - - --- !query 4090 -SELECT cast(1 as smallint) < cast(1 as decimal(11, 1)) FROM t --- !query 4090 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4090 output -false - - --- !query 4091 -SELECT cast(1 as smallint) < cast(1 as decimal(20, 1)) FROM t --- !query 4091 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4091 output -false - - --- !query 4092 -SELECT cast(1 as smallint) < cast(1 as decimal(21, 1)) FROM t --- !query 4092 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4092 output -false - - --- !query 4093 -SELECT cast(1 as smallint) < cast(1 as decimal(38, 1)) FROM t --- !query 4093 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4093 output -false - - --- !query 4094 -SELECT cast(1 as smallint) < cast(1 as decimal(39, 1)) FROM t --- !query 4094 schema -struct<> --- !query 4094 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4095 -SELECT cast(1 as int) < cast(1 as decimal(1, 0)) FROM t --- !query 4095 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 4095 output -false - - --- !query 4096 -SELECT cast(1 as int) < cast(1 as decimal(3, 0)) FROM t --- !query 4096 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 4096 output -false - - --- !query 4097 -SELECT cast(1 as int) < cast(1 as decimal(4, 0)) FROM t --- !query 4097 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 4097 output -false - - --- !query 4098 -SELECT cast(1 as int) < cast(1 as decimal(5, 0)) FROM t --- !query 4098 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 4098 output -false - - --- !query 4099 -SELECT cast(1 as int) < cast(1 as decimal(6, 0)) FROM t --- !query 4099 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 4099 output -false - - --- !query 4100 -SELECT cast(1 as int) < cast(1 as decimal(10, 0)) FROM t --- !query 4100 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> --- !query 4100 output -false - - --- !query 4101 -SELECT cast(1 as int) < cast(1 as decimal(11, 0)) FROM t --- !query 4101 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4101 output -false - - --- !query 4102 -SELECT cast(1 as int) < cast(1 as decimal(20, 0)) FROM t --- !query 4102 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4102 output -false - - --- !query 4103 -SELECT cast(1 as int) < cast(1 as decimal(21, 0)) FROM t --- !query 4103 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4103 output -false - - --- !query 4104 -SELECT cast(1 as int) < cast(1 as decimal(38, 0)) FROM t --- !query 4104 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4104 output -false - - --- !query 4105 -SELECT cast(1 as int) < cast(1 as decimal(39, 0)) FROM t --- !query 4105 schema -struct<> --- !query 4105 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4106 -SELECT cast(1 as int) < cast(1 as decimal(1, 1)) FROM t --- !query 4106 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 4106 output -NULL - - --- !query 4107 -SELECT cast(1 as int) < cast(1 as decimal(2, 1)) FROM t --- !query 4107 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 4107 output -false - - --- !query 4108 -SELECT cast(1 as int) < cast(1 as decimal(3, 1)) FROM t --- !query 4108 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 4108 output -false - - --- !query 4109 -SELECT cast(1 as int) < cast(1 as decimal(4, 1)) FROM t --- !query 4109 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 4109 output -false - - --- !query 4110 -SELECT cast(1 as int) < cast(1 as decimal(5, 1)) FROM t --- !query 4110 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 4110 output -false - - --- !query 4111 -SELECT cast(1 as int) < cast(1 as decimal(6, 1)) FROM t --- !query 4111 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 4111 output -false - - --- !query 4112 -SELECT cast(1 as int) < cast(1 as decimal(10, 1)) FROM t --- !query 4112 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 4112 output -false - - --- !query 4113 -SELECT cast(1 as int) < cast(1 as decimal(11, 1)) FROM t --- !query 4113 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4113 output -false - - --- !query 4114 -SELECT cast(1 as int) < cast(1 as decimal(20, 1)) FROM t --- !query 4114 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4114 output -false - - --- !query 4115 -SELECT cast(1 as int) < cast(1 as decimal(21, 1)) FROM t --- !query 4115 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4115 output -false - - --- !query 4116 -SELECT cast(1 as int) < cast(1 as decimal(38, 1)) FROM t --- !query 4116 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4116 output -false - - --- !query 4117 -SELECT cast(1 as int) < cast(1 as decimal(39, 1)) FROM t --- !query 4117 schema -struct<> --- !query 4117 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4118 -SELECT cast(1 as bigint) < cast(1 as decimal(1, 0)) FROM t --- !query 4118 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> --- !query 4118 output -false - - --- !query 4119 -SELECT cast(1 as bigint) < cast(1 as decimal(3, 0)) FROM t --- !query 4119 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 4119 output -false - - --- !query 4120 -SELECT cast(1 as bigint) < cast(1 as decimal(4, 0)) FROM t --- !query 4120 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> --- !query 4120 output -false - - --- !query 4121 -SELECT cast(1 as bigint) < cast(1 as decimal(5, 0)) FROM t --- !query 4121 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 4121 output -false - - --- !query 4122 -SELECT cast(1 as bigint) < cast(1 as decimal(6, 0)) FROM t --- !query 4122 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> --- !query 4122 output -false - - --- !query 4123 -SELECT cast(1 as bigint) < cast(1 as decimal(10, 0)) FROM t --- !query 4123 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 4123 output -false - - --- !query 4124 -SELECT cast(1 as bigint) < cast(1 as decimal(11, 0)) FROM t --- !query 4124 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> --- !query 4124 output -false - - --- !query 4125 -SELECT cast(1 as bigint) < cast(1 as decimal(20, 0)) FROM t --- !query 4125 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) < CAST(1 AS DECIMAL(20,0))):boolean> --- !query 4125 output -false - - --- !query 4126 -SELECT cast(1 as bigint) < cast(1 as decimal(21, 0)) FROM t --- !query 4126 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4126 output -false - - --- !query 4127 -SELECT cast(1 as bigint) < cast(1 as decimal(38, 0)) FROM t --- !query 4127 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4127 output -false - - --- !query 4128 -SELECT cast(1 as bigint) < cast(1 as decimal(39, 0)) FROM t --- !query 4128 schema -struct<> --- !query 4128 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4129 -SELECT cast(1 as bigint) < cast(1 as decimal(1, 1)) FROM t --- !query 4129 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> --- !query 4129 output -NULL - - --- !query 4130 -SELECT cast(1 as bigint) < cast(1 as decimal(2, 1)) FROM t --- !query 4130 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> --- !query 4130 output -false - - --- !query 4131 -SELECT cast(1 as bigint) < cast(1 as decimal(3, 1)) FROM t --- !query 4131 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> --- !query 4131 output -false - - --- !query 4132 -SELECT cast(1 as bigint) < cast(1 as decimal(4, 1)) FROM t --- !query 4132 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> --- !query 4132 output -false - - --- !query 4133 -SELECT cast(1 as bigint) < cast(1 as decimal(5, 1)) FROM t --- !query 4133 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> --- !query 4133 output -false - - --- !query 4134 -SELECT cast(1 as bigint) < cast(1 as decimal(6, 1)) FROM t --- !query 4134 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> --- !query 4134 output -false - - --- !query 4135 -SELECT cast(1 as bigint) < cast(1 as decimal(10, 1)) FROM t --- !query 4135 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> --- !query 4135 output -false - - --- !query 4136 -SELECT cast(1 as bigint) < cast(1 as decimal(11, 1)) FROM t --- !query 4136 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> --- !query 4136 output -false - - --- !query 4137 -SELECT cast(1 as bigint) < cast(1 as decimal(20, 1)) FROM t --- !query 4137 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> --- !query 4137 output -false - - --- !query 4138 -SELECT cast(1 as bigint) < cast(1 as decimal(21, 1)) FROM t --- !query 4138 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4138 output -false - - --- !query 4139 -SELECT cast(1 as bigint) < cast(1 as decimal(38, 1)) FROM t --- !query 4139 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4139 output -false - - --- !query 4140 -SELECT cast(1 as bigint) < cast(1 as decimal(39, 1)) FROM t --- !query 4140 schema -struct<> --- !query 4140 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4141 -SELECT cast(1 as float) < cast(1 as decimal(1, 0)) FROM t --- !query 4141 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 4141 output -false - - --- !query 4142 -SELECT cast(1 as float) < cast(1 as decimal(3, 0)) FROM t --- !query 4142 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 4142 output -false - - --- !query 4143 -SELECT cast(1 as float) < cast(1 as decimal(4, 0)) FROM t --- !query 4143 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 4143 output -false - - --- !query 4144 -SELECT cast(1 as float) < cast(1 as decimal(5, 0)) FROM t --- !query 4144 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 4144 output -false - - --- !query 4145 -SELECT cast(1 as float) < cast(1 as decimal(6, 0)) FROM t --- !query 4145 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 4145 output -false - - --- !query 4146 -SELECT cast(1 as float) < cast(1 as decimal(10, 0)) FROM t --- !query 4146 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 4146 output -false - - --- !query 4147 -SELECT cast(1 as float) < cast(1 as decimal(11, 0)) FROM t --- !query 4147 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 4147 output -false - - --- !query 4148 -SELECT cast(1 as float) < cast(1 as decimal(20, 0)) FROM t --- !query 4148 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 4148 output -false - - --- !query 4149 -SELECT cast(1 as float) < cast(1 as decimal(21, 0)) FROM t --- !query 4149 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 4149 output -false - - --- !query 4150 -SELECT cast(1 as float) < cast(1 as decimal(38, 0)) FROM t --- !query 4150 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 4150 output -false - - --- !query 4151 -SELECT cast(1 as float) < cast(1 as decimal(39, 0)) FROM t --- !query 4151 schema -struct<> --- !query 4151 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4152 -SELECT cast(1 as float) < cast(1 as decimal(1, 1)) FROM t --- !query 4152 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 4152 output -NULL - - --- !query 4153 -SELECT cast(1 as float) < cast(1 as decimal(2, 1)) FROM t --- !query 4153 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 4153 output -false - - --- !query 4154 -SELECT cast(1 as float) < cast(1 as decimal(3, 1)) FROM t --- !query 4154 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 4154 output -false - - --- !query 4155 -SELECT cast(1 as float) < cast(1 as decimal(4, 1)) FROM t --- !query 4155 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 4155 output -false - - --- !query 4156 -SELECT cast(1 as float) < cast(1 as decimal(5, 1)) FROM t --- !query 4156 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 4156 output -false - - --- !query 4157 -SELECT cast(1 as float) < cast(1 as decimal(6, 1)) FROM t --- !query 4157 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 4157 output -false - - --- !query 4158 -SELECT cast(1 as float) < cast(1 as decimal(10, 1)) FROM t --- !query 4158 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 4158 output -false - - --- !query 4159 -SELECT cast(1 as float) < cast(1 as decimal(11, 1)) FROM t --- !query 4159 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 4159 output -false - - --- !query 4160 -SELECT cast(1 as float) < cast(1 as decimal(20, 1)) FROM t --- !query 4160 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 4160 output -false - - --- !query 4161 -SELECT cast(1 as float) < cast(1 as decimal(21, 1)) FROM t --- !query 4161 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 4161 output -false - - --- !query 4162 -SELECT cast(1 as float) < cast(1 as decimal(38, 1)) FROM t --- !query 4162 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 4162 output -false - - --- !query 4163 -SELECT cast(1 as float) < cast(1 as decimal(39, 1)) FROM t --- !query 4163 schema -struct<> --- !query 4163 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4164 -SELECT cast(1 as double) < cast(1 as decimal(1, 0)) FROM t --- !query 4164 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 4164 output -false - - --- !query 4165 -SELECT cast(1 as double) < cast(1 as decimal(3, 0)) FROM t --- !query 4165 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 4165 output -false - - --- !query 4166 -SELECT cast(1 as double) < cast(1 as decimal(4, 0)) FROM t --- !query 4166 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 4166 output -false - - --- !query 4167 -SELECT cast(1 as double) < cast(1 as decimal(5, 0)) FROM t --- !query 4167 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 4167 output -false - - --- !query 4168 -SELECT cast(1 as double) < cast(1 as decimal(6, 0)) FROM t --- !query 4168 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 4168 output -false - - --- !query 4169 -SELECT cast(1 as double) < cast(1 as decimal(10, 0)) FROM t --- !query 4169 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 4169 output -false - - --- !query 4170 -SELECT cast(1 as double) < cast(1 as decimal(11, 0)) FROM t --- !query 4170 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 4170 output -false - - --- !query 4171 -SELECT cast(1 as double) < cast(1 as decimal(20, 0)) FROM t --- !query 4171 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 4171 output -false - - --- !query 4172 -SELECT cast(1 as double) < cast(1 as decimal(21, 0)) FROM t --- !query 4172 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 4172 output -false - - --- !query 4173 -SELECT cast(1 as double) < cast(1 as decimal(38, 0)) FROM t --- !query 4173 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 4173 output -false - - --- !query 4174 -SELECT cast(1 as double) < cast(1 as decimal(39, 0)) FROM t --- !query 4174 schema -struct<> --- !query 4174 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4175 -SELECT cast(1 as double) < cast(1 as decimal(1, 1)) FROM t --- !query 4175 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 4175 output -NULL - - --- !query 4176 -SELECT cast(1 as double) < cast(1 as decimal(2, 1)) FROM t --- !query 4176 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 4176 output -false - - --- !query 4177 -SELECT cast(1 as double) < cast(1 as decimal(3, 1)) FROM t --- !query 4177 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 4177 output -false - - --- !query 4178 -SELECT cast(1 as double) < cast(1 as decimal(4, 1)) FROM t --- !query 4178 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 4178 output -false - - --- !query 4179 -SELECT cast(1 as double) < cast(1 as decimal(5, 1)) FROM t --- !query 4179 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 4179 output -false - - --- !query 4180 -SELECT cast(1 as double) < cast(1 as decimal(6, 1)) FROM t --- !query 4180 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 4180 output -false - - --- !query 4181 -SELECT cast(1 as double) < cast(1 as decimal(10, 1)) FROM t --- !query 4181 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 4181 output -false - - --- !query 4182 -SELECT cast(1 as double) < cast(1 as decimal(11, 1)) FROM t --- !query 4182 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 4182 output -false - - --- !query 4183 -SELECT cast(1 as double) < cast(1 as decimal(20, 1)) FROM t --- !query 4183 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 4183 output -false - - --- !query 4184 -SELECT cast(1 as double) < cast(1 as decimal(21, 1)) FROM t --- !query 4184 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 4184 output -false - - --- !query 4185 -SELECT cast(1 as double) < cast(1 as decimal(38, 1)) FROM t --- !query 4185 schema -struct<(CAST(1 AS DOUBLE) < CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 4185 output -false - - --- !query 4186 -SELECT cast(1 as double) < cast(1 as decimal(39, 1)) FROM t --- !query 4186 schema -struct<> --- !query 4186 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4187 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 0)) FROM t --- !query 4187 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 4187 output -false - - --- !query 4188 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 0)) FROM t --- !query 4188 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 4188 output -false - - --- !query 4189 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 0)) FROM t --- !query 4189 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 4189 output -false - - --- !query 4190 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 0)) FROM t --- !query 4190 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 4190 output -false - - --- !query 4191 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 0)) FROM t --- !query 4191 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 4191 output -false - - --- !query 4192 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4192 schema -struct<(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> --- !query 4192 output -false - - --- !query 4193 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 0)) FROM t --- !query 4193 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4193 output -false - - --- !query 4194 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 0)) FROM t --- !query 4194 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4194 output -false - - --- !query 4195 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 0)) FROM t --- !query 4195 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4195 output -false - - --- !query 4196 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 0)) FROM t --- !query 4196 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4196 output -false - - --- !query 4197 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 0)) FROM t --- !query 4197 schema -struct<> --- !query 4197 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4198 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(1, 1)) FROM t --- !query 4198 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 4198 output -NULL - - --- !query 4199 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(2, 1)) FROM t --- !query 4199 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 4199 output -false - - --- !query 4200 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 1)) FROM t --- !query 4200 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 4200 output -false - - --- !query 4201 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(4, 1)) FROM t --- !query 4201 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 4201 output -false - - --- !query 4202 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 1)) FROM t --- !query 4202 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 4202 output -false - - --- !query 4203 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(6, 1)) FROM t --- !query 4203 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 4203 output -false - - --- !query 4204 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 1)) FROM t --- !query 4204 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 4204 output -false - - --- !query 4205 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(11, 1)) FROM t --- !query 4205 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4205 output -false - - --- !query 4206 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 1)) FROM t --- !query 4206 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4206 output -false - - --- !query 4207 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(21, 1)) FROM t --- !query 4207 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4207 output -false - - --- !query 4208 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(38, 1)) FROM t --- !query 4208 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4208 output -false - - --- !query 4209 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 1)) FROM t --- !query 4209 schema -struct<> --- !query 4209 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4210 -SELECT cast('1' as binary) < cast(1 as decimal(1, 0)) FROM t --- !query 4210 schema -struct<> --- !query 4210 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 4211 -SELECT cast('1' as binary) < cast(1 as decimal(3, 0)) FROM t --- !query 4211 schema -struct<> --- !query 4211 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 4212 -SELECT cast('1' as binary) < cast(1 as decimal(4, 0)) FROM t --- !query 4212 schema -struct<> --- !query 4212 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 4213 -SELECT cast('1' as binary) < cast(1 as decimal(5, 0)) FROM t --- !query 4213 schema -struct<> --- !query 4213 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 4214 -SELECT cast('1' as binary) < cast(1 as decimal(6, 0)) FROM t --- !query 4214 schema -struct<> --- !query 4214 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 4215 -SELECT cast('1' as binary) < cast(1 as decimal(10, 0)) FROM t --- !query 4215 schema -struct<> --- !query 4215 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 4216 -SELECT cast('1' as binary) < cast(1 as decimal(11, 0)) FROM t --- !query 4216 schema -struct<> --- !query 4216 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 4217 -SELECT cast('1' as binary) < cast(1 as decimal(20, 0)) FROM t --- !query 4217 schema -struct<> --- !query 4217 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 4218 -SELECT cast('1' as binary) < cast(1 as decimal(21, 0)) FROM t --- !query 4218 schema -struct<> --- !query 4218 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 4219 -SELECT cast('1' as binary) < cast(1 as decimal(38, 0)) FROM t --- !query 4219 schema -struct<> --- !query 4219 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 4220 -SELECT cast('1' as binary) < cast(1 as decimal(39, 0)) FROM t --- !query 4220 schema -struct<> --- !query 4220 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4221 -SELECT cast('1' as binary) < cast(1 as decimal(1, 1)) FROM t --- !query 4221 schema -struct<> --- !query 4221 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 4222 -SELECT cast('1' as binary) < cast(1 as decimal(2, 1)) FROM t --- !query 4222 schema -struct<> --- !query 4222 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 4223 -SELECT cast('1' as binary) < cast(1 as decimal(3, 1)) FROM t --- !query 4223 schema -struct<> --- !query 4223 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 4224 -SELECT cast('1' as binary) < cast(1 as decimal(4, 1)) FROM t --- !query 4224 schema -struct<> --- !query 4224 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 4225 -SELECT cast('1' as binary) < cast(1 as decimal(5, 1)) FROM t --- !query 4225 schema -struct<> --- !query 4225 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 4226 -SELECT cast('1' as binary) < cast(1 as decimal(6, 1)) FROM t --- !query 4226 schema -struct<> --- !query 4226 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 4227 -SELECT cast('1' as binary) < cast(1 as decimal(10, 1)) FROM t --- !query 4227 schema -struct<> --- !query 4227 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 4228 -SELECT cast('1' as binary) < cast(1 as decimal(11, 1)) FROM t --- !query 4228 schema -struct<> --- !query 4228 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 4229 -SELECT cast('1' as binary) < cast(1 as decimal(20, 1)) FROM t --- !query 4229 schema -struct<> --- !query 4229 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 4230 -SELECT cast('1' as binary) < cast(1 as decimal(21, 1)) FROM t --- !query 4230 schema -struct<> --- !query 4230 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 4231 -SELECT cast('1' as binary) < cast(1 as decimal(38, 1)) FROM t --- !query 4231 schema -struct<> --- !query 4231 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) < CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 4232 -SELECT cast('1' as binary) < cast(1 as decimal(39, 1)) FROM t --- !query 4232 schema -struct<> --- !query 4232 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4233 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 0)) FROM t --- !query 4233 schema -struct<> --- !query 4233 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 4234 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 0)) FROM t --- !query 4234 schema -struct<> --- !query 4234 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 4235 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 0)) FROM t --- !query 4235 schema -struct<> --- !query 4235 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 4236 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 0)) FROM t --- !query 4236 schema -struct<> --- !query 4236 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 4237 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 0)) FROM t --- !query 4237 schema -struct<> --- !query 4237 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 4238 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 0)) FROM t --- !query 4238 schema -struct<> --- !query 4238 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 4239 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 0)) FROM t --- !query 4239 schema -struct<> --- !query 4239 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 4240 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 0)) FROM t --- !query 4240 schema -struct<> --- !query 4240 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 4241 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 0)) FROM t --- !query 4241 schema -struct<> --- !query 4241 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 4242 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 0)) FROM t --- !query 4242 schema -struct<> --- !query 4242 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 4243 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 0)) FROM t --- !query 4243 schema -struct<> --- !query 4243 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4244 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(1, 1)) FROM t --- !query 4244 schema -struct<> --- !query 4244 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 4245 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(2, 1)) FROM t --- !query 4245 schema -struct<> --- !query 4245 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 4246 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 1)) FROM t --- !query 4246 schema -struct<> --- !query 4246 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 4247 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(4, 1)) FROM t --- !query 4247 schema -struct<> --- !query 4247 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 4248 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 1)) FROM t --- !query 4248 schema -struct<> --- !query 4248 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 4249 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(6, 1)) FROM t --- !query 4249 schema -struct<> --- !query 4249 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 4250 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 1)) FROM t --- !query 4250 schema -struct<> --- !query 4250 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 4251 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(11, 1)) FROM t --- !query 4251 schema -struct<> --- !query 4251 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 4252 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 1)) FROM t --- !query 4252 schema -struct<> --- !query 4252 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 4253 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(21, 1)) FROM t --- !query 4253 schema -struct<> --- !query 4253 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 4254 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(38, 1)) FROM t --- !query 4254 schema -struct<> --- !query 4254 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) < CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 4255 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 1)) FROM t --- !query 4255 schema -struct<> --- !query 4255 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4256 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 0)) FROM t --- !query 4256 schema -struct<> --- !query 4256 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 4257 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 0)) FROM t --- !query 4257 schema -struct<> --- !query 4257 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 4258 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 0)) FROM t --- !query 4258 schema -struct<> --- !query 4258 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 4259 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 0)) FROM t --- !query 4259 schema -struct<> --- !query 4259 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 4260 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 0)) FROM t --- !query 4260 schema -struct<> --- !query 4260 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 4261 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 0)) FROM t --- !query 4261 schema -struct<> --- !query 4261 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 4262 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 0)) FROM t --- !query 4262 schema -struct<> --- !query 4262 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 4263 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 0)) FROM t --- !query 4263 schema -struct<> --- !query 4263 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 4264 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 0)) FROM t --- !query 4264 schema -struct<> --- !query 4264 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 4265 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 0)) FROM t --- !query 4265 schema -struct<> --- !query 4265 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 4266 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 0)) FROM t --- !query 4266 schema -struct<> --- !query 4266 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 0)) FROM t - - --- !query 4267 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(1, 1)) FROM t --- !query 4267 schema -struct<> --- !query 4267 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 4268 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(2, 1)) FROM t --- !query 4268 schema -struct<> --- !query 4268 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 4269 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 1)) FROM t --- !query 4269 schema -struct<> --- !query 4269 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 4270 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(4, 1)) FROM t --- !query 4270 schema -struct<> --- !query 4270 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 4271 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 1)) FROM t --- !query 4271 schema -struct<> --- !query 4271 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 4272 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(6, 1)) FROM t --- !query 4272 schema -struct<> --- !query 4272 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 4273 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 1)) FROM t --- !query 4273 schema -struct<> --- !query 4273 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 4274 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(11, 1)) FROM t --- !query 4274 schema -struct<> --- !query 4274 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 4275 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 1)) FROM t --- !query 4275 schema -struct<> --- !query 4275 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 4276 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(21, 1)) FROM t --- !query 4276 schema -struct<> --- !query 4276 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 4277 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(38, 1)) FROM t --- !query 4277 schema -struct<> --- !query 4277 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) < CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 4278 -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 1)) FROM t --- !query 4278 schema -struct<> --- !query 4278 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(39, 1)) FROM t - - --- !query 4279 -SELECT cast(1 as decimal(1, 0)) < cast(1 as tinyint) FROM t --- !query 4279 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> --- !query 4279 output -false - - --- !query 4280 -SELECT cast(1 as decimal(3, 0)) < cast(1 as tinyint) FROM t --- !query 4280 schema -struct<(CAST(1 AS DECIMAL(3,0)) < CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> --- !query 4280 output -false - - --- !query 4281 -SELECT cast(1 as decimal(4, 0)) < cast(1 as tinyint) FROM t --- !query 4281 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> --- !query 4281 output -false - - --- !query 4282 -SELECT cast(1 as decimal(5, 0)) < cast(1 as tinyint) FROM t --- !query 4282 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 4282 output -false - - --- !query 4283 -SELECT cast(1 as decimal(6, 0)) < cast(1 as tinyint) FROM t --- !query 4283 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> --- !query 4283 output -false - - --- !query 4284 -SELECT cast(1 as decimal(10, 0)) < cast(1 as tinyint) FROM t --- !query 4284 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 4284 output -false - - --- !query 4285 -SELECT cast(1 as decimal(11, 0)) < cast(1 as tinyint) FROM t --- !query 4285 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> --- !query 4285 output -false - - --- !query 4286 -SELECT cast(1 as decimal(20, 0)) < cast(1 as tinyint) FROM t --- !query 4286 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 4286 output -false - - --- !query 4287 -SELECT cast(1 as decimal(21, 0)) < cast(1 as tinyint) FROM t --- !query 4287 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> --- !query 4287 output -false - - --- !query 4288 -SELECT cast(1 as decimal(38, 0)) < cast(1 as tinyint) FROM t --- !query 4288 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> --- !query 4288 output -false - - --- !query 4289 -SELECT cast(1 as decimal(39, 0)) < cast(1 as tinyint) FROM t --- !query 4289 schema -struct<> --- !query 4289 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as tinyint) FROM t - - --- !query 4290 -SELECT cast(1 as decimal(1, 1)) < cast(1 as tinyint) FROM t --- !query 4290 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4290 output -NULL - - --- !query 4291 -SELECT cast(1 as decimal(2, 1)) < cast(1 as tinyint) FROM t --- !query 4291 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4291 output -false - - --- !query 4292 -SELECT cast(1 as decimal(3, 1)) < cast(1 as tinyint) FROM t --- !query 4292 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4292 output -false - - --- !query 4293 -SELECT cast(1 as decimal(4, 1)) < cast(1 as tinyint) FROM t --- !query 4293 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4293 output -false - - --- !query 4294 -SELECT cast(1 as decimal(5, 1)) < cast(1 as tinyint) FROM t --- !query 4294 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> --- !query 4294 output -false - - --- !query 4295 -SELECT cast(1 as decimal(6, 1)) < cast(1 as tinyint) FROM t --- !query 4295 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> --- !query 4295 output -false - - --- !query 4296 -SELECT cast(1 as decimal(10, 1)) < cast(1 as tinyint) FROM t --- !query 4296 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> --- !query 4296 output -false - - --- !query 4297 -SELECT cast(1 as decimal(11, 1)) < cast(1 as tinyint) FROM t --- !query 4297 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> --- !query 4297 output -false - - --- !query 4298 -SELECT cast(1 as decimal(20, 1)) < cast(1 as tinyint) FROM t --- !query 4298 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> --- !query 4298 output -false - - --- !query 4299 -SELECT cast(1 as decimal(21, 1)) < cast(1 as tinyint) FROM t --- !query 4299 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> --- !query 4299 output -false - - --- !query 4300 -SELECT cast(1 as decimal(38, 1)) < cast(1 as tinyint) FROM t --- !query 4300 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> --- !query 4300 output -false - - --- !query 4301 -SELECT cast(1 as decimal(39, 1)) < cast(1 as tinyint) FROM t --- !query 4301 schema -struct<> --- !query 4301 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as tinyint) FROM t - - --- !query 4302 -SELECT cast(1 as decimal(1, 0)) < cast(1 as smallint) FROM t --- !query 4302 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4302 output -false - - --- !query 4303 -SELECT cast(1 as decimal(3, 0)) < cast(1 as smallint) FROM t --- !query 4303 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4303 output -false - - --- !query 4304 -SELECT cast(1 as decimal(4, 0)) < cast(1 as smallint) FROM t --- !query 4304 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4304 output -false - - --- !query 4305 -SELECT cast(1 as decimal(5, 0)) < cast(1 as smallint) FROM t --- !query 4305 schema -struct<(CAST(1 AS DECIMAL(5,0)) < CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> --- !query 4305 output -false - - --- !query 4306 -SELECT cast(1 as decimal(6, 0)) < cast(1 as smallint) FROM t --- !query 4306 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> --- !query 4306 output -false - - --- !query 4307 -SELECT cast(1 as decimal(10, 0)) < cast(1 as smallint) FROM t --- !query 4307 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 4307 output -false - - --- !query 4308 -SELECT cast(1 as decimal(11, 0)) < cast(1 as smallint) FROM t --- !query 4308 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> --- !query 4308 output -false - - --- !query 4309 -SELECT cast(1 as decimal(20, 0)) < cast(1 as smallint) FROM t --- !query 4309 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 4309 output -false - - --- !query 4310 -SELECT cast(1 as decimal(21, 0)) < cast(1 as smallint) FROM t --- !query 4310 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> --- !query 4310 output -false - - --- !query 4311 -SELECT cast(1 as decimal(38, 0)) < cast(1 as smallint) FROM t --- !query 4311 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> --- !query 4311 output -false - - --- !query 4312 -SELECT cast(1 as decimal(39, 0)) < cast(1 as smallint) FROM t --- !query 4312 schema -struct<> --- !query 4312 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as smallint) FROM t - - --- !query 4313 -SELECT cast(1 as decimal(1, 1)) < cast(1 as smallint) FROM t --- !query 4313 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4313 output -NULL - - --- !query 4314 -SELECT cast(1 as decimal(2, 1)) < cast(1 as smallint) FROM t --- !query 4314 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4314 output -false - - --- !query 4315 -SELECT cast(1 as decimal(3, 1)) < cast(1 as smallint) FROM t --- !query 4315 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4315 output -false - - --- !query 4316 -SELECT cast(1 as decimal(4, 1)) < cast(1 as smallint) FROM t --- !query 4316 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4316 output -false - - --- !query 4317 -SELECT cast(1 as decimal(5, 1)) < cast(1 as smallint) FROM t --- !query 4317 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4317 output -false - - --- !query 4318 -SELECT cast(1 as decimal(6, 1)) < cast(1 as smallint) FROM t --- !query 4318 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4318 output -false - - --- !query 4319 -SELECT cast(1 as decimal(10, 1)) < cast(1 as smallint) FROM t --- !query 4319 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> --- !query 4319 output -false - - --- !query 4320 -SELECT cast(1 as decimal(11, 1)) < cast(1 as smallint) FROM t --- !query 4320 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> --- !query 4320 output -false - - --- !query 4321 -SELECT cast(1 as decimal(20, 1)) < cast(1 as smallint) FROM t --- !query 4321 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> --- !query 4321 output -false - - --- !query 4322 -SELECT cast(1 as decimal(21, 1)) < cast(1 as smallint) FROM t --- !query 4322 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> --- !query 4322 output -false - - --- !query 4323 -SELECT cast(1 as decimal(38, 1)) < cast(1 as smallint) FROM t --- !query 4323 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> --- !query 4323 output -false - - --- !query 4324 -SELECT cast(1 as decimal(39, 1)) < cast(1 as smallint) FROM t --- !query 4324 schema -struct<> --- !query 4324 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as smallint) FROM t - - --- !query 4325 -SELECT cast(1 as decimal(1, 0)) < cast(1 as int) FROM t --- !query 4325 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4325 output -false - - --- !query 4326 -SELECT cast(1 as decimal(3, 0)) < cast(1 as int) FROM t --- !query 4326 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4326 output -false - - --- !query 4327 -SELECT cast(1 as decimal(4, 0)) < cast(1 as int) FROM t --- !query 4327 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4327 output -false - - --- !query 4328 -SELECT cast(1 as decimal(5, 0)) < cast(1 as int) FROM t --- !query 4328 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4328 output -false - - --- !query 4329 -SELECT cast(1 as decimal(6, 0)) < cast(1 as int) FROM t --- !query 4329 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4329 output -false - - --- !query 4330 -SELECT cast(1 as decimal(10, 0)) < cast(1 as int) FROM t --- !query 4330 schema -struct<(CAST(1 AS DECIMAL(10,0)) < CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> --- !query 4330 output -false - - --- !query 4331 -SELECT cast(1 as decimal(11, 0)) < cast(1 as int) FROM t --- !query 4331 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 4331 output -false - - --- !query 4332 -SELECT cast(1 as decimal(20, 0)) < cast(1 as int) FROM t --- !query 4332 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 4332 output -false - - --- !query 4333 -SELECT cast(1 as decimal(21, 0)) < cast(1 as int) FROM t --- !query 4333 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 4333 output -false - - --- !query 4334 -SELECT cast(1 as decimal(38, 0)) < cast(1 as int) FROM t --- !query 4334 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 4334 output -false - - --- !query 4335 -SELECT cast(1 as decimal(39, 0)) < cast(1 as int) FROM t --- !query 4335 schema -struct<> --- !query 4335 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as int) FROM t - - --- !query 4336 -SELECT cast(1 as decimal(1, 1)) < cast(1 as int) FROM t --- !query 4336 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4336 output -NULL - - --- !query 4337 -SELECT cast(1 as decimal(2, 1)) < cast(1 as int) FROM t --- !query 4337 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4337 output -false - - --- !query 4338 -SELECT cast(1 as decimal(3, 1)) < cast(1 as int) FROM t --- !query 4338 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4338 output -false - - --- !query 4339 -SELECT cast(1 as decimal(4, 1)) < cast(1 as int) FROM t --- !query 4339 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4339 output -false - - --- !query 4340 -SELECT cast(1 as decimal(5, 1)) < cast(1 as int) FROM t --- !query 4340 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4340 output -false - - --- !query 4341 -SELECT cast(1 as decimal(6, 1)) < cast(1 as int) FROM t --- !query 4341 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4341 output -false - - --- !query 4342 -SELECT cast(1 as decimal(10, 1)) < cast(1 as int) FROM t --- !query 4342 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4342 output -false - - --- !query 4343 -SELECT cast(1 as decimal(11, 1)) < cast(1 as int) FROM t --- !query 4343 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4343 output -false - - --- !query 4344 -SELECT cast(1 as decimal(20, 1)) < cast(1 as int) FROM t --- !query 4344 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 4344 output -false - - --- !query 4345 -SELECT cast(1 as decimal(21, 1)) < cast(1 as int) FROM t --- !query 4345 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 4345 output -false - - --- !query 4346 -SELECT cast(1 as decimal(38, 1)) < cast(1 as int) FROM t --- !query 4346 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 4346 output -false - - --- !query 4347 -SELECT cast(1 as decimal(39, 1)) < cast(1 as int) FROM t --- !query 4347 schema -struct<> --- !query 4347 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as int) FROM t - - --- !query 4348 -SELECT cast(1 as decimal(1, 0)) < cast(1 as bigint) FROM t --- !query 4348 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4348 output -false - - --- !query 4349 -SELECT cast(1 as decimal(3, 0)) < cast(1 as bigint) FROM t --- !query 4349 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4349 output -false - - --- !query 4350 -SELECT cast(1 as decimal(4, 0)) < cast(1 as bigint) FROM t --- !query 4350 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4350 output -false - - --- !query 4351 -SELECT cast(1 as decimal(5, 0)) < cast(1 as bigint) FROM t --- !query 4351 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4351 output -false - - --- !query 4352 -SELECT cast(1 as decimal(6, 0)) < cast(1 as bigint) FROM t --- !query 4352 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4352 output -false - - --- !query 4353 -SELECT cast(1 as decimal(10, 0)) < cast(1 as bigint) FROM t --- !query 4353 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4353 output -false - - --- !query 4354 -SELECT cast(1 as decimal(11, 0)) < cast(1 as bigint) FROM t --- !query 4354 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4354 output -false - - --- !query 4355 -SELECT cast(1 as decimal(20, 0)) < cast(1 as bigint) FROM t --- !query 4355 schema -struct<(CAST(1 AS DECIMAL(20,0)) < CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> --- !query 4355 output -false - - --- !query 4356 -SELECT cast(1 as decimal(21, 0)) < cast(1 as bigint) FROM t --- !query 4356 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> --- !query 4356 output -false - - --- !query 4357 -SELECT cast(1 as decimal(38, 0)) < cast(1 as bigint) FROM t --- !query 4357 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> --- !query 4357 output -false - - --- !query 4358 -SELECT cast(1 as decimal(39, 0)) < cast(1 as bigint) FROM t --- !query 4358 schema -struct<> --- !query 4358 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as bigint) FROM t - - --- !query 4359 -SELECT cast(1 as decimal(1, 1)) < cast(1 as bigint) FROM t --- !query 4359 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4359 output -NULL - - --- !query 4360 -SELECT cast(1 as decimal(2, 1)) < cast(1 as bigint) FROM t --- !query 4360 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4360 output -false - - --- !query 4361 -SELECT cast(1 as decimal(3, 1)) < cast(1 as bigint) FROM t --- !query 4361 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4361 output -false - - --- !query 4362 -SELECT cast(1 as decimal(4, 1)) < cast(1 as bigint) FROM t --- !query 4362 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4362 output -false - - --- !query 4363 -SELECT cast(1 as decimal(5, 1)) < cast(1 as bigint) FROM t --- !query 4363 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4363 output -false - - --- !query 4364 -SELECT cast(1 as decimal(6, 1)) < cast(1 as bigint) FROM t --- !query 4364 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4364 output -false - - --- !query 4365 -SELECT cast(1 as decimal(10, 1)) < cast(1 as bigint) FROM t --- !query 4365 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4365 output -false - - --- !query 4366 -SELECT cast(1 as decimal(11, 1)) < cast(1 as bigint) FROM t --- !query 4366 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4366 output -false - - --- !query 4367 -SELECT cast(1 as decimal(20, 1)) < cast(1 as bigint) FROM t --- !query 4367 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4367 output -false - - --- !query 4368 -SELECT cast(1 as decimal(21, 1)) < cast(1 as bigint) FROM t --- !query 4368 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4368 output -false - - --- !query 4369 -SELECT cast(1 as decimal(38, 1)) < cast(1 as bigint) FROM t --- !query 4369 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> --- !query 4369 output -false - - --- !query 4370 -SELECT cast(1 as decimal(39, 1)) < cast(1 as bigint) FROM t --- !query 4370 schema -struct<> --- !query 4370 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as bigint) FROM t - - --- !query 4371 -SELECT cast(1 as decimal(1, 0)) < cast(1 as float) FROM t --- !query 4371 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4371 output -false - - --- !query 4372 -SELECT cast(1 as decimal(3, 0)) < cast(1 as float) FROM t --- !query 4372 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4372 output -false - - --- !query 4373 -SELECT cast(1 as decimal(4, 0)) < cast(1 as float) FROM t --- !query 4373 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4373 output -false - - --- !query 4374 -SELECT cast(1 as decimal(5, 0)) < cast(1 as float) FROM t --- !query 4374 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4374 output -false - - --- !query 4375 -SELECT cast(1 as decimal(6, 0)) < cast(1 as float) FROM t --- !query 4375 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4375 output -false - - --- !query 4376 -SELECT cast(1 as decimal(10, 0)) < cast(1 as float) FROM t --- !query 4376 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4376 output -false - - --- !query 4377 -SELECT cast(1 as decimal(11, 0)) < cast(1 as float) FROM t --- !query 4377 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4377 output -false - - --- !query 4378 -SELECT cast(1 as decimal(20, 0)) < cast(1 as float) FROM t --- !query 4378 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4378 output -false - - --- !query 4379 -SELECT cast(1 as decimal(21, 0)) < cast(1 as float) FROM t --- !query 4379 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4379 output -false - - --- !query 4380 -SELECT cast(1 as decimal(38, 0)) < cast(1 as float) FROM t --- !query 4380 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4380 output -false - - --- !query 4381 -SELECT cast(1 as decimal(39, 0)) < cast(1 as float) FROM t --- !query 4381 schema -struct<> --- !query 4381 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as float) FROM t - - --- !query 4382 -SELECT cast(1 as decimal(1, 1)) < cast(1 as float) FROM t --- !query 4382 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4382 output -NULL - - --- !query 4383 -SELECT cast(1 as decimal(2, 1)) < cast(1 as float) FROM t --- !query 4383 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4383 output -false - - --- !query 4384 -SELECT cast(1 as decimal(3, 1)) < cast(1 as float) FROM t --- !query 4384 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4384 output -false - - --- !query 4385 -SELECT cast(1 as decimal(4, 1)) < cast(1 as float) FROM t --- !query 4385 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4385 output -false - - --- !query 4386 -SELECT cast(1 as decimal(5, 1)) < cast(1 as float) FROM t --- !query 4386 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4386 output -false - - --- !query 4387 -SELECT cast(1 as decimal(6, 1)) < cast(1 as float) FROM t --- !query 4387 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4387 output -false - - --- !query 4388 -SELECT cast(1 as decimal(10, 1)) < cast(1 as float) FROM t --- !query 4388 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4388 output -false - - --- !query 4389 -SELECT cast(1 as decimal(11, 1)) < cast(1 as float) FROM t --- !query 4389 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4389 output -false - - --- !query 4390 -SELECT cast(1 as decimal(20, 1)) < cast(1 as float) FROM t --- !query 4390 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4390 output -false - - --- !query 4391 -SELECT cast(1 as decimal(21, 1)) < cast(1 as float) FROM t --- !query 4391 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4391 output -false - - --- !query 4392 -SELECT cast(1 as decimal(38, 1)) < cast(1 as float) FROM t --- !query 4392 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) < CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4392 output -false - - --- !query 4393 -SELECT cast(1 as decimal(39, 1)) < cast(1 as float) FROM t --- !query 4393 schema -struct<> --- !query 4393 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as float) FROM t - - --- !query 4394 -SELECT cast(1 as decimal(1, 0)) < cast(1 as double) FROM t --- !query 4394 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4394 output -false - - --- !query 4395 -SELECT cast(1 as decimal(3, 0)) < cast(1 as double) FROM t --- !query 4395 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4395 output -false - - --- !query 4396 -SELECT cast(1 as decimal(4, 0)) < cast(1 as double) FROM t --- !query 4396 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4396 output -false - - --- !query 4397 -SELECT cast(1 as decimal(5, 0)) < cast(1 as double) FROM t --- !query 4397 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4397 output -false - - --- !query 4398 -SELECT cast(1 as decimal(6, 0)) < cast(1 as double) FROM t --- !query 4398 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4398 output -false - - --- !query 4399 -SELECT cast(1 as decimal(10, 0)) < cast(1 as double) FROM t --- !query 4399 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4399 output -false - - --- !query 4400 -SELECT cast(1 as decimal(11, 0)) < cast(1 as double) FROM t --- !query 4400 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4400 output -false - - --- !query 4401 -SELECT cast(1 as decimal(20, 0)) < cast(1 as double) FROM t --- !query 4401 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4401 output -false - - --- !query 4402 -SELECT cast(1 as decimal(21, 0)) < cast(1 as double) FROM t --- !query 4402 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4402 output -false - - --- !query 4403 -SELECT cast(1 as decimal(38, 0)) < cast(1 as double) FROM t --- !query 4403 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4403 output -false - - --- !query 4404 -SELECT cast(1 as decimal(39, 0)) < cast(1 as double) FROM t --- !query 4404 schema -struct<> --- !query 4404 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as double) FROM t - - --- !query 4405 -SELECT cast(1 as decimal(1, 1)) < cast(1 as double) FROM t --- !query 4405 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4405 output -NULL - - --- !query 4406 -SELECT cast(1 as decimal(2, 1)) < cast(1 as double) FROM t --- !query 4406 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4406 output -false - - --- !query 4407 -SELECT cast(1 as decimal(3, 1)) < cast(1 as double) FROM t --- !query 4407 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4407 output -false - - --- !query 4408 -SELECT cast(1 as decimal(4, 1)) < cast(1 as double) FROM t --- !query 4408 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4408 output -false - - --- !query 4409 -SELECT cast(1 as decimal(5, 1)) < cast(1 as double) FROM t --- !query 4409 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4409 output -false - - --- !query 4410 -SELECT cast(1 as decimal(6, 1)) < cast(1 as double) FROM t --- !query 4410 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4410 output -false - - --- !query 4411 -SELECT cast(1 as decimal(10, 1)) < cast(1 as double) FROM t --- !query 4411 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4411 output -false - - --- !query 4412 -SELECT cast(1 as decimal(11, 1)) < cast(1 as double) FROM t --- !query 4412 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4412 output -false - - --- !query 4413 -SELECT cast(1 as decimal(20, 1)) < cast(1 as double) FROM t --- !query 4413 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4413 output -false - - --- !query 4414 -SELECT cast(1 as decimal(21, 1)) < cast(1 as double) FROM t --- !query 4414 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4414 output -false - - --- !query 4415 -SELECT cast(1 as decimal(38, 1)) < cast(1 as double) FROM t --- !query 4415 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) < CAST(1 AS DOUBLE)):boolean> --- !query 4415 output -false - - --- !query 4416 -SELECT cast(1 as decimal(39, 1)) < cast(1 as double) FROM t --- !query 4416 schema -struct<> --- !query 4416 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as double) FROM t - - --- !query 4417 -SELECT cast(1 as decimal(1, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4417 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4417 output -false - - --- !query 4418 -SELECT cast(1 as decimal(3, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4418 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4418 output -false - - --- !query 4419 -SELECT cast(1 as decimal(4, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4419 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4419 output -false - - --- !query 4420 -SELECT cast(1 as decimal(5, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4420 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4420 output -false - - --- !query 4421 -SELECT cast(1 as decimal(6, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4421 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4421 output -false - - --- !query 4422 -SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4422 schema -struct<(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS DECIMAL(10,0))):boolean> --- !query 4422 output -false - - --- !query 4423 -SELECT cast(1 as decimal(11, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4423 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 4423 output -false - - --- !query 4424 -SELECT cast(1 as decimal(20, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4424 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 4424 output -false - - --- !query 4425 -SELECT cast(1 as decimal(21, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4425 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 4425 output -false - - --- !query 4426 -SELECT cast(1 as decimal(38, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4426 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 4426 output -false - - --- !query 4427 -SELECT cast(1 as decimal(39, 0)) < cast(1 as decimal(10, 0)) FROM t --- !query 4427 schema -struct<> --- !query 4427 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as decimal(10, 0)) FROM t - - --- !query 4428 -SELECT cast(1 as decimal(1, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4428 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4428 output -NULL - - --- !query 4429 -SELECT cast(1 as decimal(2, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4429 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4429 output -false - - --- !query 4430 -SELECT cast(1 as decimal(3, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4430 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4430 output -false - - --- !query 4431 -SELECT cast(1 as decimal(4, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4431 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4431 output -false - - --- !query 4432 -SELECT cast(1 as decimal(5, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4432 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4432 output -false - - --- !query 4433 -SELECT cast(1 as decimal(6, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4433 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4433 output -false - - --- !query 4434 -SELECT cast(1 as decimal(10, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4434 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4434 output -false - - --- !query 4435 -SELECT cast(1 as decimal(11, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4435 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4435 output -false - - --- !query 4436 -SELECT cast(1 as decimal(20, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4436 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 4436 output -false - - --- !query 4437 -SELECT cast(1 as decimal(21, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4437 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 4437 output -false - - --- !query 4438 -SELECT cast(1 as decimal(38, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4438 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) < CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 4438 output -false - - --- !query 4439 -SELECT cast(1 as decimal(39, 1)) < cast(1 as decimal(10, 0)) FROM t --- !query 4439 schema -struct<> --- !query 4439 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as decimal(10, 0)) FROM t - - --- !query 4440 -SELECT cast(1 as decimal(1, 0)) < cast(1 as string) FROM t --- !query 4440 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4440 output -false - - --- !query 4441 -SELECT cast(1 as decimal(3, 0)) < cast(1 as string) FROM t --- !query 4441 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4441 output -false - - --- !query 4442 -SELECT cast(1 as decimal(4, 0)) < cast(1 as string) FROM t --- !query 4442 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4442 output -false - - --- !query 4443 -SELECT cast(1 as decimal(5, 0)) < cast(1 as string) FROM t --- !query 4443 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4443 output -false - - --- !query 4444 -SELECT cast(1 as decimal(6, 0)) < cast(1 as string) FROM t --- !query 4444 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4444 output -false - - --- !query 4445 -SELECT cast(1 as decimal(10, 0)) < cast(1 as string) FROM t --- !query 4445 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4445 output -false - - --- !query 4446 -SELECT cast(1 as decimal(11, 0)) < cast(1 as string) FROM t --- !query 4446 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4446 output -false - - --- !query 4447 -SELECT cast(1 as decimal(20, 0)) < cast(1 as string) FROM t --- !query 4447 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4447 output -false - - --- !query 4448 -SELECT cast(1 as decimal(21, 0)) < cast(1 as string) FROM t --- !query 4448 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4448 output -false - - --- !query 4449 -SELECT cast(1 as decimal(38, 0)) < cast(1 as string) FROM t --- !query 4449 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4449 output -false - - --- !query 4450 -SELECT cast(1 as decimal(39, 0)) < cast(1 as string) FROM t --- !query 4450 schema -struct<> --- !query 4450 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as string) FROM t - - --- !query 4451 -SELECT cast(1 as decimal(1, 1)) < cast(1 as string) FROM t --- !query 4451 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4451 output -NULL - - --- !query 4452 -SELECT cast(1 as decimal(2, 1)) < cast(1 as string) FROM t --- !query 4452 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4452 output -false - - --- !query 4453 -SELECT cast(1 as decimal(3, 1)) < cast(1 as string) FROM t --- !query 4453 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4453 output -false - - --- !query 4454 -SELECT cast(1 as decimal(4, 1)) < cast(1 as string) FROM t --- !query 4454 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4454 output -false - - --- !query 4455 -SELECT cast(1 as decimal(5, 1)) < cast(1 as string) FROM t --- !query 4455 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4455 output -false - - --- !query 4456 -SELECT cast(1 as decimal(6, 1)) < cast(1 as string) FROM t --- !query 4456 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4456 output -false - - --- !query 4457 -SELECT cast(1 as decimal(10, 1)) < cast(1 as string) FROM t --- !query 4457 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4457 output -false - - --- !query 4458 -SELECT cast(1 as decimal(11, 1)) < cast(1 as string) FROM t --- !query 4458 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4458 output -false - - --- !query 4459 -SELECT cast(1 as decimal(20, 1)) < cast(1 as string) FROM t --- !query 4459 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4459 output -false - - --- !query 4460 -SELECT cast(1 as decimal(21, 1)) < cast(1 as string) FROM t --- !query 4460 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4460 output -false - - --- !query 4461 -SELECT cast(1 as decimal(38, 1)) < cast(1 as string) FROM t --- !query 4461 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) < CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4461 output -false - - --- !query 4462 -SELECT cast(1 as decimal(39, 1)) < cast(1 as string) FROM t --- !query 4462 schema -struct<> --- !query 4462 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as string) FROM t - - --- !query 4463 -SELECT cast(1 as decimal(1, 0)) < cast('1' as binary) FROM t --- !query 4463 schema -struct<> --- !query 4463 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 4464 -SELECT cast(1 as decimal(3, 0)) < cast('1' as binary) FROM t --- !query 4464 schema -struct<> --- !query 4464 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 4465 -SELECT cast(1 as decimal(4, 0)) < cast('1' as binary) FROM t --- !query 4465 schema -struct<> --- !query 4465 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 4466 -SELECT cast(1 as decimal(5, 0)) < cast('1' as binary) FROM t --- !query 4466 schema -struct<> --- !query 4466 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 4467 -SELECT cast(1 as decimal(6, 0)) < cast('1' as binary) FROM t --- !query 4467 schema -struct<> --- !query 4467 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 4468 -SELECT cast(1 as decimal(10, 0)) < cast('1' as binary) FROM t --- !query 4468 schema -struct<> --- !query 4468 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 4469 -SELECT cast(1 as decimal(11, 0)) < cast('1' as binary) FROM t --- !query 4469 schema -struct<> --- !query 4469 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 4470 -SELECT cast(1 as decimal(20, 0)) < cast('1' as binary) FROM t --- !query 4470 schema -struct<> --- !query 4470 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 4471 -SELECT cast(1 as decimal(21, 0)) < cast('1' as binary) FROM t --- !query 4471 schema -struct<> --- !query 4471 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 4472 -SELECT cast(1 as decimal(38, 0)) < cast('1' as binary) FROM t --- !query 4472 schema -struct<> --- !query 4472 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 4473 -SELECT cast(1 as decimal(39, 0)) < cast('1' as binary) FROM t --- !query 4473 schema -struct<> --- !query 4473 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast('1' as binary) FROM t - - --- !query 4474 -SELECT cast(1 as decimal(1, 1)) < cast('1' as binary) FROM t --- !query 4474 schema -struct<> --- !query 4474 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 4475 -SELECT cast(1 as decimal(2, 1)) < cast('1' as binary) FROM t --- !query 4475 schema -struct<> --- !query 4475 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 4476 -SELECT cast(1 as decimal(3, 1)) < cast('1' as binary) FROM t --- !query 4476 schema -struct<> --- !query 4476 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 4477 -SELECT cast(1 as decimal(4, 1)) < cast('1' as binary) FROM t --- !query 4477 schema -struct<> --- !query 4477 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 4478 -SELECT cast(1 as decimal(5, 1)) < cast('1' as binary) FROM t --- !query 4478 schema -struct<> --- !query 4478 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 4479 -SELECT cast(1 as decimal(6, 1)) < cast('1' as binary) FROM t --- !query 4479 schema -struct<> --- !query 4479 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 4480 -SELECT cast(1 as decimal(10, 1)) < cast('1' as binary) FROM t --- !query 4480 schema -struct<> --- !query 4480 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 4481 -SELECT cast(1 as decimal(11, 1)) < cast('1' as binary) FROM t --- !query 4481 schema -struct<> --- !query 4481 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 4482 -SELECT cast(1 as decimal(20, 1)) < cast('1' as binary) FROM t --- !query 4482 schema -struct<> --- !query 4482 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 4483 -SELECT cast(1 as decimal(21, 1)) < cast('1' as binary) FROM t --- !query 4483 schema -struct<> --- !query 4483 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 4484 -SELECT cast(1 as decimal(38, 1)) < cast('1' as binary) FROM t --- !query 4484 schema -struct<> --- !query 4484 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 4485 -SELECT cast(1 as decimal(39, 1)) < cast('1' as binary) FROM t --- !query 4485 schema -struct<> --- !query 4485 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast('1' as binary) FROM t - - --- !query 4486 -SELECT cast(1 as decimal(1, 0)) < cast(1 as boolean) FROM t --- !query 4486 schema -struct<> --- !query 4486 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 4487 -SELECT cast(1 as decimal(3, 0)) < cast(1 as boolean) FROM t --- !query 4487 schema -struct<> --- !query 4487 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 4488 -SELECT cast(1 as decimal(4, 0)) < cast(1 as boolean) FROM t --- !query 4488 schema -struct<> --- !query 4488 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 4489 -SELECT cast(1 as decimal(5, 0)) < cast(1 as boolean) FROM t --- !query 4489 schema -struct<> --- !query 4489 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 4490 -SELECT cast(1 as decimal(6, 0)) < cast(1 as boolean) FROM t --- !query 4490 schema -struct<> --- !query 4490 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 4491 -SELECT cast(1 as decimal(10, 0)) < cast(1 as boolean) FROM t --- !query 4491 schema -struct<> --- !query 4491 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 4492 -SELECT cast(1 as decimal(11, 0)) < cast(1 as boolean) FROM t --- !query 4492 schema -struct<> --- !query 4492 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 4493 -SELECT cast(1 as decimal(20, 0)) < cast(1 as boolean) FROM t --- !query 4493 schema -struct<> --- !query 4493 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 4494 -SELECT cast(1 as decimal(21, 0)) < cast(1 as boolean) FROM t --- !query 4494 schema -struct<> --- !query 4494 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 4495 -SELECT cast(1 as decimal(38, 0)) < cast(1 as boolean) FROM t --- !query 4495 schema -struct<> --- !query 4495 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 4496 -SELECT cast(1 as decimal(39, 0)) < cast(1 as boolean) FROM t --- !query 4496 schema -struct<> --- !query 4496 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast(1 as boolean) FROM t - - --- !query 4497 -SELECT cast(1 as decimal(1, 1)) < cast(1 as boolean) FROM t --- !query 4497 schema -struct<> --- !query 4497 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 4498 -SELECT cast(1 as decimal(2, 1)) < cast(1 as boolean) FROM t --- !query 4498 schema -struct<> --- !query 4498 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 4499 -SELECT cast(1 as decimal(3, 1)) < cast(1 as boolean) FROM t --- !query 4499 schema -struct<> --- !query 4499 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 4500 -SELECT cast(1 as decimal(4, 1)) < cast(1 as boolean) FROM t --- !query 4500 schema -struct<> --- !query 4500 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 4501 -SELECT cast(1 as decimal(5, 1)) < cast(1 as boolean) FROM t --- !query 4501 schema -struct<> --- !query 4501 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 4502 -SELECT cast(1 as decimal(6, 1)) < cast(1 as boolean) FROM t --- !query 4502 schema -struct<> --- !query 4502 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 4503 -SELECT cast(1 as decimal(10, 1)) < cast(1 as boolean) FROM t --- !query 4503 schema -struct<> --- !query 4503 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 4504 -SELECT cast(1 as decimal(11, 1)) < cast(1 as boolean) FROM t --- !query 4504 schema -struct<> --- !query 4504 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 4505 -SELECT cast(1 as decimal(20, 1)) < cast(1 as boolean) FROM t --- !query 4505 schema -struct<> --- !query 4505 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 4506 -SELECT cast(1 as decimal(21, 1)) < cast(1 as boolean) FROM t --- !query 4506 schema -struct<> --- !query 4506 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 4507 -SELECT cast(1 as decimal(38, 1)) < cast(1 as boolean) FROM t --- !query 4507 schema -struct<> --- !query 4507 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 4508 -SELECT cast(1 as decimal(39, 1)) < cast(1 as boolean) FROM t --- !query 4508 schema -struct<> --- !query 4508 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast(1 as boolean) FROM t - - --- !query 4509 -SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4509 schema -struct<> --- !query 4509 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 4510 -SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4510 schema -struct<> --- !query 4510 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 4511 -SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4511 schema -struct<> --- !query 4511 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 4512 -SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4512 schema -struct<> --- !query 4512 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 4513 -SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4513 schema -struct<> --- !query 4513 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 4514 -SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4514 schema -struct<> --- !query 4514 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 4515 -SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4515 schema -struct<> --- !query 4515 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 4516 -SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4516 schema -struct<> --- !query 4516 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 4517 -SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4517 schema -struct<> --- !query 4517 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 4518 -SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4518 schema -struct<> --- !query 4518 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 4519 -SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4519 schema -struct<> --- !query 4519 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 4520 -SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4520 schema -struct<> --- !query 4520 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 4521 -SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4521 schema -struct<> --- !query 4521 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 4522 -SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4522 schema -struct<> --- !query 4522 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 4523 -SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4523 schema -struct<> --- !query 4523 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 4524 -SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4524 schema -struct<> --- !query 4524 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 4525 -SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4525 schema -struct<> --- !query 4525 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 4526 -SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4526 schema -struct<> --- !query 4526 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 4527 -SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4527 schema -struct<> --- !query 4527 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 4528 -SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4528 schema -struct<> --- !query 4528 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 4529 -SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4529 schema -struct<> --- !query 4529 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 4530 -SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4530 schema -struct<> --- !query 4530 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 4531 -SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 4531 schema -struct<> --- !query 4531 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 4532 -SELECT cast(1 as decimal(1, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4532 schema -struct<> --- !query 4532 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 4533 -SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4533 schema -struct<> --- !query 4533 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 4534 -SELECT cast(1 as decimal(4, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4534 schema -struct<> --- !query 4534 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 4535 -SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4535 schema -struct<> --- !query 4535 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 4536 -SELECT cast(1 as decimal(6, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4536 schema -struct<> --- !query 4536 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 4537 -SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4537 schema -struct<> --- !query 4537 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 4538 -SELECT cast(1 as decimal(11, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4538 schema -struct<> --- !query 4538 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 4539 -SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4539 schema -struct<> --- !query 4539 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 4540 -SELECT cast(1 as decimal(21, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4540 schema -struct<> --- !query 4540 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 4541 -SELECT cast(1 as decimal(38, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4541 schema -struct<> --- !query 4541 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 4542 -SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4542 schema -struct<> --- !query 4542 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) < cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 4543 -SELECT cast(1 as decimal(1, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4543 schema -struct<> --- !query 4543 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 4544 -SELECT cast(1 as decimal(2, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4544 schema -struct<> --- !query 4544 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 4545 -SELECT cast(1 as decimal(3, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4545 schema -struct<> --- !query 4545 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 4546 -SELECT cast(1 as decimal(4, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4546 schema -struct<> --- !query 4546 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 4547 -SELECT cast(1 as decimal(5, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4547 schema -struct<> --- !query 4547 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 4548 -SELECT cast(1 as decimal(6, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4548 schema -struct<> --- !query 4548 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 4549 -SELECT cast(1 as decimal(10, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4549 schema -struct<> --- !query 4549 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 4550 -SELECT cast(1 as decimal(11, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4550 schema -struct<> --- !query 4550 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 4551 -SELECT cast(1 as decimal(20, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4551 schema -struct<> --- !query 4551 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 4552 -SELECT cast(1 as decimal(21, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4552 schema -struct<> --- !query 4552 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 4553 -SELECT cast(1 as decimal(38, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4553 schema -struct<> --- !query 4553 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) < CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 4554 -SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00' as date) FROM t --- !query 4554 schema -struct<> --- !query 4554 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) < cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 4555 -SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 0)) FROM t --- !query 4555 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> --- !query 4555 output -true - - --- !query 4556 -SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 0)) FROM t --- !query 4556 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) <= CAST(1 AS DECIMAL(3,0))):boolean> --- !query 4556 output -true - - --- !query 4557 -SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 0)) FROM t --- !query 4557 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> --- !query 4557 output -true - - --- !query 4558 -SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 0)) FROM t --- !query 4558 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4558 output -true - - --- !query 4559 -SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 0)) FROM t --- !query 4559 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 4559 output -true - - --- !query 4560 -SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 0)) FROM t --- !query 4560 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4560 output -true - - --- !query 4561 -SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 0)) FROM t --- !query 4561 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4561 output -true - - --- !query 4562 -SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 0)) FROM t --- !query 4562 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4562 output -true - - --- !query 4563 -SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 0)) FROM t --- !query 4563 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4563 output -true - - --- !query 4564 -SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 0)) FROM t --- !query 4564 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4564 output -true - - --- !query 4565 -SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 0)) FROM t --- !query 4565 schema -struct<> --- !query 4565 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4566 -SELECT cast(1 as tinyint) <= cast(1 as decimal(1, 1)) FROM t --- !query 4566 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> --- !query 4566 output -NULL - - --- !query 4567 -SELECT cast(1 as tinyint) <= cast(1 as decimal(2, 1)) FROM t --- !query 4567 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> --- !query 4567 output -true - - --- !query 4568 -SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 1)) FROM t --- !query 4568 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> --- !query 4568 output -true - - --- !query 4569 -SELECT cast(1 as tinyint) <= cast(1 as decimal(4, 1)) FROM t --- !query 4569 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> --- !query 4569 output -true - - --- !query 4570 -SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 1)) FROM t --- !query 4570 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> --- !query 4570 output -true - - --- !query 4571 -SELECT cast(1 as tinyint) <= cast(1 as decimal(6, 1)) FROM t --- !query 4571 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 4571 output -true - - --- !query 4572 -SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 1)) FROM t --- !query 4572 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 4572 output -true - - --- !query 4573 -SELECT cast(1 as tinyint) <= cast(1 as decimal(11, 1)) FROM t --- !query 4573 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4573 output -true - - --- !query 4574 -SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 1)) FROM t --- !query 4574 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4574 output -true - - --- !query 4575 -SELECT cast(1 as tinyint) <= cast(1 as decimal(21, 1)) FROM t --- !query 4575 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4575 output -true - - --- !query 4576 -SELECT cast(1 as tinyint) <= cast(1 as decimal(38, 1)) FROM t --- !query 4576 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4576 output -true - - --- !query 4577 -SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 1)) FROM t --- !query 4577 schema -struct<> --- !query 4577 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4578 -SELECT cast(1 as smallint) <= cast(1 as decimal(1, 0)) FROM t --- !query 4578 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> --- !query 4578 output -true - - --- !query 4579 -SELECT cast(1 as smallint) <= cast(1 as decimal(3, 0)) FROM t --- !query 4579 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 4579 output -true - - --- !query 4580 -SELECT cast(1 as smallint) <= cast(1 as decimal(4, 0)) FROM t --- !query 4580 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> --- !query 4580 output -true - - --- !query 4581 -SELECT cast(1 as smallint) <= cast(1 as decimal(5, 0)) FROM t --- !query 4581 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) <= CAST(1 AS DECIMAL(5,0))):boolean> --- !query 4581 output -true - - --- !query 4582 -SELECT cast(1 as smallint) <= cast(1 as decimal(6, 0)) FROM t --- !query 4582 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 4582 output -true - - --- !query 4583 -SELECT cast(1 as smallint) <= cast(1 as decimal(10, 0)) FROM t --- !query 4583 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4583 output -true - - --- !query 4584 -SELECT cast(1 as smallint) <= cast(1 as decimal(11, 0)) FROM t --- !query 4584 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4584 output -true - - --- !query 4585 -SELECT cast(1 as smallint) <= cast(1 as decimal(20, 0)) FROM t --- !query 4585 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4585 output -true - - --- !query 4586 -SELECT cast(1 as smallint) <= cast(1 as decimal(21, 0)) FROM t --- !query 4586 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4586 output -true - - --- !query 4587 -SELECT cast(1 as smallint) <= cast(1 as decimal(38, 0)) FROM t --- !query 4587 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4587 output -true - - --- !query 4588 -SELECT cast(1 as smallint) <= cast(1 as decimal(39, 0)) FROM t --- !query 4588 schema -struct<> --- !query 4588 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4589 -SELECT cast(1 as smallint) <= cast(1 as decimal(1, 1)) FROM t --- !query 4589 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> --- !query 4589 output -NULL - - --- !query 4590 -SELECT cast(1 as smallint) <= cast(1 as decimal(2, 1)) FROM t --- !query 4590 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> --- !query 4590 output -true - - --- !query 4591 -SELECT cast(1 as smallint) <= cast(1 as decimal(3, 1)) FROM t --- !query 4591 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> --- !query 4591 output -true - - --- !query 4592 -SELECT cast(1 as smallint) <= cast(1 as decimal(4, 1)) FROM t --- !query 4592 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> --- !query 4592 output -true - - --- !query 4593 -SELECT cast(1 as smallint) <= cast(1 as decimal(5, 1)) FROM t --- !query 4593 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> --- !query 4593 output -true - - --- !query 4594 -SELECT cast(1 as smallint) <= cast(1 as decimal(6, 1)) FROM t --- !query 4594 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 4594 output -true - - --- !query 4595 -SELECT cast(1 as smallint) <= cast(1 as decimal(10, 1)) FROM t --- !query 4595 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 4595 output -true - - --- !query 4596 -SELECT cast(1 as smallint) <= cast(1 as decimal(11, 1)) FROM t --- !query 4596 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4596 output -true - - --- !query 4597 -SELECT cast(1 as smallint) <= cast(1 as decimal(20, 1)) FROM t --- !query 4597 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4597 output -true - - --- !query 4598 -SELECT cast(1 as smallint) <= cast(1 as decimal(21, 1)) FROM t --- !query 4598 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4598 output -true - - --- !query 4599 -SELECT cast(1 as smallint) <= cast(1 as decimal(38, 1)) FROM t --- !query 4599 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4599 output -true - - --- !query 4600 -SELECT cast(1 as smallint) <= cast(1 as decimal(39, 1)) FROM t --- !query 4600 schema -struct<> --- !query 4600 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4601 -SELECT cast(1 as int) <= cast(1 as decimal(1, 0)) FROM t --- !query 4601 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 4601 output -true - - --- !query 4602 -SELECT cast(1 as int) <= cast(1 as decimal(3, 0)) FROM t --- !query 4602 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 4602 output -true - - --- !query 4603 -SELECT cast(1 as int) <= cast(1 as decimal(4, 0)) FROM t --- !query 4603 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 4603 output -true - - --- !query 4604 -SELECT cast(1 as int) <= cast(1 as decimal(5, 0)) FROM t --- !query 4604 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 4604 output -true - - --- !query 4605 -SELECT cast(1 as int) <= cast(1 as decimal(6, 0)) FROM t --- !query 4605 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 4605 output -true - - --- !query 4606 -SELECT cast(1 as int) <= cast(1 as decimal(10, 0)) FROM t --- !query 4606 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> --- !query 4606 output -true - - --- !query 4607 -SELECT cast(1 as int) <= cast(1 as decimal(11, 0)) FROM t --- !query 4607 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4607 output -true - - --- !query 4608 -SELECT cast(1 as int) <= cast(1 as decimal(20, 0)) FROM t --- !query 4608 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4608 output -true - - --- !query 4609 -SELECT cast(1 as int) <= cast(1 as decimal(21, 0)) FROM t --- !query 4609 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4609 output -true - - --- !query 4610 -SELECT cast(1 as int) <= cast(1 as decimal(38, 0)) FROM t --- !query 4610 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4610 output -true - - --- !query 4611 -SELECT cast(1 as int) <= cast(1 as decimal(39, 0)) FROM t --- !query 4611 schema -struct<> --- !query 4611 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4612 -SELECT cast(1 as int) <= cast(1 as decimal(1, 1)) FROM t --- !query 4612 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 4612 output -NULL - - --- !query 4613 -SELECT cast(1 as int) <= cast(1 as decimal(2, 1)) FROM t --- !query 4613 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 4613 output -true - - --- !query 4614 -SELECT cast(1 as int) <= cast(1 as decimal(3, 1)) FROM t --- !query 4614 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 4614 output -true - - --- !query 4615 -SELECT cast(1 as int) <= cast(1 as decimal(4, 1)) FROM t --- !query 4615 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 4615 output -true - - --- !query 4616 -SELECT cast(1 as int) <= cast(1 as decimal(5, 1)) FROM t --- !query 4616 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 4616 output -true - - --- !query 4617 -SELECT cast(1 as int) <= cast(1 as decimal(6, 1)) FROM t --- !query 4617 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 4617 output -true - - --- !query 4618 -SELECT cast(1 as int) <= cast(1 as decimal(10, 1)) FROM t --- !query 4618 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 4618 output -true - - --- !query 4619 -SELECT cast(1 as int) <= cast(1 as decimal(11, 1)) FROM t --- !query 4619 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4619 output -true - - --- !query 4620 -SELECT cast(1 as int) <= cast(1 as decimal(20, 1)) FROM t --- !query 4620 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4620 output -true - - --- !query 4621 -SELECT cast(1 as int) <= cast(1 as decimal(21, 1)) FROM t --- !query 4621 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4621 output -true - - --- !query 4622 -SELECT cast(1 as int) <= cast(1 as decimal(38, 1)) FROM t --- !query 4622 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4622 output -true - - --- !query 4623 -SELECT cast(1 as int) <= cast(1 as decimal(39, 1)) FROM t --- !query 4623 schema -struct<> --- !query 4623 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4624 -SELECT cast(1 as bigint) <= cast(1 as decimal(1, 0)) FROM t --- !query 4624 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> --- !query 4624 output -true - - --- !query 4625 -SELECT cast(1 as bigint) <= cast(1 as decimal(3, 0)) FROM t --- !query 4625 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 4625 output -true - - --- !query 4626 -SELECT cast(1 as bigint) <= cast(1 as decimal(4, 0)) FROM t --- !query 4626 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> --- !query 4626 output -true - - --- !query 4627 -SELECT cast(1 as bigint) <= cast(1 as decimal(5, 0)) FROM t --- !query 4627 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 4627 output -true - - --- !query 4628 -SELECT cast(1 as bigint) <= cast(1 as decimal(6, 0)) FROM t --- !query 4628 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> --- !query 4628 output -true - - --- !query 4629 -SELECT cast(1 as bigint) <= cast(1 as decimal(10, 0)) FROM t --- !query 4629 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 4629 output -true - - --- !query 4630 -SELECT cast(1 as bigint) <= cast(1 as decimal(11, 0)) FROM t --- !query 4630 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> --- !query 4630 output -true - - --- !query 4631 -SELECT cast(1 as bigint) <= cast(1 as decimal(20, 0)) FROM t --- !query 4631 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) <= CAST(1 AS DECIMAL(20,0))):boolean> --- !query 4631 output -true - - --- !query 4632 -SELECT cast(1 as bigint) <= cast(1 as decimal(21, 0)) FROM t --- !query 4632 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4632 output -true - - --- !query 4633 -SELECT cast(1 as bigint) <= cast(1 as decimal(38, 0)) FROM t --- !query 4633 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4633 output -true - - --- !query 4634 -SELECT cast(1 as bigint) <= cast(1 as decimal(39, 0)) FROM t --- !query 4634 schema -struct<> --- !query 4634 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4635 -SELECT cast(1 as bigint) <= cast(1 as decimal(1, 1)) FROM t --- !query 4635 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> --- !query 4635 output -NULL - - --- !query 4636 -SELECT cast(1 as bigint) <= cast(1 as decimal(2, 1)) FROM t --- !query 4636 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> --- !query 4636 output -true - - --- !query 4637 -SELECT cast(1 as bigint) <= cast(1 as decimal(3, 1)) FROM t --- !query 4637 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> --- !query 4637 output -true - - --- !query 4638 -SELECT cast(1 as bigint) <= cast(1 as decimal(4, 1)) FROM t --- !query 4638 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> --- !query 4638 output -true - - --- !query 4639 -SELECT cast(1 as bigint) <= cast(1 as decimal(5, 1)) FROM t --- !query 4639 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> --- !query 4639 output -true - - --- !query 4640 -SELECT cast(1 as bigint) <= cast(1 as decimal(6, 1)) FROM t --- !query 4640 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> --- !query 4640 output -true - - --- !query 4641 -SELECT cast(1 as bigint) <= cast(1 as decimal(10, 1)) FROM t --- !query 4641 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> --- !query 4641 output -true - - --- !query 4642 -SELECT cast(1 as bigint) <= cast(1 as decimal(11, 1)) FROM t --- !query 4642 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> --- !query 4642 output -true - - --- !query 4643 -SELECT cast(1 as bigint) <= cast(1 as decimal(20, 1)) FROM t --- !query 4643 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> --- !query 4643 output -true - - --- !query 4644 -SELECT cast(1 as bigint) <= cast(1 as decimal(21, 1)) FROM t --- !query 4644 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4644 output -true - - --- !query 4645 -SELECT cast(1 as bigint) <= cast(1 as decimal(38, 1)) FROM t --- !query 4645 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4645 output -true - - --- !query 4646 -SELECT cast(1 as bigint) <= cast(1 as decimal(39, 1)) FROM t --- !query 4646 schema -struct<> --- !query 4646 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4647 -SELECT cast(1 as float) <= cast(1 as decimal(1, 0)) FROM t --- !query 4647 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 4647 output -true - - --- !query 4648 -SELECT cast(1 as float) <= cast(1 as decimal(3, 0)) FROM t --- !query 4648 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 4648 output -true - - --- !query 4649 -SELECT cast(1 as float) <= cast(1 as decimal(4, 0)) FROM t --- !query 4649 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 4649 output -true - - --- !query 4650 -SELECT cast(1 as float) <= cast(1 as decimal(5, 0)) FROM t --- !query 4650 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 4650 output -true - - --- !query 4651 -SELECT cast(1 as float) <= cast(1 as decimal(6, 0)) FROM t --- !query 4651 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 4651 output -true - - --- !query 4652 -SELECT cast(1 as float) <= cast(1 as decimal(10, 0)) FROM t --- !query 4652 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 4652 output -true - - --- !query 4653 -SELECT cast(1 as float) <= cast(1 as decimal(11, 0)) FROM t --- !query 4653 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 4653 output -true - - --- !query 4654 -SELECT cast(1 as float) <= cast(1 as decimal(20, 0)) FROM t --- !query 4654 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 4654 output -true - - --- !query 4655 -SELECT cast(1 as float) <= cast(1 as decimal(21, 0)) FROM t --- !query 4655 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 4655 output -true - - --- !query 4656 -SELECT cast(1 as float) <= cast(1 as decimal(38, 0)) FROM t --- !query 4656 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 4656 output -true - - --- !query 4657 -SELECT cast(1 as float) <= cast(1 as decimal(39, 0)) FROM t --- !query 4657 schema -struct<> --- !query 4657 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4658 -SELECT cast(1 as float) <= cast(1 as decimal(1, 1)) FROM t --- !query 4658 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 4658 output -NULL - - --- !query 4659 -SELECT cast(1 as float) <= cast(1 as decimal(2, 1)) FROM t --- !query 4659 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 4659 output -true - - --- !query 4660 -SELECT cast(1 as float) <= cast(1 as decimal(3, 1)) FROM t --- !query 4660 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 4660 output -true - - --- !query 4661 -SELECT cast(1 as float) <= cast(1 as decimal(4, 1)) FROM t --- !query 4661 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 4661 output -true - - --- !query 4662 -SELECT cast(1 as float) <= cast(1 as decimal(5, 1)) FROM t --- !query 4662 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 4662 output -true - - --- !query 4663 -SELECT cast(1 as float) <= cast(1 as decimal(6, 1)) FROM t --- !query 4663 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 4663 output -true - - --- !query 4664 -SELECT cast(1 as float) <= cast(1 as decimal(10, 1)) FROM t --- !query 4664 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 4664 output -true - - --- !query 4665 -SELECT cast(1 as float) <= cast(1 as decimal(11, 1)) FROM t --- !query 4665 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 4665 output -true - - --- !query 4666 -SELECT cast(1 as float) <= cast(1 as decimal(20, 1)) FROM t --- !query 4666 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 4666 output -true - - --- !query 4667 -SELECT cast(1 as float) <= cast(1 as decimal(21, 1)) FROM t --- !query 4667 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 4667 output -true - - --- !query 4668 -SELECT cast(1 as float) <= cast(1 as decimal(38, 1)) FROM t --- !query 4668 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 4668 output -true - - --- !query 4669 -SELECT cast(1 as float) <= cast(1 as decimal(39, 1)) FROM t --- !query 4669 schema -struct<> --- !query 4669 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4670 -SELECT cast(1 as double) <= cast(1 as decimal(1, 0)) FROM t --- !query 4670 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 4670 output -true - - --- !query 4671 -SELECT cast(1 as double) <= cast(1 as decimal(3, 0)) FROM t --- !query 4671 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 4671 output -true - - --- !query 4672 -SELECT cast(1 as double) <= cast(1 as decimal(4, 0)) FROM t --- !query 4672 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 4672 output -true - - --- !query 4673 -SELECT cast(1 as double) <= cast(1 as decimal(5, 0)) FROM t --- !query 4673 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 4673 output -true - - --- !query 4674 -SELECT cast(1 as double) <= cast(1 as decimal(6, 0)) FROM t --- !query 4674 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 4674 output -true - - --- !query 4675 -SELECT cast(1 as double) <= cast(1 as decimal(10, 0)) FROM t --- !query 4675 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 4675 output -true - - --- !query 4676 -SELECT cast(1 as double) <= cast(1 as decimal(11, 0)) FROM t --- !query 4676 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 4676 output -true - - --- !query 4677 -SELECT cast(1 as double) <= cast(1 as decimal(20, 0)) FROM t --- !query 4677 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 4677 output -true - - --- !query 4678 -SELECT cast(1 as double) <= cast(1 as decimal(21, 0)) FROM t --- !query 4678 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 4678 output -true - - --- !query 4679 -SELECT cast(1 as double) <= cast(1 as decimal(38, 0)) FROM t --- !query 4679 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 4679 output -true - - --- !query 4680 -SELECT cast(1 as double) <= cast(1 as decimal(39, 0)) FROM t --- !query 4680 schema -struct<> --- !query 4680 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4681 -SELECT cast(1 as double) <= cast(1 as decimal(1, 1)) FROM t --- !query 4681 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 4681 output -NULL - - --- !query 4682 -SELECT cast(1 as double) <= cast(1 as decimal(2, 1)) FROM t --- !query 4682 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 4682 output -true - - --- !query 4683 -SELECT cast(1 as double) <= cast(1 as decimal(3, 1)) FROM t --- !query 4683 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 4683 output -true - - --- !query 4684 -SELECT cast(1 as double) <= cast(1 as decimal(4, 1)) FROM t --- !query 4684 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 4684 output -true - - --- !query 4685 -SELECT cast(1 as double) <= cast(1 as decimal(5, 1)) FROM t --- !query 4685 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 4685 output -true - - --- !query 4686 -SELECT cast(1 as double) <= cast(1 as decimal(6, 1)) FROM t --- !query 4686 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 4686 output -true - - --- !query 4687 -SELECT cast(1 as double) <= cast(1 as decimal(10, 1)) FROM t --- !query 4687 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 4687 output -true - - --- !query 4688 -SELECT cast(1 as double) <= cast(1 as decimal(11, 1)) FROM t --- !query 4688 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 4688 output -true - - --- !query 4689 -SELECT cast(1 as double) <= cast(1 as decimal(20, 1)) FROM t --- !query 4689 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 4689 output -true - - --- !query 4690 -SELECT cast(1 as double) <= cast(1 as decimal(21, 1)) FROM t --- !query 4690 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 4690 output -true - - --- !query 4691 -SELECT cast(1 as double) <= cast(1 as decimal(38, 1)) FROM t --- !query 4691 schema -struct<(CAST(1 AS DOUBLE) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 4691 output -true - - --- !query 4692 -SELECT cast(1 as double) <= cast(1 as decimal(39, 1)) FROM t --- !query 4692 schema -struct<> --- !query 4692 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4693 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 0)) FROM t --- !query 4693 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 4693 output -true - - --- !query 4694 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 0)) FROM t --- !query 4694 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 4694 output -true - - --- !query 4695 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 0)) FROM t --- !query 4695 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 4695 output -true - - --- !query 4696 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 0)) FROM t --- !query 4696 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 4696 output -true - - --- !query 4697 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 0)) FROM t --- !query 4697 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 4697 output -true - - --- !query 4698 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4698 schema -struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> --- !query 4698 output -true - - --- !query 4699 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 0)) FROM t --- !query 4699 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 4699 output -true - - --- !query 4700 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 0)) FROM t --- !query 4700 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4700 output -true - - --- !query 4701 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 0)) FROM t --- !query 4701 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 4701 output -true - - --- !query 4702 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 0)) FROM t --- !query 4702 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 4702 output -true - - --- !query 4703 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 0)) FROM t --- !query 4703 schema -struct<> --- !query 4703 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4704 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(1, 1)) FROM t --- !query 4704 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 4704 output -NULL - - --- !query 4705 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(2, 1)) FROM t --- !query 4705 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 4705 output -true - - --- !query 4706 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 1)) FROM t --- !query 4706 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 4706 output -true - - --- !query 4707 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(4, 1)) FROM t --- !query 4707 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 4707 output -true - - --- !query 4708 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 1)) FROM t --- !query 4708 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 4708 output -true - - --- !query 4709 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(6, 1)) FROM t --- !query 4709 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 4709 output -true - - --- !query 4710 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 1)) FROM t --- !query 4710 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 4710 output -true - - --- !query 4711 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(11, 1)) FROM t --- !query 4711 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 4711 output -true - - --- !query 4712 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 1)) FROM t --- !query 4712 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 4712 output -true - - --- !query 4713 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(21, 1)) FROM t --- !query 4713 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 4713 output -true - - --- !query 4714 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(38, 1)) FROM t --- !query 4714 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 4714 output -true - - --- !query 4715 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 1)) FROM t --- !query 4715 schema -struct<> --- !query 4715 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4716 -SELECT cast('1' as binary) <= cast(1 as decimal(1, 0)) FROM t --- !query 4716 schema -struct<> --- !query 4716 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 4717 -SELECT cast('1' as binary) <= cast(1 as decimal(3, 0)) FROM t --- !query 4717 schema -struct<> --- !query 4717 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 4718 -SELECT cast('1' as binary) <= cast(1 as decimal(4, 0)) FROM t --- !query 4718 schema -struct<> --- !query 4718 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 4719 -SELECT cast('1' as binary) <= cast(1 as decimal(5, 0)) FROM t --- !query 4719 schema -struct<> --- !query 4719 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 4720 -SELECT cast('1' as binary) <= cast(1 as decimal(6, 0)) FROM t --- !query 4720 schema -struct<> --- !query 4720 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 4721 -SELECT cast('1' as binary) <= cast(1 as decimal(10, 0)) FROM t --- !query 4721 schema -struct<> --- !query 4721 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 4722 -SELECT cast('1' as binary) <= cast(1 as decimal(11, 0)) FROM t --- !query 4722 schema -struct<> --- !query 4722 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 4723 -SELECT cast('1' as binary) <= cast(1 as decimal(20, 0)) FROM t --- !query 4723 schema -struct<> --- !query 4723 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 4724 -SELECT cast('1' as binary) <= cast(1 as decimal(21, 0)) FROM t --- !query 4724 schema -struct<> --- !query 4724 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 4725 -SELECT cast('1' as binary) <= cast(1 as decimal(38, 0)) FROM t --- !query 4725 schema -struct<> --- !query 4725 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 4726 -SELECT cast('1' as binary) <= cast(1 as decimal(39, 0)) FROM t --- !query 4726 schema -struct<> --- !query 4726 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4727 -SELECT cast('1' as binary) <= cast(1 as decimal(1, 1)) FROM t --- !query 4727 schema -struct<> --- !query 4727 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 4728 -SELECT cast('1' as binary) <= cast(1 as decimal(2, 1)) FROM t --- !query 4728 schema -struct<> --- !query 4728 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 4729 -SELECT cast('1' as binary) <= cast(1 as decimal(3, 1)) FROM t --- !query 4729 schema -struct<> --- !query 4729 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 4730 -SELECT cast('1' as binary) <= cast(1 as decimal(4, 1)) FROM t --- !query 4730 schema -struct<> --- !query 4730 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 4731 -SELECT cast('1' as binary) <= cast(1 as decimal(5, 1)) FROM t --- !query 4731 schema -struct<> --- !query 4731 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 4732 -SELECT cast('1' as binary) <= cast(1 as decimal(6, 1)) FROM t --- !query 4732 schema -struct<> --- !query 4732 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 4733 -SELECT cast('1' as binary) <= cast(1 as decimal(10, 1)) FROM t --- !query 4733 schema -struct<> --- !query 4733 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 4734 -SELECT cast('1' as binary) <= cast(1 as decimal(11, 1)) FROM t --- !query 4734 schema -struct<> --- !query 4734 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 4735 -SELECT cast('1' as binary) <= cast(1 as decimal(20, 1)) FROM t --- !query 4735 schema -struct<> --- !query 4735 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 4736 -SELECT cast('1' as binary) <= cast(1 as decimal(21, 1)) FROM t --- !query 4736 schema -struct<> --- !query 4736 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 4737 -SELECT cast('1' as binary) <= cast(1 as decimal(38, 1)) FROM t --- !query 4737 schema -struct<> --- !query 4737 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) <= CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 4738 -SELECT cast('1' as binary) <= cast(1 as decimal(39, 1)) FROM t --- !query 4738 schema -struct<> --- !query 4738 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4739 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 0)) FROM t --- !query 4739 schema -struct<> --- !query 4739 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 4740 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 0)) FROM t --- !query 4740 schema -struct<> --- !query 4740 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 4741 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 0)) FROM t --- !query 4741 schema -struct<> --- !query 4741 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 4742 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 0)) FROM t --- !query 4742 schema -struct<> --- !query 4742 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 4743 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 0)) FROM t --- !query 4743 schema -struct<> --- !query 4743 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 4744 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 0)) FROM t --- !query 4744 schema -struct<> --- !query 4744 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 4745 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 0)) FROM t --- !query 4745 schema -struct<> --- !query 4745 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 4746 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 0)) FROM t --- !query 4746 schema -struct<> --- !query 4746 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 4747 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 0)) FROM t --- !query 4747 schema -struct<> --- !query 4747 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 4748 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 0)) FROM t --- !query 4748 schema -struct<> --- !query 4748 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 4749 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 0)) FROM t --- !query 4749 schema -struct<> --- !query 4749 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4750 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(1, 1)) FROM t --- !query 4750 schema -struct<> --- !query 4750 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 4751 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(2, 1)) FROM t --- !query 4751 schema -struct<> --- !query 4751 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 4752 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 1)) FROM t --- !query 4752 schema -struct<> --- !query 4752 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 4753 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(4, 1)) FROM t --- !query 4753 schema -struct<> --- !query 4753 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 4754 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 1)) FROM t --- !query 4754 schema -struct<> --- !query 4754 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 4755 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(6, 1)) FROM t --- !query 4755 schema -struct<> --- !query 4755 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 4756 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 1)) FROM t --- !query 4756 schema -struct<> --- !query 4756 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 4757 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(11, 1)) FROM t --- !query 4757 schema -struct<> --- !query 4757 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 4758 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 1)) FROM t --- !query 4758 schema -struct<> --- !query 4758 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 4759 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(21, 1)) FROM t --- !query 4759 schema -struct<> --- !query 4759 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 4760 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(38, 1)) FROM t --- !query 4760 schema -struct<> --- !query 4760 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) <= CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 4761 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 1)) FROM t --- !query 4761 schema -struct<> --- !query 4761 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4762 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 0)) FROM t --- !query 4762 schema -struct<> --- !query 4762 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 4763 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 0)) FROM t --- !query 4763 schema -struct<> --- !query 4763 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 4764 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 0)) FROM t --- !query 4764 schema -struct<> --- !query 4764 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 4765 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 0)) FROM t --- !query 4765 schema -struct<> --- !query 4765 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 4766 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 0)) FROM t --- !query 4766 schema -struct<> --- !query 4766 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 4767 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 0)) FROM t --- !query 4767 schema -struct<> --- !query 4767 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 4768 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 0)) FROM t --- !query 4768 schema -struct<> --- !query 4768 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 4769 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 0)) FROM t --- !query 4769 schema -struct<> --- !query 4769 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 4770 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 0)) FROM t --- !query 4770 schema -struct<> --- !query 4770 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 4771 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 0)) FROM t --- !query 4771 schema -struct<> --- !query 4771 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 4772 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 0)) FROM t --- !query 4772 schema -struct<> --- !query 4772 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 0)) FROM t - - --- !query 4773 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(1, 1)) FROM t --- !query 4773 schema -struct<> --- !query 4773 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 4774 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(2, 1)) FROM t --- !query 4774 schema -struct<> --- !query 4774 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 4775 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 1)) FROM t --- !query 4775 schema -struct<> --- !query 4775 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 4776 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(4, 1)) FROM t --- !query 4776 schema -struct<> --- !query 4776 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 4777 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 1)) FROM t --- !query 4777 schema -struct<> --- !query 4777 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 4778 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(6, 1)) FROM t --- !query 4778 schema -struct<> --- !query 4778 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 4779 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 1)) FROM t --- !query 4779 schema -struct<> --- !query 4779 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 4780 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(11, 1)) FROM t --- !query 4780 schema -struct<> --- !query 4780 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 4781 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 1)) FROM t --- !query 4781 schema -struct<> --- !query 4781 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 4782 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(21, 1)) FROM t --- !query 4782 schema -struct<> --- !query 4782 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 4783 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(38, 1)) FROM t --- !query 4783 schema -struct<> --- !query 4783 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) <= CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 4784 -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 1)) FROM t --- !query 4784 schema -struct<> --- !query 4784 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(39, 1)) FROM t - - --- !query 4785 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as tinyint) FROM t --- !query 4785 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> --- !query 4785 output -true - - --- !query 4786 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as tinyint) FROM t --- !query 4786 schema -struct<(CAST(1 AS DECIMAL(3,0)) <= CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> --- !query 4786 output -true - - --- !query 4787 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as tinyint) FROM t --- !query 4787 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> --- !query 4787 output -true - - --- !query 4788 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as tinyint) FROM t --- !query 4788 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 4788 output -true - - --- !query 4789 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as tinyint) FROM t --- !query 4789 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> --- !query 4789 output -true - - --- !query 4790 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as tinyint) FROM t --- !query 4790 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 4790 output -true - - --- !query 4791 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as tinyint) FROM t --- !query 4791 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> --- !query 4791 output -true - - --- !query 4792 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as tinyint) FROM t --- !query 4792 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 4792 output -true - - --- !query 4793 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as tinyint) FROM t --- !query 4793 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> --- !query 4793 output -true - - --- !query 4794 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as tinyint) FROM t --- !query 4794 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> --- !query 4794 output -true - - --- !query 4795 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as tinyint) FROM t --- !query 4795 schema -struct<> --- !query 4795 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as tinyint) FROM t - - --- !query 4796 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as tinyint) FROM t --- !query 4796 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4796 output -NULL - - --- !query 4797 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as tinyint) FROM t --- !query 4797 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4797 output -true - - --- !query 4798 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as tinyint) FROM t --- !query 4798 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4798 output -true - - --- !query 4799 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as tinyint) FROM t --- !query 4799 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 4799 output -true - - --- !query 4800 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as tinyint) FROM t --- !query 4800 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> --- !query 4800 output -true - - --- !query 4801 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as tinyint) FROM t --- !query 4801 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> --- !query 4801 output -true - - --- !query 4802 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as tinyint) FROM t --- !query 4802 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> --- !query 4802 output -true - - --- !query 4803 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as tinyint) FROM t --- !query 4803 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> --- !query 4803 output -true - - --- !query 4804 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as tinyint) FROM t --- !query 4804 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> --- !query 4804 output -true - - --- !query 4805 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as tinyint) FROM t --- !query 4805 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> --- !query 4805 output -true - - --- !query 4806 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as tinyint) FROM t --- !query 4806 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> --- !query 4806 output -true - - --- !query 4807 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as tinyint) FROM t --- !query 4807 schema -struct<> --- !query 4807 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as tinyint) FROM t - - --- !query 4808 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as smallint) FROM t --- !query 4808 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4808 output -true - - --- !query 4809 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as smallint) FROM t --- !query 4809 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4809 output -true - - --- !query 4810 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as smallint) FROM t --- !query 4810 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 4810 output -true - - --- !query 4811 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as smallint) FROM t --- !query 4811 schema -struct<(CAST(1 AS DECIMAL(5,0)) <= CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> --- !query 4811 output -true - - --- !query 4812 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as smallint) FROM t --- !query 4812 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> --- !query 4812 output -true - - --- !query 4813 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as smallint) FROM t --- !query 4813 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 4813 output -true - - --- !query 4814 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as smallint) FROM t --- !query 4814 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> --- !query 4814 output -true - - --- !query 4815 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as smallint) FROM t --- !query 4815 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 4815 output -true - - --- !query 4816 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as smallint) FROM t --- !query 4816 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> --- !query 4816 output -true - - --- !query 4817 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as smallint) FROM t --- !query 4817 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> --- !query 4817 output -true - - --- !query 4818 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as smallint) FROM t --- !query 4818 schema -struct<> --- !query 4818 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as smallint) FROM t - - --- !query 4819 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as smallint) FROM t --- !query 4819 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4819 output -NULL - - --- !query 4820 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as smallint) FROM t --- !query 4820 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4820 output -true - - --- !query 4821 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as smallint) FROM t --- !query 4821 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4821 output -true - - --- !query 4822 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as smallint) FROM t --- !query 4822 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4822 output -true - - --- !query 4823 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as smallint) FROM t --- !query 4823 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4823 output -true - - --- !query 4824 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as smallint) FROM t --- !query 4824 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 4824 output -true - - --- !query 4825 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as smallint) FROM t --- !query 4825 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> --- !query 4825 output -true - - --- !query 4826 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as smallint) FROM t --- !query 4826 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> --- !query 4826 output -true - - --- !query 4827 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as smallint) FROM t --- !query 4827 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> --- !query 4827 output -true - - --- !query 4828 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as smallint) FROM t --- !query 4828 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> --- !query 4828 output -true - - --- !query 4829 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as smallint) FROM t --- !query 4829 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> --- !query 4829 output -true - - --- !query 4830 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as smallint) FROM t --- !query 4830 schema -struct<> --- !query 4830 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as smallint) FROM t - - --- !query 4831 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as int) FROM t --- !query 4831 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4831 output -true - - --- !query 4832 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as int) FROM t --- !query 4832 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4832 output -true - - --- !query 4833 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as int) FROM t --- !query 4833 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4833 output -true - - --- !query 4834 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as int) FROM t --- !query 4834 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4834 output -true - - --- !query 4835 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as int) FROM t --- !query 4835 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4835 output -true - - --- !query 4836 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as int) FROM t --- !query 4836 schema -struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> --- !query 4836 output -true - - --- !query 4837 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as int) FROM t --- !query 4837 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 4837 output -true - - --- !query 4838 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as int) FROM t --- !query 4838 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 4838 output -true - - --- !query 4839 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as int) FROM t --- !query 4839 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 4839 output -true - - --- !query 4840 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as int) FROM t --- !query 4840 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 4840 output -true - - --- !query 4841 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as int) FROM t --- !query 4841 schema -struct<> --- !query 4841 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as int) FROM t - - --- !query 4842 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as int) FROM t --- !query 4842 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4842 output -NULL - - --- !query 4843 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as int) FROM t --- !query 4843 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4843 output -true - - --- !query 4844 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as int) FROM t --- !query 4844 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4844 output -true - - --- !query 4845 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as int) FROM t --- !query 4845 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4845 output -true - - --- !query 4846 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as int) FROM t --- !query 4846 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4846 output -true - - --- !query 4847 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as int) FROM t --- !query 4847 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4847 output -true - - --- !query 4848 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as int) FROM t --- !query 4848 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4848 output -true - - --- !query 4849 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as int) FROM t --- !query 4849 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4849 output -true - - --- !query 4850 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as int) FROM t --- !query 4850 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 4850 output -true - - --- !query 4851 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as int) FROM t --- !query 4851 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 4851 output -true - - --- !query 4852 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as int) FROM t --- !query 4852 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 4852 output -true - - --- !query 4853 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as int) FROM t --- !query 4853 schema -struct<> --- !query 4853 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as int) FROM t - - --- !query 4854 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as bigint) FROM t --- !query 4854 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4854 output -true - - --- !query 4855 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as bigint) FROM t --- !query 4855 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4855 output -true - - --- !query 4856 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as bigint) FROM t --- !query 4856 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4856 output -true - - --- !query 4857 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as bigint) FROM t --- !query 4857 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4857 output -true - - --- !query 4858 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as bigint) FROM t --- !query 4858 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4858 output -true - - --- !query 4859 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as bigint) FROM t --- !query 4859 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4859 output -true - - --- !query 4860 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as bigint) FROM t --- !query 4860 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 4860 output -true - - --- !query 4861 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as bigint) FROM t --- !query 4861 schema -struct<(CAST(1 AS DECIMAL(20,0)) <= CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> --- !query 4861 output -true - - --- !query 4862 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as bigint) FROM t --- !query 4862 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> --- !query 4862 output -true - - --- !query 4863 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as bigint) FROM t --- !query 4863 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> --- !query 4863 output -true - - --- !query 4864 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as bigint) FROM t --- !query 4864 schema -struct<> --- !query 4864 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as bigint) FROM t - - --- !query 4865 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as bigint) FROM t --- !query 4865 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4865 output -NULL - - --- !query 4866 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as bigint) FROM t --- !query 4866 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4866 output -true - - --- !query 4867 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as bigint) FROM t --- !query 4867 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4867 output -true - - --- !query 4868 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as bigint) FROM t --- !query 4868 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4868 output -true - - --- !query 4869 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as bigint) FROM t --- !query 4869 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4869 output -true - - --- !query 4870 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as bigint) FROM t --- !query 4870 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4870 output -true - - --- !query 4871 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as bigint) FROM t --- !query 4871 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4871 output -true - - --- !query 4872 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as bigint) FROM t --- !query 4872 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4872 output -true - - --- !query 4873 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as bigint) FROM t --- !query 4873 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4873 output -true - - --- !query 4874 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as bigint) FROM t --- !query 4874 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 4874 output -true - - --- !query 4875 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as bigint) FROM t --- !query 4875 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> --- !query 4875 output -true - - --- !query 4876 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as bigint) FROM t --- !query 4876 schema -struct<> --- !query 4876 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as bigint) FROM t - - --- !query 4877 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as float) FROM t --- !query 4877 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4877 output -true - - --- !query 4878 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as float) FROM t --- !query 4878 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4878 output -true - - --- !query 4879 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as float) FROM t --- !query 4879 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4879 output -true - - --- !query 4880 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as float) FROM t --- !query 4880 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4880 output -true - - --- !query 4881 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as float) FROM t --- !query 4881 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4881 output -true - - --- !query 4882 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as float) FROM t --- !query 4882 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4882 output -true - - --- !query 4883 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as float) FROM t --- !query 4883 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4883 output -true - - --- !query 4884 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as float) FROM t --- !query 4884 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4884 output -true - - --- !query 4885 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as float) FROM t --- !query 4885 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4885 output -true - - --- !query 4886 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as float) FROM t --- !query 4886 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4886 output -true - - --- !query 4887 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as float) FROM t --- !query 4887 schema -struct<> --- !query 4887 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as float) FROM t - - --- !query 4888 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as float) FROM t --- !query 4888 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4888 output -NULL - - --- !query 4889 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as float) FROM t --- !query 4889 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4889 output -true - - --- !query 4890 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as float) FROM t --- !query 4890 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4890 output -true - - --- !query 4891 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as float) FROM t --- !query 4891 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4891 output -true - - --- !query 4892 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as float) FROM t --- !query 4892 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4892 output -true - - --- !query 4893 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as float) FROM t --- !query 4893 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4893 output -true - - --- !query 4894 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as float) FROM t --- !query 4894 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4894 output -true - - --- !query 4895 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as float) FROM t --- !query 4895 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4895 output -true - - --- !query 4896 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as float) FROM t --- !query 4896 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4896 output -true - - --- !query 4897 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as float) FROM t --- !query 4897 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4897 output -true - - --- !query 4898 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as float) FROM t --- !query 4898 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 4898 output -true - - --- !query 4899 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as float) FROM t --- !query 4899 schema -struct<> --- !query 4899 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as float) FROM t - - --- !query 4900 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as double) FROM t --- !query 4900 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4900 output -true - - --- !query 4901 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as double) FROM t --- !query 4901 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4901 output -true - - --- !query 4902 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as double) FROM t --- !query 4902 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4902 output -true - - --- !query 4903 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as double) FROM t --- !query 4903 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4903 output -true - - --- !query 4904 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as double) FROM t --- !query 4904 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4904 output -true - - --- !query 4905 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as double) FROM t --- !query 4905 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4905 output -true - - --- !query 4906 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as double) FROM t --- !query 4906 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4906 output -true - - --- !query 4907 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as double) FROM t --- !query 4907 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4907 output -true - - --- !query 4908 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as double) FROM t --- !query 4908 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4908 output -true - - --- !query 4909 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as double) FROM t --- !query 4909 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4909 output -true - - --- !query 4910 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as double) FROM t --- !query 4910 schema -struct<> --- !query 4910 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as double) FROM t - - --- !query 4911 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as double) FROM t --- !query 4911 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4911 output -NULL - - --- !query 4912 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as double) FROM t --- !query 4912 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4912 output -true - - --- !query 4913 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as double) FROM t --- !query 4913 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4913 output -true - - --- !query 4914 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as double) FROM t --- !query 4914 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4914 output -true - - --- !query 4915 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as double) FROM t --- !query 4915 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4915 output -true - - --- !query 4916 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as double) FROM t --- !query 4916 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4916 output -true - - --- !query 4917 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as double) FROM t --- !query 4917 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4917 output -true - - --- !query 4918 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as double) FROM t --- !query 4918 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4918 output -true - - --- !query 4919 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as double) FROM t --- !query 4919 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4919 output -true - - --- !query 4920 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as double) FROM t --- !query 4920 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4920 output -true - - --- !query 4921 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as double) FROM t --- !query 4921 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <= CAST(1 AS DOUBLE)):boolean> --- !query 4921 output -true - - --- !query 4922 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as double) FROM t --- !query 4922 schema -struct<> --- !query 4922 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as double) FROM t - - --- !query 4923 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4923 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4923 output -true - - --- !query 4924 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4924 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4924 output -true - - --- !query 4925 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4925 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4925 output -true - - --- !query 4926 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4926 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4926 output -true - - --- !query 4927 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4927 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 4927 output -true - - --- !query 4928 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4928 schema -struct<(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS DECIMAL(10,0))):boolean> --- !query 4928 output -true - - --- !query 4929 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4929 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 4929 output -true - - --- !query 4930 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4930 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 4930 output -true - - --- !query 4931 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4931 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 4931 output -true - - --- !query 4932 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4932 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 4932 output -true - - --- !query 4933 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4933 schema -struct<> --- !query 4933 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as decimal(10, 0)) FROM t - - --- !query 4934 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4934 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4934 output -NULL - - --- !query 4935 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4935 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4935 output -true - - --- !query 4936 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4936 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4936 output -true - - --- !query 4937 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4937 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4937 output -true - - --- !query 4938 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4938 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4938 output -true - - --- !query 4939 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4939 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4939 output -true - - --- !query 4940 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4940 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4940 output -true - - --- !query 4941 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4941 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 4941 output -true - - --- !query 4942 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4942 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 4942 output -true - - --- !query 4943 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4943 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 4943 output -true - - --- !query 4944 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4944 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) <= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 4944 output -true - - --- !query 4945 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as decimal(10, 0)) FROM t --- !query 4945 schema -struct<> --- !query 4945 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as decimal(10, 0)) FROM t - - --- !query 4946 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as string) FROM t --- !query 4946 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4946 output -true - - --- !query 4947 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as string) FROM t --- !query 4947 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4947 output -true - - --- !query 4948 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as string) FROM t --- !query 4948 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4948 output -true - - --- !query 4949 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as string) FROM t --- !query 4949 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4949 output -true - - --- !query 4950 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as string) FROM t --- !query 4950 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4950 output -true - - --- !query 4951 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as string) FROM t --- !query 4951 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4951 output -true - - --- !query 4952 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as string) FROM t --- !query 4952 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4952 output -true - - --- !query 4953 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as string) FROM t --- !query 4953 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4953 output -true - - --- !query 4954 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as string) FROM t --- !query 4954 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4954 output -true - - --- !query 4955 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as string) FROM t --- !query 4955 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4955 output -true - - --- !query 4956 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as string) FROM t --- !query 4956 schema -struct<> --- !query 4956 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as string) FROM t - - --- !query 4957 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as string) FROM t --- !query 4957 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4957 output -NULL - - --- !query 4958 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as string) FROM t --- !query 4958 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4958 output -true - - --- !query 4959 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as string) FROM t --- !query 4959 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4959 output -true - - --- !query 4960 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as string) FROM t --- !query 4960 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4960 output -true - - --- !query 4961 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as string) FROM t --- !query 4961 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4961 output -true - - --- !query 4962 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as string) FROM t --- !query 4962 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4962 output -true - - --- !query 4963 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as string) FROM t --- !query 4963 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4963 output -true - - --- !query 4964 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as string) FROM t --- !query 4964 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4964 output -true - - --- !query 4965 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as string) FROM t --- !query 4965 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4965 output -true - - --- !query 4966 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as string) FROM t --- !query 4966 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4966 output -true - - --- !query 4967 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as string) FROM t --- !query 4967 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) <= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 4967 output -true - - --- !query 4968 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as string) FROM t --- !query 4968 schema -struct<> --- !query 4968 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as string) FROM t - - --- !query 4969 -SELECT cast(1 as decimal(1, 0)) <= cast('1' as binary) FROM t --- !query 4969 schema -struct<> --- !query 4969 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 4970 -SELECT cast(1 as decimal(3, 0)) <= cast('1' as binary) FROM t --- !query 4970 schema -struct<> --- !query 4970 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 4971 -SELECT cast(1 as decimal(4, 0)) <= cast('1' as binary) FROM t --- !query 4971 schema -struct<> --- !query 4971 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 4972 -SELECT cast(1 as decimal(5, 0)) <= cast('1' as binary) FROM t --- !query 4972 schema -struct<> --- !query 4972 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 4973 -SELECT cast(1 as decimal(6, 0)) <= cast('1' as binary) FROM t --- !query 4973 schema -struct<> --- !query 4973 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 4974 -SELECT cast(1 as decimal(10, 0)) <= cast('1' as binary) FROM t --- !query 4974 schema -struct<> --- !query 4974 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 4975 -SELECT cast(1 as decimal(11, 0)) <= cast('1' as binary) FROM t --- !query 4975 schema -struct<> --- !query 4975 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 4976 -SELECT cast(1 as decimal(20, 0)) <= cast('1' as binary) FROM t --- !query 4976 schema -struct<> --- !query 4976 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 4977 -SELECT cast(1 as decimal(21, 0)) <= cast('1' as binary) FROM t --- !query 4977 schema -struct<> --- !query 4977 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 4978 -SELECT cast(1 as decimal(38, 0)) <= cast('1' as binary) FROM t --- !query 4978 schema -struct<> --- !query 4978 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 4979 -SELECT cast(1 as decimal(39, 0)) <= cast('1' as binary) FROM t --- !query 4979 schema -struct<> --- !query 4979 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast('1' as binary) FROM t - - --- !query 4980 -SELECT cast(1 as decimal(1, 1)) <= cast('1' as binary) FROM t --- !query 4980 schema -struct<> --- !query 4980 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 4981 -SELECT cast(1 as decimal(2, 1)) <= cast('1' as binary) FROM t --- !query 4981 schema -struct<> --- !query 4981 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 4982 -SELECT cast(1 as decimal(3, 1)) <= cast('1' as binary) FROM t --- !query 4982 schema -struct<> --- !query 4982 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 4983 -SELECT cast(1 as decimal(4, 1)) <= cast('1' as binary) FROM t --- !query 4983 schema -struct<> --- !query 4983 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 4984 -SELECT cast(1 as decimal(5, 1)) <= cast('1' as binary) FROM t --- !query 4984 schema -struct<> --- !query 4984 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 4985 -SELECT cast(1 as decimal(6, 1)) <= cast('1' as binary) FROM t --- !query 4985 schema -struct<> --- !query 4985 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 4986 -SELECT cast(1 as decimal(10, 1)) <= cast('1' as binary) FROM t --- !query 4986 schema -struct<> --- !query 4986 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 4987 -SELECT cast(1 as decimal(11, 1)) <= cast('1' as binary) FROM t --- !query 4987 schema -struct<> --- !query 4987 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 4988 -SELECT cast(1 as decimal(20, 1)) <= cast('1' as binary) FROM t --- !query 4988 schema -struct<> --- !query 4988 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 4989 -SELECT cast(1 as decimal(21, 1)) <= cast('1' as binary) FROM t --- !query 4989 schema -struct<> --- !query 4989 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 4990 -SELECT cast(1 as decimal(38, 1)) <= cast('1' as binary) FROM t --- !query 4990 schema -struct<> --- !query 4990 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 4991 -SELECT cast(1 as decimal(39, 1)) <= cast('1' as binary) FROM t --- !query 4991 schema -struct<> --- !query 4991 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast('1' as binary) FROM t - - --- !query 4992 -SELECT cast(1 as decimal(1, 0)) <= cast(1 as boolean) FROM t --- !query 4992 schema -struct<> --- !query 4992 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 4993 -SELECT cast(1 as decimal(3, 0)) <= cast(1 as boolean) FROM t --- !query 4993 schema -struct<> --- !query 4993 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 4994 -SELECT cast(1 as decimal(4, 0)) <= cast(1 as boolean) FROM t --- !query 4994 schema -struct<> --- !query 4994 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 4995 -SELECT cast(1 as decimal(5, 0)) <= cast(1 as boolean) FROM t --- !query 4995 schema -struct<> --- !query 4995 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 4996 -SELECT cast(1 as decimal(6, 0)) <= cast(1 as boolean) FROM t --- !query 4996 schema -struct<> --- !query 4996 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 4997 -SELECT cast(1 as decimal(10, 0)) <= cast(1 as boolean) FROM t --- !query 4997 schema -struct<> --- !query 4997 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 4998 -SELECT cast(1 as decimal(11, 0)) <= cast(1 as boolean) FROM t --- !query 4998 schema -struct<> --- !query 4998 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 4999 -SELECT cast(1 as decimal(20, 0)) <= cast(1 as boolean) FROM t --- !query 4999 schema -struct<> --- !query 4999 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 5000 -SELECT cast(1 as decimal(21, 0)) <= cast(1 as boolean) FROM t --- !query 5000 schema -struct<> --- !query 5000 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 5001 -SELECT cast(1 as decimal(38, 0)) <= cast(1 as boolean) FROM t --- !query 5001 schema -struct<> --- !query 5001 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 5002 -SELECT cast(1 as decimal(39, 0)) <= cast(1 as boolean) FROM t --- !query 5002 schema -struct<> --- !query 5002 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast(1 as boolean) FROM t - - --- !query 5003 -SELECT cast(1 as decimal(1, 1)) <= cast(1 as boolean) FROM t --- !query 5003 schema -struct<> --- !query 5003 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 5004 -SELECT cast(1 as decimal(2, 1)) <= cast(1 as boolean) FROM t --- !query 5004 schema -struct<> --- !query 5004 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 5005 -SELECT cast(1 as decimal(3, 1)) <= cast(1 as boolean) FROM t --- !query 5005 schema -struct<> --- !query 5005 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 5006 -SELECT cast(1 as decimal(4, 1)) <= cast(1 as boolean) FROM t --- !query 5006 schema -struct<> --- !query 5006 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 5007 -SELECT cast(1 as decimal(5, 1)) <= cast(1 as boolean) FROM t --- !query 5007 schema -struct<> --- !query 5007 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 5008 -SELECT cast(1 as decimal(6, 1)) <= cast(1 as boolean) FROM t --- !query 5008 schema -struct<> --- !query 5008 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 5009 -SELECT cast(1 as decimal(10, 1)) <= cast(1 as boolean) FROM t --- !query 5009 schema -struct<> --- !query 5009 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 5010 -SELECT cast(1 as decimal(11, 1)) <= cast(1 as boolean) FROM t --- !query 5010 schema -struct<> --- !query 5010 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 5011 -SELECT cast(1 as decimal(20, 1)) <= cast(1 as boolean) FROM t --- !query 5011 schema -struct<> --- !query 5011 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 5012 -SELECT cast(1 as decimal(21, 1)) <= cast(1 as boolean) FROM t --- !query 5012 schema -struct<> --- !query 5012 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 5013 -SELECT cast(1 as decimal(38, 1)) <= cast(1 as boolean) FROM t --- !query 5013 schema -struct<> --- !query 5013 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 5014 -SELECT cast(1 as decimal(39, 1)) <= cast(1 as boolean) FROM t --- !query 5014 schema -struct<> --- !query 5014 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast(1 as boolean) FROM t - - --- !query 5015 -SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5015 schema -struct<> --- !query 5015 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 5016 -SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5016 schema -struct<> --- !query 5016 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 5017 -SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5017 schema -struct<> --- !query 5017 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 5018 -SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5018 schema -struct<> --- !query 5018 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 5019 -SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5019 schema -struct<> --- !query 5019 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 5020 -SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5020 schema -struct<> --- !query 5020 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 5021 -SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5021 schema -struct<> --- !query 5021 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 5022 -SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5022 schema -struct<> --- !query 5022 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 5023 -SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5023 schema -struct<> --- !query 5023 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 5024 -SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5024 schema -struct<> --- !query 5024 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 5025 -SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5025 schema -struct<> --- !query 5025 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 5026 -SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5026 schema -struct<> --- !query 5026 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 5027 -SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5027 schema -struct<> --- !query 5027 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 5028 -SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5028 schema -struct<> --- !query 5028 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 5029 -SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5029 schema -struct<> --- !query 5029 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 5030 -SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5030 schema -struct<> --- !query 5030 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 5031 -SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5031 schema -struct<> --- !query 5031 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 5032 -SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5032 schema -struct<> --- !query 5032 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 5033 -SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5033 schema -struct<> --- !query 5033 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 5034 -SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5034 schema -struct<> --- !query 5034 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 5035 -SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5035 schema -struct<> --- !query 5035 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 5036 -SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5036 schema -struct<> --- !query 5036 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 5037 -SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5037 schema -struct<> --- !query 5037 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 5038 -SELECT cast(1 as decimal(1, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5038 schema -struct<> --- !query 5038 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 5039 -SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5039 schema -struct<> --- !query 5039 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 5040 -SELECT cast(1 as decimal(4, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5040 schema -struct<> --- !query 5040 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 5041 -SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5041 schema -struct<> --- !query 5041 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 5042 -SELECT cast(1 as decimal(6, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5042 schema -struct<> --- !query 5042 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 5043 -SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5043 schema -struct<> --- !query 5043 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 5044 -SELECT cast(1 as decimal(11, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5044 schema -struct<> --- !query 5044 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 5045 -SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5045 schema -struct<> --- !query 5045 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 5046 -SELECT cast(1 as decimal(21, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5046 schema -struct<> --- !query 5046 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 5047 -SELECT cast(1 as decimal(38, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5047 schema -struct<> --- !query 5047 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 5048 -SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5048 schema -struct<> --- !query 5048 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 5049 -SELECT cast(1 as decimal(1, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5049 schema -struct<> --- !query 5049 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 5050 -SELECT cast(1 as decimal(2, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5050 schema -struct<> --- !query 5050 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 5051 -SELECT cast(1 as decimal(3, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5051 schema -struct<> --- !query 5051 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 5052 -SELECT cast(1 as decimal(4, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5052 schema -struct<> --- !query 5052 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 5053 -SELECT cast(1 as decimal(5, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5053 schema -struct<> --- !query 5053 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 5054 -SELECT cast(1 as decimal(6, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5054 schema -struct<> --- !query 5054 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 5055 -SELECT cast(1 as decimal(10, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5055 schema -struct<> --- !query 5055 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 5056 -SELECT cast(1 as decimal(11, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5056 schema -struct<> --- !query 5056 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 5057 -SELECT cast(1 as decimal(20, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5057 schema -struct<> --- !query 5057 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 5058 -SELECT cast(1 as decimal(21, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5058 schema -struct<> --- !query 5058 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 5059 -SELECT cast(1 as decimal(38, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5059 schema -struct<> --- !query 5059 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) <= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 5060 -SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t --- !query 5060 schema -struct<> --- !query 5060 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <= cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 5061 -SELECT cast(1 as tinyint) > cast(1 as decimal(1, 0)) FROM t --- !query 5061 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> --- !query 5061 output -false - - --- !query 5062 -SELECT cast(1 as tinyint) > cast(1 as decimal(3, 0)) FROM t --- !query 5062 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) > CAST(1 AS DECIMAL(3,0))):boolean> --- !query 5062 output -false - - --- !query 5063 -SELECT cast(1 as tinyint) > cast(1 as decimal(4, 0)) FROM t --- !query 5063 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> --- !query 5063 output -false - - --- !query 5064 -SELECT cast(1 as tinyint) > cast(1 as decimal(5, 0)) FROM t --- !query 5064 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5064 output -false - - --- !query 5065 -SELECT cast(1 as tinyint) > cast(1 as decimal(6, 0)) FROM t --- !query 5065 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 5065 output -false - - --- !query 5066 -SELECT cast(1 as tinyint) > cast(1 as decimal(10, 0)) FROM t --- !query 5066 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5066 output -false - - --- !query 5067 -SELECT cast(1 as tinyint) > cast(1 as decimal(11, 0)) FROM t --- !query 5067 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5067 output -false - - --- !query 5068 -SELECT cast(1 as tinyint) > cast(1 as decimal(20, 0)) FROM t --- !query 5068 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5068 output -false - - --- !query 5069 -SELECT cast(1 as tinyint) > cast(1 as decimal(21, 0)) FROM t --- !query 5069 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5069 output -false - - --- !query 5070 -SELECT cast(1 as tinyint) > cast(1 as decimal(38, 0)) FROM t --- !query 5070 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5070 output -false - - --- !query 5071 -SELECT cast(1 as tinyint) > cast(1 as decimal(39, 0)) FROM t --- !query 5071 schema -struct<> --- !query 5071 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5072 -SELECT cast(1 as tinyint) > cast(1 as decimal(1, 1)) FROM t --- !query 5072 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> --- !query 5072 output -NULL - - --- !query 5073 -SELECT cast(1 as tinyint) > cast(1 as decimal(2, 1)) FROM t --- !query 5073 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> --- !query 5073 output -false - - --- !query 5074 -SELECT cast(1 as tinyint) > cast(1 as decimal(3, 1)) FROM t --- !query 5074 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> --- !query 5074 output -false - - --- !query 5075 -SELECT cast(1 as tinyint) > cast(1 as decimal(4, 1)) FROM t --- !query 5075 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> --- !query 5075 output -false - - --- !query 5076 -SELECT cast(1 as tinyint) > cast(1 as decimal(5, 1)) FROM t --- !query 5076 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> --- !query 5076 output -false - - --- !query 5077 -SELECT cast(1 as tinyint) > cast(1 as decimal(6, 1)) FROM t --- !query 5077 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 5077 output -false - - --- !query 5078 -SELECT cast(1 as tinyint) > cast(1 as decimal(10, 1)) FROM t --- !query 5078 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 5078 output -false - - --- !query 5079 -SELECT cast(1 as tinyint) > cast(1 as decimal(11, 1)) FROM t --- !query 5079 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5079 output -false - - --- !query 5080 -SELECT cast(1 as tinyint) > cast(1 as decimal(20, 1)) FROM t --- !query 5080 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5080 output -false - - --- !query 5081 -SELECT cast(1 as tinyint) > cast(1 as decimal(21, 1)) FROM t --- !query 5081 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5081 output -false - - --- !query 5082 -SELECT cast(1 as tinyint) > cast(1 as decimal(38, 1)) FROM t --- !query 5082 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5082 output -false - - --- !query 5083 -SELECT cast(1 as tinyint) > cast(1 as decimal(39, 1)) FROM t --- !query 5083 schema -struct<> --- !query 5083 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5084 -SELECT cast(1 as smallint) > cast(1 as decimal(1, 0)) FROM t --- !query 5084 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> --- !query 5084 output -false - - --- !query 5085 -SELECT cast(1 as smallint) > cast(1 as decimal(3, 0)) FROM t --- !query 5085 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 5085 output -false - - --- !query 5086 -SELECT cast(1 as smallint) > cast(1 as decimal(4, 0)) FROM t --- !query 5086 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> --- !query 5086 output -false - - --- !query 5087 -SELECT cast(1 as smallint) > cast(1 as decimal(5, 0)) FROM t --- !query 5087 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) > CAST(1 AS DECIMAL(5,0))):boolean> --- !query 5087 output -false - - --- !query 5088 -SELECT cast(1 as smallint) > cast(1 as decimal(6, 0)) FROM t --- !query 5088 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 5088 output -false - - --- !query 5089 -SELECT cast(1 as smallint) > cast(1 as decimal(10, 0)) FROM t --- !query 5089 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5089 output -false - - --- !query 5090 -SELECT cast(1 as smallint) > cast(1 as decimal(11, 0)) FROM t --- !query 5090 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5090 output -false - - --- !query 5091 -SELECT cast(1 as smallint) > cast(1 as decimal(20, 0)) FROM t --- !query 5091 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5091 output -false - - --- !query 5092 -SELECT cast(1 as smallint) > cast(1 as decimal(21, 0)) FROM t --- !query 5092 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5092 output -false - - --- !query 5093 -SELECT cast(1 as smallint) > cast(1 as decimal(38, 0)) FROM t --- !query 5093 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5093 output -false - - --- !query 5094 -SELECT cast(1 as smallint) > cast(1 as decimal(39, 0)) FROM t --- !query 5094 schema -struct<> --- !query 5094 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5095 -SELECT cast(1 as smallint) > cast(1 as decimal(1, 1)) FROM t --- !query 5095 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> --- !query 5095 output -NULL - - --- !query 5096 -SELECT cast(1 as smallint) > cast(1 as decimal(2, 1)) FROM t --- !query 5096 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> --- !query 5096 output -false - - --- !query 5097 -SELECT cast(1 as smallint) > cast(1 as decimal(3, 1)) FROM t --- !query 5097 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> --- !query 5097 output -false - - --- !query 5098 -SELECT cast(1 as smallint) > cast(1 as decimal(4, 1)) FROM t --- !query 5098 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> --- !query 5098 output -false - - --- !query 5099 -SELECT cast(1 as smallint) > cast(1 as decimal(5, 1)) FROM t --- !query 5099 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> --- !query 5099 output -false - - --- !query 5100 -SELECT cast(1 as smallint) > cast(1 as decimal(6, 1)) FROM t --- !query 5100 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 5100 output -false - - --- !query 5101 -SELECT cast(1 as smallint) > cast(1 as decimal(10, 1)) FROM t --- !query 5101 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 5101 output -false - - --- !query 5102 -SELECT cast(1 as smallint) > cast(1 as decimal(11, 1)) FROM t --- !query 5102 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5102 output -false - - --- !query 5103 -SELECT cast(1 as smallint) > cast(1 as decimal(20, 1)) FROM t --- !query 5103 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5103 output -false - - --- !query 5104 -SELECT cast(1 as smallint) > cast(1 as decimal(21, 1)) FROM t --- !query 5104 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5104 output -false - - --- !query 5105 -SELECT cast(1 as smallint) > cast(1 as decimal(38, 1)) FROM t --- !query 5105 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5105 output -false - - --- !query 5106 -SELECT cast(1 as smallint) > cast(1 as decimal(39, 1)) FROM t --- !query 5106 schema -struct<> --- !query 5106 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5107 -SELECT cast(1 as int) > cast(1 as decimal(1, 0)) FROM t --- !query 5107 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 5107 output -false - - --- !query 5108 -SELECT cast(1 as int) > cast(1 as decimal(3, 0)) FROM t --- !query 5108 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 5108 output -false - - --- !query 5109 -SELECT cast(1 as int) > cast(1 as decimal(4, 0)) FROM t --- !query 5109 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 5109 output -false - - --- !query 5110 -SELECT cast(1 as int) > cast(1 as decimal(5, 0)) FROM t --- !query 5110 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 5110 output -false - - --- !query 5111 -SELECT cast(1 as int) > cast(1 as decimal(6, 0)) FROM t --- !query 5111 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 5111 output -false - - --- !query 5112 -SELECT cast(1 as int) > cast(1 as decimal(10, 0)) FROM t --- !query 5112 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> --- !query 5112 output -false - - --- !query 5113 -SELECT cast(1 as int) > cast(1 as decimal(11, 0)) FROM t --- !query 5113 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5113 output -false - - --- !query 5114 -SELECT cast(1 as int) > cast(1 as decimal(20, 0)) FROM t --- !query 5114 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5114 output -false - - --- !query 5115 -SELECT cast(1 as int) > cast(1 as decimal(21, 0)) FROM t --- !query 5115 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5115 output -false - - --- !query 5116 -SELECT cast(1 as int) > cast(1 as decimal(38, 0)) FROM t --- !query 5116 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5116 output -false - - --- !query 5117 -SELECT cast(1 as int) > cast(1 as decimal(39, 0)) FROM t --- !query 5117 schema -struct<> --- !query 5117 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5118 -SELECT cast(1 as int) > cast(1 as decimal(1, 1)) FROM t --- !query 5118 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 5118 output -NULL - - --- !query 5119 -SELECT cast(1 as int) > cast(1 as decimal(2, 1)) FROM t --- !query 5119 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 5119 output -false - - --- !query 5120 -SELECT cast(1 as int) > cast(1 as decimal(3, 1)) FROM t --- !query 5120 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 5120 output -false - - --- !query 5121 -SELECT cast(1 as int) > cast(1 as decimal(4, 1)) FROM t --- !query 5121 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 5121 output -false - - --- !query 5122 -SELECT cast(1 as int) > cast(1 as decimal(5, 1)) FROM t --- !query 5122 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 5122 output -false - - --- !query 5123 -SELECT cast(1 as int) > cast(1 as decimal(6, 1)) FROM t --- !query 5123 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 5123 output -false - - --- !query 5124 -SELECT cast(1 as int) > cast(1 as decimal(10, 1)) FROM t --- !query 5124 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 5124 output -false - - --- !query 5125 -SELECT cast(1 as int) > cast(1 as decimal(11, 1)) FROM t --- !query 5125 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5125 output -false - - --- !query 5126 -SELECT cast(1 as int) > cast(1 as decimal(20, 1)) FROM t --- !query 5126 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5126 output -false - - --- !query 5127 -SELECT cast(1 as int) > cast(1 as decimal(21, 1)) FROM t --- !query 5127 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5127 output -false - - --- !query 5128 -SELECT cast(1 as int) > cast(1 as decimal(38, 1)) FROM t --- !query 5128 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5128 output -false - - --- !query 5129 -SELECT cast(1 as int) > cast(1 as decimal(39, 1)) FROM t --- !query 5129 schema -struct<> --- !query 5129 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5130 -SELECT cast(1 as bigint) > cast(1 as decimal(1, 0)) FROM t --- !query 5130 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> --- !query 5130 output -false - - --- !query 5131 -SELECT cast(1 as bigint) > cast(1 as decimal(3, 0)) FROM t --- !query 5131 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 5131 output -false - - --- !query 5132 -SELECT cast(1 as bigint) > cast(1 as decimal(4, 0)) FROM t --- !query 5132 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> --- !query 5132 output -false - - --- !query 5133 -SELECT cast(1 as bigint) > cast(1 as decimal(5, 0)) FROM t --- !query 5133 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 5133 output -false - - --- !query 5134 -SELECT cast(1 as bigint) > cast(1 as decimal(6, 0)) FROM t --- !query 5134 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> --- !query 5134 output -false - - --- !query 5135 -SELECT cast(1 as bigint) > cast(1 as decimal(10, 0)) FROM t --- !query 5135 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 5135 output -false - - --- !query 5136 -SELECT cast(1 as bigint) > cast(1 as decimal(11, 0)) FROM t --- !query 5136 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> --- !query 5136 output -false - - --- !query 5137 -SELECT cast(1 as bigint) > cast(1 as decimal(20, 0)) FROM t --- !query 5137 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) > CAST(1 AS DECIMAL(20,0))):boolean> --- !query 5137 output -false - - --- !query 5138 -SELECT cast(1 as bigint) > cast(1 as decimal(21, 0)) FROM t --- !query 5138 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5138 output -false - - --- !query 5139 -SELECT cast(1 as bigint) > cast(1 as decimal(38, 0)) FROM t --- !query 5139 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5139 output -false - - --- !query 5140 -SELECT cast(1 as bigint) > cast(1 as decimal(39, 0)) FROM t --- !query 5140 schema -struct<> --- !query 5140 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5141 -SELECT cast(1 as bigint) > cast(1 as decimal(1, 1)) FROM t --- !query 5141 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> --- !query 5141 output -NULL - - --- !query 5142 -SELECT cast(1 as bigint) > cast(1 as decimal(2, 1)) FROM t --- !query 5142 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> --- !query 5142 output -false - - --- !query 5143 -SELECT cast(1 as bigint) > cast(1 as decimal(3, 1)) FROM t --- !query 5143 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> --- !query 5143 output -false - - --- !query 5144 -SELECT cast(1 as bigint) > cast(1 as decimal(4, 1)) FROM t --- !query 5144 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> --- !query 5144 output -false - - --- !query 5145 -SELECT cast(1 as bigint) > cast(1 as decimal(5, 1)) FROM t --- !query 5145 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> --- !query 5145 output -false - - --- !query 5146 -SELECT cast(1 as bigint) > cast(1 as decimal(6, 1)) FROM t --- !query 5146 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> --- !query 5146 output -false - - --- !query 5147 -SELECT cast(1 as bigint) > cast(1 as decimal(10, 1)) FROM t --- !query 5147 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> --- !query 5147 output -false - - --- !query 5148 -SELECT cast(1 as bigint) > cast(1 as decimal(11, 1)) FROM t --- !query 5148 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> --- !query 5148 output -false - - --- !query 5149 -SELECT cast(1 as bigint) > cast(1 as decimal(20, 1)) FROM t --- !query 5149 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> --- !query 5149 output -false - - --- !query 5150 -SELECT cast(1 as bigint) > cast(1 as decimal(21, 1)) FROM t --- !query 5150 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5150 output -false - - --- !query 5151 -SELECT cast(1 as bigint) > cast(1 as decimal(38, 1)) FROM t --- !query 5151 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5151 output -false - - --- !query 5152 -SELECT cast(1 as bigint) > cast(1 as decimal(39, 1)) FROM t --- !query 5152 schema -struct<> --- !query 5152 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5153 -SELECT cast(1 as float) > cast(1 as decimal(1, 0)) FROM t --- !query 5153 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 5153 output -false - - --- !query 5154 -SELECT cast(1 as float) > cast(1 as decimal(3, 0)) FROM t --- !query 5154 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 5154 output -false - - --- !query 5155 -SELECT cast(1 as float) > cast(1 as decimal(4, 0)) FROM t --- !query 5155 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 5155 output -false - - --- !query 5156 -SELECT cast(1 as float) > cast(1 as decimal(5, 0)) FROM t --- !query 5156 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 5156 output -false - - --- !query 5157 -SELECT cast(1 as float) > cast(1 as decimal(6, 0)) FROM t --- !query 5157 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 5157 output -false - - --- !query 5158 -SELECT cast(1 as float) > cast(1 as decimal(10, 0)) FROM t --- !query 5158 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 5158 output -false - - --- !query 5159 -SELECT cast(1 as float) > cast(1 as decimal(11, 0)) FROM t --- !query 5159 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 5159 output -false - - --- !query 5160 -SELECT cast(1 as float) > cast(1 as decimal(20, 0)) FROM t --- !query 5160 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 5160 output -false - - --- !query 5161 -SELECT cast(1 as float) > cast(1 as decimal(21, 0)) FROM t --- !query 5161 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 5161 output -false - - --- !query 5162 -SELECT cast(1 as float) > cast(1 as decimal(38, 0)) FROM t --- !query 5162 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 5162 output -false - - --- !query 5163 -SELECT cast(1 as float) > cast(1 as decimal(39, 0)) FROM t --- !query 5163 schema -struct<> --- !query 5163 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5164 -SELECT cast(1 as float) > cast(1 as decimal(1, 1)) FROM t --- !query 5164 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 5164 output -NULL - - --- !query 5165 -SELECT cast(1 as float) > cast(1 as decimal(2, 1)) FROM t --- !query 5165 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 5165 output -false - - --- !query 5166 -SELECT cast(1 as float) > cast(1 as decimal(3, 1)) FROM t --- !query 5166 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 5166 output -false - - --- !query 5167 -SELECT cast(1 as float) > cast(1 as decimal(4, 1)) FROM t --- !query 5167 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 5167 output -false - - --- !query 5168 -SELECT cast(1 as float) > cast(1 as decimal(5, 1)) FROM t --- !query 5168 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 5168 output -false - - --- !query 5169 -SELECT cast(1 as float) > cast(1 as decimal(6, 1)) FROM t --- !query 5169 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 5169 output -false - - --- !query 5170 -SELECT cast(1 as float) > cast(1 as decimal(10, 1)) FROM t --- !query 5170 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 5170 output -false - - --- !query 5171 -SELECT cast(1 as float) > cast(1 as decimal(11, 1)) FROM t --- !query 5171 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 5171 output -false - - --- !query 5172 -SELECT cast(1 as float) > cast(1 as decimal(20, 1)) FROM t --- !query 5172 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 5172 output -false - - --- !query 5173 -SELECT cast(1 as float) > cast(1 as decimal(21, 1)) FROM t --- !query 5173 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 5173 output -false - - --- !query 5174 -SELECT cast(1 as float) > cast(1 as decimal(38, 1)) FROM t --- !query 5174 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 5174 output -false - - --- !query 5175 -SELECT cast(1 as float) > cast(1 as decimal(39, 1)) FROM t --- !query 5175 schema -struct<> --- !query 5175 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5176 -SELECT cast(1 as double) > cast(1 as decimal(1, 0)) FROM t --- !query 5176 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 5176 output -false - - --- !query 5177 -SELECT cast(1 as double) > cast(1 as decimal(3, 0)) FROM t --- !query 5177 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 5177 output -false - - --- !query 5178 -SELECT cast(1 as double) > cast(1 as decimal(4, 0)) FROM t --- !query 5178 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 5178 output -false - - --- !query 5179 -SELECT cast(1 as double) > cast(1 as decimal(5, 0)) FROM t --- !query 5179 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 5179 output -false - - --- !query 5180 -SELECT cast(1 as double) > cast(1 as decimal(6, 0)) FROM t --- !query 5180 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 5180 output -false - - --- !query 5181 -SELECT cast(1 as double) > cast(1 as decimal(10, 0)) FROM t --- !query 5181 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 5181 output -false - - --- !query 5182 -SELECT cast(1 as double) > cast(1 as decimal(11, 0)) FROM t --- !query 5182 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 5182 output -false - - --- !query 5183 -SELECT cast(1 as double) > cast(1 as decimal(20, 0)) FROM t --- !query 5183 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 5183 output -false - - --- !query 5184 -SELECT cast(1 as double) > cast(1 as decimal(21, 0)) FROM t --- !query 5184 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 5184 output -false - - --- !query 5185 -SELECT cast(1 as double) > cast(1 as decimal(38, 0)) FROM t --- !query 5185 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 5185 output -false - - --- !query 5186 -SELECT cast(1 as double) > cast(1 as decimal(39, 0)) FROM t --- !query 5186 schema -struct<> --- !query 5186 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5187 -SELECT cast(1 as double) > cast(1 as decimal(1, 1)) FROM t --- !query 5187 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 5187 output -NULL - - --- !query 5188 -SELECT cast(1 as double) > cast(1 as decimal(2, 1)) FROM t --- !query 5188 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 5188 output -false - - --- !query 5189 -SELECT cast(1 as double) > cast(1 as decimal(3, 1)) FROM t --- !query 5189 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 5189 output -false - - --- !query 5190 -SELECT cast(1 as double) > cast(1 as decimal(4, 1)) FROM t --- !query 5190 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 5190 output -false - - --- !query 5191 -SELECT cast(1 as double) > cast(1 as decimal(5, 1)) FROM t --- !query 5191 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 5191 output -false - - --- !query 5192 -SELECT cast(1 as double) > cast(1 as decimal(6, 1)) FROM t --- !query 5192 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 5192 output -false - - --- !query 5193 -SELECT cast(1 as double) > cast(1 as decimal(10, 1)) FROM t --- !query 5193 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 5193 output -false - - --- !query 5194 -SELECT cast(1 as double) > cast(1 as decimal(11, 1)) FROM t --- !query 5194 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 5194 output -false - - --- !query 5195 -SELECT cast(1 as double) > cast(1 as decimal(20, 1)) FROM t --- !query 5195 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 5195 output -false - - --- !query 5196 -SELECT cast(1 as double) > cast(1 as decimal(21, 1)) FROM t --- !query 5196 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 5196 output -false - - --- !query 5197 -SELECT cast(1 as double) > cast(1 as decimal(38, 1)) FROM t --- !query 5197 schema -struct<(CAST(1 AS DOUBLE) > CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 5197 output -false - - --- !query 5198 -SELECT cast(1 as double) > cast(1 as decimal(39, 1)) FROM t --- !query 5198 schema -struct<> --- !query 5198 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5199 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 0)) FROM t --- !query 5199 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 5199 output -false - - --- !query 5200 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 0)) FROM t --- !query 5200 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 5200 output -false - - --- !query 5201 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 0)) FROM t --- !query 5201 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 5201 output -false - - --- !query 5202 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 0)) FROM t --- !query 5202 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 5202 output -false - - --- !query 5203 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 0)) FROM t --- !query 5203 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 5203 output -false - - --- !query 5204 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5204 schema -struct<(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> --- !query 5204 output -false - - --- !query 5205 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 0)) FROM t --- !query 5205 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5205 output -false - - --- !query 5206 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 0)) FROM t --- !query 5206 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5206 output -false - - --- !query 5207 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 0)) FROM t --- !query 5207 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5207 output -false - - --- !query 5208 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 0)) FROM t --- !query 5208 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5208 output -false - - --- !query 5209 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 0)) FROM t --- !query 5209 schema -struct<> --- !query 5209 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5210 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(1, 1)) FROM t --- !query 5210 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 5210 output -NULL - - --- !query 5211 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(2, 1)) FROM t --- !query 5211 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 5211 output -false - - --- !query 5212 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 1)) FROM t --- !query 5212 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 5212 output -false - - --- !query 5213 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(4, 1)) FROM t --- !query 5213 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 5213 output -false - - --- !query 5214 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 1)) FROM t --- !query 5214 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 5214 output -false - - --- !query 5215 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(6, 1)) FROM t --- !query 5215 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 5215 output -false - - --- !query 5216 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 1)) FROM t --- !query 5216 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 5216 output -false - - --- !query 5217 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(11, 1)) FROM t --- !query 5217 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5217 output -false - - --- !query 5218 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 1)) FROM t --- !query 5218 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5218 output -false - - --- !query 5219 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(21, 1)) FROM t --- !query 5219 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5219 output -false - - --- !query 5220 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(38, 1)) FROM t --- !query 5220 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5220 output -false - - --- !query 5221 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 1)) FROM t --- !query 5221 schema -struct<> --- !query 5221 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5222 -SELECT cast('1' as binary) > cast(1 as decimal(1, 0)) FROM t --- !query 5222 schema -struct<> --- !query 5222 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 5223 -SELECT cast('1' as binary) > cast(1 as decimal(3, 0)) FROM t --- !query 5223 schema -struct<> --- !query 5223 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 5224 -SELECT cast('1' as binary) > cast(1 as decimal(4, 0)) FROM t --- !query 5224 schema -struct<> --- !query 5224 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 5225 -SELECT cast('1' as binary) > cast(1 as decimal(5, 0)) FROM t --- !query 5225 schema -struct<> --- !query 5225 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 5226 -SELECT cast('1' as binary) > cast(1 as decimal(6, 0)) FROM t --- !query 5226 schema -struct<> --- !query 5226 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 5227 -SELECT cast('1' as binary) > cast(1 as decimal(10, 0)) FROM t --- !query 5227 schema -struct<> --- !query 5227 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 5228 -SELECT cast('1' as binary) > cast(1 as decimal(11, 0)) FROM t --- !query 5228 schema -struct<> --- !query 5228 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 5229 -SELECT cast('1' as binary) > cast(1 as decimal(20, 0)) FROM t --- !query 5229 schema -struct<> --- !query 5229 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 5230 -SELECT cast('1' as binary) > cast(1 as decimal(21, 0)) FROM t --- !query 5230 schema -struct<> --- !query 5230 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 5231 -SELECT cast('1' as binary) > cast(1 as decimal(38, 0)) FROM t --- !query 5231 schema -struct<> --- !query 5231 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 5232 -SELECT cast('1' as binary) > cast(1 as decimal(39, 0)) FROM t --- !query 5232 schema -struct<> --- !query 5232 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5233 -SELECT cast('1' as binary) > cast(1 as decimal(1, 1)) FROM t --- !query 5233 schema -struct<> --- !query 5233 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 5234 -SELECT cast('1' as binary) > cast(1 as decimal(2, 1)) FROM t --- !query 5234 schema -struct<> --- !query 5234 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 5235 -SELECT cast('1' as binary) > cast(1 as decimal(3, 1)) FROM t --- !query 5235 schema -struct<> --- !query 5235 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 5236 -SELECT cast('1' as binary) > cast(1 as decimal(4, 1)) FROM t --- !query 5236 schema -struct<> --- !query 5236 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 5237 -SELECT cast('1' as binary) > cast(1 as decimal(5, 1)) FROM t --- !query 5237 schema -struct<> --- !query 5237 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 5238 -SELECT cast('1' as binary) > cast(1 as decimal(6, 1)) FROM t --- !query 5238 schema -struct<> --- !query 5238 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 5239 -SELECT cast('1' as binary) > cast(1 as decimal(10, 1)) FROM t --- !query 5239 schema -struct<> --- !query 5239 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 5240 -SELECT cast('1' as binary) > cast(1 as decimal(11, 1)) FROM t --- !query 5240 schema -struct<> --- !query 5240 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 5241 -SELECT cast('1' as binary) > cast(1 as decimal(20, 1)) FROM t --- !query 5241 schema -struct<> --- !query 5241 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 5242 -SELECT cast('1' as binary) > cast(1 as decimal(21, 1)) FROM t --- !query 5242 schema -struct<> --- !query 5242 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 5243 -SELECT cast('1' as binary) > cast(1 as decimal(38, 1)) FROM t --- !query 5243 schema -struct<> --- !query 5243 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) > CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 5244 -SELECT cast('1' as binary) > cast(1 as decimal(39, 1)) FROM t --- !query 5244 schema -struct<> --- !query 5244 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5245 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 0)) FROM t --- !query 5245 schema -struct<> --- !query 5245 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 5246 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 0)) FROM t --- !query 5246 schema -struct<> --- !query 5246 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 5247 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 0)) FROM t --- !query 5247 schema -struct<> --- !query 5247 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 5248 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 0)) FROM t --- !query 5248 schema -struct<> --- !query 5248 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 5249 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 0)) FROM t --- !query 5249 schema -struct<> --- !query 5249 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 5250 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 0)) FROM t --- !query 5250 schema -struct<> --- !query 5250 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 5251 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 0)) FROM t --- !query 5251 schema -struct<> --- !query 5251 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 5252 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 0)) FROM t --- !query 5252 schema -struct<> --- !query 5252 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 5253 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 0)) FROM t --- !query 5253 schema -struct<> --- !query 5253 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 5254 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 0)) FROM t --- !query 5254 schema -struct<> --- !query 5254 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 5255 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 0)) FROM t --- !query 5255 schema -struct<> --- !query 5255 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5256 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(1, 1)) FROM t --- !query 5256 schema -struct<> --- !query 5256 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 5257 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(2, 1)) FROM t --- !query 5257 schema -struct<> --- !query 5257 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 5258 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 1)) FROM t --- !query 5258 schema -struct<> --- !query 5258 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 5259 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(4, 1)) FROM t --- !query 5259 schema -struct<> --- !query 5259 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 5260 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 1)) FROM t --- !query 5260 schema -struct<> --- !query 5260 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 5261 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(6, 1)) FROM t --- !query 5261 schema -struct<> --- !query 5261 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 5262 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 1)) FROM t --- !query 5262 schema -struct<> --- !query 5262 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 5263 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(11, 1)) FROM t --- !query 5263 schema -struct<> --- !query 5263 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 5264 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 1)) FROM t --- !query 5264 schema -struct<> --- !query 5264 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 5265 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(21, 1)) FROM t --- !query 5265 schema -struct<> --- !query 5265 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 5266 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(38, 1)) FROM t --- !query 5266 schema -struct<> --- !query 5266 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) > CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 5267 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 1)) FROM t --- !query 5267 schema -struct<> --- !query 5267 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5268 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 0)) FROM t --- !query 5268 schema -struct<> --- !query 5268 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 5269 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 0)) FROM t --- !query 5269 schema -struct<> --- !query 5269 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 5270 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 0)) FROM t --- !query 5270 schema -struct<> --- !query 5270 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 5271 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 0)) FROM t --- !query 5271 schema -struct<> --- !query 5271 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 5272 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 0)) FROM t --- !query 5272 schema -struct<> --- !query 5272 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 5273 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 0)) FROM t --- !query 5273 schema -struct<> --- !query 5273 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 5274 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 0)) FROM t --- !query 5274 schema -struct<> --- !query 5274 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 5275 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 0)) FROM t --- !query 5275 schema -struct<> --- !query 5275 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 5276 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 0)) FROM t --- !query 5276 schema -struct<> --- !query 5276 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 5277 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 0)) FROM t --- !query 5277 schema -struct<> --- !query 5277 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 5278 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 0)) FROM t --- !query 5278 schema -struct<> --- !query 5278 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 0)) FROM t - - --- !query 5279 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(1, 1)) FROM t --- !query 5279 schema -struct<> --- !query 5279 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 5280 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(2, 1)) FROM t --- !query 5280 schema -struct<> --- !query 5280 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 5281 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 1)) FROM t --- !query 5281 schema -struct<> --- !query 5281 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 5282 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(4, 1)) FROM t --- !query 5282 schema -struct<> --- !query 5282 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 5283 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 1)) FROM t --- !query 5283 schema -struct<> --- !query 5283 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 5284 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(6, 1)) FROM t --- !query 5284 schema -struct<> --- !query 5284 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 5285 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 1)) FROM t --- !query 5285 schema -struct<> --- !query 5285 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 5286 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(11, 1)) FROM t --- !query 5286 schema -struct<> --- !query 5286 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 5287 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 1)) FROM t --- !query 5287 schema -struct<> --- !query 5287 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 5288 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(21, 1)) FROM t --- !query 5288 schema -struct<> --- !query 5288 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 5289 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(38, 1)) FROM t --- !query 5289 schema -struct<> --- !query 5289 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) > CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 5290 -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 1)) FROM t --- !query 5290 schema -struct<> --- !query 5290 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(39, 1)) FROM t - - --- !query 5291 -SELECT cast(1 as decimal(1, 0)) > cast(1 as tinyint) FROM t --- !query 5291 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> --- !query 5291 output -false - - --- !query 5292 -SELECT cast(1 as decimal(3, 0)) > cast(1 as tinyint) FROM t --- !query 5292 schema -struct<(CAST(1 AS DECIMAL(3,0)) > CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> --- !query 5292 output -false - - --- !query 5293 -SELECT cast(1 as decimal(4, 0)) > cast(1 as tinyint) FROM t --- !query 5293 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> --- !query 5293 output -false - - --- !query 5294 -SELECT cast(1 as decimal(5, 0)) > cast(1 as tinyint) FROM t --- !query 5294 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 5294 output -false - - --- !query 5295 -SELECT cast(1 as decimal(6, 0)) > cast(1 as tinyint) FROM t --- !query 5295 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> --- !query 5295 output -false - - --- !query 5296 -SELECT cast(1 as decimal(10, 0)) > cast(1 as tinyint) FROM t --- !query 5296 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 5296 output -false - - --- !query 5297 -SELECT cast(1 as decimal(11, 0)) > cast(1 as tinyint) FROM t --- !query 5297 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> --- !query 5297 output -false - - --- !query 5298 -SELECT cast(1 as decimal(20, 0)) > cast(1 as tinyint) FROM t --- !query 5298 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 5298 output -false - - --- !query 5299 -SELECT cast(1 as decimal(21, 0)) > cast(1 as tinyint) FROM t --- !query 5299 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> --- !query 5299 output -false - - --- !query 5300 -SELECT cast(1 as decimal(38, 0)) > cast(1 as tinyint) FROM t --- !query 5300 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> --- !query 5300 output -false - - --- !query 5301 -SELECT cast(1 as decimal(39, 0)) > cast(1 as tinyint) FROM t --- !query 5301 schema -struct<> --- !query 5301 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as tinyint) FROM t - - --- !query 5302 -SELECT cast(1 as decimal(1, 1)) > cast(1 as tinyint) FROM t --- !query 5302 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5302 output -NULL - - --- !query 5303 -SELECT cast(1 as decimal(2, 1)) > cast(1 as tinyint) FROM t --- !query 5303 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5303 output -false - - --- !query 5304 -SELECT cast(1 as decimal(3, 1)) > cast(1 as tinyint) FROM t --- !query 5304 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5304 output -false - - --- !query 5305 -SELECT cast(1 as decimal(4, 1)) > cast(1 as tinyint) FROM t --- !query 5305 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5305 output -false - - --- !query 5306 -SELECT cast(1 as decimal(5, 1)) > cast(1 as tinyint) FROM t --- !query 5306 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> --- !query 5306 output -false - - --- !query 5307 -SELECT cast(1 as decimal(6, 1)) > cast(1 as tinyint) FROM t --- !query 5307 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> --- !query 5307 output -false - - --- !query 5308 -SELECT cast(1 as decimal(10, 1)) > cast(1 as tinyint) FROM t --- !query 5308 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> --- !query 5308 output -false - - --- !query 5309 -SELECT cast(1 as decimal(11, 1)) > cast(1 as tinyint) FROM t --- !query 5309 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> --- !query 5309 output -false - - --- !query 5310 -SELECT cast(1 as decimal(20, 1)) > cast(1 as tinyint) FROM t --- !query 5310 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> --- !query 5310 output -false - - --- !query 5311 -SELECT cast(1 as decimal(21, 1)) > cast(1 as tinyint) FROM t --- !query 5311 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> --- !query 5311 output -false - - --- !query 5312 -SELECT cast(1 as decimal(38, 1)) > cast(1 as tinyint) FROM t --- !query 5312 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> --- !query 5312 output -false - - --- !query 5313 -SELECT cast(1 as decimal(39, 1)) > cast(1 as tinyint) FROM t --- !query 5313 schema -struct<> --- !query 5313 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as tinyint) FROM t - - --- !query 5314 -SELECT cast(1 as decimal(1, 0)) > cast(1 as smallint) FROM t --- !query 5314 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5314 output -false - - --- !query 5315 -SELECT cast(1 as decimal(3, 0)) > cast(1 as smallint) FROM t --- !query 5315 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5315 output -false - - --- !query 5316 -SELECT cast(1 as decimal(4, 0)) > cast(1 as smallint) FROM t --- !query 5316 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5316 output -false - - --- !query 5317 -SELECT cast(1 as decimal(5, 0)) > cast(1 as smallint) FROM t --- !query 5317 schema -struct<(CAST(1 AS DECIMAL(5,0)) > CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> --- !query 5317 output -false - - --- !query 5318 -SELECT cast(1 as decimal(6, 0)) > cast(1 as smallint) FROM t --- !query 5318 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> --- !query 5318 output -false - - --- !query 5319 -SELECT cast(1 as decimal(10, 0)) > cast(1 as smallint) FROM t --- !query 5319 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 5319 output -false - - --- !query 5320 -SELECT cast(1 as decimal(11, 0)) > cast(1 as smallint) FROM t --- !query 5320 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> --- !query 5320 output -false - - --- !query 5321 -SELECT cast(1 as decimal(20, 0)) > cast(1 as smallint) FROM t --- !query 5321 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 5321 output -false - - --- !query 5322 -SELECT cast(1 as decimal(21, 0)) > cast(1 as smallint) FROM t --- !query 5322 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> --- !query 5322 output -false - - --- !query 5323 -SELECT cast(1 as decimal(38, 0)) > cast(1 as smallint) FROM t --- !query 5323 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> --- !query 5323 output -false - - --- !query 5324 -SELECT cast(1 as decimal(39, 0)) > cast(1 as smallint) FROM t --- !query 5324 schema -struct<> --- !query 5324 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as smallint) FROM t - - --- !query 5325 -SELECT cast(1 as decimal(1, 1)) > cast(1 as smallint) FROM t --- !query 5325 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5325 output -NULL - - --- !query 5326 -SELECT cast(1 as decimal(2, 1)) > cast(1 as smallint) FROM t --- !query 5326 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5326 output -false - - --- !query 5327 -SELECT cast(1 as decimal(3, 1)) > cast(1 as smallint) FROM t --- !query 5327 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5327 output -false - - --- !query 5328 -SELECT cast(1 as decimal(4, 1)) > cast(1 as smallint) FROM t --- !query 5328 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5328 output -false - - --- !query 5329 -SELECT cast(1 as decimal(5, 1)) > cast(1 as smallint) FROM t --- !query 5329 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5329 output -false - - --- !query 5330 -SELECT cast(1 as decimal(6, 1)) > cast(1 as smallint) FROM t --- !query 5330 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5330 output -false - - --- !query 5331 -SELECT cast(1 as decimal(10, 1)) > cast(1 as smallint) FROM t --- !query 5331 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> --- !query 5331 output -false - - --- !query 5332 -SELECT cast(1 as decimal(11, 1)) > cast(1 as smallint) FROM t --- !query 5332 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> --- !query 5332 output -false - - --- !query 5333 -SELECT cast(1 as decimal(20, 1)) > cast(1 as smallint) FROM t --- !query 5333 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> --- !query 5333 output -false - - --- !query 5334 -SELECT cast(1 as decimal(21, 1)) > cast(1 as smallint) FROM t --- !query 5334 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> --- !query 5334 output -false - - --- !query 5335 -SELECT cast(1 as decimal(38, 1)) > cast(1 as smallint) FROM t --- !query 5335 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> --- !query 5335 output -false - - --- !query 5336 -SELECT cast(1 as decimal(39, 1)) > cast(1 as smallint) FROM t --- !query 5336 schema -struct<> --- !query 5336 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as smallint) FROM t - - --- !query 5337 -SELECT cast(1 as decimal(1, 0)) > cast(1 as int) FROM t --- !query 5337 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5337 output -false - - --- !query 5338 -SELECT cast(1 as decimal(3, 0)) > cast(1 as int) FROM t --- !query 5338 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5338 output -false - - --- !query 5339 -SELECT cast(1 as decimal(4, 0)) > cast(1 as int) FROM t --- !query 5339 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5339 output -false - - --- !query 5340 -SELECT cast(1 as decimal(5, 0)) > cast(1 as int) FROM t --- !query 5340 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5340 output -false - - --- !query 5341 -SELECT cast(1 as decimal(6, 0)) > cast(1 as int) FROM t --- !query 5341 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5341 output -false - - --- !query 5342 -SELECT cast(1 as decimal(10, 0)) > cast(1 as int) FROM t --- !query 5342 schema -struct<(CAST(1 AS DECIMAL(10,0)) > CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> --- !query 5342 output -false - - --- !query 5343 -SELECT cast(1 as decimal(11, 0)) > cast(1 as int) FROM t --- !query 5343 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 5343 output -false - - --- !query 5344 -SELECT cast(1 as decimal(20, 0)) > cast(1 as int) FROM t --- !query 5344 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 5344 output -false - - --- !query 5345 -SELECT cast(1 as decimal(21, 0)) > cast(1 as int) FROM t --- !query 5345 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 5345 output -false - - --- !query 5346 -SELECT cast(1 as decimal(38, 0)) > cast(1 as int) FROM t --- !query 5346 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 5346 output -false - - --- !query 5347 -SELECT cast(1 as decimal(39, 0)) > cast(1 as int) FROM t --- !query 5347 schema -struct<> --- !query 5347 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as int) FROM t - - --- !query 5348 -SELECT cast(1 as decimal(1, 1)) > cast(1 as int) FROM t --- !query 5348 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5348 output -NULL - - --- !query 5349 -SELECT cast(1 as decimal(2, 1)) > cast(1 as int) FROM t --- !query 5349 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5349 output -false - - --- !query 5350 -SELECT cast(1 as decimal(3, 1)) > cast(1 as int) FROM t --- !query 5350 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5350 output -false - - --- !query 5351 -SELECT cast(1 as decimal(4, 1)) > cast(1 as int) FROM t --- !query 5351 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5351 output -false - - --- !query 5352 -SELECT cast(1 as decimal(5, 1)) > cast(1 as int) FROM t --- !query 5352 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5352 output -false - - --- !query 5353 -SELECT cast(1 as decimal(6, 1)) > cast(1 as int) FROM t --- !query 5353 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5353 output -false - - --- !query 5354 -SELECT cast(1 as decimal(10, 1)) > cast(1 as int) FROM t --- !query 5354 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5354 output -false - - --- !query 5355 -SELECT cast(1 as decimal(11, 1)) > cast(1 as int) FROM t --- !query 5355 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5355 output -false - - --- !query 5356 -SELECT cast(1 as decimal(20, 1)) > cast(1 as int) FROM t --- !query 5356 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 5356 output -false - - --- !query 5357 -SELECT cast(1 as decimal(21, 1)) > cast(1 as int) FROM t --- !query 5357 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 5357 output -false - - --- !query 5358 -SELECT cast(1 as decimal(38, 1)) > cast(1 as int) FROM t --- !query 5358 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 5358 output -false - - --- !query 5359 -SELECT cast(1 as decimal(39, 1)) > cast(1 as int) FROM t --- !query 5359 schema -struct<> --- !query 5359 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as int) FROM t - - --- !query 5360 -SELECT cast(1 as decimal(1, 0)) > cast(1 as bigint) FROM t --- !query 5360 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5360 output -false - - --- !query 5361 -SELECT cast(1 as decimal(3, 0)) > cast(1 as bigint) FROM t --- !query 5361 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5361 output -false - - --- !query 5362 -SELECT cast(1 as decimal(4, 0)) > cast(1 as bigint) FROM t --- !query 5362 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5362 output -false - - --- !query 5363 -SELECT cast(1 as decimal(5, 0)) > cast(1 as bigint) FROM t --- !query 5363 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5363 output -false - - --- !query 5364 -SELECT cast(1 as decimal(6, 0)) > cast(1 as bigint) FROM t --- !query 5364 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5364 output -false - - --- !query 5365 -SELECT cast(1 as decimal(10, 0)) > cast(1 as bigint) FROM t --- !query 5365 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5365 output -false - - --- !query 5366 -SELECT cast(1 as decimal(11, 0)) > cast(1 as bigint) FROM t --- !query 5366 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5366 output -false - - --- !query 5367 -SELECT cast(1 as decimal(20, 0)) > cast(1 as bigint) FROM t --- !query 5367 schema -struct<(CAST(1 AS DECIMAL(20,0)) > CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> --- !query 5367 output -false - - --- !query 5368 -SELECT cast(1 as decimal(21, 0)) > cast(1 as bigint) FROM t --- !query 5368 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> --- !query 5368 output -false - - --- !query 5369 -SELECT cast(1 as decimal(38, 0)) > cast(1 as bigint) FROM t --- !query 5369 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> --- !query 5369 output -false - - --- !query 5370 -SELECT cast(1 as decimal(39, 0)) > cast(1 as bigint) FROM t --- !query 5370 schema -struct<> --- !query 5370 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as bigint) FROM t - - --- !query 5371 -SELECT cast(1 as decimal(1, 1)) > cast(1 as bigint) FROM t --- !query 5371 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5371 output -NULL - - --- !query 5372 -SELECT cast(1 as decimal(2, 1)) > cast(1 as bigint) FROM t --- !query 5372 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5372 output -false - - --- !query 5373 -SELECT cast(1 as decimal(3, 1)) > cast(1 as bigint) FROM t --- !query 5373 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5373 output -false - - --- !query 5374 -SELECT cast(1 as decimal(4, 1)) > cast(1 as bigint) FROM t --- !query 5374 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5374 output -false - - --- !query 5375 -SELECT cast(1 as decimal(5, 1)) > cast(1 as bigint) FROM t --- !query 5375 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5375 output -false - - --- !query 5376 -SELECT cast(1 as decimal(6, 1)) > cast(1 as bigint) FROM t --- !query 5376 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5376 output -false - - --- !query 5377 -SELECT cast(1 as decimal(10, 1)) > cast(1 as bigint) FROM t --- !query 5377 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5377 output -false - - --- !query 5378 -SELECT cast(1 as decimal(11, 1)) > cast(1 as bigint) FROM t --- !query 5378 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5378 output -false - - --- !query 5379 -SELECT cast(1 as decimal(20, 1)) > cast(1 as bigint) FROM t --- !query 5379 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5379 output -false - - --- !query 5380 -SELECT cast(1 as decimal(21, 1)) > cast(1 as bigint) FROM t --- !query 5380 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5380 output -false - - --- !query 5381 -SELECT cast(1 as decimal(38, 1)) > cast(1 as bigint) FROM t --- !query 5381 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> --- !query 5381 output -false - - --- !query 5382 -SELECT cast(1 as decimal(39, 1)) > cast(1 as bigint) FROM t --- !query 5382 schema -struct<> --- !query 5382 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as bigint) FROM t - - --- !query 5383 -SELECT cast(1 as decimal(1, 0)) > cast(1 as float) FROM t --- !query 5383 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5383 output -false - - --- !query 5384 -SELECT cast(1 as decimal(3, 0)) > cast(1 as float) FROM t --- !query 5384 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5384 output -false - - --- !query 5385 -SELECT cast(1 as decimal(4, 0)) > cast(1 as float) FROM t --- !query 5385 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5385 output -false - - --- !query 5386 -SELECT cast(1 as decimal(5, 0)) > cast(1 as float) FROM t --- !query 5386 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5386 output -false - - --- !query 5387 -SELECT cast(1 as decimal(6, 0)) > cast(1 as float) FROM t --- !query 5387 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5387 output -false - - --- !query 5388 -SELECT cast(1 as decimal(10, 0)) > cast(1 as float) FROM t --- !query 5388 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5388 output -false - - --- !query 5389 -SELECT cast(1 as decimal(11, 0)) > cast(1 as float) FROM t --- !query 5389 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5389 output -false - - --- !query 5390 -SELECT cast(1 as decimal(20, 0)) > cast(1 as float) FROM t --- !query 5390 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5390 output -false - - --- !query 5391 -SELECT cast(1 as decimal(21, 0)) > cast(1 as float) FROM t --- !query 5391 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5391 output -false - - --- !query 5392 -SELECT cast(1 as decimal(38, 0)) > cast(1 as float) FROM t --- !query 5392 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5392 output -false - - --- !query 5393 -SELECT cast(1 as decimal(39, 0)) > cast(1 as float) FROM t --- !query 5393 schema -struct<> --- !query 5393 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as float) FROM t - - --- !query 5394 -SELECT cast(1 as decimal(1, 1)) > cast(1 as float) FROM t --- !query 5394 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5394 output -NULL - - --- !query 5395 -SELECT cast(1 as decimal(2, 1)) > cast(1 as float) FROM t --- !query 5395 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5395 output -false - - --- !query 5396 -SELECT cast(1 as decimal(3, 1)) > cast(1 as float) FROM t --- !query 5396 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5396 output -false - - --- !query 5397 -SELECT cast(1 as decimal(4, 1)) > cast(1 as float) FROM t --- !query 5397 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5397 output -false - - --- !query 5398 -SELECT cast(1 as decimal(5, 1)) > cast(1 as float) FROM t --- !query 5398 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5398 output -false - - --- !query 5399 -SELECT cast(1 as decimal(6, 1)) > cast(1 as float) FROM t --- !query 5399 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5399 output -false - - --- !query 5400 -SELECT cast(1 as decimal(10, 1)) > cast(1 as float) FROM t --- !query 5400 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5400 output -false - - --- !query 5401 -SELECT cast(1 as decimal(11, 1)) > cast(1 as float) FROM t --- !query 5401 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5401 output -false - - --- !query 5402 -SELECT cast(1 as decimal(20, 1)) > cast(1 as float) FROM t --- !query 5402 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5402 output -false - - --- !query 5403 -SELECT cast(1 as decimal(21, 1)) > cast(1 as float) FROM t --- !query 5403 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5403 output -false - - --- !query 5404 -SELECT cast(1 as decimal(38, 1)) > cast(1 as float) FROM t --- !query 5404 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) > CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5404 output -false - - --- !query 5405 -SELECT cast(1 as decimal(39, 1)) > cast(1 as float) FROM t --- !query 5405 schema -struct<> --- !query 5405 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as float) FROM t - - --- !query 5406 -SELECT cast(1 as decimal(1, 0)) > cast(1 as double) FROM t --- !query 5406 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5406 output -false - - --- !query 5407 -SELECT cast(1 as decimal(3, 0)) > cast(1 as double) FROM t --- !query 5407 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5407 output -false - - --- !query 5408 -SELECT cast(1 as decimal(4, 0)) > cast(1 as double) FROM t --- !query 5408 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5408 output -false - - --- !query 5409 -SELECT cast(1 as decimal(5, 0)) > cast(1 as double) FROM t --- !query 5409 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5409 output -false - - --- !query 5410 -SELECT cast(1 as decimal(6, 0)) > cast(1 as double) FROM t --- !query 5410 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5410 output -false - - --- !query 5411 -SELECT cast(1 as decimal(10, 0)) > cast(1 as double) FROM t --- !query 5411 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5411 output -false - - --- !query 5412 -SELECT cast(1 as decimal(11, 0)) > cast(1 as double) FROM t --- !query 5412 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5412 output -false - - --- !query 5413 -SELECT cast(1 as decimal(20, 0)) > cast(1 as double) FROM t --- !query 5413 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5413 output -false - - --- !query 5414 -SELECT cast(1 as decimal(21, 0)) > cast(1 as double) FROM t --- !query 5414 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5414 output -false - - --- !query 5415 -SELECT cast(1 as decimal(38, 0)) > cast(1 as double) FROM t --- !query 5415 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5415 output -false - - --- !query 5416 -SELECT cast(1 as decimal(39, 0)) > cast(1 as double) FROM t --- !query 5416 schema -struct<> --- !query 5416 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as double) FROM t - - --- !query 5417 -SELECT cast(1 as decimal(1, 1)) > cast(1 as double) FROM t --- !query 5417 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5417 output -NULL - - --- !query 5418 -SELECT cast(1 as decimal(2, 1)) > cast(1 as double) FROM t --- !query 5418 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5418 output -false - - --- !query 5419 -SELECT cast(1 as decimal(3, 1)) > cast(1 as double) FROM t --- !query 5419 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5419 output -false - - --- !query 5420 -SELECT cast(1 as decimal(4, 1)) > cast(1 as double) FROM t --- !query 5420 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5420 output -false - - --- !query 5421 -SELECT cast(1 as decimal(5, 1)) > cast(1 as double) FROM t --- !query 5421 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5421 output -false - - --- !query 5422 -SELECT cast(1 as decimal(6, 1)) > cast(1 as double) FROM t --- !query 5422 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5422 output -false - - --- !query 5423 -SELECT cast(1 as decimal(10, 1)) > cast(1 as double) FROM t --- !query 5423 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5423 output -false - - --- !query 5424 -SELECT cast(1 as decimal(11, 1)) > cast(1 as double) FROM t --- !query 5424 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5424 output -false - - --- !query 5425 -SELECT cast(1 as decimal(20, 1)) > cast(1 as double) FROM t --- !query 5425 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5425 output -false - - --- !query 5426 -SELECT cast(1 as decimal(21, 1)) > cast(1 as double) FROM t --- !query 5426 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5426 output -false - - --- !query 5427 -SELECT cast(1 as decimal(38, 1)) > cast(1 as double) FROM t --- !query 5427 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) > CAST(1 AS DOUBLE)):boolean> --- !query 5427 output -false - - --- !query 5428 -SELECT cast(1 as decimal(39, 1)) > cast(1 as double) FROM t --- !query 5428 schema -struct<> --- !query 5428 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as double) FROM t - - --- !query 5429 -SELECT cast(1 as decimal(1, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5429 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5429 output -false - - --- !query 5430 -SELECT cast(1 as decimal(3, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5430 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5430 output -false - - --- !query 5431 -SELECT cast(1 as decimal(4, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5431 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5431 output -false - - --- !query 5432 -SELECT cast(1 as decimal(5, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5432 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5432 output -false - - --- !query 5433 -SELECT cast(1 as decimal(6, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5433 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5433 output -false - - --- !query 5434 -SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5434 schema -struct<(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS DECIMAL(10,0))):boolean> --- !query 5434 output -false - - --- !query 5435 -SELECT cast(1 as decimal(11, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5435 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 5435 output -false - - --- !query 5436 -SELECT cast(1 as decimal(20, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5436 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 5436 output -false - - --- !query 5437 -SELECT cast(1 as decimal(21, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5437 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 5437 output -false - - --- !query 5438 -SELECT cast(1 as decimal(38, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5438 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 5438 output -false - - --- !query 5439 -SELECT cast(1 as decimal(39, 0)) > cast(1 as decimal(10, 0)) FROM t --- !query 5439 schema -struct<> --- !query 5439 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as decimal(10, 0)) FROM t - - --- !query 5440 -SELECT cast(1 as decimal(1, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5440 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5440 output -NULL - - --- !query 5441 -SELECT cast(1 as decimal(2, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5441 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5441 output -false - - --- !query 5442 -SELECT cast(1 as decimal(3, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5442 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5442 output -false - - --- !query 5443 -SELECT cast(1 as decimal(4, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5443 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5443 output -false - - --- !query 5444 -SELECT cast(1 as decimal(5, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5444 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5444 output -false - - --- !query 5445 -SELECT cast(1 as decimal(6, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5445 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5445 output -false - - --- !query 5446 -SELECT cast(1 as decimal(10, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5446 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5446 output -false - - --- !query 5447 -SELECT cast(1 as decimal(11, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5447 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5447 output -false - - --- !query 5448 -SELECT cast(1 as decimal(20, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5448 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 5448 output -false - - --- !query 5449 -SELECT cast(1 as decimal(21, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5449 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 5449 output -false - - --- !query 5450 -SELECT cast(1 as decimal(38, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5450 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) > CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 5450 output -false - - --- !query 5451 -SELECT cast(1 as decimal(39, 1)) > cast(1 as decimal(10, 0)) FROM t --- !query 5451 schema -struct<> --- !query 5451 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as decimal(10, 0)) FROM t - - --- !query 5452 -SELECT cast(1 as decimal(1, 0)) > cast(1 as string) FROM t --- !query 5452 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5452 output -false - - --- !query 5453 -SELECT cast(1 as decimal(3, 0)) > cast(1 as string) FROM t --- !query 5453 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5453 output -false - - --- !query 5454 -SELECT cast(1 as decimal(4, 0)) > cast(1 as string) FROM t --- !query 5454 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5454 output -false - - --- !query 5455 -SELECT cast(1 as decimal(5, 0)) > cast(1 as string) FROM t --- !query 5455 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5455 output -false - - --- !query 5456 -SELECT cast(1 as decimal(6, 0)) > cast(1 as string) FROM t --- !query 5456 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5456 output -false - - --- !query 5457 -SELECT cast(1 as decimal(10, 0)) > cast(1 as string) FROM t --- !query 5457 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5457 output -false - - --- !query 5458 -SELECT cast(1 as decimal(11, 0)) > cast(1 as string) FROM t --- !query 5458 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5458 output -false - - --- !query 5459 -SELECT cast(1 as decimal(20, 0)) > cast(1 as string) FROM t --- !query 5459 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5459 output -false - - --- !query 5460 -SELECT cast(1 as decimal(21, 0)) > cast(1 as string) FROM t --- !query 5460 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5460 output -false - - --- !query 5461 -SELECT cast(1 as decimal(38, 0)) > cast(1 as string) FROM t --- !query 5461 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5461 output -false - - --- !query 5462 -SELECT cast(1 as decimal(39, 0)) > cast(1 as string) FROM t --- !query 5462 schema -struct<> --- !query 5462 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as string) FROM t - - --- !query 5463 -SELECT cast(1 as decimal(1, 1)) > cast(1 as string) FROM t --- !query 5463 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5463 output -NULL - - --- !query 5464 -SELECT cast(1 as decimal(2, 1)) > cast(1 as string) FROM t --- !query 5464 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5464 output -false - - --- !query 5465 -SELECT cast(1 as decimal(3, 1)) > cast(1 as string) FROM t --- !query 5465 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5465 output -false - - --- !query 5466 -SELECT cast(1 as decimal(4, 1)) > cast(1 as string) FROM t --- !query 5466 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5466 output -false - - --- !query 5467 -SELECT cast(1 as decimal(5, 1)) > cast(1 as string) FROM t --- !query 5467 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5467 output -false - - --- !query 5468 -SELECT cast(1 as decimal(6, 1)) > cast(1 as string) FROM t --- !query 5468 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5468 output -false - - --- !query 5469 -SELECT cast(1 as decimal(10, 1)) > cast(1 as string) FROM t --- !query 5469 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5469 output -false - - --- !query 5470 -SELECT cast(1 as decimal(11, 1)) > cast(1 as string) FROM t --- !query 5470 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5470 output -false - - --- !query 5471 -SELECT cast(1 as decimal(20, 1)) > cast(1 as string) FROM t --- !query 5471 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5471 output -false - - --- !query 5472 -SELECT cast(1 as decimal(21, 1)) > cast(1 as string) FROM t --- !query 5472 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5472 output -false - - --- !query 5473 -SELECT cast(1 as decimal(38, 1)) > cast(1 as string) FROM t --- !query 5473 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) > CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5473 output -false - - --- !query 5474 -SELECT cast(1 as decimal(39, 1)) > cast(1 as string) FROM t --- !query 5474 schema -struct<> --- !query 5474 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as string) FROM t - - --- !query 5475 -SELECT cast(1 as decimal(1, 0)) > cast('1' as binary) FROM t --- !query 5475 schema -struct<> --- !query 5475 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 5476 -SELECT cast(1 as decimal(3, 0)) > cast('1' as binary) FROM t --- !query 5476 schema -struct<> --- !query 5476 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 5477 -SELECT cast(1 as decimal(4, 0)) > cast('1' as binary) FROM t --- !query 5477 schema -struct<> --- !query 5477 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 5478 -SELECT cast(1 as decimal(5, 0)) > cast('1' as binary) FROM t --- !query 5478 schema -struct<> --- !query 5478 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 5479 -SELECT cast(1 as decimal(6, 0)) > cast('1' as binary) FROM t --- !query 5479 schema -struct<> --- !query 5479 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 5480 -SELECT cast(1 as decimal(10, 0)) > cast('1' as binary) FROM t --- !query 5480 schema -struct<> --- !query 5480 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 5481 -SELECT cast(1 as decimal(11, 0)) > cast('1' as binary) FROM t --- !query 5481 schema -struct<> --- !query 5481 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 5482 -SELECT cast(1 as decimal(20, 0)) > cast('1' as binary) FROM t --- !query 5482 schema -struct<> --- !query 5482 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 5483 -SELECT cast(1 as decimal(21, 0)) > cast('1' as binary) FROM t --- !query 5483 schema -struct<> --- !query 5483 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 5484 -SELECT cast(1 as decimal(38, 0)) > cast('1' as binary) FROM t --- !query 5484 schema -struct<> --- !query 5484 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 5485 -SELECT cast(1 as decimal(39, 0)) > cast('1' as binary) FROM t --- !query 5485 schema -struct<> --- !query 5485 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast('1' as binary) FROM t - - --- !query 5486 -SELECT cast(1 as decimal(1, 1)) > cast('1' as binary) FROM t --- !query 5486 schema -struct<> --- !query 5486 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 5487 -SELECT cast(1 as decimal(2, 1)) > cast('1' as binary) FROM t --- !query 5487 schema -struct<> --- !query 5487 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 5488 -SELECT cast(1 as decimal(3, 1)) > cast('1' as binary) FROM t --- !query 5488 schema -struct<> --- !query 5488 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 5489 -SELECT cast(1 as decimal(4, 1)) > cast('1' as binary) FROM t --- !query 5489 schema -struct<> --- !query 5489 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 5490 -SELECT cast(1 as decimal(5, 1)) > cast('1' as binary) FROM t --- !query 5490 schema -struct<> --- !query 5490 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 5491 -SELECT cast(1 as decimal(6, 1)) > cast('1' as binary) FROM t --- !query 5491 schema -struct<> --- !query 5491 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 5492 -SELECT cast(1 as decimal(10, 1)) > cast('1' as binary) FROM t --- !query 5492 schema -struct<> --- !query 5492 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 5493 -SELECT cast(1 as decimal(11, 1)) > cast('1' as binary) FROM t --- !query 5493 schema -struct<> --- !query 5493 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 5494 -SELECT cast(1 as decimal(20, 1)) > cast('1' as binary) FROM t --- !query 5494 schema -struct<> --- !query 5494 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 5495 -SELECT cast(1 as decimal(21, 1)) > cast('1' as binary) FROM t --- !query 5495 schema -struct<> --- !query 5495 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 5496 -SELECT cast(1 as decimal(38, 1)) > cast('1' as binary) FROM t --- !query 5496 schema -struct<> --- !query 5496 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 5497 -SELECT cast(1 as decimal(39, 1)) > cast('1' as binary) FROM t --- !query 5497 schema -struct<> --- !query 5497 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast('1' as binary) FROM t - - --- !query 5498 -SELECT cast(1 as decimal(1, 0)) > cast(1 as boolean) FROM t --- !query 5498 schema -struct<> --- !query 5498 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 5499 -SELECT cast(1 as decimal(3, 0)) > cast(1 as boolean) FROM t --- !query 5499 schema -struct<> --- !query 5499 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 5500 -SELECT cast(1 as decimal(4, 0)) > cast(1 as boolean) FROM t --- !query 5500 schema -struct<> --- !query 5500 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 5501 -SELECT cast(1 as decimal(5, 0)) > cast(1 as boolean) FROM t --- !query 5501 schema -struct<> --- !query 5501 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 5502 -SELECT cast(1 as decimal(6, 0)) > cast(1 as boolean) FROM t --- !query 5502 schema -struct<> --- !query 5502 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 5503 -SELECT cast(1 as decimal(10, 0)) > cast(1 as boolean) FROM t --- !query 5503 schema -struct<> --- !query 5503 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 5504 -SELECT cast(1 as decimal(11, 0)) > cast(1 as boolean) FROM t --- !query 5504 schema -struct<> --- !query 5504 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 5505 -SELECT cast(1 as decimal(20, 0)) > cast(1 as boolean) FROM t --- !query 5505 schema -struct<> --- !query 5505 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 5506 -SELECT cast(1 as decimal(21, 0)) > cast(1 as boolean) FROM t --- !query 5506 schema -struct<> --- !query 5506 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 5507 -SELECT cast(1 as decimal(38, 0)) > cast(1 as boolean) FROM t --- !query 5507 schema -struct<> --- !query 5507 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 5508 -SELECT cast(1 as decimal(39, 0)) > cast(1 as boolean) FROM t --- !query 5508 schema -struct<> --- !query 5508 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast(1 as boolean) FROM t - - --- !query 5509 -SELECT cast(1 as decimal(1, 1)) > cast(1 as boolean) FROM t --- !query 5509 schema -struct<> --- !query 5509 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 5510 -SELECT cast(1 as decimal(2, 1)) > cast(1 as boolean) FROM t --- !query 5510 schema -struct<> --- !query 5510 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 5511 -SELECT cast(1 as decimal(3, 1)) > cast(1 as boolean) FROM t --- !query 5511 schema -struct<> --- !query 5511 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 5512 -SELECT cast(1 as decimal(4, 1)) > cast(1 as boolean) FROM t --- !query 5512 schema -struct<> --- !query 5512 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 5513 -SELECT cast(1 as decimal(5, 1)) > cast(1 as boolean) FROM t --- !query 5513 schema -struct<> --- !query 5513 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 5514 -SELECT cast(1 as decimal(6, 1)) > cast(1 as boolean) FROM t --- !query 5514 schema -struct<> --- !query 5514 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 5515 -SELECT cast(1 as decimal(10, 1)) > cast(1 as boolean) FROM t --- !query 5515 schema -struct<> --- !query 5515 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 5516 -SELECT cast(1 as decimal(11, 1)) > cast(1 as boolean) FROM t --- !query 5516 schema -struct<> --- !query 5516 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 5517 -SELECT cast(1 as decimal(20, 1)) > cast(1 as boolean) FROM t --- !query 5517 schema -struct<> --- !query 5517 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 5518 -SELECT cast(1 as decimal(21, 1)) > cast(1 as boolean) FROM t --- !query 5518 schema -struct<> --- !query 5518 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 5519 -SELECT cast(1 as decimal(38, 1)) > cast(1 as boolean) FROM t --- !query 5519 schema -struct<> --- !query 5519 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 5520 -SELECT cast(1 as decimal(39, 1)) > cast(1 as boolean) FROM t --- !query 5520 schema -struct<> --- !query 5520 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast(1 as boolean) FROM t - - --- !query 5521 -SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5521 schema -struct<> --- !query 5521 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 5522 -SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5522 schema -struct<> --- !query 5522 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 5523 -SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5523 schema -struct<> --- !query 5523 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 5524 -SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5524 schema -struct<> --- !query 5524 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 5525 -SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5525 schema -struct<> --- !query 5525 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 5526 -SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5526 schema -struct<> --- !query 5526 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 5527 -SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5527 schema -struct<> --- !query 5527 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 5528 -SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5528 schema -struct<> --- !query 5528 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 5529 -SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5529 schema -struct<> --- !query 5529 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 5530 -SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5530 schema -struct<> --- !query 5530 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 5531 -SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5531 schema -struct<> --- !query 5531 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 5532 -SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5532 schema -struct<> --- !query 5532 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 5533 -SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5533 schema -struct<> --- !query 5533 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 5534 -SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5534 schema -struct<> --- !query 5534 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 5535 -SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5535 schema -struct<> --- !query 5535 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 5536 -SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5536 schema -struct<> --- !query 5536 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 5537 -SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5537 schema -struct<> --- !query 5537 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 5538 -SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5538 schema -struct<> --- !query 5538 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 5539 -SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5539 schema -struct<> --- !query 5539 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 5540 -SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5540 schema -struct<> --- !query 5540 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 5541 -SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5541 schema -struct<> --- !query 5541 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 5542 -SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5542 schema -struct<> --- !query 5542 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 5543 -SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 5543 schema -struct<> --- !query 5543 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 5544 -SELECT cast(1 as decimal(1, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5544 schema -struct<> --- !query 5544 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 5545 -SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5545 schema -struct<> --- !query 5545 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 5546 -SELECT cast(1 as decimal(4, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5546 schema -struct<> --- !query 5546 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 5547 -SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5547 schema -struct<> --- !query 5547 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 5548 -SELECT cast(1 as decimal(6, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5548 schema -struct<> --- !query 5548 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 5549 -SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5549 schema -struct<> --- !query 5549 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 5550 -SELECT cast(1 as decimal(11, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5550 schema -struct<> --- !query 5550 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 5551 -SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5551 schema -struct<> --- !query 5551 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 5552 -SELECT cast(1 as decimal(21, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5552 schema -struct<> --- !query 5552 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 5553 -SELECT cast(1 as decimal(38, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5553 schema -struct<> --- !query 5553 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 5554 -SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5554 schema -struct<> --- !query 5554 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) > cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 5555 -SELECT cast(1 as decimal(1, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5555 schema -struct<> --- !query 5555 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 5556 -SELECT cast(1 as decimal(2, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5556 schema -struct<> --- !query 5556 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 5557 -SELECT cast(1 as decimal(3, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5557 schema -struct<> --- !query 5557 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 5558 -SELECT cast(1 as decimal(4, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5558 schema -struct<> --- !query 5558 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 5559 -SELECT cast(1 as decimal(5, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5559 schema -struct<> --- !query 5559 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 5560 -SELECT cast(1 as decimal(6, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5560 schema -struct<> --- !query 5560 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 5561 -SELECT cast(1 as decimal(10, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5561 schema -struct<> --- !query 5561 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 5562 -SELECT cast(1 as decimal(11, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5562 schema -struct<> --- !query 5562 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 5563 -SELECT cast(1 as decimal(20, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5563 schema -struct<> --- !query 5563 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 5564 -SELECT cast(1 as decimal(21, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5564 schema -struct<> --- !query 5564 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 5565 -SELECT cast(1 as decimal(38, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5565 schema -struct<> --- !query 5565 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) > CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 5566 -SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00' as date) FROM t --- !query 5566 schema -struct<> --- !query 5566 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) > cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 5567 -SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 0)) FROM t --- !query 5567 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0))):boolean> --- !query 5567 output -true - - --- !query 5568 -SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 0)) FROM t --- !query 5568 schema -struct<(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) >= CAST(1 AS DECIMAL(3,0))):boolean> --- !query 5568 output -true - - --- !query 5569 -SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 0)) FROM t --- !query 5569 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0))):boolean> --- !query 5569 output -true - - --- !query 5570 -SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 0)) FROM t --- !query 5570 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5570 output -true - - --- !query 5571 -SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 0)) FROM t --- !query 5571 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 5571 output -true - - --- !query 5572 -SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 0)) FROM t --- !query 5572 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5572 output -true - - --- !query 5573 -SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 0)) FROM t --- !query 5573 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5573 output -true - - --- !query 5574 -SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 0)) FROM t --- !query 5574 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5574 output -true - - --- !query 5575 -SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 0)) FROM t --- !query 5575 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5575 output -true - - --- !query 5576 -SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 0)) FROM t --- !query 5576 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5576 output -true - - --- !query 5577 -SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 0)) FROM t --- !query 5577 schema -struct<> --- !query 5577 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5578 -SELECT cast(1 as tinyint) >= cast(1 as decimal(1, 1)) FROM t --- !query 5578 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1))):boolean> --- !query 5578 output -NULL - - --- !query 5579 -SELECT cast(1 as tinyint) >= cast(1 as decimal(2, 1)) FROM t --- !query 5579 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1))):boolean> --- !query 5579 output -true - - --- !query 5580 -SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 1)) FROM t --- !query 5580 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1))):boolean> --- !query 5580 output -true - - --- !query 5581 -SELECT cast(1 as tinyint) >= cast(1 as decimal(4, 1)) FROM t --- !query 5581 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1))):boolean> --- !query 5581 output -true - - --- !query 5582 -SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 1)) FROM t --- !query 5582 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1))):boolean> --- !query 5582 output -true - - --- !query 5583 -SELECT cast(1 as tinyint) >= cast(1 as decimal(6, 1)) FROM t --- !query 5583 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 5583 output -true - - --- !query 5584 -SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 1)) FROM t --- !query 5584 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 5584 output -true - - --- !query 5585 -SELECT cast(1 as tinyint) >= cast(1 as decimal(11, 1)) FROM t --- !query 5585 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5585 output -true - - --- !query 5586 -SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 1)) FROM t --- !query 5586 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5586 output -true - - --- !query 5587 -SELECT cast(1 as tinyint) >= cast(1 as decimal(21, 1)) FROM t --- !query 5587 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5587 output -true - - --- !query 5588 -SELECT cast(1 as tinyint) >= cast(1 as decimal(38, 1)) FROM t --- !query 5588 schema -struct<(CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5588 output -true - - --- !query 5589 -SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 1)) FROM t --- !query 5589 schema -struct<> --- !query 5589 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5590 -SELECT cast(1 as smallint) >= cast(1 as decimal(1, 0)) FROM t --- !query 5590 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0))):boolean> --- !query 5590 output -true - - --- !query 5591 -SELECT cast(1 as smallint) >= cast(1 as decimal(3, 0)) FROM t --- !query 5591 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 5591 output -true - - --- !query 5592 -SELECT cast(1 as smallint) >= cast(1 as decimal(4, 0)) FROM t --- !query 5592 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0))):boolean> --- !query 5592 output -true - - --- !query 5593 -SELECT cast(1 as smallint) >= cast(1 as decimal(5, 0)) FROM t --- !query 5593 schema -struct<(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) >= CAST(1 AS DECIMAL(5,0))):boolean> --- !query 5593 output -true - - --- !query 5594 -SELECT cast(1 as smallint) >= cast(1 as decimal(6, 0)) FROM t --- !query 5594 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0))):boolean> --- !query 5594 output -true - - --- !query 5595 -SELECT cast(1 as smallint) >= cast(1 as decimal(10, 0)) FROM t --- !query 5595 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5595 output -true - - --- !query 5596 -SELECT cast(1 as smallint) >= cast(1 as decimal(11, 0)) FROM t --- !query 5596 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5596 output -true - - --- !query 5597 -SELECT cast(1 as smallint) >= cast(1 as decimal(20, 0)) FROM t --- !query 5597 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5597 output -true - - --- !query 5598 -SELECT cast(1 as smallint) >= cast(1 as decimal(21, 0)) FROM t --- !query 5598 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5598 output -true - - --- !query 5599 -SELECT cast(1 as smallint) >= cast(1 as decimal(38, 0)) FROM t --- !query 5599 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5599 output -true - - --- !query 5600 -SELECT cast(1 as smallint) >= cast(1 as decimal(39, 0)) FROM t --- !query 5600 schema -struct<> --- !query 5600 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5601 -SELECT cast(1 as smallint) >= cast(1 as decimal(1, 1)) FROM t --- !query 5601 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1))):boolean> --- !query 5601 output -NULL - - --- !query 5602 -SELECT cast(1 as smallint) >= cast(1 as decimal(2, 1)) FROM t --- !query 5602 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1))):boolean> --- !query 5602 output -true - - --- !query 5603 -SELECT cast(1 as smallint) >= cast(1 as decimal(3, 1)) FROM t --- !query 5603 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1))):boolean> --- !query 5603 output -true - - --- !query 5604 -SELECT cast(1 as smallint) >= cast(1 as decimal(4, 1)) FROM t --- !query 5604 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1))):boolean> --- !query 5604 output -true - - --- !query 5605 -SELECT cast(1 as smallint) >= cast(1 as decimal(5, 1)) FROM t --- !query 5605 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1))):boolean> --- !query 5605 output -true - - --- !query 5606 -SELECT cast(1 as smallint) >= cast(1 as decimal(6, 1)) FROM t --- !query 5606 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1))):boolean> --- !query 5606 output -true - - --- !query 5607 -SELECT cast(1 as smallint) >= cast(1 as decimal(10, 1)) FROM t --- !query 5607 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1))):boolean> --- !query 5607 output -true - - --- !query 5608 -SELECT cast(1 as smallint) >= cast(1 as decimal(11, 1)) FROM t --- !query 5608 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5608 output -true - - --- !query 5609 -SELECT cast(1 as smallint) >= cast(1 as decimal(20, 1)) FROM t --- !query 5609 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5609 output -true - - --- !query 5610 -SELECT cast(1 as smallint) >= cast(1 as decimal(21, 1)) FROM t --- !query 5610 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5610 output -true - - --- !query 5611 -SELECT cast(1 as smallint) >= cast(1 as decimal(38, 1)) FROM t --- !query 5611 schema -struct<(CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5611 output -true - - --- !query 5612 -SELECT cast(1 as smallint) >= cast(1 as decimal(39, 1)) FROM t --- !query 5612 schema -struct<> --- !query 5612 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5613 -SELECT cast(1 as int) >= cast(1 as decimal(1, 0)) FROM t --- !query 5613 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 5613 output -true - - --- !query 5614 -SELECT cast(1 as int) >= cast(1 as decimal(3, 0)) FROM t --- !query 5614 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 5614 output -true - - --- !query 5615 -SELECT cast(1 as int) >= cast(1 as decimal(4, 0)) FROM t --- !query 5615 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 5615 output -true - - --- !query 5616 -SELECT cast(1 as int) >= cast(1 as decimal(5, 0)) FROM t --- !query 5616 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 5616 output -true - - --- !query 5617 -SELECT cast(1 as int) >= cast(1 as decimal(6, 0)) FROM t --- !query 5617 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 5617 output -true - - --- !query 5618 -SELECT cast(1 as int) >= cast(1 as decimal(10, 0)) FROM t --- !query 5618 schema -struct<(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> --- !query 5618 output -true - - --- !query 5619 -SELECT cast(1 as int) >= cast(1 as decimal(11, 0)) FROM t --- !query 5619 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5619 output -true - - --- !query 5620 -SELECT cast(1 as int) >= cast(1 as decimal(20, 0)) FROM t --- !query 5620 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5620 output -true - - --- !query 5621 -SELECT cast(1 as int) >= cast(1 as decimal(21, 0)) FROM t --- !query 5621 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5621 output -true - - --- !query 5622 -SELECT cast(1 as int) >= cast(1 as decimal(38, 0)) FROM t --- !query 5622 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5622 output -true - - --- !query 5623 -SELECT cast(1 as int) >= cast(1 as decimal(39, 0)) FROM t --- !query 5623 schema -struct<> --- !query 5623 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5624 -SELECT cast(1 as int) >= cast(1 as decimal(1, 1)) FROM t --- !query 5624 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 5624 output -NULL - - --- !query 5625 -SELECT cast(1 as int) >= cast(1 as decimal(2, 1)) FROM t --- !query 5625 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 5625 output -true - - --- !query 5626 -SELECT cast(1 as int) >= cast(1 as decimal(3, 1)) FROM t --- !query 5626 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 5626 output -true - - --- !query 5627 -SELECT cast(1 as int) >= cast(1 as decimal(4, 1)) FROM t --- !query 5627 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 5627 output -true - - --- !query 5628 -SELECT cast(1 as int) >= cast(1 as decimal(5, 1)) FROM t --- !query 5628 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 5628 output -true - - --- !query 5629 -SELECT cast(1 as int) >= cast(1 as decimal(6, 1)) FROM t --- !query 5629 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 5629 output -true - - --- !query 5630 -SELECT cast(1 as int) >= cast(1 as decimal(10, 1)) FROM t --- !query 5630 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 5630 output -true - - --- !query 5631 -SELECT cast(1 as int) >= cast(1 as decimal(11, 1)) FROM t --- !query 5631 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5631 output -true - - --- !query 5632 -SELECT cast(1 as int) >= cast(1 as decimal(20, 1)) FROM t --- !query 5632 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5632 output -true - - --- !query 5633 -SELECT cast(1 as int) >= cast(1 as decimal(21, 1)) FROM t --- !query 5633 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5633 output -true - - --- !query 5634 -SELECT cast(1 as int) >= cast(1 as decimal(38, 1)) FROM t --- !query 5634 schema -struct<(CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5634 output -true - - --- !query 5635 -SELECT cast(1 as int) >= cast(1 as decimal(39, 1)) FROM t --- !query 5635 schema -struct<> --- !query 5635 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5636 -SELECT cast(1 as bigint) >= cast(1 as decimal(1, 0)) FROM t --- !query 5636 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0))):boolean> --- !query 5636 output -true - - --- !query 5637 -SELECT cast(1 as bigint) >= cast(1 as decimal(3, 0)) FROM t --- !query 5637 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 5637 output -true - - --- !query 5638 -SELECT cast(1 as bigint) >= cast(1 as decimal(4, 0)) FROM t --- !query 5638 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0))):boolean> --- !query 5638 output -true - - --- !query 5639 -SELECT cast(1 as bigint) >= cast(1 as decimal(5, 0)) FROM t --- !query 5639 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 5639 output -true - - --- !query 5640 -SELECT cast(1 as bigint) >= cast(1 as decimal(6, 0)) FROM t --- !query 5640 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0))):boolean> --- !query 5640 output -true - - --- !query 5641 -SELECT cast(1 as bigint) >= cast(1 as decimal(10, 0)) FROM t --- !query 5641 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 5641 output -true - - --- !query 5642 -SELECT cast(1 as bigint) >= cast(1 as decimal(11, 0)) FROM t --- !query 5642 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0))):boolean> --- !query 5642 output -true - - --- !query 5643 -SELECT cast(1 as bigint) >= cast(1 as decimal(20, 0)) FROM t --- !query 5643 schema -struct<(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) >= CAST(1 AS DECIMAL(20,0))):boolean> --- !query 5643 output -true - - --- !query 5644 -SELECT cast(1 as bigint) >= cast(1 as decimal(21, 0)) FROM t --- !query 5644 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5644 output -true - - --- !query 5645 -SELECT cast(1 as bigint) >= cast(1 as decimal(38, 0)) FROM t --- !query 5645 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5645 output -true - - --- !query 5646 -SELECT cast(1 as bigint) >= cast(1 as decimal(39, 0)) FROM t --- !query 5646 schema -struct<> --- !query 5646 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5647 -SELECT cast(1 as bigint) >= cast(1 as decimal(1, 1)) FROM t --- !query 5647 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1))):boolean> --- !query 5647 output -NULL - - --- !query 5648 -SELECT cast(1 as bigint) >= cast(1 as decimal(2, 1)) FROM t --- !query 5648 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1))):boolean> --- !query 5648 output -true - - --- !query 5649 -SELECT cast(1 as bigint) >= cast(1 as decimal(3, 1)) FROM t --- !query 5649 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1))):boolean> --- !query 5649 output -true - - --- !query 5650 -SELECT cast(1 as bigint) >= cast(1 as decimal(4, 1)) FROM t --- !query 5650 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1))):boolean> --- !query 5650 output -true - - --- !query 5651 -SELECT cast(1 as bigint) >= cast(1 as decimal(5, 1)) FROM t --- !query 5651 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1))):boolean> --- !query 5651 output -true - - --- !query 5652 -SELECT cast(1 as bigint) >= cast(1 as decimal(6, 1)) FROM t --- !query 5652 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1))):boolean> --- !query 5652 output -true - - --- !query 5653 -SELECT cast(1 as bigint) >= cast(1 as decimal(10, 1)) FROM t --- !query 5653 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1))):boolean> --- !query 5653 output -true - - --- !query 5654 -SELECT cast(1 as bigint) >= cast(1 as decimal(11, 1)) FROM t --- !query 5654 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1))):boolean> --- !query 5654 output -true - - --- !query 5655 -SELECT cast(1 as bigint) >= cast(1 as decimal(20, 1)) FROM t --- !query 5655 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1))):boolean> --- !query 5655 output -true - - --- !query 5656 -SELECT cast(1 as bigint) >= cast(1 as decimal(21, 1)) FROM t --- !query 5656 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5656 output -true - - --- !query 5657 -SELECT cast(1 as bigint) >= cast(1 as decimal(38, 1)) FROM t --- !query 5657 schema -struct<(CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5657 output -true - - --- !query 5658 -SELECT cast(1 as bigint) >= cast(1 as decimal(39, 1)) FROM t --- !query 5658 schema -struct<> --- !query 5658 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5659 -SELECT cast(1 as float) >= cast(1 as decimal(1, 0)) FROM t --- !query 5659 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 5659 output -true - - --- !query 5660 -SELECT cast(1 as float) >= cast(1 as decimal(3, 0)) FROM t --- !query 5660 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 5660 output -true - - --- !query 5661 -SELECT cast(1 as float) >= cast(1 as decimal(4, 0)) FROM t --- !query 5661 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 5661 output -true - - --- !query 5662 -SELECT cast(1 as float) >= cast(1 as decimal(5, 0)) FROM t --- !query 5662 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 5662 output -true - - --- !query 5663 -SELECT cast(1 as float) >= cast(1 as decimal(6, 0)) FROM t --- !query 5663 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 5663 output -true - - --- !query 5664 -SELECT cast(1 as float) >= cast(1 as decimal(10, 0)) FROM t --- !query 5664 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 5664 output -true - - --- !query 5665 -SELECT cast(1 as float) >= cast(1 as decimal(11, 0)) FROM t --- !query 5665 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 5665 output -true - - --- !query 5666 -SELECT cast(1 as float) >= cast(1 as decimal(20, 0)) FROM t --- !query 5666 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 5666 output -true - - --- !query 5667 -SELECT cast(1 as float) >= cast(1 as decimal(21, 0)) FROM t --- !query 5667 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 5667 output -true - - --- !query 5668 -SELECT cast(1 as float) >= cast(1 as decimal(38, 0)) FROM t --- !query 5668 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 5668 output -true - - --- !query 5669 -SELECT cast(1 as float) >= cast(1 as decimal(39, 0)) FROM t --- !query 5669 schema -struct<> --- !query 5669 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5670 -SELECT cast(1 as float) >= cast(1 as decimal(1, 1)) FROM t --- !query 5670 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 5670 output -NULL - - --- !query 5671 -SELECT cast(1 as float) >= cast(1 as decimal(2, 1)) FROM t --- !query 5671 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 5671 output -true - - --- !query 5672 -SELECT cast(1 as float) >= cast(1 as decimal(3, 1)) FROM t --- !query 5672 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 5672 output -true - - --- !query 5673 -SELECT cast(1 as float) >= cast(1 as decimal(4, 1)) FROM t --- !query 5673 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 5673 output -true - - --- !query 5674 -SELECT cast(1 as float) >= cast(1 as decimal(5, 1)) FROM t --- !query 5674 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 5674 output -true - - --- !query 5675 -SELECT cast(1 as float) >= cast(1 as decimal(6, 1)) FROM t --- !query 5675 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 5675 output -true - - --- !query 5676 -SELECT cast(1 as float) >= cast(1 as decimal(10, 1)) FROM t --- !query 5676 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 5676 output -true - - --- !query 5677 -SELECT cast(1 as float) >= cast(1 as decimal(11, 1)) FROM t --- !query 5677 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 5677 output -true - - --- !query 5678 -SELECT cast(1 as float) >= cast(1 as decimal(20, 1)) FROM t --- !query 5678 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 5678 output -true - - --- !query 5679 -SELECT cast(1 as float) >= cast(1 as decimal(21, 1)) FROM t --- !query 5679 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 5679 output -true - - --- !query 5680 -SELECT cast(1 as float) >= cast(1 as decimal(38, 1)) FROM t --- !query 5680 schema -struct<(CAST(CAST(1 AS FLOAT) AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 5680 output -true - - --- !query 5681 -SELECT cast(1 as float) >= cast(1 as decimal(39, 1)) FROM t --- !query 5681 schema -struct<> --- !query 5681 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5682 -SELECT cast(1 as double) >= cast(1 as decimal(1, 0)) FROM t --- !query 5682 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE)):boolean> --- !query 5682 output -true - - --- !query 5683 -SELECT cast(1 as double) >= cast(1 as decimal(3, 0)) FROM t --- !query 5683 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE)):boolean> --- !query 5683 output -true - - --- !query 5684 -SELECT cast(1 as double) >= cast(1 as decimal(4, 0)) FROM t --- !query 5684 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE)):boolean> --- !query 5684 output -true - - --- !query 5685 -SELECT cast(1 as double) >= cast(1 as decimal(5, 0)) FROM t --- !query 5685 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE)):boolean> --- !query 5685 output -true - - --- !query 5686 -SELECT cast(1 as double) >= cast(1 as decimal(6, 0)) FROM t --- !query 5686 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE)):boolean> --- !query 5686 output -true - - --- !query 5687 -SELECT cast(1 as double) >= cast(1 as decimal(10, 0)) FROM t --- !query 5687 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE)):boolean> --- !query 5687 output -true - - --- !query 5688 -SELECT cast(1 as double) >= cast(1 as decimal(11, 0)) FROM t --- !query 5688 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE)):boolean> --- !query 5688 output -true - - --- !query 5689 -SELECT cast(1 as double) >= cast(1 as decimal(20, 0)) FROM t --- !query 5689 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE)):boolean> --- !query 5689 output -true - - --- !query 5690 -SELECT cast(1 as double) >= cast(1 as decimal(21, 0)) FROM t --- !query 5690 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE)):boolean> --- !query 5690 output -true - - --- !query 5691 -SELECT cast(1 as double) >= cast(1 as decimal(38, 0)) FROM t --- !query 5691 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE)):boolean> --- !query 5691 output -true - - --- !query 5692 -SELECT cast(1 as double) >= cast(1 as decimal(39, 0)) FROM t --- !query 5692 schema -struct<> --- !query 5692 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5693 -SELECT cast(1 as double) >= cast(1 as decimal(1, 1)) FROM t --- !query 5693 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE)):boolean> --- !query 5693 output -NULL - - --- !query 5694 -SELECT cast(1 as double) >= cast(1 as decimal(2, 1)) FROM t --- !query 5694 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE)):boolean> --- !query 5694 output -true - - --- !query 5695 -SELECT cast(1 as double) >= cast(1 as decimal(3, 1)) FROM t --- !query 5695 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE)):boolean> --- !query 5695 output -true - - --- !query 5696 -SELECT cast(1 as double) >= cast(1 as decimal(4, 1)) FROM t --- !query 5696 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE)):boolean> --- !query 5696 output -true - - --- !query 5697 -SELECT cast(1 as double) >= cast(1 as decimal(5, 1)) FROM t --- !query 5697 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE)):boolean> --- !query 5697 output -true - - --- !query 5698 -SELECT cast(1 as double) >= cast(1 as decimal(6, 1)) FROM t --- !query 5698 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE)):boolean> --- !query 5698 output -true - - --- !query 5699 -SELECT cast(1 as double) >= cast(1 as decimal(10, 1)) FROM t --- !query 5699 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE)):boolean> --- !query 5699 output -true - - --- !query 5700 -SELECT cast(1 as double) >= cast(1 as decimal(11, 1)) FROM t --- !query 5700 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE)):boolean> --- !query 5700 output -true - - --- !query 5701 -SELECT cast(1 as double) >= cast(1 as decimal(20, 1)) FROM t --- !query 5701 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE)):boolean> --- !query 5701 output -true - - --- !query 5702 -SELECT cast(1 as double) >= cast(1 as decimal(21, 1)) FROM t --- !query 5702 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE)):boolean> --- !query 5702 output -true - - --- !query 5703 -SELECT cast(1 as double) >= cast(1 as decimal(38, 1)) FROM t --- !query 5703 schema -struct<(CAST(1 AS DOUBLE) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE)):boolean> --- !query 5703 output -true - - --- !query 5704 -SELECT cast(1 as double) >= cast(1 as decimal(39, 1)) FROM t --- !query 5704 schema -struct<> --- !query 5704 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5705 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 0)) FROM t --- !query 5705 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0))):boolean> --- !query 5705 output -true - - --- !query 5706 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 0)) FROM t --- !query 5706 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 5706 output -true - - --- !query 5707 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 0)) FROM t --- !query 5707 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0))):boolean> --- !query 5707 output -true - - --- !query 5708 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 0)) FROM t --- !query 5708 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 5708 output -true - - --- !query 5709 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 0)) FROM t --- !query 5709 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0))):boolean> --- !query 5709 output -true - - --- !query 5710 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5710 schema -struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> --- !query 5710 output -true - - --- !query 5711 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 0)) FROM t --- !query 5711 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0))):boolean> --- !query 5711 output -true - - --- !query 5712 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 0)) FROM t --- !query 5712 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5712 output -true - - --- !query 5713 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 0)) FROM t --- !query 5713 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0))):boolean> --- !query 5713 output -true - - --- !query 5714 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 0)) FROM t --- !query 5714 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0))):boolean> --- !query 5714 output -true - - --- !query 5715 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 0)) FROM t --- !query 5715 schema -struct<> --- !query 5715 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5716 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(1, 1)) FROM t --- !query 5716 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1))):boolean> --- !query 5716 output -NULL - - --- !query 5717 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(2, 1)) FROM t --- !query 5717 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1))):boolean> --- !query 5717 output -true - - --- !query 5718 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 1)) FROM t --- !query 5718 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1))):boolean> --- !query 5718 output -true - - --- !query 5719 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(4, 1)) FROM t --- !query 5719 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1))):boolean> --- !query 5719 output -true - - --- !query 5720 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 1)) FROM t --- !query 5720 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1))):boolean> --- !query 5720 output -true - - --- !query 5721 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(6, 1)) FROM t --- !query 5721 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1))):boolean> --- !query 5721 output -true - - --- !query 5722 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 1)) FROM t --- !query 5722 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1))):boolean> --- !query 5722 output -true - - --- !query 5723 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(11, 1)) FROM t --- !query 5723 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1))):boolean> --- !query 5723 output -true - - --- !query 5724 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 1)) FROM t --- !query 5724 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1))):boolean> --- !query 5724 output -true - - --- !query 5725 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(21, 1)) FROM t --- !query 5725 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1))):boolean> --- !query 5725 output -true - - --- !query 5726 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(38, 1)) FROM t --- !query 5726 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1))):boolean> --- !query 5726 output -true - - --- !query 5727 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 1)) FROM t --- !query 5727 schema -struct<> --- !query 5727 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5728 -SELECT cast('1' as binary) >= cast(1 as decimal(1, 0)) FROM t --- !query 5728 schema -struct<> --- !query 5728 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 5729 -SELECT cast('1' as binary) >= cast(1 as decimal(3, 0)) FROM t --- !query 5729 schema -struct<> --- !query 5729 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 5730 -SELECT cast('1' as binary) >= cast(1 as decimal(4, 0)) FROM t --- !query 5730 schema -struct<> --- !query 5730 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 5731 -SELECT cast('1' as binary) >= cast(1 as decimal(5, 0)) FROM t --- !query 5731 schema -struct<> --- !query 5731 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 5732 -SELECT cast('1' as binary) >= cast(1 as decimal(6, 0)) FROM t --- !query 5732 schema -struct<> --- !query 5732 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 5733 -SELECT cast('1' as binary) >= cast(1 as decimal(10, 0)) FROM t --- !query 5733 schema -struct<> --- !query 5733 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 5734 -SELECT cast('1' as binary) >= cast(1 as decimal(11, 0)) FROM t --- !query 5734 schema -struct<> --- !query 5734 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 5735 -SELECT cast('1' as binary) >= cast(1 as decimal(20, 0)) FROM t --- !query 5735 schema -struct<> --- !query 5735 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 5736 -SELECT cast('1' as binary) >= cast(1 as decimal(21, 0)) FROM t --- !query 5736 schema -struct<> --- !query 5736 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 5737 -SELECT cast('1' as binary) >= cast(1 as decimal(38, 0)) FROM t --- !query 5737 schema -struct<> --- !query 5737 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 5738 -SELECT cast('1' as binary) >= cast(1 as decimal(39, 0)) FROM t --- !query 5738 schema -struct<> --- !query 5738 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5739 -SELECT cast('1' as binary) >= cast(1 as decimal(1, 1)) FROM t --- !query 5739 schema -struct<> --- !query 5739 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 5740 -SELECT cast('1' as binary) >= cast(1 as decimal(2, 1)) FROM t --- !query 5740 schema -struct<> --- !query 5740 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 5741 -SELECT cast('1' as binary) >= cast(1 as decimal(3, 1)) FROM t --- !query 5741 schema -struct<> --- !query 5741 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 5742 -SELECT cast('1' as binary) >= cast(1 as decimal(4, 1)) FROM t --- !query 5742 schema -struct<> --- !query 5742 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 5743 -SELECT cast('1' as binary) >= cast(1 as decimal(5, 1)) FROM t --- !query 5743 schema -struct<> --- !query 5743 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 5744 -SELECT cast('1' as binary) >= cast(1 as decimal(6, 1)) FROM t --- !query 5744 schema -struct<> --- !query 5744 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 5745 -SELECT cast('1' as binary) >= cast(1 as decimal(10, 1)) FROM t --- !query 5745 schema -struct<> --- !query 5745 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 5746 -SELECT cast('1' as binary) >= cast(1 as decimal(11, 1)) FROM t --- !query 5746 schema -struct<> --- !query 5746 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 5747 -SELECT cast('1' as binary) >= cast(1 as decimal(20, 1)) FROM t --- !query 5747 schema -struct<> --- !query 5747 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 5748 -SELECT cast('1' as binary) >= cast(1 as decimal(21, 1)) FROM t --- !query 5748 schema -struct<> --- !query 5748 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 5749 -SELECT cast('1' as binary) >= cast(1 as decimal(38, 1)) FROM t --- !query 5749 schema -struct<> --- !query 5749 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) >= CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 5750 -SELECT cast('1' as binary) >= cast(1 as decimal(39, 1)) FROM t --- !query 5750 schema -struct<> --- !query 5750 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5751 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 0)) FROM t --- !query 5751 schema -struct<> --- !query 5751 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 5752 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 0)) FROM t --- !query 5752 schema -struct<> --- !query 5752 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 5753 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 0)) FROM t --- !query 5753 schema -struct<> --- !query 5753 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 5754 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 0)) FROM t --- !query 5754 schema -struct<> --- !query 5754 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 5755 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 0)) FROM t --- !query 5755 schema -struct<> --- !query 5755 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 5756 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 0)) FROM t --- !query 5756 schema -struct<> --- !query 5756 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 5757 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 0)) FROM t --- !query 5757 schema -struct<> --- !query 5757 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 5758 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 0)) FROM t --- !query 5758 schema -struct<> --- !query 5758 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 5759 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 0)) FROM t --- !query 5759 schema -struct<> --- !query 5759 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 5760 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 0)) FROM t --- !query 5760 schema -struct<> --- !query 5760 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 5761 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 0)) FROM t --- !query 5761 schema -struct<> --- !query 5761 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5762 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(1, 1)) FROM t --- !query 5762 schema -struct<> --- !query 5762 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 5763 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(2, 1)) FROM t --- !query 5763 schema -struct<> --- !query 5763 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 5764 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 1)) FROM t --- !query 5764 schema -struct<> --- !query 5764 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 5765 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(4, 1)) FROM t --- !query 5765 schema -struct<> --- !query 5765 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 5766 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 1)) FROM t --- !query 5766 schema -struct<> --- !query 5766 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 5767 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(6, 1)) FROM t --- !query 5767 schema -struct<> --- !query 5767 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 5768 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 1)) FROM t --- !query 5768 schema -struct<> --- !query 5768 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 5769 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(11, 1)) FROM t --- !query 5769 schema -struct<> --- !query 5769 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 5770 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 1)) FROM t --- !query 5770 schema -struct<> --- !query 5770 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 5771 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(21, 1)) FROM t --- !query 5771 schema -struct<> --- !query 5771 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 5772 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(38, 1)) FROM t --- !query 5772 schema -struct<> --- !query 5772 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) >= CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 5773 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 1)) FROM t --- !query 5773 schema -struct<> --- !query 5773 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5774 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 0)) FROM t --- !query 5774 schema -struct<> --- !query 5774 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 5775 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 0)) FROM t --- !query 5775 schema -struct<> --- !query 5775 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 5776 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 0)) FROM t --- !query 5776 schema -struct<> --- !query 5776 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 5777 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 0)) FROM t --- !query 5777 schema -struct<> --- !query 5777 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 5778 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 0)) FROM t --- !query 5778 schema -struct<> --- !query 5778 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 5779 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 0)) FROM t --- !query 5779 schema -struct<> --- !query 5779 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 5780 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 0)) FROM t --- !query 5780 schema -struct<> --- !query 5780 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 5781 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 0)) FROM t --- !query 5781 schema -struct<> --- !query 5781 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 5782 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 0)) FROM t --- !query 5782 schema -struct<> --- !query 5782 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 5783 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 0)) FROM t --- !query 5783 schema -struct<> --- !query 5783 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 5784 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 0)) FROM t --- !query 5784 schema -struct<> --- !query 5784 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 0)) FROM t - - --- !query 5785 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(1, 1)) FROM t --- !query 5785 schema -struct<> --- !query 5785 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 5786 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(2, 1)) FROM t --- !query 5786 schema -struct<> --- !query 5786 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 5787 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 1)) FROM t --- !query 5787 schema -struct<> --- !query 5787 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 5788 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(4, 1)) FROM t --- !query 5788 schema -struct<> --- !query 5788 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 5789 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 1)) FROM t --- !query 5789 schema -struct<> --- !query 5789 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 5790 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(6, 1)) FROM t --- !query 5790 schema -struct<> --- !query 5790 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 5791 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 1)) FROM t --- !query 5791 schema -struct<> --- !query 5791 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 5792 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(11, 1)) FROM t --- !query 5792 schema -struct<> --- !query 5792 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 5793 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 1)) FROM t --- !query 5793 schema -struct<> --- !query 5793 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 5794 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(21, 1)) FROM t --- !query 5794 schema -struct<> --- !query 5794 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 5795 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(38, 1)) FROM t --- !query 5795 schema -struct<> --- !query 5795 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) >= CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 5796 -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 1)) FROM t --- !query 5796 schema -struct<> --- !query 5796 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(39, 1)) FROM t - - --- !query 5797 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as tinyint) FROM t --- !query 5797 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0))):boolean> --- !query 5797 output -true - - --- !query 5798 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as tinyint) FROM t --- !query 5798 schema -struct<(CAST(1 AS DECIMAL(3,0)) >= CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0))):boolean> --- !query 5798 output -true - - --- !query 5799 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as tinyint) FROM t --- !query 5799 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0))):boolean> --- !query 5799 output -true - - --- !query 5800 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as tinyint) FROM t --- !query 5800 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0))):boolean> --- !query 5800 output -true - - --- !query 5801 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as tinyint) FROM t --- !query 5801 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0))):boolean> --- !query 5801 output -true - - --- !query 5802 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as tinyint) FROM t --- !query 5802 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0))):boolean> --- !query 5802 output -true - - --- !query 5803 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as tinyint) FROM t --- !query 5803 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0))):boolean> --- !query 5803 output -true - - --- !query 5804 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as tinyint) FROM t --- !query 5804 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0))):boolean> --- !query 5804 output -true - - --- !query 5805 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as tinyint) FROM t --- !query 5805 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0))):boolean> --- !query 5805 output -true - - --- !query 5806 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as tinyint) FROM t --- !query 5806 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0))):boolean> --- !query 5806 output -true - - --- !query 5807 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as tinyint) FROM t --- !query 5807 schema -struct<> --- !query 5807 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as tinyint) FROM t - - --- !query 5808 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as tinyint) FROM t --- !query 5808 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5808 output -NULL - - --- !query 5809 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as tinyint) FROM t --- !query 5809 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5809 output -true - - --- !query 5810 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as tinyint) FROM t --- !query 5810 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5810 output -true - - --- !query 5811 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as tinyint) FROM t --- !query 5811 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1))):boolean> --- !query 5811 output -true - - --- !query 5812 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as tinyint) FROM t --- !query 5812 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1))):boolean> --- !query 5812 output -true - - --- !query 5813 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as tinyint) FROM t --- !query 5813 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1))):boolean> --- !query 5813 output -true - - --- !query 5814 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as tinyint) FROM t --- !query 5814 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1))):boolean> --- !query 5814 output -true - - --- !query 5815 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as tinyint) FROM t --- !query 5815 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1))):boolean> --- !query 5815 output -true - - --- !query 5816 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as tinyint) FROM t --- !query 5816 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1))):boolean> --- !query 5816 output -true - - --- !query 5817 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as tinyint) FROM t --- !query 5817 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1))):boolean> --- !query 5817 output -true - - --- !query 5818 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as tinyint) FROM t --- !query 5818 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1))):boolean> --- !query 5818 output -true - - --- !query 5819 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as tinyint) FROM t --- !query 5819 schema -struct<> --- !query 5819 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as tinyint) FROM t - - --- !query 5820 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as smallint) FROM t --- !query 5820 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5820 output -true - - --- !query 5821 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as smallint) FROM t --- !query 5821 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5821 output -true - - --- !query 5822 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as smallint) FROM t --- !query 5822 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0))):boolean> --- !query 5822 output -true - - --- !query 5823 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as smallint) FROM t --- !query 5823 schema -struct<(CAST(1 AS DECIMAL(5,0)) >= CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0))):boolean> --- !query 5823 output -true - - --- !query 5824 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as smallint) FROM t --- !query 5824 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0))):boolean> --- !query 5824 output -true - - --- !query 5825 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as smallint) FROM t --- !query 5825 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0))):boolean> --- !query 5825 output -true - - --- !query 5826 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as smallint) FROM t --- !query 5826 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0))):boolean> --- !query 5826 output -true - - --- !query 5827 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as smallint) FROM t --- !query 5827 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0))):boolean> --- !query 5827 output -true - - --- !query 5828 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as smallint) FROM t --- !query 5828 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0))):boolean> --- !query 5828 output -true - - --- !query 5829 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as smallint) FROM t --- !query 5829 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0))):boolean> --- !query 5829 output -true - - --- !query 5830 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as smallint) FROM t --- !query 5830 schema -struct<> --- !query 5830 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as smallint) FROM t - - --- !query 5831 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as smallint) FROM t --- !query 5831 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5831 output -NULL - - --- !query 5832 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as smallint) FROM t --- !query 5832 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5832 output -true - - --- !query 5833 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as smallint) FROM t --- !query 5833 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5833 output -true - - --- !query 5834 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as smallint) FROM t --- !query 5834 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5834 output -true - - --- !query 5835 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as smallint) FROM t --- !query 5835 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5835 output -true - - --- !query 5836 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as smallint) FROM t --- !query 5836 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1))):boolean> --- !query 5836 output -true - - --- !query 5837 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as smallint) FROM t --- !query 5837 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1))):boolean> --- !query 5837 output -true - - --- !query 5838 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as smallint) FROM t --- !query 5838 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1))):boolean> --- !query 5838 output -true - - --- !query 5839 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as smallint) FROM t --- !query 5839 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1))):boolean> --- !query 5839 output -true - - --- !query 5840 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as smallint) FROM t --- !query 5840 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1))):boolean> --- !query 5840 output -true - - --- !query 5841 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as smallint) FROM t --- !query 5841 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1))):boolean> --- !query 5841 output -true - - --- !query 5842 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as smallint) FROM t --- !query 5842 schema -struct<> --- !query 5842 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as smallint) FROM t - - --- !query 5843 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as int) FROM t --- !query 5843 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5843 output -true - - --- !query 5844 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as int) FROM t --- !query 5844 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5844 output -true - - --- !query 5845 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as int) FROM t --- !query 5845 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5845 output -true - - --- !query 5846 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as int) FROM t --- !query 5846 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5846 output -true - - --- !query 5847 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as int) FROM t --- !query 5847 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5847 output -true - - --- !query 5848 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as int) FROM t --- !query 5848 schema -struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(CAST(1 AS INT) AS DECIMAL(10,0))):boolean> --- !query 5848 output -true - - --- !query 5849 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as int) FROM t --- !query 5849 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 5849 output -true - - --- !query 5850 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as int) FROM t --- !query 5850 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 5850 output -true - - --- !query 5851 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as int) FROM t --- !query 5851 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 5851 output -true - - --- !query 5852 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as int) FROM t --- !query 5852 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 5852 output -true - - --- !query 5853 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as int) FROM t --- !query 5853 schema -struct<> --- !query 5853 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as int) FROM t - - --- !query 5854 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as int) FROM t --- !query 5854 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5854 output -NULL - - --- !query 5855 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as int) FROM t --- !query 5855 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5855 output -true - - --- !query 5856 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as int) FROM t --- !query 5856 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5856 output -true - - --- !query 5857 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as int) FROM t --- !query 5857 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5857 output -true - - --- !query 5858 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as int) FROM t --- !query 5858 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5858 output -true - - --- !query 5859 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as int) FROM t --- !query 5859 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5859 output -true - - --- !query 5860 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as int) FROM t --- !query 5860 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5860 output -true - - --- !query 5861 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as int) FROM t --- !query 5861 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5861 output -true - - --- !query 5862 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as int) FROM t --- !query 5862 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 5862 output -true - - --- !query 5863 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as int) FROM t --- !query 5863 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 5863 output -true - - --- !query 5864 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as int) FROM t --- !query 5864 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 5864 output -true - - --- !query 5865 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as int) FROM t --- !query 5865 schema -struct<> --- !query 5865 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as int) FROM t - - --- !query 5866 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as bigint) FROM t --- !query 5866 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5866 output -true - - --- !query 5867 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as bigint) FROM t --- !query 5867 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5867 output -true - - --- !query 5868 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as bigint) FROM t --- !query 5868 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5868 output -true - - --- !query 5869 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as bigint) FROM t --- !query 5869 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5869 output -true - - --- !query 5870 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as bigint) FROM t --- !query 5870 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5870 output -true - - --- !query 5871 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as bigint) FROM t --- !query 5871 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5871 output -true - - --- !query 5872 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as bigint) FROM t --- !query 5872 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0))):boolean> --- !query 5872 output -true - - --- !query 5873 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as bigint) FROM t --- !query 5873 schema -struct<(CAST(1 AS DECIMAL(20,0)) >= CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0))):boolean> --- !query 5873 output -true - - --- !query 5874 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as bigint) FROM t --- !query 5874 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0))):boolean> --- !query 5874 output -true - - --- !query 5875 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as bigint) FROM t --- !query 5875 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0))):boolean> --- !query 5875 output -true - - --- !query 5876 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as bigint) FROM t --- !query 5876 schema -struct<> --- !query 5876 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as bigint) FROM t - - --- !query 5877 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as bigint) FROM t --- !query 5877 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5877 output -NULL - - --- !query 5878 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as bigint) FROM t --- !query 5878 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5878 output -true - - --- !query 5879 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as bigint) FROM t --- !query 5879 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5879 output -true - - --- !query 5880 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as bigint) FROM t --- !query 5880 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5880 output -true - - --- !query 5881 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as bigint) FROM t --- !query 5881 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5881 output -true - - --- !query 5882 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as bigint) FROM t --- !query 5882 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5882 output -true - - --- !query 5883 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as bigint) FROM t --- !query 5883 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5883 output -true - - --- !query 5884 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as bigint) FROM t --- !query 5884 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5884 output -true - - --- !query 5885 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as bigint) FROM t --- !query 5885 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5885 output -true - - --- !query 5886 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as bigint) FROM t --- !query 5886 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1))):boolean> --- !query 5886 output -true - - --- !query 5887 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as bigint) FROM t --- !query 5887 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1))):boolean> --- !query 5887 output -true - - --- !query 5888 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as bigint) FROM t --- !query 5888 schema -struct<> --- !query 5888 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as bigint) FROM t - - --- !query 5889 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as float) FROM t --- !query 5889 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5889 output -true - - --- !query 5890 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as float) FROM t --- !query 5890 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5890 output -true - - --- !query 5891 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as float) FROM t --- !query 5891 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5891 output -true - - --- !query 5892 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as float) FROM t --- !query 5892 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5892 output -true - - --- !query 5893 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as float) FROM t --- !query 5893 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5893 output -true - - --- !query 5894 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as float) FROM t --- !query 5894 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5894 output -true - - --- !query 5895 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as float) FROM t --- !query 5895 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5895 output -true - - --- !query 5896 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as float) FROM t --- !query 5896 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5896 output -true - - --- !query 5897 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as float) FROM t --- !query 5897 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5897 output -true - - --- !query 5898 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as float) FROM t --- !query 5898 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5898 output -true - - --- !query 5899 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as float) FROM t --- !query 5899 schema -struct<> --- !query 5899 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as float) FROM t - - --- !query 5900 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as float) FROM t --- !query 5900 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5900 output -NULL - - --- !query 5901 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as float) FROM t --- !query 5901 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5901 output -true - - --- !query 5902 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as float) FROM t --- !query 5902 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5902 output -true - - --- !query 5903 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as float) FROM t --- !query 5903 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5903 output -true - - --- !query 5904 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as float) FROM t --- !query 5904 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5904 output -true - - --- !query 5905 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as float) FROM t --- !query 5905 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5905 output -true - - --- !query 5906 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as float) FROM t --- !query 5906 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5906 output -true - - --- !query 5907 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as float) FROM t --- !query 5907 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5907 output -true - - --- !query 5908 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as float) FROM t --- !query 5908 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5908 output -true - - --- !query 5909 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as float) FROM t --- !query 5909 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5909 output -true - - --- !query 5910 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as float) FROM t --- !query 5910 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) >= CAST(CAST(1 AS FLOAT) AS DOUBLE)):boolean> --- !query 5910 output -true - - --- !query 5911 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as float) FROM t --- !query 5911 schema -struct<> --- !query 5911 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as float) FROM t - - --- !query 5912 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as double) FROM t --- !query 5912 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5912 output -true - - --- !query 5913 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as double) FROM t --- !query 5913 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5913 output -true - - --- !query 5914 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as double) FROM t --- !query 5914 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5914 output -true - - --- !query 5915 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as double) FROM t --- !query 5915 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5915 output -true - - --- !query 5916 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as double) FROM t --- !query 5916 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5916 output -true - - --- !query 5917 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as double) FROM t --- !query 5917 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5917 output -true - - --- !query 5918 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as double) FROM t --- !query 5918 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5918 output -true - - --- !query 5919 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as double) FROM t --- !query 5919 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5919 output -true - - --- !query 5920 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as double) FROM t --- !query 5920 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5920 output -true - - --- !query 5921 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as double) FROM t --- !query 5921 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5921 output -true - - --- !query 5922 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as double) FROM t --- !query 5922 schema -struct<> --- !query 5922 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as double) FROM t - - --- !query 5923 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as double) FROM t --- !query 5923 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5923 output -NULL - - --- !query 5924 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as double) FROM t --- !query 5924 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5924 output -true - - --- !query 5925 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as double) FROM t --- !query 5925 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5925 output -true - - --- !query 5926 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as double) FROM t --- !query 5926 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5926 output -true - - --- !query 5927 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as double) FROM t --- !query 5927 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5927 output -true - - --- !query 5928 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as double) FROM t --- !query 5928 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5928 output -true - - --- !query 5929 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as double) FROM t --- !query 5929 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5929 output -true - - --- !query 5930 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as double) FROM t --- !query 5930 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5930 output -true - - --- !query 5931 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as double) FROM t --- !query 5931 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5931 output -true - - --- !query 5932 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as double) FROM t --- !query 5932 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5932 output -true - - --- !query 5933 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as double) FROM t --- !query 5933 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) >= CAST(1 AS DOUBLE)):boolean> --- !query 5933 output -true - - --- !query 5934 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as double) FROM t --- !query 5934 schema -struct<> --- !query 5934 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as double) FROM t - - --- !query 5935 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5935 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5935 output -true - - --- !query 5936 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5936 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5936 output -true - - --- !query 5937 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5937 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5937 output -true - - --- !query 5938 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5938 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5938 output -true - - --- !query 5939 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5939 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0))):boolean> --- !query 5939 output -true - - --- !query 5940 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5940 schema -struct<(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS DECIMAL(10,0))):boolean> --- !query 5940 output -true - - --- !query 5941 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5941 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0))):boolean> --- !query 5941 output -true - - --- !query 5942 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5942 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0))):boolean> --- !query 5942 output -true - - --- !query 5943 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5943 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0))):boolean> --- !query 5943 output -true - - --- !query 5944 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5944 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0))):boolean> --- !query 5944 output -true - - --- !query 5945 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5945 schema -struct<> --- !query 5945 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as decimal(10, 0)) FROM t - - --- !query 5946 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5946 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5946 output -NULL - - --- !query 5947 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5947 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5947 output -true - - --- !query 5948 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5948 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5948 output -true - - --- !query 5949 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5949 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5949 output -true - - --- !query 5950 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5950 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5950 output -true - - --- !query 5951 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5951 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5951 output -true - - --- !query 5952 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5952 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5952 output -true - - --- !query 5953 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5953 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1))):boolean> --- !query 5953 output -true - - --- !query 5954 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5954 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1))):boolean> --- !query 5954 output -true - - --- !query 5955 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5955 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1))):boolean> --- !query 5955 output -true - - --- !query 5956 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5956 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) >= CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1))):boolean> --- !query 5956 output -true - - --- !query 5957 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as decimal(10, 0)) FROM t --- !query 5957 schema -struct<> --- !query 5957 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as decimal(10, 0)) FROM t - - --- !query 5958 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as string) FROM t --- !query 5958 schema -struct<(CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5958 output -true - - --- !query 5959 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as string) FROM t --- !query 5959 schema -struct<(CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5959 output -true - - --- !query 5960 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as string) FROM t --- !query 5960 schema -struct<(CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5960 output -true - - --- !query 5961 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as string) FROM t --- !query 5961 schema -struct<(CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5961 output -true - - --- !query 5962 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as string) FROM t --- !query 5962 schema -struct<(CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5962 output -true - - --- !query 5963 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as string) FROM t --- !query 5963 schema -struct<(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5963 output -true - - --- !query 5964 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as string) FROM t --- !query 5964 schema -struct<(CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5964 output -true - - --- !query 5965 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as string) FROM t --- !query 5965 schema -struct<(CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5965 output -true - - --- !query 5966 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as string) FROM t --- !query 5966 schema -struct<(CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5966 output -true - - --- !query 5967 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as string) FROM t --- !query 5967 schema -struct<(CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5967 output -true - - --- !query 5968 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as string) FROM t --- !query 5968 schema -struct<> --- !query 5968 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as string) FROM t - - --- !query 5969 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as string) FROM t --- !query 5969 schema -struct<(CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5969 output -NULL - - --- !query 5970 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as string) FROM t --- !query 5970 schema -struct<(CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5970 output -true - - --- !query 5971 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as string) FROM t --- !query 5971 schema -struct<(CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5971 output -true - - --- !query 5972 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as string) FROM t --- !query 5972 schema -struct<(CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5972 output -true - - --- !query 5973 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as string) FROM t --- !query 5973 schema -struct<(CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5973 output -true - - --- !query 5974 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as string) FROM t --- !query 5974 schema -struct<(CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5974 output -true - - --- !query 5975 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as string) FROM t --- !query 5975 schema -struct<(CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5975 output -true - - --- !query 5976 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as string) FROM t --- !query 5976 schema -struct<(CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5976 output -true - - --- !query 5977 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as string) FROM t --- !query 5977 schema -struct<(CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5977 output -true - - --- !query 5978 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as string) FROM t --- !query 5978 schema -struct<(CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5978 output -true - - --- !query 5979 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as string) FROM t --- !query 5979 schema -struct<(CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) >= CAST(CAST(1 AS STRING) AS DOUBLE)):boolean> --- !query 5979 output -true - - --- !query 5980 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as string) FROM t --- !query 5980 schema -struct<> --- !query 5980 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as string) FROM t - - --- !query 5981 -SELECT cast(1 as decimal(1, 0)) >= cast('1' as binary) FROM t --- !query 5981 schema -struct<> --- !query 5981 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 5982 -SELECT cast(1 as decimal(3, 0)) >= cast('1' as binary) FROM t --- !query 5982 schema -struct<> --- !query 5982 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 5983 -SELECT cast(1 as decimal(4, 0)) >= cast('1' as binary) FROM t --- !query 5983 schema -struct<> --- !query 5983 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 5984 -SELECT cast(1 as decimal(5, 0)) >= cast('1' as binary) FROM t --- !query 5984 schema -struct<> --- !query 5984 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 5985 -SELECT cast(1 as decimal(6, 0)) >= cast('1' as binary) FROM t --- !query 5985 schema -struct<> --- !query 5985 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 5986 -SELECT cast(1 as decimal(10, 0)) >= cast('1' as binary) FROM t --- !query 5986 schema -struct<> --- !query 5986 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 5987 -SELECT cast(1 as decimal(11, 0)) >= cast('1' as binary) FROM t --- !query 5987 schema -struct<> --- !query 5987 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 5988 -SELECT cast(1 as decimal(20, 0)) >= cast('1' as binary) FROM t --- !query 5988 schema -struct<> --- !query 5988 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 5989 -SELECT cast(1 as decimal(21, 0)) >= cast('1' as binary) FROM t --- !query 5989 schema -struct<> --- !query 5989 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 5990 -SELECT cast(1 as decimal(38, 0)) >= cast('1' as binary) FROM t --- !query 5990 schema -struct<> --- !query 5990 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 5991 -SELECT cast(1 as decimal(39, 0)) >= cast('1' as binary) FROM t --- !query 5991 schema -struct<> --- !query 5991 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast('1' as binary) FROM t - - --- !query 5992 -SELECT cast(1 as decimal(1, 1)) >= cast('1' as binary) FROM t --- !query 5992 schema -struct<> --- !query 5992 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 5993 -SELECT cast(1 as decimal(2, 1)) >= cast('1' as binary) FROM t --- !query 5993 schema -struct<> --- !query 5993 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 5994 -SELECT cast(1 as decimal(3, 1)) >= cast('1' as binary) FROM t --- !query 5994 schema -struct<> --- !query 5994 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 5995 -SELECT cast(1 as decimal(4, 1)) >= cast('1' as binary) FROM t --- !query 5995 schema -struct<> --- !query 5995 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 5996 -SELECT cast(1 as decimal(5, 1)) >= cast('1' as binary) FROM t --- !query 5996 schema -struct<> --- !query 5996 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 5997 -SELECT cast(1 as decimal(6, 1)) >= cast('1' as binary) FROM t --- !query 5997 schema -struct<> --- !query 5997 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 5998 -SELECT cast(1 as decimal(10, 1)) >= cast('1' as binary) FROM t --- !query 5998 schema -struct<> --- !query 5998 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 5999 -SELECT cast(1 as decimal(11, 1)) >= cast('1' as binary) FROM t --- !query 5999 schema -struct<> --- !query 5999 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 6000 -SELECT cast(1 as decimal(20, 1)) >= cast('1' as binary) FROM t --- !query 6000 schema -struct<> --- !query 6000 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 6001 -SELECT cast(1 as decimal(21, 1)) >= cast('1' as binary) FROM t --- !query 6001 schema -struct<> --- !query 6001 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 6002 -SELECT cast(1 as decimal(38, 1)) >= cast('1' as binary) FROM t --- !query 6002 schema -struct<> --- !query 6002 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 6003 -SELECT cast(1 as decimal(39, 1)) >= cast('1' as binary) FROM t --- !query 6003 schema -struct<> --- !query 6003 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast('1' as binary) FROM t - - --- !query 6004 -SELECT cast(1 as decimal(1, 0)) >= cast(1 as boolean) FROM t --- !query 6004 schema -struct<> --- !query 6004 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST(1 AS BOOLEAN))' (decimal(1,0) and boolean).; line 1 pos 7 - - --- !query 6005 -SELECT cast(1 as decimal(3, 0)) >= cast(1 as boolean) FROM t --- !query 6005 schema -struct<> --- !query 6005 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST(1 AS BOOLEAN))' (decimal(3,0) and boolean).; line 1 pos 7 - - --- !query 6006 -SELECT cast(1 as decimal(4, 0)) >= cast(1 as boolean) FROM t --- !query 6006 schema -struct<> --- !query 6006 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST(1 AS BOOLEAN))' (decimal(4,0) and boolean).; line 1 pos 7 - - --- !query 6007 -SELECT cast(1 as decimal(5, 0)) >= cast(1 as boolean) FROM t --- !query 6007 schema -struct<> --- !query 6007 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST(1 AS BOOLEAN))' (decimal(5,0) and boolean).; line 1 pos 7 - - --- !query 6008 -SELECT cast(1 as decimal(6, 0)) >= cast(1 as boolean) FROM t --- !query 6008 schema -struct<> --- !query 6008 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST(1 AS BOOLEAN))' (decimal(6,0) and boolean).; line 1 pos 7 - - --- !query 6009 -SELECT cast(1 as decimal(10, 0)) >= cast(1 as boolean) FROM t --- !query 6009 schema -struct<> --- !query 6009 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST(1 AS BOOLEAN))' (decimal(10,0) and boolean).; line 1 pos 7 - - --- !query 6010 -SELECT cast(1 as decimal(11, 0)) >= cast(1 as boolean) FROM t --- !query 6010 schema -struct<> --- !query 6010 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST(1 AS BOOLEAN))' (decimal(11,0) and boolean).; line 1 pos 7 - - --- !query 6011 -SELECT cast(1 as decimal(20, 0)) >= cast(1 as boolean) FROM t --- !query 6011 schema -struct<> --- !query 6011 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST(1 AS BOOLEAN))' (decimal(20,0) and boolean).; line 1 pos 7 - - --- !query 6012 -SELECT cast(1 as decimal(21, 0)) >= cast(1 as boolean) FROM t --- !query 6012 schema -struct<> --- !query 6012 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST(1 AS BOOLEAN))' (decimal(21,0) and boolean).; line 1 pos 7 - - --- !query 6013 -SELECT cast(1 as decimal(38, 0)) >= cast(1 as boolean) FROM t --- !query 6013 schema -struct<> --- !query 6013 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST(1 AS BOOLEAN))' (decimal(38,0) and boolean).; line 1 pos 7 - - --- !query 6014 -SELECT cast(1 as decimal(39, 0)) >= cast(1 as boolean) FROM t --- !query 6014 schema -struct<> --- !query 6014 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast(1 as boolean) FROM t - - --- !query 6015 -SELECT cast(1 as decimal(1, 1)) >= cast(1 as boolean) FROM t --- !query 6015 schema -struct<> --- !query 6015 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST(1 AS BOOLEAN))' (decimal(1,1) and boolean).; line 1 pos 7 - - --- !query 6016 -SELECT cast(1 as decimal(2, 1)) >= cast(1 as boolean) FROM t --- !query 6016 schema -struct<> --- !query 6016 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST(1 AS BOOLEAN))' (decimal(2,1) and boolean).; line 1 pos 7 - - --- !query 6017 -SELECT cast(1 as decimal(3, 1)) >= cast(1 as boolean) FROM t --- !query 6017 schema -struct<> --- !query 6017 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST(1 AS BOOLEAN))' (decimal(3,1) and boolean).; line 1 pos 7 - - --- !query 6018 -SELECT cast(1 as decimal(4, 1)) >= cast(1 as boolean) FROM t --- !query 6018 schema -struct<> --- !query 6018 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST(1 AS BOOLEAN))' (decimal(4,1) and boolean).; line 1 pos 7 - - --- !query 6019 -SELECT cast(1 as decimal(5, 1)) >= cast(1 as boolean) FROM t --- !query 6019 schema -struct<> --- !query 6019 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST(1 AS BOOLEAN))' (decimal(5,1) and boolean).; line 1 pos 7 - - --- !query 6020 -SELECT cast(1 as decimal(6, 1)) >= cast(1 as boolean) FROM t --- !query 6020 schema -struct<> --- !query 6020 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST(1 AS BOOLEAN))' (decimal(6,1) and boolean).; line 1 pos 7 - - --- !query 6021 -SELECT cast(1 as decimal(10, 1)) >= cast(1 as boolean) FROM t --- !query 6021 schema -struct<> --- !query 6021 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST(1 AS BOOLEAN))' (decimal(10,1) and boolean).; line 1 pos 7 - - --- !query 6022 -SELECT cast(1 as decimal(11, 1)) >= cast(1 as boolean) FROM t --- !query 6022 schema -struct<> --- !query 6022 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST(1 AS BOOLEAN))' (decimal(11,1) and boolean).; line 1 pos 7 - - --- !query 6023 -SELECT cast(1 as decimal(20, 1)) >= cast(1 as boolean) FROM t --- !query 6023 schema -struct<> --- !query 6023 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST(1 AS BOOLEAN))' (decimal(20,1) and boolean).; line 1 pos 7 - - --- !query 6024 -SELECT cast(1 as decimal(21, 1)) >= cast(1 as boolean) FROM t --- !query 6024 schema -struct<> --- !query 6024 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST(1 AS BOOLEAN))' (decimal(21,1) and boolean).; line 1 pos 7 - - --- !query 6025 -SELECT cast(1 as decimal(38, 1)) >= cast(1 as boolean) FROM t --- !query 6025 schema -struct<> --- !query 6025 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST(1 AS BOOLEAN))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST(1 AS BOOLEAN))' (decimal(38,1) and boolean).; line 1 pos 7 - - --- !query 6026 -SELECT cast(1 as decimal(39, 1)) >= cast(1 as boolean) FROM t --- !query 6026 schema -struct<> --- !query 6026 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast(1 as boolean) FROM t - - --- !query 6027 -SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6027 schema -struct<> --- !query 6027 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 6028 -SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6028 schema -struct<> --- !query 6028 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 6029 -SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6029 schema -struct<> --- !query 6029 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 6030 -SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6030 schema -struct<> --- !query 6030 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 6031 -SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6031 schema -struct<> --- !query 6031 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 6032 -SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6032 schema -struct<> --- !query 6032 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 6033 -SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6033 schema -struct<> --- !query 6033 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 6034 -SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6034 schema -struct<> --- !query 6034 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 6035 -SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6035 schema -struct<> --- !query 6035 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 6036 -SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6036 schema -struct<> --- !query 6036 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 6037 -SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6037 schema -struct<> --- !query 6037 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 6038 -SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6038 schema -struct<> --- !query 6038 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 6039 -SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6039 schema -struct<> --- !query 6039 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 6040 -SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6040 schema -struct<> --- !query 6040 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 6041 -SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6041 schema -struct<> --- !query 6041 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 6042 -SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6042 schema -struct<> --- !query 6042 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 6043 -SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6043 schema -struct<> --- !query 6043 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 6044 -SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6044 schema -struct<> --- !query 6044 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 6045 -SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6045 schema -struct<> --- !query 6045 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 6046 -SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6046 schema -struct<> --- !query 6046 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 6047 -SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6047 schema -struct<> --- !query 6047 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 6048 -SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6048 schema -struct<> --- !query 6048 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 6049 -SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6049 schema -struct<> --- !query 6049 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 6050 -SELECT cast(1 as decimal(1, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6050 schema -struct<> --- !query 6050 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 6051 -SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6051 schema -struct<> --- !query 6051 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 6052 -SELECT cast(1 as decimal(4, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6052 schema -struct<> --- !query 6052 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 6053 -SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6053 schema -struct<> --- !query 6053 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 6054 -SELECT cast(1 as decimal(6, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6054 schema -struct<> --- !query 6054 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 6055 -SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6055 schema -struct<> --- !query 6055 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 6056 -SELECT cast(1 as decimal(11, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6056 schema -struct<> --- !query 6056 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 6057 -SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6057 schema -struct<> --- !query 6057 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 6058 -SELECT cast(1 as decimal(21, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6058 schema -struct<> --- !query 6058 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 6059 -SELECT cast(1 as decimal(38, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6059 schema -struct<> --- !query 6059 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 6060 -SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6060 schema -struct<> --- !query 6060 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 6061 -SELECT cast(1 as decimal(1, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6061 schema -struct<> --- !query 6061 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 6062 -SELECT cast(1 as decimal(2, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6062 schema -struct<> --- !query 6062 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 6063 -SELECT cast(1 as decimal(3, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6063 schema -struct<> --- !query 6063 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 6064 -SELECT cast(1 as decimal(4, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6064 schema -struct<> --- !query 6064 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 6065 -SELECT cast(1 as decimal(5, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6065 schema -struct<> --- !query 6065 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 6066 -SELECT cast(1 as decimal(6, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6066 schema -struct<> --- !query 6066 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 6067 -SELECT cast(1 as decimal(10, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6067 schema -struct<> --- !query 6067 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 6068 -SELECT cast(1 as decimal(11, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6068 schema -struct<> --- !query 6068 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 6069 -SELECT cast(1 as decimal(20, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6069 schema -struct<> --- !query 6069 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 6070 -SELECT cast(1 as decimal(21, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6070 schema -struct<> --- !query 6070 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 6071 -SELECT cast(1 as decimal(38, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6071 schema -struct<> --- !query 6071 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) >= CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 6072 -SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t --- !query 6072 schema -struct<> --- !query 6072 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) >= cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 6073 -SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 0)) FROM t --- !query 6073 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)))):boolean> --- !query 6073 output -false - - --- !query 6074 -SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 0)) FROM t --- !query 6074 schema -struct<(NOT (CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) = CAST(1 AS DECIMAL(3,0)))):boolean> --- !query 6074 output -false - - --- !query 6075 -SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 0)) FROM t --- !query 6075 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)))):boolean> --- !query 6075 output -false - - --- !query 6076 -SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 0)) FROM t --- !query 6076 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> --- !query 6076 output -false - - --- !query 6077 -SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 0)) FROM t --- !query 6077 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)))):boolean> --- !query 6077 output -false - - --- !query 6078 -SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 0)) FROM t --- !query 6078 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6078 output -false - - --- !query 6079 -SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 0)) FROM t --- !query 6079 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> --- !query 6079 output -false - - --- !query 6080 -SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 0)) FROM t --- !query 6080 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6080 output -false - - --- !query 6081 -SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 0)) FROM t --- !query 6081 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> --- !query 6081 output -false - - --- !query 6082 -SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 0)) FROM t --- !query 6082 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> --- !query 6082 output -false - - --- !query 6083 -SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 0)) FROM t --- !query 6083 schema -struct<> --- !query 6083 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6084 -SELECT cast(1 as tinyint) <> cast(1 as decimal(1, 1)) FROM t --- !query 6084 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)))):boolean> --- !query 6084 output -NULL - - --- !query 6085 -SELECT cast(1 as tinyint) <> cast(1 as decimal(2, 1)) FROM t --- !query 6085 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)))):boolean> --- !query 6085 output -false - - --- !query 6086 -SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 1)) FROM t --- !query 6086 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)))):boolean> --- !query 6086 output -false - - --- !query 6087 -SELECT cast(1 as tinyint) <> cast(1 as decimal(4, 1)) FROM t --- !query 6087 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)))):boolean> --- !query 6087 output -false - - --- !query 6088 -SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 1)) FROM t --- !query 6088 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)))):boolean> --- !query 6088 output -false - - --- !query 6089 -SELECT cast(1 as tinyint) <> cast(1 as decimal(6, 1)) FROM t --- !query 6089 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)))):boolean> --- !query 6089 output -false - - --- !query 6090 -SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 1)) FROM t --- !query 6090 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)))):boolean> --- !query 6090 output -false - - --- !query 6091 -SELECT cast(1 as tinyint) <> cast(1 as decimal(11, 1)) FROM t --- !query 6091 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> --- !query 6091 output -false - - --- !query 6092 -SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 1)) FROM t --- !query 6092 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> --- !query 6092 output -false - - --- !query 6093 -SELECT cast(1 as tinyint) <> cast(1 as decimal(21, 1)) FROM t --- !query 6093 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> --- !query 6093 output -false - - --- !query 6094 -SELECT cast(1 as tinyint) <> cast(1 as decimal(38, 1)) FROM t --- !query 6094 schema -struct<(NOT (CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> --- !query 6094 output -false - - --- !query 6095 -SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 1)) FROM t --- !query 6095 schema -struct<> --- !query 6095 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as tinyint) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6096 -SELECT cast(1 as smallint) <> cast(1 as decimal(1, 0)) FROM t --- !query 6096 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)))):boolean> --- !query 6096 output -false - - --- !query 6097 -SELECT cast(1 as smallint) <> cast(1 as decimal(3, 0)) FROM t --- !query 6097 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)))):boolean> --- !query 6097 output -false - - --- !query 6098 -SELECT cast(1 as smallint) <> cast(1 as decimal(4, 0)) FROM t --- !query 6098 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)))):boolean> --- !query 6098 output -false - - --- !query 6099 -SELECT cast(1 as smallint) <> cast(1 as decimal(5, 0)) FROM t --- !query 6099 schema -struct<(NOT (CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) = CAST(1 AS DECIMAL(5,0)))):boolean> --- !query 6099 output -false - - --- !query 6100 -SELECT cast(1 as smallint) <> cast(1 as decimal(6, 0)) FROM t --- !query 6100 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)))):boolean> --- !query 6100 output -false - - --- !query 6101 -SELECT cast(1 as smallint) <> cast(1 as decimal(10, 0)) FROM t --- !query 6101 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6101 output -false - - --- !query 6102 -SELECT cast(1 as smallint) <> cast(1 as decimal(11, 0)) FROM t --- !query 6102 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> --- !query 6102 output -false - - --- !query 6103 -SELECT cast(1 as smallint) <> cast(1 as decimal(20, 0)) FROM t --- !query 6103 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6103 output -false - - --- !query 6104 -SELECT cast(1 as smallint) <> cast(1 as decimal(21, 0)) FROM t --- !query 6104 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> --- !query 6104 output -false - - --- !query 6105 -SELECT cast(1 as smallint) <> cast(1 as decimal(38, 0)) FROM t --- !query 6105 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> --- !query 6105 output -false - - --- !query 6106 -SELECT cast(1 as smallint) <> cast(1 as decimal(39, 0)) FROM t --- !query 6106 schema -struct<> --- !query 6106 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6107 -SELECT cast(1 as smallint) <> cast(1 as decimal(1, 1)) FROM t --- !query 6107 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)))):boolean> --- !query 6107 output -NULL - - --- !query 6108 -SELECT cast(1 as smallint) <> cast(1 as decimal(2, 1)) FROM t --- !query 6108 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)))):boolean> --- !query 6108 output -false - - --- !query 6109 -SELECT cast(1 as smallint) <> cast(1 as decimal(3, 1)) FROM t --- !query 6109 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)))):boolean> --- !query 6109 output -false - - --- !query 6110 -SELECT cast(1 as smallint) <> cast(1 as decimal(4, 1)) FROM t --- !query 6110 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)))):boolean> --- !query 6110 output -false - - --- !query 6111 -SELECT cast(1 as smallint) <> cast(1 as decimal(5, 1)) FROM t --- !query 6111 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)))):boolean> --- !query 6111 output -false - - --- !query 6112 -SELECT cast(1 as smallint) <> cast(1 as decimal(6, 1)) FROM t --- !query 6112 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)))):boolean> --- !query 6112 output -false - - --- !query 6113 -SELECT cast(1 as smallint) <> cast(1 as decimal(10, 1)) FROM t --- !query 6113 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)))):boolean> --- !query 6113 output -false - - --- !query 6114 -SELECT cast(1 as smallint) <> cast(1 as decimal(11, 1)) FROM t --- !query 6114 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> --- !query 6114 output -false - - --- !query 6115 -SELECT cast(1 as smallint) <> cast(1 as decimal(20, 1)) FROM t --- !query 6115 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> --- !query 6115 output -false - - --- !query 6116 -SELECT cast(1 as smallint) <> cast(1 as decimal(21, 1)) FROM t --- !query 6116 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> --- !query 6116 output -false - - --- !query 6117 -SELECT cast(1 as smallint) <> cast(1 as decimal(38, 1)) FROM t --- !query 6117 schema -struct<(NOT (CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> --- !query 6117 output -false - - --- !query 6118 -SELECT cast(1 as smallint) <> cast(1 as decimal(39, 1)) FROM t --- !query 6118 schema -struct<> --- !query 6118 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as smallint) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6119 -SELECT cast(1 as int) <> cast(1 as decimal(1, 0)) FROM t --- !query 6119 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)))):boolean> --- !query 6119 output -false - - --- !query 6120 -SELECT cast(1 as int) <> cast(1 as decimal(3, 0)) FROM t --- !query 6120 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> --- !query 6120 output -false - - --- !query 6121 -SELECT cast(1 as int) <> cast(1 as decimal(4, 0)) FROM t --- !query 6121 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)))):boolean> --- !query 6121 output -false - - --- !query 6122 -SELECT cast(1 as int) <> cast(1 as decimal(5, 0)) FROM t --- !query 6122 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> --- !query 6122 output -false - - --- !query 6123 -SELECT cast(1 as int) <> cast(1 as decimal(6, 0)) FROM t --- !query 6123 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)))):boolean> --- !query 6123 output -false - - --- !query 6124 -SELECT cast(1 as int) <> cast(1 as decimal(10, 0)) FROM t --- !query 6124 schema -struct<(NOT (CAST(CAST(1 AS INT) AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> --- !query 6124 output -false - - --- !query 6125 -SELECT cast(1 as int) <> cast(1 as decimal(11, 0)) FROM t --- !query 6125 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> --- !query 6125 output -false - - --- !query 6126 -SELECT cast(1 as int) <> cast(1 as decimal(20, 0)) FROM t --- !query 6126 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6126 output -false - - --- !query 6127 -SELECT cast(1 as int) <> cast(1 as decimal(21, 0)) FROM t --- !query 6127 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> --- !query 6127 output -false - - --- !query 6128 -SELECT cast(1 as int) <> cast(1 as decimal(38, 0)) FROM t --- !query 6128 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> --- !query 6128 output -false - - --- !query 6129 -SELECT cast(1 as int) <> cast(1 as decimal(39, 0)) FROM t --- !query 6129 schema -struct<> --- !query 6129 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6130 -SELECT cast(1 as int) <> cast(1 as decimal(1, 1)) FROM t --- !query 6130 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)))):boolean> --- !query 6130 output -NULL - - --- !query 6131 -SELECT cast(1 as int) <> cast(1 as decimal(2, 1)) FROM t --- !query 6131 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)))):boolean> --- !query 6131 output -false - - --- !query 6132 -SELECT cast(1 as int) <> cast(1 as decimal(3, 1)) FROM t --- !query 6132 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)))):boolean> --- !query 6132 output -false - - --- !query 6133 -SELECT cast(1 as int) <> cast(1 as decimal(4, 1)) FROM t --- !query 6133 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)))):boolean> --- !query 6133 output -false - - --- !query 6134 -SELECT cast(1 as int) <> cast(1 as decimal(5, 1)) FROM t --- !query 6134 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)))):boolean> --- !query 6134 output -false - - --- !query 6135 -SELECT cast(1 as int) <> cast(1 as decimal(6, 1)) FROM t --- !query 6135 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)))):boolean> --- !query 6135 output -false - - --- !query 6136 -SELECT cast(1 as int) <> cast(1 as decimal(10, 1)) FROM t --- !query 6136 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)))):boolean> --- !query 6136 output -false - - --- !query 6137 -SELECT cast(1 as int) <> cast(1 as decimal(11, 1)) FROM t --- !query 6137 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> --- !query 6137 output -false - - --- !query 6138 -SELECT cast(1 as int) <> cast(1 as decimal(20, 1)) FROM t --- !query 6138 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> --- !query 6138 output -false - - --- !query 6139 -SELECT cast(1 as int) <> cast(1 as decimal(21, 1)) FROM t --- !query 6139 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> --- !query 6139 output -false - - --- !query 6140 -SELECT cast(1 as int) <> cast(1 as decimal(38, 1)) FROM t --- !query 6140 schema -struct<(NOT (CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> --- !query 6140 output -false - - --- !query 6141 -SELECT cast(1 as int) <> cast(1 as decimal(39, 1)) FROM t --- !query 6141 schema -struct<> --- !query 6141 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as int) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6142 -SELECT cast(1 as bigint) <> cast(1 as decimal(1, 0)) FROM t --- !query 6142 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)))):boolean> --- !query 6142 output -false - - --- !query 6143 -SELECT cast(1 as bigint) <> cast(1 as decimal(3, 0)) FROM t --- !query 6143 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)))):boolean> --- !query 6143 output -false - - --- !query 6144 -SELECT cast(1 as bigint) <> cast(1 as decimal(4, 0)) FROM t --- !query 6144 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)))):boolean> --- !query 6144 output -false - - --- !query 6145 -SELECT cast(1 as bigint) <> cast(1 as decimal(5, 0)) FROM t --- !query 6145 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)))):boolean> --- !query 6145 output -false - - --- !query 6146 -SELECT cast(1 as bigint) <> cast(1 as decimal(6, 0)) FROM t --- !query 6146 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)))):boolean> --- !query 6146 output -false - - --- !query 6147 -SELECT cast(1 as bigint) <> cast(1 as decimal(10, 0)) FROM t --- !query 6147 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> --- !query 6147 output -false - - --- !query 6148 -SELECT cast(1 as bigint) <> cast(1 as decimal(11, 0)) FROM t --- !query 6148 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)))):boolean> --- !query 6148 output -false - - --- !query 6149 -SELECT cast(1 as bigint) <> cast(1 as decimal(20, 0)) FROM t --- !query 6149 schema -struct<(NOT (CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) = CAST(1 AS DECIMAL(20,0)))):boolean> --- !query 6149 output -false - - --- !query 6150 -SELECT cast(1 as bigint) <> cast(1 as decimal(21, 0)) FROM t --- !query 6150 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> --- !query 6150 output -false - - --- !query 6151 -SELECT cast(1 as bigint) <> cast(1 as decimal(38, 0)) FROM t --- !query 6151 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> --- !query 6151 output -false - - --- !query 6152 -SELECT cast(1 as bigint) <> cast(1 as decimal(39, 0)) FROM t --- !query 6152 schema -struct<> --- !query 6152 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6153 -SELECT cast(1 as bigint) <> cast(1 as decimal(1, 1)) FROM t --- !query 6153 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)))):boolean> --- !query 6153 output -NULL - - --- !query 6154 -SELECT cast(1 as bigint) <> cast(1 as decimal(2, 1)) FROM t --- !query 6154 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)))):boolean> --- !query 6154 output -false - - --- !query 6155 -SELECT cast(1 as bigint) <> cast(1 as decimal(3, 1)) FROM t --- !query 6155 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)))):boolean> --- !query 6155 output -false - - --- !query 6156 -SELECT cast(1 as bigint) <> cast(1 as decimal(4, 1)) FROM t --- !query 6156 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)))):boolean> --- !query 6156 output -false - - --- !query 6157 -SELECT cast(1 as bigint) <> cast(1 as decimal(5, 1)) FROM t --- !query 6157 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)))):boolean> --- !query 6157 output -false - - --- !query 6158 -SELECT cast(1 as bigint) <> cast(1 as decimal(6, 1)) FROM t --- !query 6158 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)))):boolean> --- !query 6158 output -false - - --- !query 6159 -SELECT cast(1 as bigint) <> cast(1 as decimal(10, 1)) FROM t --- !query 6159 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)))):boolean> --- !query 6159 output -false - - --- !query 6160 -SELECT cast(1 as bigint) <> cast(1 as decimal(11, 1)) FROM t --- !query 6160 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)))):boolean> --- !query 6160 output -false - - --- !query 6161 -SELECT cast(1 as bigint) <> cast(1 as decimal(20, 1)) FROM t --- !query 6161 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)))):boolean> --- !query 6161 output -false - - --- !query 6162 -SELECT cast(1 as bigint) <> cast(1 as decimal(21, 1)) FROM t --- !query 6162 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> --- !query 6162 output -false - - --- !query 6163 -SELECT cast(1 as bigint) <> cast(1 as decimal(38, 1)) FROM t --- !query 6163 schema -struct<(NOT (CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> --- !query 6163 output -false - - --- !query 6164 -SELECT cast(1 as bigint) <> cast(1 as decimal(39, 1)) FROM t --- !query 6164 schema -struct<> --- !query 6164 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as bigint) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6165 -SELECT cast(1 as float) <> cast(1 as decimal(1, 0)) FROM t --- !query 6165 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE))):boolean> --- !query 6165 output -false - - --- !query 6166 -SELECT cast(1 as float) <> cast(1 as decimal(3, 0)) FROM t --- !query 6166 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE))):boolean> --- !query 6166 output -false - - --- !query 6167 -SELECT cast(1 as float) <> cast(1 as decimal(4, 0)) FROM t --- !query 6167 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE))):boolean> --- !query 6167 output -false - - --- !query 6168 -SELECT cast(1 as float) <> cast(1 as decimal(5, 0)) FROM t --- !query 6168 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE))):boolean> --- !query 6168 output -false - - --- !query 6169 -SELECT cast(1 as float) <> cast(1 as decimal(6, 0)) FROM t --- !query 6169 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE))):boolean> --- !query 6169 output -false - - --- !query 6170 -SELECT cast(1 as float) <> cast(1 as decimal(10, 0)) FROM t --- !query 6170 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE))):boolean> --- !query 6170 output -false - - --- !query 6171 -SELECT cast(1 as float) <> cast(1 as decimal(11, 0)) FROM t --- !query 6171 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE))):boolean> --- !query 6171 output -false - - --- !query 6172 -SELECT cast(1 as float) <> cast(1 as decimal(20, 0)) FROM t --- !query 6172 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE))):boolean> --- !query 6172 output -false - - --- !query 6173 -SELECT cast(1 as float) <> cast(1 as decimal(21, 0)) FROM t --- !query 6173 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE))):boolean> --- !query 6173 output -false - - --- !query 6174 -SELECT cast(1 as float) <> cast(1 as decimal(38, 0)) FROM t --- !query 6174 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE))):boolean> --- !query 6174 output -false - - --- !query 6175 -SELECT cast(1 as float) <> cast(1 as decimal(39, 0)) FROM t --- !query 6175 schema -struct<> --- !query 6175 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6176 -SELECT cast(1 as float) <> cast(1 as decimal(1, 1)) FROM t --- !query 6176 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE))):boolean> --- !query 6176 output -NULL - - --- !query 6177 -SELECT cast(1 as float) <> cast(1 as decimal(2, 1)) FROM t --- !query 6177 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE))):boolean> --- !query 6177 output -false - - --- !query 6178 -SELECT cast(1 as float) <> cast(1 as decimal(3, 1)) FROM t --- !query 6178 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE))):boolean> --- !query 6178 output -false - - --- !query 6179 -SELECT cast(1 as float) <> cast(1 as decimal(4, 1)) FROM t --- !query 6179 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE))):boolean> --- !query 6179 output -false - - --- !query 6180 -SELECT cast(1 as float) <> cast(1 as decimal(5, 1)) FROM t --- !query 6180 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE))):boolean> --- !query 6180 output -false - - --- !query 6181 -SELECT cast(1 as float) <> cast(1 as decimal(6, 1)) FROM t --- !query 6181 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE))):boolean> --- !query 6181 output -false - - --- !query 6182 -SELECT cast(1 as float) <> cast(1 as decimal(10, 1)) FROM t --- !query 6182 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE))):boolean> --- !query 6182 output -false - - --- !query 6183 -SELECT cast(1 as float) <> cast(1 as decimal(11, 1)) FROM t --- !query 6183 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE))):boolean> --- !query 6183 output -false - - --- !query 6184 -SELECT cast(1 as float) <> cast(1 as decimal(20, 1)) FROM t --- !query 6184 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE))):boolean> --- !query 6184 output -false - - --- !query 6185 -SELECT cast(1 as float) <> cast(1 as decimal(21, 1)) FROM t --- !query 6185 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE))):boolean> --- !query 6185 output -false - - --- !query 6186 -SELECT cast(1 as float) <> cast(1 as decimal(38, 1)) FROM t --- !query 6186 schema -struct<(NOT (CAST(CAST(1 AS FLOAT) AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE))):boolean> --- !query 6186 output -false - - --- !query 6187 -SELECT cast(1 as float) <> cast(1 as decimal(39, 1)) FROM t --- !query 6187 schema -struct<> --- !query 6187 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as float) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6188 -SELECT cast(1 as double) <> cast(1 as decimal(1, 0)) FROM t --- !query 6188 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE))):boolean> --- !query 6188 output -false - - --- !query 6189 -SELECT cast(1 as double) <> cast(1 as decimal(3, 0)) FROM t --- !query 6189 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE))):boolean> --- !query 6189 output -false - - --- !query 6190 -SELECT cast(1 as double) <> cast(1 as decimal(4, 0)) FROM t --- !query 6190 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE))):boolean> --- !query 6190 output -false - - --- !query 6191 -SELECT cast(1 as double) <> cast(1 as decimal(5, 0)) FROM t --- !query 6191 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE))):boolean> --- !query 6191 output -false - - --- !query 6192 -SELECT cast(1 as double) <> cast(1 as decimal(6, 0)) FROM t --- !query 6192 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE))):boolean> --- !query 6192 output -false - - --- !query 6193 -SELECT cast(1 as double) <> cast(1 as decimal(10, 0)) FROM t --- !query 6193 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE))):boolean> --- !query 6193 output -false - - --- !query 6194 -SELECT cast(1 as double) <> cast(1 as decimal(11, 0)) FROM t --- !query 6194 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE))):boolean> --- !query 6194 output -false - - --- !query 6195 -SELECT cast(1 as double) <> cast(1 as decimal(20, 0)) FROM t --- !query 6195 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE))):boolean> --- !query 6195 output -false - - --- !query 6196 -SELECT cast(1 as double) <> cast(1 as decimal(21, 0)) FROM t --- !query 6196 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE))):boolean> --- !query 6196 output -false - - --- !query 6197 -SELECT cast(1 as double) <> cast(1 as decimal(38, 0)) FROM t --- !query 6197 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE))):boolean> --- !query 6197 output -false - - --- !query 6198 -SELECT cast(1 as double) <> cast(1 as decimal(39, 0)) FROM t --- !query 6198 schema -struct<> --- !query 6198 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6199 -SELECT cast(1 as double) <> cast(1 as decimal(1, 1)) FROM t --- !query 6199 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE))):boolean> --- !query 6199 output -NULL - - --- !query 6200 -SELECT cast(1 as double) <> cast(1 as decimal(2, 1)) FROM t --- !query 6200 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE))):boolean> --- !query 6200 output -false - - --- !query 6201 -SELECT cast(1 as double) <> cast(1 as decimal(3, 1)) FROM t --- !query 6201 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE))):boolean> --- !query 6201 output -false - - --- !query 6202 -SELECT cast(1 as double) <> cast(1 as decimal(4, 1)) FROM t --- !query 6202 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE))):boolean> --- !query 6202 output -false - - --- !query 6203 -SELECT cast(1 as double) <> cast(1 as decimal(5, 1)) FROM t --- !query 6203 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE))):boolean> --- !query 6203 output -false - - --- !query 6204 -SELECT cast(1 as double) <> cast(1 as decimal(6, 1)) FROM t --- !query 6204 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE))):boolean> --- !query 6204 output -false - - --- !query 6205 -SELECT cast(1 as double) <> cast(1 as decimal(10, 1)) FROM t --- !query 6205 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE))):boolean> --- !query 6205 output -false - - --- !query 6206 -SELECT cast(1 as double) <> cast(1 as decimal(11, 1)) FROM t --- !query 6206 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE))):boolean> --- !query 6206 output -false - - --- !query 6207 -SELECT cast(1 as double) <> cast(1 as decimal(20, 1)) FROM t --- !query 6207 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE))):boolean> --- !query 6207 output -false - - --- !query 6208 -SELECT cast(1 as double) <> cast(1 as decimal(21, 1)) FROM t --- !query 6208 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE))):boolean> --- !query 6208 output -false - - --- !query 6209 -SELECT cast(1 as double) <> cast(1 as decimal(38, 1)) FROM t --- !query 6209 schema -struct<(NOT (CAST(1 AS DOUBLE) = CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE))):boolean> --- !query 6209 output -false - - --- !query 6210 -SELECT cast(1 as double) <> cast(1 as decimal(39, 1)) FROM t --- !query 6210 schema -struct<> --- !query 6210 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as double) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6211 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 0)) FROM t --- !query 6211 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)))):boolean> --- !query 6211 output -false - - --- !query 6212 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 0)) FROM t --- !query 6212 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> --- !query 6212 output -false - - --- !query 6213 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 0)) FROM t --- !query 6213 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)))):boolean> --- !query 6213 output -false - - --- !query 6214 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 0)) FROM t --- !query 6214 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> --- !query 6214 output -false - - --- !query 6215 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 0)) FROM t --- !query 6215 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)))):boolean> --- !query 6215 output -false - - --- !query 6216 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6216 schema -struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> --- !query 6216 output -false - - --- !query 6217 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 0)) FROM t --- !query 6217 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)))):boolean> --- !query 6217 output -false - - --- !query 6218 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 0)) FROM t --- !query 6218 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6218 output -false - - --- !query 6219 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 0)) FROM t --- !query 6219 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)))):boolean> --- !query 6219 output -false - - --- !query 6220 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 0)) FROM t --- !query 6220 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)))):boolean> --- !query 6220 output -false - - --- !query 6221 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 0)) FROM t --- !query 6221 schema -struct<> --- !query 6221 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6222 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(1, 1)) FROM t --- !query 6222 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)))):boolean> --- !query 6222 output -NULL - - --- !query 6223 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(2, 1)) FROM t --- !query 6223 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)))):boolean> --- !query 6223 output -false - - --- !query 6224 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 1)) FROM t --- !query 6224 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)))):boolean> --- !query 6224 output -false - - --- !query 6225 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(4, 1)) FROM t --- !query 6225 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)))):boolean> --- !query 6225 output -false - - --- !query 6226 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 1)) FROM t --- !query 6226 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)))):boolean> --- !query 6226 output -false - - --- !query 6227 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(6, 1)) FROM t --- !query 6227 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)))):boolean> --- !query 6227 output -false - - --- !query 6228 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 1)) FROM t --- !query 6228 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)))):boolean> --- !query 6228 output -false - - --- !query 6229 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(11, 1)) FROM t --- !query 6229 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)))):boolean> --- !query 6229 output -false - - --- !query 6230 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 1)) FROM t --- !query 6230 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)))):boolean> --- !query 6230 output -false - - --- !query 6231 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(21, 1)) FROM t --- !query 6231 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)))):boolean> --- !query 6231 output -false - - --- !query 6232 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(38, 1)) FROM t --- !query 6232 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)))):boolean> --- !query 6232 output -false - - --- !query 6233 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 1)) FROM t --- !query 6233 schema -struct<> --- !query 6233 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6234 -SELECT cast('1' as binary) <> cast(1 as decimal(1, 0)) FROM t --- !query 6234 schema -struct<> --- !query 6234 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,0)))' (binary and decimal(1,0)).; line 1 pos 7 - - --- !query 6235 -SELECT cast('1' as binary) <> cast(1 as decimal(3, 0)) FROM t --- !query 6235 schema -struct<> --- !query 6235 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,0)))' (binary and decimal(3,0)).; line 1 pos 7 - - --- !query 6236 -SELECT cast('1' as binary) <> cast(1 as decimal(4, 0)) FROM t --- !query 6236 schema -struct<> --- !query 6236 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,0)))' (binary and decimal(4,0)).; line 1 pos 7 - - --- !query 6237 -SELECT cast('1' as binary) <> cast(1 as decimal(5, 0)) FROM t --- !query 6237 schema -struct<> --- !query 6237 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,0)))' (binary and decimal(5,0)).; line 1 pos 7 - - --- !query 6238 -SELECT cast('1' as binary) <> cast(1 as decimal(6, 0)) FROM t --- !query 6238 schema -struct<> --- !query 6238 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,0)))' (binary and decimal(6,0)).; line 1 pos 7 - - --- !query 6239 -SELECT cast('1' as binary) <> cast(1 as decimal(10, 0)) FROM t --- !query 6239 schema -struct<> --- !query 6239 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,0)))' (binary and decimal(10,0)).; line 1 pos 7 - - --- !query 6240 -SELECT cast('1' as binary) <> cast(1 as decimal(11, 0)) FROM t --- !query 6240 schema -struct<> --- !query 6240 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,0)))' (binary and decimal(11,0)).; line 1 pos 7 - - --- !query 6241 -SELECT cast('1' as binary) <> cast(1 as decimal(20, 0)) FROM t --- !query 6241 schema -struct<> --- !query 6241 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,0)))' (binary and decimal(20,0)).; line 1 pos 7 - - --- !query 6242 -SELECT cast('1' as binary) <> cast(1 as decimal(21, 0)) FROM t --- !query 6242 schema -struct<> --- !query 6242 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,0)))' (binary and decimal(21,0)).; line 1 pos 7 - - --- !query 6243 -SELECT cast('1' as binary) <> cast(1 as decimal(38, 0)) FROM t --- !query 6243 schema -struct<> --- !query 6243 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,0)))' (binary and decimal(38,0)).; line 1 pos 7 - - --- !query 6244 -SELECT cast('1' as binary) <> cast(1 as decimal(39, 0)) FROM t --- !query 6244 schema -struct<> --- !query 6244 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6245 -SELECT cast('1' as binary) <> cast(1 as decimal(1, 1)) FROM t --- !query 6245 schema -struct<> --- !query 6245 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(1,1)))' (binary and decimal(1,1)).; line 1 pos 7 - - --- !query 6246 -SELECT cast('1' as binary) <> cast(1 as decimal(2, 1)) FROM t --- !query 6246 schema -struct<> --- !query 6246 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(2,1)))' (binary and decimal(2,1)).; line 1 pos 7 - - --- !query 6247 -SELECT cast('1' as binary) <> cast(1 as decimal(3, 1)) FROM t --- !query 6247 schema -struct<> --- !query 6247 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(3,1)))' (binary and decimal(3,1)).; line 1 pos 7 - - --- !query 6248 -SELECT cast('1' as binary) <> cast(1 as decimal(4, 1)) FROM t --- !query 6248 schema -struct<> --- !query 6248 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(4,1)))' (binary and decimal(4,1)).; line 1 pos 7 - - --- !query 6249 -SELECT cast('1' as binary) <> cast(1 as decimal(5, 1)) FROM t --- !query 6249 schema -struct<> --- !query 6249 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(5,1)))' (binary and decimal(5,1)).; line 1 pos 7 - - --- !query 6250 -SELECT cast('1' as binary) <> cast(1 as decimal(6, 1)) FROM t --- !query 6250 schema -struct<> --- !query 6250 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(6,1)))' (binary and decimal(6,1)).; line 1 pos 7 - - --- !query 6251 -SELECT cast('1' as binary) <> cast(1 as decimal(10, 1)) FROM t --- !query 6251 schema -struct<> --- !query 6251 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(10,1)))' (binary and decimal(10,1)).; line 1 pos 7 - - --- !query 6252 -SELECT cast('1' as binary) <> cast(1 as decimal(11, 1)) FROM t --- !query 6252 schema -struct<> --- !query 6252 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(11,1)))' (binary and decimal(11,1)).; line 1 pos 7 - - --- !query 6253 -SELECT cast('1' as binary) <> cast(1 as decimal(20, 1)) FROM t --- !query 6253 schema -struct<> --- !query 6253 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(20,1)))' (binary and decimal(20,1)).; line 1 pos 7 - - --- !query 6254 -SELECT cast('1' as binary) <> cast(1 as decimal(21, 1)) FROM t --- !query 6254 schema -struct<> --- !query 6254 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(21,1)))' (binary and decimal(21,1)).; line 1 pos 7 - - --- !query 6255 -SELECT cast('1' as binary) <> cast(1 as decimal(38, 1)) FROM t --- !query 6255 schema -struct<> --- !query 6255 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('1' AS BINARY) = CAST(1 AS DECIMAL(38,1)))' (binary and decimal(38,1)).; line 1 pos 7 - - --- !query 6256 -SELECT cast('1' as binary) <> cast(1 as decimal(39, 1)) FROM t --- !query 6256 schema -struct<> --- !query 6256 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('1' as binary) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6257 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 0)) FROM t --- !query 6257 schema -struct<> --- !query 6257 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,0)))' (timestamp and decimal(1,0)).; line 1 pos 7 - - --- !query 6258 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 0)) FROM t --- !query 6258 schema -struct<> --- !query 6258 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,0)))' (timestamp and decimal(3,0)).; line 1 pos 7 - - --- !query 6259 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 0)) FROM t --- !query 6259 schema -struct<> --- !query 6259 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,0)))' (timestamp and decimal(4,0)).; line 1 pos 7 - - --- !query 6260 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 0)) FROM t --- !query 6260 schema -struct<> --- !query 6260 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,0)))' (timestamp and decimal(5,0)).; line 1 pos 7 - - --- !query 6261 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 0)) FROM t --- !query 6261 schema -struct<> --- !query 6261 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,0)))' (timestamp and decimal(6,0)).; line 1 pos 7 - - --- !query 6262 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 0)) FROM t --- !query 6262 schema -struct<> --- !query 6262 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,0)))' (timestamp and decimal(10,0)).; line 1 pos 7 - - --- !query 6263 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 0)) FROM t --- !query 6263 schema -struct<> --- !query 6263 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,0)))' (timestamp and decimal(11,0)).; line 1 pos 7 - - --- !query 6264 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 0)) FROM t --- !query 6264 schema -struct<> --- !query 6264 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,0)))' (timestamp and decimal(20,0)).; line 1 pos 7 - - --- !query 6265 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 0)) FROM t --- !query 6265 schema -struct<> --- !query 6265 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,0)))' (timestamp and decimal(21,0)).; line 1 pos 7 - - --- !query 6266 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 0)) FROM t --- !query 6266 schema -struct<> --- !query 6266 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,0)))' (timestamp and decimal(38,0)).; line 1 pos 7 - - --- !query 6267 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 0)) FROM t --- !query 6267 schema -struct<> --- !query 6267 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6268 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(1, 1)) FROM t --- !query 6268 schema -struct<> --- !query 6268 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(1,1)))' (timestamp and decimal(1,1)).; line 1 pos 7 - - --- !query 6269 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(2, 1)) FROM t --- !query 6269 schema -struct<> --- !query 6269 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(2,1)))' (timestamp and decimal(2,1)).; line 1 pos 7 - - --- !query 6270 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 1)) FROM t --- !query 6270 schema -struct<> --- !query 6270 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(3,1)))' (timestamp and decimal(3,1)).; line 1 pos 7 - - --- !query 6271 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(4, 1)) FROM t --- !query 6271 schema -struct<> --- !query 6271 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(4,1)))' (timestamp and decimal(4,1)).; line 1 pos 7 - - --- !query 6272 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 1)) FROM t --- !query 6272 schema -struct<> --- !query 6272 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(5,1)))' (timestamp and decimal(5,1)).; line 1 pos 7 - - --- !query 6273 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(6, 1)) FROM t --- !query 6273 schema -struct<> --- !query 6273 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(6,1)))' (timestamp and decimal(6,1)).; line 1 pos 7 - - --- !query 6274 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 1)) FROM t --- !query 6274 schema -struct<> --- !query 6274 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(10,1)))' (timestamp and decimal(10,1)).; line 1 pos 7 - - --- !query 6275 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(11, 1)) FROM t --- !query 6275 schema -struct<> --- !query 6275 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(11,1)))' (timestamp and decimal(11,1)).; line 1 pos 7 - - --- !query 6276 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 1)) FROM t --- !query 6276 schema -struct<> --- !query 6276 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(20,1)))' (timestamp and decimal(20,1)).; line 1 pos 7 - - --- !query 6277 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(21, 1)) FROM t --- !query 6277 schema -struct<> --- !query 6277 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(21,1)))' (timestamp and decimal(21,1)).; line 1 pos 7 - - --- !query 6278 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(38, 1)) FROM t --- !query 6278 schema -struct<> --- !query 6278 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) = CAST(1 AS DECIMAL(38,1)))' (timestamp and decimal(38,1)).; line 1 pos 7 - - --- !query 6279 -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 1)) FROM t --- !query 6279 schema -struct<> --- !query 6279 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6280 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 0)) FROM t --- !query 6280 schema -struct<> --- !query 6280 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,0)))' (date and decimal(1,0)).; line 1 pos 7 - - --- !query 6281 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 0)) FROM t --- !query 6281 schema -struct<> --- !query 6281 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,0)))' (date and decimal(3,0)).; line 1 pos 7 - - --- !query 6282 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 0)) FROM t --- !query 6282 schema -struct<> --- !query 6282 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,0)))' (date and decimal(4,0)).; line 1 pos 7 - - --- !query 6283 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 0)) FROM t --- !query 6283 schema -struct<> --- !query 6283 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,0)))' (date and decimal(5,0)).; line 1 pos 7 - - --- !query 6284 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 0)) FROM t --- !query 6284 schema -struct<> --- !query 6284 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,0)))' (date and decimal(6,0)).; line 1 pos 7 - - --- !query 6285 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 0)) FROM t --- !query 6285 schema -struct<> --- !query 6285 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,0)))' (date and decimal(10,0)).; line 1 pos 7 - - --- !query 6286 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 0)) FROM t --- !query 6286 schema -struct<> --- !query 6286 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,0)))' (date and decimal(11,0)).; line 1 pos 7 - - --- !query 6287 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 0)) FROM t --- !query 6287 schema -struct<> --- !query 6287 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,0)))' (date and decimal(20,0)).; line 1 pos 7 - - --- !query 6288 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 0)) FROM t --- !query 6288 schema -struct<> --- !query 6288 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,0)))' (date and decimal(21,0)).; line 1 pos 7 - - --- !query 6289 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 0)) FROM t --- !query 6289 schema -struct<> --- !query 6289 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,0)))' (date and decimal(38,0)).; line 1 pos 7 - - --- !query 6290 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 0)) FROM t --- !query 6290 schema -struct<> --- !query 6290 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 0)) FROM t - - --- !query 6291 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(1, 1)) FROM t --- !query 6291 schema -struct<> --- !query 6291 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(1,1)))' (date and decimal(1,1)).; line 1 pos 7 - - --- !query 6292 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(2, 1)) FROM t --- !query 6292 schema -struct<> --- !query 6292 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(2,1)))' (date and decimal(2,1)).; line 1 pos 7 - - --- !query 6293 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 1)) FROM t --- !query 6293 schema -struct<> --- !query 6293 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(3,1)))' (date and decimal(3,1)).; line 1 pos 7 - - --- !query 6294 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(4, 1)) FROM t --- !query 6294 schema -struct<> --- !query 6294 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(4,1)))' (date and decimal(4,1)).; line 1 pos 7 - - --- !query 6295 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 1)) FROM t --- !query 6295 schema -struct<> --- !query 6295 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(5,1)))' (date and decimal(5,1)).; line 1 pos 7 - - --- !query 6296 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(6, 1)) FROM t --- !query 6296 schema -struct<> --- !query 6296 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(6,1)))' (date and decimal(6,1)).; line 1 pos 7 - - --- !query 6297 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 1)) FROM t --- !query 6297 schema -struct<> --- !query 6297 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(10,1)))' (date and decimal(10,1)).; line 1 pos 7 - - --- !query 6298 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(11, 1)) FROM t --- !query 6298 schema -struct<> --- !query 6298 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(11,1)))' (date and decimal(11,1)).; line 1 pos 7 - - --- !query 6299 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 1)) FROM t --- !query 6299 schema -struct<> --- !query 6299 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(20,1)))' (date and decimal(20,1)).; line 1 pos 7 - - --- !query 6300 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(21, 1)) FROM t --- !query 6300 schema -struct<> --- !query 6300 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(21,1)))' (date and decimal(21,1)).; line 1 pos 7 - - --- !query 6301 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(38, 1)) FROM t --- !query 6301 schema -struct<> --- !query 6301 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00' AS DATE) = CAST(1 AS DECIMAL(38,1)))' (date and decimal(38,1)).; line 1 pos 7 - - --- !query 6302 -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 1)) FROM t --- !query 6302 schema -struct<> --- !query 6302 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(39, 1)) FROM t - - --- !query 6303 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as tinyint) FROM t --- !query 6303 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(3,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(3,0)))):boolean> --- !query 6303 output -false - - --- !query 6304 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as tinyint) FROM t --- !query 6304 schema -struct<(NOT (CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)))):boolean> --- !query 6304 output -false - - --- !query 6305 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as tinyint) FROM t --- !query 6305 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(4,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,0)))):boolean> --- !query 6305 output -false - - --- !query 6306 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as tinyint) FROM t --- !query 6306 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,0)))):boolean> --- !query 6306 output -false - - --- !query 6307 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as tinyint) FROM t --- !query 6307 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,0)))):boolean> --- !query 6307 output -false - - --- !query 6308 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as tinyint) FROM t --- !query 6308 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,0)))):boolean> --- !query 6308 output -false - - --- !query 6309 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as tinyint) FROM t --- !query 6309 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,0)))):boolean> --- !query 6309 output -false - - --- !query 6310 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as tinyint) FROM t --- !query 6310 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,0)))):boolean> --- !query 6310 output -false - - --- !query 6311 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as tinyint) FROM t --- !query 6311 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,0)))):boolean> --- !query 6311 output -false - - --- !query 6312 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as tinyint) FROM t --- !query 6312 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,0)))):boolean> --- !query 6312 output -false - - --- !query 6313 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as tinyint) FROM t --- !query 6313 schema -struct<> --- !query 6313 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as tinyint) FROM t - - --- !query 6314 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as tinyint) FROM t --- !query 6314 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> --- !query 6314 output -NULL - - --- !query 6315 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as tinyint) FROM t --- !query 6315 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> --- !query 6315 output -false - - --- !query 6316 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as tinyint) FROM t --- !query 6316 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> --- !query 6316 output -false - - --- !query 6317 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as tinyint) FROM t --- !query 6317 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(4,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(4,1)))):boolean> --- !query 6317 output -false - - --- !query 6318 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as tinyint) FROM t --- !query 6318 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(5,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(5,1)))):boolean> --- !query 6318 output -false - - --- !query 6319 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as tinyint) FROM t --- !query 6319 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(6,1)))):boolean> --- !query 6319 output -false - - --- !query 6320 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as tinyint) FROM t --- !query 6320 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(10,1)))):boolean> --- !query 6320 output -false - - --- !query 6321 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as tinyint) FROM t --- !query 6321 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(11,1)))):boolean> --- !query 6321 output -false - - --- !query 6322 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as tinyint) FROM t --- !query 6322 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(20,1)))):boolean> --- !query 6322 output -false - - --- !query 6323 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as tinyint) FROM t --- !query 6323 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(21,1)))):boolean> --- !query 6323 output -false - - --- !query 6324 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as tinyint) FROM t --- !query 6324 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS TINYINT) AS DECIMAL(3,0)) AS DECIMAL(38,1)))):boolean> --- !query 6324 output -false - - --- !query 6325 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as tinyint) FROM t --- !query 6325 schema -struct<> --- !query 6325 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as tinyint) FROM t - - --- !query 6326 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as smallint) FROM t --- !query 6326 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> --- !query 6326 output -false - - --- !query 6327 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as smallint) FROM t --- !query 6327 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> --- !query 6327 output -false - - --- !query 6328 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as smallint) FROM t --- !query 6328 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(5,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(5,0)))):boolean> --- !query 6328 output -false - - --- !query 6329 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as smallint) FROM t --- !query 6329 schema -struct<(NOT (CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)))):boolean> --- !query 6329 output -false - - --- !query 6330 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as smallint) FROM t --- !query 6330 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(6,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,0)))):boolean> --- !query 6330 output -false - - --- !query 6331 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as smallint) FROM t --- !query 6331 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,0)))):boolean> --- !query 6331 output -false - - --- !query 6332 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as smallint) FROM t --- !query 6332 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,0)))):boolean> --- !query 6332 output -false - - --- !query 6333 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as smallint) FROM t --- !query 6333 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,0)))):boolean> --- !query 6333 output -false - - --- !query 6334 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as smallint) FROM t --- !query 6334 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,0)))):boolean> --- !query 6334 output -false - - --- !query 6335 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as smallint) FROM t --- !query 6335 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,0)))):boolean> --- !query 6335 output -false - - --- !query 6336 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as smallint) FROM t --- !query 6336 schema -struct<> --- !query 6336 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as smallint) FROM t - - --- !query 6337 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as smallint) FROM t --- !query 6337 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> --- !query 6337 output -NULL - - --- !query 6338 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as smallint) FROM t --- !query 6338 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> --- !query 6338 output -false - - --- !query 6339 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as smallint) FROM t --- !query 6339 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> --- !query 6339 output -false - - --- !query 6340 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as smallint) FROM t --- !query 6340 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> --- !query 6340 output -false - - --- !query 6341 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as smallint) FROM t --- !query 6341 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> --- !query 6341 output -false - - --- !query 6342 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as smallint) FROM t --- !query 6342 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(6,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(6,1)))):boolean> --- !query 6342 output -false - - --- !query 6343 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as smallint) FROM t --- !query 6343 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(10,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(10,1)))):boolean> --- !query 6343 output -false - - --- !query 6344 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as smallint) FROM t --- !query 6344 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(11,1)))):boolean> --- !query 6344 output -false - - --- !query 6345 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as smallint) FROM t --- !query 6345 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(20,1)))):boolean> --- !query 6345 output -false - - --- !query 6346 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as smallint) FROM t --- !query 6346 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(21,1)))):boolean> --- !query 6346 output -false - - --- !query 6347 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as smallint) FROM t --- !query 6347 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS SMALLINT) AS DECIMAL(5,0)) AS DECIMAL(38,1)))):boolean> --- !query 6347 output -false - - --- !query 6348 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as smallint) FROM t --- !query 6348 schema -struct<> --- !query 6348 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as smallint) FROM t - - --- !query 6349 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as int) FROM t --- !query 6349 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6349 output -false - - --- !query 6350 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as int) FROM t --- !query 6350 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6350 output -false - - --- !query 6351 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as int) FROM t --- !query 6351 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6351 output -false - - --- !query 6352 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as int) FROM t --- !query 6352 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6352 output -false - - --- !query 6353 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as int) FROM t --- !query 6353 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6353 output -false - - --- !query 6354 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as int) FROM t --- !query 6354 schema -struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS INT) AS DECIMAL(10,0)))):boolean> --- !query 6354 output -false - - --- !query 6355 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as int) FROM t --- !query 6355 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,0)))):boolean> --- !query 6355 output -false - - --- !query 6356 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as int) FROM t --- !query 6356 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> --- !query 6356 output -false - - --- !query 6357 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as int) FROM t --- !query 6357 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,0)))):boolean> --- !query 6357 output -false - - --- !query 6358 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as int) FROM t --- !query 6358 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,0)))):boolean> --- !query 6358 output -false - - --- !query 6359 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as int) FROM t --- !query 6359 schema -struct<> --- !query 6359 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as int) FROM t - - --- !query 6360 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as int) FROM t --- !query 6360 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6360 output -NULL - - --- !query 6361 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as int) FROM t --- !query 6361 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6361 output -false - - --- !query 6362 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as int) FROM t --- !query 6362 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6362 output -false - - --- !query 6363 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as int) FROM t --- !query 6363 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6363 output -false - - --- !query 6364 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as int) FROM t --- !query 6364 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6364 output -false - - --- !query 6365 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as int) FROM t --- !query 6365 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6365 output -false - - --- !query 6366 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as int) FROM t --- !query 6366 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6366 output -false - - --- !query 6367 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as int) FROM t --- !query 6367 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6367 output -false - - --- !query 6368 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as int) FROM t --- !query 6368 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(20,1)))):boolean> --- !query 6368 output -false - - --- !query 6369 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as int) FROM t --- !query 6369 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(21,1)))):boolean> --- !query 6369 output -false - - --- !query 6370 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as int) FROM t --- !query 6370 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS INT) AS DECIMAL(10,0)) AS DECIMAL(38,1)))):boolean> --- !query 6370 output -false - - --- !query 6371 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as int) FROM t --- !query 6371 schema -struct<> --- !query 6371 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as int) FROM t - - --- !query 6372 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as bigint) FROM t --- !query 6372 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6372 output -false - - --- !query 6373 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as bigint) FROM t --- !query 6373 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6373 output -false - - --- !query 6374 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as bigint) FROM t --- !query 6374 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6374 output -false - - --- !query 6375 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as bigint) FROM t --- !query 6375 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6375 output -false - - --- !query 6376 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as bigint) FROM t --- !query 6376 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6376 output -false - - --- !query 6377 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as bigint) FROM t --- !query 6377 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6377 output -false - - --- !query 6378 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as bigint) FROM t --- !query 6378 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(20,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(20,0)))):boolean> --- !query 6378 output -false - - --- !query 6379 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as bigint) FROM t --- !query 6379 schema -struct<(NOT (CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)))):boolean> --- !query 6379 output -false - - --- !query 6380 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as bigint) FROM t --- !query 6380 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,0)))):boolean> --- !query 6380 output -false - - --- !query 6381 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as bigint) FROM t --- !query 6381 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,0)))):boolean> --- !query 6381 output -false - - --- !query 6382 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as bigint) FROM t --- !query 6382 schema -struct<> --- !query 6382 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as bigint) FROM t - - --- !query 6383 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as bigint) FROM t --- !query 6383 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6383 output -NULL - - --- !query 6384 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as bigint) FROM t --- !query 6384 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6384 output -false - - --- !query 6385 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as bigint) FROM t --- !query 6385 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6385 output -false - - --- !query 6386 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as bigint) FROM t --- !query 6386 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6386 output -false - - --- !query 6387 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as bigint) FROM t --- !query 6387 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6387 output -false - - --- !query 6388 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as bigint) FROM t --- !query 6388 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6388 output -false - - --- !query 6389 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as bigint) FROM t --- !query 6389 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6389 output -false - - --- !query 6390 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as bigint) FROM t --- !query 6390 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6390 output -false - - --- !query 6391 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as bigint) FROM t --- !query 6391 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6391 output -false - - --- !query 6392 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as bigint) FROM t --- !query 6392 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(21,1)))):boolean> --- !query 6392 output -false - - --- !query 6393 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as bigint) FROM t --- !query 6393 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)) AS DECIMAL(38,1)))):boolean> --- !query 6393 output -false - - --- !query 6394 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as bigint) FROM t --- !query 6394 schema -struct<> --- !query 6394 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as bigint) FROM t - - --- !query 6395 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as float) FROM t --- !query 6395 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6395 output -false - - --- !query 6396 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as float) FROM t --- !query 6396 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6396 output -false - - --- !query 6397 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as float) FROM t --- !query 6397 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6397 output -false - - --- !query 6398 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as float) FROM t --- !query 6398 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6398 output -false - - --- !query 6399 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as float) FROM t --- !query 6399 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6399 output -false - - --- !query 6400 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as float) FROM t --- !query 6400 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6400 output -false - - --- !query 6401 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as float) FROM t --- !query 6401 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6401 output -false - - --- !query 6402 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as float) FROM t --- !query 6402 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6402 output -false - - --- !query 6403 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as float) FROM t --- !query 6403 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6403 output -false - - --- !query 6404 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as float) FROM t --- !query 6404 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6404 output -false - - --- !query 6405 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as float) FROM t --- !query 6405 schema -struct<> --- !query 6405 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as float) FROM t - - --- !query 6406 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as float) FROM t --- !query 6406 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6406 output -NULL - - --- !query 6407 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as float) FROM t --- !query 6407 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6407 output -false - - --- !query 6408 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as float) FROM t --- !query 6408 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6408 output -false - - --- !query 6409 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as float) FROM t --- !query 6409 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6409 output -false - - --- !query 6410 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as float) FROM t --- !query 6410 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6410 output -false - - --- !query 6411 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as float) FROM t --- !query 6411 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6411 output -false - - --- !query 6412 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as float) FROM t --- !query 6412 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6412 output -false - - --- !query 6413 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as float) FROM t --- !query 6413 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6413 output -false - - --- !query 6414 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as float) FROM t --- !query 6414 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6414 output -false - - --- !query 6415 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as float) FROM t --- !query 6415 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6415 output -false - - --- !query 6416 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as float) FROM t --- !query 6416 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS FLOAT) AS DOUBLE))):boolean> --- !query 6416 output -false - - --- !query 6417 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as float) FROM t --- !query 6417 schema -struct<> --- !query 6417 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as float) FROM t - - --- !query 6418 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as double) FROM t --- !query 6418 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6418 output -false - - --- !query 6419 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as double) FROM t --- !query 6419 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6419 output -false - - --- !query 6420 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as double) FROM t --- !query 6420 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6420 output -false - - --- !query 6421 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as double) FROM t --- !query 6421 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6421 output -false - - --- !query 6422 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as double) FROM t --- !query 6422 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6422 output -false - - --- !query 6423 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as double) FROM t --- !query 6423 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6423 output -false - - --- !query 6424 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as double) FROM t --- !query 6424 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6424 output -false - - --- !query 6425 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as double) FROM t --- !query 6425 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6425 output -false - - --- !query 6426 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as double) FROM t --- !query 6426 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6426 output -false - - --- !query 6427 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as double) FROM t --- !query 6427 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6427 output -false - - --- !query 6428 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as double) FROM t --- !query 6428 schema -struct<> --- !query 6428 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as double) FROM t - - --- !query 6429 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as double) FROM t --- !query 6429 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6429 output -NULL - - --- !query 6430 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as double) FROM t --- !query 6430 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6430 output -false - - --- !query 6431 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as double) FROM t --- !query 6431 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6431 output -false - - --- !query 6432 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as double) FROM t --- !query 6432 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6432 output -false - - --- !query 6433 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as double) FROM t --- !query 6433 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6433 output -false - - --- !query 6434 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as double) FROM t --- !query 6434 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6434 output -false - - --- !query 6435 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as double) FROM t --- !query 6435 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6435 output -false - - --- !query 6436 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as double) FROM t --- !query 6436 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6436 output -false - - --- !query 6437 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as double) FROM t --- !query 6437 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6437 output -false - - --- !query 6438 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as double) FROM t --- !query 6438 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6438 output -false - - --- !query 6439 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as double) FROM t --- !query 6439 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(1 AS DOUBLE))):boolean> --- !query 6439 output -false - - --- !query 6440 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as double) FROM t --- !query 6440 schema -struct<> --- !query 6440 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as double) FROM t - - --- !query 6441 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6441 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6441 output -false - - --- !query 6442 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6442 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6442 output -false - - --- !query 6443 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6443 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6443 output -false - - --- !query 6444 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6444 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6444 output -false - - --- !query 6445 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6445 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DECIMAL(10,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)))):boolean> --- !query 6445 output -false - - --- !query 6446 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6446 schema -struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(1 AS DECIMAL(10,0)))):boolean> --- !query 6446 output -false - - --- !query 6447 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6447 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DECIMAL(11,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,0)))):boolean> --- !query 6447 output -false - - --- !query 6448 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6448 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DECIMAL(20,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)))):boolean> --- !query 6448 output -false - - --- !query 6449 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6449 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DECIMAL(21,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,0)))):boolean> --- !query 6449 output -false - - --- !query 6450 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6450 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DECIMAL(38,0)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,0)))):boolean> --- !query 6450 output -false - - --- !query 6451 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6451 schema -struct<> --- !query 6451 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as decimal(10, 0)) FROM t - - --- !query 6452 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6452 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6452 output -NULL - - --- !query 6453 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6453 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6453 output -false - - --- !query 6454 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6454 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6454 output -false - - --- !query 6455 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6455 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6455 output -false - - --- !query 6456 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6456 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6456 output -false - - --- !query 6457 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6457 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6457 output -false - - --- !query 6458 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6458 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6458 output -false - - --- !query 6459 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6459 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DECIMAL(11,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(11,1)))):boolean> --- !query 6459 output -false - - --- !query 6460 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6460 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DECIMAL(20,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,1)))):boolean> --- !query 6460 output -false - - --- !query 6461 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6461 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DECIMAL(21,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(21,1)))):boolean> --- !query 6461 output -false - - --- !query 6462 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6462 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DECIMAL(38,1)) = CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(38,1)))):boolean> --- !query 6462 output -false - - --- !query 6463 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as decimal(10, 0)) FROM t --- !query 6463 schema -struct<> --- !query 6463 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as decimal(10, 0)) FROM t - - --- !query 6464 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as string) FROM t --- !query 6464 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6464 output -false - - --- !query 6465 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as string) FROM t --- !query 6465 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6465 output -false - - --- !query 6466 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as string) FROM t --- !query 6466 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6466 output -false - - --- !query 6467 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as string) FROM t --- !query 6467 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6467 output -false - - --- !query 6468 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as string) FROM t --- !query 6468 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6468 output -false - - --- !query 6469 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as string) FROM t --- !query 6469 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6469 output -false - - --- !query 6470 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as string) FROM t --- !query 6470 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6470 output -false - - --- !query 6471 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as string) FROM t --- !query 6471 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6471 output -false - - --- !query 6472 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as string) FROM t --- !query 6472 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6472 output -false - - --- !query 6473 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as string) FROM t --- !query 6473 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,0)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6473 output -false - - --- !query 6474 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as string) FROM t --- !query 6474 schema -struct<> --- !query 6474 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as string) FROM t - - --- !query 6475 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as string) FROM t --- !query 6475 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(1,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6475 output -NULL - - --- !query 6476 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as string) FROM t --- !query 6476 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(2,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6476 output -false - - --- !query 6477 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as string) FROM t --- !query 6477 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(3,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6477 output -false - - --- !query 6478 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as string) FROM t --- !query 6478 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(4,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6478 output -false - - --- !query 6479 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as string) FROM t --- !query 6479 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(5,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6479 output -false - - --- !query 6480 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as string) FROM t --- !query 6480 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(6,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6480 output -false - - --- !query 6481 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as string) FROM t --- !query 6481 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(10,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6481 output -false - - --- !query 6482 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as string) FROM t --- !query 6482 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(11,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6482 output -false - - --- !query 6483 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as string) FROM t --- !query 6483 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(20,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6483 output -false - - --- !query 6484 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as string) FROM t --- !query 6484 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(21,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6484 output -false - - --- !query 6485 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as string) FROM t --- !query 6485 schema -struct<(NOT (CAST(CAST(1 AS DECIMAL(38,1)) AS DOUBLE) = CAST(CAST(1 AS STRING) AS DOUBLE))):boolean> --- !query 6485 output -false - - --- !query 6486 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as string) FROM t --- !query 6486 schema -struct<> --- !query 6486 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as string) FROM t - - --- !query 6487 -SELECT cast(1 as decimal(1, 0)) <> cast('1' as binary) FROM t --- !query 6487 schema -struct<> --- !query 6487 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('1' AS BINARY))' (decimal(1,0) and binary).; line 1 pos 7 - - --- !query 6488 -SELECT cast(1 as decimal(3, 0)) <> cast('1' as binary) FROM t --- !query 6488 schema -struct<> --- !query 6488 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('1' AS BINARY))' (decimal(3,0) and binary).; line 1 pos 7 - - --- !query 6489 -SELECT cast(1 as decimal(4, 0)) <> cast('1' as binary) FROM t --- !query 6489 schema -struct<> --- !query 6489 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('1' AS BINARY))' (decimal(4,0) and binary).; line 1 pos 7 - - --- !query 6490 -SELECT cast(1 as decimal(5, 0)) <> cast('1' as binary) FROM t --- !query 6490 schema -struct<> --- !query 6490 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('1' AS BINARY))' (decimal(5,0) and binary).; line 1 pos 7 - - --- !query 6491 -SELECT cast(1 as decimal(6, 0)) <> cast('1' as binary) FROM t --- !query 6491 schema -struct<> --- !query 6491 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('1' AS BINARY))' (decimal(6,0) and binary).; line 1 pos 7 - - --- !query 6492 -SELECT cast(1 as decimal(10, 0)) <> cast('1' as binary) FROM t --- !query 6492 schema -struct<> --- !query 6492 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('1' AS BINARY))' (decimal(10,0) and binary).; line 1 pos 7 - - --- !query 6493 -SELECT cast(1 as decimal(11, 0)) <> cast('1' as binary) FROM t --- !query 6493 schema -struct<> --- !query 6493 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('1' AS BINARY))' (decimal(11,0) and binary).; line 1 pos 7 - - --- !query 6494 -SELECT cast(1 as decimal(20, 0)) <> cast('1' as binary) FROM t --- !query 6494 schema -struct<> --- !query 6494 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('1' AS BINARY))' (decimal(20,0) and binary).; line 1 pos 7 - - --- !query 6495 -SELECT cast(1 as decimal(21, 0)) <> cast('1' as binary) FROM t --- !query 6495 schema -struct<> --- !query 6495 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('1' AS BINARY))' (decimal(21,0) and binary).; line 1 pos 7 - - --- !query 6496 -SELECT cast(1 as decimal(38, 0)) <> cast('1' as binary) FROM t --- !query 6496 schema -struct<> --- !query 6496 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('1' AS BINARY))' (decimal(38,0) and binary).; line 1 pos 7 - - --- !query 6497 -SELECT cast(1 as decimal(39, 0)) <> cast('1' as binary) FROM t --- !query 6497 schema -struct<> --- !query 6497 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast('1' as binary) FROM t - - --- !query 6498 -SELECT cast(1 as decimal(1, 1)) <> cast('1' as binary) FROM t --- !query 6498 schema -struct<> --- !query 6498 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('1' AS BINARY))' (decimal(1,1) and binary).; line 1 pos 7 - - --- !query 6499 -SELECT cast(1 as decimal(2, 1)) <> cast('1' as binary) FROM t --- !query 6499 schema -struct<> --- !query 6499 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('1' AS BINARY))' (decimal(2,1) and binary).; line 1 pos 7 - - --- !query 6500 -SELECT cast(1 as decimal(3, 1)) <> cast('1' as binary) FROM t --- !query 6500 schema -struct<> --- !query 6500 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('1' AS BINARY))' (decimal(3,1) and binary).; line 1 pos 7 - - --- !query 6501 -SELECT cast(1 as decimal(4, 1)) <> cast('1' as binary) FROM t --- !query 6501 schema -struct<> --- !query 6501 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('1' AS BINARY))' (decimal(4,1) and binary).; line 1 pos 7 - - --- !query 6502 -SELECT cast(1 as decimal(5, 1)) <> cast('1' as binary) FROM t --- !query 6502 schema -struct<> --- !query 6502 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('1' AS BINARY))' (decimal(5,1) and binary).; line 1 pos 7 - - --- !query 6503 -SELECT cast(1 as decimal(6, 1)) <> cast('1' as binary) FROM t --- !query 6503 schema -struct<> --- !query 6503 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('1' AS BINARY))' (decimal(6,1) and binary).; line 1 pos 7 - - --- !query 6504 -SELECT cast(1 as decimal(10, 1)) <> cast('1' as binary) FROM t --- !query 6504 schema -struct<> --- !query 6504 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('1' AS BINARY))' (decimal(10,1) and binary).; line 1 pos 7 - - --- !query 6505 -SELECT cast(1 as decimal(11, 1)) <> cast('1' as binary) FROM t --- !query 6505 schema -struct<> --- !query 6505 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('1' AS BINARY))' (decimal(11,1) and binary).; line 1 pos 7 - - --- !query 6506 -SELECT cast(1 as decimal(20, 1)) <> cast('1' as binary) FROM t --- !query 6506 schema -struct<> --- !query 6506 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('1' AS BINARY))' (decimal(20,1) and binary).; line 1 pos 7 - - --- !query 6507 -SELECT cast(1 as decimal(21, 1)) <> cast('1' as binary) FROM t --- !query 6507 schema -struct<> --- !query 6507 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('1' AS BINARY))' (decimal(21,1) and binary).; line 1 pos 7 - - --- !query 6508 -SELECT cast(1 as decimal(38, 1)) <> cast('1' as binary) FROM t --- !query 6508 schema -struct<> --- !query 6508 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('1' AS BINARY))' (decimal(38,1) and binary).; line 1 pos 7 - - --- !query 6509 -SELECT cast(1 as decimal(39, 1)) <> cast('1' as binary) FROM t --- !query 6509 schema -struct<> --- !query 6509 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast('1' as binary) FROM t - - --- !query 6510 -SELECT cast(1 as decimal(1, 0)) <> cast(1 as boolean) FROM t --- !query 6510 schema -struct<(NOT (CAST(1 AS DECIMAL(1,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,0)))):boolean> --- !query 6510 output -false - - --- !query 6511 -SELECT cast(1 as decimal(3, 0)) <> cast(1 as boolean) FROM t --- !query 6511 schema -struct<(NOT (CAST(1 AS DECIMAL(3,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,0)))):boolean> --- !query 6511 output -false - - --- !query 6512 -SELECT cast(1 as decimal(4, 0)) <> cast(1 as boolean) FROM t --- !query 6512 schema -struct<(NOT (CAST(1 AS DECIMAL(4,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,0)))):boolean> --- !query 6512 output -false - - --- !query 6513 -SELECT cast(1 as decimal(5, 0)) <> cast(1 as boolean) FROM t --- !query 6513 schema -struct<(NOT (CAST(1 AS DECIMAL(5,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,0)))):boolean> --- !query 6513 output -false - - --- !query 6514 -SELECT cast(1 as decimal(6, 0)) <> cast(1 as boolean) FROM t --- !query 6514 schema -struct<(NOT (CAST(1 AS DECIMAL(6,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,0)))):boolean> --- !query 6514 output -false - - --- !query 6515 -SELECT cast(1 as decimal(10, 0)) <> cast(1 as boolean) FROM t --- !query 6515 schema -struct<(NOT (CAST(1 AS DECIMAL(10,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,0)))):boolean> --- !query 6515 output -false - - --- !query 6516 -SELECT cast(1 as decimal(11, 0)) <> cast(1 as boolean) FROM t --- !query 6516 schema -struct<(NOT (CAST(1 AS DECIMAL(11,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,0)))):boolean> --- !query 6516 output -false - - --- !query 6517 -SELECT cast(1 as decimal(20, 0)) <> cast(1 as boolean) FROM t --- !query 6517 schema -struct<(NOT (CAST(1 AS DECIMAL(20,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,0)))):boolean> --- !query 6517 output -false - - --- !query 6518 -SELECT cast(1 as decimal(21, 0)) <> cast(1 as boolean) FROM t --- !query 6518 schema -struct<(NOT (CAST(1 AS DECIMAL(21,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,0)))):boolean> --- !query 6518 output -false - - --- !query 6519 -SELECT cast(1 as decimal(38, 0)) <> cast(1 as boolean) FROM t --- !query 6519 schema -struct<(NOT (CAST(1 AS DECIMAL(38,0)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,0)))):boolean> --- !query 6519 output -false - - --- !query 6520 -SELECT cast(1 as decimal(39, 0)) <> cast(1 as boolean) FROM t --- !query 6520 schema -struct<> --- !query 6520 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast(1 as boolean) FROM t - - --- !query 6521 -SELECT cast(1 as decimal(1, 1)) <> cast(1 as boolean) FROM t --- !query 6521 schema -struct<(NOT (CAST(1 AS DECIMAL(1,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(1,1)))):boolean> --- !query 6521 output -NULL - - --- !query 6522 -SELECT cast(1 as decimal(2, 1)) <> cast(1 as boolean) FROM t --- !query 6522 schema -struct<(NOT (CAST(1 AS DECIMAL(2,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(2,1)))):boolean> --- !query 6522 output -false - - --- !query 6523 -SELECT cast(1 as decimal(3, 1)) <> cast(1 as boolean) FROM t --- !query 6523 schema -struct<(NOT (CAST(1 AS DECIMAL(3,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(3,1)))):boolean> --- !query 6523 output -false - - --- !query 6524 -SELECT cast(1 as decimal(4, 1)) <> cast(1 as boolean) FROM t --- !query 6524 schema -struct<(NOT (CAST(1 AS DECIMAL(4,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(4,1)))):boolean> --- !query 6524 output -false - - --- !query 6525 -SELECT cast(1 as decimal(5, 1)) <> cast(1 as boolean) FROM t --- !query 6525 schema -struct<(NOT (CAST(1 AS DECIMAL(5,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(5,1)))):boolean> --- !query 6525 output -false - - --- !query 6526 -SELECT cast(1 as decimal(6, 1)) <> cast(1 as boolean) FROM t --- !query 6526 schema -struct<(NOT (CAST(1 AS DECIMAL(6,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(6,1)))):boolean> --- !query 6526 output -false - - --- !query 6527 -SELECT cast(1 as decimal(10, 1)) <> cast(1 as boolean) FROM t --- !query 6527 schema -struct<(NOT (CAST(1 AS DECIMAL(10,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(10,1)))):boolean> --- !query 6527 output -false - - --- !query 6528 -SELECT cast(1 as decimal(11, 1)) <> cast(1 as boolean) FROM t --- !query 6528 schema -struct<(NOT (CAST(1 AS DECIMAL(11,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(11,1)))):boolean> --- !query 6528 output -false - - --- !query 6529 -SELECT cast(1 as decimal(20, 1)) <> cast(1 as boolean) FROM t --- !query 6529 schema -struct<(NOT (CAST(1 AS DECIMAL(20,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(20,1)))):boolean> --- !query 6529 output -false - - --- !query 6530 -SELECT cast(1 as decimal(21, 1)) <> cast(1 as boolean) FROM t --- !query 6530 schema -struct<(NOT (CAST(1 AS DECIMAL(21,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(21,1)))):boolean> --- !query 6530 output -false - - --- !query 6531 -SELECT cast(1 as decimal(38, 1)) <> cast(1 as boolean) FROM t --- !query 6531 schema -struct<(NOT (CAST(1 AS DECIMAL(38,1)) = CAST(CAST(1 AS BOOLEAN) AS DECIMAL(38,1)))):boolean> --- !query 6531 output -false - - --- !query 6532 -SELECT cast(1 as decimal(39, 1)) <> cast(1 as boolean) FROM t --- !query 6532 schema -struct<> --- !query 6532 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast(1 as boolean) FROM t - - --- !query 6533 -SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6533 schema -struct<> --- !query 6533 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,0) and timestamp).; line 1 pos 7 - - --- !query 6534 -SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6534 schema -struct<> --- !query 6534 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,0) and timestamp).; line 1 pos 7 - - --- !query 6535 -SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6535 schema -struct<> --- !query 6535 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,0) and timestamp).; line 1 pos 7 - - --- !query 6536 -SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6536 schema -struct<> --- !query 6536 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,0) and timestamp).; line 1 pos 7 - - --- !query 6537 -SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6537 schema -struct<> --- !query 6537 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,0) and timestamp).; line 1 pos 7 - - --- !query 6538 -SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6538 schema -struct<> --- !query 6538 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,0) and timestamp).; line 1 pos 7 - - --- !query 6539 -SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6539 schema -struct<> --- !query 6539 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,0) and timestamp).; line 1 pos 7 - - --- !query 6540 -SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6540 schema -struct<> --- !query 6540 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,0) and timestamp).; line 1 pos 7 - - --- !query 6541 -SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6541 schema -struct<> --- !query 6541 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,0) and timestamp).; line 1 pos 7 - - --- !query 6542 -SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6542 schema -struct<> --- !query 6542 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,0) and timestamp).; line 1 pos 7 - - --- !query 6543 -SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6543 schema -struct<> --- !query 6543 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 6544 -SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6544 schema -struct<> --- !query 6544 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(1,1) and timestamp).; line 1 pos 7 - - --- !query 6545 -SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6545 schema -struct<> --- !query 6545 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(2,1) and timestamp).; line 1 pos 7 - - --- !query 6546 -SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6546 schema -struct<> --- !query 6546 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(3,1) and timestamp).; line 1 pos 7 - - --- !query 6547 -SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6547 schema -struct<> --- !query 6547 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(4,1) and timestamp).; line 1 pos 7 - - --- !query 6548 -SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6548 schema -struct<> --- !query 6548 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(5,1) and timestamp).; line 1 pos 7 - - --- !query 6549 -SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6549 schema -struct<> --- !query 6549 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(6,1) and timestamp).; line 1 pos 7 - - --- !query 6550 -SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6550 schema -struct<> --- !query 6550 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(10,1) and timestamp).; line 1 pos 7 - - --- !query 6551 -SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6551 schema -struct<> --- !query 6551 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(11,1) and timestamp).; line 1 pos 7 - - --- !query 6552 -SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6552 schema -struct<> --- !query 6552 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(20,1) and timestamp).; line 1 pos 7 - - --- !query 6553 -SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6553 schema -struct<> --- !query 6553 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(21,1) and timestamp).; line 1 pos 7 - - --- !query 6554 -SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6554 schema -struct<> --- !query 6554 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (decimal(38,1) and timestamp).; line 1 pos 7 - - --- !query 6555 -SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t --- !query 6555 schema -struct<> --- !query 6555 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t - - --- !query 6556 -SELECT cast(1 as decimal(1, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6556 schema -struct<> --- !query 6556 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,0) and date).; line 1 pos 7 - - --- !query 6557 -SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6557 schema -struct<> --- !query 6557 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,0) and date).; line 1 pos 7 - - --- !query 6558 -SELECT cast(1 as decimal(4, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6558 schema -struct<> --- !query 6558 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,0) and date).; line 1 pos 7 - - --- !query 6559 -SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6559 schema -struct<> --- !query 6559 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,0) and date).; line 1 pos 7 - - --- !query 6560 -SELECT cast(1 as decimal(6, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6560 schema -struct<> --- !query 6560 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,0) and date).; line 1 pos 7 - - --- !query 6561 -SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6561 schema -struct<> --- !query 6561 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,0) and date).; line 1 pos 7 - - --- !query 6562 -SELECT cast(1 as decimal(11, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6562 schema -struct<> --- !query 6562 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,0) and date).; line 1 pos 7 - - --- !query 6563 -SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6563 schema -struct<> --- !query 6563 output +-- !query 1144 output org.apache.spark.sql.AnalysisException cannot resolve '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,0) and date).; line 1 pos 7 - - --- !query 6564 -SELECT cast(1 as decimal(21, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6564 schema -struct<> --- !query 6564 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,0) and date).; line 1 pos 7 - - --- !query 6565 -SELECT cast(1 as decimal(38, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6565 schema -struct<> --- !query 6565 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,0)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,0) and date).; line 1 pos 7 - - --- !query 6566 -SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6566 schema -struct<> --- !query 6566 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t - - --- !query 6567 -SELECT cast(1 as decimal(1, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6567 schema -struct<> --- !query 6567 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(1,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(1,1) and date).; line 1 pos 7 - - --- !query 6568 -SELECT cast(1 as decimal(2, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6568 schema -struct<> --- !query 6568 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(2,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(2,1) and date).; line 1 pos 7 - - --- !query 6569 -SELECT cast(1 as decimal(3, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6569 schema -struct<> --- !query 6569 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(3,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(3,1) and date).; line 1 pos 7 - - --- !query 6570 -SELECT cast(1 as decimal(4, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6570 schema -struct<> --- !query 6570 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(4,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(4,1) and date).; line 1 pos 7 - - --- !query 6571 -SELECT cast(1 as decimal(5, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6571 schema -struct<> --- !query 6571 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(5,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(5,1) and date).; line 1 pos 7 - - --- !query 6572 -SELECT cast(1 as decimal(6, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6572 schema -struct<> --- !query 6572 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(6,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(6,1) and date).; line 1 pos 7 - - --- !query 6573 -SELECT cast(1 as decimal(10, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6573 schema -struct<> --- !query 6573 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(10,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(10,1) and date).; line 1 pos 7 - - --- !query 6574 -SELECT cast(1 as decimal(11, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6574 schema -struct<> --- !query 6574 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(11,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(11,1) and date).; line 1 pos 7 - - --- !query 6575 -SELECT cast(1 as decimal(20, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6575 schema -struct<> --- !query 6575 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(20,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(20,1) and date).; line 1 pos 7 - - --- !query 6576 -SELECT cast(1 as decimal(21, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6576 schema -struct<> --- !query 6576 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(21,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(21,1) and date).; line 1 pos 7 - - --- !query 6577 -SELECT cast(1 as decimal(38, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6577 schema -struct<> --- !query 6577 output -org.apache.spark.sql.AnalysisException -cannot resolve '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: differing types in '(CAST(1 AS DECIMAL(38,1)) = CAST('2017-12-11 09:30:00' AS DATE))' (decimal(38,1) and date).; line 1 pos 7 - - --- !query 6578 -SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t --- !query 6578 schema -struct<> --- !query 6578 output -org.apache.spark.sql.catalyst.parser.ParseException - -DecimalType can only support precision up to 38 -== SQL == -SELECT cast(1 as decimal(39, 1)) <> cast('2017-12-11 09:30:00' as date) FROM t diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out index 676360172b35c..37590e8d51791 100644 --- a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out @@ -1,5 +1,5 @@ -- Automatically generated by SQLQueryTestSuite --- Number of queries: 21493 +-- Number of queries: 901 -- !query 0 @@ -885,7 +885,7 @@ SELECT array(cast('1' as binary), cast('1' as binary)) FROM t -- !query 105 schema struct> -- !query 105 output -[[B@501a5f1f,[B@3cd4595f] +[[B@d43b792,[B@141388e5] -- !query 106 @@ -1233,186379 +1233,6383 @@ struct> +struct> -- !query 145 output -{1:1,2:2} +{1:1} -- !query 146 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t +SELECT map(cast(1 as tinyint), cast(1 as smallint)) FROM t -- !query 146 schema -struct> +struct> -- !query 146 output -{1:1,2:2} +{1:1} -- !query 147 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t +SELECT map(cast(1 as tinyint), cast(1 as int)) FROM t -- !query 147 schema -struct> +struct> -- !query 147 output -{1:1,2:2} +{1:1} -- !query 148 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t +SELECT map(cast(1 as tinyint), cast(1 as bigint)) FROM t -- !query 148 schema -struct> +struct> -- !query 148 output -{1:1,2:2} +{1:1} -- !query 149 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t +SELECT map(cast(1 as tinyint), cast(1 as float)) FROM t -- !query 149 schema -struct> +struct> -- !query 149 output -{1:1.0,2:2.0} +{1:1.0} -- !query 150 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t +SELECT map(cast(1 as tinyint), cast(1 as double)) FROM t -- !query 150 schema -struct> +struct> -- !query 150 output -{1:1.0,2:2.0} +{1:1.0} -- !query 151 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t -- !query 151 schema -struct> +struct> -- !query 151 output -{1:1,2:2} +{1:1} -- !query 152 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t +SELECT map(cast(1 as tinyint), cast(1 as string)) FROM t -- !query 152 schema -struct> +struct> -- !query 152 output -{1:"1",2:"2"} +{1:"1"} -- !query 153 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t +SELECT map(cast(1 as tinyint), cast('1' as binary)) FROM t -- !query 153 schema -struct<> +struct> -- !query 153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{1:[B@2d197a9f} -- !query 154 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t +SELECT map(cast(1 as tinyint), cast(1 as boolean)) FROM t -- !query 154 schema -struct<> +struct> -- !query 154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{1:true} -- !query 155 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 155 schema -struct<> +struct> -- !query 155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{1:2017-12-11 09:30:00.0} -- !query 156 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 156 schema -struct<> +struct> -- !query 156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{1:2017-12-11} -- !query 157 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as smallint), cast(1 as tinyint)) FROM t -- !query 157 schema -struct> +struct> -- !query 157 output -{1:1,2:2} +{1:1} -- !query 158 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t +SELECT map(cast(1 as smallint), cast(1 as smallint)) FROM t -- !query 158 schema -struct> +struct> -- !query 158 output -{1:1,2:2} +{1:1} -- !query 159 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t +SELECT map(cast(1 as smallint), cast(1 as int)) FROM t -- !query 159 schema -struct> +struct> -- !query 159 output -{1:1,2:2} +{1:1} -- !query 160 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t +SELECT map(cast(1 as smallint), cast(1 as bigint)) FROM t -- !query 160 schema -struct> +struct> -- !query 160 output -{1:1,2:2} +{1:1} -- !query 161 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t +SELECT map(cast(1 as smallint), cast(1 as float)) FROM t -- !query 161 schema -struct> +struct> -- !query 161 output -{1:1.0,2:2.0} +{1:1.0} -- !query 162 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t +SELECT map(cast(1 as smallint), cast(1 as double)) FROM t -- !query 162 schema -struct> +struct> -- !query 162 output -{1:1.0,2:2.0} +{1:1.0} -- !query 163 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t -- !query 163 schema -struct> +struct> -- !query 163 output -{1:1,2:2} +{1:1} -- !query 164 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t +SELECT map(cast(1 as smallint), cast(1 as string)) FROM t -- !query 164 schema -struct> +struct> -- !query 164 output -{1:"1",2:"2"} +{1:"1"} -- !query 165 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t +SELECT map(cast(1 as smallint), cast('1' as binary)) FROM t -- !query 165 schema -struct<> +struct> -- !query 165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{1:[B@2e42da42} -- !query 166 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t +SELECT map(cast(1 as smallint), cast(1 as boolean)) FROM t -- !query 166 schema -struct<> +struct> -- !query 166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{1:true} -- !query 167 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 167 schema -struct<> +struct> -- !query 167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{1:2017-12-11 09:30:00.0} -- !query 168 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 168 schema -struct<> +struct> -- !query 168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{1:2017-12-11} -- !query 169 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as int), cast(1 as tinyint)) FROM t -- !query 169 schema -struct> +struct> -- !query 169 output -{1:1,2:2} +{1:1} -- !query 170 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t +SELECT map(cast(1 as int), cast(1 as smallint)) FROM t -- !query 170 schema -struct> +struct> -- !query 170 output -{1:1,2:2} +{1:1} -- !query 171 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t +SELECT map(cast(1 as int), cast(1 as int)) FROM t -- !query 171 schema -struct> +struct> -- !query 171 output -{1:1,2:2} +{1:1} -- !query 172 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t +SELECT map(cast(1 as int), cast(1 as bigint)) FROM t -- !query 172 schema -struct> +struct> -- !query 172 output -{1:1,2:2} +{1:1} -- !query 173 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t +SELECT map(cast(1 as int), cast(1 as float)) FROM t -- !query 173 schema -struct> +struct> -- !query 173 output -{1:1.0,2:2.0} +{1:1.0} -- !query 174 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t +SELECT map(cast(1 as int), cast(1 as double)) FROM t -- !query 174 schema -struct> +struct> -- !query 174 output -{1:1.0,2:2.0} +{1:1.0} -- !query 175 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as int), cast(1 as decimal(10, 0))) FROM t -- !query 175 schema -struct> +struct> -- !query 175 output -{1:1,2:2} +{1:1} -- !query 176 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t +SELECT map(cast(1 as int), cast(1 as string)) FROM t -- !query 176 schema -struct> +struct> -- !query 176 output -{1:"1",2:"2"} +{1:"1"} -- !query 177 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t +SELECT map(cast(1 as int), cast('1' as binary)) FROM t -- !query 177 schema -struct<> +struct> -- !query 177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{1:[B@29c4b0eb} -- !query 178 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t +SELECT map(cast(1 as int), cast(1 as boolean)) FROM t -- !query 178 schema -struct<> +struct> -- !query 178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{1:true} -- !query 179 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 179 schema -struct<> +struct> -- !query 179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{1:2017-12-11 09:30:00.0} -- !query 180 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 180 schema -struct<> +struct> -- !query 180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{1:2017-12-11} -- !query 181 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as bigint), cast(1 as tinyint)) FROM t -- !query 181 schema -struct> +struct> -- !query 181 output -{1:1,2:2} +{1:1} -- !query 182 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t +SELECT map(cast(1 as bigint), cast(1 as smallint)) FROM t -- !query 182 schema -struct> +struct> -- !query 182 output -{1:1,2:2} +{1:1} -- !query 183 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t +SELECT map(cast(1 as bigint), cast(1 as int)) FROM t -- !query 183 schema -struct> +struct> -- !query 183 output -{1:1,2:2} +{1:1} -- !query 184 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t +SELECT map(cast(1 as bigint), cast(1 as bigint)) FROM t -- !query 184 schema -struct> +struct> -- !query 184 output -{1:1,2:2} +{1:1} -- !query 185 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t +SELECT map(cast(1 as bigint), cast(1 as float)) FROM t -- !query 185 schema -struct> +struct> -- !query 185 output -{1:1.0,2:2.0} +{1:1.0} -- !query 186 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t +SELECT map(cast(1 as bigint), cast(1 as double)) FROM t -- !query 186 schema -struct> +struct> -- !query 186 output -{1:1.0,2:2.0} +{1:1.0} -- !query 187 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t -- !query 187 schema -struct> +struct> -- !query 187 output -{1:1,2:2} +{1:1} -- !query 188 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t +SELECT map(cast(1 as bigint), cast(1 as string)) FROM t -- !query 188 schema -struct> +struct> -- !query 188 output -{1:"1",2:"2"} +{1:"1"} -- !query 189 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t +SELECT map(cast(1 as bigint), cast('1' as binary)) FROM t -- !query 189 schema -struct<> +struct> -- !query 189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{1:[B@77a3cfae} -- !query 190 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t +SELECT map(cast(1 as bigint), cast(1 as boolean)) FROM t -- !query 190 schema -struct<> +struct> -- !query 190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{1:true} -- !query 191 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 191 schema -struct<> +struct> -- !query 191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{1:2017-12-11 09:30:00.0} -- !query 192 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 192 schema -struct<> +struct> -- !query 192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{1:2017-12-11} -- !query 193 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as float), cast(1 as tinyint)) FROM t -- !query 193 schema -struct> +struct> -- !query 193 output -{1.0:1,2.0:2} +{1.0:1} -- !query 194 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t +SELECT map(cast(1 as float), cast(1 as smallint)) FROM t -- !query 194 schema -struct> +struct> -- !query 194 output -{1.0:1,2.0:2} +{1.0:1} -- !query 195 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t +SELECT map(cast(1 as float), cast(1 as int)) FROM t -- !query 195 schema -struct> +struct> -- !query 195 output -{1.0:1,2.0:2} +{1.0:1} -- !query 196 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t +SELECT map(cast(1 as float), cast(1 as bigint)) FROM t -- !query 196 schema -struct> +struct> -- !query 196 output -{1.0:1,2.0:2} +{1.0:1} -- !query 197 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t +SELECT map(cast(1 as float), cast(1 as float)) FROM t -- !query 197 schema -struct> +struct> -- !query 197 output -{1.0:1.0,2.0:2.0} +{1.0:1.0} -- !query 198 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t +SELECT map(cast(1 as float), cast(1 as double)) FROM t -- !query 198 schema -struct> +struct> -- !query 198 output -{1.0:1.0,2.0:2.0} +{1.0:1.0} -- !query 199 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as float), cast(1 as decimal(10, 0))) FROM t -- !query 199 schema -struct> +struct> -- !query 199 output -{1.0:1,2.0:2} +{1.0:1} -- !query 200 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t +SELECT map(cast(1 as float), cast(1 as string)) FROM t -- !query 200 schema -struct> +struct> -- !query 200 output -{1.0:"1",2.0:"2"} +{1.0:"1"} -- !query 201 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t +SELECT map(cast(1 as float), cast('1' as binary)) FROM t -- !query 201 schema -struct<> +struct> -- !query 201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{1.0:[B@70353cf8} -- !query 202 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t +SELECT map(cast(1 as float), cast(1 as boolean)) FROM t -- !query 202 schema -struct<> +struct> -- !query 202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{1.0:true} -- !query 203 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 203 schema -struct<> +struct> -- !query 203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{1.0:2017-12-11 09:30:00.0} -- !query 204 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 204 schema -struct<> +struct> -- !query 204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{1.0:2017-12-11} -- !query 205 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as double), cast(1 as tinyint)) FROM t -- !query 205 schema -struct> +struct> -- !query 205 output -{1.0:1,2.0:2} +{1.0:1} -- !query 206 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t +SELECT map(cast(1 as double), cast(1 as smallint)) FROM t -- !query 206 schema -struct> +struct> -- !query 206 output -{1.0:1,2.0:2} +{1.0:1} -- !query 207 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t +SELECT map(cast(1 as double), cast(1 as int)) FROM t -- !query 207 schema -struct> +struct> -- !query 207 output -{1.0:1,2.0:2} +{1.0:1} -- !query 208 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t +SELECT map(cast(1 as double), cast(1 as bigint)) FROM t -- !query 208 schema -struct> +struct> -- !query 208 output -{1.0:1,2.0:2} +{1.0:1} -- !query 209 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t +SELECT map(cast(1 as double), cast(1 as float)) FROM t -- !query 209 schema -struct> +struct> -- !query 209 output -{1.0:1.0,2.0:2.0} +{1.0:1.0} -- !query 210 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t +SELECT map(cast(1 as double), cast(1 as double)) FROM t -- !query 210 schema -struct> +struct> -- !query 210 output -{1.0:1.0,2.0:2.0} +{1.0:1.0} -- !query 211 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as double), cast(1 as decimal(10, 0))) FROM t -- !query 211 schema -struct> +struct> -- !query 211 output -{1.0:1,2.0:2} +{1.0:1} -- !query 212 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t +SELECT map(cast(1 as double), cast(1 as string)) FROM t -- !query 212 schema -struct> +struct> -- !query 212 output -{1.0:"1",2.0:"2"} +{1.0:"1"} -- !query 213 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t +SELECT map(cast(1 as double), cast('1' as binary)) FROM t -- !query 213 schema -struct<> +struct> -- !query 213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{1.0:[B@47c391c4} -- !query 214 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t +SELECT map(cast(1 as double), cast(1 as boolean)) FROM t -- !query 214 schema -struct<> +struct> -- !query 214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{1.0:true} -- !query 215 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 215 schema -struct<> +struct> -- !query 215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{1.0:2017-12-11 09:30:00.0} -- !query 216 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 216 schema -struct<> +struct> -- !query 216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{1.0:2017-12-11} -- !query 217 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t -- !query 217 schema -struct> +struct> -- !query 217 output -{1:1,2:2} +{1:1} -- !query 218 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t -- !query 218 schema -struct> +struct> -- !query 218 output -{1:1,2:2} +{1:1} -- !query 219 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t -- !query 219 schema -struct> +struct> -- !query 219 output -{1:1,2:2} +{1:1} -- !query 220 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t -- !query 220 schema -struct> +struct> -- !query 220 output -{1:1,2:2} +{1:1} -- !query 221 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t -- !query 221 schema -struct> +struct> -- !query 221 output -{1:1.0,2:2.0} +{1:1.0} -- !query 222 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t -- !query 222 schema -struct> +struct> -- !query 222 output -{1:1.0,2:2.0} +{1:1.0} -- !query 223 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t -- !query 223 schema -struct> +struct> -- !query 223 output -{1:1,2:2} +{1:1} -- !query 224 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t -- !query 224 schema -struct> +struct> -- !query 224 output -{1:"1",2:"2"} +{1:"1"} -- !query 225 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t -- !query 225 schema -struct<> +struct> -- !query 225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{1:[B@20bf2928} -- !query 226 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t -- !query 226 schema -struct<> +struct> -- !query 226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{1:true} -- !query 227 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 227 schema -struct<> +struct> -- !query 227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{1:2017-12-11 09:30:00.0} -- !query 228 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 228 schema -struct<> +struct> -- !query 228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{1:2017-12-11} -- !query 229 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as string), cast(1 as tinyint)) FROM t -- !query 229 schema -struct> +struct> -- !query 229 output -{"1":1,"2":2} +{"1":1} -- !query 230 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t +SELECT map(cast(1 as string), cast(1 as smallint)) FROM t -- !query 230 schema -struct> +struct> -- !query 230 output -{"1":1,"2":2} +{"1":1} -- !query 231 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t +SELECT map(cast(1 as string), cast(1 as int)) FROM t -- !query 231 schema -struct> +struct> -- !query 231 output -{"1":1,"2":2} +{"1":1} -- !query 232 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t +SELECT map(cast(1 as string), cast(1 as bigint)) FROM t -- !query 232 schema -struct> +struct> -- !query 232 output -{"1":1,"2":2} +{"1":1} -- !query 233 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t +SELECT map(cast(1 as string), cast(1 as float)) FROM t -- !query 233 schema -struct> +struct> -- !query 233 output -{"1":1.0,"2":2.0} +{"1":1.0} -- !query 234 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t +SELECT map(cast(1 as string), cast(1 as double)) FROM t -- !query 234 schema -struct> +struct> -- !query 234 output -{"1":1.0,"2":2.0} +{"1":1.0} -- !query 235 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as string), cast(1 as decimal(10, 0))) FROM t -- !query 235 schema -struct> +struct> -- !query 235 output -{"1":1,"2":2} +{"1":1} -- !query 236 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t +SELECT map(cast(1 as string), cast(1 as string)) FROM t -- !query 236 schema -struct> +struct> -- !query 236 output -{"1":"1","2":"2"} +{"1":"1"} -- !query 237 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t +SELECT map(cast(1 as string), cast('1' as binary)) FROM t -- !query 237 schema -struct<> +struct> -- !query 237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{"1":[B@51eb383e} -- !query 238 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t +SELECT map(cast(1 as string), cast(1 as boolean)) FROM t -- !query 238 schema -struct<> +struct> -- !query 238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{"1":true} -- !query 239 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 239 schema -struct<> +struct> -- !query 239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{"1":2017-12-11 09:30:00.0} -- !query 240 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 240 schema -struct<> +struct> -- !query 240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{"1":2017-12-11} -- !query 241 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t +SELECT map(cast('1' as binary), cast(1 as tinyint)) FROM t -- !query 241 schema -struct<> +struct> -- !query 241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@21a97a70:1} -- !query 242 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t +SELECT map(cast('1' as binary), cast(1 as smallint)) FROM t -- !query 242 schema -struct<> +struct> -- !query 242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@56f140bd:1} -- !query 243 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t +SELECT map(cast('1' as binary), cast(1 as int)) FROM t -- !query 243 schema -struct<> +struct> -- !query 243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@3f66734d:1} -- !query 244 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t +SELECT map(cast('1' as binary), cast(1 as bigint)) FROM t -- !query 244 schema -struct<> +struct> -- !query 244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@21077650:1} -- !query 245 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t +SELECT map(cast('1' as binary), cast(1 as float)) FROM t -- !query 245 schema -struct<> +struct> -- !query 245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@5ad51f6:1.0} -- !query 246 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t +SELECT map(cast('1' as binary), cast(1 as double)) FROM t -- !query 246 schema -struct<> +struct> -- !query 246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@1bba2c36:1.0} -- !query 247 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t -- !query 247 schema -struct<> +struct> -- !query 247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@11e99e17:1} -- !query 248 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t +SELECT map(cast('1' as binary), cast(1 as string)) FROM t -- !query 248 schema -struct<> +struct> -- !query 248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@dc82ecd:"1"} -- !query 249 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t +SELECT map(cast('1' as binary), cast('1' as binary)) FROM t -- !query 249 schema -struct<> +struct> -- !query 249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@567a6c1b:[B@3853921f} -- !query 250 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t +SELECT map(cast('1' as binary), cast(1 as boolean)) FROM t -- !query 250 schema -struct<> +struct> -- !query 250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@162395d7:true} -- !query 251 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 251 schema -struct<> +struct> -- !query 251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@414d08e9:2017-12-11 09:30:00.0} -- !query 252 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 252 schema -struct<> +struct> -- !query 252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +{[B@53083c0b:2017-12-11} -- !query 253 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t +SELECT map(cast(1 as boolean), cast(1 as tinyint)) FROM t -- !query 253 schema -struct<> +struct> -- !query 253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:1} -- !query 254 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t +SELECT map(cast(1 as boolean), cast(1 as smallint)) FROM t -- !query 254 schema -struct<> +struct> -- !query 254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:1} -- !query 255 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t +SELECT map(cast(1 as boolean), cast(1 as int)) FROM t -- !query 255 schema -struct<> +struct> -- !query 255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:1} -- !query 256 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t +SELECT map(cast(1 as boolean), cast(1 as bigint)) FROM t -- !query 256 schema -struct<> +struct> -- !query 256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:1} -- !query 257 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t +SELECT map(cast(1 as boolean), cast(1 as float)) FROM t -- !query 257 schema -struct<> +struct> -- !query 257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:1.0} -- !query 258 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t +SELECT map(cast(1 as boolean), cast(1 as double)) FROM t -- !query 258 schema -struct<> +struct> -- !query 258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:1.0} -- !query 259 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t -- !query 259 schema -struct<> +struct> -- !query 259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:1} -- !query 260 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t +SELECT map(cast(1 as boolean), cast(1 as string)) FROM t -- !query 260 schema -struct<> +struct> -- !query 260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:"1"} -- !query 261 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t +SELECT map(cast(1 as boolean), cast('1' as binary)) FROM t -- !query 261 schema -struct<> +struct> -- !query 261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:[B@3631ae9e} -- !query 262 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t +SELECT map(cast(1 as boolean), cast(1 as boolean)) FROM t -- !query 262 schema -struct<> +struct> -- !query 262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:true} -- !query 263 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 263 schema -struct<> +struct> -- !query 263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:2017-12-11 09:30:00.0} -- !query 264 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 264 schema -struct<> +struct> -- !query 264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +{true:2017-12-11} -- !query 265 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t -- !query 265 schema -struct<> +struct> -- !query 265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:1} -- !query 266 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t -- !query 266 schema -struct<> +struct> -- !query 266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:1} -- !query 267 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t -- !query 267 schema -struct<> +struct> -- !query 267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:1} -- !query 268 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t -- !query 268 schema -struct<> +struct> -- !query 268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:1} -- !query 269 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t -- !query 269 schema -struct<> +struct> -- !query 269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:1.0} -- !query 270 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t -- !query 270 schema -struct<> +struct> -- !query 270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:1.0} -- !query 271 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t -- !query 271 schema -struct<> +struct> -- !query 271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:1} -- !query 272 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t -- !query 272 schema -struct<> +struct> -- !query 272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:"1"} -- !query 273 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary)) FROM t -- !query 273 schema -struct<> +struct> -- !query 273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:[B@24a0f930} -- !query 274 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t -- !query 274 schema -struct<> +struct> -- !query 274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:true} -- !query 275 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 275 schema -struct<> +struct> -- !query 275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0} -- !query 276 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 276 schema -struct<> +struct> -- !query 276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +{2017-12-11 09:30:00.0:2017-12-11} -- !query 277 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t -- !query 277 schema -struct<> +struct> -- !query 277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:1} -- !query 278 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t -- !query 278 schema -struct<> +struct> -- !query 278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:1} -- !query 279 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t -- !query 279 schema -struct<> +struct> -- !query 279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:1} -- !query 280 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t -- !query 280 schema -struct<> +struct> -- !query 280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:1} -- !query 281 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t -- !query 281 schema -struct<> +struct> -- !query 281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:1.0} -- !query 282 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t -- !query 282 schema -struct<> +struct> -- !query 282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:1.0} -- !query 283 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t -- !query 283 schema -struct<> +struct> -- !query 283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:1} -- !query 284 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t -- !query 284 schema -struct<> +struct> -- !query 284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:"1"} -- !query 285 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary)) FROM t -- !query 285 schema -struct<> +struct> -- !query 285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:[B@821e08} -- !query 286 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t -- !query 286 schema -struct<> +struct> -- !query 286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:true} -- !query 287 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t -- !query 287 schema -struct<> +struct> -- !query 287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:2017-12-11 09:30:00.0} -- !query 288 -SELECT map(cast(1 as tinyint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t -- !query 288 schema -struct<> +struct> -- !query 288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +{2017-12-11:2017-12-11} -- !query 289 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +SELECT sum(cast(1 as tinyint)) FROM t -- !query 289 schema -struct> +struct -- !query 289 output -{1:1,2:2} +1 -- !query 290 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t +SELECT sum(cast(1 as smallint)) FROM t -- !query 290 schema -struct> +struct -- !query 290 output -{1:1,2:2} +1 -- !query 291 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t +SELECT sum(cast(1 as int)) FROM t -- !query 291 schema -struct> +struct -- !query 291 output -{1:1,2:2} +1 -- !query 292 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t +SELECT sum(cast(1 as bigint)) FROM t -- !query 292 schema -struct> +struct -- !query 292 output -{1:1,2:2} +1 -- !query 293 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t +SELECT sum(cast(1 as float)) FROM t -- !query 293 schema -struct> +struct -- !query 293 output -{1:1.0,2:2.0} +1.0 -- !query 294 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t +SELECT sum(cast(1 as double)) FROM t -- !query 294 schema -struct> +struct -- !query 294 output -{1:1.0,2:2.0} +1.0 -- !query 295 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +SELECT sum(cast(1 as decimal(10, 0))) FROM t -- !query 295 schema -struct> +struct -- !query 295 output -{1:1,2:2} +1 -- !query 296 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t +SELECT sum(cast(1 as string)) FROM t -- !query 296 schema -struct> +struct -- !query 296 output -{1:"1",2:"2"} +1.0 -- !query 297 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t +SELECT sum(cast('1' as binary)) FROM t -- !query 297 schema struct<> -- !query 297 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'sum(CAST('1' AS BINARY))' due to data type mismatch: function sum requires numeric types, not BinaryType; line 1 pos 7 -- !query 298 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t +SELECT sum(cast(1 as boolean)) FROM t -- !query 298 schema struct<> -- !query 298 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'sum(CAST(1 AS BOOLEAN))' due to data type mismatch: function sum requires numeric types, not BooleanType; line 1 pos 7 -- !query 299 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT sum(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 299 schema -struct<> +struct -- !query 299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +1.5130998E9 -- !query 300 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT sum(cast('2017-12-11 09:30:00' as date)) FROM t -- !query 300 schema struct<> -- !query 300 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'sum(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function sum requires numeric types, not DateType; line 1 pos 7 -- !query 301 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t +SELECT avg(cast(1 as tinyint)) FROM t -- !query 301 schema -struct> +struct -- !query 301 output -{1:1,2:2} +1.0 -- !query 302 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t +SELECT avg(cast(1 as smallint)) FROM t -- !query 302 schema -struct> +struct -- !query 302 output -{1:1,2:2} +1.0 -- !query 303 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t +SELECT avg(cast(1 as int)) FROM t -- !query 303 schema -struct> +struct -- !query 303 output -{1:1,2:2} +1.0 -- !query 304 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t +SELECT avg(cast(1 as bigint)) FROM t -- !query 304 schema -struct> +struct -- !query 304 output -{1:1,2:2} +1.0 -- !query 305 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t +SELECT avg(cast(1 as float)) FROM t -- !query 305 schema -struct> +struct -- !query 305 output -{1:1.0,2:2.0} +1.0 -- !query 306 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t +SELECT avg(cast(1 as double)) FROM t -- !query 306 schema -struct> +struct -- !query 306 output -{1:1.0,2:2.0} +1.0 -- !query 307 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +SELECT avg(cast(1 as decimal(10, 0))) FROM t -- !query 307 schema -struct> +struct -- !query 307 output -{1:1,2:2} +1 -- !query 308 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t +SELECT avg(cast(1 as string)) FROM t -- !query 308 schema -struct> +struct -- !query 308 output -{1:"1",2:"2"} +1.0 -- !query 309 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t +SELECT avg(cast('1' as binary)) FROM t -- !query 309 schema struct<> -- !query 309 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 -- !query 310 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t +SELECT avg(cast(1 as boolean)) FROM t -- !query 310 schema struct<> -- !query 310 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 -- !query 311 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 311 schema -struct<> +struct -- !query 311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +1.5130998E9 -- !query 312 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t -- !query 312 schema struct<> -- !query 312 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 -- !query 313 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t +SELECT avg(cast(1 as tinyint)) FROM t -- !query 313 schema -struct> +struct -- !query 313 output -{1:1,2:2} +1.0 -- !query 314 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t +SELECT avg(cast(1 as smallint)) FROM t -- !query 314 schema -struct> +struct -- !query 314 output -{1:1,2:2} +1.0 -- !query 315 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t +SELECT avg(cast(1 as int)) FROM t -- !query 315 schema -struct> +struct -- !query 315 output -{1:1,2:2} +1.0 -- !query 316 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t +SELECT avg(cast(1 as bigint)) FROM t -- !query 316 schema -struct> +struct -- !query 316 output -{1:1,2:2} +1.0 -- !query 317 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t +SELECT avg(cast(1 as float)) FROM t -- !query 317 schema -struct> +struct -- !query 317 output -{1:1.0,2:2.0} +1.0 -- !query 318 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t +SELECT avg(cast(1 as double)) FROM t -- !query 318 schema -struct> +struct -- !query 318 output -{1:1.0,2:2.0} +1.0 -- !query 319 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +SELECT avg(cast(1 as decimal(10, 0))) FROM t -- !query 319 schema -struct> +struct -- !query 319 output -{1:1,2:2} +1 -- !query 320 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t +SELECT avg(cast(1 as string)) FROM t -- !query 320 schema -struct> +struct -- !query 320 output -{1:"1",2:"2"} +1.0 -- !query 321 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t +SELECT avg(cast('1' as binary)) FROM t -- !query 321 schema struct<> -- !query 321 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 -- !query 322 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t +SELECT avg(cast(1 as boolean)) FROM t -- !query 322 schema struct<> -- !query 322 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 -- !query 323 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 323 schema -struct<> +struct -- !query 323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +1.5130998E9 -- !query 324 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t -- !query 324 schema struct<> -- !query 324 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 -- !query 325 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as tinyint)) FROM t -- !query 325 schema -struct> +struct -- !query 325 output -{1:1,2:2} +1 -- !query 326 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as smallint)) FROM t -- !query 326 schema -struct> +struct -- !query 326 output -{1:1,2:2} +1 -- !query 327 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as int)) FROM t -- !query 327 schema -struct> +struct -- !query 327 output -{1:1,2:2} +1 -- !query 328 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as bigint)) FROM t -- !query 328 schema -struct> +struct -- !query 328 output -{1:1,2:2} +1 -- !query 329 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as float)) FROM t -- !query 329 schema -struct> +struct -- !query 329 output -{1:1.0,2:2.0} +1.0 -- !query 330 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as double)) FROM t -- !query 330 schema -struct> +struct -- !query 330 output -{1:1.0,2:2.0} +1.0 -- !query 331 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t -- !query 331 schema -struct> +struct -- !query 331 output -{1:1,2:2} +1 -- !query 332 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as string)) FROM t -- !query 332 schema -struct> +struct -- !query 332 output -{1:"1",2:"2"} +1 -- !query 333 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as tinyint), cast('2' as binary)) FROM t -- !query 333 schema struct<> -- !query 333 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, binary]; line 1 pos 7 -- !query 334 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as tinyint), cast(2 as boolean)) FROM t -- !query 334 schema struct<> -- !query 334 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, boolean]; line 1 pos 7 -- !query 335 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 335 schema struct<> -- !query 335 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, timestamp]; line 1 pos 7 -- !query 336 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 336 schema struct<> -- !query 336 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, date]; line 1 pos 7 -- !query 337 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as tinyint)) FROM t -- !query 337 schema -struct> +struct -- !query 337 output -{1.0:1,2.0:2} +1 -- !query 338 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as smallint)) FROM t -- !query 338 schema -struct> +struct -- !query 338 output -{1.0:1,2.0:2} +1 -- !query 339 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as int)) FROM t -- !query 339 schema -struct> +struct -- !query 339 output -{1.0:1,2.0:2} +1 -- !query 340 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as bigint)) FROM t -- !query 340 schema -struct> +struct -- !query 340 output -{1.0:1,2.0:2} +1 -- !query 341 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as float)) FROM t -- !query 341 schema -struct> +struct -- !query 341 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 342 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as double)) FROM t -- !query 342 schema -struct> +struct -- !query 342 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 343 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t -- !query 343 schema -struct> +struct -- !query 343 output -{1.0:1,2.0:2} +1 -- !query 344 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as string)) FROM t -- !query 344 schema -struct> +struct -- !query 344 output -{1.0:"1",2.0:"2"} +1 -- !query 345 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as smallint), cast('2' as binary)) FROM t -- !query 345 schema struct<> -- !query 345 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, binary]; line 1 pos 7 -- !query 346 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as smallint), cast(2 as boolean)) FROM t -- !query 346 schema struct<> -- !query 346 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, boolean]; line 1 pos 7 -- !query 347 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 347 schema struct<> -- !query 347 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, timestamp]; line 1 pos 7 -- !query 348 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 348 schema struct<> -- !query 348 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, date]; line 1 pos 7 -- !query 349 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as tinyint)) FROM t -- !query 349 schema -struct> +struct -- !query 349 output -{1.0:1,2.0:2} +1 -- !query 350 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as smallint)) FROM t -- !query 350 schema -struct> +struct -- !query 350 output -{1.0:1,2.0:2} +1 -- !query 351 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as int)) FROM t -- !query 351 schema -struct> +struct -- !query 351 output -{1.0:1,2.0:2} +1 -- !query 352 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as bigint)) FROM t -- !query 352 schema -struct> +struct -- !query 352 output -{1.0:1,2.0:2} +1 -- !query 353 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as float)) FROM t -- !query 353 schema -struct> +struct -- !query 353 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 354 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as double)) FROM t -- !query 354 schema -struct> +struct -- !query 354 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 355 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as int), cast(2 as decimal(10, 0))) FROM t -- !query 355 schema -struct> +struct -- !query 355 output -{1.0:1,2.0:2} +1 -- !query 356 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as string)) FROM t -- !query 356 schema -struct> +struct -- !query 356 output -{1.0:"1",2.0:"2"} +1 -- !query 357 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as int), cast('2' as binary)) FROM t -- !query 357 schema struct<> -- !query 357 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, binary]; line 1 pos 7 -- !query 358 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as int), cast(2 as boolean)) FROM t -- !query 358 schema struct<> -- !query 358 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, boolean]; line 1 pos 7 -- !query 359 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 359 schema struct<> -- !query 359 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, timestamp]; line 1 pos 7 -- !query 360 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 360 schema struct<> -- !query 360 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, date]; line 1 pos 7 -- !query 361 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as tinyint)) FROM t -- !query 361 schema -struct> +struct -- !query 361 output -{1:1,2:2} +1 -- !query 362 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as smallint)) FROM t -- !query 362 schema -struct> +struct -- !query 362 output -{1:1,2:2} +1 -- !query 363 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as int)) FROM t -- !query 363 schema -struct> +struct -- !query 363 output -{1:1,2:2} +1 -- !query 364 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as bigint)) FROM t -- !query 364 schema -struct> +struct -- !query 364 output -{1:1,2:2} +1 -- !query 365 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as float)) FROM t -- !query 365 schema -struct> +struct -- !query 365 output -{1:1.0,2:2.0} +1.0 -- !query 366 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as double)) FROM t -- !query 366 schema -struct> +struct -- !query 366 output -{1:1.0,2:2.0} +1.0 -- !query 367 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t -- !query 367 schema -struct> +struct -- !query 367 output -{1:1,2:2} +1 -- !query 368 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as string)) FROM t -- !query 368 schema -struct> +struct -- !query 368 output -{1:"1",2:"2"} +1 -- !query 369 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as bigint), cast('2' as binary)) FROM t -- !query 369 schema struct<> -- !query 369 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, binary]; line 1 pos 7 -- !query 370 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as bigint), cast(2 as boolean)) FROM t -- !query 370 schema struct<> -- !query 370 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, boolean]; line 1 pos 7 -- !query 371 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 371 schema struct<> -- !query 371 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, timestamp]; line 1 pos 7 -- !query 372 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 372 schema struct<> -- !query 372 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, date]; line 1 pos 7 -- !query 373 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as tinyint)) FROM t -- !query 373 schema -struct> +struct -- !query 373 output -{"1":1,"2":2} +1.0 -- !query 374 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as smallint)) FROM t -- !query 374 schema -struct> +struct -- !query 374 output -{"1":1,"2":2} +1.0 -- !query 375 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as int)) FROM t -- !query 375 schema -struct> +struct -- !query 375 output -{"1":1,"2":2} +1.0 -- !query 376 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as bigint)) FROM t -- !query 376 schema -struct> +struct -- !query 376 output -{"1":1,"2":2} +1.0 -- !query 377 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as float)) FROM t -- !query 377 schema -struct> +struct -- !query 377 output -{"1":1.0,"2":2.0} +1.0 -- !query 378 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as double)) FROM t -- !query 378 schema -struct> +struct -- !query 378 output -{"1":1.0,"2":2.0} +1.0 -- !query 379 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as float), cast(2 as decimal(10, 0))) FROM t -- !query 379 schema -struct> +struct -- !query 379 output -{"1":1,"2":2} +1.0 -- !query 380 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as string)) FROM t -- !query 380 schema -struct> +struct -- !query 380 output -{"1":"1","2":"2"} +1.0 -- !query 381 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as float), cast('2' as binary)) FROM t -- !query 381 schema struct<> -- !query 381 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, binary]; line 1 pos 7 -- !query 382 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as float), cast(2 as boolean)) FROM t -- !query 382 schema struct<> -- !query 382 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, boolean]; line 1 pos 7 -- !query 383 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 383 schema struct<> -- !query 383 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, timestamp]; line 1 pos 7 -- !query 384 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 384 schema struct<> -- !query 384 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, date]; line 1 pos 7 -- !query 385 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as tinyint)) FROM t -- !query 385 schema -struct<> +struct -- !query 385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 386 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as smallint)) FROM t -- !query 386 schema -struct<> +struct -- !query 386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 387 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as int)) FROM t -- !query 387 schema -struct<> +struct -- !query 387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 388 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as bigint)) FROM t -- !query 388 schema -struct<> +struct -- !query 388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 389 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as float)) FROM t -- !query 389 schema -struct<> +struct -- !query 389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 390 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as double)) FROM t -- !query 390 schema -struct<> +struct -- !query 390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 391 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as double), cast(2 as decimal(10, 0))) FROM t -- !query 391 schema -struct<> +struct -- !query 391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 392 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as string)) FROM t -- !query 392 schema -struct<> +struct -- !query 392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 393 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as double), cast('2' as binary)) FROM t -- !query 393 schema struct<> -- !query 393 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, binary]; line 1 pos 7 -- !query 394 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as double), cast(2 as boolean)) FROM t -- !query 394 schema struct<> -- !query 394 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, boolean]; line 1 pos 7 -- !query 395 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 395 schema struct<> -- !query 395 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, timestamp]; line 1 pos 7 -- !query 396 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 396 schema struct<> -- !query 396 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, date]; line 1 pos 7 -- !query 397 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t -- !query 397 schema -struct<> +struct -- !query 397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 398 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t -- !query 398 schema -struct<> +struct -- !query 398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 399 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t -- !query 399 schema -struct<> +struct -- !query 399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 400 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t -- !query 400 schema -struct<> +struct -- !query 400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 401 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t -- !query 401 schema -struct<> +struct -- !query 401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1.0 -- !query 402 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t -- !query 402 schema -struct<> +struct -- !query 402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1.0 -- !query 403 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t -- !query 403 schema -struct<> +struct -- !query 403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 404 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t -- !query 404 schema -struct<> +struct -- !query 404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 405 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t -- !query 405 schema struct<> -- !query 405 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 7 -- !query 406 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t -- !query 406 schema struct<> -- !query 406 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), boolean]; line 1 pos 7 -- !query 407 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 407 schema struct<> -- !query 407 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), timestamp]; line 1 pos 7 -- !query 408 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 408 schema struct<> -- !query 408 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), date]; line 1 pos 7 -- !query 409 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as tinyint)) FROM t -- !query 409 schema -struct<> +struct -- !query 409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 410 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as smallint)) FROM t -- !query 410 schema -struct<> +struct -- !query 410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 411 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as int)) FROM t -- !query 411 schema -struct<> +struct -- !query 411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 412 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as bigint)) FROM t -- !query 412 schema -struct<> +struct -- !query 412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 413 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as float)) FROM t -- !query 413 schema -struct<> +struct -- !query 413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 414 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as double)) FROM t -- !query 414 schema -struct<> +struct -- !query 414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 415 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as string), cast(2 as decimal(10, 0))) FROM t -- !query 415 schema -struct<> +struct -- !query 415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 416 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as string)) FROM t -- !query 416 schema -struct<> +struct -- !query 416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 417 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as string), cast('2' as binary)) FROM t -- !query 417 schema struct<> -- !query 417 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, binary]; line 1 pos 7 -- !query 418 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as string), cast(2 as boolean)) FROM t -- !query 418 schema struct<> -- !query 418 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, boolean]; line 1 pos 7 -- !query 419 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 419 schema -struct<> +struct -- !query 419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 420 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 420 schema -struct<> +struct -- !query 420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 421 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as tinyint)) FROM t -- !query 421 schema struct<> -- !query 421 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, tinyint]; line 1 pos 7 -- !query 422 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as smallint)) FROM t -- !query 422 schema struct<> -- !query 422 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, smallint]; line 1 pos 7 -- !query 423 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as int)) FROM t -- !query 423 schema struct<> -- !query 423 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, int]; line 1 pos 7 -- !query 424 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as bigint)) FROM t -- !query 424 schema struct<> -- !query 424 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, bigint]; line 1 pos 7 -- !query 425 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as float)) FROM t -- !query 425 schema struct<> -- !query 425 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, float]; line 1 pos 7 -- !query 426 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as double)) FROM t -- !query 426 schema struct<> -- !query 426 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, double]; line 1 pos 7 -- !query 427 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t -- !query 427 schema struct<> -- !query 427 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 7 -- !query 428 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as string)) FROM t -- !query 428 schema struct<> -- !query 428 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, string]; line 1 pos 7 -- !query 429 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +SELECT coalesce(cast('1' as binary), cast('2' as binary)) FROM t -- !query 429 schema -struct<> +struct -- !query 429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +1 -- !query 430 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +SELECT coalesce(cast('1' as binary), cast(2 as boolean)) FROM t -- !query 430 schema struct<> -- !query 430 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, boolean]; line 1 pos 7 -- !query 431 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 431 schema struct<> -- !query 431 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, timestamp]; line 1 pos 7 -- !query 432 -SELECT map(cast(1 as tinyint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 432 schema struct<> -- !query 432 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, date]; line 1 pos 7 -- !query 433 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as tinyint)) FROM t -- !query 433 schema -struct> +struct<> -- !query 433 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, tinyint]; line 1 pos 7 -- !query 434 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as smallint)) FROM t -- !query 434 schema -struct> +struct<> -- !query 434 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, smallint]; line 1 pos 7 -- !query 435 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as int)) FROM t -- !query 435 schema -struct> +struct<> -- !query 435 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, int]; line 1 pos 7 -- !query 436 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as bigint)) FROM t -- !query 436 schema -struct> +struct<> -- !query 436 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, bigint]; line 1 pos 7 -- !query 437 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as float)) FROM t -- !query 437 schema -struct> +struct<> -- !query 437 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, float]; line 1 pos 7 -- !query 438 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as double)) FROM t -- !query 438 schema -struct> +struct<> -- !query 438 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, double]; line 1 pos 7 -- !query 439 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t -- !query 439 schema -struct> +struct<> -- !query 439 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, decimal(10,0)]; line 1 pos 7 -- !query 440 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as string)) FROM t -- !query 440 schema -struct> +struct<> -- !query 440 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, string]; line 1 pos 7 -- !query 441 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t +SELECT coalesce(cast(1 as boolean), cast('2' as binary)) FROM t -- !query 441 schema struct<> -- !query 441 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, binary]; line 1 pos 7 -- !query 442 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t +SELECT coalesce(cast(1 as boolean), cast(2 as boolean)) FROM t -- !query 442 schema -struct<> +struct -- !query 442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +true -- !query 443 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 443 schema struct<> -- !query 443 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, timestamp]; line 1 pos 7 -- !query 444 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 444 schema struct<> -- !query 444 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, date]; line 1 pos 7 -- !query 445 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t -- !query 445 schema -struct> +struct<> -- !query 445 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, tinyint]; line 1 pos 7 -- !query 446 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t -- !query 446 schema -struct> +struct<> -- !query 446 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, smallint]; line 1 pos 7 -- !query 447 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t -- !query 447 schema -struct> +struct<> -- !query 447 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, int]; line 1 pos 7 -- !query 448 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t -- !query 448 schema -struct> +struct<> -- !query 448 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, bigint]; line 1 pos 7 -- !query 449 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t -- !query 449 schema -struct> +struct<> -- !query 449 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, float]; line 1 pos 7 -- !query 450 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t -- !query 450 schema -struct> +struct<> -- !query 450 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, double]; line 1 pos 7 -- !query 451 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t -- !query 451 schema -struct> +struct<> -- !query 451 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, decimal(10,0)]; line 1 pos 7 -- !query 452 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t -- !query 452 schema -struct> +struct -- !query 452 output -{1:"1",2:"2"} +2017-12-11 09:30:00 -- !query 453 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t -- !query 453 schema struct<> -- !query 453 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, binary]; line 1 pos 7 -- !query 454 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t -- !query 454 schema struct<> -- !query 454 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, boolean]; line 1 pos 7 -- !query 455 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 455 schema -struct<> +struct -- !query 455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +2017-12-11 09:30:00 -- !query 456 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 456 schema -struct<> +struct -- !query 456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +2017-12-11 09:30:00 -- !query 457 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t -- !query 457 schema -struct> +struct<> -- !query 457 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, tinyint]; line 1 pos 7 -- !query 458 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t -- !query 458 schema -struct> +struct<> -- !query 458 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, smallint]; line 1 pos 7 -- !query 459 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t -- !query 459 schema -struct> +struct<> -- !query 459 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, int]; line 1 pos 7 -- !query 460 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t -- !query 460 schema -struct> +struct<> -- !query 460 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, bigint]; line 1 pos 7 -- !query 461 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t -- !query 461 schema -struct> +struct<> -- !query 461 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, float]; line 1 pos 7 -- !query 462 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t -- !query 462 schema -struct> +struct<> -- !query 462 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, double]; line 1 pos 7 -- !query 463 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t -- !query 463 schema -struct> +struct<> -- !query 463 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, decimal(10,0)]; line 1 pos 7 -- !query 464 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t -- !query 464 schema -struct> +struct -- !query 464 output -{1:"1",2:"2"} +2017-12-11 -- !query 465 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t -- !query 465 schema struct<> -- !query 465 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, binary]; line 1 pos 7 -- !query 466 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t -- !query 466 schema struct<> -- !query 466 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, boolean]; line 1 pos 7 -- !query 467 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 467 schema -struct<> +struct -- !query 467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +2017-12-11 00:00:00 -- !query 468 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 468 schema -struct<> +struct -- !query 468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +2017-12-11 -- !query 469 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as tinyint)) FROM t -- !query 469 schema -struct> +struct -- !query 469 output -{1:1,2:2} +2 -- !query 470 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as smallint)) FROM t -- !query 470 schema -struct> +struct -- !query 470 output -{1:1,2:2} +2 -- !query 471 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as int)) FROM t -- !query 471 schema -struct> +struct -- !query 471 output -{1:1,2:2} +2 -- !query 472 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as bigint)) FROM t -- !query 472 schema -struct> +struct -- !query 472 output -{1:1,2:2} +2 -- !query 473 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as float)) FROM t -- !query 473 schema -struct> +struct -- !query 473 output -{1:1.0,2:2.0} +2.0 -- !query 474 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as double)) FROM t -- !query 474 schema -struct> +struct -- !query 474 output -{1:1.0,2:2.0} +2.0 -- !query 475 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t -- !query 475 schema -struct> +struct -- !query 475 output -{1:1,2:2} +2 -- !query 476 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as string)) FROM t -- !query 476 schema -struct> +struct<> -- !query 476 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, string).; line 1 pos 7 -- !query 477 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as tinyint), cast('2' as binary)) FROM t -- !query 477 schema struct<> -- !query 477 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, binary).; line 1 pos 7 -- !query 478 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as tinyint), cast(2 as boolean)) FROM t -- !query 478 schema struct<> -- !query 478 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, boolean).; line 1 pos 7 -- !query 479 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 479 schema struct<> -- !query 479 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, timestamp).; line 1 pos 7 -- !query 480 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 480 schema struct<> -- !query 480 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, date).; line 1 pos 7 -- !query 481 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as tinyint)) FROM t -- !query 481 schema -struct> +struct -- !query 481 output -{1.0:1,2.0:2} +2 -- !query 482 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as smallint)) FROM t -- !query 482 schema -struct> +struct -- !query 482 output -{1.0:1,2.0:2} +2 -- !query 483 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as int)) FROM t -- !query 483 schema -struct> +struct -- !query 483 output -{1.0:1,2.0:2} +2 -- !query 484 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as bigint)) FROM t -- !query 484 schema -struct> +struct -- !query 484 output -{1.0:1,2.0:2} +2 -- !query 485 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as float)) FROM t -- !query 485 schema -struct> +struct -- !query 485 output -{1.0:1.0,2.0:2.0} +2.0 -- !query 486 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as double)) FROM t -- !query 486 schema -struct> +struct -- !query 486 output -{1.0:1.0,2.0:2.0} +2.0 -- !query 487 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t -- !query 487 schema -struct> +struct -- !query 487 output -{1.0:1,2.0:2} +2 -- !query 488 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as string)) FROM t -- !query 488 schema -struct> +struct<> -- !query 488 output -{1.0:"1",2.0:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, string).; line 1 pos 7 -- !query 489 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as smallint), cast('2' as binary)) FROM t -- !query 489 schema struct<> -- !query 489 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, binary).; line 1 pos 7 -- !query 490 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as smallint), cast(2 as boolean)) FROM t -- !query 490 schema struct<> -- !query 490 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, boolean).; line 1 pos 7 -- !query 491 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 491 schema struct<> -- !query 491 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, timestamp).; line 1 pos 7 -- !query 492 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 492 schema struct<> -- !query 492 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, date).; line 1 pos 7 -- !query 493 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as int), cast(2 as tinyint)) FROM t -- !query 493 schema -struct> +struct -- !query 493 output -{1.0:1,2.0:2} +2 -- !query 494 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as int), cast(2 as smallint)) FROM t -- !query 494 schema -struct> +struct -- !query 494 output -{1.0:1,2.0:2} +2 -- !query 495 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t +SELECT greatest(cast(1 as int), cast(2 as int)) FROM t -- !query 495 schema -struct> +struct -- !query 495 output -{1.0:1,2.0:2} +2 -- !query 496 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as int), cast(2 as bigint)) FROM t -- !query 496 schema -struct> +struct -- !query 496 output -{1.0:1,2.0:2} +2 -- !query 497 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t +SELECT greatest(cast(1 as int), cast(2 as float)) FROM t -- !query 497 schema -struct> +struct -- !query 497 output -{1.0:1.0,2.0:2.0} +2.0 -- !query 498 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t +SELECT greatest(cast(1 as int), cast(2 as double)) FROM t -- !query 498 schema -struct> +struct -- !query 498 output -{1.0:1.0,2.0:2.0} +2.0 -- !query 499 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as int), cast(2 as decimal(10, 0))) FROM t -- !query 499 schema -struct> +struct -- !query 499 output -{1.0:1,2.0:2} +2 -- !query 500 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t +SELECT greatest(cast(1 as int), cast(2 as string)) FROM t -- !query 500 schema -struct> +struct<> -- !query 500 output -{1.0:"1",2.0:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, string).; line 1 pos 7 -- !query 501 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as int), cast('2' as binary)) FROM t -- !query 501 schema struct<> -- !query 501 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, binary).; line 1 pos 7 -- !query 502 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as int), cast(2 as boolean)) FROM t -- !query 502 schema struct<> -- !query 502 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, boolean).; line 1 pos 7 -- !query 503 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 503 schema struct<> -- !query 503 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, timestamp).; line 1 pos 7 -- !query 504 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 504 schema struct<> -- !query 504 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, date).; line 1 pos 7 -- !query 505 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as tinyint)) FROM t -- !query 505 schema -struct> +struct -- !query 505 output -{1:1,2:2} +2 -- !query 506 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as smallint)) FROM t -- !query 506 schema -struct> +struct -- !query 506 output -{1:1,2:2} +2 -- !query 507 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as int)) FROM t -- !query 507 schema -struct> +struct -- !query 507 output -{1:1,2:2} +2 -- !query 508 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as bigint)) FROM t -- !query 508 schema -struct> +struct -- !query 508 output -{1:1,2:2} +2 -- !query 509 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as float)) FROM t -- !query 509 schema -struct> +struct -- !query 509 output -{1:1.0,2:2.0} +2.0 -- !query 510 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as double)) FROM t -- !query 510 schema -struct> +struct -- !query 510 output -{1:1.0,2:2.0} +2.0 -- !query 511 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t -- !query 511 schema -struct> +struct -- !query 511 output -{1:1,2:2} +2 -- !query 512 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as string)) FROM t -- !query 512 schema -struct> +struct<> -- !query 512 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, string).; line 1 pos 7 -- !query 513 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as bigint), cast('2' as binary)) FROM t -- !query 513 schema struct<> -- !query 513 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, binary).; line 1 pos 7 -- !query 514 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as bigint), cast(2 as boolean)) FROM t -- !query 514 schema struct<> -- !query 514 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, boolean).; line 1 pos 7 -- !query 515 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 515 schema struct<> -- !query 515 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, timestamp).; line 1 pos 7 -- !query 516 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 516 schema struct<> -- !query 516 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, date).; line 1 pos 7 -- !query 517 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as float), cast(2 as tinyint)) FROM t -- !query 517 schema -struct> +struct -- !query 517 output -{"1":1,"2":2} +2.0 -- !query 518 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as float), cast(2 as smallint)) FROM t -- !query 518 schema -struct> +struct -- !query 518 output -{"1":1,"2":2} +2.0 -- !query 519 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t +SELECT greatest(cast(1 as float), cast(2 as int)) FROM t -- !query 519 schema -struct> +struct -- !query 519 output -{"1":1,"2":2} +2.0 -- !query 520 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as float), cast(2 as bigint)) FROM t -- !query 520 schema -struct> +struct -- !query 520 output -{"1":1,"2":2} +2.0 -- !query 521 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t +SELECT greatest(cast(1 as float), cast(2 as float)) FROM t -- !query 521 schema -struct> +struct -- !query 521 output -{"1":1.0,"2":2.0} +2.0 -- !query 522 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t +SELECT greatest(cast(1 as float), cast(2 as double)) FROM t -- !query 522 schema -struct> +struct -- !query 522 output -{"1":1.0,"2":2.0} +2.0 -- !query 523 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as float), cast(2 as decimal(10, 0))) FROM t -- !query 523 schema -struct> +struct -- !query 523 output -{"1":1,"2":2} +2.0 -- !query 524 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t +SELECT greatest(cast(1 as float), cast(2 as string)) FROM t -- !query 524 schema -struct> +struct<> -- !query 524 output -{"1":"1","2":"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, string).; line 1 pos 7 -- !query 525 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as float), cast('2' as binary)) FROM t -- !query 525 schema struct<> -- !query 525 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, binary).; line 1 pos 7 -- !query 526 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as float), cast(2 as boolean)) FROM t -- !query 526 schema struct<> -- !query 526 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, boolean).; line 1 pos 7 -- !query 527 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 527 schema struct<> -- !query 527 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, timestamp).; line 1 pos 7 -- !query 528 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 528 schema struct<> -- !query 528 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, date).; line 1 pos 7 -- !query 529 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as double), cast(2 as tinyint)) FROM t -- !query 529 schema -struct<> +struct -- !query 529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +2.0 -- !query 530 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as double), cast(2 as smallint)) FROM t -- !query 530 schema -struct<> +struct -- !query 530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +2.0 -- !query 531 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t +SELECT greatest(cast(1 as double), cast(2 as int)) FROM t -- !query 531 schema -struct<> +struct -- !query 531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +2.0 -- !query 532 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as double), cast(2 as bigint)) FROM t -- !query 532 schema -struct<> +struct -- !query 532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +2.0 -- !query 533 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t +SELECT greatest(cast(1 as double), cast(2 as float)) FROM t -- !query 533 schema -struct<> +struct -- !query 533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +2.0 -- !query 534 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t +SELECT greatest(cast(1 as double), cast(2 as double)) FROM t -- !query 534 schema -struct<> +struct -- !query 534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +2.0 -- !query 535 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as double), cast(2 as decimal(10, 0))) FROM t -- !query 535 schema -struct<> +struct -- !query 535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +2.0 -- !query 536 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t +SELECT greatest(cast(1 as double), cast(2 as string)) FROM t -- !query 536 schema struct<> -- !query 536 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, string).; line 1 pos 7 -- !query 537 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as double), cast('2' as binary)) FROM t -- !query 537 schema struct<> -- !query 537 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, binary).; line 1 pos 7 -- !query 538 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as double), cast(2 as boolean)) FROM t -- !query 538 schema struct<> -- !query 538 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, boolean).; line 1 pos 7 -- !query 539 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 539 schema struct<> -- !query 539 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, timestamp).; line 1 pos 7 -- !query 540 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 540 schema struct<> -- !query 540 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, date).; line 1 pos 7 -- !query 541 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t -- !query 541 schema -struct<> +struct -- !query 541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +2 -- !query 542 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t -- !query 542 schema -struct<> +struct -- !query 542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +2 -- !query 543 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t -- !query 543 schema -struct<> +struct -- !query 543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +2 -- !query 544 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t -- !query 544 schema -struct<> +struct -- !query 544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +2 -- !query 545 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t -- !query 545 schema -struct<> +struct -- !query 545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +2.0 -- !query 546 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t -- !query 546 schema -struct<> +struct -- !query 546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +2.0 -- !query 547 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t -- !query 547 schema -struct<> +struct -- !query 547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +2 -- !query 548 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t -- !query 548 schema struct<> -- !query 548 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), string).; line 1 pos 7 -- !query 549 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t -- !query 549 schema struct<> -- !query 549 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), binary).; line 1 pos 7 -- !query 550 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t -- !query 550 schema struct<> -- !query 550 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), boolean).; line 1 pos 7 -- !query 551 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 551 schema struct<> -- !query 551 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), timestamp).; line 1 pos 7 -- !query 552 -SELECT map(cast(1 as tinyint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 552 schema struct<> -- !query 552 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), date).; line 1 pos 7 -- !query 553 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as string), cast(2 as tinyint)) FROM t -- !query 553 schema struct<> -- !query 553 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, tinyint).; line 1 pos 7 -- !query 554 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as string), cast(2 as smallint)) FROM t -- !query 554 schema struct<> -- !query 554 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, smallint).; line 1 pos 7 -- !query 555 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +SELECT greatest(cast(1 as string), cast(2 as int)) FROM t -- !query 555 schema struct<> -- !query 555 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, int).; line 1 pos 7 -- !query 556 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as string), cast(2 as bigint)) FROM t -- !query 556 schema struct<> -- !query 556 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, bigint).; line 1 pos 7 -- !query 557 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +SELECT greatest(cast(1 as string), cast(2 as float)) FROM t -- !query 557 schema struct<> -- !query 557 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, float).; line 1 pos 7 -- !query 558 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +SELECT greatest(cast(1 as string), cast(2 as double)) FROM t -- !query 558 schema struct<> -- !query 558 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, double).; line 1 pos 7 -- !query 559 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as string), cast(2 as decimal(10, 0))) FROM t -- !query 559 schema struct<> -- !query 559 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, decimal(10,0)).; line 1 pos 7 -- !query 560 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +SELECT greatest(cast(1 as string), cast(2 as string)) FROM t -- !query 560 schema -struct<> +struct -- !query 560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +2 -- !query 561 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as string), cast('2' as binary)) FROM t -- !query 561 schema struct<> -- !query 561 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, binary).; line 1 pos 7 -- !query 562 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as string), cast(2 as boolean)) FROM t -- !query 562 schema struct<> -- !query 562 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, boolean).; line 1 pos 7 -- !query 563 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 563 schema struct<> -- !query 563 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, timestamp).; line 1 pos 7 -- !query 564 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 564 schema struct<> -- !query 564 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, date).; line 1 pos 7 -- !query 565 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as tinyint)) FROM t -- !query 565 schema struct<> -- !query 565 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, tinyint).; line 1 pos 7 -- !query 566 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as smallint)) FROM t -- !query 566 schema struct<> -- !query 566 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, smallint).; line 1 pos 7 -- !query 567 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as int)) FROM t -- !query 567 schema struct<> -- !query 567 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, int).; line 1 pos 7 -- !query 568 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as bigint)) FROM t -- !query 568 schema struct<> -- !query 568 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, bigint).; line 1 pos 7 -- !query 569 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as float)) FROM t -- !query 569 schema struct<> -- !query 569 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, float).; line 1 pos 7 -- !query 570 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as double)) FROM t -- !query 570 schema struct<> -- !query 570 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, double).; line 1 pos 7 -- !query 571 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t -- !query 571 schema struct<> -- !query 571 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, decimal(10,0)).; line 1 pos 7 -- !query 572 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as string)) FROM t -- !query 572 schema struct<> -- !query 572 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, string).; line 1 pos 7 -- !query 573 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +SELECT greatest(cast('1' as binary), cast('2' as binary)) FROM t -- !query 573 schema -struct<> +struct -- !query 573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +2 -- !query 574 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +SELECT greatest(cast('1' as binary), cast(2 as boolean)) FROM t -- !query 574 schema struct<> -- !query 574 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, boolean).; line 1 pos 7 -- !query 575 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 575 schema struct<> -- !query 575 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, timestamp).; line 1 pos 7 -- !query 576 -SELECT map(cast(1 as tinyint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 576 schema struct<> -- !query 576 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, date).; line 1 pos 7 -- !query 577 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as tinyint)) FROM t -- !query 577 schema -struct> +struct<> -- !query 577 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, tinyint).; line 1 pos 7 -- !query 578 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as smallint)) FROM t -- !query 578 schema -struct> +struct<> -- !query 578 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, smallint).; line 1 pos 7 -- !query 579 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as int)) FROM t -- !query 579 schema -struct> +struct<> -- !query 579 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, int).; line 1 pos 7 -- !query 580 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as bigint)) FROM t -- !query 580 schema -struct> +struct<> -- !query 580 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, bigint).; line 1 pos 7 -- !query 581 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as float)) FROM t -- !query 581 schema -struct> +struct<> -- !query 581 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, float).; line 1 pos 7 -- !query 582 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as double)) FROM t -- !query 582 schema -struct> +struct<> -- !query 582 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, double).; line 1 pos 7 -- !query 583 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t -- !query 583 schema -struct> +struct<> -- !query 583 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, decimal(10,0)).; line 1 pos 7 -- !query 584 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as string)) FROM t -- !query 584 schema -struct> +struct<> -- !query 584 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, string).; line 1 pos 7 -- !query 585 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t +SELECT greatest(cast(1 as boolean), cast('2' as binary)) FROM t -- !query 585 schema struct<> -- !query 585 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, binary).; line 1 pos 7 -- !query 586 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t +SELECT greatest(cast(1 as boolean), cast(2 as boolean)) FROM t -- !query 586 schema -struct<> +struct -- !query 586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +true -- !query 587 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 587 schema struct<> -- !query 587 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, timestamp).; line 1 pos 7 -- !query 588 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 588 schema struct<> -- !query 588 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, date).; line 1 pos 7 -- !query 589 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t -- !query 589 schema -struct> +struct<> -- !query 589 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, tinyint).; line 1 pos 7 -- !query 590 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t -- !query 590 schema -struct> +struct<> -- !query 590 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, smallint).; line 1 pos 7 -- !query 591 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t -- !query 591 schema -struct> +struct<> -- !query 591 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, int).; line 1 pos 7 -- !query 592 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t -- !query 592 schema -struct> +struct<> -- !query 592 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, bigint).; line 1 pos 7 -- !query 593 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t -- !query 593 schema -struct> +struct<> -- !query 593 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, float).; line 1 pos 7 -- !query 594 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t -- !query 594 schema -struct> +struct<> -- !query 594 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, double).; line 1 pos 7 -- !query 595 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t -- !query 595 schema -struct> +struct<> -- !query 595 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, decimal(10,0)).; line 1 pos 7 -- !query 596 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t -- !query 596 schema -struct> +struct<> -- !query 596 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, string).; line 1 pos 7 -- !query 597 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t -- !query 597 schema struct<> -- !query 597 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, binary).; line 1 pos 7 -- !query 598 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t -- !query 598 schema struct<> -- !query 598 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, boolean).; line 1 pos 7 -- !query 599 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 599 schema -struct<> +struct -- !query 599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +2017-12-12 09:30:00 -- !query 600 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 600 schema -struct<> +struct -- !query 600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +2017-12-12 00:00:00 -- !query 601 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t -- !query 601 schema -struct> +struct<> -- !query 601 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, tinyint).; line 1 pos 7 -- !query 602 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t -- !query 602 schema -struct> +struct<> -- !query 602 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, smallint).; line 1 pos 7 -- !query 603 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t -- !query 603 schema -struct> +struct<> -- !query 603 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, int).; line 1 pos 7 -- !query 604 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t -- !query 604 schema -struct> +struct<> -- !query 604 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, bigint).; line 1 pos 7 -- !query 605 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t -- !query 605 schema -struct> +struct<> -- !query 605 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, float).; line 1 pos 7 -- !query 606 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t -- !query 606 schema -struct> +struct<> -- !query 606 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, double).; line 1 pos 7 -- !query 607 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t -- !query 607 schema -struct> +struct<> -- !query 607 output -{1:1,2:2} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, decimal(10,0)).; line 1 pos 7 -- !query 608 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t -- !query 608 schema -struct> +struct<> -- !query 608 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, string).; line 1 pos 7 -- !query 609 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t -- !query 609 schema struct<> -- !query 609 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, binary).; line 1 pos 7 -- !query 610 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t -- !query 610 schema struct<> -- !query 610 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, boolean).; line 1 pos 7 -- !query 611 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 611 schema -struct<> +struct -- !query 611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +2017-12-12 09:30:00 -- !query 612 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 612 schema -struct<> +struct -- !query 612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +2017-12-12 -- !query 613 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as tinyint)) FROM t -- !query 613 schema -struct> +struct -- !query 613 output -{1:1,2:2} +1 -- !query 614 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as smallint)) FROM t -- !query 614 schema -struct> +struct -- !query 614 output -{1:1,2:2} +1 -- !query 615 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as int)) FROM t -- !query 615 schema -struct> +struct -- !query 615 output -{1:1,2:2} +1 -- !query 616 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as bigint)) FROM t -- !query 616 schema -struct> +struct -- !query 616 output -{1:1,2:2} +1 -- !query 617 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as float)) FROM t -- !query 617 schema -struct> +struct -- !query 617 output -{1:1.0,2:2.0} +1.0 -- !query 618 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as double)) FROM t -- !query 618 schema -struct> +struct -- !query 618 output -{1:1.0,2:2.0} +1.0 -- !query 619 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t -- !query 619 schema -struct> +struct -- !query 619 output -{1:1,2:2} +1 -- !query 620 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as string)) FROM t -- !query 620 schema -struct> +struct<> -- !query 620 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, string).; line 1 pos 7 -- !query 621 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t +SELECT least(cast(1 as tinyint), cast('2' as binary)) FROM t -- !query 621 schema struct<> -- !query 621 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, binary).; line 1 pos 7 -- !query 622 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t +SELECT least(cast(1 as tinyint), cast(2 as boolean)) FROM t -- !query 622 schema struct<> -- !query 622 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, boolean).; line 1 pos 7 -- !query 623 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 623 schema struct<> -- !query 623 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, timestamp).; line 1 pos 7 -- !query 624 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 624 schema struct<> -- !query 624 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, date).; line 1 pos 7 -- !query 625 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as smallint), cast(2 as tinyint)) FROM t -- !query 625 schema -struct> +struct -- !query 625 output -{1.0:1,2.0:2} +1 -- !query 626 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t +SELECT least(cast(1 as smallint), cast(2 as smallint)) FROM t -- !query 626 schema -struct> +struct -- !query 626 output -{1.0:1,2.0:2} +1 -- !query 627 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t +SELECT least(cast(1 as smallint), cast(2 as int)) FROM t -- !query 627 schema -struct> +struct -- !query 627 output -{1.0:1,2.0:2} +1 -- !query 628 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t +SELECT least(cast(1 as smallint), cast(2 as bigint)) FROM t -- !query 628 schema -struct> +struct -- !query 628 output -{1.0:1,2.0:2} +1 -- !query 629 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t +SELECT least(cast(1 as smallint), cast(2 as float)) FROM t -- !query 629 schema -struct> +struct -- !query 629 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 630 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t +SELECT least(cast(1 as smallint), cast(2 as double)) FROM t -- !query 630 schema -struct> +struct -- !query 630 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 631 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t -- !query 631 schema -struct> +struct -- !query 631 output -{1.0:1,2.0:2} +1 -- !query 632 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t +SELECT least(cast(1 as smallint), cast(2 as string)) FROM t -- !query 632 schema -struct> +struct<> -- !query 632 output -{1.0:"1",2.0:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, string).; line 1 pos 7 -- !query 633 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t +SELECT least(cast(1 as smallint), cast('2' as binary)) FROM t -- !query 633 schema struct<> -- !query 633 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, binary).; line 1 pos 7 -- !query 634 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t +SELECT least(cast(1 as smallint), cast(2 as boolean)) FROM t -- !query 634 schema struct<> -- !query 634 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, boolean).; line 1 pos 7 -- !query 635 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 635 schema struct<> -- !query 635 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, timestamp).; line 1 pos 7 -- !query 636 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 636 schema struct<> -- !query 636 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, date).; line 1 pos 7 -- !query 637 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as int), cast(2 as tinyint)) FROM t -- !query 637 schema -struct> +struct -- !query 637 output -{1.0:1,2.0:2} +1 -- !query 638 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t +SELECT least(cast(1 as int), cast(2 as smallint)) FROM t -- !query 638 schema -struct> +struct -- !query 638 output -{1.0:1,2.0:2} +1 -- !query 639 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t +SELECT least(cast(1 as int), cast(2 as int)) FROM t -- !query 639 schema -struct> +struct -- !query 639 output -{1.0:1,2.0:2} +1 -- !query 640 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t +SELECT least(cast(1 as int), cast(2 as bigint)) FROM t -- !query 640 schema -struct> +struct -- !query 640 output -{1.0:1,2.0:2} +1 -- !query 641 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t +SELECT least(cast(1 as int), cast(2 as float)) FROM t -- !query 641 schema -struct> +struct -- !query 641 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 642 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t +SELECT least(cast(1 as int), cast(2 as double)) FROM t -- !query 642 schema -struct> +struct -- !query 642 output -{1.0:1.0,2.0:2.0} +1.0 -- !query 643 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as int), cast(2 as decimal(10, 0))) FROM t -- !query 643 schema -struct> +struct -- !query 643 output -{1.0:1,2.0:2} +1 -- !query 644 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t +SELECT least(cast(1 as int), cast(2 as string)) FROM t -- !query 644 schema -struct> +struct<> -- !query 644 output -{1.0:"1",2.0:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, string).; line 1 pos 7 -- !query 645 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t +SELECT least(cast(1 as int), cast('2' as binary)) FROM t -- !query 645 schema struct<> -- !query 645 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, binary).; line 1 pos 7 -- !query 646 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t +SELECT least(cast(1 as int), cast(2 as boolean)) FROM t -- !query 646 schema struct<> -- !query 646 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, boolean).; line 1 pos 7 -- !query 647 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 647 schema struct<> -- !query 647 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, timestamp).; line 1 pos 7 -- !query 648 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 648 schema struct<> -- !query 648 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, date).; line 1 pos 7 -- !query 649 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as bigint), cast(2 as tinyint)) FROM t -- !query 649 schema -struct> +struct -- !query 649 output -{1:1,2:2} +1 -- !query 650 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t +SELECT least(cast(1 as bigint), cast(2 as smallint)) FROM t -- !query 650 schema -struct> +struct -- !query 650 output -{1:1,2:2} +1 -- !query 651 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t +SELECT least(cast(1 as bigint), cast(2 as int)) FROM t -- !query 651 schema -struct> +struct -- !query 651 output -{1:1,2:2} +1 -- !query 652 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t +SELECT least(cast(1 as bigint), cast(2 as bigint)) FROM t -- !query 652 schema -struct> +struct -- !query 652 output -{1:1,2:2} +1 -- !query 653 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t +SELECT least(cast(1 as bigint), cast(2 as float)) FROM t -- !query 653 schema -struct> +struct -- !query 653 output -{1:1.0,2:2.0} +1.0 -- !query 654 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t +SELECT least(cast(1 as bigint), cast(2 as double)) FROM t -- !query 654 schema -struct> +struct -- !query 654 output -{1:1.0,2:2.0} +1.0 -- !query 655 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t -- !query 655 schema -struct> +struct -- !query 655 output -{1:1,2:2} +1 -- !query 656 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t +SELECT least(cast(1 as bigint), cast(2 as string)) FROM t -- !query 656 schema -struct> +struct<> -- !query 656 output -{1:"1",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, string).; line 1 pos 7 -- !query 657 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t +SELECT least(cast(1 as bigint), cast('2' as binary)) FROM t -- !query 657 schema struct<> -- !query 657 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, binary).; line 1 pos 7 -- !query 658 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t +SELECT least(cast(1 as bigint), cast(2 as boolean)) FROM t -- !query 658 schema struct<> -- !query 658 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, boolean).; line 1 pos 7 -- !query 659 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 659 schema struct<> -- !query 659 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, timestamp).; line 1 pos 7 -- !query 660 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 660 schema struct<> -- !query 660 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, date).; line 1 pos 7 -- !query 661 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as float), cast(2 as tinyint)) FROM t -- !query 661 schema -struct> +struct -- !query 661 output -{"1":1,"2":2} +1.0 -- !query 662 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t +SELECT least(cast(1 as float), cast(2 as smallint)) FROM t -- !query 662 schema -struct> +struct -- !query 662 output -{"1":1,"2":2} +1.0 -- !query 663 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t +SELECT least(cast(1 as float), cast(2 as int)) FROM t -- !query 663 schema -struct> +struct -- !query 663 output -{"1":1,"2":2} +1.0 -- !query 664 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t +SELECT least(cast(1 as float), cast(2 as bigint)) FROM t -- !query 664 schema -struct> +struct -- !query 664 output -{"1":1,"2":2} +1.0 -- !query 665 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t +SELECT least(cast(1 as float), cast(2 as float)) FROM t -- !query 665 schema -struct> +struct -- !query 665 output -{"1":1.0,"2":2.0} +1.0 -- !query 666 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t +SELECT least(cast(1 as float), cast(2 as double)) FROM t -- !query 666 schema -struct> +struct -- !query 666 output -{"1":1.0,"2":2.0} +1.0 -- !query 667 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as float), cast(2 as decimal(10, 0))) FROM t -- !query 667 schema -struct> +struct -- !query 667 output -{"1":1,"2":2} +1.0 -- !query 668 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t +SELECT least(cast(1 as float), cast(2 as string)) FROM t -- !query 668 schema -struct> +struct<> -- !query 668 output -{"1":"1","2":"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, string).; line 1 pos 7 -- !query 669 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t +SELECT least(cast(1 as float), cast('2' as binary)) FROM t -- !query 669 schema struct<> -- !query 669 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, binary).; line 1 pos 7 -- !query 670 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t +SELECT least(cast(1 as float), cast(2 as boolean)) FROM t -- !query 670 schema struct<> -- !query 670 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, boolean).; line 1 pos 7 -- !query 671 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 671 schema struct<> -- !query 671 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, timestamp).; line 1 pos 7 -- !query 672 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 672 schema struct<> -- !query 672 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, date).; line 1 pos 7 -- !query 673 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as double), cast(2 as tinyint)) FROM t -- !query 673 schema -struct<> +struct -- !query 673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 674 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t +SELECT least(cast(1 as double), cast(2 as smallint)) FROM t -- !query 674 schema -struct<> +struct -- !query 674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 675 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t +SELECT least(cast(1 as double), cast(2 as int)) FROM t -- !query 675 schema -struct<> +struct -- !query 675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 676 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t +SELECT least(cast(1 as double), cast(2 as bigint)) FROM t -- !query 676 schema -struct<> +struct -- !query 676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 677 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t +SELECT least(cast(1 as double), cast(2 as float)) FROM t -- !query 677 schema -struct<> +struct -- !query 677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 678 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t +SELECT least(cast(1 as double), cast(2 as double)) FROM t -- !query 678 schema -struct<> +struct -- !query 678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 679 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as double), cast(2 as decimal(10, 0))) FROM t -- !query 679 schema -struct<> +struct -- !query 679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +1.0 -- !query 680 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t +SELECT least(cast(1 as double), cast(2 as string)) FROM t -- !query 680 schema struct<> -- !query 680 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, string).; line 1 pos 7 -- !query 681 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t +SELECT least(cast(1 as double), cast('2' as binary)) FROM t -- !query 681 schema struct<> -- !query 681 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, binary).; line 1 pos 7 -- !query 682 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t +SELECT least(cast(1 as double), cast(2 as boolean)) FROM t -- !query 682 schema struct<> -- !query 682 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, boolean).; line 1 pos 7 -- !query 683 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 683 schema struct<> -- !query 683 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, timestamp).; line 1 pos 7 -- !query 684 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 684 schema struct<> -- !query 684 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, date).; line 1 pos 7 -- !query 685 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t -- !query 685 schema -struct<> +struct -- !query 685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 686 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t -- !query 686 schema -struct<> +struct -- !query 686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 687 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t -- !query 687 schema -struct<> +struct -- !query 687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 688 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t -- !query 688 schema -struct<> +struct -- !query 688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 689 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t -- !query 689 schema -struct<> +struct -- !query 689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1.0 -- !query 690 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t -- !query 690 schema -struct<> +struct -- !query 690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1.0 -- !query 691 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t -- !query 691 schema -struct<> +struct -- !query 691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +1 -- !query 692 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t -- !query 692 schema struct<> -- !query 692 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), string).; line 1 pos 7 -- !query 693 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t -- !query 693 schema struct<> -- !query 693 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), binary).; line 1 pos 7 -- !query 694 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t -- !query 694 schema struct<> -- !query 694 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), boolean).; line 1 pos 7 -- !query 695 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 695 schema struct<> -- !query 695 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), timestamp).; line 1 pos 7 -- !query 696 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 696 schema struct<> -- !query 696 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), date).; line 1 pos 7 -- !query 697 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as string), cast(2 as tinyint)) FROM t -- !query 697 schema struct<> -- !query 697 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, tinyint).; line 1 pos 7 -- !query 698 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t +SELECT least(cast(1 as string), cast(2 as smallint)) FROM t -- !query 698 schema struct<> -- !query 698 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, smallint).; line 1 pos 7 -- !query 699 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t +SELECT least(cast(1 as string), cast(2 as int)) FROM t -- !query 699 schema struct<> -- !query 699 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, int).; line 1 pos 7 -- !query 700 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t +SELECT least(cast(1 as string), cast(2 as bigint)) FROM t -- !query 700 schema struct<> -- !query 700 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, bigint).; line 1 pos 7 -- !query 701 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t +SELECT least(cast(1 as string), cast(2 as float)) FROM t -- !query 701 schema struct<> -- !query 701 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, float).; line 1 pos 7 -- !query 702 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t +SELECT least(cast(1 as string), cast(2 as double)) FROM t -- !query 702 schema struct<> -- !query 702 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, double).; line 1 pos 7 -- !query 703 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as string), cast(2 as decimal(10, 0))) FROM t -- !query 703 schema struct<> -- !query 703 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, decimal(10,0)).; line 1 pos 7 -- !query 704 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t +SELECT least(cast(1 as string), cast(2 as string)) FROM t -- !query 704 schema -struct<> +struct -- !query 704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +1 -- !query 705 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t +SELECT least(cast(1 as string), cast('2' as binary)) FROM t -- !query 705 schema struct<> -- !query 705 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, binary).; line 1 pos 7 -- !query 706 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t +SELECT least(cast(1 as string), cast(2 as boolean)) FROM t -- !query 706 schema struct<> -- !query 706 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, boolean).; line 1 pos 7 -- !query 707 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 707 schema struct<> -- !query 707 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, timestamp).; line 1 pos 7 -- !query 708 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 708 schema struct<> -- !query 708 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, date).; line 1 pos 7 -- !query 709 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t +SELECT least(cast('1' as binary), cast(2 as tinyint)) FROM t -- !query 709 schema struct<> -- !query 709 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, tinyint).; line 1 pos 7 -- !query 710 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t +SELECT least(cast('1' as binary), cast(2 as smallint)) FROM t -- !query 710 schema struct<> -- !query 710 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, smallint).; line 1 pos 7 -- !query 711 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t +SELECT least(cast('1' as binary), cast(2 as int)) FROM t -- !query 711 schema struct<> -- !query 711 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, int).; line 1 pos 7 -- !query 712 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t +SELECT least(cast('1' as binary), cast(2 as bigint)) FROM t -- !query 712 schema struct<> -- !query 712 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, bigint).; line 1 pos 7 -- !query 713 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t +SELECT least(cast('1' as binary), cast(2 as float)) FROM t -- !query 713 schema struct<> -- !query 713 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, float).; line 1 pos 7 -- !query 714 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t +SELECT least(cast('1' as binary), cast(2 as double)) FROM t -- !query 714 schema struct<> -- !query 714 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, double).; line 1 pos 7 -- !query 715 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t -- !query 715 schema struct<> -- !query 715 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, decimal(10,0)).; line 1 pos 7 -- !query 716 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t +SELECT least(cast('1' as binary), cast(2 as string)) FROM t -- !query 716 schema struct<> -- !query 716 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, string).; line 1 pos 7 -- !query 717 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t +SELECT least(cast('1' as binary), cast('2' as binary)) FROM t -- !query 717 schema -struct<> +struct -- !query 717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +1 -- !query 718 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t +SELECT least(cast('1' as binary), cast(2 as boolean)) FROM t -- !query 718 schema struct<> -- !query 718 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, boolean).; line 1 pos 7 -- !query 719 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 719 schema struct<> -- !query 719 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, timestamp).; line 1 pos 7 -- !query 720 -SELECT map(cast(1 as tinyint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 720 schema struct<> -- !query 720 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 +cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, date).; line 1 pos 7 -- !query 721 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t +SELECT least(cast(1 as boolean), cast(2 as tinyint)) FROM t -- !query 721 schema -struct> +struct<> -- !query 721 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, tinyint).; line 1 pos 7 -- !query 722 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t +SELECT least(cast(1 as boolean), cast(2 as smallint)) FROM t -- !query 722 schema -struct> +struct<> -- !query 722 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, smallint).; line 1 pos 7 -- !query 723 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t +SELECT least(cast(1 as boolean), cast(2 as int)) FROM t -- !query 723 schema -struct> +struct<> -- !query 723 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, int).; line 1 pos 7 -- !query 724 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t +SELECT least(cast(1 as boolean), cast(2 as bigint)) FROM t -- !query 724 schema -struct> +struct<> -- !query 724 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, bigint).; line 1 pos 7 -- !query 725 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t +SELECT least(cast(1 as boolean), cast(2 as float)) FROM t -- !query 725 schema -struct> +struct<> -- !query 725 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, float).; line 1 pos 7 -- !query 726 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t +SELECT least(cast(1 as boolean), cast(2 as double)) FROM t -- !query 726 schema -struct> +struct<> -- !query 726 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, double).; line 1 pos 7 -- !query 727 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t +SELECT least(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t -- !query 727 schema -struct> +struct<> -- !query 727 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, decimal(10,0)).; line 1 pos 7 -- !query 728 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t +SELECT least(cast(1 as boolean), cast(2 as string)) FROM t -- !query 728 schema -struct> +struct<> -- !query 728 output -{1:"1.0",2:"2"} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, string).; line 1 pos 7 -- !query 729 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t +SELECT least(cast(1 as boolean), cast('2' as binary)) FROM t -- !query 729 schema struct<> -- !query 729 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, binary).; line 1 pos 7 -- !query 730 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t +SELECT least(cast(1 as boolean), cast(2 as boolean)) FROM t -- !query 730 schema -struct<> +struct -- !query 730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 +true -- !query 731 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t +SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t -- !query 731 schema struct<> -- !query 731 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, timestamp).; line 1 pos 7 -- !query 732 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t +SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t -- !query 732 schema struct<> -- !query 732 output org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 +cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, date).; line 1 pos 7 -- !query 733 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t +SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t -- !query 733 schema -struct> +struct<> -- !query 733 output -{1:1.0,2:2.0} +org.apache.spark.sql.AnalysisException +cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, tinyint).; line 1 pos 7 -- !query 734 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 734 schema -struct> --- !query 734 output -{1:1.0,2:2.0} - - --- !query 735 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 735 schema -struct> --- !query 735 output -{1:1.0,2:2.0} - - --- !query 736 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 736 schema -struct> --- !query 736 output -{1:1.0,2:2.0} - - --- !query 737 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 737 schema -struct> --- !query 737 output -{1:1.0,2:2.0} - - --- !query 738 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 738 schema -struct> --- !query 738 output -{1:1.0,2:2.0} - - --- !query 739 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 739 schema -struct> --- !query 739 output -{1:1.0,2:2.0} - - --- !query 740 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 740 schema -struct> --- !query 740 output -{1:"1.0",2:"2"} - - --- !query 741 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 741 schema -struct<> --- !query 741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 742 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 742 schema -struct<> --- !query 742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 743 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 743 schema -struct<> --- !query 743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 744 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 744 schema -struct<> --- !query 744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 745 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 745 schema -struct> --- !query 745 output -{1:1.0,2:2.0} - - --- !query 746 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 746 schema -struct> --- !query 746 output -{1:1.0,2:2.0} - - --- !query 747 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 747 schema -struct> --- !query 747 output -{1:1.0,2:2.0} - - --- !query 748 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 748 schema -struct> --- !query 748 output -{1:1.0,2:2.0} - - --- !query 749 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 749 schema -struct> --- !query 749 output -{1:1.0,2:2.0} - - --- !query 750 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 750 schema -struct> --- !query 750 output -{1:1.0,2:2.0} - - --- !query 751 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 751 schema -struct> --- !query 751 output -{1:1.0,2:2.0} - - --- !query 752 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 752 schema -struct> --- !query 752 output -{1:"1.0",2:"2"} - - --- !query 753 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 753 schema -struct<> --- !query 753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 754 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 754 schema -struct<> --- !query 754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 755 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 755 schema -struct<> --- !query 755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 756 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 756 schema -struct<> --- !query 756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 757 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 757 schema -struct> --- !query 757 output -{1:1.0,2:2.0} - - --- !query 758 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 758 schema -struct> --- !query 758 output -{1:1.0,2:2.0} - - --- !query 759 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 759 schema -struct> --- !query 759 output -{1:1.0,2:2.0} - - --- !query 760 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 760 schema -struct> --- !query 760 output -{1:1.0,2:2.0} - - --- !query 761 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 761 schema -struct> --- !query 761 output -{1:1.0,2:2.0} - - --- !query 762 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 762 schema -struct> --- !query 762 output -{1:1.0,2:2.0} - - --- !query 763 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 763 schema -struct> --- !query 763 output -{1:1.0,2:2.0} - - --- !query 764 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 764 schema -struct> --- !query 764 output -{1:"1.0",2:"2"} - - --- !query 765 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 765 schema -struct<> --- !query 765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 766 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 766 schema -struct<> --- !query 766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 767 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 767 schema -struct<> --- !query 767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 768 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 768 schema -struct<> --- !query 768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 769 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 769 schema -struct> --- !query 769 output -{1.0:1.0,2.0:2.0} - - --- !query 770 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 770 schema -struct> --- !query 770 output -{1.0:1.0,2.0:2.0} - - --- !query 771 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 771 schema -struct> --- !query 771 output -{1.0:1.0,2.0:2.0} - - --- !query 772 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 772 schema -struct> --- !query 772 output -{1.0:1.0,2.0:2.0} - - --- !query 773 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 773 schema -struct> --- !query 773 output -{1.0:1.0,2.0:2.0} - - --- !query 774 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 774 schema -struct> --- !query 774 output -{1.0:1.0,2.0:2.0} - - --- !query 775 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 775 schema -struct> --- !query 775 output -{1.0:1.0,2.0:2.0} - - --- !query 776 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 776 schema -struct> --- !query 776 output -{1.0:"1.0",2.0:"2"} - - --- !query 777 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 777 schema -struct<> --- !query 777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 778 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 778 schema -struct<> --- !query 778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 779 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 779 schema -struct<> --- !query 779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 780 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 780 schema -struct<> --- !query 780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 781 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 781 schema -struct> --- !query 781 output -{1.0:1.0,2.0:2.0} - - --- !query 782 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 782 schema -struct> --- !query 782 output -{1.0:1.0,2.0:2.0} - - --- !query 783 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 783 schema -struct> --- !query 783 output -{1.0:1.0,2.0:2.0} - - --- !query 784 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 784 schema -struct> --- !query 784 output -{1.0:1.0,2.0:2.0} - - --- !query 785 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 785 schema -struct> --- !query 785 output -{1.0:1.0,2.0:2.0} - - --- !query 786 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 786 schema -struct> --- !query 786 output -{1.0:1.0,2.0:2.0} - - --- !query 787 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 787 schema -struct> --- !query 787 output -{1.0:1.0,2.0:2.0} - - --- !query 788 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 788 schema -struct> --- !query 788 output -{1.0:"1.0",2.0:"2"} - - --- !query 789 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 789 schema -struct<> --- !query 789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 790 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 790 schema -struct<> --- !query 790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 791 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 791 schema -struct<> --- !query 791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 792 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 792 schema -struct<> --- !query 792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 793 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 793 schema -struct> --- !query 793 output -{1:1.0,2:2.0} - - --- !query 794 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 794 schema -struct> --- !query 794 output -{1:1.0,2:2.0} - - --- !query 795 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 795 schema -struct> --- !query 795 output -{1:1.0,2:2.0} - - --- !query 796 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 796 schema -struct> --- !query 796 output -{1:1.0,2:2.0} - - --- !query 797 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 797 schema -struct> --- !query 797 output -{1:1.0,2:2.0} - - --- !query 798 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 798 schema -struct> --- !query 798 output -{1:1.0,2:2.0} - - --- !query 799 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 799 schema -struct> --- !query 799 output -{1:1.0,2:2.0} - - --- !query 800 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 800 schema -struct> --- !query 800 output -{1:"1.0",2:"2"} - - --- !query 801 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 801 schema -struct<> --- !query 801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 802 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 802 schema -struct<> --- !query 802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 803 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 803 schema -struct<> --- !query 803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 804 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 804 schema -struct<> --- !query 804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 805 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 805 schema -struct> --- !query 805 output -{"1":1.0,"2":2.0} - - --- !query 806 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 806 schema -struct> --- !query 806 output -{"1":1.0,"2":2.0} - - --- !query 807 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 807 schema -struct> --- !query 807 output -{"1":1.0,"2":2.0} - - --- !query 808 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 808 schema -struct> --- !query 808 output -{"1":1.0,"2":2.0} - - --- !query 809 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 809 schema -struct> --- !query 809 output -{"1":1.0,"2":2.0} - - --- !query 810 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 810 schema -struct> --- !query 810 output -{"1":1.0,"2":2.0} - - --- !query 811 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 811 schema -struct> --- !query 811 output -{"1":1.0,"2":2.0} - - --- !query 812 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 812 schema -struct> --- !query 812 output -{"1":"1.0","2":"2"} - - --- !query 813 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 813 schema -struct<> --- !query 813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 814 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 814 schema -struct<> --- !query 814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 815 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 815 schema -struct<> --- !query 815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 816 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 816 schema -struct<> --- !query 816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 817 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 817 schema -struct<> --- !query 817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 818 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 818 schema -struct<> --- !query 818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 819 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 819 schema -struct<> --- !query 819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 820 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 820 schema -struct<> --- !query 820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 821 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 821 schema -struct<> --- !query 821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 822 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 822 schema -struct<> --- !query 822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 823 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 823 schema -struct<> --- !query 823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 824 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 824 schema -struct<> --- !query 824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 825 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 825 schema -struct<> --- !query 825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 826 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 826 schema -struct<> --- !query 826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 827 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 827 schema -struct<> --- !query 827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 828 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 828 schema -struct<> --- !query 828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 829 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 829 schema -struct<> --- !query 829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 830 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 830 schema -struct<> --- !query 830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 831 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 831 schema -struct<> --- !query 831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 832 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 832 schema -struct<> --- !query 832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 833 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 833 schema -struct<> --- !query 833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 834 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 834 schema -struct<> --- !query 834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 835 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 835 schema -struct<> --- !query 835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 836 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 836 schema -struct<> --- !query 836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 837 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 837 schema -struct<> --- !query 837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 838 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 838 schema -struct<> --- !query 838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 839 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 839 schema -struct<> --- !query 839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 840 -SELECT map(cast(1 as tinyint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 840 schema -struct<> --- !query 840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 841 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 841 schema -struct<> --- !query 841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 842 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 842 schema -struct<> --- !query 842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 843 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 843 schema -struct<> --- !query 843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 844 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 844 schema -struct<> --- !query 844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 845 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 845 schema -struct<> --- !query 845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 846 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 846 schema -struct<> --- !query 846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 847 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 847 schema -struct<> --- !query 847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 848 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 848 schema -struct<> --- !query 848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 849 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 849 schema -struct<> --- !query 849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 850 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 850 schema -struct<> --- !query 850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 851 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 851 schema -struct<> --- !query 851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 852 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 852 schema -struct<> --- !query 852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 853 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 853 schema -struct<> --- !query 853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 854 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 854 schema -struct<> --- !query 854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 855 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 855 schema -struct<> --- !query 855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 856 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 856 schema -struct<> --- !query 856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 857 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 857 schema -struct<> --- !query 857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 858 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 858 schema -struct<> --- !query 858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 859 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 859 schema -struct<> --- !query 859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 860 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 860 schema -struct<> --- !query 860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 861 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 861 schema -struct<> --- !query 861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 862 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 862 schema -struct<> --- !query 862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 863 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 863 schema -struct<> --- !query 863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 864 -SELECT map(cast(1 as tinyint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 864 schema -struct<> --- !query 864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 865 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 865 schema -struct> --- !query 865 output -{1:1.0,2:2.0} - - --- !query 866 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 866 schema -struct> --- !query 866 output -{1:1.0,2:2.0} - - --- !query 867 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 867 schema -struct> --- !query 867 output -{1:1.0,2:2.0} - - --- !query 868 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 868 schema -struct> --- !query 868 output -{1:1.0,2:2.0} - - --- !query 869 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 869 schema -struct> --- !query 869 output -{1:1.0,2:2.0} - - --- !query 870 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 870 schema -struct> --- !query 870 output -{1:1.0,2:2.0} - - --- !query 871 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 871 schema -struct> --- !query 871 output -{1:1.0,2:2.0} - - --- !query 872 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 872 schema -struct> --- !query 872 output -{1:"1.0",2:"2"} - - --- !query 873 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 873 schema -struct<> --- !query 873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 874 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 874 schema -struct<> --- !query 874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 875 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 875 schema -struct<> --- !query 875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 876 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 876 schema -struct<> --- !query 876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 877 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 877 schema -struct> --- !query 877 output -{1:1.0,2:2.0} - - --- !query 878 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 878 schema -struct> --- !query 878 output -{1:1.0,2:2.0} - - --- !query 879 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 879 schema -struct> --- !query 879 output -{1:1.0,2:2.0} - - --- !query 880 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 880 schema -struct> --- !query 880 output -{1:1.0,2:2.0} - - --- !query 881 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 881 schema -struct> --- !query 881 output -{1:1.0,2:2.0} - - --- !query 882 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 882 schema -struct> --- !query 882 output -{1:1.0,2:2.0} - - --- !query 883 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 883 schema -struct> --- !query 883 output -{1:1.0,2:2.0} - - --- !query 884 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 884 schema -struct> --- !query 884 output -{1:"1.0",2:"2"} - - --- !query 885 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 885 schema -struct<> --- !query 885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 886 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 886 schema -struct<> --- !query 886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 887 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 887 schema -struct<> --- !query 887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 888 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 888 schema -struct<> --- !query 888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 889 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 889 schema -struct> --- !query 889 output -{1:1.0,2:2.0} - - --- !query 890 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 890 schema -struct> --- !query 890 output -{1:1.0,2:2.0} - - --- !query 891 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 891 schema -struct> --- !query 891 output -{1:1.0,2:2.0} - - --- !query 892 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 892 schema -struct> --- !query 892 output -{1:1.0,2:2.0} - - --- !query 893 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 893 schema -struct> --- !query 893 output -{1:1.0,2:2.0} - - --- !query 894 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 894 schema -struct> --- !query 894 output -{1:1.0,2:2.0} - - --- !query 895 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 895 schema -struct> --- !query 895 output -{1:1.0,2:2.0} - - --- !query 896 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 896 schema -struct> --- !query 896 output -{1:"1.0",2:"2"} - - --- !query 897 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 897 schema -struct<> --- !query 897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 898 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 898 schema -struct<> --- !query 898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 899 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 899 schema -struct<> --- !query 899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 900 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 900 schema -struct<> --- !query 900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 901 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 901 schema -struct> --- !query 901 output -{1:1.0,2:2.0} - - --- !query 902 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 902 schema -struct> --- !query 902 output -{1:1.0,2:2.0} - - --- !query 903 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 903 schema -struct> --- !query 903 output -{1:1.0,2:2.0} - - --- !query 904 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 904 schema -struct> --- !query 904 output -{1:1.0,2:2.0} - - --- !query 905 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 905 schema -struct> --- !query 905 output -{1:1.0,2:2.0} - - --- !query 906 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 906 schema -struct> --- !query 906 output -{1:1.0,2:2.0} - - --- !query 907 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 907 schema -struct> --- !query 907 output -{1:1.0,2:2.0} - - --- !query 908 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 908 schema -struct> --- !query 908 output -{1:"1.0",2:"2"} - - --- !query 909 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 909 schema -struct<> --- !query 909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 910 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 910 schema -struct<> --- !query 910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 911 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 911 schema -struct<> --- !query 911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 912 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 912 schema -struct<> --- !query 912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 913 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 913 schema -struct> --- !query 913 output -{1.0:1.0,2.0:2.0} - - --- !query 914 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 914 schema -struct> --- !query 914 output -{1.0:1.0,2.0:2.0} - - --- !query 915 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 915 schema -struct> --- !query 915 output -{1.0:1.0,2.0:2.0} - - --- !query 916 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 916 schema -struct> --- !query 916 output -{1.0:1.0,2.0:2.0} - - --- !query 917 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 917 schema -struct> --- !query 917 output -{1.0:1.0,2.0:2.0} - - --- !query 918 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 918 schema -struct> --- !query 918 output -{1.0:1.0,2.0:2.0} - - --- !query 919 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 919 schema -struct> --- !query 919 output -{1.0:1.0,2.0:2.0} - - --- !query 920 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 920 schema -struct> --- !query 920 output -{1.0:"1.0",2.0:"2"} - - --- !query 921 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 921 schema -struct<> --- !query 921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 922 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 922 schema -struct<> --- !query 922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 923 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 923 schema -struct<> --- !query 923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 924 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 924 schema -struct<> --- !query 924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 925 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 925 schema -struct> --- !query 925 output -{1.0:1.0,2.0:2.0} - - --- !query 926 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 926 schema -struct> --- !query 926 output -{1.0:1.0,2.0:2.0} - - --- !query 927 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 927 schema -struct> --- !query 927 output -{1.0:1.0,2.0:2.0} - - --- !query 928 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 928 schema -struct> --- !query 928 output -{1.0:1.0,2.0:2.0} - - --- !query 929 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 929 schema -struct> --- !query 929 output -{1.0:1.0,2.0:2.0} - - --- !query 930 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 930 schema -struct> --- !query 930 output -{1.0:1.0,2.0:2.0} - - --- !query 931 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 931 schema -struct> --- !query 931 output -{1.0:1.0,2.0:2.0} - - --- !query 932 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 932 schema -struct> --- !query 932 output -{1.0:"1.0",2.0:"2"} - - --- !query 933 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 933 schema -struct<> --- !query 933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 934 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 934 schema -struct<> --- !query 934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 935 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 935 schema -struct<> --- !query 935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 936 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 936 schema -struct<> --- !query 936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 937 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 937 schema -struct> --- !query 937 output -{1:1.0,2:2.0} - - --- !query 938 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 938 schema -struct> --- !query 938 output -{1:1.0,2:2.0} - - --- !query 939 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 939 schema -struct> --- !query 939 output -{1:1.0,2:2.0} - - --- !query 940 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 940 schema -struct> --- !query 940 output -{1:1.0,2:2.0} - - --- !query 941 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 941 schema -struct> --- !query 941 output -{1:1.0,2:2.0} - - --- !query 942 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 942 schema -struct> --- !query 942 output -{1:1.0,2:2.0} - - --- !query 943 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 943 schema -struct> --- !query 943 output -{1:1.0,2:2.0} - - --- !query 944 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 944 schema -struct> --- !query 944 output -{1:"1.0",2:"2"} - - --- !query 945 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 945 schema -struct<> --- !query 945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 946 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 946 schema -struct<> --- !query 946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 947 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 947 schema -struct<> --- !query 947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 948 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 948 schema -struct<> --- !query 948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 949 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 949 schema -struct> --- !query 949 output -{"1":1.0,"2":2.0} - - --- !query 950 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 950 schema -struct> --- !query 950 output -{"1":1.0,"2":2.0} - - --- !query 951 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 951 schema -struct> --- !query 951 output -{"1":1.0,"2":2.0} - - --- !query 952 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 952 schema -struct> --- !query 952 output -{"1":1.0,"2":2.0} - - --- !query 953 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 953 schema -struct> --- !query 953 output -{"1":1.0,"2":2.0} - - --- !query 954 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 954 schema -struct> --- !query 954 output -{"1":1.0,"2":2.0} - - --- !query 955 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 955 schema -struct> --- !query 955 output -{"1":1.0,"2":2.0} - - --- !query 956 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 956 schema -struct> --- !query 956 output -{"1":"1.0","2":"2"} - - --- !query 957 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 957 schema -struct<> --- !query 957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 958 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 958 schema -struct<> --- !query 958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 959 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 959 schema -struct<> --- !query 959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 960 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 960 schema -struct<> --- !query 960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 961 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 961 schema -struct<> --- !query 961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 962 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 962 schema -struct<> --- !query 962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 963 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 963 schema -struct<> --- !query 963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 964 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 964 schema -struct<> --- !query 964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 965 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 965 schema -struct<> --- !query 965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 966 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 966 schema -struct<> --- !query 966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 967 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 967 schema -struct<> --- !query 967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 968 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 968 schema -struct<> --- !query 968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 969 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 969 schema -struct<> --- !query 969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 970 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 970 schema -struct<> --- !query 970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 971 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 971 schema -struct<> --- !query 971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 972 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 972 schema -struct<> --- !query 972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 973 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 973 schema -struct<> --- !query 973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 974 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 974 schema -struct<> --- !query 974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 975 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 975 schema -struct<> --- !query 975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 976 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 976 schema -struct<> --- !query 976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 977 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 977 schema -struct<> --- !query 977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 978 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 978 schema -struct<> --- !query 978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 979 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 979 schema -struct<> --- !query 979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 980 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 980 schema -struct<> --- !query 980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 981 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 981 schema -struct<> --- !query 981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 982 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 982 schema -struct<> --- !query 982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 983 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 983 schema -struct<> --- !query 983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 984 -SELECT map(cast(1 as tinyint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 984 schema -struct<> --- !query 984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 985 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 985 schema -struct<> --- !query 985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 986 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 986 schema -struct<> --- !query 986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 987 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 987 schema -struct<> --- !query 987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 988 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 988 schema -struct<> --- !query 988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 989 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 989 schema -struct<> --- !query 989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 990 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 990 schema -struct<> --- !query 990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 991 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 991 schema -struct<> --- !query 991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 992 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 992 schema -struct<> --- !query 992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 993 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 993 schema -struct<> --- !query 993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 994 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 994 schema -struct<> --- !query 994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 995 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 995 schema -struct<> --- !query 995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 996 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 996 schema -struct<> --- !query 996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 997 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 997 schema -struct<> --- !query 997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 998 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 998 schema -struct<> --- !query 998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 999 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 999 schema -struct<> --- !query 999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1000 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 1000 schema -struct<> --- !query 1000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1001 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 1001 schema -struct<> --- !query 1001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1002 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 1002 schema -struct<> --- !query 1002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1003 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 1003 schema -struct<> --- !query 1003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1004 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 1004 schema -struct<> --- !query 1004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1005 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 1005 schema -struct<> --- !query 1005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1006 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 1006 schema -struct<> --- !query 1006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1007 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1007 schema -struct<> --- !query 1007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1008 -SELECT map(cast(1 as tinyint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1008 schema -struct<> --- !query 1008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1009 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 1009 schema -struct> --- !query 1009 output -{1:1,2:2} - - --- !query 1010 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 1010 schema -struct> --- !query 1010 output -{1:1,2:2} - - --- !query 1011 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 1011 schema -struct> --- !query 1011 output -{1:1,2:2} - - --- !query 1012 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 1012 schema -struct> --- !query 1012 output -{1:1,2:2} - - --- !query 1013 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 1013 schema -struct> --- !query 1013 output -{1:1.0,2:2.0} - - --- !query 1014 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 1014 schema -struct> --- !query 1014 output -{1:1.0,2:2.0} - - --- !query 1015 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 1015 schema -struct> --- !query 1015 output -{1:1,2:2} - - --- !query 1016 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 1016 schema -struct> --- !query 1016 output -{1:"1",2:"2"} - - --- !query 1017 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 1017 schema -struct<> --- !query 1017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1018 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 1018 schema -struct<> --- !query 1018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1019 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1019 schema -struct<> --- !query 1019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1020 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1020 schema -struct<> --- !query 1020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1021 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 1021 schema -struct> --- !query 1021 output -{1:1,2:2} - - --- !query 1022 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 1022 schema -struct> --- !query 1022 output -{1:1,2:2} - - --- !query 1023 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 1023 schema -struct> --- !query 1023 output -{1:1,2:2} - - --- !query 1024 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 1024 schema -struct> --- !query 1024 output -{1:1,2:2} - - --- !query 1025 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 1025 schema -struct> --- !query 1025 output -{1:1.0,2:2.0} - - --- !query 1026 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 1026 schema -struct> --- !query 1026 output -{1:1.0,2:2.0} - - --- !query 1027 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 1027 schema -struct> --- !query 1027 output -{1:1,2:2} - - --- !query 1028 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 1028 schema -struct> --- !query 1028 output -{1:"1",2:"2"} - - --- !query 1029 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 1029 schema -struct<> --- !query 1029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1030 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 1030 schema -struct<> --- !query 1030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1031 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1031 schema -struct<> --- !query 1031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1032 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1032 schema -struct<> --- !query 1032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1033 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 1033 schema -struct> --- !query 1033 output -{1:1,2:2} - - --- !query 1034 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 1034 schema -struct> --- !query 1034 output -{1:1,2:2} - - --- !query 1035 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 1035 schema -struct> --- !query 1035 output -{1:1,2:2} - - --- !query 1036 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 1036 schema -struct> --- !query 1036 output -{1:1,2:2} - - --- !query 1037 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 1037 schema -struct> --- !query 1037 output -{1:1.0,2:2.0} - - --- !query 1038 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 1038 schema -struct> --- !query 1038 output -{1:1.0,2:2.0} - - --- !query 1039 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 1039 schema -struct> --- !query 1039 output -{1:1,2:2} - - --- !query 1040 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 1040 schema -struct> --- !query 1040 output -{1:"1",2:"2"} - - --- !query 1041 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 1041 schema -struct<> --- !query 1041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1042 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 1042 schema -struct<> --- !query 1042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1043 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1043 schema -struct<> --- !query 1043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1044 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1044 schema -struct<> --- !query 1044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1045 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 1045 schema -struct> --- !query 1045 output -{1:1,2:2} - - --- !query 1046 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 1046 schema -struct> --- !query 1046 output -{1:1,2:2} - - --- !query 1047 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 1047 schema -struct> --- !query 1047 output -{1:1,2:2} - - --- !query 1048 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 1048 schema -struct> --- !query 1048 output -{1:1,2:2} - - --- !query 1049 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 1049 schema -struct> --- !query 1049 output -{1:1.0,2:2.0} - - --- !query 1050 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 1050 schema -struct> --- !query 1050 output -{1:1.0,2:2.0} - - --- !query 1051 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 1051 schema -struct> --- !query 1051 output -{1:1,2:2} - - --- !query 1052 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 1052 schema -struct> --- !query 1052 output -{1:"1",2:"2"} - - --- !query 1053 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 1053 schema -struct<> --- !query 1053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1054 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 1054 schema -struct<> --- !query 1054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1055 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1055 schema -struct<> --- !query 1055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1056 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1056 schema -struct<> --- !query 1056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1057 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 1057 schema -struct> --- !query 1057 output -{1.0:1,2.0:2} - - --- !query 1058 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 1058 schema -struct> --- !query 1058 output -{1.0:1,2.0:2} - - --- !query 1059 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 1059 schema -struct> --- !query 1059 output -{1.0:1,2.0:2} - - --- !query 1060 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 1060 schema -struct> --- !query 1060 output -{1.0:1,2.0:2} - - --- !query 1061 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 1061 schema -struct> --- !query 1061 output -{1.0:1.0,2.0:2.0} - - --- !query 1062 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 1062 schema -struct> --- !query 1062 output -{1.0:1.0,2.0:2.0} - - --- !query 1063 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 1063 schema -struct> --- !query 1063 output -{1.0:1,2.0:2} - - --- !query 1064 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 1064 schema -struct> --- !query 1064 output -{1.0:"1",2.0:"2"} - - --- !query 1065 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 1065 schema -struct<> --- !query 1065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1066 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 1066 schema -struct<> --- !query 1066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1067 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1067 schema -struct<> --- !query 1067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1068 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1068 schema -struct<> --- !query 1068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1069 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 1069 schema -struct> --- !query 1069 output -{1.0:1,2.0:2} - - --- !query 1070 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 1070 schema -struct> --- !query 1070 output -{1.0:1,2.0:2} - - --- !query 1071 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 1071 schema -struct> --- !query 1071 output -{1.0:1,2.0:2} - - --- !query 1072 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 1072 schema -struct> --- !query 1072 output -{1.0:1,2.0:2} - - --- !query 1073 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 1073 schema -struct> --- !query 1073 output -{1.0:1.0,2.0:2.0} - - --- !query 1074 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 1074 schema -struct> --- !query 1074 output -{1.0:1.0,2.0:2.0} - - --- !query 1075 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 1075 schema -struct> --- !query 1075 output -{1.0:1,2.0:2} - - --- !query 1076 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 1076 schema -struct> --- !query 1076 output -{1.0:"1",2.0:"2"} - - --- !query 1077 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 1077 schema -struct<> --- !query 1077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1078 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 1078 schema -struct<> --- !query 1078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1079 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1079 schema -struct<> --- !query 1079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1080 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1080 schema -struct<> --- !query 1080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1081 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 1081 schema -struct> --- !query 1081 output -{1:1,2:2} - - --- !query 1082 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 1082 schema -struct> --- !query 1082 output -{1:1,2:2} - - --- !query 1083 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 1083 schema -struct> --- !query 1083 output -{1:1,2:2} - - --- !query 1084 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 1084 schema -struct> --- !query 1084 output -{1:1,2:2} - - --- !query 1085 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 1085 schema -struct> --- !query 1085 output -{1:1.0,2:2.0} - - --- !query 1086 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 1086 schema -struct> --- !query 1086 output -{1:1.0,2:2.0} - - --- !query 1087 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 1087 schema -struct> --- !query 1087 output -{1:1,2:2} - - --- !query 1088 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 1088 schema -struct> --- !query 1088 output -{1:"1",2:"2"} - - --- !query 1089 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 1089 schema -struct<> --- !query 1089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1090 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 1090 schema -struct<> --- !query 1090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1091 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1091 schema -struct<> --- !query 1091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1092 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1092 schema -struct<> --- !query 1092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1093 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 1093 schema -struct> --- !query 1093 output -{"1":1,"2":2} - - --- !query 1094 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 1094 schema -struct> --- !query 1094 output -{"1":1,"2":2} - - --- !query 1095 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 1095 schema -struct> --- !query 1095 output -{"1":1,"2":2} - - --- !query 1096 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 1096 schema -struct> --- !query 1096 output -{"1":1,"2":2} - - --- !query 1097 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 1097 schema -struct> --- !query 1097 output -{"1":1.0,"2":2.0} - - --- !query 1098 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 1098 schema -struct> --- !query 1098 output -{"1":1.0,"2":2.0} - - --- !query 1099 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 1099 schema -struct> --- !query 1099 output -{"1":1,"2":2} - - --- !query 1100 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 1100 schema -struct> --- !query 1100 output -{"1":"1","2":"2"} - - --- !query 1101 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 1101 schema -struct<> --- !query 1101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 1102 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 1102 schema -struct<> --- !query 1102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 1103 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1103 schema -struct<> --- !query 1103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 1104 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1104 schema -struct<> --- !query 1104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 1105 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 1105 schema -struct<> --- !query 1105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1106 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 1106 schema -struct<> --- !query 1106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1107 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 1107 schema -struct<> --- !query 1107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1108 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 1108 schema -struct<> --- !query 1108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1109 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 1109 schema -struct<> --- !query 1109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1110 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 1110 schema -struct<> --- !query 1110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1111 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 1111 schema -struct<> --- !query 1111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1112 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 1112 schema -struct<> --- !query 1112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1113 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 1113 schema -struct<> --- !query 1113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1114 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 1114 schema -struct<> --- !query 1114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1115 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1115 schema -struct<> --- !query 1115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1116 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1116 schema -struct<> --- !query 1116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1117 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 1117 schema -struct<> --- !query 1117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1118 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 1118 schema -struct<> --- !query 1118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1119 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 1119 schema -struct<> --- !query 1119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1120 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 1120 schema -struct<> --- !query 1120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1121 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 1121 schema -struct<> --- !query 1121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1122 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 1122 schema -struct<> --- !query 1122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1123 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 1123 schema -struct<> --- !query 1123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1124 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 1124 schema -struct<> --- !query 1124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1125 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 1125 schema -struct<> --- !query 1125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1126 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 1126 schema -struct<> --- !query 1126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1127 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1127 schema -struct<> --- !query 1127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1128 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1128 schema -struct<> --- !query 1128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1129 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 1129 schema -struct<> --- !query 1129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1130 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 1130 schema -struct<> --- !query 1130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1131 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 1131 schema -struct<> --- !query 1131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1132 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 1132 schema -struct<> --- !query 1132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1133 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 1133 schema -struct<> --- !query 1133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1134 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 1134 schema -struct<> --- !query 1134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1135 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 1135 schema -struct<> --- !query 1135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1136 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 1136 schema -struct<> --- !query 1136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1137 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 1137 schema -struct<> --- !query 1137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1138 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 1138 schema -struct<> --- !query 1138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1139 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1139 schema -struct<> --- !query 1139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1140 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1140 schema -struct<> --- !query 1140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1141 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 1141 schema -struct<> --- !query 1141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1142 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 1142 schema -struct<> --- !query 1142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1143 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 1143 schema -struct<> --- !query 1143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1144 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 1144 schema -struct<> --- !query 1144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1145 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 1145 schema -struct<> --- !query 1145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1146 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 1146 schema -struct<> --- !query 1146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1147 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 1147 schema -struct<> --- !query 1147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1148 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 1148 schema -struct<> --- !query 1148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1149 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 1149 schema -struct<> --- !query 1149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1150 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 1150 schema -struct<> --- !query 1150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1151 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1151 schema -struct<> --- !query 1151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1152 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1152 schema -struct<> --- !query 1152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1153 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 1153 schema -struct> --- !query 1153 output -{1:"1",2:"2"} - - --- !query 1154 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 1154 schema -struct> --- !query 1154 output -{1:"1",2:"2"} - - --- !query 1155 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 1155 schema -struct> --- !query 1155 output -{1:"1",2:"2"} - - --- !query 1156 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 1156 schema -struct> --- !query 1156 output -{1:"1",2:"2"} - - --- !query 1157 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 1157 schema -struct> --- !query 1157 output -{1:"1",2:"2.0"} - - --- !query 1158 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 1158 schema -struct> --- !query 1158 output -{1:"1",2:"2.0"} - - --- !query 1159 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 1159 schema -struct> --- !query 1159 output -{1:"1",2:"2"} - - --- !query 1160 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 1160 schema -struct> --- !query 1160 output -{1:"1",2:"2"} - - --- !query 1161 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 1161 schema -struct<> --- !query 1161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1162 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 1162 schema -struct<> --- !query 1162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1163 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1163 schema -struct> --- !query 1163 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 1164 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1164 schema -struct> --- !query 1164 output -{1:"1",2:"2017-12-12"} - - --- !query 1165 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 1165 schema -struct> --- !query 1165 output -{1:"1",2:"2"} - - --- !query 1166 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 1166 schema -struct> --- !query 1166 output -{1:"1",2:"2"} - - --- !query 1167 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 1167 schema -struct> --- !query 1167 output -{1:"1",2:"2"} - - --- !query 1168 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 1168 schema -struct> --- !query 1168 output -{1:"1",2:"2"} - - --- !query 1169 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 1169 schema -struct> --- !query 1169 output -{1:"1",2:"2.0"} - - --- !query 1170 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 1170 schema -struct> --- !query 1170 output -{1:"1",2:"2.0"} - - --- !query 1171 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 1171 schema -struct> --- !query 1171 output -{1:"1",2:"2"} - - --- !query 1172 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 1172 schema -struct> --- !query 1172 output -{1:"1",2:"2"} - - --- !query 1173 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 1173 schema -struct<> --- !query 1173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1174 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 1174 schema -struct<> --- !query 1174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1175 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1175 schema -struct> --- !query 1175 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 1176 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1176 schema -struct> --- !query 1176 output -{1:"1",2:"2017-12-12"} - - --- !query 1177 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 1177 schema -struct> --- !query 1177 output -{1:"1",2:"2"} - - --- !query 1178 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 1178 schema -struct> --- !query 1178 output -{1:"1",2:"2"} - - --- !query 1179 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 1179 schema -struct> --- !query 1179 output -{1:"1",2:"2"} - - --- !query 1180 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 1180 schema -struct> --- !query 1180 output -{1:"1",2:"2"} - - --- !query 1181 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 1181 schema -struct> --- !query 1181 output -{1:"1",2:"2.0"} - - --- !query 1182 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 1182 schema -struct> --- !query 1182 output -{1:"1",2:"2.0"} - - --- !query 1183 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 1183 schema -struct> --- !query 1183 output -{1:"1",2:"2"} - - --- !query 1184 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 1184 schema -struct> --- !query 1184 output -{1:"1",2:"2"} - - --- !query 1185 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 1185 schema -struct<> --- !query 1185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1186 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 1186 schema -struct<> --- !query 1186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1187 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1187 schema -struct> --- !query 1187 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 1188 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1188 schema -struct> --- !query 1188 output -{1:"1",2:"2017-12-12"} - - --- !query 1189 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 1189 schema -struct> --- !query 1189 output -{1:"1",2:"2"} - - --- !query 1190 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 1190 schema -struct> --- !query 1190 output -{1:"1",2:"2"} - - --- !query 1191 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 1191 schema -struct> --- !query 1191 output -{1:"1",2:"2"} - - --- !query 1192 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 1192 schema -struct> --- !query 1192 output -{1:"1",2:"2"} - - --- !query 1193 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 1193 schema -struct> --- !query 1193 output -{1:"1",2:"2.0"} - - --- !query 1194 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 1194 schema -struct> --- !query 1194 output -{1:"1",2:"2.0"} - - --- !query 1195 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 1195 schema -struct> --- !query 1195 output -{1:"1",2:"2"} - - --- !query 1196 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 1196 schema -struct> --- !query 1196 output -{1:"1",2:"2"} - - --- !query 1197 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 1197 schema -struct<> --- !query 1197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1198 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 1198 schema -struct<> --- !query 1198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1199 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1199 schema -struct> --- !query 1199 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 1200 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1200 schema -struct> --- !query 1200 output -{1:"1",2:"2017-12-12"} - - --- !query 1201 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 1201 schema -struct> --- !query 1201 output -{1.0:"1",2.0:"2"} - - --- !query 1202 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 1202 schema -struct> --- !query 1202 output -{1.0:"1",2.0:"2"} - - --- !query 1203 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 1203 schema -struct> --- !query 1203 output -{1.0:"1",2.0:"2"} - - --- !query 1204 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 1204 schema -struct> --- !query 1204 output -{1.0:"1",2.0:"2"} - - --- !query 1205 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 1205 schema -struct> --- !query 1205 output -{1.0:"1",2.0:"2.0"} - - --- !query 1206 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 1206 schema -struct> --- !query 1206 output -{1.0:"1",2.0:"2.0"} - - --- !query 1207 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 1207 schema -struct> --- !query 1207 output -{1.0:"1",2.0:"2"} - - --- !query 1208 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 1208 schema -struct> --- !query 1208 output -{1.0:"1",2.0:"2"} - - --- !query 1209 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 1209 schema -struct<> --- !query 1209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1210 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 1210 schema -struct<> --- !query 1210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1211 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1211 schema -struct> --- !query 1211 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 1212 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1212 schema -struct> --- !query 1212 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 1213 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 1213 schema -struct> --- !query 1213 output -{1.0:"1",2.0:"2"} - - --- !query 1214 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 1214 schema -struct> --- !query 1214 output -{1.0:"1",2.0:"2"} - - --- !query 1215 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 1215 schema -struct> --- !query 1215 output -{1.0:"1",2.0:"2"} - - --- !query 1216 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 1216 schema -struct> --- !query 1216 output -{1.0:"1",2.0:"2"} - - --- !query 1217 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 1217 schema -struct> --- !query 1217 output -{1.0:"1",2.0:"2.0"} - - --- !query 1218 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 1218 schema -struct> --- !query 1218 output -{1.0:"1",2.0:"2.0"} - - --- !query 1219 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 1219 schema -struct> --- !query 1219 output -{1.0:"1",2.0:"2"} - - --- !query 1220 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 1220 schema -struct> --- !query 1220 output -{1.0:"1",2.0:"2"} - - --- !query 1221 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 1221 schema -struct<> --- !query 1221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1222 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 1222 schema -struct<> --- !query 1222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1223 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1223 schema -struct> --- !query 1223 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 1224 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1224 schema -struct> --- !query 1224 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 1225 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 1225 schema -struct> --- !query 1225 output -{1:"1",2:"2"} - - --- !query 1226 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 1226 schema -struct> --- !query 1226 output -{1:"1",2:"2"} - - --- !query 1227 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 1227 schema -struct> --- !query 1227 output -{1:"1",2:"2"} - - --- !query 1228 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 1228 schema -struct> --- !query 1228 output -{1:"1",2:"2"} - - --- !query 1229 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 1229 schema -struct> --- !query 1229 output -{1:"1",2:"2.0"} - - --- !query 1230 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 1230 schema -struct> --- !query 1230 output -{1:"1",2:"2.0"} - - --- !query 1231 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 1231 schema -struct> --- !query 1231 output -{1:"1",2:"2"} - - --- !query 1232 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 1232 schema -struct> --- !query 1232 output -{1:"1",2:"2"} - - --- !query 1233 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 1233 schema -struct<> --- !query 1233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1234 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 1234 schema -struct<> --- !query 1234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1235 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1235 schema -struct> --- !query 1235 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 1236 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1236 schema -struct> --- !query 1236 output -{1:"1",2:"2017-12-12"} - - --- !query 1237 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 1237 schema -struct> --- !query 1237 output -{"1":"1","2":"2"} - - --- !query 1238 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 1238 schema -struct> --- !query 1238 output -{"1":"1","2":"2"} - - --- !query 1239 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 1239 schema -struct> --- !query 1239 output -{"1":"1","2":"2"} - - --- !query 1240 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 1240 schema -struct> --- !query 1240 output -{"1":"1","2":"2"} - - --- !query 1241 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 1241 schema -struct> --- !query 1241 output -{"1":"1","2":"2.0"} - - --- !query 1242 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 1242 schema -struct> --- !query 1242 output -{"1":"1","2":"2.0"} - - --- !query 1243 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 1243 schema -struct> --- !query 1243 output -{"1":"1","2":"2"} - - --- !query 1244 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 1244 schema -struct> --- !query 1244 output -{"1":"1","2":"2"} - - --- !query 1245 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 1245 schema -struct<> --- !query 1245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 1246 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 1246 schema -struct<> --- !query 1246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 1247 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1247 schema -struct> --- !query 1247 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 1248 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1248 schema -struct> --- !query 1248 output -{"1":"1","2":"2017-12-12"} - - --- !query 1249 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 1249 schema -struct<> --- !query 1249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1250 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 1250 schema -struct<> --- !query 1250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1251 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 1251 schema -struct<> --- !query 1251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1252 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 1252 schema -struct<> --- !query 1252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1253 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 1253 schema -struct<> --- !query 1253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1254 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 1254 schema -struct<> --- !query 1254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1255 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 1255 schema -struct<> --- !query 1255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1256 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 1256 schema -struct<> --- !query 1256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1257 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 1257 schema -struct<> --- !query 1257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1258 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 1258 schema -struct<> --- !query 1258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1259 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1259 schema -struct<> --- !query 1259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1260 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1260 schema -struct<> --- !query 1260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1261 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 1261 schema -struct<> --- !query 1261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1262 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 1262 schema -struct<> --- !query 1262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1263 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 1263 schema -struct<> --- !query 1263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1264 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 1264 schema -struct<> --- !query 1264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1265 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 1265 schema -struct<> --- !query 1265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1266 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 1266 schema -struct<> --- !query 1266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1267 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 1267 schema -struct<> --- !query 1267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1268 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 1268 schema -struct<> --- !query 1268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1269 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 1269 schema -struct<> --- !query 1269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1270 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 1270 schema -struct<> --- !query 1270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1271 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1271 schema -struct<> --- !query 1271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1272 -SELECT map(cast(1 as tinyint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1272 schema -struct<> --- !query 1272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1273 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 1273 schema -struct<> --- !query 1273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1274 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 1274 schema -struct<> --- !query 1274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1275 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 1275 schema -struct<> --- !query 1275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1276 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 1276 schema -struct<> --- !query 1276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1277 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 1277 schema -struct<> --- !query 1277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1278 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 1278 schema -struct<> --- !query 1278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1279 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 1279 schema -struct<> --- !query 1279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1280 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 1280 schema -struct<> --- !query 1280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1281 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 1281 schema -struct<> --- !query 1281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1282 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 1282 schema -struct<> --- !query 1282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1283 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1283 schema -struct<> --- !query 1283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1284 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1284 schema -struct<> --- !query 1284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1285 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 1285 schema -struct<> --- !query 1285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1286 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 1286 schema -struct<> --- !query 1286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1287 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 1287 schema -struct<> --- !query 1287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1288 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 1288 schema -struct<> --- !query 1288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1289 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 1289 schema -struct<> --- !query 1289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1290 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 1290 schema -struct<> --- !query 1290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1291 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 1291 schema -struct<> --- !query 1291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1292 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 1292 schema -struct<> --- !query 1292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1293 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 1293 schema -struct<> --- !query 1293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1294 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 1294 schema -struct<> --- !query 1294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1295 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1295 schema -struct<> --- !query 1295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1296 -SELECT map(cast(1 as tinyint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1296 schema -struct<> --- !query 1296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1297 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 1297 schema -struct<> --- !query 1297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1298 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 1298 schema -struct<> --- !query 1298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1299 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 1299 schema -struct<> --- !query 1299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1300 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 1300 schema -struct<> --- !query 1300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1301 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 1301 schema -struct<> --- !query 1301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1302 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 1302 schema -struct<> --- !query 1302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1303 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 1303 schema -struct<> --- !query 1303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1304 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 1304 schema -struct<> --- !query 1304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1305 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 1305 schema -struct> --- !query 1305 output -{1:[B@43d1bd1a,2:[B@8321064} - - --- !query 1306 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 1306 schema -struct<> --- !query 1306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1307 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1307 schema -struct<> --- !query 1307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1308 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1308 schema -struct<> --- !query 1308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1309 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 1309 schema -struct<> --- !query 1309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1310 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 1310 schema -struct<> --- !query 1310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1311 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 1311 schema -struct<> --- !query 1311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1312 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 1312 schema -struct<> --- !query 1312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1313 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 1313 schema -struct<> --- !query 1313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1314 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 1314 schema -struct<> --- !query 1314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1315 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 1315 schema -struct<> --- !query 1315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1316 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 1316 schema -struct<> --- !query 1316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1317 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 1317 schema -struct> --- !query 1317 output -{1:[B@65b7cc5f,2:[B@4a773d82} - - --- !query 1318 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 1318 schema -struct<> --- !query 1318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1319 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1319 schema -struct<> --- !query 1319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1320 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1320 schema -struct<> --- !query 1320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1321 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 1321 schema -struct<> --- !query 1321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1322 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 1322 schema -struct<> --- !query 1322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1323 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 1323 schema -struct<> --- !query 1323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1324 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 1324 schema -struct<> --- !query 1324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1325 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 1325 schema -struct<> --- !query 1325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1326 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 1326 schema -struct<> --- !query 1326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1327 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 1327 schema -struct<> --- !query 1327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1328 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 1328 schema -struct<> --- !query 1328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1329 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 1329 schema -struct> --- !query 1329 output -{1:[B@737a0a51,2:[B@2b53f2f4} - - --- !query 1330 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 1330 schema -struct<> --- !query 1330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1331 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1331 schema -struct<> --- !query 1331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1332 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1332 schema -struct<> --- !query 1332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1333 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 1333 schema -struct<> --- !query 1333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1334 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 1334 schema -struct<> --- !query 1334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1335 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 1335 schema -struct<> --- !query 1335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1336 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 1336 schema -struct<> --- !query 1336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1337 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 1337 schema -struct<> --- !query 1337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1338 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 1338 schema -struct<> --- !query 1338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1339 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 1339 schema -struct<> --- !query 1339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1340 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 1340 schema -struct<> --- !query 1340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1341 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 1341 schema -struct> --- !query 1341 output -{1:[B@49bfcfd0,2:[B@5859e36e} - - --- !query 1342 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 1342 schema -struct<> --- !query 1342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1343 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1343 schema -struct<> --- !query 1343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1344 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1344 schema -struct<> --- !query 1344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1345 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 1345 schema -struct<> --- !query 1345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1346 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 1346 schema -struct<> --- !query 1346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1347 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 1347 schema -struct<> --- !query 1347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1348 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 1348 schema -struct<> --- !query 1348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1349 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 1349 schema -struct<> --- !query 1349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1350 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 1350 schema -struct<> --- !query 1350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1351 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 1351 schema -struct<> --- !query 1351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1352 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 1352 schema -struct<> --- !query 1352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1353 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 1353 schema -struct> --- !query 1353 output -{1.0:[B@430f7b84,2.0:[B@3048a3d6} - - --- !query 1354 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 1354 schema -struct<> --- !query 1354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1355 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1355 schema -struct<> --- !query 1355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1356 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1356 schema -struct<> --- !query 1356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1357 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 1357 schema -struct<> --- !query 1357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1358 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 1358 schema -struct<> --- !query 1358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1359 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 1359 schema -struct<> --- !query 1359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1360 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 1360 schema -struct<> --- !query 1360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1361 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 1361 schema -struct<> --- !query 1361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1362 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 1362 schema -struct<> --- !query 1362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1363 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 1363 schema -struct<> --- !query 1363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1364 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 1364 schema -struct<> --- !query 1364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1365 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 1365 schema -struct> --- !query 1365 output -{1.0:[B@37f9242c,2.0:[B@363a119c} - - --- !query 1366 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 1366 schema -struct<> --- !query 1366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1367 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1367 schema -struct<> --- !query 1367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1368 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1368 schema -struct<> --- !query 1368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1369 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 1369 schema -struct<> --- !query 1369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1370 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 1370 schema -struct<> --- !query 1370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1371 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 1371 schema -struct<> --- !query 1371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1372 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 1372 schema -struct<> --- !query 1372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1373 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 1373 schema -struct<> --- !query 1373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1374 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 1374 schema -struct<> --- !query 1374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1375 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 1375 schema -struct<> --- !query 1375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1376 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 1376 schema -struct<> --- !query 1376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1377 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 1377 schema -struct> --- !query 1377 output -{1:[B@296b201b,2:[B@4165a9dd} - - --- !query 1378 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 1378 schema -struct<> --- !query 1378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1379 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1379 schema -struct<> --- !query 1379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1380 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1380 schema -struct<> --- !query 1380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1381 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 1381 schema -struct<> --- !query 1381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 1382 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 1382 schema -struct<> --- !query 1382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 1383 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 1383 schema -struct<> --- !query 1383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 1384 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 1384 schema -struct<> --- !query 1384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 1385 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 1385 schema -struct<> --- !query 1385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 1386 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 1386 schema -struct<> --- !query 1386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 1387 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 1387 schema -struct<> --- !query 1387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 1388 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 1388 schema -struct<> --- !query 1388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 1389 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 1389 schema -struct> --- !query 1389 output -{"1":[B@329ffa13,"2":[B@e1b0dfd} - - --- !query 1390 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 1390 schema -struct<> --- !query 1390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 1391 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1391 schema -struct<> --- !query 1391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 1392 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1392 schema -struct<> --- !query 1392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 1393 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 1393 schema -struct<> --- !query 1393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1394 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 1394 schema -struct<> --- !query 1394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1395 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 1395 schema -struct<> --- !query 1395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1396 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 1396 schema -struct<> --- !query 1396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1397 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 1397 schema -struct<> --- !query 1397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1398 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 1398 schema -struct<> --- !query 1398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1399 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 1399 schema -struct<> --- !query 1399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1400 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 1400 schema -struct<> --- !query 1400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1401 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 1401 schema -struct<> --- !query 1401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1402 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 1402 schema -struct<> --- !query 1402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1403 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1403 schema -struct<> --- !query 1403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1404 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1404 schema -struct<> --- !query 1404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1405 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 1405 schema -struct<> --- !query 1405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1406 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 1406 schema -struct<> --- !query 1406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1407 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 1407 schema -struct<> --- !query 1407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1408 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 1408 schema -struct<> --- !query 1408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1409 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 1409 schema -struct<> --- !query 1409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1410 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 1410 schema -struct<> --- !query 1410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1411 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 1411 schema -struct<> --- !query 1411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1412 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 1412 schema -struct<> --- !query 1412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1413 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 1413 schema -struct<> --- !query 1413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1414 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 1414 schema -struct<> --- !query 1414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1415 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1415 schema -struct<> --- !query 1415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1416 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1416 schema -struct<> --- !query 1416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1417 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 1417 schema -struct<> --- !query 1417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1418 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 1418 schema -struct<> --- !query 1418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1419 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 1419 schema -struct<> --- !query 1419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1420 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 1420 schema -struct<> --- !query 1420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1421 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 1421 schema -struct<> --- !query 1421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1422 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 1422 schema -struct<> --- !query 1422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1423 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 1423 schema -struct<> --- !query 1423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1424 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 1424 schema -struct<> --- !query 1424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1425 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 1425 schema -struct<> --- !query 1425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1426 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 1426 schema -struct<> --- !query 1426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1427 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1427 schema -struct<> --- !query 1427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1428 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1428 schema -struct<> --- !query 1428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1429 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 1429 schema -struct<> --- !query 1429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1430 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 1430 schema -struct<> --- !query 1430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1431 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 1431 schema -struct<> --- !query 1431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1432 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 1432 schema -struct<> --- !query 1432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1433 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 1433 schema -struct<> --- !query 1433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1434 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 1434 schema -struct<> --- !query 1434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1435 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 1435 schema -struct<> --- !query 1435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1436 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 1436 schema -struct<> --- !query 1436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1437 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 1437 schema -struct<> --- !query 1437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1438 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 1438 schema -struct<> --- !query 1438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1439 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1439 schema -struct<> --- !query 1439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1440 -SELECT map(cast(1 as tinyint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1440 schema -struct<> --- !query 1440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1441 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 1441 schema -struct<> --- !query 1441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1442 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 1442 schema -struct<> --- !query 1442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1443 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 1443 schema -struct<> --- !query 1443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1444 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 1444 schema -struct<> --- !query 1444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1445 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 1445 schema -struct<> --- !query 1445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1446 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 1446 schema -struct<> --- !query 1446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1447 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 1447 schema -struct<> --- !query 1447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1448 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 1448 schema -struct<> --- !query 1448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1449 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 1449 schema -struct<> --- !query 1449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1450 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 1450 schema -struct> --- !query 1450 output -{1:true,2:true} - - --- !query 1451 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1451 schema -struct<> --- !query 1451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1452 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1452 schema -struct<> --- !query 1452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1453 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 1453 schema -struct<> --- !query 1453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1454 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 1454 schema -struct<> --- !query 1454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1455 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 1455 schema -struct<> --- !query 1455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1456 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 1456 schema -struct<> --- !query 1456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1457 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 1457 schema -struct<> --- !query 1457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1458 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 1458 schema -struct<> --- !query 1458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1459 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 1459 schema -struct<> --- !query 1459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1460 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 1460 schema -struct<> --- !query 1460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1461 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 1461 schema -struct<> --- !query 1461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1462 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 1462 schema -struct> --- !query 1462 output -{1:true,2:true} - - --- !query 1463 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1463 schema -struct<> --- !query 1463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1464 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1464 schema -struct<> --- !query 1464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1465 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 1465 schema -struct<> --- !query 1465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1466 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 1466 schema -struct<> --- !query 1466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1467 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 1467 schema -struct<> --- !query 1467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1468 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 1468 schema -struct<> --- !query 1468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1469 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 1469 schema -struct<> --- !query 1469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1470 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 1470 schema -struct<> --- !query 1470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1471 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 1471 schema -struct<> --- !query 1471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1472 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 1472 schema -struct<> --- !query 1472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1473 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 1473 schema -struct<> --- !query 1473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1474 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 1474 schema -struct> --- !query 1474 output -{1:true,2:true} - - --- !query 1475 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1475 schema -struct<> --- !query 1475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1476 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1476 schema -struct<> --- !query 1476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1477 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 1477 schema -struct<> --- !query 1477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1478 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 1478 schema -struct<> --- !query 1478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1479 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 1479 schema -struct<> --- !query 1479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1480 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 1480 schema -struct<> --- !query 1480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1481 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 1481 schema -struct<> --- !query 1481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1482 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 1482 schema -struct<> --- !query 1482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1483 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 1483 schema -struct<> --- !query 1483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1484 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 1484 schema -struct<> --- !query 1484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1485 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 1485 schema -struct<> --- !query 1485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1486 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 1486 schema -struct> --- !query 1486 output -{1:true,2:true} - - --- !query 1487 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1487 schema -struct<> --- !query 1487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1488 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1488 schema -struct<> --- !query 1488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1489 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 1489 schema -struct<> --- !query 1489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1490 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 1490 schema -struct<> --- !query 1490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1491 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 1491 schema -struct<> --- !query 1491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1492 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 1492 schema -struct<> --- !query 1492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1493 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 1493 schema -struct<> --- !query 1493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1494 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 1494 schema -struct<> --- !query 1494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1495 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 1495 schema -struct<> --- !query 1495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1496 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 1496 schema -struct<> --- !query 1496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1497 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 1497 schema -struct<> --- !query 1497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1498 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 1498 schema -struct> --- !query 1498 output -{1.0:true,2.0:true} - - --- !query 1499 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1499 schema -struct<> --- !query 1499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1500 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1500 schema -struct<> --- !query 1500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1501 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 1501 schema -struct<> --- !query 1501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1502 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 1502 schema -struct<> --- !query 1502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1503 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 1503 schema -struct<> --- !query 1503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1504 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 1504 schema -struct<> --- !query 1504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1505 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 1505 schema -struct<> --- !query 1505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1506 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 1506 schema -struct<> --- !query 1506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1507 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 1507 schema -struct<> --- !query 1507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1508 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 1508 schema -struct<> --- !query 1508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1509 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 1509 schema -struct<> --- !query 1509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1510 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 1510 schema -struct> --- !query 1510 output -{1.0:true,2.0:true} - - --- !query 1511 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1511 schema -struct<> --- !query 1511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1512 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1512 schema -struct<> --- !query 1512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1513 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 1513 schema -struct<> --- !query 1513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1514 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 1514 schema -struct<> --- !query 1514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1515 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 1515 schema -struct<> --- !query 1515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1516 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 1516 schema -struct<> --- !query 1516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1517 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 1517 schema -struct<> --- !query 1517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1518 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 1518 schema -struct<> --- !query 1518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1519 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 1519 schema -struct<> --- !query 1519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1520 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 1520 schema -struct<> --- !query 1520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1521 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 1521 schema -struct<> --- !query 1521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1522 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 1522 schema -struct> --- !query 1522 output -{1:true,2:true} - - --- !query 1523 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1523 schema -struct<> --- !query 1523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1524 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1524 schema -struct<> --- !query 1524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1525 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 1525 schema -struct<> --- !query 1525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 1526 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 1526 schema -struct<> --- !query 1526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 1527 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 1527 schema -struct<> --- !query 1527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 1528 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 1528 schema -struct<> --- !query 1528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 1529 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 1529 schema -struct<> --- !query 1529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 1530 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 1530 schema -struct<> --- !query 1530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 1531 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 1531 schema -struct<> --- !query 1531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 1532 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 1532 schema -struct<> --- !query 1532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 1533 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 1533 schema -struct<> --- !query 1533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 1534 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 1534 schema -struct> --- !query 1534 output -{"1":true,"2":true} - - --- !query 1535 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1535 schema -struct<> --- !query 1535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 1536 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1536 schema -struct<> --- !query 1536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 1537 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 1537 schema -struct<> --- !query 1537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1538 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 1538 schema -struct<> --- !query 1538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1539 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 1539 schema -struct<> --- !query 1539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1540 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 1540 schema -struct<> --- !query 1540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1541 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 1541 schema -struct<> --- !query 1541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1542 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 1542 schema -struct<> --- !query 1542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1543 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 1543 schema -struct<> --- !query 1543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1544 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 1544 schema -struct<> --- !query 1544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1545 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 1545 schema -struct<> --- !query 1545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1546 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 1546 schema -struct<> --- !query 1546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1547 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1547 schema -struct<> --- !query 1547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1548 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1548 schema -struct<> --- !query 1548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1549 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 1549 schema -struct<> --- !query 1549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1550 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 1550 schema -struct<> --- !query 1550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1551 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 1551 schema -struct<> --- !query 1551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1552 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 1552 schema -struct<> --- !query 1552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1553 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 1553 schema -struct<> --- !query 1553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1554 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 1554 schema -struct<> --- !query 1554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1555 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 1555 schema -struct<> --- !query 1555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1556 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 1556 schema -struct<> --- !query 1556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1557 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 1557 schema -struct<> --- !query 1557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1558 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 1558 schema -struct<> --- !query 1558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1559 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1559 schema -struct<> --- !query 1559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1560 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1560 schema -struct<> --- !query 1560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1561 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 1561 schema -struct<> --- !query 1561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1562 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 1562 schema -struct<> --- !query 1562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1563 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 1563 schema -struct<> --- !query 1563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1564 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 1564 schema -struct<> --- !query 1564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1565 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 1565 schema -struct<> --- !query 1565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1566 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 1566 schema -struct<> --- !query 1566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1567 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 1567 schema -struct<> --- !query 1567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1568 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 1568 schema -struct<> --- !query 1568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1569 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 1569 schema -struct<> --- !query 1569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1570 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 1570 schema -struct<> --- !query 1570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1571 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1571 schema -struct<> --- !query 1571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1572 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1572 schema -struct<> --- !query 1572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1573 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 1573 schema -struct<> --- !query 1573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1574 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 1574 schema -struct<> --- !query 1574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1575 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 1575 schema -struct<> --- !query 1575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1576 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 1576 schema -struct<> --- !query 1576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1577 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 1577 schema -struct<> --- !query 1577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1578 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 1578 schema -struct<> --- !query 1578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1579 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 1579 schema -struct<> --- !query 1579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1580 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 1580 schema -struct<> --- !query 1580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1581 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 1581 schema -struct<> --- !query 1581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1582 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 1582 schema -struct<> --- !query 1582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1583 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1583 schema -struct<> --- !query 1583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1584 -SELECT map(cast(1 as tinyint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1584 schema -struct<> --- !query 1584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1585 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 1585 schema -struct<> --- !query 1585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1586 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 1586 schema -struct<> --- !query 1586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1587 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 1587 schema -struct<> --- !query 1587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1588 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 1588 schema -struct<> --- !query 1588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1589 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 1589 schema -struct<> --- !query 1589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1590 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 1590 schema -struct<> --- !query 1590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1591 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 1591 schema -struct<> --- !query 1591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1592 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 1592 schema -struct> --- !query 1592 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 1593 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 1593 schema -struct<> --- !query 1593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1594 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 1594 schema -struct<> --- !query 1594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1595 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1595 schema -struct> --- !query 1595 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1596 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1596 schema -struct> --- !query 1596 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 1597 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 1597 schema -struct<> --- !query 1597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1598 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 1598 schema -struct<> --- !query 1598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1599 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 1599 schema -struct<> --- !query 1599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1600 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 1600 schema -struct<> --- !query 1600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1601 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 1601 schema -struct<> --- !query 1601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1602 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 1602 schema -struct<> --- !query 1602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1603 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 1603 schema -struct<> --- !query 1603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1604 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 1604 schema -struct> --- !query 1604 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 1605 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 1605 schema -struct<> --- !query 1605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1606 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 1606 schema -struct<> --- !query 1606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1607 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1607 schema -struct> --- !query 1607 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1608 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1608 schema -struct> --- !query 1608 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 1609 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 1609 schema -struct<> --- !query 1609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1610 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 1610 schema -struct<> --- !query 1610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1611 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 1611 schema -struct<> --- !query 1611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1612 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 1612 schema -struct<> --- !query 1612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1613 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 1613 schema -struct<> --- !query 1613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1614 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 1614 schema -struct<> --- !query 1614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1615 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 1615 schema -struct<> --- !query 1615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1616 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 1616 schema -struct> --- !query 1616 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 1617 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 1617 schema -struct<> --- !query 1617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1618 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 1618 schema -struct<> --- !query 1618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1619 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1619 schema -struct> --- !query 1619 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1620 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1620 schema -struct> --- !query 1620 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 1621 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 1621 schema -struct<> --- !query 1621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1622 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 1622 schema -struct<> --- !query 1622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1623 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 1623 schema -struct<> --- !query 1623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1624 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 1624 schema -struct<> --- !query 1624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1625 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 1625 schema -struct<> --- !query 1625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1626 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 1626 schema -struct<> --- !query 1626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1627 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 1627 schema -struct<> --- !query 1627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1628 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 1628 schema -struct> --- !query 1628 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 1629 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 1629 schema -struct<> --- !query 1629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1630 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 1630 schema -struct<> --- !query 1630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1631 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1631 schema -struct> --- !query 1631 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1632 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1632 schema -struct> --- !query 1632 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 1633 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 1633 schema -struct<> --- !query 1633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1634 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 1634 schema -struct<> --- !query 1634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1635 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 1635 schema -struct<> --- !query 1635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1636 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 1636 schema -struct<> --- !query 1636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1637 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 1637 schema -struct<> --- !query 1637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1638 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 1638 schema -struct<> --- !query 1638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1639 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 1639 schema -struct<> --- !query 1639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1640 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 1640 schema -struct> --- !query 1640 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 1641 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 1641 schema -struct<> --- !query 1641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1642 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 1642 schema -struct<> --- !query 1642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1643 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1643 schema -struct> --- !query 1643 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 1644 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1644 schema -struct> --- !query 1644 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 1645 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 1645 schema -struct<> --- !query 1645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1646 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 1646 schema -struct<> --- !query 1646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1647 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 1647 schema -struct<> --- !query 1647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1648 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 1648 schema -struct<> --- !query 1648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1649 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 1649 schema -struct<> --- !query 1649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1650 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 1650 schema -struct<> --- !query 1650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1651 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 1651 schema -struct<> --- !query 1651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1652 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 1652 schema -struct> --- !query 1652 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 1653 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 1653 schema -struct<> --- !query 1653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1654 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 1654 schema -struct<> --- !query 1654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1655 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1655 schema -struct> --- !query 1655 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 1656 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1656 schema -struct> --- !query 1656 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 1657 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 1657 schema -struct<> --- !query 1657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1658 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 1658 schema -struct<> --- !query 1658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1659 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 1659 schema -struct<> --- !query 1659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1660 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 1660 schema -struct<> --- !query 1660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1661 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 1661 schema -struct<> --- !query 1661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1662 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 1662 schema -struct<> --- !query 1662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1663 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 1663 schema -struct<> --- !query 1663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1664 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 1664 schema -struct> --- !query 1664 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 1665 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 1665 schema -struct<> --- !query 1665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1666 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 1666 schema -struct<> --- !query 1666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1667 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1667 schema -struct> --- !query 1667 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1668 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1668 schema -struct> --- !query 1668 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 1669 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 1669 schema -struct<> --- !query 1669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 1670 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 1670 schema -struct<> --- !query 1670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 1671 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 1671 schema -struct<> --- !query 1671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 1672 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 1672 schema -struct<> --- !query 1672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 1673 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 1673 schema -struct<> --- !query 1673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 1674 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 1674 schema -struct<> --- !query 1674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 1675 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 1675 schema -struct<> --- !query 1675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 1676 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 1676 schema -struct> --- !query 1676 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 1677 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 1677 schema -struct<> --- !query 1677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 1678 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 1678 schema -struct<> --- !query 1678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 1679 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1679 schema -struct> --- !query 1679 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 1680 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1680 schema -struct> --- !query 1680 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 1681 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 1681 schema -struct<> --- !query 1681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1682 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 1682 schema -struct<> --- !query 1682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1683 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 1683 schema -struct<> --- !query 1683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1684 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 1684 schema -struct<> --- !query 1684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1685 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 1685 schema -struct<> --- !query 1685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1686 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 1686 schema -struct<> --- !query 1686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1687 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 1687 schema -struct<> --- !query 1687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1688 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 1688 schema -struct<> --- !query 1688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1689 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 1689 schema -struct<> --- !query 1689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1690 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 1690 schema -struct<> --- !query 1690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1691 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1691 schema -struct<> --- !query 1691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1692 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1692 schema -struct<> --- !query 1692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1693 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 1693 schema -struct<> --- !query 1693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1694 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 1694 schema -struct<> --- !query 1694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1695 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 1695 schema -struct<> --- !query 1695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1696 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 1696 schema -struct<> --- !query 1696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1697 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 1697 schema -struct<> --- !query 1697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1698 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 1698 schema -struct<> --- !query 1698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1699 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 1699 schema -struct<> --- !query 1699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1700 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 1700 schema -struct<> --- !query 1700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1701 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 1701 schema -struct<> --- !query 1701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1702 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 1702 schema -struct<> --- !query 1702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1703 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1703 schema -struct<> --- !query 1703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1704 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1704 schema -struct<> --- !query 1704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1705 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 1705 schema -struct<> --- !query 1705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1706 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 1706 schema -struct<> --- !query 1706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1707 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 1707 schema -struct<> --- !query 1707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1708 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 1708 schema -struct<> --- !query 1708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1709 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 1709 schema -struct<> --- !query 1709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1710 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 1710 schema -struct<> --- !query 1710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1711 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 1711 schema -struct<> --- !query 1711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1712 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 1712 schema -struct<> --- !query 1712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1713 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 1713 schema -struct<> --- !query 1713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1714 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 1714 schema -struct<> --- !query 1714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1715 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1715 schema -struct<> --- !query 1715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1716 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1716 schema -struct<> --- !query 1716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1717 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 1717 schema -struct<> --- !query 1717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1718 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 1718 schema -struct<> --- !query 1718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1719 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 1719 schema -struct<> --- !query 1719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1720 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 1720 schema -struct<> --- !query 1720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1721 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 1721 schema -struct<> --- !query 1721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1722 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 1722 schema -struct<> --- !query 1722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1723 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 1723 schema -struct<> --- !query 1723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1724 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 1724 schema -struct<> --- !query 1724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1725 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 1725 schema -struct<> --- !query 1725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1726 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 1726 schema -struct<> --- !query 1726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1727 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1727 schema -struct<> --- !query 1727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1728 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1728 schema -struct<> --- !query 1728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1729 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 1729 schema -struct<> --- !query 1729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1730 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 1730 schema -struct<> --- !query 1730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1731 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 1731 schema -struct<> --- !query 1731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1732 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 1732 schema -struct<> --- !query 1732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1733 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 1733 schema -struct<> --- !query 1733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1734 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 1734 schema -struct<> --- !query 1734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1735 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 1735 schema -struct<> --- !query 1735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1736 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 1736 schema -struct> --- !query 1736 output -{1:"2017-12-11",2:"2"} - - --- !query 1737 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 1737 schema -struct<> --- !query 1737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1738 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 1738 schema -struct<> --- !query 1738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1739 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1739 schema -struct> --- !query 1739 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1740 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1740 schema -struct> --- !query 1740 output -{1:2017-12-11,2:2017-12-12} - - --- !query 1741 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 1741 schema -struct<> --- !query 1741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1742 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 1742 schema -struct<> --- !query 1742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1743 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 1743 schema -struct<> --- !query 1743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1744 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 1744 schema -struct<> --- !query 1744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1745 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 1745 schema -struct<> --- !query 1745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1746 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 1746 schema -struct<> --- !query 1746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1747 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 1747 schema -struct<> --- !query 1747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1748 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 1748 schema -struct> --- !query 1748 output -{1:"2017-12-11",2:"2"} - - --- !query 1749 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 1749 schema -struct<> --- !query 1749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1750 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 1750 schema -struct<> --- !query 1750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1751 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1751 schema -struct> --- !query 1751 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1752 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1752 schema -struct> --- !query 1752 output -{1:2017-12-11,2:2017-12-12} - - --- !query 1753 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 1753 schema -struct<> --- !query 1753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1754 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 1754 schema -struct<> --- !query 1754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1755 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 1755 schema -struct<> --- !query 1755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1756 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 1756 schema -struct<> --- !query 1756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1757 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 1757 schema -struct<> --- !query 1757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1758 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 1758 schema -struct<> --- !query 1758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1759 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 1759 schema -struct<> --- !query 1759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1760 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 1760 schema -struct> --- !query 1760 output -{1:"2017-12-11",2:"2"} - - --- !query 1761 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 1761 schema -struct<> --- !query 1761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1762 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 1762 schema -struct<> --- !query 1762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1763 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1763 schema -struct> --- !query 1763 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1764 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1764 schema -struct> --- !query 1764 output -{1:2017-12-11,2:2017-12-12} - - --- !query 1765 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 1765 schema -struct<> --- !query 1765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1766 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 1766 schema -struct<> --- !query 1766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1767 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 1767 schema -struct<> --- !query 1767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1768 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 1768 schema -struct<> --- !query 1768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1769 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 1769 schema -struct<> --- !query 1769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1770 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 1770 schema -struct<> --- !query 1770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1771 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 1771 schema -struct<> --- !query 1771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1772 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 1772 schema -struct> --- !query 1772 output -{1:"2017-12-11",2:"2"} - - --- !query 1773 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 1773 schema -struct<> --- !query 1773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1774 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 1774 schema -struct<> --- !query 1774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1775 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1775 schema -struct> --- !query 1775 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1776 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1776 schema -struct> --- !query 1776 output -{1:2017-12-11,2:2017-12-12} - - --- !query 1777 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 1777 schema -struct<> --- !query 1777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1778 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 1778 schema -struct<> --- !query 1778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1779 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 1779 schema -struct<> --- !query 1779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1780 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 1780 schema -struct<> --- !query 1780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1781 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 1781 schema -struct<> --- !query 1781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1782 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 1782 schema -struct<> --- !query 1782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1783 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 1783 schema -struct<> --- !query 1783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1784 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 1784 schema -struct> --- !query 1784 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 1785 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 1785 schema -struct<> --- !query 1785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1786 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 1786 schema -struct<> --- !query 1786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1787 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1787 schema -struct> --- !query 1787 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 1788 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1788 schema -struct> --- !query 1788 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 1789 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 1789 schema -struct<> --- !query 1789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1790 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 1790 schema -struct<> --- !query 1790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1791 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 1791 schema -struct<> --- !query 1791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1792 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 1792 schema -struct<> --- !query 1792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1793 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 1793 schema -struct<> --- !query 1793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1794 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 1794 schema -struct<> --- !query 1794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1795 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 1795 schema -struct<> --- !query 1795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1796 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 1796 schema -struct> --- !query 1796 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 1797 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 1797 schema -struct<> --- !query 1797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1798 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 1798 schema -struct<> --- !query 1798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1799 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1799 schema -struct> --- !query 1799 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 1800 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1800 schema -struct> --- !query 1800 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 1801 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 1801 schema -struct<> --- !query 1801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1802 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 1802 schema -struct<> --- !query 1802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1803 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 1803 schema -struct<> --- !query 1803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1804 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 1804 schema -struct<> --- !query 1804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1805 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 1805 schema -struct<> --- !query 1805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1806 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 1806 schema -struct<> --- !query 1806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1807 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 1807 schema -struct<> --- !query 1807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1808 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 1808 schema -struct> --- !query 1808 output -{1:"2017-12-11",2:"2"} - - --- !query 1809 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 1809 schema -struct<> --- !query 1809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1810 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 1810 schema -struct<> --- !query 1810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1811 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1811 schema -struct> --- !query 1811 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 1812 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1812 schema -struct> --- !query 1812 output -{1:2017-12-11,2:2017-12-12} - - --- !query 1813 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 1813 schema -struct<> --- !query 1813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 1814 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 1814 schema -struct<> --- !query 1814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 1815 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 1815 schema -struct<> --- !query 1815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 1816 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 1816 schema -struct<> --- !query 1816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 1817 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 1817 schema -struct<> --- !query 1817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 1818 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 1818 schema -struct<> --- !query 1818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 1819 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 1819 schema -struct<> --- !query 1819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 1820 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 1820 schema -struct> --- !query 1820 output -{"1":"2017-12-11","2":"2"} - - --- !query 1821 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 1821 schema -struct<> --- !query 1821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 1822 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 1822 schema -struct<> --- !query 1822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 1823 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1823 schema -struct> --- !query 1823 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 1824 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1824 schema -struct> --- !query 1824 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 1825 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 1825 schema -struct<> --- !query 1825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1826 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 1826 schema -struct<> --- !query 1826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1827 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 1827 schema -struct<> --- !query 1827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1828 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 1828 schema -struct<> --- !query 1828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1829 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 1829 schema -struct<> --- !query 1829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1830 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 1830 schema -struct<> --- !query 1830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1831 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 1831 schema -struct<> --- !query 1831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1832 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 1832 schema -struct<> --- !query 1832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1833 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 1833 schema -struct<> --- !query 1833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1834 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 1834 schema -struct<> --- !query 1834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1835 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1835 schema -struct<> --- !query 1835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1836 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1836 schema -struct<> --- !query 1836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1837 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 1837 schema -struct<> --- !query 1837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1838 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 1838 schema -struct<> --- !query 1838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1839 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 1839 schema -struct<> --- !query 1839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1840 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 1840 schema -struct<> --- !query 1840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1841 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 1841 schema -struct<> --- !query 1841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1842 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 1842 schema -struct<> --- !query 1842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1843 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 1843 schema -struct<> --- !query 1843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1844 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 1844 schema -struct<> --- !query 1844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1845 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 1845 schema -struct<> --- !query 1845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1846 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 1846 schema -struct<> --- !query 1846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1847 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1847 schema -struct<> --- !query 1847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1848 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1848 schema -struct<> --- !query 1848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1849 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 1849 schema -struct<> --- !query 1849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1850 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 1850 schema -struct<> --- !query 1850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1851 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 1851 schema -struct<> --- !query 1851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1852 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 1852 schema -struct<> --- !query 1852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1853 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 1853 schema -struct<> --- !query 1853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1854 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 1854 schema -struct<> --- !query 1854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1855 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 1855 schema -struct<> --- !query 1855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1856 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 1856 schema -struct<> --- !query 1856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1857 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 1857 schema -struct<> --- !query 1857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1858 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 1858 schema -struct<> --- !query 1858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1859 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1859 schema -struct<> --- !query 1859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1860 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1860 schema -struct<> --- !query 1860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1861 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 1861 schema -struct<> --- !query 1861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1862 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 1862 schema -struct<> --- !query 1862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1863 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 1863 schema -struct<> --- !query 1863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1864 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 1864 schema -struct<> --- !query 1864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1865 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 1865 schema -struct<> --- !query 1865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1866 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 1866 schema -struct<> --- !query 1866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1867 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 1867 schema -struct<> --- !query 1867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1868 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 1868 schema -struct<> --- !query 1868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1869 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 1869 schema -struct<> --- !query 1869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1870 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 1870 schema -struct<> --- !query 1870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1871 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1871 schema -struct<> --- !query 1871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1872 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1872 schema -struct<> --- !query 1872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1873 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 1873 schema -struct> --- !query 1873 output -{1:1,2:2} - - --- !query 1874 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 1874 schema -struct> --- !query 1874 output -{1:1,2:2} - - --- !query 1875 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 1875 schema -struct> --- !query 1875 output -{1:1,2:2} - - --- !query 1876 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 1876 schema -struct> --- !query 1876 output -{1:1,2:2} - - --- !query 1877 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 1877 schema -struct> --- !query 1877 output -{1:1.0,2:2.0} - - --- !query 1878 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 1878 schema -struct> --- !query 1878 output -{1:1.0,2:2.0} - - --- !query 1879 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 1879 schema -struct> --- !query 1879 output -{1:1,2:2} - - --- !query 1880 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 1880 schema -struct> --- !query 1880 output -{1:"1",2:"2"} - - --- !query 1881 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 1881 schema -struct<> --- !query 1881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1882 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 1882 schema -struct<> --- !query 1882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1883 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1883 schema -struct<> --- !query 1883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1884 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1884 schema -struct<> --- !query 1884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1885 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 1885 schema -struct> --- !query 1885 output -{1:1,2:2} - - --- !query 1886 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 1886 schema -struct> --- !query 1886 output -{1:1,2:2} - - --- !query 1887 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 1887 schema -struct> --- !query 1887 output -{1:1,2:2} - - --- !query 1888 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 1888 schema -struct> --- !query 1888 output -{1:1,2:2} - - --- !query 1889 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 1889 schema -struct> --- !query 1889 output -{1:1.0,2:2.0} - - --- !query 1890 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 1890 schema -struct> --- !query 1890 output -{1:1.0,2:2.0} - - --- !query 1891 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 1891 schema -struct> --- !query 1891 output -{1:1,2:2} - - --- !query 1892 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 1892 schema -struct> --- !query 1892 output -{1:"1",2:"2"} - - --- !query 1893 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 1893 schema -struct<> --- !query 1893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1894 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 1894 schema -struct<> --- !query 1894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1895 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1895 schema -struct<> --- !query 1895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1896 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1896 schema -struct<> --- !query 1896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1897 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 1897 schema -struct> --- !query 1897 output -{1:1,2:2} - - --- !query 1898 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 1898 schema -struct> --- !query 1898 output -{1:1,2:2} - - --- !query 1899 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 1899 schema -struct> --- !query 1899 output -{1:1,2:2} - - --- !query 1900 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 1900 schema -struct> --- !query 1900 output -{1:1,2:2} - - --- !query 1901 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 1901 schema -struct> --- !query 1901 output -{1:1.0,2:2.0} - - --- !query 1902 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 1902 schema -struct> --- !query 1902 output -{1:1.0,2:2.0} - - --- !query 1903 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 1903 schema -struct> --- !query 1903 output -{1:1,2:2} - - --- !query 1904 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 1904 schema -struct> --- !query 1904 output -{1:"1",2:"2"} - - --- !query 1905 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 1905 schema -struct<> --- !query 1905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1906 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 1906 schema -struct<> --- !query 1906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1907 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1907 schema -struct<> --- !query 1907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1908 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1908 schema -struct<> --- !query 1908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1909 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 1909 schema -struct> --- !query 1909 output -{1:1,2:2} - - --- !query 1910 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 1910 schema -struct> --- !query 1910 output -{1:1,2:2} - - --- !query 1911 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 1911 schema -struct> --- !query 1911 output -{1:1,2:2} - - --- !query 1912 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 1912 schema -struct> --- !query 1912 output -{1:1,2:2} - - --- !query 1913 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 1913 schema -struct> --- !query 1913 output -{1:1.0,2:2.0} - - --- !query 1914 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 1914 schema -struct> --- !query 1914 output -{1:1.0,2:2.0} - - --- !query 1915 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 1915 schema -struct> --- !query 1915 output -{1:1,2:2} - - --- !query 1916 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 1916 schema -struct> --- !query 1916 output -{1:"1",2:"2"} - - --- !query 1917 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 1917 schema -struct<> --- !query 1917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1918 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 1918 schema -struct<> --- !query 1918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1919 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1919 schema -struct<> --- !query 1919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1920 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1920 schema -struct<> --- !query 1920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1921 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 1921 schema -struct> --- !query 1921 output -{1.0:1,2.0:2} - - --- !query 1922 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 1922 schema -struct> --- !query 1922 output -{1.0:1,2.0:2} - - --- !query 1923 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 1923 schema -struct> --- !query 1923 output -{1.0:1,2.0:2} - - --- !query 1924 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 1924 schema -struct> --- !query 1924 output -{1.0:1,2.0:2} - - --- !query 1925 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 1925 schema -struct> --- !query 1925 output -{1.0:1.0,2.0:2.0} - - --- !query 1926 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 1926 schema -struct> --- !query 1926 output -{1.0:1.0,2.0:2.0} - - --- !query 1927 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 1927 schema -struct> --- !query 1927 output -{1.0:1,2.0:2} - - --- !query 1928 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 1928 schema -struct> --- !query 1928 output -{1.0:"1",2.0:"2"} - - --- !query 1929 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 1929 schema -struct<> --- !query 1929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1930 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 1930 schema -struct<> --- !query 1930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1931 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1931 schema -struct<> --- !query 1931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1932 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1932 schema -struct<> --- !query 1932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1933 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 1933 schema -struct> --- !query 1933 output -{1.0:1,2.0:2} - - --- !query 1934 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 1934 schema -struct> --- !query 1934 output -{1.0:1,2.0:2} - - --- !query 1935 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 1935 schema -struct> --- !query 1935 output -{1.0:1,2.0:2} - - --- !query 1936 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 1936 schema -struct> --- !query 1936 output -{1.0:1,2.0:2} - - --- !query 1937 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 1937 schema -struct> --- !query 1937 output -{1.0:1.0,2.0:2.0} - - --- !query 1938 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 1938 schema -struct> --- !query 1938 output -{1.0:1.0,2.0:2.0} - - --- !query 1939 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 1939 schema -struct> --- !query 1939 output -{1.0:1,2.0:2} - - --- !query 1940 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 1940 schema -struct> --- !query 1940 output -{1.0:"1",2.0:"2"} - - --- !query 1941 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 1941 schema -struct<> --- !query 1941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1942 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 1942 schema -struct<> --- !query 1942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1943 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1943 schema -struct<> --- !query 1943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1944 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1944 schema -struct<> --- !query 1944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1945 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 1945 schema -struct> --- !query 1945 output -{1:1,2:2} - - --- !query 1946 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 1946 schema -struct> --- !query 1946 output -{1:1,2:2} - - --- !query 1947 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 1947 schema -struct> --- !query 1947 output -{1:1,2:2} - - --- !query 1948 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 1948 schema -struct> --- !query 1948 output -{1:1,2:2} - - --- !query 1949 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 1949 schema -struct> --- !query 1949 output -{1:1.0,2:2.0} - - --- !query 1950 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 1950 schema -struct> --- !query 1950 output -{1:1.0,2:2.0} - - --- !query 1951 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 1951 schema -struct> --- !query 1951 output -{1:1,2:2} - - --- !query 1952 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 1952 schema -struct> --- !query 1952 output -{1:"1",2:"2"} - - --- !query 1953 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 1953 schema -struct<> --- !query 1953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1954 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 1954 schema -struct<> --- !query 1954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1955 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1955 schema -struct<> --- !query 1955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1956 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1956 schema -struct<> --- !query 1956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1957 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 1957 schema -struct> --- !query 1957 output -{"1":1,"2":2} - - --- !query 1958 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 1958 schema -struct> --- !query 1958 output -{"1":1,"2":2} - - --- !query 1959 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 1959 schema -struct> --- !query 1959 output -{"1":1,"2":2} - - --- !query 1960 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 1960 schema -struct> --- !query 1960 output -{"1":1,"2":2} - - --- !query 1961 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 1961 schema -struct> --- !query 1961 output -{"1":1.0,"2":2.0} - - --- !query 1962 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 1962 schema -struct> --- !query 1962 output -{"1":1.0,"2":2.0} - - --- !query 1963 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 1963 schema -struct> --- !query 1963 output -{"1":1,"2":2} - - --- !query 1964 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 1964 schema -struct> --- !query 1964 output -{"1":"1","2":"2"} - - --- !query 1965 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 1965 schema -struct<> --- !query 1965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 1966 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 1966 schema -struct<> --- !query 1966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 1967 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1967 schema -struct<> --- !query 1967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 1968 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1968 schema -struct<> --- !query 1968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 1969 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 1969 schema -struct<> --- !query 1969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1970 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 1970 schema -struct<> --- !query 1970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1971 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 1971 schema -struct<> --- !query 1971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1972 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 1972 schema -struct<> --- !query 1972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1973 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 1973 schema -struct<> --- !query 1973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1974 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 1974 schema -struct<> --- !query 1974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1975 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 1975 schema -struct<> --- !query 1975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1976 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 1976 schema -struct<> --- !query 1976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1977 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 1977 schema -struct<> --- !query 1977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1978 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 1978 schema -struct<> --- !query 1978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1979 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1979 schema -struct<> --- !query 1979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1980 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1980 schema -struct<> --- !query 1980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 1981 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 1981 schema -struct<> --- !query 1981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1982 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 1982 schema -struct<> --- !query 1982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1983 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 1983 schema -struct<> --- !query 1983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1984 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 1984 schema -struct<> --- !query 1984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1985 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 1985 schema -struct<> --- !query 1985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1986 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 1986 schema -struct<> --- !query 1986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1987 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 1987 schema -struct<> --- !query 1987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1988 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 1988 schema -struct<> --- !query 1988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1989 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 1989 schema -struct<> --- !query 1989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1990 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 1990 schema -struct<> --- !query 1990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1991 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 1991 schema -struct<> --- !query 1991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1992 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 1992 schema -struct<> --- !query 1992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 1993 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 1993 schema -struct<> --- !query 1993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 1994 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 1994 schema -struct<> --- !query 1994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 1995 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 1995 schema -struct<> --- !query 1995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 1996 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 1996 schema -struct<> --- !query 1996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 1997 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 1997 schema -struct<> --- !query 1997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 1998 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 1998 schema -struct<> --- !query 1998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 1999 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 1999 schema -struct<> --- !query 1999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2000 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 2000 schema -struct<> --- !query 2000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2001 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 2001 schema -struct<> --- !query 2001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2002 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 2002 schema -struct<> --- !query 2002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2003 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2003 schema -struct<> --- !query 2003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2004 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2004 schema -struct<> --- !query 2004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2005 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 2005 schema -struct<> --- !query 2005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2006 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 2006 schema -struct<> --- !query 2006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2007 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 2007 schema -struct<> --- !query 2007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2008 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 2008 schema -struct<> --- !query 2008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2009 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 2009 schema -struct<> --- !query 2009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2010 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 2010 schema -struct<> --- !query 2010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2011 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 2011 schema -struct<> --- !query 2011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2012 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 2012 schema -struct<> --- !query 2012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2013 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 2013 schema -struct<> --- !query 2013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2014 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 2014 schema -struct<> --- !query 2014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2015 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2015 schema -struct<> --- !query 2015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2016 -SELECT map(cast(1 as smallint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2016 schema -struct<> --- !query 2016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2017 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 2017 schema -struct> --- !query 2017 output -{1:1,2:2} - - --- !query 2018 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 2018 schema -struct> --- !query 2018 output -{1:1,2:2} - - --- !query 2019 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 2019 schema -struct> --- !query 2019 output -{1:1,2:2} - - --- !query 2020 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 2020 schema -struct> --- !query 2020 output -{1:1,2:2} - - --- !query 2021 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 2021 schema -struct> --- !query 2021 output -{1:1.0,2:2.0} - - --- !query 2022 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 2022 schema -struct> --- !query 2022 output -{1:1.0,2:2.0} - - --- !query 2023 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 2023 schema -struct> --- !query 2023 output -{1:1,2:2} - - --- !query 2024 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 2024 schema -struct> --- !query 2024 output -{1:"1",2:"2"} - - --- !query 2025 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 2025 schema -struct<> --- !query 2025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2026 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 2026 schema -struct<> --- !query 2026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2027 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2027 schema -struct<> --- !query 2027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2028 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2028 schema -struct<> --- !query 2028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2029 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 2029 schema -struct> --- !query 2029 output -{1:1,2:2} - - --- !query 2030 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 2030 schema -struct> --- !query 2030 output -{1:1,2:2} - - --- !query 2031 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 2031 schema -struct> --- !query 2031 output -{1:1,2:2} - - --- !query 2032 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 2032 schema -struct> --- !query 2032 output -{1:1,2:2} - - --- !query 2033 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 2033 schema -struct> --- !query 2033 output -{1:1.0,2:2.0} - - --- !query 2034 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 2034 schema -struct> --- !query 2034 output -{1:1.0,2:2.0} - - --- !query 2035 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 2035 schema -struct> --- !query 2035 output -{1:1,2:2} - - --- !query 2036 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 2036 schema -struct> --- !query 2036 output -{1:"1",2:"2"} - - --- !query 2037 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 2037 schema -struct<> --- !query 2037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2038 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 2038 schema -struct<> --- !query 2038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2039 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2039 schema -struct<> --- !query 2039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2040 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2040 schema -struct<> --- !query 2040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2041 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 2041 schema -struct> --- !query 2041 output -{1:1,2:2} - - --- !query 2042 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 2042 schema -struct> --- !query 2042 output -{1:1,2:2} - - --- !query 2043 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 2043 schema -struct> --- !query 2043 output -{1:1,2:2} - - --- !query 2044 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 2044 schema -struct> --- !query 2044 output -{1:1,2:2} - - --- !query 2045 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 2045 schema -struct> --- !query 2045 output -{1:1.0,2:2.0} - - --- !query 2046 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 2046 schema -struct> --- !query 2046 output -{1:1.0,2:2.0} - - --- !query 2047 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 2047 schema -struct> --- !query 2047 output -{1:1,2:2} - - --- !query 2048 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 2048 schema -struct> --- !query 2048 output -{1:"1",2:"2"} - - --- !query 2049 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 2049 schema -struct<> --- !query 2049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2050 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 2050 schema -struct<> --- !query 2050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2051 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2051 schema -struct<> --- !query 2051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2052 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2052 schema -struct<> --- !query 2052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2053 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 2053 schema -struct> --- !query 2053 output -{1:1,2:2} - - --- !query 2054 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 2054 schema -struct> --- !query 2054 output -{1:1,2:2} - - --- !query 2055 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 2055 schema -struct> --- !query 2055 output -{1:1,2:2} - - --- !query 2056 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 2056 schema -struct> --- !query 2056 output -{1:1,2:2} - - --- !query 2057 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 2057 schema -struct> --- !query 2057 output -{1:1.0,2:2.0} - - --- !query 2058 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 2058 schema -struct> --- !query 2058 output -{1:1.0,2:2.0} - - --- !query 2059 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 2059 schema -struct> --- !query 2059 output -{1:1,2:2} - - --- !query 2060 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 2060 schema -struct> --- !query 2060 output -{1:"1",2:"2"} - - --- !query 2061 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 2061 schema -struct<> --- !query 2061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2062 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 2062 schema -struct<> --- !query 2062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2063 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2063 schema -struct<> --- !query 2063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2064 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2064 schema -struct<> --- !query 2064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2065 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 2065 schema -struct> --- !query 2065 output -{1.0:1,2.0:2} - - --- !query 2066 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 2066 schema -struct> --- !query 2066 output -{1.0:1,2.0:2} - - --- !query 2067 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 2067 schema -struct> --- !query 2067 output -{1.0:1,2.0:2} - - --- !query 2068 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 2068 schema -struct> --- !query 2068 output -{1.0:1,2.0:2} - - --- !query 2069 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 2069 schema -struct> --- !query 2069 output -{1.0:1.0,2.0:2.0} - - --- !query 2070 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 2070 schema -struct> --- !query 2070 output -{1.0:1.0,2.0:2.0} - - --- !query 2071 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 2071 schema -struct> --- !query 2071 output -{1.0:1,2.0:2} - - --- !query 2072 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 2072 schema -struct> --- !query 2072 output -{1.0:"1",2.0:"2"} - - --- !query 2073 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 2073 schema -struct<> --- !query 2073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2074 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 2074 schema -struct<> --- !query 2074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2075 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2075 schema -struct<> --- !query 2075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2076 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2076 schema -struct<> --- !query 2076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2077 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 2077 schema -struct> --- !query 2077 output -{1.0:1,2.0:2} - - --- !query 2078 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 2078 schema -struct> --- !query 2078 output -{1.0:1,2.0:2} - - --- !query 2079 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 2079 schema -struct> --- !query 2079 output -{1.0:1,2.0:2} - - --- !query 2080 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 2080 schema -struct> --- !query 2080 output -{1.0:1,2.0:2} - - --- !query 2081 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 2081 schema -struct> --- !query 2081 output -{1.0:1.0,2.0:2.0} - - --- !query 2082 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 2082 schema -struct> --- !query 2082 output -{1.0:1.0,2.0:2.0} - - --- !query 2083 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 2083 schema -struct> --- !query 2083 output -{1.0:1,2.0:2} - - --- !query 2084 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 2084 schema -struct> --- !query 2084 output -{1.0:"1",2.0:"2"} - - --- !query 2085 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 2085 schema -struct<> --- !query 2085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2086 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 2086 schema -struct<> --- !query 2086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2087 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2087 schema -struct<> --- !query 2087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2088 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2088 schema -struct<> --- !query 2088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2089 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 2089 schema -struct> --- !query 2089 output -{1:1,2:2} - - --- !query 2090 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 2090 schema -struct> --- !query 2090 output -{1:1,2:2} - - --- !query 2091 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 2091 schema -struct> --- !query 2091 output -{1:1,2:2} - - --- !query 2092 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 2092 schema -struct> --- !query 2092 output -{1:1,2:2} - - --- !query 2093 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 2093 schema -struct> --- !query 2093 output -{1:1.0,2:2.0} - - --- !query 2094 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 2094 schema -struct> --- !query 2094 output -{1:1.0,2:2.0} - - --- !query 2095 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 2095 schema -struct> --- !query 2095 output -{1:1,2:2} - - --- !query 2096 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 2096 schema -struct> --- !query 2096 output -{1:"1",2:"2"} - - --- !query 2097 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 2097 schema -struct<> --- !query 2097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2098 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 2098 schema -struct<> --- !query 2098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2099 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2099 schema -struct<> --- !query 2099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2100 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2100 schema -struct<> --- !query 2100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2101 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 2101 schema -struct> --- !query 2101 output -{"1":1,"2":2} - - --- !query 2102 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 2102 schema -struct> --- !query 2102 output -{"1":1,"2":2} - - --- !query 2103 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 2103 schema -struct> --- !query 2103 output -{"1":1,"2":2} - - --- !query 2104 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 2104 schema -struct> --- !query 2104 output -{"1":1,"2":2} - - --- !query 2105 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 2105 schema -struct> --- !query 2105 output -{"1":1.0,"2":2.0} - - --- !query 2106 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 2106 schema -struct> --- !query 2106 output -{"1":1.0,"2":2.0} - - --- !query 2107 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 2107 schema -struct> --- !query 2107 output -{"1":1,"2":2} - - --- !query 2108 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 2108 schema -struct> --- !query 2108 output -{"1":"1","2":"2"} - - --- !query 2109 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 2109 schema -struct<> --- !query 2109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2110 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 2110 schema -struct<> --- !query 2110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2111 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2111 schema -struct<> --- !query 2111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2112 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2112 schema -struct<> --- !query 2112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2113 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 2113 schema -struct<> --- !query 2113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2114 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 2114 schema -struct<> --- !query 2114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2115 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 2115 schema -struct<> --- !query 2115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2116 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 2116 schema -struct<> --- !query 2116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2117 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 2117 schema -struct<> --- !query 2117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2118 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 2118 schema -struct<> --- !query 2118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2119 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 2119 schema -struct<> --- !query 2119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2120 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 2120 schema -struct<> --- !query 2120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2121 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 2121 schema -struct<> --- !query 2121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2122 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 2122 schema -struct<> --- !query 2122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2123 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2123 schema -struct<> --- !query 2123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2124 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2124 schema -struct<> --- !query 2124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2125 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 2125 schema -struct<> --- !query 2125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2126 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 2126 schema -struct<> --- !query 2126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2127 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 2127 schema -struct<> --- !query 2127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2128 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 2128 schema -struct<> --- !query 2128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2129 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 2129 schema -struct<> --- !query 2129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2130 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 2130 schema -struct<> --- !query 2130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2131 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 2131 schema -struct<> --- !query 2131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2132 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 2132 schema -struct<> --- !query 2132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2133 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 2133 schema -struct<> --- !query 2133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2134 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 2134 schema -struct<> --- !query 2134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2135 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2135 schema -struct<> --- !query 2135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2136 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2136 schema -struct<> --- !query 2136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2137 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 2137 schema -struct<> --- !query 2137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2138 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 2138 schema -struct<> --- !query 2138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2139 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 2139 schema -struct<> --- !query 2139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2140 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 2140 schema -struct<> --- !query 2140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2141 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 2141 schema -struct<> --- !query 2141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2142 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 2142 schema -struct<> --- !query 2142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2143 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 2143 schema -struct<> --- !query 2143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2144 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 2144 schema -struct<> --- !query 2144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2145 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 2145 schema -struct<> --- !query 2145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2146 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 2146 schema -struct<> --- !query 2146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2147 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2147 schema -struct<> --- !query 2147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2148 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2148 schema -struct<> --- !query 2148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2149 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 2149 schema -struct<> --- !query 2149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2150 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 2150 schema -struct<> --- !query 2150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2151 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 2151 schema -struct<> --- !query 2151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2152 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 2152 schema -struct<> --- !query 2152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2153 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 2153 schema -struct<> --- !query 2153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2154 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 2154 schema -struct<> --- !query 2154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2155 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 2155 schema -struct<> --- !query 2155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2156 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 2156 schema -struct<> --- !query 2156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2157 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 2157 schema -struct<> --- !query 2157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2158 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 2158 schema -struct<> --- !query 2158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2159 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2159 schema -struct<> --- !query 2159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2160 -SELECT map(cast(1 as smallint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2160 schema -struct<> --- !query 2160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2161 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 2161 schema -struct> --- !query 2161 output -{1:1,2:2} - - --- !query 2162 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 2162 schema -struct> --- !query 2162 output -{1:1,2:2} - - --- !query 2163 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 2163 schema -struct> --- !query 2163 output -{1:1,2:2} - - --- !query 2164 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 2164 schema -struct> --- !query 2164 output -{1:1,2:2} - - --- !query 2165 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 2165 schema -struct> --- !query 2165 output -{1:1.0,2:2.0} - - --- !query 2166 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 2166 schema -struct> --- !query 2166 output -{1:1.0,2:2.0} - - --- !query 2167 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 2167 schema -struct> --- !query 2167 output -{1:1,2:2} - - --- !query 2168 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 2168 schema -struct> --- !query 2168 output -{1:"1",2:"2"} - - --- !query 2169 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 2169 schema -struct<> --- !query 2169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2170 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 2170 schema -struct<> --- !query 2170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2171 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2171 schema -struct<> --- !query 2171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2172 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2172 schema -struct<> --- !query 2172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2173 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 2173 schema -struct> --- !query 2173 output -{1:1,2:2} - - --- !query 2174 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 2174 schema -struct> --- !query 2174 output -{1:1,2:2} - - --- !query 2175 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 2175 schema -struct> --- !query 2175 output -{1:1,2:2} - - --- !query 2176 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 2176 schema -struct> --- !query 2176 output -{1:1,2:2} - - --- !query 2177 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 2177 schema -struct> --- !query 2177 output -{1:1.0,2:2.0} - - --- !query 2178 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 2178 schema -struct> --- !query 2178 output -{1:1.0,2:2.0} - - --- !query 2179 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 2179 schema -struct> --- !query 2179 output -{1:1,2:2} - - --- !query 2180 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 2180 schema -struct> --- !query 2180 output -{1:"1",2:"2"} - - --- !query 2181 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 2181 schema -struct<> --- !query 2181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2182 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 2182 schema -struct<> --- !query 2182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2183 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2183 schema -struct<> --- !query 2183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2184 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2184 schema -struct<> --- !query 2184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2185 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 2185 schema -struct> --- !query 2185 output -{1:1,2:2} - - --- !query 2186 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 2186 schema -struct> --- !query 2186 output -{1:1,2:2} - - --- !query 2187 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 2187 schema -struct> --- !query 2187 output -{1:1,2:2} - - --- !query 2188 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 2188 schema -struct> --- !query 2188 output -{1:1,2:2} - - --- !query 2189 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 2189 schema -struct> --- !query 2189 output -{1:1.0,2:2.0} - - --- !query 2190 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 2190 schema -struct> --- !query 2190 output -{1:1.0,2:2.0} - - --- !query 2191 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 2191 schema -struct> --- !query 2191 output -{1:1,2:2} - - --- !query 2192 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 2192 schema -struct> --- !query 2192 output -{1:"1",2:"2"} - - --- !query 2193 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 2193 schema -struct<> --- !query 2193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2194 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 2194 schema -struct<> --- !query 2194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2195 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2195 schema -struct<> --- !query 2195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2196 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2196 schema -struct<> --- !query 2196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2197 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 2197 schema -struct> --- !query 2197 output -{1:1,2:2} - - --- !query 2198 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 2198 schema -struct> --- !query 2198 output -{1:1,2:2} - - --- !query 2199 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 2199 schema -struct> --- !query 2199 output -{1:1,2:2} - - --- !query 2200 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 2200 schema -struct> --- !query 2200 output -{1:1,2:2} - - --- !query 2201 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 2201 schema -struct> --- !query 2201 output -{1:1.0,2:2.0} - - --- !query 2202 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 2202 schema -struct> --- !query 2202 output -{1:1.0,2:2.0} - - --- !query 2203 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 2203 schema -struct> --- !query 2203 output -{1:1,2:2} - - --- !query 2204 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 2204 schema -struct> --- !query 2204 output -{1:"1",2:"2"} - - --- !query 2205 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 2205 schema -struct<> --- !query 2205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2206 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 2206 schema -struct<> --- !query 2206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2207 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2207 schema -struct<> --- !query 2207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2208 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2208 schema -struct<> --- !query 2208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2209 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 2209 schema -struct> --- !query 2209 output -{1.0:1,2.0:2} - - --- !query 2210 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 2210 schema -struct> --- !query 2210 output -{1.0:1,2.0:2} - - --- !query 2211 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 2211 schema -struct> --- !query 2211 output -{1.0:1,2.0:2} - - --- !query 2212 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 2212 schema -struct> --- !query 2212 output -{1.0:1,2.0:2} - - --- !query 2213 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 2213 schema -struct> --- !query 2213 output -{1.0:1.0,2.0:2.0} - - --- !query 2214 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 2214 schema -struct> --- !query 2214 output -{1.0:1.0,2.0:2.0} - - --- !query 2215 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 2215 schema -struct> --- !query 2215 output -{1.0:1,2.0:2} - - --- !query 2216 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 2216 schema -struct> --- !query 2216 output -{1.0:"1",2.0:"2"} - - --- !query 2217 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 2217 schema -struct<> --- !query 2217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2218 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 2218 schema -struct<> --- !query 2218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2219 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2219 schema -struct<> --- !query 2219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2220 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2220 schema -struct<> --- !query 2220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2221 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 2221 schema -struct> --- !query 2221 output -{1.0:1,2.0:2} - - --- !query 2222 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 2222 schema -struct> --- !query 2222 output -{1.0:1,2.0:2} - - --- !query 2223 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 2223 schema -struct> --- !query 2223 output -{1.0:1,2.0:2} - - --- !query 2224 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 2224 schema -struct> --- !query 2224 output -{1.0:1,2.0:2} - - --- !query 2225 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 2225 schema -struct> --- !query 2225 output -{1.0:1.0,2.0:2.0} - - --- !query 2226 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 2226 schema -struct> --- !query 2226 output -{1.0:1.0,2.0:2.0} - - --- !query 2227 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 2227 schema -struct> --- !query 2227 output -{1.0:1,2.0:2} - - --- !query 2228 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 2228 schema -struct> --- !query 2228 output -{1.0:"1",2.0:"2"} - - --- !query 2229 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 2229 schema -struct<> --- !query 2229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2230 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 2230 schema -struct<> --- !query 2230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2231 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2231 schema -struct<> --- !query 2231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2232 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2232 schema -struct<> --- !query 2232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2233 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 2233 schema -struct> --- !query 2233 output -{1:1,2:2} - - --- !query 2234 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 2234 schema -struct> --- !query 2234 output -{1:1,2:2} - - --- !query 2235 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 2235 schema -struct> --- !query 2235 output -{1:1,2:2} - - --- !query 2236 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 2236 schema -struct> --- !query 2236 output -{1:1,2:2} - - --- !query 2237 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 2237 schema -struct> --- !query 2237 output -{1:1.0,2:2.0} - - --- !query 2238 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 2238 schema -struct> --- !query 2238 output -{1:1.0,2:2.0} - - --- !query 2239 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 2239 schema -struct> --- !query 2239 output -{1:1,2:2} - - --- !query 2240 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 2240 schema -struct> --- !query 2240 output -{1:"1",2:"2"} - - --- !query 2241 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 2241 schema -struct<> --- !query 2241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2242 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 2242 schema -struct<> --- !query 2242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2243 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2243 schema -struct<> --- !query 2243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2244 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2244 schema -struct<> --- !query 2244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2245 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 2245 schema -struct> --- !query 2245 output -{"1":1,"2":2} - - --- !query 2246 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 2246 schema -struct> --- !query 2246 output -{"1":1,"2":2} - - --- !query 2247 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 2247 schema -struct> --- !query 2247 output -{"1":1,"2":2} - - --- !query 2248 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 2248 schema -struct> --- !query 2248 output -{"1":1,"2":2} - - --- !query 2249 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 2249 schema -struct> --- !query 2249 output -{"1":1.0,"2":2.0} - - --- !query 2250 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 2250 schema -struct> --- !query 2250 output -{"1":1.0,"2":2.0} - - --- !query 2251 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 2251 schema -struct> --- !query 2251 output -{"1":1,"2":2} - - --- !query 2252 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 2252 schema -struct> --- !query 2252 output -{"1":"1","2":"2"} - - --- !query 2253 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 2253 schema -struct<> --- !query 2253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 2254 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 2254 schema -struct<> --- !query 2254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 2255 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2255 schema -struct<> --- !query 2255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 2256 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2256 schema -struct<> --- !query 2256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 2257 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 2257 schema -struct<> --- !query 2257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2258 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 2258 schema -struct<> --- !query 2258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2259 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 2259 schema -struct<> --- !query 2259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2260 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 2260 schema -struct<> --- !query 2260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2261 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 2261 schema -struct<> --- !query 2261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2262 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 2262 schema -struct<> --- !query 2262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2263 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 2263 schema -struct<> --- !query 2263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2264 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 2264 schema -struct<> --- !query 2264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2265 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 2265 schema -struct<> --- !query 2265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2266 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 2266 schema -struct<> --- !query 2266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2267 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2267 schema -struct<> --- !query 2267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2268 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2268 schema -struct<> --- !query 2268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2269 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 2269 schema -struct<> --- !query 2269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2270 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 2270 schema -struct<> --- !query 2270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2271 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 2271 schema -struct<> --- !query 2271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2272 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 2272 schema -struct<> --- !query 2272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2273 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 2273 schema -struct<> --- !query 2273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2274 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 2274 schema -struct<> --- !query 2274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2275 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 2275 schema -struct<> --- !query 2275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2276 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 2276 schema -struct<> --- !query 2276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2277 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 2277 schema -struct<> --- !query 2277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2278 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 2278 schema -struct<> --- !query 2278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2279 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2279 schema -struct<> --- !query 2279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2280 -SELECT map(cast(1 as smallint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2280 schema -struct<> --- !query 2280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2281 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 2281 schema -struct<> --- !query 2281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2282 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 2282 schema -struct<> --- !query 2282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2283 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 2283 schema -struct<> --- !query 2283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2284 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 2284 schema -struct<> --- !query 2284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2285 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 2285 schema -struct<> --- !query 2285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2286 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 2286 schema -struct<> --- !query 2286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2287 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 2287 schema -struct<> --- !query 2287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2288 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 2288 schema -struct<> --- !query 2288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2289 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 2289 schema -struct<> --- !query 2289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2290 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 2290 schema -struct<> --- !query 2290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2291 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2291 schema -struct<> --- !query 2291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2292 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2292 schema -struct<> --- !query 2292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2293 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 2293 schema -struct<> --- !query 2293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2294 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 2294 schema -struct<> --- !query 2294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2295 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 2295 schema -struct<> --- !query 2295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2296 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 2296 schema -struct<> --- !query 2296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2297 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 2297 schema -struct<> --- !query 2297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2298 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 2298 schema -struct<> --- !query 2298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2299 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 2299 schema -struct<> --- !query 2299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2300 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 2300 schema -struct<> --- !query 2300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2301 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 2301 schema -struct<> --- !query 2301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2302 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 2302 schema -struct<> --- !query 2302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2303 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2303 schema -struct<> --- !query 2303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2304 -SELECT map(cast(1 as smallint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2304 schema -struct<> --- !query 2304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2305 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 2305 schema -struct> --- !query 2305 output -{1:1,2:2} - - --- !query 2306 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 2306 schema -struct> --- !query 2306 output -{1:1,2:2} - - --- !query 2307 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 2307 schema -struct> --- !query 2307 output -{1:1,2:2} - - --- !query 2308 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 2308 schema -struct> --- !query 2308 output -{1:1,2:2} - - --- !query 2309 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 2309 schema -struct> --- !query 2309 output -{1:1.0,2:2.0} - - --- !query 2310 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 2310 schema -struct> --- !query 2310 output -{1:1.0,2:2.0} - - --- !query 2311 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 2311 schema -struct> --- !query 2311 output -{1:1,2:2} - - --- !query 2312 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 2312 schema -struct> --- !query 2312 output -{1:"1",2:"2"} - - --- !query 2313 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 2313 schema -struct<> --- !query 2313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2314 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 2314 schema -struct<> --- !query 2314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2315 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2315 schema -struct<> --- !query 2315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2316 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2316 schema -struct<> --- !query 2316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2317 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 2317 schema -struct> --- !query 2317 output -{1:1,2:2} - - --- !query 2318 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 2318 schema -struct> --- !query 2318 output -{1:1,2:2} - - --- !query 2319 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 2319 schema -struct> --- !query 2319 output -{1:1,2:2} - - --- !query 2320 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 2320 schema -struct> --- !query 2320 output -{1:1,2:2} - - --- !query 2321 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 2321 schema -struct> --- !query 2321 output -{1:1.0,2:2.0} - - --- !query 2322 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 2322 schema -struct> --- !query 2322 output -{1:1.0,2:2.0} - - --- !query 2323 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 2323 schema -struct> --- !query 2323 output -{1:1,2:2} - - --- !query 2324 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 2324 schema -struct> --- !query 2324 output -{1:"1",2:"2"} - - --- !query 2325 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 2325 schema -struct<> --- !query 2325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2326 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 2326 schema -struct<> --- !query 2326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2327 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2327 schema -struct<> --- !query 2327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2328 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2328 schema -struct<> --- !query 2328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2329 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 2329 schema -struct> --- !query 2329 output -{1:1,2:2} - - --- !query 2330 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 2330 schema -struct> --- !query 2330 output -{1:1,2:2} - - --- !query 2331 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 2331 schema -struct> --- !query 2331 output -{1:1,2:2} - - --- !query 2332 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 2332 schema -struct> --- !query 2332 output -{1:1,2:2} - - --- !query 2333 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 2333 schema -struct> --- !query 2333 output -{1:1.0,2:2.0} - - --- !query 2334 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 2334 schema -struct> --- !query 2334 output -{1:1.0,2:2.0} - - --- !query 2335 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 2335 schema -struct> --- !query 2335 output -{1:1,2:2} - - --- !query 2336 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 2336 schema -struct> --- !query 2336 output -{1:"1",2:"2"} - - --- !query 2337 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 2337 schema -struct<> --- !query 2337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2338 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 2338 schema -struct<> --- !query 2338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2339 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2339 schema -struct<> --- !query 2339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2340 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2340 schema -struct<> --- !query 2340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2341 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 2341 schema -struct> --- !query 2341 output -{1:1,2:2} - - --- !query 2342 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 2342 schema -struct> --- !query 2342 output -{1:1,2:2} - - --- !query 2343 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 2343 schema -struct> --- !query 2343 output -{1:1,2:2} - - --- !query 2344 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 2344 schema -struct> --- !query 2344 output -{1:1,2:2} - - --- !query 2345 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 2345 schema -struct> --- !query 2345 output -{1:1.0,2:2.0} - - --- !query 2346 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 2346 schema -struct> --- !query 2346 output -{1:1.0,2:2.0} - - --- !query 2347 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 2347 schema -struct> --- !query 2347 output -{1:1,2:2} - - --- !query 2348 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 2348 schema -struct> --- !query 2348 output -{1:"1",2:"2"} - - --- !query 2349 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 2349 schema -struct<> --- !query 2349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2350 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 2350 schema -struct<> --- !query 2350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2351 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2351 schema -struct<> --- !query 2351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2352 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2352 schema -struct<> --- !query 2352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2353 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 2353 schema -struct> --- !query 2353 output -{1.0:1,2.0:2} - - --- !query 2354 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 2354 schema -struct> --- !query 2354 output -{1.0:1,2.0:2} - - --- !query 2355 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 2355 schema -struct> --- !query 2355 output -{1.0:1,2.0:2} - - --- !query 2356 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 2356 schema -struct> --- !query 2356 output -{1.0:1,2.0:2} - - --- !query 2357 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 2357 schema -struct> --- !query 2357 output -{1.0:1.0,2.0:2.0} - - --- !query 2358 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 2358 schema -struct> --- !query 2358 output -{1.0:1.0,2.0:2.0} - - --- !query 2359 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 2359 schema -struct> --- !query 2359 output -{1.0:1,2.0:2} - - --- !query 2360 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 2360 schema -struct> --- !query 2360 output -{1.0:"1",2.0:"2"} - - --- !query 2361 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 2361 schema -struct<> --- !query 2361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2362 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 2362 schema -struct<> --- !query 2362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2363 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2363 schema -struct<> --- !query 2363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2364 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2364 schema -struct<> --- !query 2364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2365 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 2365 schema -struct> --- !query 2365 output -{1.0:1,2.0:2} - - --- !query 2366 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 2366 schema -struct> --- !query 2366 output -{1.0:1,2.0:2} - - --- !query 2367 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 2367 schema -struct> --- !query 2367 output -{1.0:1,2.0:2} - - --- !query 2368 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 2368 schema -struct> --- !query 2368 output -{1.0:1,2.0:2} - - --- !query 2369 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 2369 schema -struct> --- !query 2369 output -{1.0:1.0,2.0:2.0} - - --- !query 2370 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 2370 schema -struct> --- !query 2370 output -{1.0:1.0,2.0:2.0} - - --- !query 2371 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 2371 schema -struct> --- !query 2371 output -{1.0:1,2.0:2} - - --- !query 2372 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 2372 schema -struct> --- !query 2372 output -{1.0:"1",2.0:"2"} - - --- !query 2373 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 2373 schema -struct<> --- !query 2373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2374 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 2374 schema -struct<> --- !query 2374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2375 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2375 schema -struct<> --- !query 2375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2376 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2376 schema -struct<> --- !query 2376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2377 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 2377 schema -struct> --- !query 2377 output -{1:1,2:2} - - --- !query 2378 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 2378 schema -struct> --- !query 2378 output -{1:1,2:2} - - --- !query 2379 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 2379 schema -struct> --- !query 2379 output -{1:1,2:2} - - --- !query 2380 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 2380 schema -struct> --- !query 2380 output -{1:1,2:2} - - --- !query 2381 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 2381 schema -struct> --- !query 2381 output -{1:1.0,2:2.0} - - --- !query 2382 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 2382 schema -struct> --- !query 2382 output -{1:1.0,2:2.0} - - --- !query 2383 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 2383 schema -struct> --- !query 2383 output -{1:1,2:2} - - --- !query 2384 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 2384 schema -struct> --- !query 2384 output -{1:"1",2:"2"} - - --- !query 2385 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 2385 schema -struct<> --- !query 2385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2386 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 2386 schema -struct<> --- !query 2386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2387 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2387 schema -struct<> --- !query 2387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2388 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2388 schema -struct<> --- !query 2388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2389 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 2389 schema -struct> --- !query 2389 output -{"1":1,"2":2} - - --- !query 2390 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 2390 schema -struct> --- !query 2390 output -{"1":1,"2":2} - - --- !query 2391 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 2391 schema -struct> --- !query 2391 output -{"1":1,"2":2} - - --- !query 2392 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 2392 schema -struct> --- !query 2392 output -{"1":1,"2":2} - - --- !query 2393 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 2393 schema -struct> --- !query 2393 output -{"1":1.0,"2":2.0} - - --- !query 2394 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 2394 schema -struct> --- !query 2394 output -{"1":1.0,"2":2.0} - - --- !query 2395 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 2395 schema -struct> --- !query 2395 output -{"1":1,"2":2} - - --- !query 2396 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 2396 schema -struct> --- !query 2396 output -{"1":"1","2":"2"} - - --- !query 2397 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 2397 schema -struct<> --- !query 2397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 2398 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 2398 schema -struct<> --- !query 2398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 2399 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2399 schema -struct<> --- !query 2399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 2400 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2400 schema -struct<> --- !query 2400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 2401 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 2401 schema -struct<> --- !query 2401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2402 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 2402 schema -struct<> --- !query 2402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2403 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 2403 schema -struct<> --- !query 2403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2404 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 2404 schema -struct<> --- !query 2404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2405 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 2405 schema -struct<> --- !query 2405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2406 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 2406 schema -struct<> --- !query 2406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2407 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 2407 schema -struct<> --- !query 2407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2408 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 2408 schema -struct<> --- !query 2408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2409 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 2409 schema -struct<> --- !query 2409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2410 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 2410 schema -struct<> --- !query 2410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2411 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2411 schema -struct<> --- !query 2411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2412 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2412 schema -struct<> --- !query 2412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2413 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 2413 schema -struct<> --- !query 2413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2414 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 2414 schema -struct<> --- !query 2414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2415 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 2415 schema -struct<> --- !query 2415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2416 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 2416 schema -struct<> --- !query 2416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2417 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 2417 schema -struct<> --- !query 2417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2418 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 2418 schema -struct<> --- !query 2418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2419 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 2419 schema -struct<> --- !query 2419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2420 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 2420 schema -struct<> --- !query 2420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2421 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 2421 schema -struct<> --- !query 2421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2422 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 2422 schema -struct<> --- !query 2422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2423 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2423 schema -struct<> --- !query 2423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2424 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2424 schema -struct<> --- !query 2424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2425 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 2425 schema -struct<> --- !query 2425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2426 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 2426 schema -struct<> --- !query 2426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2427 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 2427 schema -struct<> --- !query 2427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2428 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 2428 schema -struct<> --- !query 2428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2429 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 2429 schema -struct<> --- !query 2429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2430 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 2430 schema -struct<> --- !query 2430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2431 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 2431 schema -struct<> --- !query 2431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2432 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 2432 schema -struct<> --- !query 2432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2433 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 2433 schema -struct<> --- !query 2433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2434 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 2434 schema -struct<> --- !query 2434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2435 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2435 schema -struct<> --- !query 2435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2436 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2436 schema -struct<> --- !query 2436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2437 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 2437 schema -struct<> --- !query 2437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2438 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 2438 schema -struct<> --- !query 2438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2439 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 2439 schema -struct<> --- !query 2439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2440 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 2440 schema -struct<> --- !query 2440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2441 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 2441 schema -struct<> --- !query 2441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2442 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 2442 schema -struct<> --- !query 2442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2443 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 2443 schema -struct<> --- !query 2443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2444 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 2444 schema -struct<> --- !query 2444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2445 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 2445 schema -struct<> --- !query 2445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2446 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 2446 schema -struct<> --- !query 2446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2447 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2447 schema -struct<> --- !query 2447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2448 -SELECT map(cast(1 as smallint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2448 schema -struct<> --- !query 2448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2449 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 2449 schema -struct> --- !query 2449 output -{1:1.0,2:2.0} - - --- !query 2450 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 2450 schema -struct> --- !query 2450 output -{1:1.0,2:2.0} - - --- !query 2451 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 2451 schema -struct> --- !query 2451 output -{1:1.0,2:2.0} - - --- !query 2452 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 2452 schema -struct> --- !query 2452 output -{1:1.0,2:2.0} - - --- !query 2453 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 2453 schema -struct> --- !query 2453 output -{1:1.0,2:2.0} - - --- !query 2454 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 2454 schema -struct> --- !query 2454 output -{1:1.0,2:2.0} - - --- !query 2455 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 2455 schema -struct> --- !query 2455 output -{1:1.0,2:2.0} - - --- !query 2456 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 2456 schema -struct> --- !query 2456 output -{1:"1.0",2:"2"} - - --- !query 2457 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 2457 schema -struct<> --- !query 2457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2458 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 2458 schema -struct<> --- !query 2458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2459 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2459 schema -struct<> --- !query 2459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2460 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2460 schema -struct<> --- !query 2460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2461 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 2461 schema -struct> --- !query 2461 output -{1:1.0,2:2.0} - - --- !query 2462 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 2462 schema -struct> --- !query 2462 output -{1:1.0,2:2.0} - - --- !query 2463 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 2463 schema -struct> --- !query 2463 output -{1:1.0,2:2.0} - - --- !query 2464 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 2464 schema -struct> --- !query 2464 output -{1:1.0,2:2.0} - - --- !query 2465 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 2465 schema -struct> --- !query 2465 output -{1:1.0,2:2.0} - - --- !query 2466 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 2466 schema -struct> --- !query 2466 output -{1:1.0,2:2.0} - - --- !query 2467 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 2467 schema -struct> --- !query 2467 output -{1:1.0,2:2.0} - - --- !query 2468 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 2468 schema -struct> --- !query 2468 output -{1:"1.0",2:"2"} - - --- !query 2469 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 2469 schema -struct<> --- !query 2469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2470 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 2470 schema -struct<> --- !query 2470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2471 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2471 schema -struct<> --- !query 2471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2472 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2472 schema -struct<> --- !query 2472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2473 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 2473 schema -struct> --- !query 2473 output -{1:1.0,2:2.0} - - --- !query 2474 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 2474 schema -struct> --- !query 2474 output -{1:1.0,2:2.0} - - --- !query 2475 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 2475 schema -struct> --- !query 2475 output -{1:1.0,2:2.0} - - --- !query 2476 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 2476 schema -struct> --- !query 2476 output -{1:1.0,2:2.0} - - --- !query 2477 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 2477 schema -struct> --- !query 2477 output -{1:1.0,2:2.0} - - --- !query 2478 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 2478 schema -struct> --- !query 2478 output -{1:1.0,2:2.0} - - --- !query 2479 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 2479 schema -struct> --- !query 2479 output -{1:1.0,2:2.0} - - --- !query 2480 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 2480 schema -struct> --- !query 2480 output -{1:"1.0",2:"2"} - - --- !query 2481 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 2481 schema -struct<> --- !query 2481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2482 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 2482 schema -struct<> --- !query 2482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2483 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2483 schema -struct<> --- !query 2483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2484 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2484 schema -struct<> --- !query 2484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2485 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 2485 schema -struct> --- !query 2485 output -{1:1.0,2:2.0} - - --- !query 2486 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 2486 schema -struct> --- !query 2486 output -{1:1.0,2:2.0} - - --- !query 2487 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 2487 schema -struct> --- !query 2487 output -{1:1.0,2:2.0} - - --- !query 2488 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 2488 schema -struct> --- !query 2488 output -{1:1.0,2:2.0} - - --- !query 2489 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 2489 schema -struct> --- !query 2489 output -{1:1.0,2:2.0} - - --- !query 2490 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 2490 schema -struct> --- !query 2490 output -{1:1.0,2:2.0} - - --- !query 2491 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 2491 schema -struct> --- !query 2491 output -{1:1.0,2:2.0} - - --- !query 2492 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 2492 schema -struct> --- !query 2492 output -{1:"1.0",2:"2"} - - --- !query 2493 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 2493 schema -struct<> --- !query 2493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2494 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 2494 schema -struct<> --- !query 2494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2495 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2495 schema -struct<> --- !query 2495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2496 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2496 schema -struct<> --- !query 2496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2497 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 2497 schema -struct> --- !query 2497 output -{1.0:1.0,2.0:2.0} - - --- !query 2498 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 2498 schema -struct> --- !query 2498 output -{1.0:1.0,2.0:2.0} - - --- !query 2499 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 2499 schema -struct> --- !query 2499 output -{1.0:1.0,2.0:2.0} - - --- !query 2500 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 2500 schema -struct> --- !query 2500 output -{1.0:1.0,2.0:2.0} - - --- !query 2501 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 2501 schema -struct> --- !query 2501 output -{1.0:1.0,2.0:2.0} - - --- !query 2502 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 2502 schema -struct> --- !query 2502 output -{1.0:1.0,2.0:2.0} - - --- !query 2503 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 2503 schema -struct> --- !query 2503 output -{1.0:1.0,2.0:2.0} - - --- !query 2504 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 2504 schema -struct> --- !query 2504 output -{1.0:"1.0",2.0:"2"} - - --- !query 2505 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 2505 schema -struct<> --- !query 2505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2506 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 2506 schema -struct<> --- !query 2506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2507 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2507 schema -struct<> --- !query 2507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2508 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2508 schema -struct<> --- !query 2508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2509 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 2509 schema -struct> --- !query 2509 output -{1.0:1.0,2.0:2.0} - - --- !query 2510 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 2510 schema -struct> --- !query 2510 output -{1.0:1.0,2.0:2.0} - - --- !query 2511 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 2511 schema -struct> --- !query 2511 output -{1.0:1.0,2.0:2.0} - - --- !query 2512 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 2512 schema -struct> --- !query 2512 output -{1.0:1.0,2.0:2.0} - - --- !query 2513 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 2513 schema -struct> --- !query 2513 output -{1.0:1.0,2.0:2.0} - - --- !query 2514 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 2514 schema -struct> --- !query 2514 output -{1.0:1.0,2.0:2.0} - - --- !query 2515 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 2515 schema -struct> --- !query 2515 output -{1.0:1.0,2.0:2.0} - - --- !query 2516 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 2516 schema -struct> --- !query 2516 output -{1.0:"1.0",2.0:"2"} - - --- !query 2517 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 2517 schema -struct<> --- !query 2517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2518 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 2518 schema -struct<> --- !query 2518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2519 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2519 schema -struct<> --- !query 2519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2520 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2520 schema -struct<> --- !query 2520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2521 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 2521 schema -struct> --- !query 2521 output -{1:1.0,2:2.0} - - --- !query 2522 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 2522 schema -struct> --- !query 2522 output -{1:1.0,2:2.0} - - --- !query 2523 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 2523 schema -struct> --- !query 2523 output -{1:1.0,2:2.0} - - --- !query 2524 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 2524 schema -struct> --- !query 2524 output -{1:1.0,2:2.0} - - --- !query 2525 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 2525 schema -struct> --- !query 2525 output -{1:1.0,2:2.0} - - --- !query 2526 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 2526 schema -struct> --- !query 2526 output -{1:1.0,2:2.0} - - --- !query 2527 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 2527 schema -struct> --- !query 2527 output -{1:1.0,2:2.0} - - --- !query 2528 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 2528 schema -struct> --- !query 2528 output -{1:"1.0",2:"2"} - - --- !query 2529 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 2529 schema -struct<> --- !query 2529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2530 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 2530 schema -struct<> --- !query 2530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2531 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2531 schema -struct<> --- !query 2531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2532 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2532 schema -struct<> --- !query 2532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2533 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 2533 schema -struct> --- !query 2533 output -{"1":1.0,"2":2.0} - - --- !query 2534 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 2534 schema -struct> --- !query 2534 output -{"1":1.0,"2":2.0} - - --- !query 2535 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 2535 schema -struct> --- !query 2535 output -{"1":1.0,"2":2.0} - - --- !query 2536 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 2536 schema -struct> --- !query 2536 output -{"1":1.0,"2":2.0} - - --- !query 2537 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 2537 schema -struct> --- !query 2537 output -{"1":1.0,"2":2.0} - - --- !query 2538 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 2538 schema -struct> --- !query 2538 output -{"1":1.0,"2":2.0} - - --- !query 2539 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 2539 schema -struct> --- !query 2539 output -{"1":1.0,"2":2.0} - - --- !query 2540 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 2540 schema -struct> --- !query 2540 output -{"1":"1.0","2":"2"} - - --- !query 2541 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 2541 schema -struct<> --- !query 2541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 2542 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 2542 schema -struct<> --- !query 2542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 2543 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2543 schema -struct<> --- !query 2543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 2544 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2544 schema -struct<> --- !query 2544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 2545 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 2545 schema -struct<> --- !query 2545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2546 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 2546 schema -struct<> --- !query 2546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2547 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 2547 schema -struct<> --- !query 2547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2548 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 2548 schema -struct<> --- !query 2548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2549 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 2549 schema -struct<> --- !query 2549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2550 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 2550 schema -struct<> --- !query 2550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2551 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 2551 schema -struct<> --- !query 2551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2552 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 2552 schema -struct<> --- !query 2552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2553 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 2553 schema -struct<> --- !query 2553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2554 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 2554 schema -struct<> --- !query 2554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2555 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2555 schema -struct<> --- !query 2555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2556 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2556 schema -struct<> --- !query 2556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2557 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 2557 schema -struct<> --- !query 2557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2558 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 2558 schema -struct<> --- !query 2558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2559 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 2559 schema -struct<> --- !query 2559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2560 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 2560 schema -struct<> --- !query 2560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2561 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 2561 schema -struct<> --- !query 2561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2562 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 2562 schema -struct<> --- !query 2562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2563 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 2563 schema -struct<> --- !query 2563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2564 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 2564 schema -struct<> --- !query 2564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2565 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 2565 schema -struct<> --- !query 2565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2566 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 2566 schema -struct<> --- !query 2566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2567 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2567 schema -struct<> --- !query 2567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2568 -SELECT map(cast(1 as smallint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2568 schema -struct<> --- !query 2568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2569 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 2569 schema -struct<> --- !query 2569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2570 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 2570 schema -struct<> --- !query 2570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2571 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 2571 schema -struct<> --- !query 2571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2572 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 2572 schema -struct<> --- !query 2572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2573 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 2573 schema -struct<> --- !query 2573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2574 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 2574 schema -struct<> --- !query 2574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2575 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 2575 schema -struct<> --- !query 2575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2576 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 2576 schema -struct<> --- !query 2576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2577 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 2577 schema -struct<> --- !query 2577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2578 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 2578 schema -struct<> --- !query 2578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2579 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2579 schema -struct<> --- !query 2579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2580 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2580 schema -struct<> --- !query 2580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2581 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 2581 schema -struct<> --- !query 2581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2582 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 2582 schema -struct<> --- !query 2582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2583 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 2583 schema -struct<> --- !query 2583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2584 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 2584 schema -struct<> --- !query 2584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2585 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 2585 schema -struct<> --- !query 2585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2586 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 2586 schema -struct<> --- !query 2586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2587 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 2587 schema -struct<> --- !query 2587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2588 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 2588 schema -struct<> --- !query 2588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2589 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 2589 schema -struct<> --- !query 2589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2590 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 2590 schema -struct<> --- !query 2590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2591 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2591 schema -struct<> --- !query 2591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2592 -SELECT map(cast(1 as smallint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2592 schema -struct<> --- !query 2592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2593 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 2593 schema -struct> --- !query 2593 output -{1:1.0,2:2.0} - - --- !query 2594 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 2594 schema -struct> --- !query 2594 output -{1:1.0,2:2.0} - - --- !query 2595 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 2595 schema -struct> --- !query 2595 output -{1:1.0,2:2.0} - - --- !query 2596 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 2596 schema -struct> --- !query 2596 output -{1:1.0,2:2.0} - - --- !query 2597 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 2597 schema -struct> --- !query 2597 output -{1:1.0,2:2.0} - - --- !query 2598 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 2598 schema -struct> --- !query 2598 output -{1:1.0,2:2.0} - - --- !query 2599 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 2599 schema -struct> --- !query 2599 output -{1:1.0,2:2.0} - - --- !query 2600 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 2600 schema -struct> --- !query 2600 output -{1:"1.0",2:"2"} - - --- !query 2601 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 2601 schema -struct<> --- !query 2601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2602 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 2602 schema -struct<> --- !query 2602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2603 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2603 schema -struct<> --- !query 2603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2604 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2604 schema -struct<> --- !query 2604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2605 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 2605 schema -struct> --- !query 2605 output -{1:1.0,2:2.0} - - --- !query 2606 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 2606 schema -struct> --- !query 2606 output -{1:1.0,2:2.0} - - --- !query 2607 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 2607 schema -struct> --- !query 2607 output -{1:1.0,2:2.0} - - --- !query 2608 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 2608 schema -struct> --- !query 2608 output -{1:1.0,2:2.0} - - --- !query 2609 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 2609 schema -struct> --- !query 2609 output -{1:1.0,2:2.0} - - --- !query 2610 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 2610 schema -struct> --- !query 2610 output -{1:1.0,2:2.0} - - --- !query 2611 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 2611 schema -struct> --- !query 2611 output -{1:1.0,2:2.0} - - --- !query 2612 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 2612 schema -struct> --- !query 2612 output -{1:"1.0",2:"2"} - - --- !query 2613 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 2613 schema -struct<> --- !query 2613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2614 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 2614 schema -struct<> --- !query 2614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2615 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2615 schema -struct<> --- !query 2615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2616 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2616 schema -struct<> --- !query 2616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2617 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 2617 schema -struct> --- !query 2617 output -{1:1.0,2:2.0} - - --- !query 2618 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 2618 schema -struct> --- !query 2618 output -{1:1.0,2:2.0} - - --- !query 2619 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 2619 schema -struct> --- !query 2619 output -{1:1.0,2:2.0} - - --- !query 2620 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 2620 schema -struct> --- !query 2620 output -{1:1.0,2:2.0} - - --- !query 2621 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 2621 schema -struct> --- !query 2621 output -{1:1.0,2:2.0} - - --- !query 2622 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 2622 schema -struct> --- !query 2622 output -{1:1.0,2:2.0} - - --- !query 2623 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 2623 schema -struct> --- !query 2623 output -{1:1.0,2:2.0} - - --- !query 2624 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 2624 schema -struct> --- !query 2624 output -{1:"1.0",2:"2"} - - --- !query 2625 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 2625 schema -struct<> --- !query 2625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2626 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 2626 schema -struct<> --- !query 2626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2627 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2627 schema -struct<> --- !query 2627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2628 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2628 schema -struct<> --- !query 2628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2629 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 2629 schema -struct> --- !query 2629 output -{1:1.0,2:2.0} - - --- !query 2630 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 2630 schema -struct> --- !query 2630 output -{1:1.0,2:2.0} - - --- !query 2631 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 2631 schema -struct> --- !query 2631 output -{1:1.0,2:2.0} - - --- !query 2632 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 2632 schema -struct> --- !query 2632 output -{1:1.0,2:2.0} - - --- !query 2633 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 2633 schema -struct> --- !query 2633 output -{1:1.0,2:2.0} - - --- !query 2634 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 2634 schema -struct> --- !query 2634 output -{1:1.0,2:2.0} - - --- !query 2635 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 2635 schema -struct> --- !query 2635 output -{1:1.0,2:2.0} - - --- !query 2636 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 2636 schema -struct> --- !query 2636 output -{1:"1.0",2:"2"} - - --- !query 2637 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 2637 schema -struct<> --- !query 2637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2638 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 2638 schema -struct<> --- !query 2638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2639 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2639 schema -struct<> --- !query 2639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2640 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2640 schema -struct<> --- !query 2640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2641 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 2641 schema -struct> --- !query 2641 output -{1.0:1.0,2.0:2.0} - - --- !query 2642 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 2642 schema -struct> --- !query 2642 output -{1.0:1.0,2.0:2.0} - - --- !query 2643 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 2643 schema -struct> --- !query 2643 output -{1.0:1.0,2.0:2.0} - - --- !query 2644 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 2644 schema -struct> --- !query 2644 output -{1.0:1.0,2.0:2.0} - - --- !query 2645 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 2645 schema -struct> --- !query 2645 output -{1.0:1.0,2.0:2.0} - - --- !query 2646 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 2646 schema -struct> --- !query 2646 output -{1.0:1.0,2.0:2.0} - - --- !query 2647 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 2647 schema -struct> --- !query 2647 output -{1.0:1.0,2.0:2.0} - - --- !query 2648 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 2648 schema -struct> --- !query 2648 output -{1.0:"1.0",2.0:"2"} - - --- !query 2649 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 2649 schema -struct<> --- !query 2649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2650 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 2650 schema -struct<> --- !query 2650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2651 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2651 schema -struct<> --- !query 2651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2652 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2652 schema -struct<> --- !query 2652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2653 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 2653 schema -struct> --- !query 2653 output -{1.0:1.0,2.0:2.0} - - --- !query 2654 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 2654 schema -struct> --- !query 2654 output -{1.0:1.0,2.0:2.0} - - --- !query 2655 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 2655 schema -struct> --- !query 2655 output -{1.0:1.0,2.0:2.0} - - --- !query 2656 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 2656 schema -struct> --- !query 2656 output -{1.0:1.0,2.0:2.0} - - --- !query 2657 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 2657 schema -struct> --- !query 2657 output -{1.0:1.0,2.0:2.0} - - --- !query 2658 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 2658 schema -struct> --- !query 2658 output -{1.0:1.0,2.0:2.0} - - --- !query 2659 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 2659 schema -struct> --- !query 2659 output -{1.0:1.0,2.0:2.0} - - --- !query 2660 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 2660 schema -struct> --- !query 2660 output -{1.0:"1.0",2.0:"2"} - - --- !query 2661 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 2661 schema -struct<> --- !query 2661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2662 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 2662 schema -struct<> --- !query 2662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2663 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2663 schema -struct<> --- !query 2663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2664 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2664 schema -struct<> --- !query 2664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2665 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 2665 schema -struct> --- !query 2665 output -{1:1.0,2:2.0} - - --- !query 2666 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 2666 schema -struct> --- !query 2666 output -{1:1.0,2:2.0} - - --- !query 2667 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 2667 schema -struct> --- !query 2667 output -{1:1.0,2:2.0} - - --- !query 2668 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 2668 schema -struct> --- !query 2668 output -{1:1.0,2:2.0} - - --- !query 2669 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 2669 schema -struct> --- !query 2669 output -{1:1.0,2:2.0} - - --- !query 2670 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 2670 schema -struct> --- !query 2670 output -{1:1.0,2:2.0} - - --- !query 2671 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 2671 schema -struct> --- !query 2671 output -{1:1.0,2:2.0} - - --- !query 2672 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 2672 schema -struct> --- !query 2672 output -{1:"1.0",2:"2"} - - --- !query 2673 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 2673 schema -struct<> --- !query 2673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2674 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 2674 schema -struct<> --- !query 2674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2675 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2675 schema -struct<> --- !query 2675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2676 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2676 schema -struct<> --- !query 2676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2677 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 2677 schema -struct> --- !query 2677 output -{"1":1.0,"2":2.0} - - --- !query 2678 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 2678 schema -struct> --- !query 2678 output -{"1":1.0,"2":2.0} - - --- !query 2679 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 2679 schema -struct> --- !query 2679 output -{"1":1.0,"2":2.0} - - --- !query 2680 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 2680 schema -struct> --- !query 2680 output -{"1":1.0,"2":2.0} - - --- !query 2681 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 2681 schema -struct> --- !query 2681 output -{"1":1.0,"2":2.0} - - --- !query 2682 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 2682 schema -struct> --- !query 2682 output -{"1":1.0,"2":2.0} - - --- !query 2683 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 2683 schema -struct> --- !query 2683 output -{"1":1.0,"2":2.0} - - --- !query 2684 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 2684 schema -struct> --- !query 2684 output -{"1":"1.0","2":"2"} - - --- !query 2685 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 2685 schema -struct<> --- !query 2685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 2686 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 2686 schema -struct<> --- !query 2686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 2687 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2687 schema -struct<> --- !query 2687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 2688 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2688 schema -struct<> --- !query 2688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 2689 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 2689 schema -struct<> --- !query 2689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2690 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 2690 schema -struct<> --- !query 2690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2691 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 2691 schema -struct<> --- !query 2691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2692 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 2692 schema -struct<> --- !query 2692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2693 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 2693 schema -struct<> --- !query 2693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2694 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 2694 schema -struct<> --- !query 2694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2695 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 2695 schema -struct<> --- !query 2695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2696 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 2696 schema -struct<> --- !query 2696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2697 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 2697 schema -struct<> --- !query 2697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2698 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 2698 schema -struct<> --- !query 2698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2699 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2699 schema -struct<> --- !query 2699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2700 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2700 schema -struct<> --- !query 2700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2701 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 2701 schema -struct<> --- !query 2701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2702 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 2702 schema -struct<> --- !query 2702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2703 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 2703 schema -struct<> --- !query 2703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2704 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 2704 schema -struct<> --- !query 2704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2705 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 2705 schema -struct<> --- !query 2705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2706 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 2706 schema -struct<> --- !query 2706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2707 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 2707 schema -struct<> --- !query 2707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2708 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 2708 schema -struct<> --- !query 2708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2709 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 2709 schema -struct<> --- !query 2709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2710 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 2710 schema -struct<> --- !query 2710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2711 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2711 schema -struct<> --- !query 2711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2712 -SELECT map(cast(1 as smallint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2712 schema -struct<> --- !query 2712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2713 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 2713 schema -struct<> --- !query 2713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2714 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 2714 schema -struct<> --- !query 2714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2715 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 2715 schema -struct<> --- !query 2715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2716 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 2716 schema -struct<> --- !query 2716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2717 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 2717 schema -struct<> --- !query 2717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2718 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 2718 schema -struct<> --- !query 2718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2719 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 2719 schema -struct<> --- !query 2719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2720 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 2720 schema -struct<> --- !query 2720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2721 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 2721 schema -struct<> --- !query 2721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2722 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 2722 schema -struct<> --- !query 2722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2723 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2723 schema -struct<> --- !query 2723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2724 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2724 schema -struct<> --- !query 2724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2725 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 2725 schema -struct<> --- !query 2725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2726 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 2726 schema -struct<> --- !query 2726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2727 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 2727 schema -struct<> --- !query 2727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2728 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 2728 schema -struct<> --- !query 2728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2729 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 2729 schema -struct<> --- !query 2729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2730 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 2730 schema -struct<> --- !query 2730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2731 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 2731 schema -struct<> --- !query 2731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2732 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 2732 schema -struct<> --- !query 2732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2733 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 2733 schema -struct<> --- !query 2733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2734 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 2734 schema -struct<> --- !query 2734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2735 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2735 schema -struct<> --- !query 2735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2736 -SELECT map(cast(1 as smallint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2736 schema -struct<> --- !query 2736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2737 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 2737 schema -struct> --- !query 2737 output -{1:1,2:2} - - --- !query 2738 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 2738 schema -struct> --- !query 2738 output -{1:1,2:2} - - --- !query 2739 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 2739 schema -struct> --- !query 2739 output -{1:1,2:2} - - --- !query 2740 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 2740 schema -struct> --- !query 2740 output -{1:1,2:2} - - --- !query 2741 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 2741 schema -struct> --- !query 2741 output -{1:1.0,2:2.0} - - --- !query 2742 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 2742 schema -struct> --- !query 2742 output -{1:1.0,2:2.0} - - --- !query 2743 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 2743 schema -struct> --- !query 2743 output -{1:1,2:2} - - --- !query 2744 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 2744 schema -struct> --- !query 2744 output -{1:"1",2:"2"} - - --- !query 2745 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 2745 schema -struct<> --- !query 2745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2746 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 2746 schema -struct<> --- !query 2746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2747 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2747 schema -struct<> --- !query 2747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2748 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2748 schema -struct<> --- !query 2748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2749 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 2749 schema -struct> --- !query 2749 output -{1:1,2:2} - - --- !query 2750 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 2750 schema -struct> --- !query 2750 output -{1:1,2:2} - - --- !query 2751 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 2751 schema -struct> --- !query 2751 output -{1:1,2:2} - - --- !query 2752 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 2752 schema -struct> --- !query 2752 output -{1:1,2:2} - - --- !query 2753 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 2753 schema -struct> --- !query 2753 output -{1:1.0,2:2.0} - - --- !query 2754 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 2754 schema -struct> --- !query 2754 output -{1:1.0,2:2.0} - - --- !query 2755 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 2755 schema -struct> --- !query 2755 output -{1:1,2:2} - - --- !query 2756 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 2756 schema -struct> --- !query 2756 output -{1:"1",2:"2"} - - --- !query 2757 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 2757 schema -struct<> --- !query 2757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2758 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 2758 schema -struct<> --- !query 2758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2759 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2759 schema -struct<> --- !query 2759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2760 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2760 schema -struct<> --- !query 2760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2761 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 2761 schema -struct> --- !query 2761 output -{1:1,2:2} - - --- !query 2762 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 2762 schema -struct> --- !query 2762 output -{1:1,2:2} - - --- !query 2763 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 2763 schema -struct> --- !query 2763 output -{1:1,2:2} - - --- !query 2764 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 2764 schema -struct> --- !query 2764 output -{1:1,2:2} - - --- !query 2765 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 2765 schema -struct> --- !query 2765 output -{1:1.0,2:2.0} - - --- !query 2766 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 2766 schema -struct> --- !query 2766 output -{1:1.0,2:2.0} - - --- !query 2767 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 2767 schema -struct> --- !query 2767 output -{1:1,2:2} - - --- !query 2768 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 2768 schema -struct> --- !query 2768 output -{1:"1",2:"2"} - - --- !query 2769 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 2769 schema -struct<> --- !query 2769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2770 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 2770 schema -struct<> --- !query 2770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2771 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2771 schema -struct<> --- !query 2771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2772 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2772 schema -struct<> --- !query 2772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2773 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 2773 schema -struct> --- !query 2773 output -{1:1,2:2} - - --- !query 2774 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 2774 schema -struct> --- !query 2774 output -{1:1,2:2} - - --- !query 2775 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 2775 schema -struct> --- !query 2775 output -{1:1,2:2} - - --- !query 2776 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 2776 schema -struct> --- !query 2776 output -{1:1,2:2} - - --- !query 2777 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 2777 schema -struct> --- !query 2777 output -{1:1.0,2:2.0} - - --- !query 2778 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 2778 schema -struct> --- !query 2778 output -{1:1.0,2:2.0} - - --- !query 2779 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 2779 schema -struct> --- !query 2779 output -{1:1,2:2} - - --- !query 2780 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 2780 schema -struct> --- !query 2780 output -{1:"1",2:"2"} - - --- !query 2781 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 2781 schema -struct<> --- !query 2781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2782 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 2782 schema -struct<> --- !query 2782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2783 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2783 schema -struct<> --- !query 2783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2784 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2784 schema -struct<> --- !query 2784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2785 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 2785 schema -struct> --- !query 2785 output -{1.0:1,2.0:2} - - --- !query 2786 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 2786 schema -struct> --- !query 2786 output -{1.0:1,2.0:2} - - --- !query 2787 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 2787 schema -struct> --- !query 2787 output -{1.0:1,2.0:2} - - --- !query 2788 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 2788 schema -struct> --- !query 2788 output -{1.0:1,2.0:2} - - --- !query 2789 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 2789 schema -struct> --- !query 2789 output -{1.0:1.0,2.0:2.0} - - --- !query 2790 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 2790 schema -struct> --- !query 2790 output -{1.0:1.0,2.0:2.0} - - --- !query 2791 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 2791 schema -struct> --- !query 2791 output -{1.0:1,2.0:2} - - --- !query 2792 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 2792 schema -struct> --- !query 2792 output -{1.0:"1",2.0:"2"} - - --- !query 2793 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 2793 schema -struct<> --- !query 2793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2794 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 2794 schema -struct<> --- !query 2794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2795 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2795 schema -struct<> --- !query 2795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2796 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2796 schema -struct<> --- !query 2796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2797 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 2797 schema -struct> --- !query 2797 output -{1.0:1,2.0:2} - - --- !query 2798 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 2798 schema -struct> --- !query 2798 output -{1.0:1,2.0:2} - - --- !query 2799 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 2799 schema -struct> --- !query 2799 output -{1.0:1,2.0:2} - - --- !query 2800 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 2800 schema -struct> --- !query 2800 output -{1.0:1,2.0:2} - - --- !query 2801 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 2801 schema -struct> --- !query 2801 output -{1.0:1.0,2.0:2.0} - - --- !query 2802 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 2802 schema -struct> --- !query 2802 output -{1.0:1.0,2.0:2.0} - - --- !query 2803 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 2803 schema -struct> --- !query 2803 output -{1.0:1,2.0:2} - - --- !query 2804 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 2804 schema -struct> --- !query 2804 output -{1.0:"1",2.0:"2"} - - --- !query 2805 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 2805 schema -struct<> --- !query 2805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2806 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 2806 schema -struct<> --- !query 2806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2807 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2807 schema -struct<> --- !query 2807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2808 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2808 schema -struct<> --- !query 2808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2809 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 2809 schema -struct> --- !query 2809 output -{1:1,2:2} - - --- !query 2810 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 2810 schema -struct> --- !query 2810 output -{1:1,2:2} - - --- !query 2811 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 2811 schema -struct> --- !query 2811 output -{1:1,2:2} - - --- !query 2812 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 2812 schema -struct> --- !query 2812 output -{1:1,2:2} - - --- !query 2813 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 2813 schema -struct> --- !query 2813 output -{1:1.0,2:2.0} - - --- !query 2814 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 2814 schema -struct> --- !query 2814 output -{1:1.0,2:2.0} - - --- !query 2815 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 2815 schema -struct> --- !query 2815 output -{1:1,2:2} - - --- !query 2816 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 2816 schema -struct> --- !query 2816 output -{1:"1",2:"2"} - - --- !query 2817 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 2817 schema -struct<> --- !query 2817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2818 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 2818 schema -struct<> --- !query 2818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2819 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2819 schema -struct<> --- !query 2819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2820 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2820 schema -struct<> --- !query 2820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2821 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 2821 schema -struct> --- !query 2821 output -{"1":1,"2":2} - - --- !query 2822 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 2822 schema -struct> --- !query 2822 output -{"1":1,"2":2} - - --- !query 2823 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 2823 schema -struct> --- !query 2823 output -{"1":1,"2":2} - - --- !query 2824 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 2824 schema -struct> --- !query 2824 output -{"1":1,"2":2} - - --- !query 2825 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 2825 schema -struct> --- !query 2825 output -{"1":1.0,"2":2.0} - - --- !query 2826 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 2826 schema -struct> --- !query 2826 output -{"1":1.0,"2":2.0} - - --- !query 2827 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 2827 schema -struct> --- !query 2827 output -{"1":1,"2":2} - - --- !query 2828 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 2828 schema -struct> --- !query 2828 output -{"1":"1","2":"2"} - - --- !query 2829 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 2829 schema -struct<> --- !query 2829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 2830 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 2830 schema -struct<> --- !query 2830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 2831 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2831 schema -struct<> --- !query 2831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 2832 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2832 schema -struct<> --- !query 2832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 2833 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 2833 schema -struct<> --- !query 2833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2834 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 2834 schema -struct<> --- !query 2834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2835 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 2835 schema -struct<> --- !query 2835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2836 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 2836 schema -struct<> --- !query 2836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2837 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 2837 schema -struct<> --- !query 2837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2838 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 2838 schema -struct<> --- !query 2838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2839 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 2839 schema -struct<> --- !query 2839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2840 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 2840 schema -struct<> --- !query 2840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2841 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 2841 schema -struct<> --- !query 2841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2842 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 2842 schema -struct<> --- !query 2842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2843 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2843 schema -struct<> --- !query 2843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2844 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2844 schema -struct<> --- !query 2844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2845 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 2845 schema -struct<> --- !query 2845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2846 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 2846 schema -struct<> --- !query 2846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2847 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 2847 schema -struct<> --- !query 2847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2848 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 2848 schema -struct<> --- !query 2848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2849 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 2849 schema -struct<> --- !query 2849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2850 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 2850 schema -struct<> --- !query 2850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2851 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 2851 schema -struct<> --- !query 2851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2852 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 2852 schema -struct<> --- !query 2852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2853 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 2853 schema -struct<> --- !query 2853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2854 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 2854 schema -struct<> --- !query 2854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2855 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2855 schema -struct<> --- !query 2855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2856 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2856 schema -struct<> --- !query 2856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2857 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 2857 schema -struct<> --- !query 2857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2858 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 2858 schema -struct<> --- !query 2858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2859 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 2859 schema -struct<> --- !query 2859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2860 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 2860 schema -struct<> --- !query 2860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2861 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 2861 schema -struct<> --- !query 2861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2862 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 2862 schema -struct<> --- !query 2862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2863 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 2863 schema -struct<> --- !query 2863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2864 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 2864 schema -struct<> --- !query 2864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2865 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 2865 schema -struct<> --- !query 2865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2866 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 2866 schema -struct<> --- !query 2866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2867 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2867 schema -struct<> --- !query 2867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2868 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2868 schema -struct<> --- !query 2868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 2869 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 2869 schema -struct<> --- !query 2869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2870 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 2870 schema -struct<> --- !query 2870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2871 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 2871 schema -struct<> --- !query 2871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2872 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 2872 schema -struct<> --- !query 2872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2873 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 2873 schema -struct<> --- !query 2873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2874 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 2874 schema -struct<> --- !query 2874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2875 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 2875 schema -struct<> --- !query 2875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2876 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 2876 schema -struct<> --- !query 2876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2877 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 2877 schema -struct<> --- !query 2877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2878 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 2878 schema -struct<> --- !query 2878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2879 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2879 schema -struct<> --- !query 2879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2880 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2880 schema -struct<> --- !query 2880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 2881 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 2881 schema -struct> --- !query 2881 output -{1:"1",2:"2"} - - --- !query 2882 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 2882 schema -struct> --- !query 2882 output -{1:"1",2:"2"} - - --- !query 2883 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 2883 schema -struct> --- !query 2883 output -{1:"1",2:"2"} - - --- !query 2884 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 2884 schema -struct> --- !query 2884 output -{1:"1",2:"2"} - - --- !query 2885 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 2885 schema -struct> --- !query 2885 output -{1:"1",2:"2.0"} - - --- !query 2886 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 2886 schema -struct> --- !query 2886 output -{1:"1",2:"2.0"} - - --- !query 2887 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 2887 schema -struct> --- !query 2887 output -{1:"1",2:"2"} - - --- !query 2888 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 2888 schema -struct> --- !query 2888 output -{1:"1",2:"2"} - - --- !query 2889 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 2889 schema -struct<> --- !query 2889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2890 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 2890 schema -struct<> --- !query 2890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2891 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2891 schema -struct> --- !query 2891 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 2892 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2892 schema -struct> --- !query 2892 output -{1:"1",2:"2017-12-12"} - - --- !query 2893 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 2893 schema -struct> --- !query 2893 output -{1:"1",2:"2"} - - --- !query 2894 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 2894 schema -struct> --- !query 2894 output -{1:"1",2:"2"} - - --- !query 2895 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 2895 schema -struct> --- !query 2895 output -{1:"1",2:"2"} - - --- !query 2896 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 2896 schema -struct> --- !query 2896 output -{1:"1",2:"2"} - - --- !query 2897 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 2897 schema -struct> --- !query 2897 output -{1:"1",2:"2.0"} - - --- !query 2898 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 2898 schema -struct> --- !query 2898 output -{1:"1",2:"2.0"} - - --- !query 2899 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 2899 schema -struct> --- !query 2899 output -{1:"1",2:"2"} - - --- !query 2900 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 2900 schema -struct> --- !query 2900 output -{1:"1",2:"2"} - - --- !query 2901 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 2901 schema -struct<> --- !query 2901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2902 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 2902 schema -struct<> --- !query 2902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2903 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2903 schema -struct> --- !query 2903 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 2904 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2904 schema -struct> --- !query 2904 output -{1:"1",2:"2017-12-12"} - - --- !query 2905 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 2905 schema -struct> --- !query 2905 output -{1:"1",2:"2"} - - --- !query 2906 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 2906 schema -struct> --- !query 2906 output -{1:"1",2:"2"} - - --- !query 2907 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 2907 schema -struct> --- !query 2907 output -{1:"1",2:"2"} - - --- !query 2908 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 2908 schema -struct> --- !query 2908 output -{1:"1",2:"2"} - - --- !query 2909 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 2909 schema -struct> --- !query 2909 output -{1:"1",2:"2.0"} - - --- !query 2910 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 2910 schema -struct> --- !query 2910 output -{1:"1",2:"2.0"} - - --- !query 2911 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 2911 schema -struct> --- !query 2911 output -{1:"1",2:"2"} - - --- !query 2912 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 2912 schema -struct> --- !query 2912 output -{1:"1",2:"2"} - - --- !query 2913 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 2913 schema -struct<> --- !query 2913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2914 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 2914 schema -struct<> --- !query 2914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2915 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2915 schema -struct> --- !query 2915 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 2916 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2916 schema -struct> --- !query 2916 output -{1:"1",2:"2017-12-12"} - - --- !query 2917 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 2917 schema -struct> --- !query 2917 output -{1:"1",2:"2"} - - --- !query 2918 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 2918 schema -struct> --- !query 2918 output -{1:"1",2:"2"} - - --- !query 2919 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 2919 schema -struct> --- !query 2919 output -{1:"1",2:"2"} - - --- !query 2920 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 2920 schema -struct> --- !query 2920 output -{1:"1",2:"2"} - - --- !query 2921 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 2921 schema -struct> --- !query 2921 output -{1:"1",2:"2.0"} - - --- !query 2922 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 2922 schema -struct> --- !query 2922 output -{1:"1",2:"2.0"} - - --- !query 2923 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 2923 schema -struct> --- !query 2923 output -{1:"1",2:"2"} - - --- !query 2924 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 2924 schema -struct> --- !query 2924 output -{1:"1",2:"2"} - - --- !query 2925 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 2925 schema -struct<> --- !query 2925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2926 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 2926 schema -struct<> --- !query 2926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2927 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2927 schema -struct> --- !query 2927 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 2928 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2928 schema -struct> --- !query 2928 output -{1:"1",2:"2017-12-12"} - - --- !query 2929 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 2929 schema -struct> --- !query 2929 output -{1.0:"1",2.0:"2"} - - --- !query 2930 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 2930 schema -struct> --- !query 2930 output -{1.0:"1",2.0:"2"} - - --- !query 2931 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 2931 schema -struct> --- !query 2931 output -{1.0:"1",2.0:"2"} - - --- !query 2932 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 2932 schema -struct> --- !query 2932 output -{1.0:"1",2.0:"2"} - - --- !query 2933 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 2933 schema -struct> --- !query 2933 output -{1.0:"1",2.0:"2.0"} - - --- !query 2934 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 2934 schema -struct> --- !query 2934 output -{1.0:"1",2.0:"2.0"} - - --- !query 2935 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 2935 schema -struct> --- !query 2935 output -{1.0:"1",2.0:"2"} - - --- !query 2936 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 2936 schema -struct> --- !query 2936 output -{1.0:"1",2.0:"2"} - - --- !query 2937 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 2937 schema -struct<> --- !query 2937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2938 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 2938 schema -struct<> --- !query 2938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2939 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2939 schema -struct> --- !query 2939 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 2940 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2940 schema -struct> --- !query 2940 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 2941 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 2941 schema -struct> --- !query 2941 output -{1.0:"1",2.0:"2"} - - --- !query 2942 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 2942 schema -struct> --- !query 2942 output -{1.0:"1",2.0:"2"} - - --- !query 2943 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 2943 schema -struct> --- !query 2943 output -{1.0:"1",2.0:"2"} - - --- !query 2944 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 2944 schema -struct> --- !query 2944 output -{1.0:"1",2.0:"2"} - - --- !query 2945 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 2945 schema -struct> --- !query 2945 output -{1.0:"1",2.0:"2.0"} - - --- !query 2946 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 2946 schema -struct> --- !query 2946 output -{1.0:"1",2.0:"2.0"} - - --- !query 2947 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 2947 schema -struct> --- !query 2947 output -{1.0:"1",2.0:"2"} - - --- !query 2948 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 2948 schema -struct> --- !query 2948 output -{1.0:"1",2.0:"2"} - - --- !query 2949 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 2949 schema -struct<> --- !query 2949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2950 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 2950 schema -struct<> --- !query 2950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2951 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2951 schema -struct> --- !query 2951 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 2952 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2952 schema -struct> --- !query 2952 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 2953 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 2953 schema -struct> --- !query 2953 output -{1:"1",2:"2"} - - --- !query 2954 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 2954 schema -struct> --- !query 2954 output -{1:"1",2:"2"} - - --- !query 2955 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 2955 schema -struct> --- !query 2955 output -{1:"1",2:"2"} - - --- !query 2956 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 2956 schema -struct> --- !query 2956 output -{1:"1",2:"2"} - - --- !query 2957 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 2957 schema -struct> --- !query 2957 output -{1:"1",2:"2.0"} - - --- !query 2958 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 2958 schema -struct> --- !query 2958 output -{1:"1",2:"2.0"} - - --- !query 2959 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 2959 schema -struct> --- !query 2959 output -{1:"1",2:"2"} - - --- !query 2960 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 2960 schema -struct> --- !query 2960 output -{1:"1",2:"2"} - - --- !query 2961 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 2961 schema -struct<> --- !query 2961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2962 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 2962 schema -struct<> --- !query 2962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2963 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2963 schema -struct> --- !query 2963 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 2964 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2964 schema -struct> --- !query 2964 output -{1:"1",2:"2017-12-12"} - - --- !query 2965 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 2965 schema -struct> --- !query 2965 output -{"1":"1","2":"2"} - - --- !query 2966 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 2966 schema -struct> --- !query 2966 output -{"1":"1","2":"2"} - - --- !query 2967 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 2967 schema -struct> --- !query 2967 output -{"1":"1","2":"2"} - - --- !query 2968 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 2968 schema -struct> --- !query 2968 output -{"1":"1","2":"2"} - - --- !query 2969 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 2969 schema -struct> --- !query 2969 output -{"1":"1","2":"2.0"} - - --- !query 2970 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 2970 schema -struct> --- !query 2970 output -{"1":"1","2":"2.0"} - - --- !query 2971 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 2971 schema -struct> --- !query 2971 output -{"1":"1","2":"2"} - - --- !query 2972 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 2972 schema -struct> --- !query 2972 output -{"1":"1","2":"2"} - - --- !query 2973 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 2973 schema -struct<> --- !query 2973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 2974 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 2974 schema -struct<> --- !query 2974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 2975 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2975 schema -struct> --- !query 2975 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 2976 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2976 schema -struct> --- !query 2976 output -{"1":"1","2":"2017-12-12"} - - --- !query 2977 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 2977 schema -struct<> --- !query 2977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2978 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 2978 schema -struct<> --- !query 2978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2979 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 2979 schema -struct<> --- !query 2979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2980 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 2980 schema -struct<> --- !query 2980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2981 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 2981 schema -struct<> --- !query 2981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2982 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 2982 schema -struct<> --- !query 2982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2983 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 2983 schema -struct<> --- !query 2983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2984 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 2984 schema -struct<> --- !query 2984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2985 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 2985 schema -struct<> --- !query 2985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2986 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 2986 schema -struct<> --- !query 2986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2987 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2987 schema -struct<> --- !query 2987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2988 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 2988 schema -struct<> --- !query 2988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 2989 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 2989 schema -struct<> --- !query 2989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2990 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 2990 schema -struct<> --- !query 2990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2991 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 2991 schema -struct<> --- !query 2991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2992 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 2992 schema -struct<> --- !query 2992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2993 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 2993 schema -struct<> --- !query 2993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2994 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 2994 schema -struct<> --- !query 2994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2995 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 2995 schema -struct<> --- !query 2995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2996 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 2996 schema -struct<> --- !query 2996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2997 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 2997 schema -struct<> --- !query 2997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2998 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 2998 schema -struct<> --- !query 2998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 2999 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 2999 schema -struct<> --- !query 2999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3000 -SELECT map(cast(1 as smallint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3000 schema -struct<> --- !query 3000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3001 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 3001 schema -struct<> --- !query 3001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3002 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 3002 schema -struct<> --- !query 3002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3003 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 3003 schema -struct<> --- !query 3003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3004 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 3004 schema -struct<> --- !query 3004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3005 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 3005 schema -struct<> --- !query 3005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3006 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 3006 schema -struct<> --- !query 3006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3007 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 3007 schema -struct<> --- !query 3007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3008 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 3008 schema -struct<> --- !query 3008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3009 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 3009 schema -struct<> --- !query 3009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3010 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 3010 schema -struct<> --- !query 3010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3011 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3011 schema -struct<> --- !query 3011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3012 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3012 schema -struct<> --- !query 3012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3013 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 3013 schema -struct<> --- !query 3013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3014 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 3014 schema -struct<> --- !query 3014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3015 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 3015 schema -struct<> --- !query 3015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3016 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 3016 schema -struct<> --- !query 3016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3017 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 3017 schema -struct<> --- !query 3017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3018 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 3018 schema -struct<> --- !query 3018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3019 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 3019 schema -struct<> --- !query 3019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3020 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 3020 schema -struct<> --- !query 3020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3021 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 3021 schema -struct<> --- !query 3021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3022 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 3022 schema -struct<> --- !query 3022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3023 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3023 schema -struct<> --- !query 3023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3024 -SELECT map(cast(1 as smallint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3024 schema -struct<> --- !query 3024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3025 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 3025 schema -struct<> --- !query 3025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3026 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 3026 schema -struct<> --- !query 3026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3027 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 3027 schema -struct<> --- !query 3027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3028 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 3028 schema -struct<> --- !query 3028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3029 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 3029 schema -struct<> --- !query 3029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3030 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 3030 schema -struct<> --- !query 3030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3031 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 3031 schema -struct<> --- !query 3031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3032 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 3032 schema -struct<> --- !query 3032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3033 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 3033 schema -struct> --- !query 3033 output -{1:[B@745ca58a,2:[B@31f9b20a} - - --- !query 3034 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 3034 schema -struct<> --- !query 3034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3035 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3035 schema -struct<> --- !query 3035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3036 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3036 schema -struct<> --- !query 3036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3037 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 3037 schema -struct<> --- !query 3037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3038 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 3038 schema -struct<> --- !query 3038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3039 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 3039 schema -struct<> --- !query 3039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3040 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 3040 schema -struct<> --- !query 3040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3041 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 3041 schema -struct<> --- !query 3041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3042 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 3042 schema -struct<> --- !query 3042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3043 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 3043 schema -struct<> --- !query 3043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3044 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 3044 schema -struct<> --- !query 3044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3045 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 3045 schema -struct> --- !query 3045 output -{1:[B@5c91046e,2:[B@6d898aec} - - --- !query 3046 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 3046 schema -struct<> --- !query 3046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3047 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3047 schema -struct<> --- !query 3047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3048 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3048 schema -struct<> --- !query 3048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3049 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 3049 schema -struct<> --- !query 3049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3050 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 3050 schema -struct<> --- !query 3050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3051 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 3051 schema -struct<> --- !query 3051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3052 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 3052 schema -struct<> --- !query 3052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3053 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 3053 schema -struct<> --- !query 3053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3054 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 3054 schema -struct<> --- !query 3054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3055 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 3055 schema -struct<> --- !query 3055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3056 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 3056 schema -struct<> --- !query 3056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3057 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 3057 schema -struct> --- !query 3057 output -{1:[B@69852003,2:[B@4104d04b} - - --- !query 3058 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 3058 schema -struct<> --- !query 3058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3059 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3059 schema -struct<> --- !query 3059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3060 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3060 schema -struct<> --- !query 3060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3061 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 3061 schema -struct<> --- !query 3061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3062 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 3062 schema -struct<> --- !query 3062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3063 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 3063 schema -struct<> --- !query 3063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3064 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 3064 schema -struct<> --- !query 3064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3065 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 3065 schema -struct<> --- !query 3065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3066 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 3066 schema -struct<> --- !query 3066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3067 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 3067 schema -struct<> --- !query 3067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3068 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 3068 schema -struct<> --- !query 3068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3069 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 3069 schema -struct> --- !query 3069 output -{1:[B@547f8439,2:[B@53ab03e8} - - --- !query 3070 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 3070 schema -struct<> --- !query 3070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3071 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3071 schema -struct<> --- !query 3071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3072 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3072 schema -struct<> --- !query 3072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3073 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 3073 schema -struct<> --- !query 3073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3074 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 3074 schema -struct<> --- !query 3074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3075 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 3075 schema -struct<> --- !query 3075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3076 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 3076 schema -struct<> --- !query 3076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3077 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 3077 schema -struct<> --- !query 3077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3078 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 3078 schema -struct<> --- !query 3078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3079 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 3079 schema -struct<> --- !query 3079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3080 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 3080 schema -struct<> --- !query 3080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3081 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 3081 schema -struct> --- !query 3081 output -{1.0:[B@5cc4837,2.0:[B@193b0e10} - - --- !query 3082 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 3082 schema -struct<> --- !query 3082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3083 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3083 schema -struct<> --- !query 3083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3084 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3084 schema -struct<> --- !query 3084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3085 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 3085 schema -struct<> --- !query 3085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3086 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 3086 schema -struct<> --- !query 3086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3087 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 3087 schema -struct<> --- !query 3087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3088 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 3088 schema -struct<> --- !query 3088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3089 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 3089 schema -struct<> --- !query 3089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3090 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 3090 schema -struct<> --- !query 3090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3091 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 3091 schema -struct<> --- !query 3091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3092 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 3092 schema -struct<> --- !query 3092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3093 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 3093 schema -struct> --- !query 3093 output -{1.0:[B@6957ee94,2.0:[B@42391835} - - --- !query 3094 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 3094 schema -struct<> --- !query 3094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3095 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3095 schema -struct<> --- !query 3095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3096 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3096 schema -struct<> --- !query 3096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3097 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 3097 schema -struct<> --- !query 3097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3098 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 3098 schema -struct<> --- !query 3098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3099 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 3099 schema -struct<> --- !query 3099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3100 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 3100 schema -struct<> --- !query 3100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3101 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 3101 schema -struct<> --- !query 3101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3102 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 3102 schema -struct<> --- !query 3102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3103 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 3103 schema -struct<> --- !query 3103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3104 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 3104 schema -struct<> --- !query 3104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3105 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 3105 schema -struct> --- !query 3105 output -{1:[B@32b458c5,2:[B@cec7c8c} - - --- !query 3106 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 3106 schema -struct<> --- !query 3106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3107 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3107 schema -struct<> --- !query 3107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3108 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3108 schema -struct<> --- !query 3108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3109 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 3109 schema -struct<> --- !query 3109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 3110 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 3110 schema -struct<> --- !query 3110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 3111 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 3111 schema -struct<> --- !query 3111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 3112 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 3112 schema -struct<> --- !query 3112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 3113 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 3113 schema -struct<> --- !query 3113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 3114 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 3114 schema -struct<> --- !query 3114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 3115 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 3115 schema -struct<> --- !query 3115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 3116 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 3116 schema -struct<> --- !query 3116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 3117 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 3117 schema -struct> --- !query 3117 output -{"1":[B@6bd56574,"2":[B@55fed18} - - --- !query 3118 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 3118 schema -struct<> --- !query 3118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 3119 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3119 schema -struct<> --- !query 3119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 3120 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3120 schema -struct<> --- !query 3120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 3121 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 3121 schema -struct<> --- !query 3121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3122 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 3122 schema -struct<> --- !query 3122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3123 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 3123 schema -struct<> --- !query 3123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3124 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 3124 schema -struct<> --- !query 3124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3125 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 3125 schema -struct<> --- !query 3125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3126 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 3126 schema -struct<> --- !query 3126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3127 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 3127 schema -struct<> --- !query 3127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3128 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 3128 schema -struct<> --- !query 3128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3129 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 3129 schema -struct<> --- !query 3129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3130 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 3130 schema -struct<> --- !query 3130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3131 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3131 schema -struct<> --- !query 3131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3132 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3132 schema -struct<> --- !query 3132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3133 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 3133 schema -struct<> --- !query 3133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3134 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 3134 schema -struct<> --- !query 3134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3135 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 3135 schema -struct<> --- !query 3135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3136 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 3136 schema -struct<> --- !query 3136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3137 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 3137 schema -struct<> --- !query 3137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3138 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 3138 schema -struct<> --- !query 3138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3139 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 3139 schema -struct<> --- !query 3139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3140 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 3140 schema -struct<> --- !query 3140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3141 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 3141 schema -struct<> --- !query 3141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3142 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 3142 schema -struct<> --- !query 3142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3143 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3143 schema -struct<> --- !query 3143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3144 -SELECT map(cast(1 as smallint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3144 schema -struct<> --- !query 3144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3145 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 3145 schema -struct<> --- !query 3145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3146 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 3146 schema -struct<> --- !query 3146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3147 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 3147 schema -struct<> --- !query 3147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3148 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 3148 schema -struct<> --- !query 3148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3149 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 3149 schema -struct<> --- !query 3149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3150 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 3150 schema -struct<> --- !query 3150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3151 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 3151 schema -struct<> --- !query 3151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3152 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 3152 schema -struct<> --- !query 3152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3153 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 3153 schema -struct<> --- !query 3153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3154 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 3154 schema -struct<> --- !query 3154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3155 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3155 schema -struct<> --- !query 3155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3156 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3156 schema -struct<> --- !query 3156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3157 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 3157 schema -struct<> --- !query 3157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3158 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 3158 schema -struct<> --- !query 3158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3159 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 3159 schema -struct<> --- !query 3159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3160 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 3160 schema -struct<> --- !query 3160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3161 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 3161 schema -struct<> --- !query 3161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3162 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 3162 schema -struct<> --- !query 3162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3163 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 3163 schema -struct<> --- !query 3163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3164 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 3164 schema -struct<> --- !query 3164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3165 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 3165 schema -struct<> --- !query 3165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3166 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 3166 schema -struct<> --- !query 3166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3167 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3167 schema -struct<> --- !query 3167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3168 -SELECT map(cast(1 as smallint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3168 schema -struct<> --- !query 3168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3169 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 3169 schema -struct<> --- !query 3169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3170 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 3170 schema -struct<> --- !query 3170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3171 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 3171 schema -struct<> --- !query 3171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3172 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 3172 schema -struct<> --- !query 3172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3173 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 3173 schema -struct<> --- !query 3173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3174 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 3174 schema -struct<> --- !query 3174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3175 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 3175 schema -struct<> --- !query 3175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3176 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 3176 schema -struct<> --- !query 3176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3177 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 3177 schema -struct<> --- !query 3177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3178 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 3178 schema -struct> --- !query 3178 output -{1:true,2:true} - - --- !query 3179 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3179 schema -struct<> --- !query 3179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3180 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3180 schema -struct<> --- !query 3180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3181 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 3181 schema -struct<> --- !query 3181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3182 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 3182 schema -struct<> --- !query 3182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3183 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 3183 schema -struct<> --- !query 3183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3184 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 3184 schema -struct<> --- !query 3184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3185 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 3185 schema -struct<> --- !query 3185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3186 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 3186 schema -struct<> --- !query 3186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3187 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 3187 schema -struct<> --- !query 3187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3188 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 3188 schema -struct<> --- !query 3188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3189 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 3189 schema -struct<> --- !query 3189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3190 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 3190 schema -struct> --- !query 3190 output -{1:true,2:true} - - --- !query 3191 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3191 schema -struct<> --- !query 3191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3192 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3192 schema -struct<> --- !query 3192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3193 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 3193 schema -struct<> --- !query 3193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3194 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 3194 schema -struct<> --- !query 3194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3195 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 3195 schema -struct<> --- !query 3195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3196 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 3196 schema -struct<> --- !query 3196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3197 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 3197 schema -struct<> --- !query 3197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3198 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 3198 schema -struct<> --- !query 3198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3199 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 3199 schema -struct<> --- !query 3199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3200 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 3200 schema -struct<> --- !query 3200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3201 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 3201 schema -struct<> --- !query 3201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3202 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 3202 schema -struct> --- !query 3202 output -{1:true,2:true} - - --- !query 3203 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3203 schema -struct<> --- !query 3203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3204 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3204 schema -struct<> --- !query 3204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3205 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 3205 schema -struct<> --- !query 3205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3206 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 3206 schema -struct<> --- !query 3206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3207 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 3207 schema -struct<> --- !query 3207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3208 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 3208 schema -struct<> --- !query 3208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3209 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 3209 schema -struct<> --- !query 3209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3210 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 3210 schema -struct<> --- !query 3210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3211 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 3211 schema -struct<> --- !query 3211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3212 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 3212 schema -struct<> --- !query 3212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3213 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 3213 schema -struct<> --- !query 3213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3214 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 3214 schema -struct> --- !query 3214 output -{1:true,2:true} - - --- !query 3215 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3215 schema -struct<> --- !query 3215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3216 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3216 schema -struct<> --- !query 3216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3217 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 3217 schema -struct<> --- !query 3217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3218 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 3218 schema -struct<> --- !query 3218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3219 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 3219 schema -struct<> --- !query 3219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3220 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 3220 schema -struct<> --- !query 3220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3221 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 3221 schema -struct<> --- !query 3221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3222 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 3222 schema -struct<> --- !query 3222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3223 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 3223 schema -struct<> --- !query 3223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3224 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 3224 schema -struct<> --- !query 3224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3225 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 3225 schema -struct<> --- !query 3225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3226 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 3226 schema -struct> --- !query 3226 output -{1.0:true,2.0:true} - - --- !query 3227 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3227 schema -struct<> --- !query 3227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3228 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3228 schema -struct<> --- !query 3228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3229 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 3229 schema -struct<> --- !query 3229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3230 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 3230 schema -struct<> --- !query 3230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3231 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 3231 schema -struct<> --- !query 3231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3232 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 3232 schema -struct<> --- !query 3232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3233 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 3233 schema -struct<> --- !query 3233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3234 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 3234 schema -struct<> --- !query 3234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3235 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 3235 schema -struct<> --- !query 3235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3236 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 3236 schema -struct<> --- !query 3236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3237 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 3237 schema -struct<> --- !query 3237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3238 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 3238 schema -struct> --- !query 3238 output -{1.0:true,2.0:true} - - --- !query 3239 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3239 schema -struct<> --- !query 3239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3240 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3240 schema -struct<> --- !query 3240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3241 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 3241 schema -struct<> --- !query 3241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3242 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 3242 schema -struct<> --- !query 3242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3243 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 3243 schema -struct<> --- !query 3243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3244 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 3244 schema -struct<> --- !query 3244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3245 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 3245 schema -struct<> --- !query 3245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3246 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 3246 schema -struct<> --- !query 3246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3247 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 3247 schema -struct<> --- !query 3247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3248 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 3248 schema -struct<> --- !query 3248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3249 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 3249 schema -struct<> --- !query 3249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3250 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 3250 schema -struct> --- !query 3250 output -{1:true,2:true} - - --- !query 3251 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3251 schema -struct<> --- !query 3251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3252 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3252 schema -struct<> --- !query 3252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3253 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 3253 schema -struct<> --- !query 3253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 3254 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 3254 schema -struct<> --- !query 3254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 3255 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 3255 schema -struct<> --- !query 3255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 3256 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 3256 schema -struct<> --- !query 3256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 3257 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 3257 schema -struct<> --- !query 3257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 3258 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 3258 schema -struct<> --- !query 3258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 3259 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 3259 schema -struct<> --- !query 3259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 3260 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 3260 schema -struct<> --- !query 3260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 3261 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 3261 schema -struct<> --- !query 3261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 3262 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 3262 schema -struct> --- !query 3262 output -{"1":true,"2":true} - - --- !query 3263 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3263 schema -struct<> --- !query 3263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 3264 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3264 schema -struct<> --- !query 3264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 3265 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 3265 schema -struct<> --- !query 3265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3266 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 3266 schema -struct<> --- !query 3266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3267 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 3267 schema -struct<> --- !query 3267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3268 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 3268 schema -struct<> --- !query 3268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3269 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 3269 schema -struct<> --- !query 3269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3270 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 3270 schema -struct<> --- !query 3270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3271 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 3271 schema -struct<> --- !query 3271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3272 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 3272 schema -struct<> --- !query 3272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3273 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 3273 schema -struct<> --- !query 3273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3274 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 3274 schema -struct<> --- !query 3274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3275 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3275 schema -struct<> --- !query 3275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3276 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3276 schema -struct<> --- !query 3276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3277 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 3277 schema -struct<> --- !query 3277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3278 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 3278 schema -struct<> --- !query 3278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3279 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 3279 schema -struct<> --- !query 3279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3280 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 3280 schema -struct<> --- !query 3280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3281 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 3281 schema -struct<> --- !query 3281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3282 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 3282 schema -struct<> --- !query 3282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3283 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 3283 schema -struct<> --- !query 3283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3284 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 3284 schema -struct<> --- !query 3284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3285 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 3285 schema -struct<> --- !query 3285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3286 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 3286 schema -struct<> --- !query 3286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3287 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3287 schema -struct<> --- !query 3287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3288 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3288 schema -struct<> --- !query 3288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3289 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 3289 schema -struct<> --- !query 3289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3290 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 3290 schema -struct<> --- !query 3290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3291 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 3291 schema -struct<> --- !query 3291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3292 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 3292 schema -struct<> --- !query 3292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3293 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 3293 schema -struct<> --- !query 3293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3294 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 3294 schema -struct<> --- !query 3294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3295 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 3295 schema -struct<> --- !query 3295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3296 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 3296 schema -struct<> --- !query 3296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3297 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 3297 schema -struct<> --- !query 3297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3298 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 3298 schema -struct<> --- !query 3298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3299 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3299 schema -struct<> --- !query 3299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3300 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3300 schema -struct<> --- !query 3300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3301 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 3301 schema -struct<> --- !query 3301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3302 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 3302 schema -struct<> --- !query 3302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3303 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 3303 schema -struct<> --- !query 3303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3304 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 3304 schema -struct<> --- !query 3304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3305 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 3305 schema -struct<> --- !query 3305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3306 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 3306 schema -struct<> --- !query 3306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3307 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 3307 schema -struct<> --- !query 3307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3308 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 3308 schema -struct<> --- !query 3308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3309 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 3309 schema -struct<> --- !query 3309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3310 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 3310 schema -struct<> --- !query 3310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3311 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3311 schema -struct<> --- !query 3311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3312 -SELECT map(cast(1 as smallint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3312 schema -struct<> --- !query 3312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3313 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 3313 schema -struct<> --- !query 3313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3314 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 3314 schema -struct<> --- !query 3314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3315 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 3315 schema -struct<> --- !query 3315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3316 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 3316 schema -struct<> --- !query 3316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3317 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 3317 schema -struct<> --- !query 3317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3318 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 3318 schema -struct<> --- !query 3318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3319 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 3319 schema -struct<> --- !query 3319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3320 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 3320 schema -struct> --- !query 3320 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 3321 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 3321 schema -struct<> --- !query 3321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3322 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 3322 schema -struct<> --- !query 3322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3323 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3323 schema -struct> --- !query 3323 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3324 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3324 schema -struct> --- !query 3324 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 3325 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 3325 schema -struct<> --- !query 3325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3326 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 3326 schema -struct<> --- !query 3326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3327 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 3327 schema -struct<> --- !query 3327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3328 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 3328 schema -struct<> --- !query 3328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3329 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 3329 schema -struct<> --- !query 3329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3330 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 3330 schema -struct<> --- !query 3330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3331 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 3331 schema -struct<> --- !query 3331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3332 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 3332 schema -struct> --- !query 3332 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 3333 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 3333 schema -struct<> --- !query 3333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3334 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 3334 schema -struct<> --- !query 3334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3335 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3335 schema -struct> --- !query 3335 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3336 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3336 schema -struct> --- !query 3336 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 3337 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 3337 schema -struct<> --- !query 3337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3338 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 3338 schema -struct<> --- !query 3338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3339 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 3339 schema -struct<> --- !query 3339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3340 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 3340 schema -struct<> --- !query 3340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3341 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 3341 schema -struct<> --- !query 3341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3342 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 3342 schema -struct<> --- !query 3342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3343 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 3343 schema -struct<> --- !query 3343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3344 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 3344 schema -struct> --- !query 3344 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 3345 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 3345 schema -struct<> --- !query 3345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3346 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 3346 schema -struct<> --- !query 3346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3347 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3347 schema -struct> --- !query 3347 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3348 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3348 schema -struct> --- !query 3348 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 3349 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 3349 schema -struct<> --- !query 3349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3350 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 3350 schema -struct<> --- !query 3350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3351 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 3351 schema -struct<> --- !query 3351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3352 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 3352 schema -struct<> --- !query 3352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3353 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 3353 schema -struct<> --- !query 3353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3354 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 3354 schema -struct<> --- !query 3354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3355 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 3355 schema -struct<> --- !query 3355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3356 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 3356 schema -struct> --- !query 3356 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 3357 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 3357 schema -struct<> --- !query 3357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3358 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 3358 schema -struct<> --- !query 3358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3359 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3359 schema -struct> --- !query 3359 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3360 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3360 schema -struct> --- !query 3360 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 3361 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 3361 schema -struct<> --- !query 3361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3362 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 3362 schema -struct<> --- !query 3362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3363 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 3363 schema -struct<> --- !query 3363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3364 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 3364 schema -struct<> --- !query 3364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3365 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 3365 schema -struct<> --- !query 3365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3366 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 3366 schema -struct<> --- !query 3366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3367 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 3367 schema -struct<> --- !query 3367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3368 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 3368 schema -struct> --- !query 3368 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 3369 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 3369 schema -struct<> --- !query 3369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3370 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 3370 schema -struct<> --- !query 3370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3371 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3371 schema -struct> --- !query 3371 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 3372 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3372 schema -struct> --- !query 3372 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 3373 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 3373 schema -struct<> --- !query 3373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3374 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 3374 schema -struct<> --- !query 3374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3375 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 3375 schema -struct<> --- !query 3375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3376 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 3376 schema -struct<> --- !query 3376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3377 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 3377 schema -struct<> --- !query 3377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3378 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 3378 schema -struct<> --- !query 3378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3379 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 3379 schema -struct<> --- !query 3379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3380 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 3380 schema -struct> --- !query 3380 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 3381 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 3381 schema -struct<> --- !query 3381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3382 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 3382 schema -struct<> --- !query 3382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3383 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3383 schema -struct> --- !query 3383 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 3384 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3384 schema -struct> --- !query 3384 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 3385 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 3385 schema -struct<> --- !query 3385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3386 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 3386 schema -struct<> --- !query 3386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3387 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 3387 schema -struct<> --- !query 3387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3388 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 3388 schema -struct<> --- !query 3388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3389 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 3389 schema -struct<> --- !query 3389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3390 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 3390 schema -struct<> --- !query 3390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3391 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 3391 schema -struct<> --- !query 3391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3392 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 3392 schema -struct> --- !query 3392 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 3393 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 3393 schema -struct<> --- !query 3393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3394 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 3394 schema -struct<> --- !query 3394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3395 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3395 schema -struct> --- !query 3395 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3396 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3396 schema -struct> --- !query 3396 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 3397 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 3397 schema -struct<> --- !query 3397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 3398 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 3398 schema -struct<> --- !query 3398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 3399 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 3399 schema -struct<> --- !query 3399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 3400 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 3400 schema -struct<> --- !query 3400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 3401 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 3401 schema -struct<> --- !query 3401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 3402 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 3402 schema -struct<> --- !query 3402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 3403 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 3403 schema -struct<> --- !query 3403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 3404 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 3404 schema -struct> --- !query 3404 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 3405 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 3405 schema -struct<> --- !query 3405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 3406 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 3406 schema -struct<> --- !query 3406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 3407 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3407 schema -struct> --- !query 3407 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 3408 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3408 schema -struct> --- !query 3408 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 3409 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 3409 schema -struct<> --- !query 3409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3410 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 3410 schema -struct<> --- !query 3410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3411 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 3411 schema -struct<> --- !query 3411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3412 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 3412 schema -struct<> --- !query 3412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3413 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 3413 schema -struct<> --- !query 3413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3414 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 3414 schema -struct<> --- !query 3414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3415 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 3415 schema -struct<> --- !query 3415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3416 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 3416 schema -struct<> --- !query 3416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3417 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 3417 schema -struct<> --- !query 3417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3418 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 3418 schema -struct<> --- !query 3418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3419 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3419 schema -struct<> --- !query 3419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3420 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3420 schema -struct<> --- !query 3420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3421 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 3421 schema -struct<> --- !query 3421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3422 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 3422 schema -struct<> --- !query 3422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3423 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 3423 schema -struct<> --- !query 3423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3424 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 3424 schema -struct<> --- !query 3424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3425 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 3425 schema -struct<> --- !query 3425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3426 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 3426 schema -struct<> --- !query 3426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3427 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 3427 schema -struct<> --- !query 3427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3428 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 3428 schema -struct<> --- !query 3428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3429 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 3429 schema -struct<> --- !query 3429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3430 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 3430 schema -struct<> --- !query 3430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3431 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3431 schema -struct<> --- !query 3431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3432 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3432 schema -struct<> --- !query 3432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3433 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 3433 schema -struct<> --- !query 3433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3434 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 3434 schema -struct<> --- !query 3434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3435 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 3435 schema -struct<> --- !query 3435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3436 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 3436 schema -struct<> --- !query 3436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3437 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 3437 schema -struct<> --- !query 3437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3438 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 3438 schema -struct<> --- !query 3438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3439 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 3439 schema -struct<> --- !query 3439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3440 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 3440 schema -struct<> --- !query 3440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3441 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 3441 schema -struct<> --- !query 3441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3442 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 3442 schema -struct<> --- !query 3442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3443 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3443 schema -struct<> --- !query 3443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3444 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3444 schema -struct<> --- !query 3444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3445 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 3445 schema -struct<> --- !query 3445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3446 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 3446 schema -struct<> --- !query 3446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3447 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 3447 schema -struct<> --- !query 3447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3448 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 3448 schema -struct<> --- !query 3448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3449 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 3449 schema -struct<> --- !query 3449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3450 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 3450 schema -struct<> --- !query 3450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3451 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 3451 schema -struct<> --- !query 3451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3452 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 3452 schema -struct<> --- !query 3452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3453 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 3453 schema -struct<> --- !query 3453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3454 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 3454 schema -struct<> --- !query 3454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3455 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3455 schema -struct<> --- !query 3455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3456 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3456 schema -struct<> --- !query 3456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3457 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 3457 schema -struct<> --- !query 3457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3458 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 3458 schema -struct<> --- !query 3458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3459 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 3459 schema -struct<> --- !query 3459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3460 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 3460 schema -struct<> --- !query 3460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3461 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 3461 schema -struct<> --- !query 3461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3462 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 3462 schema -struct<> --- !query 3462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3463 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 3463 schema -struct<> --- !query 3463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3464 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 3464 schema -struct> --- !query 3464 output -{1:"2017-12-11",2:"2"} - - --- !query 3465 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 3465 schema -struct<> --- !query 3465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3466 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 3466 schema -struct<> --- !query 3466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3467 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3467 schema -struct> --- !query 3467 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3468 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3468 schema -struct> --- !query 3468 output -{1:2017-12-11,2:2017-12-12} - - --- !query 3469 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 3469 schema -struct<> --- !query 3469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3470 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 3470 schema -struct<> --- !query 3470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3471 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 3471 schema -struct<> --- !query 3471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3472 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 3472 schema -struct<> --- !query 3472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3473 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 3473 schema -struct<> --- !query 3473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3474 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 3474 schema -struct<> --- !query 3474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3475 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 3475 schema -struct<> --- !query 3475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3476 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 3476 schema -struct> --- !query 3476 output -{1:"2017-12-11",2:"2"} - - --- !query 3477 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 3477 schema -struct<> --- !query 3477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3478 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 3478 schema -struct<> --- !query 3478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3479 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3479 schema -struct> --- !query 3479 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3480 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3480 schema -struct> --- !query 3480 output -{1:2017-12-11,2:2017-12-12} - - --- !query 3481 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 3481 schema -struct<> --- !query 3481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3482 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 3482 schema -struct<> --- !query 3482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3483 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 3483 schema -struct<> --- !query 3483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3484 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 3484 schema -struct<> --- !query 3484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3485 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 3485 schema -struct<> --- !query 3485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3486 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 3486 schema -struct<> --- !query 3486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3487 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 3487 schema -struct<> --- !query 3487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3488 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 3488 schema -struct> --- !query 3488 output -{1:"2017-12-11",2:"2"} - - --- !query 3489 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 3489 schema -struct<> --- !query 3489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3490 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 3490 schema -struct<> --- !query 3490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3491 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3491 schema -struct> --- !query 3491 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3492 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3492 schema -struct> --- !query 3492 output -{1:2017-12-11,2:2017-12-12} - - --- !query 3493 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 3493 schema -struct<> --- !query 3493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3494 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 3494 schema -struct<> --- !query 3494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3495 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 3495 schema -struct<> --- !query 3495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3496 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 3496 schema -struct<> --- !query 3496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3497 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 3497 schema -struct<> --- !query 3497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3498 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 3498 schema -struct<> --- !query 3498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3499 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 3499 schema -struct<> --- !query 3499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3500 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 3500 schema -struct> --- !query 3500 output -{1:"2017-12-11",2:"2"} - - --- !query 3501 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 3501 schema -struct<> --- !query 3501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3502 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 3502 schema -struct<> --- !query 3502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3503 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3503 schema -struct> --- !query 3503 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3504 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3504 schema -struct> --- !query 3504 output -{1:2017-12-11,2:2017-12-12} - - --- !query 3505 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 3505 schema -struct<> --- !query 3505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3506 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 3506 schema -struct<> --- !query 3506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3507 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 3507 schema -struct<> --- !query 3507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3508 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 3508 schema -struct<> --- !query 3508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3509 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 3509 schema -struct<> --- !query 3509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3510 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 3510 schema -struct<> --- !query 3510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3511 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 3511 schema -struct<> --- !query 3511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3512 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 3512 schema -struct> --- !query 3512 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 3513 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 3513 schema -struct<> --- !query 3513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3514 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 3514 schema -struct<> --- !query 3514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3515 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3515 schema -struct> --- !query 3515 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 3516 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3516 schema -struct> --- !query 3516 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 3517 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 3517 schema -struct<> --- !query 3517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3518 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 3518 schema -struct<> --- !query 3518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3519 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 3519 schema -struct<> --- !query 3519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3520 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 3520 schema -struct<> --- !query 3520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3521 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 3521 schema -struct<> --- !query 3521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3522 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 3522 schema -struct<> --- !query 3522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3523 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 3523 schema -struct<> --- !query 3523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3524 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 3524 schema -struct> --- !query 3524 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 3525 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 3525 schema -struct<> --- !query 3525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3526 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 3526 schema -struct<> --- !query 3526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3527 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3527 schema -struct> --- !query 3527 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 3528 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3528 schema -struct> --- !query 3528 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 3529 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 3529 schema -struct<> --- !query 3529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3530 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 3530 schema -struct<> --- !query 3530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3531 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 3531 schema -struct<> --- !query 3531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3532 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 3532 schema -struct<> --- !query 3532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3533 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 3533 schema -struct<> --- !query 3533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3534 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 3534 schema -struct<> --- !query 3534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3535 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 3535 schema -struct<> --- !query 3535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3536 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 3536 schema -struct> --- !query 3536 output -{1:"2017-12-11",2:"2"} - - --- !query 3537 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 3537 schema -struct<> --- !query 3537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3538 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 3538 schema -struct<> --- !query 3538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3539 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3539 schema -struct> --- !query 3539 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 3540 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3540 schema -struct> --- !query 3540 output -{1:2017-12-11,2:2017-12-12} - - --- !query 3541 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 3541 schema -struct<> --- !query 3541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 3542 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 3542 schema -struct<> --- !query 3542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 3543 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 3543 schema -struct<> --- !query 3543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 3544 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 3544 schema -struct<> --- !query 3544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 3545 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 3545 schema -struct<> --- !query 3545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 3546 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 3546 schema -struct<> --- !query 3546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 3547 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 3547 schema -struct<> --- !query 3547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 3548 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 3548 schema -struct> --- !query 3548 output -{"1":"2017-12-11","2":"2"} - - --- !query 3549 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 3549 schema -struct<> --- !query 3549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 3550 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 3550 schema -struct<> --- !query 3550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 3551 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3551 schema -struct> --- !query 3551 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 3552 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3552 schema -struct> --- !query 3552 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 3553 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 3553 schema -struct<> --- !query 3553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3554 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 3554 schema -struct<> --- !query 3554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3555 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 3555 schema -struct<> --- !query 3555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3556 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 3556 schema -struct<> --- !query 3556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3557 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 3557 schema -struct<> --- !query 3557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3558 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 3558 schema -struct<> --- !query 3558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3559 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 3559 schema -struct<> --- !query 3559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3560 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 3560 schema -struct<> --- !query 3560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3561 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 3561 schema -struct<> --- !query 3561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3562 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 3562 schema -struct<> --- !query 3562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3563 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3563 schema -struct<> --- !query 3563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3564 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3564 schema -struct<> --- !query 3564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3565 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 3565 schema -struct<> --- !query 3565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3566 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 3566 schema -struct<> --- !query 3566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3567 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 3567 schema -struct<> --- !query 3567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3568 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 3568 schema -struct<> --- !query 3568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3569 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 3569 schema -struct<> --- !query 3569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3570 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 3570 schema -struct<> --- !query 3570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3571 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 3571 schema -struct<> --- !query 3571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3572 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 3572 schema -struct<> --- !query 3572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3573 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 3573 schema -struct<> --- !query 3573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3574 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 3574 schema -struct<> --- !query 3574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3575 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3575 schema -struct<> --- !query 3575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3576 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3576 schema -struct<> --- !query 3576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3577 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 3577 schema -struct<> --- !query 3577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3578 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 3578 schema -struct<> --- !query 3578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3579 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 3579 schema -struct<> --- !query 3579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3580 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 3580 schema -struct<> --- !query 3580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3581 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 3581 schema -struct<> --- !query 3581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3582 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 3582 schema -struct<> --- !query 3582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3583 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 3583 schema -struct<> --- !query 3583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3584 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 3584 schema -struct<> --- !query 3584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3585 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 3585 schema -struct<> --- !query 3585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3586 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 3586 schema -struct<> --- !query 3586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3587 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3587 schema -struct<> --- !query 3587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3588 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3588 schema -struct<> --- !query 3588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3589 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 3589 schema -struct<> --- !query 3589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3590 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 3590 schema -struct<> --- !query 3590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3591 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 3591 schema -struct<> --- !query 3591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3592 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 3592 schema -struct<> --- !query 3592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3593 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 3593 schema -struct<> --- !query 3593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3594 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 3594 schema -struct<> --- !query 3594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3595 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 3595 schema -struct<> --- !query 3595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3596 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 3596 schema -struct<> --- !query 3596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3597 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 3597 schema -struct<> --- !query 3597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3598 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 3598 schema -struct<> --- !query 3598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3599 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3599 schema -struct<> --- !query 3599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3600 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3600 schema -struct<> --- !query 3600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3601 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 3601 schema -struct> --- !query 3601 output -{1:1,2:2} - - --- !query 3602 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 3602 schema -struct> --- !query 3602 output -{1:1,2:2} - - --- !query 3603 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 3603 schema -struct> --- !query 3603 output -{1:1,2:2} - - --- !query 3604 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 3604 schema -struct> --- !query 3604 output -{1:1,2:2} - - --- !query 3605 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 3605 schema -struct> --- !query 3605 output -{1:1.0,2:2.0} - - --- !query 3606 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 3606 schema -struct> --- !query 3606 output -{1:1.0,2:2.0} - - --- !query 3607 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 3607 schema -struct> --- !query 3607 output -{1:1,2:2} - - --- !query 3608 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 3608 schema -struct> --- !query 3608 output -{1:"1",2:"2"} - - --- !query 3609 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 3609 schema -struct<> --- !query 3609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3610 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 3610 schema -struct<> --- !query 3610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3611 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3611 schema -struct<> --- !query 3611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3612 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3612 schema -struct<> --- !query 3612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3613 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 3613 schema -struct> --- !query 3613 output -{1:1,2:2} - - --- !query 3614 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 3614 schema -struct> --- !query 3614 output -{1:1,2:2} - - --- !query 3615 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 3615 schema -struct> --- !query 3615 output -{1:1,2:2} - - --- !query 3616 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 3616 schema -struct> --- !query 3616 output -{1:1,2:2} - - --- !query 3617 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 3617 schema -struct> --- !query 3617 output -{1:1.0,2:2.0} - - --- !query 3618 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 3618 schema -struct> --- !query 3618 output -{1:1.0,2:2.0} - - --- !query 3619 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 3619 schema -struct> --- !query 3619 output -{1:1,2:2} - - --- !query 3620 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 3620 schema -struct> --- !query 3620 output -{1:"1",2:"2"} - - --- !query 3621 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 3621 schema -struct<> --- !query 3621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3622 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 3622 schema -struct<> --- !query 3622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3623 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3623 schema -struct<> --- !query 3623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3624 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3624 schema -struct<> --- !query 3624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3625 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 3625 schema -struct> --- !query 3625 output -{1:1,2:2} - - --- !query 3626 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 3626 schema -struct> --- !query 3626 output -{1:1,2:2} - - --- !query 3627 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 3627 schema -struct> --- !query 3627 output -{1:1,2:2} - - --- !query 3628 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 3628 schema -struct> --- !query 3628 output -{1:1,2:2} - - --- !query 3629 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 3629 schema -struct> --- !query 3629 output -{1:1.0,2:2.0} - - --- !query 3630 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 3630 schema -struct> --- !query 3630 output -{1:1.0,2:2.0} - - --- !query 3631 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 3631 schema -struct> --- !query 3631 output -{1:1,2:2} - - --- !query 3632 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 3632 schema -struct> --- !query 3632 output -{1:"1",2:"2"} - - --- !query 3633 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 3633 schema -struct<> --- !query 3633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3634 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 3634 schema -struct<> --- !query 3634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3635 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3635 schema -struct<> --- !query 3635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3636 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3636 schema -struct<> --- !query 3636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3637 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 3637 schema -struct> --- !query 3637 output -{1:1,2:2} - - --- !query 3638 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 3638 schema -struct> --- !query 3638 output -{1:1,2:2} - - --- !query 3639 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 3639 schema -struct> --- !query 3639 output -{1:1,2:2} - - --- !query 3640 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 3640 schema -struct> --- !query 3640 output -{1:1,2:2} - - --- !query 3641 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 3641 schema -struct> --- !query 3641 output -{1:1.0,2:2.0} - - --- !query 3642 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 3642 schema -struct> --- !query 3642 output -{1:1.0,2:2.0} - - --- !query 3643 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 3643 schema -struct> --- !query 3643 output -{1:1,2:2} - - --- !query 3644 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 3644 schema -struct> --- !query 3644 output -{1:"1",2:"2"} - - --- !query 3645 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 3645 schema -struct<> --- !query 3645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3646 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 3646 schema -struct<> --- !query 3646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3647 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3647 schema -struct<> --- !query 3647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3648 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3648 schema -struct<> --- !query 3648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3649 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 3649 schema -struct> --- !query 3649 output -{1.0:1,2.0:2} - - --- !query 3650 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 3650 schema -struct> --- !query 3650 output -{1.0:1,2.0:2} - - --- !query 3651 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 3651 schema -struct> --- !query 3651 output -{1.0:1,2.0:2} - - --- !query 3652 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 3652 schema -struct> --- !query 3652 output -{1.0:1,2.0:2} - - --- !query 3653 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 3653 schema -struct> --- !query 3653 output -{1.0:1.0,2.0:2.0} - - --- !query 3654 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 3654 schema -struct> --- !query 3654 output -{1.0:1.0,2.0:2.0} - - --- !query 3655 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 3655 schema -struct> --- !query 3655 output -{1.0:1,2.0:2} - - --- !query 3656 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 3656 schema -struct> --- !query 3656 output -{1.0:"1",2.0:"2"} - - --- !query 3657 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 3657 schema -struct<> --- !query 3657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3658 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 3658 schema -struct<> --- !query 3658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3659 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3659 schema -struct<> --- !query 3659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3660 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3660 schema -struct<> --- !query 3660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3661 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 3661 schema -struct> --- !query 3661 output -{1.0:1,2.0:2} - - --- !query 3662 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 3662 schema -struct> --- !query 3662 output -{1.0:1,2.0:2} - - --- !query 3663 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 3663 schema -struct> --- !query 3663 output -{1.0:1,2.0:2} - - --- !query 3664 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 3664 schema -struct> --- !query 3664 output -{1.0:1,2.0:2} - - --- !query 3665 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 3665 schema -struct> --- !query 3665 output -{1.0:1.0,2.0:2.0} - - --- !query 3666 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 3666 schema -struct> --- !query 3666 output -{1.0:1.0,2.0:2.0} - - --- !query 3667 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 3667 schema -struct> --- !query 3667 output -{1.0:1,2.0:2} - - --- !query 3668 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 3668 schema -struct> --- !query 3668 output -{1.0:"1",2.0:"2"} - - --- !query 3669 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 3669 schema -struct<> --- !query 3669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3670 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 3670 schema -struct<> --- !query 3670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3671 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3671 schema -struct<> --- !query 3671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3672 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3672 schema -struct<> --- !query 3672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3673 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 3673 schema -struct> --- !query 3673 output -{1:1,2:2} - - --- !query 3674 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 3674 schema -struct> --- !query 3674 output -{1:1,2:2} - - --- !query 3675 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 3675 schema -struct> --- !query 3675 output -{1:1,2:2} - - --- !query 3676 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 3676 schema -struct> --- !query 3676 output -{1:1,2:2} - - --- !query 3677 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 3677 schema -struct> --- !query 3677 output -{1:1.0,2:2.0} - - --- !query 3678 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 3678 schema -struct> --- !query 3678 output -{1:1.0,2:2.0} - - --- !query 3679 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 3679 schema -struct> --- !query 3679 output -{1:1,2:2} - - --- !query 3680 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 3680 schema -struct> --- !query 3680 output -{1:"1",2:"2"} - - --- !query 3681 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 3681 schema -struct<> --- !query 3681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3682 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 3682 schema -struct<> --- !query 3682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3683 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3683 schema -struct<> --- !query 3683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3684 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3684 schema -struct<> --- !query 3684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3685 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 3685 schema -struct> --- !query 3685 output -{"1":1,"2":2} - - --- !query 3686 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 3686 schema -struct> --- !query 3686 output -{"1":1,"2":2} - - --- !query 3687 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 3687 schema -struct> --- !query 3687 output -{"1":1,"2":2} - - --- !query 3688 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 3688 schema -struct> --- !query 3688 output -{"1":1,"2":2} - - --- !query 3689 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 3689 schema -struct> --- !query 3689 output -{"1":1.0,"2":2.0} - - --- !query 3690 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 3690 schema -struct> --- !query 3690 output -{"1":1.0,"2":2.0} - - --- !query 3691 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 3691 schema -struct> --- !query 3691 output -{"1":1,"2":2} - - --- !query 3692 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 3692 schema -struct> --- !query 3692 output -{"1":"1","2":"2"} - - --- !query 3693 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 3693 schema -struct<> --- !query 3693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 3694 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 3694 schema -struct<> --- !query 3694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 3695 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3695 schema -struct<> --- !query 3695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 3696 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3696 schema -struct<> --- !query 3696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 3697 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 3697 schema -struct<> --- !query 3697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3698 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 3698 schema -struct<> --- !query 3698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3699 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 3699 schema -struct<> --- !query 3699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3700 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 3700 schema -struct<> --- !query 3700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3701 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 3701 schema -struct<> --- !query 3701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3702 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 3702 schema -struct<> --- !query 3702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3703 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 3703 schema -struct<> --- !query 3703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3704 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 3704 schema -struct<> --- !query 3704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3705 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 3705 schema -struct<> --- !query 3705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3706 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 3706 schema -struct<> --- !query 3706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3707 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3707 schema -struct<> --- !query 3707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3708 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3708 schema -struct<> --- !query 3708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3709 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 3709 schema -struct<> --- !query 3709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3710 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 3710 schema -struct<> --- !query 3710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3711 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 3711 schema -struct<> --- !query 3711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3712 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 3712 schema -struct<> --- !query 3712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3713 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 3713 schema -struct<> --- !query 3713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3714 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 3714 schema -struct<> --- !query 3714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3715 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 3715 schema -struct<> --- !query 3715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3716 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 3716 schema -struct<> --- !query 3716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3717 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 3717 schema -struct<> --- !query 3717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3718 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 3718 schema -struct<> --- !query 3718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3719 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3719 schema -struct<> --- !query 3719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3720 -SELECT map(cast(1 as int), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3720 schema -struct<> --- !query 3720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3721 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 3721 schema -struct<> --- !query 3721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3722 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 3722 schema -struct<> --- !query 3722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3723 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 3723 schema -struct<> --- !query 3723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3724 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 3724 schema -struct<> --- !query 3724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3725 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 3725 schema -struct<> --- !query 3725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3726 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 3726 schema -struct<> --- !query 3726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3727 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 3727 schema -struct<> --- !query 3727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3728 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 3728 schema -struct<> --- !query 3728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3729 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 3729 schema -struct<> --- !query 3729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3730 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 3730 schema -struct<> --- !query 3730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3731 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3731 schema -struct<> --- !query 3731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3732 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3732 schema -struct<> --- !query 3732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3733 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 3733 schema -struct<> --- !query 3733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3734 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 3734 schema -struct<> --- !query 3734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3735 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 3735 schema -struct<> --- !query 3735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3736 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 3736 schema -struct<> --- !query 3736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3737 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 3737 schema -struct<> --- !query 3737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3738 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 3738 schema -struct<> --- !query 3738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3739 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 3739 schema -struct<> --- !query 3739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3740 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 3740 schema -struct<> --- !query 3740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3741 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 3741 schema -struct<> --- !query 3741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3742 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 3742 schema -struct<> --- !query 3742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3743 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3743 schema -struct<> --- !query 3743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3744 -SELECT map(cast(1 as int), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3744 schema -struct<> --- !query 3744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3745 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 3745 schema -struct> --- !query 3745 output -{1:1,2:2} - - --- !query 3746 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 3746 schema -struct> --- !query 3746 output -{1:1,2:2} - - --- !query 3747 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 3747 schema -struct> --- !query 3747 output -{1:1,2:2} - - --- !query 3748 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 3748 schema -struct> --- !query 3748 output -{1:1,2:2} - - --- !query 3749 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 3749 schema -struct> --- !query 3749 output -{1:1.0,2:2.0} - - --- !query 3750 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 3750 schema -struct> --- !query 3750 output -{1:1.0,2:2.0} - - --- !query 3751 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 3751 schema -struct> --- !query 3751 output -{1:1,2:2} - - --- !query 3752 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 3752 schema -struct> --- !query 3752 output -{1:"1",2:"2"} - - --- !query 3753 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 3753 schema -struct<> --- !query 3753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3754 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 3754 schema -struct<> --- !query 3754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3755 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3755 schema -struct<> --- !query 3755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3756 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3756 schema -struct<> --- !query 3756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3757 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 3757 schema -struct> --- !query 3757 output -{1:1,2:2} - - --- !query 3758 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 3758 schema -struct> --- !query 3758 output -{1:1,2:2} - - --- !query 3759 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 3759 schema -struct> --- !query 3759 output -{1:1,2:2} - - --- !query 3760 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 3760 schema -struct> --- !query 3760 output -{1:1,2:2} - - --- !query 3761 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 3761 schema -struct> --- !query 3761 output -{1:1.0,2:2.0} - - --- !query 3762 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 3762 schema -struct> --- !query 3762 output -{1:1.0,2:2.0} - - --- !query 3763 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 3763 schema -struct> --- !query 3763 output -{1:1,2:2} - - --- !query 3764 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 3764 schema -struct> --- !query 3764 output -{1:"1",2:"2"} - - --- !query 3765 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 3765 schema -struct<> --- !query 3765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3766 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 3766 schema -struct<> --- !query 3766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3767 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3767 schema -struct<> --- !query 3767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3768 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3768 schema -struct<> --- !query 3768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3769 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 3769 schema -struct> --- !query 3769 output -{1:1,2:2} - - --- !query 3770 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 3770 schema -struct> --- !query 3770 output -{1:1,2:2} - - --- !query 3771 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 3771 schema -struct> --- !query 3771 output -{1:1,2:2} - - --- !query 3772 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 3772 schema -struct> --- !query 3772 output -{1:1,2:2} - - --- !query 3773 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 3773 schema -struct> --- !query 3773 output -{1:1.0,2:2.0} - - --- !query 3774 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 3774 schema -struct> --- !query 3774 output -{1:1.0,2:2.0} - - --- !query 3775 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 3775 schema -struct> --- !query 3775 output -{1:1,2:2} - - --- !query 3776 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 3776 schema -struct> --- !query 3776 output -{1:"1",2:"2"} - - --- !query 3777 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 3777 schema -struct<> --- !query 3777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3778 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 3778 schema -struct<> --- !query 3778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3779 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3779 schema -struct<> --- !query 3779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3780 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3780 schema -struct<> --- !query 3780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3781 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 3781 schema -struct> --- !query 3781 output -{1:1,2:2} - - --- !query 3782 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 3782 schema -struct> --- !query 3782 output -{1:1,2:2} - - --- !query 3783 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 3783 schema -struct> --- !query 3783 output -{1:1,2:2} - - --- !query 3784 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 3784 schema -struct> --- !query 3784 output -{1:1,2:2} - - --- !query 3785 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 3785 schema -struct> --- !query 3785 output -{1:1.0,2:2.0} - - --- !query 3786 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 3786 schema -struct> --- !query 3786 output -{1:1.0,2:2.0} - - --- !query 3787 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 3787 schema -struct> --- !query 3787 output -{1:1,2:2} - - --- !query 3788 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 3788 schema -struct> --- !query 3788 output -{1:"1",2:"2"} - - --- !query 3789 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 3789 schema -struct<> --- !query 3789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3790 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 3790 schema -struct<> --- !query 3790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3791 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3791 schema -struct<> --- !query 3791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3792 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3792 schema -struct<> --- !query 3792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3793 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 3793 schema -struct> --- !query 3793 output -{1.0:1,2.0:2} - - --- !query 3794 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 3794 schema -struct> --- !query 3794 output -{1.0:1,2.0:2} - - --- !query 3795 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 3795 schema -struct> --- !query 3795 output -{1.0:1,2.0:2} - - --- !query 3796 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 3796 schema -struct> --- !query 3796 output -{1.0:1,2.0:2} - - --- !query 3797 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 3797 schema -struct> --- !query 3797 output -{1.0:1.0,2.0:2.0} - - --- !query 3798 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 3798 schema -struct> --- !query 3798 output -{1.0:1.0,2.0:2.0} - - --- !query 3799 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 3799 schema -struct> --- !query 3799 output -{1.0:1,2.0:2} - - --- !query 3800 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 3800 schema -struct> --- !query 3800 output -{1.0:"1",2.0:"2"} - - --- !query 3801 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 3801 schema -struct<> --- !query 3801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3802 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 3802 schema -struct<> --- !query 3802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3803 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3803 schema -struct<> --- !query 3803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3804 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3804 schema -struct<> --- !query 3804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3805 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 3805 schema -struct> --- !query 3805 output -{1.0:1,2.0:2} - - --- !query 3806 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 3806 schema -struct> --- !query 3806 output -{1.0:1,2.0:2} - - --- !query 3807 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 3807 schema -struct> --- !query 3807 output -{1.0:1,2.0:2} - - --- !query 3808 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 3808 schema -struct> --- !query 3808 output -{1.0:1,2.0:2} - - --- !query 3809 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 3809 schema -struct> --- !query 3809 output -{1.0:1.0,2.0:2.0} - - --- !query 3810 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 3810 schema -struct> --- !query 3810 output -{1.0:1.0,2.0:2.0} - - --- !query 3811 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 3811 schema -struct> --- !query 3811 output -{1.0:1,2.0:2} - - --- !query 3812 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 3812 schema -struct> --- !query 3812 output -{1.0:"1",2.0:"2"} - - --- !query 3813 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 3813 schema -struct<> --- !query 3813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3814 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 3814 schema -struct<> --- !query 3814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3815 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3815 schema -struct<> --- !query 3815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3816 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3816 schema -struct<> --- !query 3816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3817 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 3817 schema -struct> --- !query 3817 output -{1:1,2:2} - - --- !query 3818 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 3818 schema -struct> --- !query 3818 output -{1:1,2:2} - - --- !query 3819 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 3819 schema -struct> --- !query 3819 output -{1:1,2:2} - - --- !query 3820 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 3820 schema -struct> --- !query 3820 output -{1:1,2:2} - - --- !query 3821 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 3821 schema -struct> --- !query 3821 output -{1:1.0,2:2.0} - - --- !query 3822 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 3822 schema -struct> --- !query 3822 output -{1:1.0,2:2.0} - - --- !query 3823 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 3823 schema -struct> --- !query 3823 output -{1:1,2:2} - - --- !query 3824 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 3824 schema -struct> --- !query 3824 output -{1:"1",2:"2"} - - --- !query 3825 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 3825 schema -struct<> --- !query 3825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3826 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 3826 schema -struct<> --- !query 3826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3827 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3827 schema -struct<> --- !query 3827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3828 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3828 schema -struct<> --- !query 3828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3829 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 3829 schema -struct> --- !query 3829 output -{"1":1,"2":2} - - --- !query 3830 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 3830 schema -struct> --- !query 3830 output -{"1":1,"2":2} - - --- !query 3831 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 3831 schema -struct> --- !query 3831 output -{"1":1,"2":2} - - --- !query 3832 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 3832 schema -struct> --- !query 3832 output -{"1":1,"2":2} - - --- !query 3833 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 3833 schema -struct> --- !query 3833 output -{"1":1.0,"2":2.0} - - --- !query 3834 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 3834 schema -struct> --- !query 3834 output -{"1":1.0,"2":2.0} - - --- !query 3835 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 3835 schema -struct> --- !query 3835 output -{"1":1,"2":2} - - --- !query 3836 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 3836 schema -struct> --- !query 3836 output -{"1":"1","2":"2"} - - --- !query 3837 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 3837 schema -struct<> --- !query 3837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 3838 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 3838 schema -struct<> --- !query 3838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 3839 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3839 schema -struct<> --- !query 3839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 3840 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3840 schema -struct<> --- !query 3840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 3841 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 3841 schema -struct<> --- !query 3841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3842 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 3842 schema -struct<> --- !query 3842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3843 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 3843 schema -struct<> --- !query 3843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3844 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 3844 schema -struct<> --- !query 3844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3845 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 3845 schema -struct<> --- !query 3845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3846 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 3846 schema -struct<> --- !query 3846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3847 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 3847 schema -struct<> --- !query 3847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3848 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 3848 schema -struct<> --- !query 3848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3849 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 3849 schema -struct<> --- !query 3849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3850 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 3850 schema -struct<> --- !query 3850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3851 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3851 schema -struct<> --- !query 3851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3852 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3852 schema -struct<> --- !query 3852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3853 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 3853 schema -struct<> --- !query 3853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3854 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 3854 schema -struct<> --- !query 3854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3855 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 3855 schema -struct<> --- !query 3855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3856 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 3856 schema -struct<> --- !query 3856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3857 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 3857 schema -struct<> --- !query 3857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3858 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 3858 schema -struct<> --- !query 3858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3859 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 3859 schema -struct<> --- !query 3859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3860 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 3860 schema -struct<> --- !query 3860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3861 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 3861 schema -struct<> --- !query 3861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3862 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 3862 schema -struct<> --- !query 3862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3863 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3863 schema -struct<> --- !query 3863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3864 -SELECT map(cast(1 as int), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3864 schema -struct<> --- !query 3864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3865 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 3865 schema -struct<> --- !query 3865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3866 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 3866 schema -struct<> --- !query 3866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3867 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 3867 schema -struct<> --- !query 3867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3868 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 3868 schema -struct<> --- !query 3868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3869 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 3869 schema -struct<> --- !query 3869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3870 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 3870 schema -struct<> --- !query 3870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3871 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 3871 schema -struct<> --- !query 3871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3872 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 3872 schema -struct<> --- !query 3872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3873 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 3873 schema -struct<> --- !query 3873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3874 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 3874 schema -struct<> --- !query 3874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3875 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3875 schema -struct<> --- !query 3875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3876 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3876 schema -struct<> --- !query 3876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3877 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 3877 schema -struct<> --- !query 3877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3878 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 3878 schema -struct<> --- !query 3878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3879 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 3879 schema -struct<> --- !query 3879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3880 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 3880 schema -struct<> --- !query 3880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3881 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 3881 schema -struct<> --- !query 3881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3882 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 3882 schema -struct<> --- !query 3882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3883 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 3883 schema -struct<> --- !query 3883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3884 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 3884 schema -struct<> --- !query 3884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3885 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 3885 schema -struct<> --- !query 3885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3886 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 3886 schema -struct<> --- !query 3886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3887 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3887 schema -struct<> --- !query 3887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3888 -SELECT map(cast(1 as int), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3888 schema -struct<> --- !query 3888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3889 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 3889 schema -struct> --- !query 3889 output -{1:1,2:2} - - --- !query 3890 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 3890 schema -struct> --- !query 3890 output -{1:1,2:2} - - --- !query 3891 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 3891 schema -struct> --- !query 3891 output -{1:1,2:2} - - --- !query 3892 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 3892 schema -struct> --- !query 3892 output -{1:1,2:2} - - --- !query 3893 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 3893 schema -struct> --- !query 3893 output -{1:1.0,2:2.0} - - --- !query 3894 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 3894 schema -struct> --- !query 3894 output -{1:1.0,2:2.0} - - --- !query 3895 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 3895 schema -struct> --- !query 3895 output -{1:1,2:2} - - --- !query 3896 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 3896 schema -struct> --- !query 3896 output -{1:"1",2:"2"} - - --- !query 3897 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 3897 schema -struct<> --- !query 3897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3898 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 3898 schema -struct<> --- !query 3898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3899 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3899 schema -struct<> --- !query 3899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3900 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3900 schema -struct<> --- !query 3900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3901 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 3901 schema -struct> --- !query 3901 output -{1:1,2:2} - - --- !query 3902 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 3902 schema -struct> --- !query 3902 output -{1:1,2:2} - - --- !query 3903 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 3903 schema -struct> --- !query 3903 output -{1:1,2:2} - - --- !query 3904 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 3904 schema -struct> --- !query 3904 output -{1:1,2:2} - - --- !query 3905 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 3905 schema -struct> --- !query 3905 output -{1:1.0,2:2.0} - - --- !query 3906 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 3906 schema -struct> --- !query 3906 output -{1:1.0,2:2.0} - - --- !query 3907 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 3907 schema -struct> --- !query 3907 output -{1:1,2:2} - - --- !query 3908 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 3908 schema -struct> --- !query 3908 output -{1:"1",2:"2"} - - --- !query 3909 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 3909 schema -struct<> --- !query 3909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3910 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 3910 schema -struct<> --- !query 3910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3911 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3911 schema -struct<> --- !query 3911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3912 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3912 schema -struct<> --- !query 3912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3913 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 3913 schema -struct> --- !query 3913 output -{1:1,2:2} - - --- !query 3914 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 3914 schema -struct> --- !query 3914 output -{1:1,2:2} - - --- !query 3915 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 3915 schema -struct> --- !query 3915 output -{1:1,2:2} - - --- !query 3916 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 3916 schema -struct> --- !query 3916 output -{1:1,2:2} - - --- !query 3917 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 3917 schema -struct> --- !query 3917 output -{1:1.0,2:2.0} - - --- !query 3918 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 3918 schema -struct> --- !query 3918 output -{1:1.0,2:2.0} - - --- !query 3919 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 3919 schema -struct> --- !query 3919 output -{1:1,2:2} - - --- !query 3920 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 3920 schema -struct> --- !query 3920 output -{1:"1",2:"2"} - - --- !query 3921 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 3921 schema -struct<> --- !query 3921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3922 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 3922 schema -struct<> --- !query 3922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3923 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3923 schema -struct<> --- !query 3923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3924 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3924 schema -struct<> --- !query 3924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3925 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 3925 schema -struct> --- !query 3925 output -{1:1,2:2} - - --- !query 3926 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 3926 schema -struct> --- !query 3926 output -{1:1,2:2} - - --- !query 3927 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 3927 schema -struct> --- !query 3927 output -{1:1,2:2} - - --- !query 3928 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 3928 schema -struct> --- !query 3928 output -{1:1,2:2} - - --- !query 3929 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 3929 schema -struct> --- !query 3929 output -{1:1.0,2:2.0} - - --- !query 3930 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 3930 schema -struct> --- !query 3930 output -{1:1.0,2:2.0} - - --- !query 3931 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 3931 schema -struct> --- !query 3931 output -{1:1,2:2} - - --- !query 3932 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 3932 schema -struct> --- !query 3932 output -{1:"1",2:"2"} - - --- !query 3933 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 3933 schema -struct<> --- !query 3933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3934 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 3934 schema -struct<> --- !query 3934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3935 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3935 schema -struct<> --- !query 3935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3936 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3936 schema -struct<> --- !query 3936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3937 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 3937 schema -struct> --- !query 3937 output -{1.0:1,2.0:2} - - --- !query 3938 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 3938 schema -struct> --- !query 3938 output -{1.0:1,2.0:2} - - --- !query 3939 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 3939 schema -struct> --- !query 3939 output -{1.0:1,2.0:2} - - --- !query 3940 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 3940 schema -struct> --- !query 3940 output -{1.0:1,2.0:2} - - --- !query 3941 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 3941 schema -struct> --- !query 3941 output -{1.0:1.0,2.0:2.0} - - --- !query 3942 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 3942 schema -struct> --- !query 3942 output -{1.0:1.0,2.0:2.0} - - --- !query 3943 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 3943 schema -struct> --- !query 3943 output -{1.0:1,2.0:2} - - --- !query 3944 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 3944 schema -struct> --- !query 3944 output -{1.0:"1",2.0:"2"} - - --- !query 3945 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 3945 schema -struct<> --- !query 3945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3946 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 3946 schema -struct<> --- !query 3946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3947 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3947 schema -struct<> --- !query 3947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3948 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3948 schema -struct<> --- !query 3948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3949 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 3949 schema -struct> --- !query 3949 output -{1.0:1,2.0:2} - - --- !query 3950 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 3950 schema -struct> --- !query 3950 output -{1.0:1,2.0:2} - - --- !query 3951 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 3951 schema -struct> --- !query 3951 output -{1.0:1,2.0:2} - - --- !query 3952 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 3952 schema -struct> --- !query 3952 output -{1.0:1,2.0:2} - - --- !query 3953 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 3953 schema -struct> --- !query 3953 output -{1.0:1.0,2.0:2.0} - - --- !query 3954 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 3954 schema -struct> --- !query 3954 output -{1.0:1.0,2.0:2.0} - - --- !query 3955 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 3955 schema -struct> --- !query 3955 output -{1.0:1,2.0:2} - - --- !query 3956 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 3956 schema -struct> --- !query 3956 output -{1.0:"1",2.0:"2"} - - --- !query 3957 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 3957 schema -struct<> --- !query 3957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3958 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 3958 schema -struct<> --- !query 3958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3959 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3959 schema -struct<> --- !query 3959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3960 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3960 schema -struct<> --- !query 3960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3961 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 3961 schema -struct> --- !query 3961 output -{1:1,2:2} - - --- !query 3962 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 3962 schema -struct> --- !query 3962 output -{1:1,2:2} - - --- !query 3963 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 3963 schema -struct> --- !query 3963 output -{1:1,2:2} - - --- !query 3964 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 3964 schema -struct> --- !query 3964 output -{1:1,2:2} - - --- !query 3965 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 3965 schema -struct> --- !query 3965 output -{1:1.0,2:2.0} - - --- !query 3966 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 3966 schema -struct> --- !query 3966 output -{1:1.0,2:2.0} - - --- !query 3967 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 3967 schema -struct> --- !query 3967 output -{1:1,2:2} - - --- !query 3968 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 3968 schema -struct> --- !query 3968 output -{1:"1",2:"2"} - - --- !query 3969 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 3969 schema -struct<> --- !query 3969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3970 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 3970 schema -struct<> --- !query 3970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3971 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3971 schema -struct<> --- !query 3971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3972 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3972 schema -struct<> --- !query 3972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3973 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 3973 schema -struct> --- !query 3973 output -{"1":1,"2":2} - - --- !query 3974 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 3974 schema -struct> --- !query 3974 output -{"1":1,"2":2} - - --- !query 3975 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 3975 schema -struct> --- !query 3975 output -{"1":1,"2":2} - - --- !query 3976 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 3976 schema -struct> --- !query 3976 output -{"1":1,"2":2} - - --- !query 3977 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 3977 schema -struct> --- !query 3977 output -{"1":1.0,"2":2.0} - - --- !query 3978 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 3978 schema -struct> --- !query 3978 output -{"1":1.0,"2":2.0} - - --- !query 3979 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 3979 schema -struct> --- !query 3979 output -{"1":1,"2":2} - - --- !query 3980 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 3980 schema -struct> --- !query 3980 output -{"1":"1","2":"2"} - - --- !query 3981 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 3981 schema -struct<> --- !query 3981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3982 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 3982 schema -struct<> --- !query 3982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3983 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3983 schema -struct<> --- !query 3983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 3984 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3984 schema -struct<> --- !query 3984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 3985 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 3985 schema -struct<> --- !query 3985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3986 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 3986 schema -struct<> --- !query 3986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3987 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 3987 schema -struct<> --- !query 3987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3988 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 3988 schema -struct<> --- !query 3988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3989 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 3989 schema -struct<> --- !query 3989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3990 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 3990 schema -struct<> --- !query 3990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3991 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 3991 schema -struct<> --- !query 3991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3992 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 3992 schema -struct<> --- !query 3992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3993 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 3993 schema -struct<> --- !query 3993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3994 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 3994 schema -struct<> --- !query 3994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3995 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 3995 schema -struct<> --- !query 3995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3996 -SELECT map(cast(1 as int), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 3996 schema -struct<> --- !query 3996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 3997 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 3997 schema -struct<> --- !query 3997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3998 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 3998 schema -struct<> --- !query 3998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 3999 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 3999 schema -struct<> --- !query 3999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4000 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 4000 schema -struct<> --- !query 4000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4001 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 4001 schema -struct<> --- !query 4001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4002 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 4002 schema -struct<> --- !query 4002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4003 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 4003 schema -struct<> --- !query 4003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4004 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 4004 schema -struct<> --- !query 4004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4005 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 4005 schema -struct<> --- !query 4005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4006 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 4006 schema -struct<> --- !query 4006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4007 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4007 schema -struct<> --- !query 4007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4008 -SELECT map(cast(1 as int), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4008 schema -struct<> --- !query 4008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4009 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 4009 schema -struct<> --- !query 4009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4010 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 4010 schema -struct<> --- !query 4010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4011 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 4011 schema -struct<> --- !query 4011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4012 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 4012 schema -struct<> --- !query 4012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4013 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 4013 schema -struct<> --- !query 4013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4014 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 4014 schema -struct<> --- !query 4014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4015 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 4015 schema -struct<> --- !query 4015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4016 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 4016 schema -struct<> --- !query 4016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4017 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 4017 schema -struct<> --- !query 4017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4018 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 4018 schema -struct<> --- !query 4018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4019 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4019 schema -struct<> --- !query 4019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4020 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4020 schema -struct<> --- !query 4020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4021 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 4021 schema -struct<> --- !query 4021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4022 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 4022 schema -struct<> --- !query 4022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4023 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 4023 schema -struct<> --- !query 4023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4024 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 4024 schema -struct<> --- !query 4024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4025 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 4025 schema -struct<> --- !query 4025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4026 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 4026 schema -struct<> --- !query 4026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4027 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 4027 schema -struct<> --- !query 4027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4028 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 4028 schema -struct<> --- !query 4028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4029 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 4029 schema -struct<> --- !query 4029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4030 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 4030 schema -struct<> --- !query 4030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4031 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4031 schema -struct<> --- !query 4031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4032 -SELECT map(cast(1 as int), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4032 schema -struct<> --- !query 4032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4033 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 4033 schema -struct> --- !query 4033 output -{1:1,2:2} - - --- !query 4034 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 4034 schema -struct> --- !query 4034 output -{1:1,2:2} - - --- !query 4035 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 4035 schema -struct> --- !query 4035 output -{1:1,2:2} - - --- !query 4036 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 4036 schema -struct> --- !query 4036 output -{1:1,2:2} - - --- !query 4037 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 4037 schema -struct> --- !query 4037 output -{1:1.0,2:2.0} - - --- !query 4038 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 4038 schema -struct> --- !query 4038 output -{1:1.0,2:2.0} - - --- !query 4039 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 4039 schema -struct> --- !query 4039 output -{1:1,2:2} - - --- !query 4040 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 4040 schema -struct> --- !query 4040 output -{1:"1",2:"2"} - - --- !query 4041 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 4041 schema -struct<> --- !query 4041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4042 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 4042 schema -struct<> --- !query 4042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4043 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4043 schema -struct<> --- !query 4043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4044 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4044 schema -struct<> --- !query 4044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4045 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 4045 schema -struct> --- !query 4045 output -{1:1,2:2} - - --- !query 4046 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 4046 schema -struct> --- !query 4046 output -{1:1,2:2} - - --- !query 4047 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 4047 schema -struct> --- !query 4047 output -{1:1,2:2} - - --- !query 4048 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 4048 schema -struct> --- !query 4048 output -{1:1,2:2} - - --- !query 4049 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 4049 schema -struct> --- !query 4049 output -{1:1.0,2:2.0} - - --- !query 4050 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 4050 schema -struct> --- !query 4050 output -{1:1.0,2:2.0} - - --- !query 4051 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 4051 schema -struct> --- !query 4051 output -{1:1,2:2} - - --- !query 4052 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 4052 schema -struct> --- !query 4052 output -{1:"1",2:"2"} - - --- !query 4053 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 4053 schema -struct<> --- !query 4053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4054 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 4054 schema -struct<> --- !query 4054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4055 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4055 schema -struct<> --- !query 4055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4056 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4056 schema -struct<> --- !query 4056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4057 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 4057 schema -struct> --- !query 4057 output -{1:1,2:2} - - --- !query 4058 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 4058 schema -struct> --- !query 4058 output -{1:1,2:2} - - --- !query 4059 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 4059 schema -struct> --- !query 4059 output -{1:1,2:2} - - --- !query 4060 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 4060 schema -struct> --- !query 4060 output -{1:1,2:2} - - --- !query 4061 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 4061 schema -struct> --- !query 4061 output -{1:1.0,2:2.0} - - --- !query 4062 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 4062 schema -struct> --- !query 4062 output -{1:1.0,2:2.0} - - --- !query 4063 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 4063 schema -struct> --- !query 4063 output -{1:1,2:2} - - --- !query 4064 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 4064 schema -struct> --- !query 4064 output -{1:"1",2:"2"} - - --- !query 4065 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 4065 schema -struct<> --- !query 4065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4066 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 4066 schema -struct<> --- !query 4066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4067 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4067 schema -struct<> --- !query 4067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4068 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4068 schema -struct<> --- !query 4068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4069 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 4069 schema -struct> --- !query 4069 output -{1:1,2:2} - - --- !query 4070 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 4070 schema -struct> --- !query 4070 output -{1:1,2:2} - - --- !query 4071 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 4071 schema -struct> --- !query 4071 output -{1:1,2:2} - - --- !query 4072 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 4072 schema -struct> --- !query 4072 output -{1:1,2:2} - - --- !query 4073 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 4073 schema -struct> --- !query 4073 output -{1:1.0,2:2.0} - - --- !query 4074 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 4074 schema -struct> --- !query 4074 output -{1:1.0,2:2.0} - - --- !query 4075 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 4075 schema -struct> --- !query 4075 output -{1:1,2:2} - - --- !query 4076 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 4076 schema -struct> --- !query 4076 output -{1:"1",2:"2"} - - --- !query 4077 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 4077 schema -struct<> --- !query 4077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4078 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 4078 schema -struct<> --- !query 4078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4079 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4079 schema -struct<> --- !query 4079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4080 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4080 schema -struct<> --- !query 4080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4081 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 4081 schema -struct> --- !query 4081 output -{1.0:1,2.0:2} - - --- !query 4082 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 4082 schema -struct> --- !query 4082 output -{1.0:1,2.0:2} - - --- !query 4083 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 4083 schema -struct> --- !query 4083 output -{1.0:1,2.0:2} - - --- !query 4084 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 4084 schema -struct> --- !query 4084 output -{1.0:1,2.0:2} - - --- !query 4085 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 4085 schema -struct> --- !query 4085 output -{1.0:1.0,2.0:2.0} - - --- !query 4086 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 4086 schema -struct> --- !query 4086 output -{1.0:1.0,2.0:2.0} - - --- !query 4087 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 4087 schema -struct> --- !query 4087 output -{1.0:1,2.0:2} - - --- !query 4088 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 4088 schema -struct> --- !query 4088 output -{1.0:"1",2.0:"2"} - - --- !query 4089 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 4089 schema -struct<> --- !query 4089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4090 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 4090 schema -struct<> --- !query 4090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4091 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4091 schema -struct<> --- !query 4091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4092 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4092 schema -struct<> --- !query 4092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4093 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 4093 schema -struct> --- !query 4093 output -{1.0:1,2.0:2} - - --- !query 4094 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 4094 schema -struct> --- !query 4094 output -{1.0:1,2.0:2} - - --- !query 4095 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 4095 schema -struct> --- !query 4095 output -{1.0:1,2.0:2} - - --- !query 4096 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 4096 schema -struct> --- !query 4096 output -{1.0:1,2.0:2} - - --- !query 4097 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 4097 schema -struct> --- !query 4097 output -{1.0:1.0,2.0:2.0} - - --- !query 4098 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 4098 schema -struct> --- !query 4098 output -{1.0:1.0,2.0:2.0} - - --- !query 4099 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 4099 schema -struct> --- !query 4099 output -{1.0:1,2.0:2} - - --- !query 4100 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 4100 schema -struct> --- !query 4100 output -{1.0:"1",2.0:"2"} - - --- !query 4101 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 4101 schema -struct<> --- !query 4101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4102 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 4102 schema -struct<> --- !query 4102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4103 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4103 schema -struct<> --- !query 4103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4104 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4104 schema -struct<> --- !query 4104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4105 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 4105 schema -struct> --- !query 4105 output -{1:1,2:2} - - --- !query 4106 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 4106 schema -struct> --- !query 4106 output -{1:1,2:2} - - --- !query 4107 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 4107 schema -struct> --- !query 4107 output -{1:1,2:2} - - --- !query 4108 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 4108 schema -struct> --- !query 4108 output -{1:1,2:2} - - --- !query 4109 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 4109 schema -struct> --- !query 4109 output -{1:1.0,2:2.0} - - --- !query 4110 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 4110 schema -struct> --- !query 4110 output -{1:1.0,2:2.0} - - --- !query 4111 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 4111 schema -struct> --- !query 4111 output -{1:1,2:2} - - --- !query 4112 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 4112 schema -struct> --- !query 4112 output -{1:"1",2:"2"} - - --- !query 4113 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 4113 schema -struct<> --- !query 4113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4114 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 4114 schema -struct<> --- !query 4114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4115 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4115 schema -struct<> --- !query 4115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4116 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4116 schema -struct<> --- !query 4116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4117 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 4117 schema -struct> --- !query 4117 output -{"1":1,"2":2} - - --- !query 4118 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 4118 schema -struct> --- !query 4118 output -{"1":1,"2":2} - - --- !query 4119 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 4119 schema -struct> --- !query 4119 output -{"1":1,"2":2} - - --- !query 4120 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 4120 schema -struct> --- !query 4120 output -{"1":1,"2":2} - - --- !query 4121 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 4121 schema -struct> --- !query 4121 output -{"1":1.0,"2":2.0} - - --- !query 4122 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 4122 schema -struct> --- !query 4122 output -{"1":1.0,"2":2.0} - - --- !query 4123 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 4123 schema -struct> --- !query 4123 output -{"1":1,"2":2} - - --- !query 4124 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 4124 schema -struct> --- !query 4124 output -{"1":"1","2":"2"} - - --- !query 4125 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 4125 schema -struct<> --- !query 4125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 4126 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 4126 schema -struct<> --- !query 4126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 4127 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4127 schema -struct<> --- !query 4127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 4128 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4128 schema -struct<> --- !query 4128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 4129 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 4129 schema -struct<> --- !query 4129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4130 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 4130 schema -struct<> --- !query 4130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4131 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 4131 schema -struct<> --- !query 4131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4132 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 4132 schema -struct<> --- !query 4132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4133 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 4133 schema -struct<> --- !query 4133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4134 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 4134 schema -struct<> --- !query 4134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4135 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 4135 schema -struct<> --- !query 4135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4136 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 4136 schema -struct<> --- !query 4136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4137 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 4137 schema -struct<> --- !query 4137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4138 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 4138 schema -struct<> --- !query 4138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4139 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4139 schema -struct<> --- !query 4139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4140 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4140 schema -struct<> --- !query 4140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4141 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 4141 schema -struct<> --- !query 4141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4142 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 4142 schema -struct<> --- !query 4142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4143 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 4143 schema -struct<> --- !query 4143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4144 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 4144 schema -struct<> --- !query 4144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4145 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 4145 schema -struct<> --- !query 4145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4146 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 4146 schema -struct<> --- !query 4146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4147 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 4147 schema -struct<> --- !query 4147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4148 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 4148 schema -struct<> --- !query 4148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4149 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 4149 schema -struct<> --- !query 4149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4150 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 4150 schema -struct<> --- !query 4150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4151 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4151 schema -struct<> --- !query 4151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4152 -SELECT map(cast(1 as int), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4152 schema -struct<> --- !query 4152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4153 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 4153 schema -struct<> --- !query 4153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4154 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 4154 schema -struct<> --- !query 4154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4155 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 4155 schema -struct<> --- !query 4155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4156 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 4156 schema -struct<> --- !query 4156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4157 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 4157 schema -struct<> --- !query 4157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4158 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 4158 schema -struct<> --- !query 4158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4159 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 4159 schema -struct<> --- !query 4159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4160 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 4160 schema -struct<> --- !query 4160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4161 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 4161 schema -struct<> --- !query 4161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4162 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 4162 schema -struct<> --- !query 4162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4163 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4163 schema -struct<> --- !query 4163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4164 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4164 schema -struct<> --- !query 4164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4165 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 4165 schema -struct<> --- !query 4165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4166 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 4166 schema -struct<> --- !query 4166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4167 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 4167 schema -struct<> --- !query 4167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4168 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 4168 schema -struct<> --- !query 4168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4169 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 4169 schema -struct<> --- !query 4169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4170 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 4170 schema -struct<> --- !query 4170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4171 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 4171 schema -struct<> --- !query 4171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4172 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 4172 schema -struct<> --- !query 4172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4173 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 4173 schema -struct<> --- !query 4173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4174 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 4174 schema -struct<> --- !query 4174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4175 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4175 schema -struct<> --- !query 4175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4176 -SELECT map(cast(1 as int), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4176 schema -struct<> --- !query 4176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4177 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 4177 schema -struct> --- !query 4177 output -{1:1.0,2:2.0} - - --- !query 4178 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 4178 schema -struct> --- !query 4178 output -{1:1.0,2:2.0} - - --- !query 4179 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 4179 schema -struct> --- !query 4179 output -{1:1.0,2:2.0} - - --- !query 4180 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 4180 schema -struct> --- !query 4180 output -{1:1.0,2:2.0} - - --- !query 4181 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 4181 schema -struct> --- !query 4181 output -{1:1.0,2:2.0} - - --- !query 4182 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 4182 schema -struct> --- !query 4182 output -{1:1.0,2:2.0} - - --- !query 4183 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 4183 schema -struct> --- !query 4183 output -{1:1.0,2:2.0} - - --- !query 4184 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 4184 schema -struct> --- !query 4184 output -{1:"1.0",2:"2"} - - --- !query 4185 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 4185 schema -struct<> --- !query 4185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4186 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 4186 schema -struct<> --- !query 4186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4187 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4187 schema -struct<> --- !query 4187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4188 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4188 schema -struct<> --- !query 4188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4189 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 4189 schema -struct> --- !query 4189 output -{1:1.0,2:2.0} - - --- !query 4190 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 4190 schema -struct> --- !query 4190 output -{1:1.0,2:2.0} - - --- !query 4191 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 4191 schema -struct> --- !query 4191 output -{1:1.0,2:2.0} - - --- !query 4192 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 4192 schema -struct> --- !query 4192 output -{1:1.0,2:2.0} - - --- !query 4193 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 4193 schema -struct> --- !query 4193 output -{1:1.0,2:2.0} - - --- !query 4194 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 4194 schema -struct> --- !query 4194 output -{1:1.0,2:2.0} - - --- !query 4195 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 4195 schema -struct> --- !query 4195 output -{1:1.0,2:2.0} - - --- !query 4196 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 4196 schema -struct> --- !query 4196 output -{1:"1.0",2:"2"} - - --- !query 4197 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 4197 schema -struct<> --- !query 4197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4198 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 4198 schema -struct<> --- !query 4198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4199 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4199 schema -struct<> --- !query 4199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4200 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4200 schema -struct<> --- !query 4200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4201 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 4201 schema -struct> --- !query 4201 output -{1:1.0,2:2.0} - - --- !query 4202 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 4202 schema -struct> --- !query 4202 output -{1:1.0,2:2.0} - - --- !query 4203 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 4203 schema -struct> --- !query 4203 output -{1:1.0,2:2.0} - - --- !query 4204 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 4204 schema -struct> --- !query 4204 output -{1:1.0,2:2.0} - - --- !query 4205 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 4205 schema -struct> --- !query 4205 output -{1:1.0,2:2.0} - - --- !query 4206 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 4206 schema -struct> --- !query 4206 output -{1:1.0,2:2.0} - - --- !query 4207 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 4207 schema -struct> --- !query 4207 output -{1:1.0,2:2.0} - - --- !query 4208 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 4208 schema -struct> --- !query 4208 output -{1:"1.0",2:"2"} - - --- !query 4209 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 4209 schema -struct<> --- !query 4209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4210 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 4210 schema -struct<> --- !query 4210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4211 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4211 schema -struct<> --- !query 4211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4212 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4212 schema -struct<> --- !query 4212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4213 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 4213 schema -struct> --- !query 4213 output -{1:1.0,2:2.0} - - --- !query 4214 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 4214 schema -struct> --- !query 4214 output -{1:1.0,2:2.0} - - --- !query 4215 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 4215 schema -struct> --- !query 4215 output -{1:1.0,2:2.0} - - --- !query 4216 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 4216 schema -struct> --- !query 4216 output -{1:1.0,2:2.0} - - --- !query 4217 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 4217 schema -struct> --- !query 4217 output -{1:1.0,2:2.0} - - --- !query 4218 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 4218 schema -struct> --- !query 4218 output -{1:1.0,2:2.0} - - --- !query 4219 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 4219 schema -struct> --- !query 4219 output -{1:1.0,2:2.0} - - --- !query 4220 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 4220 schema -struct> --- !query 4220 output -{1:"1.0",2:"2"} - - --- !query 4221 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 4221 schema -struct<> --- !query 4221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4222 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 4222 schema -struct<> --- !query 4222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4223 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4223 schema -struct<> --- !query 4223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4224 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4224 schema -struct<> --- !query 4224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4225 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 4225 schema -struct> --- !query 4225 output -{1.0:1.0,2.0:2.0} - - --- !query 4226 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 4226 schema -struct> --- !query 4226 output -{1.0:1.0,2.0:2.0} - - --- !query 4227 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 4227 schema -struct> --- !query 4227 output -{1.0:1.0,2.0:2.0} - - --- !query 4228 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 4228 schema -struct> --- !query 4228 output -{1.0:1.0,2.0:2.0} - - --- !query 4229 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 4229 schema -struct> --- !query 4229 output -{1.0:1.0,2.0:2.0} - - --- !query 4230 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 4230 schema -struct> --- !query 4230 output -{1.0:1.0,2.0:2.0} - - --- !query 4231 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 4231 schema -struct> --- !query 4231 output -{1.0:1.0,2.0:2.0} - - --- !query 4232 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 4232 schema -struct> --- !query 4232 output -{1.0:"1.0",2.0:"2"} - - --- !query 4233 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 4233 schema -struct<> --- !query 4233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4234 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 4234 schema -struct<> --- !query 4234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4235 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4235 schema -struct<> --- !query 4235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4236 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4236 schema -struct<> --- !query 4236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4237 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 4237 schema -struct> --- !query 4237 output -{1.0:1.0,2.0:2.0} - - --- !query 4238 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 4238 schema -struct> --- !query 4238 output -{1.0:1.0,2.0:2.0} - - --- !query 4239 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 4239 schema -struct> --- !query 4239 output -{1.0:1.0,2.0:2.0} - - --- !query 4240 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 4240 schema -struct> --- !query 4240 output -{1.0:1.0,2.0:2.0} - - --- !query 4241 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 4241 schema -struct> --- !query 4241 output -{1.0:1.0,2.0:2.0} - - --- !query 4242 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 4242 schema -struct> --- !query 4242 output -{1.0:1.0,2.0:2.0} - - --- !query 4243 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 4243 schema -struct> --- !query 4243 output -{1.0:1.0,2.0:2.0} - - --- !query 4244 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 4244 schema -struct> --- !query 4244 output -{1.0:"1.0",2.0:"2"} - - --- !query 4245 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 4245 schema -struct<> --- !query 4245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4246 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 4246 schema -struct<> --- !query 4246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4247 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4247 schema -struct<> --- !query 4247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4248 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4248 schema -struct<> --- !query 4248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4249 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 4249 schema -struct> --- !query 4249 output -{1:1.0,2:2.0} - - --- !query 4250 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 4250 schema -struct> --- !query 4250 output -{1:1.0,2:2.0} - - --- !query 4251 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 4251 schema -struct> --- !query 4251 output -{1:1.0,2:2.0} - - --- !query 4252 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 4252 schema -struct> --- !query 4252 output -{1:1.0,2:2.0} - - --- !query 4253 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 4253 schema -struct> --- !query 4253 output -{1:1.0,2:2.0} - - --- !query 4254 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 4254 schema -struct> --- !query 4254 output -{1:1.0,2:2.0} - - --- !query 4255 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 4255 schema -struct> --- !query 4255 output -{1:1.0,2:2.0} - - --- !query 4256 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 4256 schema -struct> --- !query 4256 output -{1:"1.0",2:"2"} - - --- !query 4257 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 4257 schema -struct<> --- !query 4257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4258 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 4258 schema -struct<> --- !query 4258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4259 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4259 schema -struct<> --- !query 4259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4260 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4260 schema -struct<> --- !query 4260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4261 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 4261 schema -struct> --- !query 4261 output -{"1":1.0,"2":2.0} - - --- !query 4262 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 4262 schema -struct> --- !query 4262 output -{"1":1.0,"2":2.0} - - --- !query 4263 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 4263 schema -struct> --- !query 4263 output -{"1":1.0,"2":2.0} - - --- !query 4264 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 4264 schema -struct> --- !query 4264 output -{"1":1.0,"2":2.0} - - --- !query 4265 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 4265 schema -struct> --- !query 4265 output -{"1":1.0,"2":2.0} - - --- !query 4266 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 4266 schema -struct> --- !query 4266 output -{"1":1.0,"2":2.0} - - --- !query 4267 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 4267 schema -struct> --- !query 4267 output -{"1":1.0,"2":2.0} - - --- !query 4268 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 4268 schema -struct> --- !query 4268 output -{"1":"1.0","2":"2"} - - --- !query 4269 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 4269 schema -struct<> --- !query 4269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 4270 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 4270 schema -struct<> --- !query 4270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 4271 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4271 schema -struct<> --- !query 4271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 4272 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4272 schema -struct<> --- !query 4272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 4273 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 4273 schema -struct<> --- !query 4273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4274 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 4274 schema -struct<> --- !query 4274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4275 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 4275 schema -struct<> --- !query 4275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4276 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 4276 schema -struct<> --- !query 4276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4277 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 4277 schema -struct<> --- !query 4277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4278 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 4278 schema -struct<> --- !query 4278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4279 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 4279 schema -struct<> --- !query 4279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4280 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 4280 schema -struct<> --- !query 4280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4281 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 4281 schema -struct<> --- !query 4281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4282 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 4282 schema -struct<> --- !query 4282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4283 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4283 schema -struct<> --- !query 4283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4284 -SELECT map(cast(1 as int), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4284 schema -struct<> --- !query 4284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4285 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 4285 schema -struct<> --- !query 4285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4286 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 4286 schema -struct<> --- !query 4286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4287 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 4287 schema -struct<> --- !query 4287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4288 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 4288 schema -struct<> --- !query 4288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4289 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 4289 schema -struct<> --- !query 4289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4290 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 4290 schema -struct<> --- !query 4290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4291 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 4291 schema -struct<> --- !query 4291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4292 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 4292 schema -struct<> --- !query 4292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4293 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 4293 schema -struct<> --- !query 4293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4294 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 4294 schema -struct<> --- !query 4294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4295 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4295 schema -struct<> --- !query 4295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4296 -SELECT map(cast(1 as int), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4296 schema -struct<> --- !query 4296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4297 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 4297 schema -struct<> --- !query 4297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4298 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 4298 schema -struct<> --- !query 4298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4299 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 4299 schema -struct<> --- !query 4299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4300 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 4300 schema -struct<> --- !query 4300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4301 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 4301 schema -struct<> --- !query 4301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4302 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 4302 schema -struct<> --- !query 4302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4303 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 4303 schema -struct<> --- !query 4303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4304 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 4304 schema -struct<> --- !query 4304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4305 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 4305 schema -struct<> --- !query 4305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4306 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 4306 schema -struct<> --- !query 4306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4307 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4307 schema -struct<> --- !query 4307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4308 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4308 schema -struct<> --- !query 4308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4309 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 4309 schema -struct<> --- !query 4309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4310 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 4310 schema -struct<> --- !query 4310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4311 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 4311 schema -struct<> --- !query 4311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4312 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 4312 schema -struct<> --- !query 4312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4313 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 4313 schema -struct<> --- !query 4313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4314 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 4314 schema -struct<> --- !query 4314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4315 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 4315 schema -struct<> --- !query 4315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4316 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 4316 schema -struct<> --- !query 4316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4317 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 4317 schema -struct<> --- !query 4317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4318 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 4318 schema -struct<> --- !query 4318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4319 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4319 schema -struct<> --- !query 4319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4320 -SELECT map(cast(1 as int), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4320 schema -struct<> --- !query 4320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4321 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 4321 schema -struct> --- !query 4321 output -{1:1.0,2:2.0} - - --- !query 4322 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 4322 schema -struct> --- !query 4322 output -{1:1.0,2:2.0} - - --- !query 4323 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 4323 schema -struct> --- !query 4323 output -{1:1.0,2:2.0} - - --- !query 4324 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 4324 schema -struct> --- !query 4324 output -{1:1.0,2:2.0} - - --- !query 4325 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 4325 schema -struct> --- !query 4325 output -{1:1.0,2:2.0} - - --- !query 4326 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 4326 schema -struct> --- !query 4326 output -{1:1.0,2:2.0} - - --- !query 4327 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 4327 schema -struct> --- !query 4327 output -{1:1.0,2:2.0} - - --- !query 4328 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 4328 schema -struct> --- !query 4328 output -{1:"1.0",2:"2"} - - --- !query 4329 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 4329 schema -struct<> --- !query 4329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4330 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 4330 schema -struct<> --- !query 4330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4331 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4331 schema -struct<> --- !query 4331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4332 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4332 schema -struct<> --- !query 4332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4333 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 4333 schema -struct> --- !query 4333 output -{1:1.0,2:2.0} - - --- !query 4334 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 4334 schema -struct> --- !query 4334 output -{1:1.0,2:2.0} - - --- !query 4335 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 4335 schema -struct> --- !query 4335 output -{1:1.0,2:2.0} - - --- !query 4336 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 4336 schema -struct> --- !query 4336 output -{1:1.0,2:2.0} - - --- !query 4337 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 4337 schema -struct> --- !query 4337 output -{1:1.0,2:2.0} - - --- !query 4338 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 4338 schema -struct> --- !query 4338 output -{1:1.0,2:2.0} - - --- !query 4339 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 4339 schema -struct> --- !query 4339 output -{1:1.0,2:2.0} - - --- !query 4340 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 4340 schema -struct> --- !query 4340 output -{1:"1.0",2:"2"} - - --- !query 4341 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 4341 schema -struct<> --- !query 4341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4342 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 4342 schema -struct<> --- !query 4342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4343 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4343 schema -struct<> --- !query 4343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4344 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4344 schema -struct<> --- !query 4344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4345 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 4345 schema -struct> --- !query 4345 output -{1:1.0,2:2.0} - - --- !query 4346 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 4346 schema -struct> --- !query 4346 output -{1:1.0,2:2.0} - - --- !query 4347 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 4347 schema -struct> --- !query 4347 output -{1:1.0,2:2.0} - - --- !query 4348 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 4348 schema -struct> --- !query 4348 output -{1:1.0,2:2.0} - - --- !query 4349 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 4349 schema -struct> --- !query 4349 output -{1:1.0,2:2.0} - - --- !query 4350 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 4350 schema -struct> --- !query 4350 output -{1:1.0,2:2.0} - - --- !query 4351 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 4351 schema -struct> --- !query 4351 output -{1:1.0,2:2.0} - - --- !query 4352 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 4352 schema -struct> --- !query 4352 output -{1:"1.0",2:"2"} - - --- !query 4353 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 4353 schema -struct<> --- !query 4353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4354 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 4354 schema -struct<> --- !query 4354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4355 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4355 schema -struct<> --- !query 4355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4356 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4356 schema -struct<> --- !query 4356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4357 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 4357 schema -struct> --- !query 4357 output -{1:1.0,2:2.0} - - --- !query 4358 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 4358 schema -struct> --- !query 4358 output -{1:1.0,2:2.0} - - --- !query 4359 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 4359 schema -struct> --- !query 4359 output -{1:1.0,2:2.0} - - --- !query 4360 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 4360 schema -struct> --- !query 4360 output -{1:1.0,2:2.0} - - --- !query 4361 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 4361 schema -struct> --- !query 4361 output -{1:1.0,2:2.0} - - --- !query 4362 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 4362 schema -struct> --- !query 4362 output -{1:1.0,2:2.0} - - --- !query 4363 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 4363 schema -struct> --- !query 4363 output -{1:1.0,2:2.0} - - --- !query 4364 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 4364 schema -struct> --- !query 4364 output -{1:"1.0",2:"2"} - - --- !query 4365 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 4365 schema -struct<> --- !query 4365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4366 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 4366 schema -struct<> --- !query 4366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4367 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4367 schema -struct<> --- !query 4367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4368 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4368 schema -struct<> --- !query 4368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4369 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 4369 schema -struct> --- !query 4369 output -{1.0:1.0,2.0:2.0} - - --- !query 4370 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 4370 schema -struct> --- !query 4370 output -{1.0:1.0,2.0:2.0} - - --- !query 4371 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 4371 schema -struct> --- !query 4371 output -{1.0:1.0,2.0:2.0} - - --- !query 4372 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 4372 schema -struct> --- !query 4372 output -{1.0:1.0,2.0:2.0} - - --- !query 4373 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 4373 schema -struct> --- !query 4373 output -{1.0:1.0,2.0:2.0} - - --- !query 4374 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 4374 schema -struct> --- !query 4374 output -{1.0:1.0,2.0:2.0} - - --- !query 4375 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 4375 schema -struct> --- !query 4375 output -{1.0:1.0,2.0:2.0} - - --- !query 4376 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 4376 schema -struct> --- !query 4376 output -{1.0:"1.0",2.0:"2"} - - --- !query 4377 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 4377 schema -struct<> --- !query 4377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4378 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 4378 schema -struct<> --- !query 4378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4379 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4379 schema -struct<> --- !query 4379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4380 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4380 schema -struct<> --- !query 4380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4381 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 4381 schema -struct> --- !query 4381 output -{1.0:1.0,2.0:2.0} - - --- !query 4382 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 4382 schema -struct> --- !query 4382 output -{1.0:1.0,2.0:2.0} - - --- !query 4383 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 4383 schema -struct> --- !query 4383 output -{1.0:1.0,2.0:2.0} - - --- !query 4384 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 4384 schema -struct> --- !query 4384 output -{1.0:1.0,2.0:2.0} - - --- !query 4385 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 4385 schema -struct> --- !query 4385 output -{1.0:1.0,2.0:2.0} - - --- !query 4386 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 4386 schema -struct> --- !query 4386 output -{1.0:1.0,2.0:2.0} - - --- !query 4387 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 4387 schema -struct> --- !query 4387 output -{1.0:1.0,2.0:2.0} - - --- !query 4388 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 4388 schema -struct> --- !query 4388 output -{1.0:"1.0",2.0:"2"} - - --- !query 4389 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 4389 schema -struct<> --- !query 4389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4390 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 4390 schema -struct<> --- !query 4390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4391 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4391 schema -struct<> --- !query 4391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4392 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4392 schema -struct<> --- !query 4392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4393 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 4393 schema -struct> --- !query 4393 output -{1:1.0,2:2.0} - - --- !query 4394 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 4394 schema -struct> --- !query 4394 output -{1:1.0,2:2.0} - - --- !query 4395 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 4395 schema -struct> --- !query 4395 output -{1:1.0,2:2.0} - - --- !query 4396 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 4396 schema -struct> --- !query 4396 output -{1:1.0,2:2.0} - - --- !query 4397 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 4397 schema -struct> --- !query 4397 output -{1:1.0,2:2.0} - - --- !query 4398 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 4398 schema -struct> --- !query 4398 output -{1:1.0,2:2.0} - - --- !query 4399 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 4399 schema -struct> --- !query 4399 output -{1:1.0,2:2.0} - - --- !query 4400 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 4400 schema -struct> --- !query 4400 output -{1:"1.0",2:"2"} - - --- !query 4401 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 4401 schema -struct<> --- !query 4401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4402 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 4402 schema -struct<> --- !query 4402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4403 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4403 schema -struct<> --- !query 4403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4404 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4404 schema -struct<> --- !query 4404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4405 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 4405 schema -struct> --- !query 4405 output -{"1":1.0,"2":2.0} - - --- !query 4406 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 4406 schema -struct> --- !query 4406 output -{"1":1.0,"2":2.0} - - --- !query 4407 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 4407 schema -struct> --- !query 4407 output -{"1":1.0,"2":2.0} - - --- !query 4408 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 4408 schema -struct> --- !query 4408 output -{"1":1.0,"2":2.0} - - --- !query 4409 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 4409 schema -struct> --- !query 4409 output -{"1":1.0,"2":2.0} - - --- !query 4410 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 4410 schema -struct> --- !query 4410 output -{"1":1.0,"2":2.0} - - --- !query 4411 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 4411 schema -struct> --- !query 4411 output -{"1":1.0,"2":2.0} - - --- !query 4412 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 4412 schema -struct> --- !query 4412 output -{"1":"1.0","2":"2"} - - --- !query 4413 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 4413 schema -struct<> --- !query 4413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 4414 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 4414 schema -struct<> --- !query 4414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 4415 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4415 schema -struct<> --- !query 4415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 4416 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4416 schema -struct<> --- !query 4416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 4417 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 4417 schema -struct<> --- !query 4417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4418 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 4418 schema -struct<> --- !query 4418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4419 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 4419 schema -struct<> --- !query 4419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4420 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 4420 schema -struct<> --- !query 4420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4421 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 4421 schema -struct<> --- !query 4421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4422 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 4422 schema -struct<> --- !query 4422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4423 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 4423 schema -struct<> --- !query 4423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4424 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 4424 schema -struct<> --- !query 4424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4425 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 4425 schema -struct<> --- !query 4425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4426 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 4426 schema -struct<> --- !query 4426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4427 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4427 schema -struct<> --- !query 4427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4428 -SELECT map(cast(1 as int), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4428 schema -struct<> --- !query 4428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4429 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 4429 schema -struct<> --- !query 4429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4430 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 4430 schema -struct<> --- !query 4430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4431 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 4431 schema -struct<> --- !query 4431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4432 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 4432 schema -struct<> --- !query 4432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4433 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 4433 schema -struct<> --- !query 4433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4434 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 4434 schema -struct<> --- !query 4434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4435 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 4435 schema -struct<> --- !query 4435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4436 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 4436 schema -struct<> --- !query 4436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4437 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 4437 schema -struct<> --- !query 4437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4438 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 4438 schema -struct<> --- !query 4438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4439 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4439 schema -struct<> --- !query 4439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4440 -SELECT map(cast(1 as int), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4440 schema -struct<> --- !query 4440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4441 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 4441 schema -struct<> --- !query 4441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4442 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 4442 schema -struct<> --- !query 4442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4443 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 4443 schema -struct<> --- !query 4443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4444 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 4444 schema -struct<> --- !query 4444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4445 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 4445 schema -struct<> --- !query 4445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4446 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 4446 schema -struct<> --- !query 4446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4447 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 4447 schema -struct<> --- !query 4447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4448 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 4448 schema -struct<> --- !query 4448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4449 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 4449 schema -struct<> --- !query 4449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4450 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 4450 schema -struct<> --- !query 4450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4451 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4451 schema -struct<> --- !query 4451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4452 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4452 schema -struct<> --- !query 4452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4453 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 4453 schema -struct<> --- !query 4453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4454 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 4454 schema -struct<> --- !query 4454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4455 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 4455 schema -struct<> --- !query 4455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4456 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 4456 schema -struct<> --- !query 4456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4457 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 4457 schema -struct<> --- !query 4457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4458 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 4458 schema -struct<> --- !query 4458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4459 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 4459 schema -struct<> --- !query 4459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4460 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 4460 schema -struct<> --- !query 4460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4461 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 4461 schema -struct<> --- !query 4461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4462 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 4462 schema -struct<> --- !query 4462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4463 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4463 schema -struct<> --- !query 4463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4464 -SELECT map(cast(1 as int), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4464 schema -struct<> --- !query 4464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4465 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 4465 schema -struct> --- !query 4465 output -{1:1,2:2} - - --- !query 4466 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 4466 schema -struct> --- !query 4466 output -{1:1,2:2} - - --- !query 4467 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 4467 schema -struct> --- !query 4467 output -{1:1,2:2} - - --- !query 4468 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 4468 schema -struct> --- !query 4468 output -{1:1,2:2} - - --- !query 4469 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 4469 schema -struct> --- !query 4469 output -{1:1.0,2:2.0} - - --- !query 4470 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 4470 schema -struct> --- !query 4470 output -{1:1.0,2:2.0} - - --- !query 4471 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 4471 schema -struct> --- !query 4471 output -{1:1,2:2} - - --- !query 4472 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 4472 schema -struct> --- !query 4472 output -{1:"1",2:"2"} - - --- !query 4473 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 4473 schema -struct<> --- !query 4473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4474 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 4474 schema -struct<> --- !query 4474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4475 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4475 schema -struct<> --- !query 4475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4476 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4476 schema -struct<> --- !query 4476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4477 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 4477 schema -struct> --- !query 4477 output -{1:1,2:2} - - --- !query 4478 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 4478 schema -struct> --- !query 4478 output -{1:1,2:2} - - --- !query 4479 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 4479 schema -struct> --- !query 4479 output -{1:1,2:2} - - --- !query 4480 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 4480 schema -struct> --- !query 4480 output -{1:1,2:2} - - --- !query 4481 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 4481 schema -struct> --- !query 4481 output -{1:1.0,2:2.0} - - --- !query 4482 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 4482 schema -struct> --- !query 4482 output -{1:1.0,2:2.0} - - --- !query 4483 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 4483 schema -struct> --- !query 4483 output -{1:1,2:2} - - --- !query 4484 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 4484 schema -struct> --- !query 4484 output -{1:"1",2:"2"} - - --- !query 4485 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 4485 schema -struct<> --- !query 4485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4486 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 4486 schema -struct<> --- !query 4486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4487 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4487 schema -struct<> --- !query 4487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4488 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4488 schema -struct<> --- !query 4488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4489 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 4489 schema -struct> --- !query 4489 output -{1:1,2:2} - - --- !query 4490 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 4490 schema -struct> --- !query 4490 output -{1:1,2:2} - - --- !query 4491 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 4491 schema -struct> --- !query 4491 output -{1:1,2:2} - - --- !query 4492 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 4492 schema -struct> --- !query 4492 output -{1:1,2:2} - - --- !query 4493 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 4493 schema -struct> --- !query 4493 output -{1:1.0,2:2.0} - - --- !query 4494 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 4494 schema -struct> --- !query 4494 output -{1:1.0,2:2.0} - - --- !query 4495 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 4495 schema -struct> --- !query 4495 output -{1:1,2:2} - - --- !query 4496 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 4496 schema -struct> --- !query 4496 output -{1:"1",2:"2"} - - --- !query 4497 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 4497 schema -struct<> --- !query 4497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4498 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 4498 schema -struct<> --- !query 4498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4499 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4499 schema -struct<> --- !query 4499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4500 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4500 schema -struct<> --- !query 4500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4501 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 4501 schema -struct> --- !query 4501 output -{1:1,2:2} - - --- !query 4502 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 4502 schema -struct> --- !query 4502 output -{1:1,2:2} - - --- !query 4503 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 4503 schema -struct> --- !query 4503 output -{1:1,2:2} - - --- !query 4504 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 4504 schema -struct> --- !query 4504 output -{1:1,2:2} - - --- !query 4505 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 4505 schema -struct> --- !query 4505 output -{1:1.0,2:2.0} - - --- !query 4506 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 4506 schema -struct> --- !query 4506 output -{1:1.0,2:2.0} - - --- !query 4507 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 4507 schema -struct> --- !query 4507 output -{1:1,2:2} - - --- !query 4508 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 4508 schema -struct> --- !query 4508 output -{1:"1",2:"2"} - - --- !query 4509 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 4509 schema -struct<> --- !query 4509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4510 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 4510 schema -struct<> --- !query 4510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4511 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4511 schema -struct<> --- !query 4511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4512 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4512 schema -struct<> --- !query 4512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4513 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 4513 schema -struct> --- !query 4513 output -{1.0:1,2.0:2} - - --- !query 4514 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 4514 schema -struct> --- !query 4514 output -{1.0:1,2.0:2} - - --- !query 4515 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 4515 schema -struct> --- !query 4515 output -{1.0:1,2.0:2} - - --- !query 4516 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 4516 schema -struct> --- !query 4516 output -{1.0:1,2.0:2} - - --- !query 4517 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 4517 schema -struct> --- !query 4517 output -{1.0:1.0,2.0:2.0} - - --- !query 4518 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 4518 schema -struct> --- !query 4518 output -{1.0:1.0,2.0:2.0} - - --- !query 4519 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 4519 schema -struct> --- !query 4519 output -{1.0:1,2.0:2} - - --- !query 4520 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 4520 schema -struct> --- !query 4520 output -{1.0:"1",2.0:"2"} - - --- !query 4521 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 4521 schema -struct<> --- !query 4521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4522 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 4522 schema -struct<> --- !query 4522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4523 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4523 schema -struct<> --- !query 4523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4524 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4524 schema -struct<> --- !query 4524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4525 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 4525 schema -struct> --- !query 4525 output -{1.0:1,2.0:2} - - --- !query 4526 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 4526 schema -struct> --- !query 4526 output -{1.0:1,2.0:2} - - --- !query 4527 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 4527 schema -struct> --- !query 4527 output -{1.0:1,2.0:2} - - --- !query 4528 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 4528 schema -struct> --- !query 4528 output -{1.0:1,2.0:2} - - --- !query 4529 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 4529 schema -struct> --- !query 4529 output -{1.0:1.0,2.0:2.0} - - --- !query 4530 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 4530 schema -struct> --- !query 4530 output -{1.0:1.0,2.0:2.0} - - --- !query 4531 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 4531 schema -struct> --- !query 4531 output -{1.0:1,2.0:2} - - --- !query 4532 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 4532 schema -struct> --- !query 4532 output -{1.0:"1",2.0:"2"} - - --- !query 4533 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 4533 schema -struct<> --- !query 4533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4534 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 4534 schema -struct<> --- !query 4534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4535 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4535 schema -struct<> --- !query 4535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4536 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4536 schema -struct<> --- !query 4536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4537 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 4537 schema -struct> --- !query 4537 output -{1:1,2:2} - - --- !query 4538 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 4538 schema -struct> --- !query 4538 output -{1:1,2:2} - - --- !query 4539 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 4539 schema -struct> --- !query 4539 output -{1:1,2:2} - - --- !query 4540 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 4540 schema -struct> --- !query 4540 output -{1:1,2:2} - - --- !query 4541 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 4541 schema -struct> --- !query 4541 output -{1:1.0,2:2.0} - - --- !query 4542 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 4542 schema -struct> --- !query 4542 output -{1:1.0,2:2.0} - - --- !query 4543 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 4543 schema -struct> --- !query 4543 output -{1:1,2:2} - - --- !query 4544 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 4544 schema -struct> --- !query 4544 output -{1:"1",2:"2"} - - --- !query 4545 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 4545 schema -struct<> --- !query 4545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4546 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 4546 schema -struct<> --- !query 4546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4547 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4547 schema -struct<> --- !query 4547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4548 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4548 schema -struct<> --- !query 4548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4549 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 4549 schema -struct> --- !query 4549 output -{"1":1,"2":2} - - --- !query 4550 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 4550 schema -struct> --- !query 4550 output -{"1":1,"2":2} - - --- !query 4551 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 4551 schema -struct> --- !query 4551 output -{"1":1,"2":2} - - --- !query 4552 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 4552 schema -struct> --- !query 4552 output -{"1":1,"2":2} - - --- !query 4553 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 4553 schema -struct> --- !query 4553 output -{"1":1.0,"2":2.0} - - --- !query 4554 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 4554 schema -struct> --- !query 4554 output -{"1":1.0,"2":2.0} - - --- !query 4555 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 4555 schema -struct> --- !query 4555 output -{"1":1,"2":2} - - --- !query 4556 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 4556 schema -struct> --- !query 4556 output -{"1":"1","2":"2"} - - --- !query 4557 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 4557 schema -struct<> --- !query 4557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 4558 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 4558 schema -struct<> --- !query 4558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 4559 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4559 schema -struct<> --- !query 4559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 4560 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4560 schema -struct<> --- !query 4560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 4561 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 4561 schema -struct<> --- !query 4561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4562 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 4562 schema -struct<> --- !query 4562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4563 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 4563 schema -struct<> --- !query 4563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4564 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 4564 schema -struct<> --- !query 4564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4565 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 4565 schema -struct<> --- !query 4565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4566 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 4566 schema -struct<> --- !query 4566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4567 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 4567 schema -struct<> --- !query 4567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4568 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 4568 schema -struct<> --- !query 4568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4569 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 4569 schema -struct<> --- !query 4569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4570 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 4570 schema -struct<> --- !query 4570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4571 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4571 schema -struct<> --- !query 4571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4572 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4572 schema -struct<> --- !query 4572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4573 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 4573 schema -struct<> --- !query 4573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4574 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 4574 schema -struct<> --- !query 4574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4575 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 4575 schema -struct<> --- !query 4575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4576 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 4576 schema -struct<> --- !query 4576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4577 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 4577 schema -struct<> --- !query 4577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4578 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 4578 schema -struct<> --- !query 4578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4579 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 4579 schema -struct<> --- !query 4579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4580 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 4580 schema -struct<> --- !query 4580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4581 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 4581 schema -struct<> --- !query 4581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4582 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 4582 schema -struct<> --- !query 4582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4583 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4583 schema -struct<> --- !query 4583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4584 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4584 schema -struct<> --- !query 4584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4585 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 4585 schema -struct<> --- !query 4585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4586 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 4586 schema -struct<> --- !query 4586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4587 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 4587 schema -struct<> --- !query 4587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4588 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 4588 schema -struct<> --- !query 4588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4589 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 4589 schema -struct<> --- !query 4589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4590 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 4590 schema -struct<> --- !query 4590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4591 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 4591 schema -struct<> --- !query 4591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4592 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 4592 schema -struct<> --- !query 4592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4593 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 4593 schema -struct<> --- !query 4593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4594 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 4594 schema -struct<> --- !query 4594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4595 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4595 schema -struct<> --- !query 4595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4596 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4596 schema -struct<> --- !query 4596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4597 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 4597 schema -struct<> --- !query 4597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4598 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 4598 schema -struct<> --- !query 4598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4599 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 4599 schema -struct<> --- !query 4599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4600 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 4600 schema -struct<> --- !query 4600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4601 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 4601 schema -struct<> --- !query 4601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4602 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 4602 schema -struct<> --- !query 4602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4603 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 4603 schema -struct<> --- !query 4603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4604 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 4604 schema -struct<> --- !query 4604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4605 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 4605 schema -struct<> --- !query 4605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4606 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 4606 schema -struct<> --- !query 4606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4607 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4607 schema -struct<> --- !query 4607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4608 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4608 schema -struct<> --- !query 4608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4609 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 4609 schema -struct> --- !query 4609 output -{1:"1",2:"2"} - - --- !query 4610 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 4610 schema -struct> --- !query 4610 output -{1:"1",2:"2"} - - --- !query 4611 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 4611 schema -struct> --- !query 4611 output -{1:"1",2:"2"} - - --- !query 4612 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 4612 schema -struct> --- !query 4612 output -{1:"1",2:"2"} - - --- !query 4613 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 4613 schema -struct> --- !query 4613 output -{1:"1",2:"2.0"} - - --- !query 4614 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 4614 schema -struct> --- !query 4614 output -{1:"1",2:"2.0"} - - --- !query 4615 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 4615 schema -struct> --- !query 4615 output -{1:"1",2:"2"} - - --- !query 4616 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 4616 schema -struct> --- !query 4616 output -{1:"1",2:"2"} - - --- !query 4617 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 4617 schema -struct<> --- !query 4617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4618 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 4618 schema -struct<> --- !query 4618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4619 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4619 schema -struct> --- !query 4619 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 4620 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4620 schema -struct> --- !query 4620 output -{1:"1",2:"2017-12-12"} - - --- !query 4621 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 4621 schema -struct> --- !query 4621 output -{1:"1",2:"2"} - - --- !query 4622 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 4622 schema -struct> --- !query 4622 output -{1:"1",2:"2"} - - --- !query 4623 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 4623 schema -struct> --- !query 4623 output -{1:"1",2:"2"} - - --- !query 4624 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 4624 schema -struct> --- !query 4624 output -{1:"1",2:"2"} - - --- !query 4625 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 4625 schema -struct> --- !query 4625 output -{1:"1",2:"2.0"} - - --- !query 4626 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 4626 schema -struct> --- !query 4626 output -{1:"1",2:"2.0"} - - --- !query 4627 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 4627 schema -struct> --- !query 4627 output -{1:"1",2:"2"} - - --- !query 4628 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 4628 schema -struct> --- !query 4628 output -{1:"1",2:"2"} - - --- !query 4629 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 4629 schema -struct<> --- !query 4629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4630 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 4630 schema -struct<> --- !query 4630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4631 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4631 schema -struct> --- !query 4631 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 4632 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4632 schema -struct> --- !query 4632 output -{1:"1",2:"2017-12-12"} - - --- !query 4633 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 4633 schema -struct> --- !query 4633 output -{1:"1",2:"2"} - - --- !query 4634 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 4634 schema -struct> --- !query 4634 output -{1:"1",2:"2"} - - --- !query 4635 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 4635 schema -struct> --- !query 4635 output -{1:"1",2:"2"} - - --- !query 4636 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 4636 schema -struct> --- !query 4636 output -{1:"1",2:"2"} - - --- !query 4637 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 4637 schema -struct> --- !query 4637 output -{1:"1",2:"2.0"} - - --- !query 4638 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 4638 schema -struct> --- !query 4638 output -{1:"1",2:"2.0"} - - --- !query 4639 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 4639 schema -struct> --- !query 4639 output -{1:"1",2:"2"} - - --- !query 4640 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 4640 schema -struct> --- !query 4640 output -{1:"1",2:"2"} - - --- !query 4641 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 4641 schema -struct<> --- !query 4641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4642 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 4642 schema -struct<> --- !query 4642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4643 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4643 schema -struct> --- !query 4643 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 4644 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4644 schema -struct> --- !query 4644 output -{1:"1",2:"2017-12-12"} - - --- !query 4645 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 4645 schema -struct> --- !query 4645 output -{1:"1",2:"2"} - - --- !query 4646 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 4646 schema -struct> --- !query 4646 output -{1:"1",2:"2"} - - --- !query 4647 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 4647 schema -struct> --- !query 4647 output -{1:"1",2:"2"} - - --- !query 4648 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 4648 schema -struct> --- !query 4648 output -{1:"1",2:"2"} - - --- !query 4649 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 4649 schema -struct> --- !query 4649 output -{1:"1",2:"2.0"} - - --- !query 4650 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 4650 schema -struct> --- !query 4650 output -{1:"1",2:"2.0"} - - --- !query 4651 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 4651 schema -struct> --- !query 4651 output -{1:"1",2:"2"} - - --- !query 4652 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 4652 schema -struct> --- !query 4652 output -{1:"1",2:"2"} - - --- !query 4653 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 4653 schema -struct<> --- !query 4653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4654 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 4654 schema -struct<> --- !query 4654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4655 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4655 schema -struct> --- !query 4655 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 4656 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4656 schema -struct> --- !query 4656 output -{1:"1",2:"2017-12-12"} - - --- !query 4657 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 4657 schema -struct> --- !query 4657 output -{1.0:"1",2.0:"2"} - - --- !query 4658 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 4658 schema -struct> --- !query 4658 output -{1.0:"1",2.0:"2"} - - --- !query 4659 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 4659 schema -struct> --- !query 4659 output -{1.0:"1",2.0:"2"} - - --- !query 4660 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 4660 schema -struct> --- !query 4660 output -{1.0:"1",2.0:"2"} - - --- !query 4661 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 4661 schema -struct> --- !query 4661 output -{1.0:"1",2.0:"2.0"} - - --- !query 4662 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 4662 schema -struct> --- !query 4662 output -{1.0:"1",2.0:"2.0"} - - --- !query 4663 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 4663 schema -struct> --- !query 4663 output -{1.0:"1",2.0:"2"} - - --- !query 4664 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 4664 schema -struct> --- !query 4664 output -{1.0:"1",2.0:"2"} - - --- !query 4665 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 4665 schema -struct<> --- !query 4665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4666 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 4666 schema -struct<> --- !query 4666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4667 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4667 schema -struct> --- !query 4667 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 4668 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4668 schema -struct> --- !query 4668 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 4669 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 4669 schema -struct> --- !query 4669 output -{1.0:"1",2.0:"2"} - - --- !query 4670 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 4670 schema -struct> --- !query 4670 output -{1.0:"1",2.0:"2"} - - --- !query 4671 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 4671 schema -struct> --- !query 4671 output -{1.0:"1",2.0:"2"} - - --- !query 4672 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 4672 schema -struct> --- !query 4672 output -{1.0:"1",2.0:"2"} - - --- !query 4673 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 4673 schema -struct> --- !query 4673 output -{1.0:"1",2.0:"2.0"} - - --- !query 4674 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 4674 schema -struct> --- !query 4674 output -{1.0:"1",2.0:"2.0"} - - --- !query 4675 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 4675 schema -struct> --- !query 4675 output -{1.0:"1",2.0:"2"} - - --- !query 4676 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 4676 schema -struct> --- !query 4676 output -{1.0:"1",2.0:"2"} - - --- !query 4677 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 4677 schema -struct<> --- !query 4677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4678 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 4678 schema -struct<> --- !query 4678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4679 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4679 schema -struct> --- !query 4679 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 4680 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4680 schema -struct> --- !query 4680 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 4681 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 4681 schema -struct> --- !query 4681 output -{1:"1",2:"2"} - - --- !query 4682 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 4682 schema -struct> --- !query 4682 output -{1:"1",2:"2"} - - --- !query 4683 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 4683 schema -struct> --- !query 4683 output -{1:"1",2:"2"} - - --- !query 4684 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 4684 schema -struct> --- !query 4684 output -{1:"1",2:"2"} - - --- !query 4685 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 4685 schema -struct> --- !query 4685 output -{1:"1",2:"2.0"} - - --- !query 4686 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 4686 schema -struct> --- !query 4686 output -{1:"1",2:"2.0"} - - --- !query 4687 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 4687 schema -struct> --- !query 4687 output -{1:"1",2:"2"} - - --- !query 4688 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 4688 schema -struct> --- !query 4688 output -{1:"1",2:"2"} - - --- !query 4689 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 4689 schema -struct<> --- !query 4689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4690 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 4690 schema -struct<> --- !query 4690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4691 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4691 schema -struct> --- !query 4691 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 4692 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4692 schema -struct> --- !query 4692 output -{1:"1",2:"2017-12-12"} - - --- !query 4693 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 4693 schema -struct> --- !query 4693 output -{"1":"1","2":"2"} - - --- !query 4694 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 4694 schema -struct> --- !query 4694 output -{"1":"1","2":"2"} - - --- !query 4695 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 4695 schema -struct> --- !query 4695 output -{"1":"1","2":"2"} - - --- !query 4696 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 4696 schema -struct> --- !query 4696 output -{"1":"1","2":"2"} - - --- !query 4697 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 4697 schema -struct> --- !query 4697 output -{"1":"1","2":"2.0"} - - --- !query 4698 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 4698 schema -struct> --- !query 4698 output -{"1":"1","2":"2.0"} - - --- !query 4699 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 4699 schema -struct> --- !query 4699 output -{"1":"1","2":"2"} - - --- !query 4700 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 4700 schema -struct> --- !query 4700 output -{"1":"1","2":"2"} - - --- !query 4701 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 4701 schema -struct<> --- !query 4701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 4702 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 4702 schema -struct<> --- !query 4702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 4703 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4703 schema -struct> --- !query 4703 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 4704 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4704 schema -struct> --- !query 4704 output -{"1":"1","2":"2017-12-12"} - - --- !query 4705 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 4705 schema -struct<> --- !query 4705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4706 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 4706 schema -struct<> --- !query 4706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4707 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 4707 schema -struct<> --- !query 4707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4708 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 4708 schema -struct<> --- !query 4708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4709 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 4709 schema -struct<> --- !query 4709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4710 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 4710 schema -struct<> --- !query 4710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4711 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 4711 schema -struct<> --- !query 4711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4712 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 4712 schema -struct<> --- !query 4712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4713 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 4713 schema -struct<> --- !query 4713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4714 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 4714 schema -struct<> --- !query 4714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4715 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4715 schema -struct<> --- !query 4715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4716 -SELECT map(cast(1 as int), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4716 schema -struct<> --- !query 4716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4717 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 4717 schema -struct<> --- !query 4717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4718 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 4718 schema -struct<> --- !query 4718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4719 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 4719 schema -struct<> --- !query 4719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4720 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 4720 schema -struct<> --- !query 4720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4721 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 4721 schema -struct<> --- !query 4721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4722 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 4722 schema -struct<> --- !query 4722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4723 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 4723 schema -struct<> --- !query 4723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4724 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 4724 schema -struct<> --- !query 4724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4725 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 4725 schema -struct<> --- !query 4725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4726 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 4726 schema -struct<> --- !query 4726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4727 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4727 schema -struct<> --- !query 4727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4728 -SELECT map(cast(1 as int), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4728 schema -struct<> --- !query 4728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4729 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 4729 schema -struct<> --- !query 4729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4730 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 4730 schema -struct<> --- !query 4730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4731 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 4731 schema -struct<> --- !query 4731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4732 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 4732 schema -struct<> --- !query 4732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4733 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 4733 schema -struct<> --- !query 4733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4734 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 4734 schema -struct<> --- !query 4734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4735 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 4735 schema -struct<> --- !query 4735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4736 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 4736 schema -struct<> --- !query 4736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4737 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 4737 schema -struct<> --- !query 4737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4738 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 4738 schema -struct<> --- !query 4738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4739 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4739 schema -struct<> --- !query 4739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4740 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4740 schema -struct<> --- !query 4740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4741 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 4741 schema -struct<> --- !query 4741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4742 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 4742 schema -struct<> --- !query 4742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4743 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 4743 schema -struct<> --- !query 4743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4744 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 4744 schema -struct<> --- !query 4744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4745 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 4745 schema -struct<> --- !query 4745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4746 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 4746 schema -struct<> --- !query 4746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4747 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 4747 schema -struct<> --- !query 4747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4748 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 4748 schema -struct<> --- !query 4748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4749 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 4749 schema -struct<> --- !query 4749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4750 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 4750 schema -struct<> --- !query 4750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4751 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4751 schema -struct<> --- !query 4751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4752 -SELECT map(cast(1 as int), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4752 schema -struct<> --- !query 4752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4753 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 4753 schema -struct<> --- !query 4753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4754 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 4754 schema -struct<> --- !query 4754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4755 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 4755 schema -struct<> --- !query 4755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4756 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 4756 schema -struct<> --- !query 4756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4757 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 4757 schema -struct<> --- !query 4757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4758 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 4758 schema -struct<> --- !query 4758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4759 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 4759 schema -struct<> --- !query 4759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4760 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 4760 schema -struct<> --- !query 4760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4761 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 4761 schema -struct> --- !query 4761 output -{1:[B@7ae122d6,2:[B@d1c3a0b} - - --- !query 4762 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 4762 schema -struct<> --- !query 4762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4763 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4763 schema -struct<> --- !query 4763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4764 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4764 schema -struct<> --- !query 4764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4765 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 4765 schema -struct<> --- !query 4765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4766 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 4766 schema -struct<> --- !query 4766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4767 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 4767 schema -struct<> --- !query 4767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4768 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 4768 schema -struct<> --- !query 4768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4769 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 4769 schema -struct<> --- !query 4769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4770 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 4770 schema -struct<> --- !query 4770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4771 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 4771 schema -struct<> --- !query 4771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4772 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 4772 schema -struct<> --- !query 4772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4773 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 4773 schema -struct> --- !query 4773 output -{1:[B@6ffe3631,2:[B@423876b6} - - --- !query 4774 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 4774 schema -struct<> --- !query 4774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4775 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4775 schema -struct<> --- !query 4775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4776 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4776 schema -struct<> --- !query 4776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4777 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 4777 schema -struct<> --- !query 4777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4778 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 4778 schema -struct<> --- !query 4778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4779 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 4779 schema -struct<> --- !query 4779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4780 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 4780 schema -struct<> --- !query 4780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4781 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 4781 schema -struct<> --- !query 4781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4782 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 4782 schema -struct<> --- !query 4782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4783 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 4783 schema -struct<> --- !query 4783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4784 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 4784 schema -struct<> --- !query 4784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4785 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 4785 schema -struct> --- !query 4785 output -{1:[B@5708a5c6,2:[B@6fb57d24} - - --- !query 4786 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 4786 schema -struct<> --- !query 4786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4787 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4787 schema -struct<> --- !query 4787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4788 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4788 schema -struct<> --- !query 4788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4789 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 4789 schema -struct<> --- !query 4789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4790 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 4790 schema -struct<> --- !query 4790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4791 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 4791 schema -struct<> --- !query 4791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4792 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 4792 schema -struct<> --- !query 4792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4793 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 4793 schema -struct<> --- !query 4793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4794 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 4794 schema -struct<> --- !query 4794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4795 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 4795 schema -struct<> --- !query 4795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4796 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 4796 schema -struct<> --- !query 4796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4797 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 4797 schema -struct> --- !query 4797 output -{1:[B@51fb6994,2:[B@4616504f} - - --- !query 4798 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 4798 schema -struct<> --- !query 4798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4799 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4799 schema -struct<> --- !query 4799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4800 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4800 schema -struct<> --- !query 4800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4801 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 4801 schema -struct<> --- !query 4801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4802 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 4802 schema -struct<> --- !query 4802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4803 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 4803 schema -struct<> --- !query 4803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4804 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 4804 schema -struct<> --- !query 4804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4805 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 4805 schema -struct<> --- !query 4805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4806 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 4806 schema -struct<> --- !query 4806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4807 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 4807 schema -struct<> --- !query 4807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4808 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 4808 schema -struct<> --- !query 4808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4809 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 4809 schema -struct> --- !query 4809 output -{1.0:[B@10c4bf52,2.0:[B@c3d7353} - - --- !query 4810 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 4810 schema -struct<> --- !query 4810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4811 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4811 schema -struct<> --- !query 4811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4812 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4812 schema -struct<> --- !query 4812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4813 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 4813 schema -struct<> --- !query 4813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4814 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 4814 schema -struct<> --- !query 4814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4815 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 4815 schema -struct<> --- !query 4815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4816 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 4816 schema -struct<> --- !query 4816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4817 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 4817 schema -struct<> --- !query 4817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4818 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 4818 schema -struct<> --- !query 4818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4819 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 4819 schema -struct<> --- !query 4819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4820 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 4820 schema -struct<> --- !query 4820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4821 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 4821 schema -struct> --- !query 4821 output -{1.0:[B@73a942e6,2.0:[B@283d8de4} - - --- !query 4822 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 4822 schema -struct<> --- !query 4822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4823 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4823 schema -struct<> --- !query 4823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4824 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4824 schema -struct<> --- !query 4824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4825 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 4825 schema -struct<> --- !query 4825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4826 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 4826 schema -struct<> --- !query 4826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4827 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 4827 schema -struct<> --- !query 4827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4828 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 4828 schema -struct<> --- !query 4828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4829 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 4829 schema -struct<> --- !query 4829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4830 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 4830 schema -struct<> --- !query 4830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4831 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 4831 schema -struct<> --- !query 4831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4832 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 4832 schema -struct<> --- !query 4832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4833 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 4833 schema -struct> --- !query 4833 output -{1:[B@30009734,2:[B@1de74f0e} - - --- !query 4834 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 4834 schema -struct<> --- !query 4834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4835 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4835 schema -struct<> --- !query 4835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4836 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4836 schema -struct<> --- !query 4836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4837 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 4837 schema -struct<> --- !query 4837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 4838 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 4838 schema -struct<> --- !query 4838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 4839 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 4839 schema -struct<> --- !query 4839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 4840 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 4840 schema -struct<> --- !query 4840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 4841 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 4841 schema -struct<> --- !query 4841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 4842 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 4842 schema -struct<> --- !query 4842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 4843 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 4843 schema -struct<> --- !query 4843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 4844 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 4844 schema -struct<> --- !query 4844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 4845 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 4845 schema -struct> --- !query 4845 output -{"1":[B@171c7889,"2":[B@5760de10} - - --- !query 4846 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 4846 schema -struct<> --- !query 4846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 4847 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4847 schema -struct<> --- !query 4847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 4848 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4848 schema -struct<> --- !query 4848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 4849 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 4849 schema -struct<> --- !query 4849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4850 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 4850 schema -struct<> --- !query 4850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4851 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 4851 schema -struct<> --- !query 4851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4852 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 4852 schema -struct<> --- !query 4852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4853 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 4853 schema -struct<> --- !query 4853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4854 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 4854 schema -struct<> --- !query 4854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4855 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 4855 schema -struct<> --- !query 4855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4856 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 4856 schema -struct<> --- !query 4856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4857 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 4857 schema -struct<> --- !query 4857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4858 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 4858 schema -struct<> --- !query 4858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4859 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4859 schema -struct<> --- !query 4859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4860 -SELECT map(cast(1 as int), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4860 schema -struct<> --- !query 4860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4861 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 4861 schema -struct<> --- !query 4861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4862 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 4862 schema -struct<> --- !query 4862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4863 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 4863 schema -struct<> --- !query 4863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4864 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 4864 schema -struct<> --- !query 4864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4865 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 4865 schema -struct<> --- !query 4865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4866 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 4866 schema -struct<> --- !query 4866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4867 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 4867 schema -struct<> --- !query 4867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4868 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 4868 schema -struct<> --- !query 4868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4869 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 4869 schema -struct<> --- !query 4869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4870 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 4870 schema -struct<> --- !query 4870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4871 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4871 schema -struct<> --- !query 4871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4872 -SELECT map(cast(1 as int), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4872 schema -struct<> --- !query 4872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 4873 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 4873 schema -struct<> --- !query 4873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4874 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 4874 schema -struct<> --- !query 4874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4875 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 4875 schema -struct<> --- !query 4875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4876 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 4876 schema -struct<> --- !query 4876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4877 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 4877 schema -struct<> --- !query 4877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4878 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 4878 schema -struct<> --- !query 4878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4879 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 4879 schema -struct<> --- !query 4879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4880 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 4880 schema -struct<> --- !query 4880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4881 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 4881 schema -struct<> --- !query 4881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4882 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 4882 schema -struct<> --- !query 4882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4883 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4883 schema -struct<> --- !query 4883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4884 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4884 schema -struct<> --- !query 4884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 4885 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 4885 schema -struct<> --- !query 4885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4886 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 4886 schema -struct<> --- !query 4886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4887 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 4887 schema -struct<> --- !query 4887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4888 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 4888 schema -struct<> --- !query 4888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4889 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 4889 schema -struct<> --- !query 4889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4890 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 4890 schema -struct<> --- !query 4890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4891 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 4891 schema -struct<> --- !query 4891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4892 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 4892 schema -struct<> --- !query 4892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4893 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 4893 schema -struct<> --- !query 4893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4894 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 4894 schema -struct<> --- !query 4894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4895 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4895 schema -struct<> --- !query 4895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4896 -SELECT map(cast(1 as int), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4896 schema -struct<> --- !query 4896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 4897 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 4897 schema -struct<> --- !query 4897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4898 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 4898 schema -struct<> --- !query 4898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4899 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 4899 schema -struct<> --- !query 4899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4900 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 4900 schema -struct<> --- !query 4900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4901 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 4901 schema -struct<> --- !query 4901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4902 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 4902 schema -struct<> --- !query 4902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4903 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 4903 schema -struct<> --- !query 4903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4904 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 4904 schema -struct<> --- !query 4904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4905 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 4905 schema -struct<> --- !query 4905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4906 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 4906 schema -struct> --- !query 4906 output -{1:true,2:true} - - --- !query 4907 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4907 schema -struct<> --- !query 4907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4908 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4908 schema -struct<> --- !query 4908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4909 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 4909 schema -struct<> --- !query 4909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4910 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 4910 schema -struct<> --- !query 4910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4911 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 4911 schema -struct<> --- !query 4911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4912 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 4912 schema -struct<> --- !query 4912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4913 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 4913 schema -struct<> --- !query 4913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4914 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 4914 schema -struct<> --- !query 4914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4915 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 4915 schema -struct<> --- !query 4915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4916 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 4916 schema -struct<> --- !query 4916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4917 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 4917 schema -struct<> --- !query 4917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4918 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 4918 schema -struct> --- !query 4918 output -{1:true,2:true} - - --- !query 4919 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4919 schema -struct<> --- !query 4919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4920 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4920 schema -struct<> --- !query 4920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4921 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 4921 schema -struct<> --- !query 4921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4922 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 4922 schema -struct<> --- !query 4922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4923 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 4923 schema -struct<> --- !query 4923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4924 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 4924 schema -struct<> --- !query 4924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4925 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 4925 schema -struct<> --- !query 4925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4926 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 4926 schema -struct<> --- !query 4926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4927 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 4927 schema -struct<> --- !query 4927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4928 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 4928 schema -struct<> --- !query 4928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4929 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 4929 schema -struct<> --- !query 4929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4930 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 4930 schema -struct> --- !query 4930 output -{1:true,2:true} - - --- !query 4931 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4931 schema -struct<> --- !query 4931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4932 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4932 schema -struct<> --- !query 4932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4933 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 4933 schema -struct<> --- !query 4933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4934 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 4934 schema -struct<> --- !query 4934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4935 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 4935 schema -struct<> --- !query 4935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4936 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 4936 schema -struct<> --- !query 4936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4937 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 4937 schema -struct<> --- !query 4937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4938 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 4938 schema -struct<> --- !query 4938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4939 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 4939 schema -struct<> --- !query 4939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4940 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 4940 schema -struct<> --- !query 4940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4941 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 4941 schema -struct<> --- !query 4941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4942 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 4942 schema -struct> --- !query 4942 output -{1:true,2:true} - - --- !query 4943 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4943 schema -struct<> --- !query 4943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4944 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4944 schema -struct<> --- !query 4944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4945 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 4945 schema -struct<> --- !query 4945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4946 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 4946 schema -struct<> --- !query 4946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4947 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 4947 schema -struct<> --- !query 4947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4948 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 4948 schema -struct<> --- !query 4948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4949 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 4949 schema -struct<> --- !query 4949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4950 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 4950 schema -struct<> --- !query 4950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4951 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 4951 schema -struct<> --- !query 4951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4952 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 4952 schema -struct<> --- !query 4952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4953 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 4953 schema -struct<> --- !query 4953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4954 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 4954 schema -struct> --- !query 4954 output -{1.0:true,2.0:true} - - --- !query 4955 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4955 schema -struct<> --- !query 4955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4956 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4956 schema -struct<> --- !query 4956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4957 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 4957 schema -struct<> --- !query 4957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4958 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 4958 schema -struct<> --- !query 4958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4959 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 4959 schema -struct<> --- !query 4959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4960 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 4960 schema -struct<> --- !query 4960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4961 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 4961 schema -struct<> --- !query 4961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4962 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 4962 schema -struct<> --- !query 4962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4963 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 4963 schema -struct<> --- !query 4963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4964 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 4964 schema -struct<> --- !query 4964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4965 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 4965 schema -struct<> --- !query 4965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4966 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 4966 schema -struct> --- !query 4966 output -{1.0:true,2.0:true} - - --- !query 4967 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4967 schema -struct<> --- !query 4967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4968 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4968 schema -struct<> --- !query 4968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4969 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 4969 schema -struct<> --- !query 4969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4970 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 4970 schema -struct<> --- !query 4970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4971 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 4971 schema -struct<> --- !query 4971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4972 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 4972 schema -struct<> --- !query 4972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4973 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 4973 schema -struct<> --- !query 4973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4974 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 4974 schema -struct<> --- !query 4974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4975 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 4975 schema -struct<> --- !query 4975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4976 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 4976 schema -struct<> --- !query 4976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4977 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 4977 schema -struct<> --- !query 4977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4978 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 4978 schema -struct> --- !query 4978 output -{1:true,2:true} - - --- !query 4979 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4979 schema -struct<> --- !query 4979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4980 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4980 schema -struct<> --- !query 4980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4981 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 4981 schema -struct<> --- !query 4981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 4982 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 4982 schema -struct<> --- !query 4982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 4983 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 4983 schema -struct<> --- !query 4983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 4984 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 4984 schema -struct<> --- !query 4984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 4985 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 4985 schema -struct<> --- !query 4985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 4986 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 4986 schema -struct<> --- !query 4986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 4987 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 4987 schema -struct<> --- !query 4987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 4988 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 4988 schema -struct<> --- !query 4988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 4989 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 4989 schema -struct<> --- !query 4989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 4990 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 4990 schema -struct> --- !query 4990 output -{"1":true,"2":true} - - --- !query 4991 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 4991 schema -struct<> --- !query 4991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 4992 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 4992 schema -struct<> --- !query 4992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 4993 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 4993 schema -struct<> --- !query 4993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4994 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 4994 schema -struct<> --- !query 4994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4995 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 4995 schema -struct<> --- !query 4995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4996 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 4996 schema -struct<> --- !query 4996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4997 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 4997 schema -struct<> --- !query 4997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4998 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 4998 schema -struct<> --- !query 4998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 4999 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 4999 schema -struct<> --- !query 4999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5000 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 5000 schema -struct<> --- !query 5000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5001 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 5001 schema -struct<> --- !query 5001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5002 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 5002 schema -struct<> --- !query 5002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5003 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5003 schema -struct<> --- !query 5003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5004 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5004 schema -struct<> --- !query 5004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5005 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 5005 schema -struct<> --- !query 5005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5006 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 5006 schema -struct<> --- !query 5006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5007 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 5007 schema -struct<> --- !query 5007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5008 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 5008 schema -struct<> --- !query 5008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5009 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 5009 schema -struct<> --- !query 5009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5010 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 5010 schema -struct<> --- !query 5010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5011 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 5011 schema -struct<> --- !query 5011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5012 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 5012 schema -struct<> --- !query 5012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5013 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 5013 schema -struct<> --- !query 5013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5014 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 5014 schema -struct<> --- !query 5014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5015 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5015 schema -struct<> --- !query 5015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5016 -SELECT map(cast(1 as int), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5016 schema -struct<> --- !query 5016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5017 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 5017 schema -struct<> --- !query 5017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5018 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 5018 schema -struct<> --- !query 5018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5019 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 5019 schema -struct<> --- !query 5019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5020 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 5020 schema -struct<> --- !query 5020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5021 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 5021 schema -struct<> --- !query 5021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5022 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 5022 schema -struct<> --- !query 5022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5023 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 5023 schema -struct<> --- !query 5023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5024 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 5024 schema -struct<> --- !query 5024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5025 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 5025 schema -struct<> --- !query 5025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5026 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 5026 schema -struct<> --- !query 5026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5027 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5027 schema -struct<> --- !query 5027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5028 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5028 schema -struct<> --- !query 5028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5029 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 5029 schema -struct<> --- !query 5029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5030 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 5030 schema -struct<> --- !query 5030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5031 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 5031 schema -struct<> --- !query 5031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5032 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 5032 schema -struct<> --- !query 5032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5033 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 5033 schema -struct<> --- !query 5033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5034 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 5034 schema -struct<> --- !query 5034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5035 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 5035 schema -struct<> --- !query 5035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5036 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 5036 schema -struct<> --- !query 5036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5037 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 5037 schema -struct<> --- !query 5037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5038 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 5038 schema -struct<> --- !query 5038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5039 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5039 schema -struct<> --- !query 5039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5040 -SELECT map(cast(1 as int), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5040 schema -struct<> --- !query 5040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5041 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 5041 schema -struct<> --- !query 5041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5042 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 5042 schema -struct<> --- !query 5042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5043 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 5043 schema -struct<> --- !query 5043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5044 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 5044 schema -struct<> --- !query 5044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5045 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 5045 schema -struct<> --- !query 5045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5046 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 5046 schema -struct<> --- !query 5046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5047 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 5047 schema -struct<> --- !query 5047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5048 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 5048 schema -struct> --- !query 5048 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 5049 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 5049 schema -struct<> --- !query 5049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5050 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 5050 schema -struct<> --- !query 5050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5051 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5051 schema -struct> --- !query 5051 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5052 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5052 schema -struct> --- !query 5052 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 5053 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 5053 schema -struct<> --- !query 5053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5054 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 5054 schema -struct<> --- !query 5054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5055 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 5055 schema -struct<> --- !query 5055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5056 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 5056 schema -struct<> --- !query 5056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5057 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 5057 schema -struct<> --- !query 5057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5058 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 5058 schema -struct<> --- !query 5058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5059 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 5059 schema -struct<> --- !query 5059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5060 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 5060 schema -struct> --- !query 5060 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 5061 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 5061 schema -struct<> --- !query 5061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5062 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 5062 schema -struct<> --- !query 5062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5063 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5063 schema -struct> --- !query 5063 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5064 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5064 schema -struct> --- !query 5064 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 5065 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 5065 schema -struct<> --- !query 5065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5066 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 5066 schema -struct<> --- !query 5066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5067 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 5067 schema -struct<> --- !query 5067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5068 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 5068 schema -struct<> --- !query 5068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5069 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 5069 schema -struct<> --- !query 5069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5070 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 5070 schema -struct<> --- !query 5070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5071 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 5071 schema -struct<> --- !query 5071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5072 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 5072 schema -struct> --- !query 5072 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 5073 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 5073 schema -struct<> --- !query 5073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5074 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 5074 schema -struct<> --- !query 5074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5075 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5075 schema -struct> --- !query 5075 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5076 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5076 schema -struct> --- !query 5076 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 5077 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 5077 schema -struct<> --- !query 5077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5078 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 5078 schema -struct<> --- !query 5078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5079 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 5079 schema -struct<> --- !query 5079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5080 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 5080 schema -struct<> --- !query 5080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5081 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 5081 schema -struct<> --- !query 5081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5082 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 5082 schema -struct<> --- !query 5082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5083 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 5083 schema -struct<> --- !query 5083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5084 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 5084 schema -struct> --- !query 5084 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 5085 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 5085 schema -struct<> --- !query 5085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5086 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 5086 schema -struct<> --- !query 5086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5087 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5087 schema -struct> --- !query 5087 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5088 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5088 schema -struct> --- !query 5088 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 5089 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 5089 schema -struct<> --- !query 5089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5090 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 5090 schema -struct<> --- !query 5090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5091 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 5091 schema -struct<> --- !query 5091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5092 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 5092 schema -struct<> --- !query 5092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5093 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 5093 schema -struct<> --- !query 5093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5094 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 5094 schema -struct<> --- !query 5094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5095 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 5095 schema -struct<> --- !query 5095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5096 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 5096 schema -struct> --- !query 5096 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 5097 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 5097 schema -struct<> --- !query 5097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5098 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 5098 schema -struct<> --- !query 5098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5099 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5099 schema -struct> --- !query 5099 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 5100 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5100 schema -struct> --- !query 5100 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 5101 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 5101 schema -struct<> --- !query 5101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5102 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 5102 schema -struct<> --- !query 5102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5103 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 5103 schema -struct<> --- !query 5103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5104 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 5104 schema -struct<> --- !query 5104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5105 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 5105 schema -struct<> --- !query 5105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5106 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 5106 schema -struct<> --- !query 5106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5107 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 5107 schema -struct<> --- !query 5107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5108 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 5108 schema -struct> --- !query 5108 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 5109 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 5109 schema -struct<> --- !query 5109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5110 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 5110 schema -struct<> --- !query 5110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5111 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5111 schema -struct> --- !query 5111 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 5112 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5112 schema -struct> --- !query 5112 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 5113 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 5113 schema -struct<> --- !query 5113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5114 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 5114 schema -struct<> --- !query 5114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5115 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 5115 schema -struct<> --- !query 5115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5116 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 5116 schema -struct<> --- !query 5116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5117 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 5117 schema -struct<> --- !query 5117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5118 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 5118 schema -struct<> --- !query 5118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5119 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 5119 schema -struct<> --- !query 5119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5120 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 5120 schema -struct> --- !query 5120 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 5121 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 5121 schema -struct<> --- !query 5121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5122 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 5122 schema -struct<> --- !query 5122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5123 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5123 schema -struct> --- !query 5123 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5124 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5124 schema -struct> --- !query 5124 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 5125 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 5125 schema -struct<> --- !query 5125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 5126 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 5126 schema -struct<> --- !query 5126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 5127 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 5127 schema -struct<> --- !query 5127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 5128 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 5128 schema -struct<> --- !query 5128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 5129 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 5129 schema -struct<> --- !query 5129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 5130 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 5130 schema -struct<> --- !query 5130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 5131 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 5131 schema -struct<> --- !query 5131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 5132 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 5132 schema -struct> --- !query 5132 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 5133 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 5133 schema -struct<> --- !query 5133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 5134 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 5134 schema -struct<> --- !query 5134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 5135 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5135 schema -struct> --- !query 5135 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 5136 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5136 schema -struct> --- !query 5136 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 5137 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 5137 schema -struct<> --- !query 5137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5138 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 5138 schema -struct<> --- !query 5138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5139 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 5139 schema -struct<> --- !query 5139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5140 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 5140 schema -struct<> --- !query 5140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5141 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 5141 schema -struct<> --- !query 5141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5142 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 5142 schema -struct<> --- !query 5142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5143 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 5143 schema -struct<> --- !query 5143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5144 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 5144 schema -struct<> --- !query 5144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5145 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 5145 schema -struct<> --- !query 5145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5146 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 5146 schema -struct<> --- !query 5146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5147 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5147 schema -struct<> --- !query 5147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5148 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5148 schema -struct<> --- !query 5148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5149 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 5149 schema -struct<> --- !query 5149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5150 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 5150 schema -struct<> --- !query 5150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5151 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 5151 schema -struct<> --- !query 5151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5152 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 5152 schema -struct<> --- !query 5152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5153 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 5153 schema -struct<> --- !query 5153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5154 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 5154 schema -struct<> --- !query 5154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5155 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 5155 schema -struct<> --- !query 5155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5156 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 5156 schema -struct<> --- !query 5156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5157 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 5157 schema -struct<> --- !query 5157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5158 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 5158 schema -struct<> --- !query 5158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5159 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5159 schema -struct<> --- !query 5159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5160 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5160 schema -struct<> --- !query 5160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5161 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 5161 schema -struct<> --- !query 5161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5162 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 5162 schema -struct<> --- !query 5162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5163 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 5163 schema -struct<> --- !query 5163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5164 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 5164 schema -struct<> --- !query 5164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5165 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 5165 schema -struct<> --- !query 5165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5166 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 5166 schema -struct<> --- !query 5166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5167 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 5167 schema -struct<> --- !query 5167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5168 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 5168 schema -struct<> --- !query 5168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5169 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 5169 schema -struct<> --- !query 5169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5170 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 5170 schema -struct<> --- !query 5170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5171 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5171 schema -struct<> --- !query 5171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5172 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5172 schema -struct<> --- !query 5172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5173 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 5173 schema -struct<> --- !query 5173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5174 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 5174 schema -struct<> --- !query 5174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5175 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 5175 schema -struct<> --- !query 5175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5176 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 5176 schema -struct<> --- !query 5176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5177 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 5177 schema -struct<> --- !query 5177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5178 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 5178 schema -struct<> --- !query 5178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5179 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 5179 schema -struct<> --- !query 5179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5180 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 5180 schema -struct<> --- !query 5180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5181 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 5181 schema -struct<> --- !query 5181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5182 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 5182 schema -struct<> --- !query 5182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5183 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5183 schema -struct<> --- !query 5183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5184 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5184 schema -struct<> --- !query 5184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5185 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 5185 schema -struct<> --- !query 5185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5186 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 5186 schema -struct<> --- !query 5186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5187 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 5187 schema -struct<> --- !query 5187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5188 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 5188 schema -struct<> --- !query 5188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5189 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 5189 schema -struct<> --- !query 5189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5190 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 5190 schema -struct<> --- !query 5190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5191 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 5191 schema -struct<> --- !query 5191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5192 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 5192 schema -struct> --- !query 5192 output -{1:"2017-12-11",2:"2"} - - --- !query 5193 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 5193 schema -struct<> --- !query 5193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5194 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 5194 schema -struct<> --- !query 5194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5195 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5195 schema -struct> --- !query 5195 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5196 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5196 schema -struct> --- !query 5196 output -{1:2017-12-11,2:2017-12-12} - - --- !query 5197 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 5197 schema -struct<> --- !query 5197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5198 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 5198 schema -struct<> --- !query 5198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5199 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 5199 schema -struct<> --- !query 5199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5200 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 5200 schema -struct<> --- !query 5200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5201 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 5201 schema -struct<> --- !query 5201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5202 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 5202 schema -struct<> --- !query 5202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5203 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 5203 schema -struct<> --- !query 5203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5204 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 5204 schema -struct> --- !query 5204 output -{1:"2017-12-11",2:"2"} - - --- !query 5205 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 5205 schema -struct<> --- !query 5205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5206 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 5206 schema -struct<> --- !query 5206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5207 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5207 schema -struct> --- !query 5207 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5208 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5208 schema -struct> --- !query 5208 output -{1:2017-12-11,2:2017-12-12} - - --- !query 5209 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 5209 schema -struct<> --- !query 5209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5210 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 5210 schema -struct<> --- !query 5210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5211 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 5211 schema -struct<> --- !query 5211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5212 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 5212 schema -struct<> --- !query 5212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5213 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 5213 schema -struct<> --- !query 5213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5214 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 5214 schema -struct<> --- !query 5214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5215 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 5215 schema -struct<> --- !query 5215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5216 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 5216 schema -struct> --- !query 5216 output -{1:"2017-12-11",2:"2"} - - --- !query 5217 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 5217 schema -struct<> --- !query 5217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5218 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 5218 schema -struct<> --- !query 5218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5219 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5219 schema -struct> --- !query 5219 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5220 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5220 schema -struct> --- !query 5220 output -{1:2017-12-11,2:2017-12-12} - - --- !query 5221 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 5221 schema -struct<> --- !query 5221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5222 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 5222 schema -struct<> --- !query 5222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5223 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 5223 schema -struct<> --- !query 5223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5224 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 5224 schema -struct<> --- !query 5224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5225 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 5225 schema -struct<> --- !query 5225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5226 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 5226 schema -struct<> --- !query 5226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5227 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 5227 schema -struct<> --- !query 5227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5228 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 5228 schema -struct> --- !query 5228 output -{1:"2017-12-11",2:"2"} - - --- !query 5229 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 5229 schema -struct<> --- !query 5229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5230 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 5230 schema -struct<> --- !query 5230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5231 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5231 schema -struct> --- !query 5231 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5232 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5232 schema -struct> --- !query 5232 output -{1:2017-12-11,2:2017-12-12} - - --- !query 5233 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 5233 schema -struct<> --- !query 5233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5234 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 5234 schema -struct<> --- !query 5234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5235 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 5235 schema -struct<> --- !query 5235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5236 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 5236 schema -struct<> --- !query 5236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5237 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 5237 schema -struct<> --- !query 5237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5238 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 5238 schema -struct<> --- !query 5238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5239 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 5239 schema -struct<> --- !query 5239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5240 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 5240 schema -struct> --- !query 5240 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 5241 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 5241 schema -struct<> --- !query 5241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5242 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 5242 schema -struct<> --- !query 5242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5243 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5243 schema -struct> --- !query 5243 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 5244 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5244 schema -struct> --- !query 5244 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 5245 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 5245 schema -struct<> --- !query 5245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5246 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 5246 schema -struct<> --- !query 5246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5247 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 5247 schema -struct<> --- !query 5247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5248 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 5248 schema -struct<> --- !query 5248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5249 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 5249 schema -struct<> --- !query 5249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5250 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 5250 schema -struct<> --- !query 5250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5251 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 5251 schema -struct<> --- !query 5251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5252 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 5252 schema -struct> --- !query 5252 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 5253 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 5253 schema -struct<> --- !query 5253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5254 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 5254 schema -struct<> --- !query 5254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5255 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5255 schema -struct> --- !query 5255 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 5256 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5256 schema -struct> --- !query 5256 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 5257 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 5257 schema -struct<> --- !query 5257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5258 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 5258 schema -struct<> --- !query 5258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5259 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 5259 schema -struct<> --- !query 5259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5260 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 5260 schema -struct<> --- !query 5260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5261 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 5261 schema -struct<> --- !query 5261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5262 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 5262 schema -struct<> --- !query 5262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5263 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 5263 schema -struct<> --- !query 5263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5264 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 5264 schema -struct> --- !query 5264 output -{1:"2017-12-11",2:"2"} - - --- !query 5265 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 5265 schema -struct<> --- !query 5265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5266 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 5266 schema -struct<> --- !query 5266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5267 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5267 schema -struct> --- !query 5267 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 5268 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5268 schema -struct> --- !query 5268 output -{1:2017-12-11,2:2017-12-12} - - --- !query 5269 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 5269 schema -struct<> --- !query 5269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 5270 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 5270 schema -struct<> --- !query 5270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 5271 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 5271 schema -struct<> --- !query 5271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 5272 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 5272 schema -struct<> --- !query 5272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 5273 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 5273 schema -struct<> --- !query 5273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 5274 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 5274 schema -struct<> --- !query 5274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 5275 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 5275 schema -struct<> --- !query 5275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 5276 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 5276 schema -struct> --- !query 5276 output -{"1":"2017-12-11","2":"2"} - - --- !query 5277 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 5277 schema -struct<> --- !query 5277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 5278 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 5278 schema -struct<> --- !query 5278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 5279 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5279 schema -struct> --- !query 5279 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 5280 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5280 schema -struct> --- !query 5280 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 5281 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 5281 schema -struct<> --- !query 5281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5282 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 5282 schema -struct<> --- !query 5282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5283 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 5283 schema -struct<> --- !query 5283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5284 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 5284 schema -struct<> --- !query 5284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5285 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 5285 schema -struct<> --- !query 5285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5286 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 5286 schema -struct<> --- !query 5286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5287 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 5287 schema -struct<> --- !query 5287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5288 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 5288 schema -struct<> --- !query 5288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5289 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 5289 schema -struct<> --- !query 5289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5290 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 5290 schema -struct<> --- !query 5290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5291 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5291 schema -struct<> --- !query 5291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5292 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5292 schema -struct<> --- !query 5292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5293 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 5293 schema -struct<> --- !query 5293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5294 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 5294 schema -struct<> --- !query 5294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5295 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 5295 schema -struct<> --- !query 5295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5296 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 5296 schema -struct<> --- !query 5296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5297 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 5297 schema -struct<> --- !query 5297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5298 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 5298 schema -struct<> --- !query 5298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5299 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 5299 schema -struct<> --- !query 5299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5300 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 5300 schema -struct<> --- !query 5300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5301 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 5301 schema -struct<> --- !query 5301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5302 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 5302 schema -struct<> --- !query 5302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5303 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5303 schema -struct<> --- !query 5303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5304 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5304 schema -struct<> --- !query 5304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5305 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 5305 schema -struct<> --- !query 5305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5306 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 5306 schema -struct<> --- !query 5306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5307 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 5307 schema -struct<> --- !query 5307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5308 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 5308 schema -struct<> --- !query 5308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5309 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 5309 schema -struct<> --- !query 5309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5310 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 5310 schema -struct<> --- !query 5310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5311 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 5311 schema -struct<> --- !query 5311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5312 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 5312 schema -struct<> --- !query 5312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5313 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 5313 schema -struct<> --- !query 5313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5314 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 5314 schema -struct<> --- !query 5314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5315 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5315 schema -struct<> --- !query 5315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5316 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5316 schema -struct<> --- !query 5316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5317 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 5317 schema -struct<> --- !query 5317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5318 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 5318 schema -struct<> --- !query 5318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5319 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 5319 schema -struct<> --- !query 5319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5320 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 5320 schema -struct<> --- !query 5320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5321 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 5321 schema -struct<> --- !query 5321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5322 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 5322 schema -struct<> --- !query 5322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5323 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 5323 schema -struct<> --- !query 5323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5324 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 5324 schema -struct<> --- !query 5324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5325 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 5325 schema -struct<> --- !query 5325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5326 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 5326 schema -struct<> --- !query 5326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5327 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5327 schema -struct<> --- !query 5327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5328 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5328 schema -struct<> --- !query 5328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5329 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 5329 schema -struct> --- !query 5329 output -{1:1,2:2} - - --- !query 5330 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 5330 schema -struct> --- !query 5330 output -{1:1,2:2} - - --- !query 5331 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 5331 schema -struct> --- !query 5331 output -{1:1,2:2} - - --- !query 5332 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 5332 schema -struct> --- !query 5332 output -{1:1,2:2} - - --- !query 5333 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 5333 schema -struct> --- !query 5333 output -{1:1.0,2:2.0} - - --- !query 5334 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 5334 schema -struct> --- !query 5334 output -{1:1.0,2:2.0} - - --- !query 5335 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 5335 schema -struct> --- !query 5335 output -{1:1,2:2} - - --- !query 5336 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 5336 schema -struct> --- !query 5336 output -{1:"1",2:"2"} - - --- !query 5337 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 5337 schema -struct<> --- !query 5337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5338 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 5338 schema -struct<> --- !query 5338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5339 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5339 schema -struct<> --- !query 5339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5340 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5340 schema -struct<> --- !query 5340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5341 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 5341 schema -struct> --- !query 5341 output -{1:1,2:2} - - --- !query 5342 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 5342 schema -struct> --- !query 5342 output -{1:1,2:2} - - --- !query 5343 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 5343 schema -struct> --- !query 5343 output -{1:1,2:2} - - --- !query 5344 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 5344 schema -struct> --- !query 5344 output -{1:1,2:2} - - --- !query 5345 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 5345 schema -struct> --- !query 5345 output -{1:1.0,2:2.0} - - --- !query 5346 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 5346 schema -struct> --- !query 5346 output -{1:1.0,2:2.0} - - --- !query 5347 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 5347 schema -struct> --- !query 5347 output -{1:1,2:2} - - --- !query 5348 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 5348 schema -struct> --- !query 5348 output -{1:"1",2:"2"} - - --- !query 5349 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 5349 schema -struct<> --- !query 5349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5350 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 5350 schema -struct<> --- !query 5350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5351 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5351 schema -struct<> --- !query 5351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5352 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5352 schema -struct<> --- !query 5352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5353 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 5353 schema -struct> --- !query 5353 output -{1:1,2:2} - - --- !query 5354 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 5354 schema -struct> --- !query 5354 output -{1:1,2:2} - - --- !query 5355 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 5355 schema -struct> --- !query 5355 output -{1:1,2:2} - - --- !query 5356 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 5356 schema -struct> --- !query 5356 output -{1:1,2:2} - - --- !query 5357 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 5357 schema -struct> --- !query 5357 output -{1:1.0,2:2.0} - - --- !query 5358 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 5358 schema -struct> --- !query 5358 output -{1:1.0,2:2.0} - - --- !query 5359 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 5359 schema -struct> --- !query 5359 output -{1:1,2:2} - - --- !query 5360 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 5360 schema -struct> --- !query 5360 output -{1:"1",2:"2"} - - --- !query 5361 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 5361 schema -struct<> --- !query 5361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5362 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 5362 schema -struct<> --- !query 5362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5363 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5363 schema -struct<> --- !query 5363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5364 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5364 schema -struct<> --- !query 5364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5365 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 5365 schema -struct> --- !query 5365 output -{1:1,2:2} - - --- !query 5366 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 5366 schema -struct> --- !query 5366 output -{1:1,2:2} - - --- !query 5367 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 5367 schema -struct> --- !query 5367 output -{1:1,2:2} - - --- !query 5368 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 5368 schema -struct> --- !query 5368 output -{1:1,2:2} - - --- !query 5369 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 5369 schema -struct> --- !query 5369 output -{1:1.0,2:2.0} - - --- !query 5370 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 5370 schema -struct> --- !query 5370 output -{1:1.0,2:2.0} - - --- !query 5371 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 5371 schema -struct> --- !query 5371 output -{1:1,2:2} - - --- !query 5372 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 5372 schema -struct> --- !query 5372 output -{1:"1",2:"2"} - - --- !query 5373 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 5373 schema -struct<> --- !query 5373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5374 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 5374 schema -struct<> --- !query 5374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5375 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5375 schema -struct<> --- !query 5375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5376 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5376 schema -struct<> --- !query 5376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5377 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 5377 schema -struct> --- !query 5377 output -{1.0:1,2.0:2} - - --- !query 5378 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 5378 schema -struct> --- !query 5378 output -{1.0:1,2.0:2} - - --- !query 5379 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 5379 schema -struct> --- !query 5379 output -{1.0:1,2.0:2} - - --- !query 5380 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 5380 schema -struct> --- !query 5380 output -{1.0:1,2.0:2} - - --- !query 5381 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 5381 schema -struct> --- !query 5381 output -{1.0:1.0,2.0:2.0} - - --- !query 5382 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 5382 schema -struct> --- !query 5382 output -{1.0:1.0,2.0:2.0} - - --- !query 5383 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 5383 schema -struct> --- !query 5383 output -{1.0:1,2.0:2} - - --- !query 5384 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 5384 schema -struct> --- !query 5384 output -{1.0:"1",2.0:"2"} - - --- !query 5385 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 5385 schema -struct<> --- !query 5385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5386 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 5386 schema -struct<> --- !query 5386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5387 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5387 schema -struct<> --- !query 5387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5388 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5388 schema -struct<> --- !query 5388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5389 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 5389 schema -struct> --- !query 5389 output -{1.0:1,2.0:2} - - --- !query 5390 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 5390 schema -struct> --- !query 5390 output -{1.0:1,2.0:2} - - --- !query 5391 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 5391 schema -struct> --- !query 5391 output -{1.0:1,2.0:2} - - --- !query 5392 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 5392 schema -struct> --- !query 5392 output -{1.0:1,2.0:2} - - --- !query 5393 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 5393 schema -struct> --- !query 5393 output -{1.0:1.0,2.0:2.0} - - --- !query 5394 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 5394 schema -struct> --- !query 5394 output -{1.0:1.0,2.0:2.0} - - --- !query 5395 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 5395 schema -struct> --- !query 5395 output -{1.0:1,2.0:2} - - --- !query 5396 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 5396 schema -struct> --- !query 5396 output -{1.0:"1",2.0:"2"} - - --- !query 5397 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 5397 schema -struct<> --- !query 5397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5398 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 5398 schema -struct<> --- !query 5398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5399 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5399 schema -struct<> --- !query 5399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5400 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5400 schema -struct<> --- !query 5400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5401 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 5401 schema -struct> --- !query 5401 output -{1:1,2:2} - - --- !query 5402 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 5402 schema -struct> --- !query 5402 output -{1:1,2:2} - - --- !query 5403 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 5403 schema -struct> --- !query 5403 output -{1:1,2:2} - - --- !query 5404 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 5404 schema -struct> --- !query 5404 output -{1:1,2:2} - - --- !query 5405 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 5405 schema -struct> --- !query 5405 output -{1:1.0,2:2.0} - - --- !query 5406 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 5406 schema -struct> --- !query 5406 output -{1:1.0,2:2.0} - - --- !query 5407 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 5407 schema -struct> --- !query 5407 output -{1:1,2:2} - - --- !query 5408 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 5408 schema -struct> --- !query 5408 output -{1:"1",2:"2"} - - --- !query 5409 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 5409 schema -struct<> --- !query 5409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5410 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 5410 schema -struct<> --- !query 5410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5411 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5411 schema -struct<> --- !query 5411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5412 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5412 schema -struct<> --- !query 5412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5413 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 5413 schema -struct> --- !query 5413 output -{"1":1,"2":2} - - --- !query 5414 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 5414 schema -struct> --- !query 5414 output -{"1":1,"2":2} - - --- !query 5415 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 5415 schema -struct> --- !query 5415 output -{"1":1,"2":2} - - --- !query 5416 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 5416 schema -struct> --- !query 5416 output -{"1":1,"2":2} - - --- !query 5417 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 5417 schema -struct> --- !query 5417 output -{"1":1.0,"2":2.0} - - --- !query 5418 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 5418 schema -struct> --- !query 5418 output -{"1":1.0,"2":2.0} - - --- !query 5419 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 5419 schema -struct> --- !query 5419 output -{"1":1,"2":2} - - --- !query 5420 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 5420 schema -struct> --- !query 5420 output -{"1":"1","2":"2"} - - --- !query 5421 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 5421 schema -struct<> --- !query 5421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 5422 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 5422 schema -struct<> --- !query 5422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 5423 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5423 schema -struct<> --- !query 5423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 5424 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5424 schema -struct<> --- !query 5424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 5425 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 5425 schema -struct<> --- !query 5425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5426 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 5426 schema -struct<> --- !query 5426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5427 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 5427 schema -struct<> --- !query 5427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5428 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 5428 schema -struct<> --- !query 5428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5429 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 5429 schema -struct<> --- !query 5429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5430 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 5430 schema -struct<> --- !query 5430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5431 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 5431 schema -struct<> --- !query 5431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5432 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 5432 schema -struct<> --- !query 5432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5433 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 5433 schema -struct<> --- !query 5433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5434 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 5434 schema -struct<> --- !query 5434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5435 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5435 schema -struct<> --- !query 5435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5436 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5436 schema -struct<> --- !query 5436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5437 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 5437 schema -struct<> --- !query 5437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5438 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 5438 schema -struct<> --- !query 5438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5439 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 5439 schema -struct<> --- !query 5439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5440 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 5440 schema -struct<> --- !query 5440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5441 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 5441 schema -struct<> --- !query 5441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5442 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 5442 schema -struct<> --- !query 5442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5443 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 5443 schema -struct<> --- !query 5443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5444 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 5444 schema -struct<> --- !query 5444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5445 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 5445 schema -struct<> --- !query 5445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5446 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 5446 schema -struct<> --- !query 5446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5447 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5447 schema -struct<> --- !query 5447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5448 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5448 schema -struct<> --- !query 5448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5449 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 5449 schema -struct<> --- !query 5449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5450 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 5450 schema -struct<> --- !query 5450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5451 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 5451 schema -struct<> --- !query 5451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5452 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 5452 schema -struct<> --- !query 5452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5453 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 5453 schema -struct<> --- !query 5453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5454 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 5454 schema -struct<> --- !query 5454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5455 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 5455 schema -struct<> --- !query 5455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5456 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 5456 schema -struct<> --- !query 5456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5457 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 5457 schema -struct<> --- !query 5457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5458 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 5458 schema -struct<> --- !query 5458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5459 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5459 schema -struct<> --- !query 5459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5460 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5460 schema -struct<> --- !query 5460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5461 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 5461 schema -struct<> --- !query 5461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5462 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 5462 schema -struct<> --- !query 5462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5463 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 5463 schema -struct<> --- !query 5463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5464 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 5464 schema -struct<> --- !query 5464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5465 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 5465 schema -struct<> --- !query 5465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5466 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 5466 schema -struct<> --- !query 5466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5467 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 5467 schema -struct<> --- !query 5467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5468 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 5468 schema -struct<> --- !query 5468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5469 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 5469 schema -struct<> --- !query 5469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5470 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 5470 schema -struct<> --- !query 5470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5471 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5471 schema -struct<> --- !query 5471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5472 -SELECT map(cast(1 as bigint), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5472 schema -struct<> --- !query 5472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5473 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 5473 schema -struct> --- !query 5473 output -{1:1,2:2} - - --- !query 5474 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 5474 schema -struct> --- !query 5474 output -{1:1,2:2} - - --- !query 5475 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 5475 schema -struct> --- !query 5475 output -{1:1,2:2} - - --- !query 5476 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 5476 schema -struct> --- !query 5476 output -{1:1,2:2} - - --- !query 5477 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 5477 schema -struct> --- !query 5477 output -{1:1.0,2:2.0} - - --- !query 5478 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 5478 schema -struct> --- !query 5478 output -{1:1.0,2:2.0} - - --- !query 5479 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 5479 schema -struct> --- !query 5479 output -{1:1,2:2} - - --- !query 5480 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 5480 schema -struct> --- !query 5480 output -{1:"1",2:"2"} - - --- !query 5481 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 5481 schema -struct<> --- !query 5481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5482 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 5482 schema -struct<> --- !query 5482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5483 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5483 schema -struct<> --- !query 5483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5484 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5484 schema -struct<> --- !query 5484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5485 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 5485 schema -struct> --- !query 5485 output -{1:1,2:2} - - --- !query 5486 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 5486 schema -struct> --- !query 5486 output -{1:1,2:2} - - --- !query 5487 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 5487 schema -struct> --- !query 5487 output -{1:1,2:2} - - --- !query 5488 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 5488 schema -struct> --- !query 5488 output -{1:1,2:2} - - --- !query 5489 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 5489 schema -struct> --- !query 5489 output -{1:1.0,2:2.0} - - --- !query 5490 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 5490 schema -struct> --- !query 5490 output -{1:1.0,2:2.0} - - --- !query 5491 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 5491 schema -struct> --- !query 5491 output -{1:1,2:2} - - --- !query 5492 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 5492 schema -struct> --- !query 5492 output -{1:"1",2:"2"} - - --- !query 5493 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 5493 schema -struct<> --- !query 5493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5494 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 5494 schema -struct<> --- !query 5494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5495 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5495 schema -struct<> --- !query 5495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5496 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5496 schema -struct<> --- !query 5496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5497 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 5497 schema -struct> --- !query 5497 output -{1:1,2:2} - - --- !query 5498 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 5498 schema -struct> --- !query 5498 output -{1:1,2:2} - - --- !query 5499 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 5499 schema -struct> --- !query 5499 output -{1:1,2:2} - - --- !query 5500 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 5500 schema -struct> --- !query 5500 output -{1:1,2:2} - - --- !query 5501 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 5501 schema -struct> --- !query 5501 output -{1:1.0,2:2.0} - - --- !query 5502 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 5502 schema -struct> --- !query 5502 output -{1:1.0,2:2.0} - - --- !query 5503 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 5503 schema -struct> --- !query 5503 output -{1:1,2:2} - - --- !query 5504 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 5504 schema -struct> --- !query 5504 output -{1:"1",2:"2"} - - --- !query 5505 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 5505 schema -struct<> --- !query 5505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5506 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 5506 schema -struct<> --- !query 5506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5507 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5507 schema -struct<> --- !query 5507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5508 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5508 schema -struct<> --- !query 5508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5509 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 5509 schema -struct> --- !query 5509 output -{1:1,2:2} - - --- !query 5510 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 5510 schema -struct> --- !query 5510 output -{1:1,2:2} - - --- !query 5511 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 5511 schema -struct> --- !query 5511 output -{1:1,2:2} - - --- !query 5512 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 5512 schema -struct> --- !query 5512 output -{1:1,2:2} - - --- !query 5513 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 5513 schema -struct> --- !query 5513 output -{1:1.0,2:2.0} - - --- !query 5514 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 5514 schema -struct> --- !query 5514 output -{1:1.0,2:2.0} - - --- !query 5515 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 5515 schema -struct> --- !query 5515 output -{1:1,2:2} - - --- !query 5516 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 5516 schema -struct> --- !query 5516 output -{1:"1",2:"2"} - - --- !query 5517 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 5517 schema -struct<> --- !query 5517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5518 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 5518 schema -struct<> --- !query 5518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5519 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5519 schema -struct<> --- !query 5519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5520 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5520 schema -struct<> --- !query 5520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5521 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 5521 schema -struct> --- !query 5521 output -{1.0:1,2.0:2} - - --- !query 5522 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 5522 schema -struct> --- !query 5522 output -{1.0:1,2.0:2} - - --- !query 5523 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 5523 schema -struct> --- !query 5523 output -{1.0:1,2.0:2} - - --- !query 5524 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 5524 schema -struct> --- !query 5524 output -{1.0:1,2.0:2} - - --- !query 5525 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 5525 schema -struct> --- !query 5525 output -{1.0:1.0,2.0:2.0} - - --- !query 5526 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 5526 schema -struct> --- !query 5526 output -{1.0:1.0,2.0:2.0} - - --- !query 5527 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 5527 schema -struct> --- !query 5527 output -{1.0:1,2.0:2} - - --- !query 5528 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 5528 schema -struct> --- !query 5528 output -{1.0:"1",2.0:"2"} - - --- !query 5529 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 5529 schema -struct<> --- !query 5529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5530 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 5530 schema -struct<> --- !query 5530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5531 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5531 schema -struct<> --- !query 5531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5532 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5532 schema -struct<> --- !query 5532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5533 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 5533 schema -struct> --- !query 5533 output -{1.0:1,2.0:2} - - --- !query 5534 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 5534 schema -struct> --- !query 5534 output -{1.0:1,2.0:2} - - --- !query 5535 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 5535 schema -struct> --- !query 5535 output -{1.0:1,2.0:2} - - --- !query 5536 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 5536 schema -struct> --- !query 5536 output -{1.0:1,2.0:2} - - --- !query 5537 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 5537 schema -struct> --- !query 5537 output -{1.0:1.0,2.0:2.0} - - --- !query 5538 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 5538 schema -struct> --- !query 5538 output -{1.0:1.0,2.0:2.0} - - --- !query 5539 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 5539 schema -struct> --- !query 5539 output -{1.0:1,2.0:2} - - --- !query 5540 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 5540 schema -struct> --- !query 5540 output -{1.0:"1",2.0:"2"} - - --- !query 5541 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 5541 schema -struct<> --- !query 5541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5542 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 5542 schema -struct<> --- !query 5542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5543 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5543 schema -struct<> --- !query 5543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5544 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5544 schema -struct<> --- !query 5544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5545 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 5545 schema -struct> --- !query 5545 output -{1:1,2:2} - - --- !query 5546 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 5546 schema -struct> --- !query 5546 output -{1:1,2:2} - - --- !query 5547 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 5547 schema -struct> --- !query 5547 output -{1:1,2:2} - - --- !query 5548 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 5548 schema -struct> --- !query 5548 output -{1:1,2:2} - - --- !query 5549 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 5549 schema -struct> --- !query 5549 output -{1:1.0,2:2.0} - - --- !query 5550 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 5550 schema -struct> --- !query 5550 output -{1:1.0,2:2.0} - - --- !query 5551 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 5551 schema -struct> --- !query 5551 output -{1:1,2:2} - - --- !query 5552 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 5552 schema -struct> --- !query 5552 output -{1:"1",2:"2"} - - --- !query 5553 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 5553 schema -struct<> --- !query 5553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5554 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 5554 schema -struct<> --- !query 5554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5555 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5555 schema -struct<> --- !query 5555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5556 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5556 schema -struct<> --- !query 5556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5557 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 5557 schema -struct> --- !query 5557 output -{"1":1,"2":2} - - --- !query 5558 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 5558 schema -struct> --- !query 5558 output -{"1":1,"2":2} - - --- !query 5559 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 5559 schema -struct> --- !query 5559 output -{"1":1,"2":2} - - --- !query 5560 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 5560 schema -struct> --- !query 5560 output -{"1":1,"2":2} - - --- !query 5561 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 5561 schema -struct> --- !query 5561 output -{"1":1.0,"2":2.0} - - --- !query 5562 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 5562 schema -struct> --- !query 5562 output -{"1":1.0,"2":2.0} - - --- !query 5563 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 5563 schema -struct> --- !query 5563 output -{"1":1,"2":2} - - --- !query 5564 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 5564 schema -struct> --- !query 5564 output -{"1":"1","2":"2"} - - --- !query 5565 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 5565 schema -struct<> --- !query 5565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 5566 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 5566 schema -struct<> --- !query 5566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 5567 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5567 schema -struct<> --- !query 5567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 5568 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5568 schema -struct<> --- !query 5568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 5569 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 5569 schema -struct<> --- !query 5569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5570 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 5570 schema -struct<> --- !query 5570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5571 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 5571 schema -struct<> --- !query 5571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5572 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 5572 schema -struct<> --- !query 5572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5573 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 5573 schema -struct<> --- !query 5573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5574 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 5574 schema -struct<> --- !query 5574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5575 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 5575 schema -struct<> --- !query 5575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5576 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 5576 schema -struct<> --- !query 5576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5577 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 5577 schema -struct<> --- !query 5577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5578 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 5578 schema -struct<> --- !query 5578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5579 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5579 schema -struct<> --- !query 5579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5580 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5580 schema -struct<> --- !query 5580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5581 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 5581 schema -struct<> --- !query 5581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5582 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 5582 schema -struct<> --- !query 5582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5583 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 5583 schema -struct<> --- !query 5583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5584 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 5584 schema -struct<> --- !query 5584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5585 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 5585 schema -struct<> --- !query 5585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5586 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 5586 schema -struct<> --- !query 5586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5587 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 5587 schema -struct<> --- !query 5587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5588 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 5588 schema -struct<> --- !query 5588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5589 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 5589 schema -struct<> --- !query 5589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5590 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 5590 schema -struct<> --- !query 5590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5591 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5591 schema -struct<> --- !query 5591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5592 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5592 schema -struct<> --- !query 5592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5593 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 5593 schema -struct<> --- !query 5593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5594 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 5594 schema -struct<> --- !query 5594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5595 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 5595 schema -struct<> --- !query 5595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5596 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 5596 schema -struct<> --- !query 5596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5597 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 5597 schema -struct<> --- !query 5597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5598 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 5598 schema -struct<> --- !query 5598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5599 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 5599 schema -struct<> --- !query 5599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5600 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 5600 schema -struct<> --- !query 5600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5601 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 5601 schema -struct<> --- !query 5601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5602 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 5602 schema -struct<> --- !query 5602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5603 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5603 schema -struct<> --- !query 5603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5604 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5604 schema -struct<> --- !query 5604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5605 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 5605 schema -struct<> --- !query 5605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5606 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 5606 schema -struct<> --- !query 5606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5607 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 5607 schema -struct<> --- !query 5607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5608 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 5608 schema -struct<> --- !query 5608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5609 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 5609 schema -struct<> --- !query 5609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5610 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 5610 schema -struct<> --- !query 5610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5611 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 5611 schema -struct<> --- !query 5611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5612 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 5612 schema -struct<> --- !query 5612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5613 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 5613 schema -struct<> --- !query 5613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5614 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 5614 schema -struct<> --- !query 5614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5615 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5615 schema -struct<> --- !query 5615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5616 -SELECT map(cast(1 as bigint), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5616 schema -struct<> --- !query 5616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5617 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 5617 schema -struct> --- !query 5617 output -{1:1,2:2} - - --- !query 5618 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 5618 schema -struct> --- !query 5618 output -{1:1,2:2} - - --- !query 5619 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 5619 schema -struct> --- !query 5619 output -{1:1,2:2} - - --- !query 5620 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 5620 schema -struct> --- !query 5620 output -{1:1,2:2} - - --- !query 5621 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 5621 schema -struct> --- !query 5621 output -{1:1.0,2:2.0} - - --- !query 5622 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 5622 schema -struct> --- !query 5622 output -{1:1.0,2:2.0} - - --- !query 5623 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 5623 schema -struct> --- !query 5623 output -{1:1,2:2} - - --- !query 5624 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 5624 schema -struct> --- !query 5624 output -{1:"1",2:"2"} - - --- !query 5625 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 5625 schema -struct<> --- !query 5625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5626 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 5626 schema -struct<> --- !query 5626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5627 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5627 schema -struct<> --- !query 5627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5628 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5628 schema -struct<> --- !query 5628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5629 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 5629 schema -struct> --- !query 5629 output -{1:1,2:2} - - --- !query 5630 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 5630 schema -struct> --- !query 5630 output -{1:1,2:2} - - --- !query 5631 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 5631 schema -struct> --- !query 5631 output -{1:1,2:2} - - --- !query 5632 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 5632 schema -struct> --- !query 5632 output -{1:1,2:2} - - --- !query 5633 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 5633 schema -struct> --- !query 5633 output -{1:1.0,2:2.0} - - --- !query 5634 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 5634 schema -struct> --- !query 5634 output -{1:1.0,2:2.0} - - --- !query 5635 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 5635 schema -struct> --- !query 5635 output -{1:1,2:2} - - --- !query 5636 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 5636 schema -struct> --- !query 5636 output -{1:"1",2:"2"} - - --- !query 5637 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 5637 schema -struct<> --- !query 5637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5638 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 5638 schema -struct<> --- !query 5638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5639 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5639 schema -struct<> --- !query 5639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5640 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5640 schema -struct<> --- !query 5640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5641 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 5641 schema -struct> --- !query 5641 output -{1:1,2:2} - - --- !query 5642 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 5642 schema -struct> --- !query 5642 output -{1:1,2:2} - - --- !query 5643 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 5643 schema -struct> --- !query 5643 output -{1:1,2:2} - - --- !query 5644 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 5644 schema -struct> --- !query 5644 output -{1:1,2:2} - - --- !query 5645 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 5645 schema -struct> --- !query 5645 output -{1:1.0,2:2.0} - - --- !query 5646 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 5646 schema -struct> --- !query 5646 output -{1:1.0,2:2.0} - - --- !query 5647 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 5647 schema -struct> --- !query 5647 output -{1:1,2:2} - - --- !query 5648 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 5648 schema -struct> --- !query 5648 output -{1:"1",2:"2"} - - --- !query 5649 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 5649 schema -struct<> --- !query 5649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5650 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 5650 schema -struct<> --- !query 5650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5651 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5651 schema -struct<> --- !query 5651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5652 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5652 schema -struct<> --- !query 5652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5653 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 5653 schema -struct> --- !query 5653 output -{1:1,2:2} - - --- !query 5654 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 5654 schema -struct> --- !query 5654 output -{1:1,2:2} - - --- !query 5655 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 5655 schema -struct> --- !query 5655 output -{1:1,2:2} - - --- !query 5656 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 5656 schema -struct> --- !query 5656 output -{1:1,2:2} - - --- !query 5657 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 5657 schema -struct> --- !query 5657 output -{1:1.0,2:2.0} - - --- !query 5658 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 5658 schema -struct> --- !query 5658 output -{1:1.0,2:2.0} - - --- !query 5659 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 5659 schema -struct> --- !query 5659 output -{1:1,2:2} - - --- !query 5660 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 5660 schema -struct> --- !query 5660 output -{1:"1",2:"2"} - - --- !query 5661 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 5661 schema -struct<> --- !query 5661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5662 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 5662 schema -struct<> --- !query 5662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5663 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5663 schema -struct<> --- !query 5663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5664 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5664 schema -struct<> --- !query 5664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5665 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 5665 schema -struct> --- !query 5665 output -{1.0:1,2.0:2} - - --- !query 5666 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 5666 schema -struct> --- !query 5666 output -{1.0:1,2.0:2} - - --- !query 5667 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 5667 schema -struct> --- !query 5667 output -{1.0:1,2.0:2} - - --- !query 5668 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 5668 schema -struct> --- !query 5668 output -{1.0:1,2.0:2} - - --- !query 5669 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 5669 schema -struct> --- !query 5669 output -{1.0:1.0,2.0:2.0} - - --- !query 5670 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 5670 schema -struct> --- !query 5670 output -{1.0:1.0,2.0:2.0} - - --- !query 5671 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 5671 schema -struct> --- !query 5671 output -{1.0:1,2.0:2} - - --- !query 5672 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 5672 schema -struct> --- !query 5672 output -{1.0:"1",2.0:"2"} - - --- !query 5673 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 5673 schema -struct<> --- !query 5673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5674 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 5674 schema -struct<> --- !query 5674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5675 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5675 schema -struct<> --- !query 5675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5676 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5676 schema -struct<> --- !query 5676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5677 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 5677 schema -struct> --- !query 5677 output -{1.0:1,2.0:2} - - --- !query 5678 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 5678 schema -struct> --- !query 5678 output -{1.0:1,2.0:2} - - --- !query 5679 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 5679 schema -struct> --- !query 5679 output -{1.0:1,2.0:2} - - --- !query 5680 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 5680 schema -struct> --- !query 5680 output -{1.0:1,2.0:2} - - --- !query 5681 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 5681 schema -struct> --- !query 5681 output -{1.0:1.0,2.0:2.0} - - --- !query 5682 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 5682 schema -struct> --- !query 5682 output -{1.0:1.0,2.0:2.0} - - --- !query 5683 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 5683 schema -struct> --- !query 5683 output -{1.0:1,2.0:2} - - --- !query 5684 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 5684 schema -struct> --- !query 5684 output -{1.0:"1",2.0:"2"} - - --- !query 5685 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 5685 schema -struct<> --- !query 5685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5686 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 5686 schema -struct<> --- !query 5686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5687 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5687 schema -struct<> --- !query 5687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5688 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5688 schema -struct<> --- !query 5688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5689 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 5689 schema -struct> --- !query 5689 output -{1:1,2:2} - - --- !query 5690 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 5690 schema -struct> --- !query 5690 output -{1:1,2:2} - - --- !query 5691 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 5691 schema -struct> --- !query 5691 output -{1:1,2:2} - - --- !query 5692 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 5692 schema -struct> --- !query 5692 output -{1:1,2:2} - - --- !query 5693 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 5693 schema -struct> --- !query 5693 output -{1:1.0,2:2.0} - - --- !query 5694 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 5694 schema -struct> --- !query 5694 output -{1:1.0,2:2.0} - - --- !query 5695 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 5695 schema -struct> --- !query 5695 output -{1:1,2:2} - - --- !query 5696 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 5696 schema -struct> --- !query 5696 output -{1:"1",2:"2"} - - --- !query 5697 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 5697 schema -struct<> --- !query 5697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5698 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 5698 schema -struct<> --- !query 5698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5699 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5699 schema -struct<> --- !query 5699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5700 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5700 schema -struct<> --- !query 5700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5701 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 5701 schema -struct> --- !query 5701 output -{"1":1,"2":2} - - --- !query 5702 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 5702 schema -struct> --- !query 5702 output -{"1":1,"2":2} - - --- !query 5703 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 5703 schema -struct> --- !query 5703 output -{"1":1,"2":2} - - --- !query 5704 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 5704 schema -struct> --- !query 5704 output -{"1":1,"2":2} - - --- !query 5705 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 5705 schema -struct> --- !query 5705 output -{"1":1.0,"2":2.0} - - --- !query 5706 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 5706 schema -struct> --- !query 5706 output -{"1":1.0,"2":2.0} - - --- !query 5707 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 5707 schema -struct> --- !query 5707 output -{"1":1,"2":2} - - --- !query 5708 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 5708 schema -struct> --- !query 5708 output -{"1":"1","2":"2"} - - --- !query 5709 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 5709 schema -struct<> --- !query 5709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 5710 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 5710 schema -struct<> --- !query 5710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 5711 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5711 schema -struct<> --- !query 5711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 5712 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5712 schema -struct<> --- !query 5712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 5713 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 5713 schema -struct<> --- !query 5713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5714 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 5714 schema -struct<> --- !query 5714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5715 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 5715 schema -struct<> --- !query 5715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5716 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 5716 schema -struct<> --- !query 5716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5717 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 5717 schema -struct<> --- !query 5717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5718 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 5718 schema -struct<> --- !query 5718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5719 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 5719 schema -struct<> --- !query 5719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5720 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 5720 schema -struct<> --- !query 5720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5721 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 5721 schema -struct<> --- !query 5721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5722 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 5722 schema -struct<> --- !query 5722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5723 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5723 schema -struct<> --- !query 5723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5724 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5724 schema -struct<> --- !query 5724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5725 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 5725 schema -struct<> --- !query 5725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5726 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 5726 schema -struct<> --- !query 5726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5727 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 5727 schema -struct<> --- !query 5727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5728 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 5728 schema -struct<> --- !query 5728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5729 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 5729 schema -struct<> --- !query 5729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5730 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 5730 schema -struct<> --- !query 5730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5731 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 5731 schema -struct<> --- !query 5731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5732 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 5732 schema -struct<> --- !query 5732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5733 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 5733 schema -struct<> --- !query 5733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5734 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 5734 schema -struct<> --- !query 5734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5735 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5735 schema -struct<> --- !query 5735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5736 -SELECT map(cast(1 as bigint), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5736 schema -struct<> --- !query 5736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5737 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 5737 schema -struct<> --- !query 5737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5738 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 5738 schema -struct<> --- !query 5738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5739 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 5739 schema -struct<> --- !query 5739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5740 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 5740 schema -struct<> --- !query 5740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5741 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 5741 schema -struct<> --- !query 5741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5742 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 5742 schema -struct<> --- !query 5742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5743 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 5743 schema -struct<> --- !query 5743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5744 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 5744 schema -struct<> --- !query 5744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5745 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 5745 schema -struct<> --- !query 5745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5746 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 5746 schema -struct<> --- !query 5746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5747 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5747 schema -struct<> --- !query 5747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5748 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5748 schema -struct<> --- !query 5748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5749 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 5749 schema -struct<> --- !query 5749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5750 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 5750 schema -struct<> --- !query 5750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5751 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 5751 schema -struct<> --- !query 5751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5752 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 5752 schema -struct<> --- !query 5752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5753 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 5753 schema -struct<> --- !query 5753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5754 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 5754 schema -struct<> --- !query 5754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5755 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 5755 schema -struct<> --- !query 5755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5756 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 5756 schema -struct<> --- !query 5756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5757 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 5757 schema -struct<> --- !query 5757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5758 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 5758 schema -struct<> --- !query 5758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5759 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5759 schema -struct<> --- !query 5759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5760 -SELECT map(cast(1 as bigint), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5760 schema -struct<> --- !query 5760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5761 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 5761 schema -struct> --- !query 5761 output -{1:1,2:2} - - --- !query 5762 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 5762 schema -struct> --- !query 5762 output -{1:1,2:2} - - --- !query 5763 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 5763 schema -struct> --- !query 5763 output -{1:1,2:2} - - --- !query 5764 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 5764 schema -struct> --- !query 5764 output -{1:1,2:2} - - --- !query 5765 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 5765 schema -struct> --- !query 5765 output -{1:1.0,2:2.0} - - --- !query 5766 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 5766 schema -struct> --- !query 5766 output -{1:1.0,2:2.0} - - --- !query 5767 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 5767 schema -struct> --- !query 5767 output -{1:1,2:2} - - --- !query 5768 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 5768 schema -struct> --- !query 5768 output -{1:"1",2:"2"} - - --- !query 5769 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 5769 schema -struct<> --- !query 5769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5770 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 5770 schema -struct<> --- !query 5770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5771 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5771 schema -struct<> --- !query 5771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5772 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5772 schema -struct<> --- !query 5772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5773 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 5773 schema -struct> --- !query 5773 output -{1:1,2:2} - - --- !query 5774 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 5774 schema -struct> --- !query 5774 output -{1:1,2:2} - - --- !query 5775 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 5775 schema -struct> --- !query 5775 output -{1:1,2:2} - - --- !query 5776 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 5776 schema -struct> --- !query 5776 output -{1:1,2:2} - - --- !query 5777 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 5777 schema -struct> --- !query 5777 output -{1:1.0,2:2.0} - - --- !query 5778 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 5778 schema -struct> --- !query 5778 output -{1:1.0,2:2.0} - - --- !query 5779 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 5779 schema -struct> --- !query 5779 output -{1:1,2:2} - - --- !query 5780 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 5780 schema -struct> --- !query 5780 output -{1:"1",2:"2"} - - --- !query 5781 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 5781 schema -struct<> --- !query 5781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5782 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 5782 schema -struct<> --- !query 5782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5783 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5783 schema -struct<> --- !query 5783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5784 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5784 schema -struct<> --- !query 5784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5785 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 5785 schema -struct> --- !query 5785 output -{1:1,2:2} - - --- !query 5786 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 5786 schema -struct> --- !query 5786 output -{1:1,2:2} - - --- !query 5787 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 5787 schema -struct> --- !query 5787 output -{1:1,2:2} - - --- !query 5788 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 5788 schema -struct> --- !query 5788 output -{1:1,2:2} - - --- !query 5789 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 5789 schema -struct> --- !query 5789 output -{1:1.0,2:2.0} - - --- !query 5790 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 5790 schema -struct> --- !query 5790 output -{1:1.0,2:2.0} - - --- !query 5791 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 5791 schema -struct> --- !query 5791 output -{1:1,2:2} - - --- !query 5792 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 5792 schema -struct> --- !query 5792 output -{1:"1",2:"2"} - - --- !query 5793 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 5793 schema -struct<> --- !query 5793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5794 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 5794 schema -struct<> --- !query 5794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5795 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5795 schema -struct<> --- !query 5795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5796 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5796 schema -struct<> --- !query 5796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5797 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 5797 schema -struct> --- !query 5797 output -{1:1,2:2} - - --- !query 5798 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 5798 schema -struct> --- !query 5798 output -{1:1,2:2} - - --- !query 5799 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 5799 schema -struct> --- !query 5799 output -{1:1,2:2} - - --- !query 5800 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 5800 schema -struct> --- !query 5800 output -{1:1,2:2} - - --- !query 5801 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 5801 schema -struct> --- !query 5801 output -{1:1.0,2:2.0} - - --- !query 5802 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 5802 schema -struct> --- !query 5802 output -{1:1.0,2:2.0} - - --- !query 5803 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 5803 schema -struct> --- !query 5803 output -{1:1,2:2} - - --- !query 5804 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 5804 schema -struct> --- !query 5804 output -{1:"1",2:"2"} - - --- !query 5805 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 5805 schema -struct<> --- !query 5805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5806 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 5806 schema -struct<> --- !query 5806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5807 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5807 schema -struct<> --- !query 5807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5808 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5808 schema -struct<> --- !query 5808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5809 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 5809 schema -struct> --- !query 5809 output -{1.0:1,2.0:2} - - --- !query 5810 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 5810 schema -struct> --- !query 5810 output -{1.0:1,2.0:2} - - --- !query 5811 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 5811 schema -struct> --- !query 5811 output -{1.0:1,2.0:2} - - --- !query 5812 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 5812 schema -struct> --- !query 5812 output -{1.0:1,2.0:2} - - --- !query 5813 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 5813 schema -struct> --- !query 5813 output -{1.0:1.0,2.0:2.0} - - --- !query 5814 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 5814 schema -struct> --- !query 5814 output -{1.0:1.0,2.0:2.0} - - --- !query 5815 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 5815 schema -struct> --- !query 5815 output -{1.0:1,2.0:2} - - --- !query 5816 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 5816 schema -struct> --- !query 5816 output -{1.0:"1",2.0:"2"} - - --- !query 5817 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 5817 schema -struct<> --- !query 5817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5818 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 5818 schema -struct<> --- !query 5818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5819 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5819 schema -struct<> --- !query 5819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5820 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5820 schema -struct<> --- !query 5820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5821 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 5821 schema -struct> --- !query 5821 output -{1.0:1,2.0:2} - - --- !query 5822 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 5822 schema -struct> --- !query 5822 output -{1.0:1,2.0:2} - - --- !query 5823 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 5823 schema -struct> --- !query 5823 output -{1.0:1,2.0:2} - - --- !query 5824 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 5824 schema -struct> --- !query 5824 output -{1.0:1,2.0:2} - - --- !query 5825 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 5825 schema -struct> --- !query 5825 output -{1.0:1.0,2.0:2.0} - - --- !query 5826 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 5826 schema -struct> --- !query 5826 output -{1.0:1.0,2.0:2.0} - - --- !query 5827 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 5827 schema -struct> --- !query 5827 output -{1.0:1,2.0:2} - - --- !query 5828 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 5828 schema -struct> --- !query 5828 output -{1.0:"1",2.0:"2"} - - --- !query 5829 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 5829 schema -struct<> --- !query 5829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5830 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 5830 schema -struct<> --- !query 5830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5831 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5831 schema -struct<> --- !query 5831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5832 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5832 schema -struct<> --- !query 5832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5833 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 5833 schema -struct> --- !query 5833 output -{1:1,2:2} - - --- !query 5834 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 5834 schema -struct> --- !query 5834 output -{1:1,2:2} - - --- !query 5835 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 5835 schema -struct> --- !query 5835 output -{1:1,2:2} - - --- !query 5836 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 5836 schema -struct> --- !query 5836 output -{1:1,2:2} - - --- !query 5837 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 5837 schema -struct> --- !query 5837 output -{1:1.0,2:2.0} - - --- !query 5838 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 5838 schema -struct> --- !query 5838 output -{1:1.0,2:2.0} - - --- !query 5839 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 5839 schema -struct> --- !query 5839 output -{1:1,2:2} - - --- !query 5840 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 5840 schema -struct> --- !query 5840 output -{1:"1",2:"2"} - - --- !query 5841 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 5841 schema -struct<> --- !query 5841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5842 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 5842 schema -struct<> --- !query 5842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5843 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5843 schema -struct<> --- !query 5843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5844 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5844 schema -struct<> --- !query 5844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5845 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 5845 schema -struct> --- !query 5845 output -{"1":1,"2":2} - - --- !query 5846 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 5846 schema -struct> --- !query 5846 output -{"1":1,"2":2} - - --- !query 5847 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 5847 schema -struct> --- !query 5847 output -{"1":1,"2":2} - - --- !query 5848 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 5848 schema -struct> --- !query 5848 output -{"1":1,"2":2} - - --- !query 5849 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 5849 schema -struct> --- !query 5849 output -{"1":1.0,"2":2.0} - - --- !query 5850 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 5850 schema -struct> --- !query 5850 output -{"1":1.0,"2":2.0} - - --- !query 5851 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 5851 schema -struct> --- !query 5851 output -{"1":1,"2":2} - - --- !query 5852 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 5852 schema -struct> --- !query 5852 output -{"1":"1","2":"2"} - - --- !query 5853 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 5853 schema -struct<> --- !query 5853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5854 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 5854 schema -struct<> --- !query 5854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5855 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5855 schema -struct<> --- !query 5855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5856 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5856 schema -struct<> --- !query 5856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5857 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 5857 schema -struct<> --- !query 5857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5858 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 5858 schema -struct<> --- !query 5858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5859 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 5859 schema -struct<> --- !query 5859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5860 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 5860 schema -struct<> --- !query 5860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5861 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 5861 schema -struct<> --- !query 5861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5862 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 5862 schema -struct<> --- !query 5862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5863 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 5863 schema -struct<> --- !query 5863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5864 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 5864 schema -struct<> --- !query 5864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5865 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 5865 schema -struct<> --- !query 5865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5866 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 5866 schema -struct<> --- !query 5866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5867 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5867 schema -struct<> --- !query 5867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5868 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5868 schema -struct<> --- !query 5868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 5869 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 5869 schema -struct<> --- !query 5869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5870 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 5870 schema -struct<> --- !query 5870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5871 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 5871 schema -struct<> --- !query 5871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5872 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 5872 schema -struct<> --- !query 5872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5873 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 5873 schema -struct<> --- !query 5873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5874 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 5874 schema -struct<> --- !query 5874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5875 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 5875 schema -struct<> --- !query 5875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5876 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 5876 schema -struct<> --- !query 5876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5877 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 5877 schema -struct<> --- !query 5877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5878 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 5878 schema -struct<> --- !query 5878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5879 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5879 schema -struct<> --- !query 5879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5880 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5880 schema -struct<> --- !query 5880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 5881 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 5881 schema -struct<> --- !query 5881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5882 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 5882 schema -struct<> --- !query 5882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5883 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 5883 schema -struct<> --- !query 5883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5884 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 5884 schema -struct<> --- !query 5884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5885 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 5885 schema -struct<> --- !query 5885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5886 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 5886 schema -struct<> --- !query 5886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5887 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 5887 schema -struct<> --- !query 5887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5888 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 5888 schema -struct<> --- !query 5888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5889 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 5889 schema -struct<> --- !query 5889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5890 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 5890 schema -struct<> --- !query 5890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5891 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5891 schema -struct<> --- !query 5891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5892 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5892 schema -struct<> --- !query 5892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 5893 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 5893 schema -struct<> --- !query 5893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5894 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 5894 schema -struct<> --- !query 5894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5895 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 5895 schema -struct<> --- !query 5895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5896 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 5896 schema -struct<> --- !query 5896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5897 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 5897 schema -struct<> --- !query 5897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5898 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 5898 schema -struct<> --- !query 5898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5899 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 5899 schema -struct<> --- !query 5899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5900 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 5900 schema -struct<> --- !query 5900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5901 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 5901 schema -struct<> --- !query 5901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5902 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 5902 schema -struct<> --- !query 5902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5903 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5903 schema -struct<> --- !query 5903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5904 -SELECT map(cast(1 as bigint), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5904 schema -struct<> --- !query 5904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 5905 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 5905 schema -struct> --- !query 5905 output -{1:1.0,2:2.0} - - --- !query 5906 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 5906 schema -struct> --- !query 5906 output -{1:1.0,2:2.0} - - --- !query 5907 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 5907 schema -struct> --- !query 5907 output -{1:1.0,2:2.0} - - --- !query 5908 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 5908 schema -struct> --- !query 5908 output -{1:1.0,2:2.0} - - --- !query 5909 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 5909 schema -struct> --- !query 5909 output -{1:1.0,2:2.0} - - --- !query 5910 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 5910 schema -struct> --- !query 5910 output -{1:1.0,2:2.0} - - --- !query 5911 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 5911 schema -struct> --- !query 5911 output -{1:1.0,2:2.0} - - --- !query 5912 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 5912 schema -struct> --- !query 5912 output -{1:"1.0",2:"2"} - - --- !query 5913 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 5913 schema -struct<> --- !query 5913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5914 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 5914 schema -struct<> --- !query 5914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5915 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5915 schema -struct<> --- !query 5915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 5916 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5916 schema -struct<> --- !query 5916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 5917 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 5917 schema -struct> --- !query 5917 output -{1:1.0,2:2.0} - - --- !query 5918 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 5918 schema -struct> --- !query 5918 output -{1:1.0,2:2.0} - - --- !query 5919 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 5919 schema -struct> --- !query 5919 output -{1:1.0,2:2.0} - - --- !query 5920 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 5920 schema -struct> --- !query 5920 output -{1:1.0,2:2.0} - - --- !query 5921 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 5921 schema -struct> --- !query 5921 output -{1:1.0,2:2.0} - - --- !query 5922 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 5922 schema -struct> --- !query 5922 output -{1:1.0,2:2.0} - - --- !query 5923 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 5923 schema -struct> --- !query 5923 output -{1:1.0,2:2.0} - - --- !query 5924 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 5924 schema -struct> --- !query 5924 output -{1:"1.0",2:"2"} - - --- !query 5925 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 5925 schema -struct<> --- !query 5925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5926 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 5926 schema -struct<> --- !query 5926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5927 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5927 schema -struct<> --- !query 5927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 5928 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5928 schema -struct<> --- !query 5928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 5929 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 5929 schema -struct> --- !query 5929 output -{1:1.0,2:2.0} - - --- !query 5930 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 5930 schema -struct> --- !query 5930 output -{1:1.0,2:2.0} - - --- !query 5931 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 5931 schema -struct> --- !query 5931 output -{1:1.0,2:2.0} - - --- !query 5932 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 5932 schema -struct> --- !query 5932 output -{1:1.0,2:2.0} - - --- !query 5933 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 5933 schema -struct> --- !query 5933 output -{1:1.0,2:2.0} - - --- !query 5934 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 5934 schema -struct> --- !query 5934 output -{1:1.0,2:2.0} - - --- !query 5935 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 5935 schema -struct> --- !query 5935 output -{1:1.0,2:2.0} - - --- !query 5936 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 5936 schema -struct> --- !query 5936 output -{1:"1.0",2:"2"} - - --- !query 5937 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 5937 schema -struct<> --- !query 5937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5938 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 5938 schema -struct<> --- !query 5938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5939 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5939 schema -struct<> --- !query 5939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 5940 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5940 schema -struct<> --- !query 5940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 5941 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 5941 schema -struct> --- !query 5941 output -{1:1.0,2:2.0} - - --- !query 5942 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 5942 schema -struct> --- !query 5942 output -{1:1.0,2:2.0} - - --- !query 5943 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 5943 schema -struct> --- !query 5943 output -{1:1.0,2:2.0} - - --- !query 5944 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 5944 schema -struct> --- !query 5944 output -{1:1.0,2:2.0} - - --- !query 5945 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 5945 schema -struct> --- !query 5945 output -{1:1.0,2:2.0} - - --- !query 5946 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 5946 schema -struct> --- !query 5946 output -{1:1.0,2:2.0} - - --- !query 5947 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 5947 schema -struct> --- !query 5947 output -{1:1.0,2:2.0} - - --- !query 5948 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 5948 schema -struct> --- !query 5948 output -{1:"1.0",2:"2"} - - --- !query 5949 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 5949 schema -struct<> --- !query 5949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5950 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 5950 schema -struct<> --- !query 5950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5951 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5951 schema -struct<> --- !query 5951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 5952 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5952 schema -struct<> --- !query 5952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 5953 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 5953 schema -struct> --- !query 5953 output -{1.0:1.0,2.0:2.0} - - --- !query 5954 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 5954 schema -struct> --- !query 5954 output -{1.0:1.0,2.0:2.0} - - --- !query 5955 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 5955 schema -struct> --- !query 5955 output -{1.0:1.0,2.0:2.0} - - --- !query 5956 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 5956 schema -struct> --- !query 5956 output -{1.0:1.0,2.0:2.0} - - --- !query 5957 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 5957 schema -struct> --- !query 5957 output -{1.0:1.0,2.0:2.0} - - --- !query 5958 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 5958 schema -struct> --- !query 5958 output -{1.0:1.0,2.0:2.0} - - --- !query 5959 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 5959 schema -struct> --- !query 5959 output -{1.0:1.0,2.0:2.0} - - --- !query 5960 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 5960 schema -struct> --- !query 5960 output -{1.0:"1.0",2.0:"2"} - - --- !query 5961 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 5961 schema -struct<> --- !query 5961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5962 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 5962 schema -struct<> --- !query 5962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5963 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5963 schema -struct<> --- !query 5963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 5964 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5964 schema -struct<> --- !query 5964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 5965 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 5965 schema -struct> --- !query 5965 output -{1.0:1.0,2.0:2.0} - - --- !query 5966 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 5966 schema -struct> --- !query 5966 output -{1.0:1.0,2.0:2.0} - - --- !query 5967 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 5967 schema -struct> --- !query 5967 output -{1.0:1.0,2.0:2.0} - - --- !query 5968 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 5968 schema -struct> --- !query 5968 output -{1.0:1.0,2.0:2.0} - - --- !query 5969 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 5969 schema -struct> --- !query 5969 output -{1.0:1.0,2.0:2.0} - - --- !query 5970 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 5970 schema -struct> --- !query 5970 output -{1.0:1.0,2.0:2.0} - - --- !query 5971 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 5971 schema -struct> --- !query 5971 output -{1.0:1.0,2.0:2.0} - - --- !query 5972 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 5972 schema -struct> --- !query 5972 output -{1.0:"1.0",2.0:"2"} - - --- !query 5973 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 5973 schema -struct<> --- !query 5973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5974 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 5974 schema -struct<> --- !query 5974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5975 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5975 schema -struct<> --- !query 5975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 5976 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5976 schema -struct<> --- !query 5976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 5977 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 5977 schema -struct> --- !query 5977 output -{1:1.0,2:2.0} - - --- !query 5978 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 5978 schema -struct> --- !query 5978 output -{1:1.0,2:2.0} - - --- !query 5979 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 5979 schema -struct> --- !query 5979 output -{1:1.0,2:2.0} - - --- !query 5980 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 5980 schema -struct> --- !query 5980 output -{1:1.0,2:2.0} - - --- !query 5981 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 5981 schema -struct> --- !query 5981 output -{1:1.0,2:2.0} - - --- !query 5982 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 5982 schema -struct> --- !query 5982 output -{1:1.0,2:2.0} - - --- !query 5983 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 5983 schema -struct> --- !query 5983 output -{1:1.0,2:2.0} - - --- !query 5984 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 5984 schema -struct> --- !query 5984 output -{1:"1.0",2:"2"} - - --- !query 5985 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 5985 schema -struct<> --- !query 5985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5986 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 5986 schema -struct<> --- !query 5986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5987 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5987 schema -struct<> --- !query 5987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 5988 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 5988 schema -struct<> --- !query 5988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 5989 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 5989 schema -struct> --- !query 5989 output -{"1":1.0,"2":2.0} - - --- !query 5990 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 5990 schema -struct> --- !query 5990 output -{"1":1.0,"2":2.0} - - --- !query 5991 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 5991 schema -struct> --- !query 5991 output -{"1":1.0,"2":2.0} - - --- !query 5992 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 5992 schema -struct> --- !query 5992 output -{"1":1.0,"2":2.0} - - --- !query 5993 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 5993 schema -struct> --- !query 5993 output -{"1":1.0,"2":2.0} - - --- !query 5994 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 5994 schema -struct> --- !query 5994 output -{"1":1.0,"2":2.0} - - --- !query 5995 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 5995 schema -struct> --- !query 5995 output -{"1":1.0,"2":2.0} - - --- !query 5996 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 5996 schema -struct> --- !query 5996 output -{"1":"1.0","2":"2"} - - --- !query 5997 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 5997 schema -struct<> --- !query 5997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 5998 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 5998 schema -struct<> --- !query 5998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 5999 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 5999 schema -struct<> --- !query 5999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 6000 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6000 schema -struct<> --- !query 6000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 6001 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 6001 schema -struct<> --- !query 6001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6002 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 6002 schema -struct<> --- !query 6002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6003 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 6003 schema -struct<> --- !query 6003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6004 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 6004 schema -struct<> --- !query 6004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6005 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 6005 schema -struct<> --- !query 6005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6006 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 6006 schema -struct<> --- !query 6006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6007 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 6007 schema -struct<> --- !query 6007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6008 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 6008 schema -struct<> --- !query 6008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6009 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 6009 schema -struct<> --- !query 6009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6010 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 6010 schema -struct<> --- !query 6010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6011 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6011 schema -struct<> --- !query 6011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6012 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6012 schema -struct<> --- !query 6012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6013 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 6013 schema -struct<> --- !query 6013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6014 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 6014 schema -struct<> --- !query 6014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6015 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 6015 schema -struct<> --- !query 6015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6016 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 6016 schema -struct<> --- !query 6016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6017 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 6017 schema -struct<> --- !query 6017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6018 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 6018 schema -struct<> --- !query 6018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6019 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 6019 schema -struct<> --- !query 6019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6020 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 6020 schema -struct<> --- !query 6020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6021 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 6021 schema -struct<> --- !query 6021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6022 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 6022 schema -struct<> --- !query 6022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6023 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6023 schema -struct<> --- !query 6023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6024 -SELECT map(cast(1 as bigint), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6024 schema -struct<> --- !query 6024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6025 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 6025 schema -struct<> --- !query 6025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6026 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 6026 schema -struct<> --- !query 6026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6027 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 6027 schema -struct<> --- !query 6027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6028 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 6028 schema -struct<> --- !query 6028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6029 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 6029 schema -struct<> --- !query 6029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6030 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 6030 schema -struct<> --- !query 6030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6031 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 6031 schema -struct<> --- !query 6031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6032 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 6032 schema -struct<> --- !query 6032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6033 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 6033 schema -struct<> --- !query 6033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6034 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 6034 schema -struct<> --- !query 6034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6035 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6035 schema -struct<> --- !query 6035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6036 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6036 schema -struct<> --- !query 6036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6037 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 6037 schema -struct<> --- !query 6037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6038 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 6038 schema -struct<> --- !query 6038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6039 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 6039 schema -struct<> --- !query 6039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6040 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 6040 schema -struct<> --- !query 6040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6041 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 6041 schema -struct<> --- !query 6041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6042 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 6042 schema -struct<> --- !query 6042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6043 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 6043 schema -struct<> --- !query 6043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6044 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 6044 schema -struct<> --- !query 6044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6045 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 6045 schema -struct<> --- !query 6045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6046 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 6046 schema -struct<> --- !query 6046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6047 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6047 schema -struct<> --- !query 6047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6048 -SELECT map(cast(1 as bigint), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6048 schema -struct<> --- !query 6048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6049 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 6049 schema -struct> --- !query 6049 output -{1:1.0,2:2.0} - - --- !query 6050 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 6050 schema -struct> --- !query 6050 output -{1:1.0,2:2.0} - - --- !query 6051 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 6051 schema -struct> --- !query 6051 output -{1:1.0,2:2.0} - - --- !query 6052 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 6052 schema -struct> --- !query 6052 output -{1:1.0,2:2.0} - - --- !query 6053 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 6053 schema -struct> --- !query 6053 output -{1:1.0,2:2.0} - - --- !query 6054 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 6054 schema -struct> --- !query 6054 output -{1:1.0,2:2.0} - - --- !query 6055 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 6055 schema -struct> --- !query 6055 output -{1:1.0,2:2.0} - - --- !query 6056 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 6056 schema -struct> --- !query 6056 output -{1:"1.0",2:"2"} - - --- !query 6057 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 6057 schema -struct<> --- !query 6057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6058 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 6058 schema -struct<> --- !query 6058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6059 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6059 schema -struct<> --- !query 6059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6060 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6060 schema -struct<> --- !query 6060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6061 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 6061 schema -struct> --- !query 6061 output -{1:1.0,2:2.0} - - --- !query 6062 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 6062 schema -struct> --- !query 6062 output -{1:1.0,2:2.0} - - --- !query 6063 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 6063 schema -struct> --- !query 6063 output -{1:1.0,2:2.0} - - --- !query 6064 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 6064 schema -struct> --- !query 6064 output -{1:1.0,2:2.0} - - --- !query 6065 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 6065 schema -struct> --- !query 6065 output -{1:1.0,2:2.0} - - --- !query 6066 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 6066 schema -struct> --- !query 6066 output -{1:1.0,2:2.0} - - --- !query 6067 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 6067 schema -struct> --- !query 6067 output -{1:1.0,2:2.0} - - --- !query 6068 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 6068 schema -struct> --- !query 6068 output -{1:"1.0",2:"2"} - - --- !query 6069 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 6069 schema -struct<> --- !query 6069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6070 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 6070 schema -struct<> --- !query 6070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6071 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6071 schema -struct<> --- !query 6071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6072 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6072 schema -struct<> --- !query 6072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6073 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 6073 schema -struct> --- !query 6073 output -{1:1.0,2:2.0} - - --- !query 6074 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 6074 schema -struct> --- !query 6074 output -{1:1.0,2:2.0} - - --- !query 6075 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 6075 schema -struct> --- !query 6075 output -{1:1.0,2:2.0} - - --- !query 6076 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 6076 schema -struct> --- !query 6076 output -{1:1.0,2:2.0} - - --- !query 6077 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 6077 schema -struct> --- !query 6077 output -{1:1.0,2:2.0} - - --- !query 6078 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 6078 schema -struct> --- !query 6078 output -{1:1.0,2:2.0} - - --- !query 6079 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 6079 schema -struct> --- !query 6079 output -{1:1.0,2:2.0} - - --- !query 6080 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 6080 schema -struct> --- !query 6080 output -{1:"1.0",2:"2"} - - --- !query 6081 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 6081 schema -struct<> --- !query 6081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6082 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 6082 schema -struct<> --- !query 6082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6083 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6083 schema -struct<> --- !query 6083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6084 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6084 schema -struct<> --- !query 6084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6085 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 6085 schema -struct> --- !query 6085 output -{1:1.0,2:2.0} - - --- !query 6086 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 6086 schema -struct> --- !query 6086 output -{1:1.0,2:2.0} - - --- !query 6087 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 6087 schema -struct> --- !query 6087 output -{1:1.0,2:2.0} - - --- !query 6088 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 6088 schema -struct> --- !query 6088 output -{1:1.0,2:2.0} - - --- !query 6089 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 6089 schema -struct> --- !query 6089 output -{1:1.0,2:2.0} - - --- !query 6090 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 6090 schema -struct> --- !query 6090 output -{1:1.0,2:2.0} - - --- !query 6091 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 6091 schema -struct> --- !query 6091 output -{1:1.0,2:2.0} - - --- !query 6092 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 6092 schema -struct> --- !query 6092 output -{1:"1.0",2:"2"} - - --- !query 6093 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 6093 schema -struct<> --- !query 6093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6094 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 6094 schema -struct<> --- !query 6094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6095 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6095 schema -struct<> --- !query 6095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6096 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6096 schema -struct<> --- !query 6096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6097 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 6097 schema -struct> --- !query 6097 output -{1.0:1.0,2.0:2.0} - - --- !query 6098 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 6098 schema -struct> --- !query 6098 output -{1.0:1.0,2.0:2.0} - - --- !query 6099 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 6099 schema -struct> --- !query 6099 output -{1.0:1.0,2.0:2.0} - - --- !query 6100 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 6100 schema -struct> --- !query 6100 output -{1.0:1.0,2.0:2.0} - - --- !query 6101 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 6101 schema -struct> --- !query 6101 output -{1.0:1.0,2.0:2.0} - - --- !query 6102 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 6102 schema -struct> --- !query 6102 output -{1.0:1.0,2.0:2.0} - - --- !query 6103 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 6103 schema -struct> --- !query 6103 output -{1.0:1.0,2.0:2.0} - - --- !query 6104 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 6104 schema -struct> --- !query 6104 output -{1.0:"1.0",2.0:"2"} - - --- !query 6105 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 6105 schema -struct<> --- !query 6105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6106 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 6106 schema -struct<> --- !query 6106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6107 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6107 schema -struct<> --- !query 6107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6108 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6108 schema -struct<> --- !query 6108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6109 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 6109 schema -struct> --- !query 6109 output -{1.0:1.0,2.0:2.0} - - --- !query 6110 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 6110 schema -struct> --- !query 6110 output -{1.0:1.0,2.0:2.0} - - --- !query 6111 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 6111 schema -struct> --- !query 6111 output -{1.0:1.0,2.0:2.0} - - --- !query 6112 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 6112 schema -struct> --- !query 6112 output -{1.0:1.0,2.0:2.0} - - --- !query 6113 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 6113 schema -struct> --- !query 6113 output -{1.0:1.0,2.0:2.0} - - --- !query 6114 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 6114 schema -struct> --- !query 6114 output -{1.0:1.0,2.0:2.0} - - --- !query 6115 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 6115 schema -struct> --- !query 6115 output -{1.0:1.0,2.0:2.0} - - --- !query 6116 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 6116 schema -struct> --- !query 6116 output -{1.0:"1.0",2.0:"2"} - - --- !query 6117 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 6117 schema -struct<> --- !query 6117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6118 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 6118 schema -struct<> --- !query 6118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6119 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6119 schema -struct<> --- !query 6119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6120 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6120 schema -struct<> --- !query 6120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6121 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 6121 schema -struct> --- !query 6121 output -{1:1.0,2:2.0} - - --- !query 6122 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 6122 schema -struct> --- !query 6122 output -{1:1.0,2:2.0} - - --- !query 6123 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 6123 schema -struct> --- !query 6123 output -{1:1.0,2:2.0} - - --- !query 6124 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 6124 schema -struct> --- !query 6124 output -{1:1.0,2:2.0} - - --- !query 6125 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 6125 schema -struct> --- !query 6125 output -{1:1.0,2:2.0} - - --- !query 6126 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 6126 schema -struct> --- !query 6126 output -{1:1.0,2:2.0} - - --- !query 6127 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 6127 schema -struct> --- !query 6127 output -{1:1.0,2:2.0} - - --- !query 6128 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 6128 schema -struct> --- !query 6128 output -{1:"1.0",2:"2"} - - --- !query 6129 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 6129 schema -struct<> --- !query 6129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6130 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 6130 schema -struct<> --- !query 6130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6131 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6131 schema -struct<> --- !query 6131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6132 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6132 schema -struct<> --- !query 6132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6133 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 6133 schema -struct> --- !query 6133 output -{"1":1.0,"2":2.0} - - --- !query 6134 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 6134 schema -struct> --- !query 6134 output -{"1":1.0,"2":2.0} - - --- !query 6135 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 6135 schema -struct> --- !query 6135 output -{"1":1.0,"2":2.0} - - --- !query 6136 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 6136 schema -struct> --- !query 6136 output -{"1":1.0,"2":2.0} - - --- !query 6137 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 6137 schema -struct> --- !query 6137 output -{"1":1.0,"2":2.0} - - --- !query 6138 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 6138 schema -struct> --- !query 6138 output -{"1":1.0,"2":2.0} - - --- !query 6139 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 6139 schema -struct> --- !query 6139 output -{"1":1.0,"2":2.0} - - --- !query 6140 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 6140 schema -struct> --- !query 6140 output -{"1":"1.0","2":"2"} - - --- !query 6141 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 6141 schema -struct<> --- !query 6141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 6142 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 6142 schema -struct<> --- !query 6142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 6143 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6143 schema -struct<> --- !query 6143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 6144 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6144 schema -struct<> --- !query 6144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 6145 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 6145 schema -struct<> --- !query 6145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6146 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 6146 schema -struct<> --- !query 6146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6147 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 6147 schema -struct<> --- !query 6147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6148 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 6148 schema -struct<> --- !query 6148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6149 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 6149 schema -struct<> --- !query 6149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6150 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 6150 schema -struct<> --- !query 6150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6151 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 6151 schema -struct<> --- !query 6151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6152 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 6152 schema -struct<> --- !query 6152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6153 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 6153 schema -struct<> --- !query 6153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6154 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 6154 schema -struct<> --- !query 6154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6155 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6155 schema -struct<> --- !query 6155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6156 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6156 schema -struct<> --- !query 6156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6157 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 6157 schema -struct<> --- !query 6157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6158 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 6158 schema -struct<> --- !query 6158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6159 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 6159 schema -struct<> --- !query 6159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6160 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 6160 schema -struct<> --- !query 6160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6161 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 6161 schema -struct<> --- !query 6161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6162 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 6162 schema -struct<> --- !query 6162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6163 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 6163 schema -struct<> --- !query 6163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6164 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 6164 schema -struct<> --- !query 6164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6165 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 6165 schema -struct<> --- !query 6165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6166 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 6166 schema -struct<> --- !query 6166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6167 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6167 schema -struct<> --- !query 6167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6168 -SELECT map(cast(1 as bigint), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6168 schema -struct<> --- !query 6168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6169 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 6169 schema -struct<> --- !query 6169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6170 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 6170 schema -struct<> --- !query 6170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6171 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 6171 schema -struct<> --- !query 6171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6172 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 6172 schema -struct<> --- !query 6172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6173 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 6173 schema -struct<> --- !query 6173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6174 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 6174 schema -struct<> --- !query 6174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6175 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 6175 schema -struct<> --- !query 6175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6176 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 6176 schema -struct<> --- !query 6176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6177 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 6177 schema -struct<> --- !query 6177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6178 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 6178 schema -struct<> --- !query 6178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6179 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6179 schema -struct<> --- !query 6179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6180 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6180 schema -struct<> --- !query 6180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6181 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 6181 schema -struct<> --- !query 6181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6182 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 6182 schema -struct<> --- !query 6182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6183 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 6183 schema -struct<> --- !query 6183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6184 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 6184 schema -struct<> --- !query 6184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6185 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 6185 schema -struct<> --- !query 6185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6186 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 6186 schema -struct<> --- !query 6186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6187 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 6187 schema -struct<> --- !query 6187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6188 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 6188 schema -struct<> --- !query 6188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6189 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 6189 schema -struct<> --- !query 6189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6190 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 6190 schema -struct<> --- !query 6190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6191 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6191 schema -struct<> --- !query 6191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6192 -SELECT map(cast(1 as bigint), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6192 schema -struct<> --- !query 6192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6193 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 6193 schema -struct> --- !query 6193 output -{1:1,2:2} - - --- !query 6194 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 6194 schema -struct> --- !query 6194 output -{1:1,2:2} - - --- !query 6195 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 6195 schema -struct> --- !query 6195 output -{1:1,2:2} - - --- !query 6196 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 6196 schema -struct> --- !query 6196 output -{1:1,2:2} - - --- !query 6197 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 6197 schema -struct> --- !query 6197 output -{1:1.0,2:2.0} - - --- !query 6198 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 6198 schema -struct> --- !query 6198 output -{1:1.0,2:2.0} - - --- !query 6199 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 6199 schema -struct> --- !query 6199 output -{1:1,2:2} - - --- !query 6200 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 6200 schema -struct> --- !query 6200 output -{1:"1",2:"2"} - - --- !query 6201 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 6201 schema -struct<> --- !query 6201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6202 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 6202 schema -struct<> --- !query 6202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6203 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6203 schema -struct<> --- !query 6203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6204 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6204 schema -struct<> --- !query 6204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6205 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 6205 schema -struct> --- !query 6205 output -{1:1,2:2} - - --- !query 6206 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 6206 schema -struct> --- !query 6206 output -{1:1,2:2} - - --- !query 6207 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 6207 schema -struct> --- !query 6207 output -{1:1,2:2} - - --- !query 6208 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 6208 schema -struct> --- !query 6208 output -{1:1,2:2} - - --- !query 6209 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 6209 schema -struct> --- !query 6209 output -{1:1.0,2:2.0} - - --- !query 6210 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 6210 schema -struct> --- !query 6210 output -{1:1.0,2:2.0} - - --- !query 6211 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 6211 schema -struct> --- !query 6211 output -{1:1,2:2} - - --- !query 6212 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 6212 schema -struct> --- !query 6212 output -{1:"1",2:"2"} - - --- !query 6213 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 6213 schema -struct<> --- !query 6213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6214 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 6214 schema -struct<> --- !query 6214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6215 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6215 schema -struct<> --- !query 6215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6216 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6216 schema -struct<> --- !query 6216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6217 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 6217 schema -struct> --- !query 6217 output -{1:1,2:2} - - --- !query 6218 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 6218 schema -struct> --- !query 6218 output -{1:1,2:2} - - --- !query 6219 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 6219 schema -struct> --- !query 6219 output -{1:1,2:2} - - --- !query 6220 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 6220 schema -struct> --- !query 6220 output -{1:1,2:2} - - --- !query 6221 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 6221 schema -struct> --- !query 6221 output -{1:1.0,2:2.0} - - --- !query 6222 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 6222 schema -struct> --- !query 6222 output -{1:1.0,2:2.0} - - --- !query 6223 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 6223 schema -struct> --- !query 6223 output -{1:1,2:2} - - --- !query 6224 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 6224 schema -struct> --- !query 6224 output -{1:"1",2:"2"} - - --- !query 6225 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 6225 schema -struct<> --- !query 6225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6226 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 6226 schema -struct<> --- !query 6226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6227 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6227 schema -struct<> --- !query 6227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6228 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6228 schema -struct<> --- !query 6228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6229 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 6229 schema -struct> --- !query 6229 output -{1:1,2:2} - - --- !query 6230 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 6230 schema -struct> --- !query 6230 output -{1:1,2:2} - - --- !query 6231 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 6231 schema -struct> --- !query 6231 output -{1:1,2:2} - - --- !query 6232 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 6232 schema -struct> --- !query 6232 output -{1:1,2:2} - - --- !query 6233 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 6233 schema -struct> --- !query 6233 output -{1:1.0,2:2.0} - - --- !query 6234 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 6234 schema -struct> --- !query 6234 output -{1:1.0,2:2.0} - - --- !query 6235 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 6235 schema -struct> --- !query 6235 output -{1:1,2:2} - - --- !query 6236 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 6236 schema -struct> --- !query 6236 output -{1:"1",2:"2"} - - --- !query 6237 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 6237 schema -struct<> --- !query 6237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6238 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 6238 schema -struct<> --- !query 6238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6239 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6239 schema -struct<> --- !query 6239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6240 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6240 schema -struct<> --- !query 6240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6241 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 6241 schema -struct> --- !query 6241 output -{1.0:1,2.0:2} - - --- !query 6242 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 6242 schema -struct> --- !query 6242 output -{1.0:1,2.0:2} - - --- !query 6243 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 6243 schema -struct> --- !query 6243 output -{1.0:1,2.0:2} - - --- !query 6244 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 6244 schema -struct> --- !query 6244 output -{1.0:1,2.0:2} - - --- !query 6245 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 6245 schema -struct> --- !query 6245 output -{1.0:1.0,2.0:2.0} - - --- !query 6246 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 6246 schema -struct> --- !query 6246 output -{1.0:1.0,2.0:2.0} - - --- !query 6247 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 6247 schema -struct> --- !query 6247 output -{1.0:1,2.0:2} - - --- !query 6248 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 6248 schema -struct> --- !query 6248 output -{1.0:"1",2.0:"2"} - - --- !query 6249 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 6249 schema -struct<> --- !query 6249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6250 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 6250 schema -struct<> --- !query 6250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6251 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6251 schema -struct<> --- !query 6251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6252 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6252 schema -struct<> --- !query 6252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6253 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 6253 schema -struct> --- !query 6253 output -{1.0:1,2.0:2} - - --- !query 6254 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 6254 schema -struct> --- !query 6254 output -{1.0:1,2.0:2} - - --- !query 6255 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 6255 schema -struct> --- !query 6255 output -{1.0:1,2.0:2} - - --- !query 6256 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 6256 schema -struct> --- !query 6256 output -{1.0:1,2.0:2} - - --- !query 6257 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 6257 schema -struct> --- !query 6257 output -{1.0:1.0,2.0:2.0} - - --- !query 6258 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 6258 schema -struct> --- !query 6258 output -{1.0:1.0,2.0:2.0} - - --- !query 6259 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 6259 schema -struct> --- !query 6259 output -{1.0:1,2.0:2} - - --- !query 6260 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 6260 schema -struct> --- !query 6260 output -{1.0:"1",2.0:"2"} - - --- !query 6261 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 6261 schema -struct<> --- !query 6261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6262 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 6262 schema -struct<> --- !query 6262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6263 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6263 schema -struct<> --- !query 6263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6264 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6264 schema -struct<> --- !query 6264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6265 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 6265 schema -struct> --- !query 6265 output -{1:1,2:2} - - --- !query 6266 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 6266 schema -struct> --- !query 6266 output -{1:1,2:2} - - --- !query 6267 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 6267 schema -struct> --- !query 6267 output -{1:1,2:2} - - --- !query 6268 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 6268 schema -struct> --- !query 6268 output -{1:1,2:2} - - --- !query 6269 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 6269 schema -struct> --- !query 6269 output -{1:1.0,2:2.0} - - --- !query 6270 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 6270 schema -struct> --- !query 6270 output -{1:1.0,2:2.0} - - --- !query 6271 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 6271 schema -struct> --- !query 6271 output -{1:1,2:2} - - --- !query 6272 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 6272 schema -struct> --- !query 6272 output -{1:"1",2:"2"} - - --- !query 6273 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 6273 schema -struct<> --- !query 6273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6274 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 6274 schema -struct<> --- !query 6274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6275 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6275 schema -struct<> --- !query 6275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6276 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6276 schema -struct<> --- !query 6276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6277 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 6277 schema -struct> --- !query 6277 output -{"1":1,"2":2} - - --- !query 6278 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 6278 schema -struct> --- !query 6278 output -{"1":1,"2":2} - - --- !query 6279 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 6279 schema -struct> --- !query 6279 output -{"1":1,"2":2} - - --- !query 6280 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 6280 schema -struct> --- !query 6280 output -{"1":1,"2":2} - - --- !query 6281 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 6281 schema -struct> --- !query 6281 output -{"1":1.0,"2":2.0} - - --- !query 6282 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 6282 schema -struct> --- !query 6282 output -{"1":1.0,"2":2.0} - - --- !query 6283 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 6283 schema -struct> --- !query 6283 output -{"1":1,"2":2} - - --- !query 6284 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 6284 schema -struct> --- !query 6284 output -{"1":"1","2":"2"} - - --- !query 6285 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 6285 schema -struct<> --- !query 6285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 6286 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 6286 schema -struct<> --- !query 6286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 6287 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6287 schema -struct<> --- !query 6287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 6288 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6288 schema -struct<> --- !query 6288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 6289 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 6289 schema -struct<> --- !query 6289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6290 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 6290 schema -struct<> --- !query 6290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6291 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 6291 schema -struct<> --- !query 6291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6292 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 6292 schema -struct<> --- !query 6292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6293 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 6293 schema -struct<> --- !query 6293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6294 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 6294 schema -struct<> --- !query 6294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6295 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 6295 schema -struct<> --- !query 6295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6296 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 6296 schema -struct<> --- !query 6296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6297 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 6297 schema -struct<> --- !query 6297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6298 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 6298 schema -struct<> --- !query 6298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6299 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6299 schema -struct<> --- !query 6299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6300 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6300 schema -struct<> --- !query 6300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6301 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 6301 schema -struct<> --- !query 6301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6302 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 6302 schema -struct<> --- !query 6302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6303 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 6303 schema -struct<> --- !query 6303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6304 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 6304 schema -struct<> --- !query 6304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6305 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 6305 schema -struct<> --- !query 6305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6306 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 6306 schema -struct<> --- !query 6306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6307 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 6307 schema -struct<> --- !query 6307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6308 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 6308 schema -struct<> --- !query 6308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6309 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 6309 schema -struct<> --- !query 6309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6310 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 6310 schema -struct<> --- !query 6310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6311 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6311 schema -struct<> --- !query 6311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6312 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6312 schema -struct<> --- !query 6312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6313 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 6313 schema -struct<> --- !query 6313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6314 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 6314 schema -struct<> --- !query 6314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6315 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 6315 schema -struct<> --- !query 6315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6316 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 6316 schema -struct<> --- !query 6316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6317 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 6317 schema -struct<> --- !query 6317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6318 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 6318 schema -struct<> --- !query 6318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6319 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 6319 schema -struct<> --- !query 6319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6320 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 6320 schema -struct<> --- !query 6320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6321 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 6321 schema -struct<> --- !query 6321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6322 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 6322 schema -struct<> --- !query 6322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6323 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6323 schema -struct<> --- !query 6323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6324 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6324 schema -struct<> --- !query 6324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6325 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 6325 schema -struct<> --- !query 6325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6326 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 6326 schema -struct<> --- !query 6326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6327 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 6327 schema -struct<> --- !query 6327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6328 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 6328 schema -struct<> --- !query 6328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6329 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 6329 schema -struct<> --- !query 6329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6330 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 6330 schema -struct<> --- !query 6330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6331 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 6331 schema -struct<> --- !query 6331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6332 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 6332 schema -struct<> --- !query 6332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6333 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 6333 schema -struct<> --- !query 6333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6334 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 6334 schema -struct<> --- !query 6334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6335 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6335 schema -struct<> --- !query 6335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6336 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6336 schema -struct<> --- !query 6336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6337 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 6337 schema -struct> --- !query 6337 output -{1:"1",2:"2"} - - --- !query 6338 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 6338 schema -struct> --- !query 6338 output -{1:"1",2:"2"} - - --- !query 6339 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 6339 schema -struct> --- !query 6339 output -{1:"1",2:"2"} - - --- !query 6340 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 6340 schema -struct> --- !query 6340 output -{1:"1",2:"2"} - - --- !query 6341 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 6341 schema -struct> --- !query 6341 output -{1:"1",2:"2.0"} - - --- !query 6342 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 6342 schema -struct> --- !query 6342 output -{1:"1",2:"2.0"} - - --- !query 6343 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 6343 schema -struct> --- !query 6343 output -{1:"1",2:"2"} - - --- !query 6344 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 6344 schema -struct> --- !query 6344 output -{1:"1",2:"2"} - - --- !query 6345 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 6345 schema -struct<> --- !query 6345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6346 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 6346 schema -struct<> --- !query 6346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6347 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6347 schema -struct> --- !query 6347 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 6348 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6348 schema -struct> --- !query 6348 output -{1:"1",2:"2017-12-12"} - - --- !query 6349 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 6349 schema -struct> --- !query 6349 output -{1:"1",2:"2"} - - --- !query 6350 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 6350 schema -struct> --- !query 6350 output -{1:"1",2:"2"} - - --- !query 6351 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 6351 schema -struct> --- !query 6351 output -{1:"1",2:"2"} - - --- !query 6352 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 6352 schema -struct> --- !query 6352 output -{1:"1",2:"2"} - - --- !query 6353 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 6353 schema -struct> --- !query 6353 output -{1:"1",2:"2.0"} - - --- !query 6354 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 6354 schema -struct> --- !query 6354 output -{1:"1",2:"2.0"} - - --- !query 6355 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 6355 schema -struct> --- !query 6355 output -{1:"1",2:"2"} - - --- !query 6356 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 6356 schema -struct> --- !query 6356 output -{1:"1",2:"2"} - - --- !query 6357 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 6357 schema -struct<> --- !query 6357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6358 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 6358 schema -struct<> --- !query 6358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6359 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6359 schema -struct> --- !query 6359 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 6360 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6360 schema -struct> --- !query 6360 output -{1:"1",2:"2017-12-12"} - - --- !query 6361 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 6361 schema -struct> --- !query 6361 output -{1:"1",2:"2"} - - --- !query 6362 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 6362 schema -struct> --- !query 6362 output -{1:"1",2:"2"} - - --- !query 6363 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 6363 schema -struct> --- !query 6363 output -{1:"1",2:"2"} - - --- !query 6364 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 6364 schema -struct> --- !query 6364 output -{1:"1",2:"2"} - - --- !query 6365 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 6365 schema -struct> --- !query 6365 output -{1:"1",2:"2.0"} - - --- !query 6366 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 6366 schema -struct> --- !query 6366 output -{1:"1",2:"2.0"} - - --- !query 6367 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 6367 schema -struct> --- !query 6367 output -{1:"1",2:"2"} - - --- !query 6368 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 6368 schema -struct> --- !query 6368 output -{1:"1",2:"2"} - - --- !query 6369 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 6369 schema -struct<> --- !query 6369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6370 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 6370 schema -struct<> --- !query 6370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6371 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6371 schema -struct> --- !query 6371 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 6372 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6372 schema -struct> --- !query 6372 output -{1:"1",2:"2017-12-12"} - - --- !query 6373 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 6373 schema -struct> --- !query 6373 output -{1:"1",2:"2"} - - --- !query 6374 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 6374 schema -struct> --- !query 6374 output -{1:"1",2:"2"} - - --- !query 6375 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 6375 schema -struct> --- !query 6375 output -{1:"1",2:"2"} - - --- !query 6376 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 6376 schema -struct> --- !query 6376 output -{1:"1",2:"2"} - - --- !query 6377 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 6377 schema -struct> --- !query 6377 output -{1:"1",2:"2.0"} - - --- !query 6378 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 6378 schema -struct> --- !query 6378 output -{1:"1",2:"2.0"} - - --- !query 6379 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 6379 schema -struct> --- !query 6379 output -{1:"1",2:"2"} - - --- !query 6380 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 6380 schema -struct> --- !query 6380 output -{1:"1",2:"2"} - - --- !query 6381 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 6381 schema -struct<> --- !query 6381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6382 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 6382 schema -struct<> --- !query 6382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6383 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6383 schema -struct> --- !query 6383 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 6384 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6384 schema -struct> --- !query 6384 output -{1:"1",2:"2017-12-12"} - - --- !query 6385 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 6385 schema -struct> --- !query 6385 output -{1.0:"1",2.0:"2"} - - --- !query 6386 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 6386 schema -struct> --- !query 6386 output -{1.0:"1",2.0:"2"} - - --- !query 6387 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 6387 schema -struct> --- !query 6387 output -{1.0:"1",2.0:"2"} - - --- !query 6388 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 6388 schema -struct> --- !query 6388 output -{1.0:"1",2.0:"2"} - - --- !query 6389 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 6389 schema -struct> --- !query 6389 output -{1.0:"1",2.0:"2.0"} - - --- !query 6390 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 6390 schema -struct> --- !query 6390 output -{1.0:"1",2.0:"2.0"} - - --- !query 6391 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 6391 schema -struct> --- !query 6391 output -{1.0:"1",2.0:"2"} - - --- !query 6392 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 6392 schema -struct> --- !query 6392 output -{1.0:"1",2.0:"2"} - - --- !query 6393 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 6393 schema -struct<> --- !query 6393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6394 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 6394 schema -struct<> --- !query 6394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6395 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6395 schema -struct> --- !query 6395 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 6396 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6396 schema -struct> --- !query 6396 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 6397 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 6397 schema -struct> --- !query 6397 output -{1.0:"1",2.0:"2"} - - --- !query 6398 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 6398 schema -struct> --- !query 6398 output -{1.0:"1",2.0:"2"} - - --- !query 6399 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 6399 schema -struct> --- !query 6399 output -{1.0:"1",2.0:"2"} - - --- !query 6400 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 6400 schema -struct> --- !query 6400 output -{1.0:"1",2.0:"2"} - - --- !query 6401 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 6401 schema -struct> --- !query 6401 output -{1.0:"1",2.0:"2.0"} - - --- !query 6402 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 6402 schema -struct> --- !query 6402 output -{1.0:"1",2.0:"2.0"} - - --- !query 6403 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 6403 schema -struct> --- !query 6403 output -{1.0:"1",2.0:"2"} - - --- !query 6404 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 6404 schema -struct> --- !query 6404 output -{1.0:"1",2.0:"2"} - - --- !query 6405 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 6405 schema -struct<> --- !query 6405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6406 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 6406 schema -struct<> --- !query 6406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6407 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6407 schema -struct> --- !query 6407 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 6408 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6408 schema -struct> --- !query 6408 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 6409 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 6409 schema -struct> --- !query 6409 output -{1:"1",2:"2"} - - --- !query 6410 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 6410 schema -struct> --- !query 6410 output -{1:"1",2:"2"} - - --- !query 6411 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 6411 schema -struct> --- !query 6411 output -{1:"1",2:"2"} - - --- !query 6412 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 6412 schema -struct> --- !query 6412 output -{1:"1",2:"2"} - - --- !query 6413 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 6413 schema -struct> --- !query 6413 output -{1:"1",2:"2.0"} - - --- !query 6414 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 6414 schema -struct> --- !query 6414 output -{1:"1",2:"2.0"} - - --- !query 6415 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 6415 schema -struct> --- !query 6415 output -{1:"1",2:"2"} - - --- !query 6416 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 6416 schema -struct> --- !query 6416 output -{1:"1",2:"2"} - - --- !query 6417 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 6417 schema -struct<> --- !query 6417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6418 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 6418 schema -struct<> --- !query 6418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6419 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6419 schema -struct> --- !query 6419 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 6420 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6420 schema -struct> --- !query 6420 output -{1:"1",2:"2017-12-12"} - - --- !query 6421 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 6421 schema -struct> --- !query 6421 output -{"1":"1","2":"2"} - - --- !query 6422 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 6422 schema -struct> --- !query 6422 output -{"1":"1","2":"2"} - - --- !query 6423 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 6423 schema -struct> --- !query 6423 output -{"1":"1","2":"2"} - - --- !query 6424 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 6424 schema -struct> --- !query 6424 output -{"1":"1","2":"2"} - - --- !query 6425 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 6425 schema -struct> --- !query 6425 output -{"1":"1","2":"2.0"} - - --- !query 6426 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 6426 schema -struct> --- !query 6426 output -{"1":"1","2":"2.0"} - - --- !query 6427 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 6427 schema -struct> --- !query 6427 output -{"1":"1","2":"2"} - - --- !query 6428 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 6428 schema -struct> --- !query 6428 output -{"1":"1","2":"2"} - - --- !query 6429 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 6429 schema -struct<> --- !query 6429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 6430 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 6430 schema -struct<> --- !query 6430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 6431 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6431 schema -struct> --- !query 6431 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 6432 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6432 schema -struct> --- !query 6432 output -{"1":"1","2":"2017-12-12"} - - --- !query 6433 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 6433 schema -struct<> --- !query 6433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6434 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 6434 schema -struct<> --- !query 6434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6435 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 6435 schema -struct<> --- !query 6435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6436 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 6436 schema -struct<> --- !query 6436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6437 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 6437 schema -struct<> --- !query 6437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6438 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 6438 schema -struct<> --- !query 6438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6439 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 6439 schema -struct<> --- !query 6439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6440 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 6440 schema -struct<> --- !query 6440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6441 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 6441 schema -struct<> --- !query 6441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6442 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 6442 schema -struct<> --- !query 6442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6443 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6443 schema -struct<> --- !query 6443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6444 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6444 schema -struct<> --- !query 6444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6445 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 6445 schema -struct<> --- !query 6445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6446 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 6446 schema -struct<> --- !query 6446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6447 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 6447 schema -struct<> --- !query 6447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6448 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 6448 schema -struct<> --- !query 6448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6449 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 6449 schema -struct<> --- !query 6449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6450 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 6450 schema -struct<> --- !query 6450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6451 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 6451 schema -struct<> --- !query 6451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6452 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 6452 schema -struct<> --- !query 6452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6453 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 6453 schema -struct<> --- !query 6453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6454 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 6454 schema -struct<> --- !query 6454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6455 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6455 schema -struct<> --- !query 6455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6456 -SELECT map(cast(1 as bigint), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6456 schema -struct<> --- !query 6456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6457 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 6457 schema -struct<> --- !query 6457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6458 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 6458 schema -struct<> --- !query 6458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6459 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 6459 schema -struct<> --- !query 6459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6460 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 6460 schema -struct<> --- !query 6460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6461 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 6461 schema -struct<> --- !query 6461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6462 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 6462 schema -struct<> --- !query 6462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6463 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 6463 schema -struct<> --- !query 6463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6464 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 6464 schema -struct<> --- !query 6464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6465 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 6465 schema -struct<> --- !query 6465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6466 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 6466 schema -struct<> --- !query 6466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6467 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6467 schema -struct<> --- !query 6467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6468 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6468 schema -struct<> --- !query 6468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6469 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 6469 schema -struct<> --- !query 6469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6470 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 6470 schema -struct<> --- !query 6470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6471 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 6471 schema -struct<> --- !query 6471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6472 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 6472 schema -struct<> --- !query 6472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6473 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 6473 schema -struct<> --- !query 6473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6474 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 6474 schema -struct<> --- !query 6474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6475 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 6475 schema -struct<> --- !query 6475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6476 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 6476 schema -struct<> --- !query 6476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6477 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 6477 schema -struct<> --- !query 6477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6478 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 6478 schema -struct<> --- !query 6478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6479 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6479 schema -struct<> --- !query 6479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6480 -SELECT map(cast(1 as bigint), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6480 schema -struct<> --- !query 6480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6481 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 6481 schema -struct<> --- !query 6481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6482 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 6482 schema -struct<> --- !query 6482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6483 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 6483 schema -struct<> --- !query 6483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6484 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 6484 schema -struct<> --- !query 6484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6485 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 6485 schema -struct<> --- !query 6485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6486 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 6486 schema -struct<> --- !query 6486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6487 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 6487 schema -struct<> --- !query 6487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6488 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 6488 schema -struct<> --- !query 6488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6489 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 6489 schema -struct> --- !query 6489 output -{1:[B@2b9ce33,2:[B@54c3083b} - - --- !query 6490 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 6490 schema -struct<> --- !query 6490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6491 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6491 schema -struct<> --- !query 6491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6492 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6492 schema -struct<> --- !query 6492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6493 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 6493 schema -struct<> --- !query 6493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6494 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 6494 schema -struct<> --- !query 6494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6495 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 6495 schema -struct<> --- !query 6495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6496 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 6496 schema -struct<> --- !query 6496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6497 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 6497 schema -struct<> --- !query 6497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6498 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 6498 schema -struct<> --- !query 6498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6499 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 6499 schema -struct<> --- !query 6499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6500 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 6500 schema -struct<> --- !query 6500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6501 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 6501 schema -struct> --- !query 6501 output -{1:[B@3e572f8b,2:[B@113b7167} - - --- !query 6502 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 6502 schema -struct<> --- !query 6502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6503 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6503 schema -struct<> --- !query 6503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6504 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6504 schema -struct<> --- !query 6504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6505 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 6505 schema -struct<> --- !query 6505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6506 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 6506 schema -struct<> --- !query 6506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6507 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 6507 schema -struct<> --- !query 6507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6508 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 6508 schema -struct<> --- !query 6508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6509 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 6509 schema -struct<> --- !query 6509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6510 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 6510 schema -struct<> --- !query 6510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6511 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 6511 schema -struct<> --- !query 6511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6512 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 6512 schema -struct<> --- !query 6512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6513 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 6513 schema -struct> --- !query 6513 output -{1:[B@7be08087,2:[B@2e37bc2d} - - --- !query 6514 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 6514 schema -struct<> --- !query 6514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6515 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6515 schema -struct<> --- !query 6515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6516 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6516 schema -struct<> --- !query 6516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6517 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 6517 schema -struct<> --- !query 6517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6518 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 6518 schema -struct<> --- !query 6518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6519 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 6519 schema -struct<> --- !query 6519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6520 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 6520 schema -struct<> --- !query 6520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6521 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 6521 schema -struct<> --- !query 6521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6522 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 6522 schema -struct<> --- !query 6522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6523 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 6523 schema -struct<> --- !query 6523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6524 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 6524 schema -struct<> --- !query 6524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6525 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 6525 schema -struct> --- !query 6525 output -{1:[B@e1df476,2:[B@ed4bdb4} - - --- !query 6526 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 6526 schema -struct<> --- !query 6526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6527 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6527 schema -struct<> --- !query 6527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6528 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6528 schema -struct<> --- !query 6528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6529 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 6529 schema -struct<> --- !query 6529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6530 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 6530 schema -struct<> --- !query 6530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6531 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 6531 schema -struct<> --- !query 6531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6532 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 6532 schema -struct<> --- !query 6532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6533 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 6533 schema -struct<> --- !query 6533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6534 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 6534 schema -struct<> --- !query 6534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6535 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 6535 schema -struct<> --- !query 6535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6536 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 6536 schema -struct<> --- !query 6536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6537 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 6537 schema -struct> --- !query 6537 output -{1.0:[B@483313f,2.0:[B@131ef736} - - --- !query 6538 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 6538 schema -struct<> --- !query 6538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6539 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6539 schema -struct<> --- !query 6539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6540 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6540 schema -struct<> --- !query 6540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6541 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 6541 schema -struct<> --- !query 6541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6542 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 6542 schema -struct<> --- !query 6542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6543 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 6543 schema -struct<> --- !query 6543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6544 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 6544 schema -struct<> --- !query 6544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6545 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 6545 schema -struct<> --- !query 6545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6546 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 6546 schema -struct<> --- !query 6546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6547 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 6547 schema -struct<> --- !query 6547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6548 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 6548 schema -struct<> --- !query 6548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6549 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 6549 schema -struct> --- !query 6549 output -{1.0:[B@16998d92,2.0:[B@1dd1354f} - - --- !query 6550 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 6550 schema -struct<> --- !query 6550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6551 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6551 schema -struct<> --- !query 6551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6552 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6552 schema -struct<> --- !query 6552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6553 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 6553 schema -struct<> --- !query 6553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6554 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 6554 schema -struct<> --- !query 6554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6555 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 6555 schema -struct<> --- !query 6555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6556 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 6556 schema -struct<> --- !query 6556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6557 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 6557 schema -struct<> --- !query 6557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6558 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 6558 schema -struct<> --- !query 6558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6559 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 6559 schema -struct<> --- !query 6559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6560 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 6560 schema -struct<> --- !query 6560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6561 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 6561 schema -struct> --- !query 6561 output -{1:[B@46d9e3c5,2:[B@2eadfb12} - - --- !query 6562 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 6562 schema -struct<> --- !query 6562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6563 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6563 schema -struct<> --- !query 6563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6564 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6564 schema -struct<> --- !query 6564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6565 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 6565 schema -struct<> --- !query 6565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 6566 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 6566 schema -struct<> --- !query 6566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 6567 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 6567 schema -struct<> --- !query 6567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 6568 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 6568 schema -struct<> --- !query 6568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 6569 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 6569 schema -struct<> --- !query 6569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 6570 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 6570 schema -struct<> --- !query 6570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 6571 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 6571 schema -struct<> --- !query 6571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 6572 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 6572 schema -struct<> --- !query 6572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 6573 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 6573 schema -struct> --- !query 6573 output -{"1":[B@17c42ccf,"2":[B@377e1b63} - - --- !query 6574 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 6574 schema -struct<> --- !query 6574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 6575 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6575 schema -struct<> --- !query 6575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 6576 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6576 schema -struct<> --- !query 6576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 6577 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 6577 schema -struct<> --- !query 6577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6578 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 6578 schema -struct<> --- !query 6578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6579 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 6579 schema -struct<> --- !query 6579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6580 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 6580 schema -struct<> --- !query 6580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6581 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 6581 schema -struct<> --- !query 6581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6582 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 6582 schema -struct<> --- !query 6582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6583 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 6583 schema -struct<> --- !query 6583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6584 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 6584 schema -struct<> --- !query 6584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6585 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 6585 schema -struct<> --- !query 6585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6586 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 6586 schema -struct<> --- !query 6586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6587 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6587 schema -struct<> --- !query 6587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6588 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6588 schema -struct<> --- !query 6588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6589 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 6589 schema -struct<> --- !query 6589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6590 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 6590 schema -struct<> --- !query 6590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6591 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 6591 schema -struct<> --- !query 6591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6592 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 6592 schema -struct<> --- !query 6592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6593 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 6593 schema -struct<> --- !query 6593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6594 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 6594 schema -struct<> --- !query 6594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6595 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 6595 schema -struct<> --- !query 6595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6596 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 6596 schema -struct<> --- !query 6596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6597 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 6597 schema -struct<> --- !query 6597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6598 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 6598 schema -struct<> --- !query 6598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6599 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6599 schema -struct<> --- !query 6599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6600 -SELECT map(cast(1 as bigint), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6600 schema -struct<> --- !query 6600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6601 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 6601 schema -struct<> --- !query 6601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6602 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 6602 schema -struct<> --- !query 6602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6603 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 6603 schema -struct<> --- !query 6603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6604 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 6604 schema -struct<> --- !query 6604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6605 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 6605 schema -struct<> --- !query 6605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6606 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 6606 schema -struct<> --- !query 6606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6607 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 6607 schema -struct<> --- !query 6607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6608 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 6608 schema -struct<> --- !query 6608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6609 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 6609 schema -struct<> --- !query 6609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6610 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 6610 schema -struct<> --- !query 6610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6611 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6611 schema -struct<> --- !query 6611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6612 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6612 schema -struct<> --- !query 6612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6613 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 6613 schema -struct<> --- !query 6613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6614 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 6614 schema -struct<> --- !query 6614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6615 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 6615 schema -struct<> --- !query 6615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6616 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 6616 schema -struct<> --- !query 6616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6617 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 6617 schema -struct<> --- !query 6617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6618 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 6618 schema -struct<> --- !query 6618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6619 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 6619 schema -struct<> --- !query 6619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6620 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 6620 schema -struct<> --- !query 6620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6621 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 6621 schema -struct<> --- !query 6621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6622 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 6622 schema -struct<> --- !query 6622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6623 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6623 schema -struct<> --- !query 6623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6624 -SELECT map(cast(1 as bigint), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6624 schema -struct<> --- !query 6624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6625 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 6625 schema -struct<> --- !query 6625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6626 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 6626 schema -struct<> --- !query 6626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6627 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 6627 schema -struct<> --- !query 6627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6628 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 6628 schema -struct<> --- !query 6628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6629 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 6629 schema -struct<> --- !query 6629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6630 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 6630 schema -struct<> --- !query 6630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6631 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 6631 schema -struct<> --- !query 6631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6632 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 6632 schema -struct<> --- !query 6632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6633 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 6633 schema -struct<> --- !query 6633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6634 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 6634 schema -struct> --- !query 6634 output -{1:true,2:true} - - --- !query 6635 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6635 schema -struct<> --- !query 6635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6636 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6636 schema -struct<> --- !query 6636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6637 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 6637 schema -struct<> --- !query 6637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6638 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 6638 schema -struct<> --- !query 6638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6639 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 6639 schema -struct<> --- !query 6639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6640 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 6640 schema -struct<> --- !query 6640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6641 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 6641 schema -struct<> --- !query 6641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6642 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 6642 schema -struct<> --- !query 6642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6643 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 6643 schema -struct<> --- !query 6643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6644 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 6644 schema -struct<> --- !query 6644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6645 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 6645 schema -struct<> --- !query 6645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6646 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 6646 schema -struct> --- !query 6646 output -{1:true,2:true} - - --- !query 6647 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6647 schema -struct<> --- !query 6647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6648 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6648 schema -struct<> --- !query 6648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6649 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 6649 schema -struct<> --- !query 6649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6650 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 6650 schema -struct<> --- !query 6650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6651 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 6651 schema -struct<> --- !query 6651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6652 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 6652 schema -struct<> --- !query 6652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6653 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 6653 schema -struct<> --- !query 6653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6654 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 6654 schema -struct<> --- !query 6654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6655 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 6655 schema -struct<> --- !query 6655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6656 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 6656 schema -struct<> --- !query 6656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6657 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 6657 schema -struct<> --- !query 6657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6658 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 6658 schema -struct> --- !query 6658 output -{1:true,2:true} - - --- !query 6659 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6659 schema -struct<> --- !query 6659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6660 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6660 schema -struct<> --- !query 6660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6661 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 6661 schema -struct<> --- !query 6661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6662 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 6662 schema -struct<> --- !query 6662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6663 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 6663 schema -struct<> --- !query 6663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6664 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 6664 schema -struct<> --- !query 6664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6665 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 6665 schema -struct<> --- !query 6665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6666 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 6666 schema -struct<> --- !query 6666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6667 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 6667 schema -struct<> --- !query 6667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6668 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 6668 schema -struct<> --- !query 6668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6669 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 6669 schema -struct<> --- !query 6669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6670 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 6670 schema -struct> --- !query 6670 output -{1:true,2:true} - - --- !query 6671 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6671 schema -struct<> --- !query 6671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6672 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6672 schema -struct<> --- !query 6672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6673 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 6673 schema -struct<> --- !query 6673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6674 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 6674 schema -struct<> --- !query 6674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6675 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 6675 schema -struct<> --- !query 6675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6676 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 6676 schema -struct<> --- !query 6676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6677 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 6677 schema -struct<> --- !query 6677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6678 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 6678 schema -struct<> --- !query 6678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6679 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 6679 schema -struct<> --- !query 6679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6680 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 6680 schema -struct<> --- !query 6680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6681 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 6681 schema -struct<> --- !query 6681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6682 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 6682 schema -struct> --- !query 6682 output -{1.0:true,2.0:true} - - --- !query 6683 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6683 schema -struct<> --- !query 6683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6684 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6684 schema -struct<> --- !query 6684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6685 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 6685 schema -struct<> --- !query 6685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6686 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 6686 schema -struct<> --- !query 6686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6687 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 6687 schema -struct<> --- !query 6687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6688 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 6688 schema -struct<> --- !query 6688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6689 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 6689 schema -struct<> --- !query 6689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6690 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 6690 schema -struct<> --- !query 6690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6691 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 6691 schema -struct<> --- !query 6691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6692 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 6692 schema -struct<> --- !query 6692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6693 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 6693 schema -struct<> --- !query 6693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6694 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 6694 schema -struct> --- !query 6694 output -{1.0:true,2.0:true} - - --- !query 6695 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6695 schema -struct<> --- !query 6695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6696 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6696 schema -struct<> --- !query 6696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6697 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 6697 schema -struct<> --- !query 6697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6698 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 6698 schema -struct<> --- !query 6698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6699 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 6699 schema -struct<> --- !query 6699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6700 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 6700 schema -struct<> --- !query 6700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6701 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 6701 schema -struct<> --- !query 6701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6702 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 6702 schema -struct<> --- !query 6702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6703 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 6703 schema -struct<> --- !query 6703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6704 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 6704 schema -struct<> --- !query 6704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6705 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 6705 schema -struct<> --- !query 6705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6706 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 6706 schema -struct> --- !query 6706 output -{1:true,2:true} - - --- !query 6707 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6707 schema -struct<> --- !query 6707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6708 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6708 schema -struct<> --- !query 6708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6709 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 6709 schema -struct<> --- !query 6709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 6710 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 6710 schema -struct<> --- !query 6710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 6711 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 6711 schema -struct<> --- !query 6711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 6712 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 6712 schema -struct<> --- !query 6712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 6713 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 6713 schema -struct<> --- !query 6713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 6714 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 6714 schema -struct<> --- !query 6714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 6715 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 6715 schema -struct<> --- !query 6715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 6716 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 6716 schema -struct<> --- !query 6716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 6717 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 6717 schema -struct<> --- !query 6717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 6718 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 6718 schema -struct> --- !query 6718 output -{"1":true,"2":true} - - --- !query 6719 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6719 schema -struct<> --- !query 6719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 6720 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6720 schema -struct<> --- !query 6720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 6721 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 6721 schema -struct<> --- !query 6721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6722 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 6722 schema -struct<> --- !query 6722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6723 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 6723 schema -struct<> --- !query 6723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6724 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 6724 schema -struct<> --- !query 6724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6725 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 6725 schema -struct<> --- !query 6725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6726 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 6726 schema -struct<> --- !query 6726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6727 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 6727 schema -struct<> --- !query 6727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6728 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 6728 schema -struct<> --- !query 6728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6729 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 6729 schema -struct<> --- !query 6729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6730 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 6730 schema -struct<> --- !query 6730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6731 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6731 schema -struct<> --- !query 6731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6732 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6732 schema -struct<> --- !query 6732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6733 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 6733 schema -struct<> --- !query 6733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6734 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 6734 schema -struct<> --- !query 6734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6735 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 6735 schema -struct<> --- !query 6735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6736 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 6736 schema -struct<> --- !query 6736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6737 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 6737 schema -struct<> --- !query 6737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6738 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 6738 schema -struct<> --- !query 6738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6739 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 6739 schema -struct<> --- !query 6739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6740 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 6740 schema -struct<> --- !query 6740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6741 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 6741 schema -struct<> --- !query 6741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6742 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 6742 schema -struct<> --- !query 6742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6743 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6743 schema -struct<> --- !query 6743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6744 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6744 schema -struct<> --- !query 6744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6745 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 6745 schema -struct<> --- !query 6745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6746 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 6746 schema -struct<> --- !query 6746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6747 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 6747 schema -struct<> --- !query 6747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6748 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 6748 schema -struct<> --- !query 6748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6749 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 6749 schema -struct<> --- !query 6749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6750 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 6750 schema -struct<> --- !query 6750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6751 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 6751 schema -struct<> --- !query 6751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6752 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 6752 schema -struct<> --- !query 6752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6753 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 6753 schema -struct<> --- !query 6753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6754 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 6754 schema -struct<> --- !query 6754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6755 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6755 schema -struct<> --- !query 6755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6756 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6756 schema -struct<> --- !query 6756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6757 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 6757 schema -struct<> --- !query 6757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6758 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 6758 schema -struct<> --- !query 6758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6759 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 6759 schema -struct<> --- !query 6759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6760 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 6760 schema -struct<> --- !query 6760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6761 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 6761 schema -struct<> --- !query 6761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6762 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 6762 schema -struct<> --- !query 6762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6763 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 6763 schema -struct<> --- !query 6763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6764 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 6764 schema -struct<> --- !query 6764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6765 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 6765 schema -struct<> --- !query 6765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6766 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 6766 schema -struct<> --- !query 6766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6767 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6767 schema -struct<> --- !query 6767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6768 -SELECT map(cast(1 as bigint), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6768 schema -struct<> --- !query 6768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6769 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 6769 schema -struct<> --- !query 6769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6770 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 6770 schema -struct<> --- !query 6770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6771 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 6771 schema -struct<> --- !query 6771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6772 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 6772 schema -struct<> --- !query 6772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6773 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 6773 schema -struct<> --- !query 6773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6774 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 6774 schema -struct<> --- !query 6774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6775 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 6775 schema -struct<> --- !query 6775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6776 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 6776 schema -struct> --- !query 6776 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 6777 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 6777 schema -struct<> --- !query 6777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6778 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 6778 schema -struct<> --- !query 6778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6779 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6779 schema -struct> --- !query 6779 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6780 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6780 schema -struct> --- !query 6780 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 6781 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 6781 schema -struct<> --- !query 6781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6782 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 6782 schema -struct<> --- !query 6782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6783 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 6783 schema -struct<> --- !query 6783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6784 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 6784 schema -struct<> --- !query 6784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6785 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 6785 schema -struct<> --- !query 6785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6786 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 6786 schema -struct<> --- !query 6786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6787 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 6787 schema -struct<> --- !query 6787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6788 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 6788 schema -struct> --- !query 6788 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 6789 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 6789 schema -struct<> --- !query 6789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6790 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 6790 schema -struct<> --- !query 6790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6791 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6791 schema -struct> --- !query 6791 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6792 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6792 schema -struct> --- !query 6792 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 6793 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 6793 schema -struct<> --- !query 6793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6794 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 6794 schema -struct<> --- !query 6794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6795 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 6795 schema -struct<> --- !query 6795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6796 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 6796 schema -struct<> --- !query 6796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6797 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 6797 schema -struct<> --- !query 6797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6798 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 6798 schema -struct<> --- !query 6798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6799 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 6799 schema -struct<> --- !query 6799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6800 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 6800 schema -struct> --- !query 6800 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 6801 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 6801 schema -struct<> --- !query 6801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6802 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 6802 schema -struct<> --- !query 6802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6803 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6803 schema -struct> --- !query 6803 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6804 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6804 schema -struct> --- !query 6804 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 6805 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 6805 schema -struct<> --- !query 6805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6806 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 6806 schema -struct<> --- !query 6806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6807 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 6807 schema -struct<> --- !query 6807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6808 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 6808 schema -struct<> --- !query 6808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6809 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 6809 schema -struct<> --- !query 6809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6810 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 6810 schema -struct<> --- !query 6810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6811 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 6811 schema -struct<> --- !query 6811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6812 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 6812 schema -struct> --- !query 6812 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 6813 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 6813 schema -struct<> --- !query 6813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6814 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 6814 schema -struct<> --- !query 6814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6815 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6815 schema -struct> --- !query 6815 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6816 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6816 schema -struct> --- !query 6816 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 6817 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 6817 schema -struct<> --- !query 6817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6818 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 6818 schema -struct<> --- !query 6818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6819 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 6819 schema -struct<> --- !query 6819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6820 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 6820 schema -struct<> --- !query 6820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6821 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 6821 schema -struct<> --- !query 6821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6822 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 6822 schema -struct<> --- !query 6822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6823 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 6823 schema -struct<> --- !query 6823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6824 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 6824 schema -struct> --- !query 6824 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 6825 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 6825 schema -struct<> --- !query 6825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6826 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 6826 schema -struct<> --- !query 6826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6827 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6827 schema -struct> --- !query 6827 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 6828 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6828 schema -struct> --- !query 6828 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 6829 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 6829 schema -struct<> --- !query 6829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6830 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 6830 schema -struct<> --- !query 6830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6831 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 6831 schema -struct<> --- !query 6831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6832 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 6832 schema -struct<> --- !query 6832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6833 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 6833 schema -struct<> --- !query 6833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6834 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 6834 schema -struct<> --- !query 6834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6835 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 6835 schema -struct<> --- !query 6835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6836 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 6836 schema -struct> --- !query 6836 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 6837 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 6837 schema -struct<> --- !query 6837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6838 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 6838 schema -struct<> --- !query 6838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6839 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6839 schema -struct> --- !query 6839 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 6840 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6840 schema -struct> --- !query 6840 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 6841 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 6841 schema -struct<> --- !query 6841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6842 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 6842 schema -struct<> --- !query 6842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6843 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 6843 schema -struct<> --- !query 6843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6844 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 6844 schema -struct<> --- !query 6844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6845 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 6845 schema -struct<> --- !query 6845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6846 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 6846 schema -struct<> --- !query 6846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6847 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 6847 schema -struct<> --- !query 6847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6848 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 6848 schema -struct> --- !query 6848 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 6849 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 6849 schema -struct<> --- !query 6849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6850 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 6850 schema -struct<> --- !query 6850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6851 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6851 schema -struct> --- !query 6851 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6852 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6852 schema -struct> --- !query 6852 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 6853 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 6853 schema -struct<> --- !query 6853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 6854 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 6854 schema -struct<> --- !query 6854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 6855 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 6855 schema -struct<> --- !query 6855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 6856 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 6856 schema -struct<> --- !query 6856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 6857 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 6857 schema -struct<> --- !query 6857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 6858 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 6858 schema -struct<> --- !query 6858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 6859 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 6859 schema -struct<> --- !query 6859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 6860 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 6860 schema -struct> --- !query 6860 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 6861 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 6861 schema -struct<> --- !query 6861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 6862 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 6862 schema -struct<> --- !query 6862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 6863 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6863 schema -struct> --- !query 6863 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 6864 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6864 schema -struct> --- !query 6864 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 6865 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 6865 schema -struct<> --- !query 6865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6866 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 6866 schema -struct<> --- !query 6866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6867 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 6867 schema -struct<> --- !query 6867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6868 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 6868 schema -struct<> --- !query 6868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6869 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 6869 schema -struct<> --- !query 6869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6870 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 6870 schema -struct<> --- !query 6870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6871 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 6871 schema -struct<> --- !query 6871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6872 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 6872 schema -struct<> --- !query 6872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6873 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 6873 schema -struct<> --- !query 6873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6874 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 6874 schema -struct<> --- !query 6874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6875 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6875 schema -struct<> --- !query 6875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6876 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6876 schema -struct<> --- !query 6876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 6877 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 6877 schema -struct<> --- !query 6877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6878 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 6878 schema -struct<> --- !query 6878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6879 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 6879 schema -struct<> --- !query 6879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6880 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 6880 schema -struct<> --- !query 6880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6881 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 6881 schema -struct<> --- !query 6881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6882 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 6882 schema -struct<> --- !query 6882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6883 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 6883 schema -struct<> --- !query 6883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6884 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 6884 schema -struct<> --- !query 6884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6885 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 6885 schema -struct<> --- !query 6885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6886 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 6886 schema -struct<> --- !query 6886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6887 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6887 schema -struct<> --- !query 6887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6888 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6888 schema -struct<> --- !query 6888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 6889 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 6889 schema -struct<> --- !query 6889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6890 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 6890 schema -struct<> --- !query 6890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6891 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 6891 schema -struct<> --- !query 6891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6892 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 6892 schema -struct<> --- !query 6892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6893 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 6893 schema -struct<> --- !query 6893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6894 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 6894 schema -struct<> --- !query 6894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6895 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 6895 schema -struct<> --- !query 6895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6896 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 6896 schema -struct<> --- !query 6896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6897 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 6897 schema -struct<> --- !query 6897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6898 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 6898 schema -struct<> --- !query 6898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6899 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6899 schema -struct<> --- !query 6899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6900 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6900 schema -struct<> --- !query 6900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 6901 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 6901 schema -struct<> --- !query 6901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6902 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 6902 schema -struct<> --- !query 6902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6903 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 6903 schema -struct<> --- !query 6903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6904 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 6904 schema -struct<> --- !query 6904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6905 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 6905 schema -struct<> --- !query 6905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6906 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 6906 schema -struct<> --- !query 6906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6907 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 6907 schema -struct<> --- !query 6907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6908 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 6908 schema -struct<> --- !query 6908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6909 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 6909 schema -struct<> --- !query 6909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6910 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 6910 schema -struct<> --- !query 6910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6911 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6911 schema -struct<> --- !query 6911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6912 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6912 schema -struct<> --- !query 6912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 6913 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 6913 schema -struct<> --- !query 6913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6914 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 6914 schema -struct<> --- !query 6914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6915 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 6915 schema -struct<> --- !query 6915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 6916 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 6916 schema -struct<> --- !query 6916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 6917 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 6917 schema -struct<> --- !query 6917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 6918 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 6918 schema -struct<> --- !query 6918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 6919 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 6919 schema -struct<> --- !query 6919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 6920 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 6920 schema -struct> --- !query 6920 output -{1:"2017-12-11",2:"2"} - - --- !query 6921 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 6921 schema -struct<> --- !query 6921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 6922 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 6922 schema -struct<> --- !query 6922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 6923 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6923 schema -struct> --- !query 6923 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6924 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6924 schema -struct> --- !query 6924 output -{1:2017-12-11,2:2017-12-12} - - --- !query 6925 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 6925 schema -struct<> --- !query 6925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6926 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 6926 schema -struct<> --- !query 6926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6927 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 6927 schema -struct<> --- !query 6927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 6928 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 6928 schema -struct<> --- !query 6928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 6929 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 6929 schema -struct<> --- !query 6929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 6930 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 6930 schema -struct<> --- !query 6930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 6931 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 6931 schema -struct<> --- !query 6931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 6932 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 6932 schema -struct> --- !query 6932 output -{1:"2017-12-11",2:"2"} - - --- !query 6933 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 6933 schema -struct<> --- !query 6933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 6934 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 6934 schema -struct<> --- !query 6934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 6935 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6935 schema -struct> --- !query 6935 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6936 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6936 schema -struct> --- !query 6936 output -{1:2017-12-11,2:2017-12-12} - - --- !query 6937 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 6937 schema -struct<> --- !query 6937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6938 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 6938 schema -struct<> --- !query 6938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6939 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 6939 schema -struct<> --- !query 6939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 6940 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 6940 schema -struct<> --- !query 6940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 6941 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 6941 schema -struct<> --- !query 6941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 6942 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 6942 schema -struct<> --- !query 6942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 6943 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 6943 schema -struct<> --- !query 6943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 6944 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 6944 schema -struct> --- !query 6944 output -{1:"2017-12-11",2:"2"} - - --- !query 6945 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 6945 schema -struct<> --- !query 6945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 6946 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 6946 schema -struct<> --- !query 6946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 6947 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6947 schema -struct> --- !query 6947 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6948 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6948 schema -struct> --- !query 6948 output -{1:2017-12-11,2:2017-12-12} - - --- !query 6949 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 6949 schema -struct<> --- !query 6949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6950 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 6950 schema -struct<> --- !query 6950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6951 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 6951 schema -struct<> --- !query 6951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 6952 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 6952 schema -struct<> --- !query 6952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 6953 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 6953 schema -struct<> --- !query 6953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 6954 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 6954 schema -struct<> --- !query 6954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 6955 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 6955 schema -struct<> --- !query 6955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 6956 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 6956 schema -struct> --- !query 6956 output -{1:"2017-12-11",2:"2"} - - --- !query 6957 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 6957 schema -struct<> --- !query 6957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 6958 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 6958 schema -struct<> --- !query 6958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 6959 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6959 schema -struct> --- !query 6959 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6960 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6960 schema -struct> --- !query 6960 output -{1:2017-12-11,2:2017-12-12} - - --- !query 6961 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 6961 schema -struct<> --- !query 6961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6962 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 6962 schema -struct<> --- !query 6962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6963 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 6963 schema -struct<> --- !query 6963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 6964 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 6964 schema -struct<> --- !query 6964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 6965 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 6965 schema -struct<> --- !query 6965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 6966 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 6966 schema -struct<> --- !query 6966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 6967 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 6967 schema -struct<> --- !query 6967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 6968 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 6968 schema -struct> --- !query 6968 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 6969 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 6969 schema -struct<> --- !query 6969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 6970 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 6970 schema -struct<> --- !query 6970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 6971 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6971 schema -struct> --- !query 6971 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 6972 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6972 schema -struct> --- !query 6972 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 6973 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 6973 schema -struct<> --- !query 6973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6974 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 6974 schema -struct<> --- !query 6974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6975 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 6975 schema -struct<> --- !query 6975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 6976 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 6976 schema -struct<> --- !query 6976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 6977 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 6977 schema -struct<> --- !query 6977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 6978 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 6978 schema -struct<> --- !query 6978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 6979 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 6979 schema -struct<> --- !query 6979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 6980 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 6980 schema -struct> --- !query 6980 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 6981 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 6981 schema -struct<> --- !query 6981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 6982 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 6982 schema -struct<> --- !query 6982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 6983 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6983 schema -struct> --- !query 6983 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 6984 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6984 schema -struct> --- !query 6984 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 6985 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 6985 schema -struct<> --- !query 6985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6986 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 6986 schema -struct<> --- !query 6986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6987 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 6987 schema -struct<> --- !query 6987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 6988 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 6988 schema -struct<> --- !query 6988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 6989 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 6989 schema -struct<> --- !query 6989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 6990 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 6990 schema -struct<> --- !query 6990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 6991 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 6991 schema -struct<> --- !query 6991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 6992 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 6992 schema -struct> --- !query 6992 output -{1:"2017-12-11",2:"2"} - - --- !query 6993 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 6993 schema -struct<> --- !query 6993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 6994 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 6994 schema -struct<> --- !query 6994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 6995 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 6995 schema -struct> --- !query 6995 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 6996 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 6996 schema -struct> --- !query 6996 output -{1:2017-12-11,2:2017-12-12} - - --- !query 6997 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 6997 schema -struct<> --- !query 6997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 6998 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 6998 schema -struct<> --- !query 6998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 6999 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 6999 schema -struct<> --- !query 6999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 7000 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 7000 schema -struct<> --- !query 7000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 7001 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 7001 schema -struct<> --- !query 7001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 7002 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 7002 schema -struct<> --- !query 7002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 7003 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 7003 schema -struct<> --- !query 7003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 7004 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 7004 schema -struct> --- !query 7004 output -{"1":"2017-12-11","2":"2"} - - --- !query 7005 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 7005 schema -struct<> --- !query 7005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 7006 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 7006 schema -struct<> --- !query 7006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 7007 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7007 schema -struct> --- !query 7007 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 7008 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7008 schema -struct> --- !query 7008 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 7009 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 7009 schema -struct<> --- !query 7009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7010 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 7010 schema -struct<> --- !query 7010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7011 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 7011 schema -struct<> --- !query 7011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7012 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 7012 schema -struct<> --- !query 7012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7013 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 7013 schema -struct<> --- !query 7013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7014 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 7014 schema -struct<> --- !query 7014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7015 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 7015 schema -struct<> --- !query 7015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7016 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 7016 schema -struct<> --- !query 7016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7017 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 7017 schema -struct<> --- !query 7017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7018 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 7018 schema -struct<> --- !query 7018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7019 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7019 schema -struct<> --- !query 7019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7020 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7020 schema -struct<> --- !query 7020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7021 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 7021 schema -struct<> --- !query 7021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7022 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 7022 schema -struct<> --- !query 7022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7023 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 7023 schema -struct<> --- !query 7023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7024 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 7024 schema -struct<> --- !query 7024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7025 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 7025 schema -struct<> --- !query 7025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7026 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 7026 schema -struct<> --- !query 7026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7027 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 7027 schema -struct<> --- !query 7027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7028 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 7028 schema -struct<> --- !query 7028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7029 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 7029 schema -struct<> --- !query 7029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7030 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 7030 schema -struct<> --- !query 7030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7031 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7031 schema -struct<> --- !query 7031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7032 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7032 schema -struct<> --- !query 7032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7033 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 7033 schema -struct<> --- !query 7033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7034 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 7034 schema -struct<> --- !query 7034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7035 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 7035 schema -struct<> --- !query 7035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7036 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 7036 schema -struct<> --- !query 7036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7037 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 7037 schema -struct<> --- !query 7037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7038 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 7038 schema -struct<> --- !query 7038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7039 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 7039 schema -struct<> --- !query 7039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7040 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 7040 schema -struct<> --- !query 7040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7041 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 7041 schema -struct<> --- !query 7041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7042 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 7042 schema -struct<> --- !query 7042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7043 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7043 schema -struct<> --- !query 7043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7044 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7044 schema -struct<> --- !query 7044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7045 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 7045 schema -struct<> --- !query 7045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7046 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 7046 schema -struct<> --- !query 7046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7047 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 7047 schema -struct<> --- !query 7047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7048 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 7048 schema -struct<> --- !query 7048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7049 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 7049 schema -struct<> --- !query 7049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7050 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 7050 schema -struct<> --- !query 7050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7051 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 7051 schema -struct<> --- !query 7051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7052 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 7052 schema -struct<> --- !query 7052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7053 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 7053 schema -struct<> --- !query 7053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7054 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 7054 schema -struct<> --- !query 7054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7055 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7055 schema -struct<> --- !query 7055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7056 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7056 schema -struct<> --- !query 7056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7057 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 7057 schema -struct> --- !query 7057 output -{1.0:1,2.0:2} - - --- !query 7058 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 7058 schema -struct> --- !query 7058 output -{1.0:1,2.0:2} - - --- !query 7059 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 7059 schema -struct> --- !query 7059 output -{1.0:1,2.0:2} - - --- !query 7060 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 7060 schema -struct> --- !query 7060 output -{1.0:1,2.0:2} - - --- !query 7061 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 7061 schema -struct> --- !query 7061 output -{1.0:1.0,2.0:2.0} - - --- !query 7062 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 7062 schema -struct> --- !query 7062 output -{1.0:1.0,2.0:2.0} - - --- !query 7063 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 7063 schema -struct> --- !query 7063 output -{1.0:1,2.0:2} - - --- !query 7064 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 7064 schema -struct> --- !query 7064 output -{1.0:"1",2.0:"2"} - - --- !query 7065 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 7065 schema -struct<> --- !query 7065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7066 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 7066 schema -struct<> --- !query 7066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7067 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7067 schema -struct<> --- !query 7067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7068 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7068 schema -struct<> --- !query 7068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7069 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 7069 schema -struct> --- !query 7069 output -{1.0:1,2.0:2} - - --- !query 7070 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 7070 schema -struct> --- !query 7070 output -{1.0:1,2.0:2} - - --- !query 7071 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 7071 schema -struct> --- !query 7071 output -{1.0:1,2.0:2} - - --- !query 7072 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 7072 schema -struct> --- !query 7072 output -{1.0:1,2.0:2} - - --- !query 7073 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 7073 schema -struct> --- !query 7073 output -{1.0:1.0,2.0:2.0} - - --- !query 7074 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 7074 schema -struct> --- !query 7074 output -{1.0:1.0,2.0:2.0} - - --- !query 7075 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 7075 schema -struct> --- !query 7075 output -{1.0:1,2.0:2} - - --- !query 7076 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 7076 schema -struct> --- !query 7076 output -{1.0:"1",2.0:"2"} - - --- !query 7077 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 7077 schema -struct<> --- !query 7077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7078 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 7078 schema -struct<> --- !query 7078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7079 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7079 schema -struct<> --- !query 7079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7080 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7080 schema -struct<> --- !query 7080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7081 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 7081 schema -struct> --- !query 7081 output -{1.0:1,2.0:2} - - --- !query 7082 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 7082 schema -struct> --- !query 7082 output -{1.0:1,2.0:2} - - --- !query 7083 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 7083 schema -struct> --- !query 7083 output -{1.0:1,2.0:2} - - --- !query 7084 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 7084 schema -struct> --- !query 7084 output -{1.0:1,2.0:2} - - --- !query 7085 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 7085 schema -struct> --- !query 7085 output -{1.0:1.0,2.0:2.0} - - --- !query 7086 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 7086 schema -struct> --- !query 7086 output -{1.0:1.0,2.0:2.0} - - --- !query 7087 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 7087 schema -struct> --- !query 7087 output -{1.0:1,2.0:2} - - --- !query 7088 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 7088 schema -struct> --- !query 7088 output -{1.0:"1",2.0:"2"} - - --- !query 7089 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 7089 schema -struct<> --- !query 7089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7090 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 7090 schema -struct<> --- !query 7090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7091 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7091 schema -struct<> --- !query 7091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7092 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7092 schema -struct<> --- !query 7092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7093 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 7093 schema -struct> --- !query 7093 output -{1.0:1,2.0:2} - - --- !query 7094 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 7094 schema -struct> --- !query 7094 output -{1.0:1,2.0:2} - - --- !query 7095 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 7095 schema -struct> --- !query 7095 output -{1.0:1,2.0:2} - - --- !query 7096 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 7096 schema -struct> --- !query 7096 output -{1.0:1,2.0:2} - - --- !query 7097 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 7097 schema -struct> --- !query 7097 output -{1.0:1.0,2.0:2.0} - - --- !query 7098 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 7098 schema -struct> --- !query 7098 output -{1.0:1.0,2.0:2.0} - - --- !query 7099 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 7099 schema -struct> --- !query 7099 output -{1.0:1,2.0:2} - - --- !query 7100 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 7100 schema -struct> --- !query 7100 output -{1.0:"1",2.0:"2"} - - --- !query 7101 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 7101 schema -struct<> --- !query 7101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7102 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 7102 schema -struct<> --- !query 7102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7103 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7103 schema -struct<> --- !query 7103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7104 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7104 schema -struct<> --- !query 7104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7105 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 7105 schema -struct> --- !query 7105 output -{1.0:1,2.0:2} - - --- !query 7106 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 7106 schema -struct> --- !query 7106 output -{1.0:1,2.0:2} - - --- !query 7107 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 7107 schema -struct> --- !query 7107 output -{1.0:1,2.0:2} - - --- !query 7108 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 7108 schema -struct> --- !query 7108 output -{1.0:1,2.0:2} - - --- !query 7109 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 7109 schema -struct> --- !query 7109 output -{1.0:1.0,2.0:2.0} - - --- !query 7110 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 7110 schema -struct> --- !query 7110 output -{1.0:1.0,2.0:2.0} - - --- !query 7111 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 7111 schema -struct> --- !query 7111 output -{1.0:1,2.0:2} - - --- !query 7112 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 7112 schema -struct> --- !query 7112 output -{1.0:"1",2.0:"2"} - - --- !query 7113 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 7113 schema -struct<> --- !query 7113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7114 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 7114 schema -struct<> --- !query 7114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7115 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7115 schema -struct<> --- !query 7115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7116 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7116 schema -struct<> --- !query 7116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7117 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 7117 schema -struct> --- !query 7117 output -{1.0:1,2.0:2} - - --- !query 7118 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 7118 schema -struct> --- !query 7118 output -{1.0:1,2.0:2} - - --- !query 7119 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 7119 schema -struct> --- !query 7119 output -{1.0:1,2.0:2} - - --- !query 7120 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 7120 schema -struct> --- !query 7120 output -{1.0:1,2.0:2} - - --- !query 7121 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 7121 schema -struct> --- !query 7121 output -{1.0:1.0,2.0:2.0} - - --- !query 7122 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 7122 schema -struct> --- !query 7122 output -{1.0:1.0,2.0:2.0} - - --- !query 7123 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 7123 schema -struct> --- !query 7123 output -{1.0:1,2.0:2} - - --- !query 7124 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 7124 schema -struct> --- !query 7124 output -{1.0:"1",2.0:"2"} - - --- !query 7125 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 7125 schema -struct<> --- !query 7125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7126 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 7126 schema -struct<> --- !query 7126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7127 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7127 schema -struct<> --- !query 7127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7128 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7128 schema -struct<> --- !query 7128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7129 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 7129 schema -struct> --- !query 7129 output -{1.0:1,2.0:2} - - --- !query 7130 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 7130 schema -struct> --- !query 7130 output -{1.0:1,2.0:2} - - --- !query 7131 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 7131 schema -struct> --- !query 7131 output -{1.0:1,2.0:2} - - --- !query 7132 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 7132 schema -struct> --- !query 7132 output -{1.0:1,2.0:2} - - --- !query 7133 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 7133 schema -struct> --- !query 7133 output -{1.0:1.0,2.0:2.0} - - --- !query 7134 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 7134 schema -struct> --- !query 7134 output -{1.0:1.0,2.0:2.0} - - --- !query 7135 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 7135 schema -struct> --- !query 7135 output -{1.0:1,2.0:2} - - --- !query 7136 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 7136 schema -struct> --- !query 7136 output -{1.0:"1",2.0:"2"} - - --- !query 7137 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 7137 schema -struct<> --- !query 7137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7138 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 7138 schema -struct<> --- !query 7138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7139 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7139 schema -struct<> --- !query 7139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7140 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7140 schema -struct<> --- !query 7140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7141 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 7141 schema -struct> --- !query 7141 output -{"1.0":1,"2":2} - - --- !query 7142 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 7142 schema -struct> --- !query 7142 output -{"1.0":1,"2":2} - - --- !query 7143 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 7143 schema -struct> --- !query 7143 output -{"1.0":1,"2":2} - - --- !query 7144 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 7144 schema -struct> --- !query 7144 output -{"1.0":1,"2":2} - - --- !query 7145 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 7145 schema -struct> --- !query 7145 output -{"1.0":1.0,"2":2.0} - - --- !query 7146 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 7146 schema -struct> --- !query 7146 output -{"1.0":1.0,"2":2.0} - - --- !query 7147 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 7147 schema -struct> --- !query 7147 output -{"1.0":1,"2":2} - - --- !query 7148 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 7148 schema -struct> --- !query 7148 output -{"1.0":"1","2":"2"} - - --- !query 7149 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 7149 schema -struct<> --- !query 7149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 7150 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 7150 schema -struct<> --- !query 7150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 7151 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7151 schema -struct<> --- !query 7151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 7152 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7152 schema -struct<> --- !query 7152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 7153 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 7153 schema -struct<> --- !query 7153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7154 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 7154 schema -struct<> --- !query 7154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7155 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 7155 schema -struct<> --- !query 7155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7156 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 7156 schema -struct<> --- !query 7156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7157 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 7157 schema -struct<> --- !query 7157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7158 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 7158 schema -struct<> --- !query 7158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7159 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 7159 schema -struct<> --- !query 7159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7160 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 7160 schema -struct<> --- !query 7160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7161 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 7161 schema -struct<> --- !query 7161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7162 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 7162 schema -struct<> --- !query 7162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7163 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7163 schema -struct<> --- !query 7163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7164 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7164 schema -struct<> --- !query 7164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7165 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 7165 schema -struct<> --- !query 7165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7166 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 7166 schema -struct<> --- !query 7166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7167 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 7167 schema -struct<> --- !query 7167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7168 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 7168 schema -struct<> --- !query 7168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7169 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 7169 schema -struct<> --- !query 7169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7170 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 7170 schema -struct<> --- !query 7170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7171 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 7171 schema -struct<> --- !query 7171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7172 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 7172 schema -struct<> --- !query 7172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7173 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 7173 schema -struct<> --- !query 7173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7174 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 7174 schema -struct<> --- !query 7174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7175 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7175 schema -struct<> --- !query 7175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7176 -SELECT map(cast(1 as float), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7176 schema -struct<> --- !query 7176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7177 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 7177 schema -struct<> --- !query 7177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7178 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 7178 schema -struct<> --- !query 7178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7179 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 7179 schema -struct<> --- !query 7179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7180 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 7180 schema -struct<> --- !query 7180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7181 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 7181 schema -struct<> --- !query 7181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7182 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 7182 schema -struct<> --- !query 7182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7183 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 7183 schema -struct<> --- !query 7183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7184 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 7184 schema -struct<> --- !query 7184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7185 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 7185 schema -struct<> --- !query 7185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7186 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 7186 schema -struct<> --- !query 7186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7187 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7187 schema -struct<> --- !query 7187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7188 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7188 schema -struct<> --- !query 7188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7189 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 7189 schema -struct<> --- !query 7189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7190 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 7190 schema -struct<> --- !query 7190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7191 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 7191 schema -struct<> --- !query 7191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7192 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 7192 schema -struct<> --- !query 7192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7193 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 7193 schema -struct<> --- !query 7193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7194 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 7194 schema -struct<> --- !query 7194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7195 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 7195 schema -struct<> --- !query 7195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7196 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 7196 schema -struct<> --- !query 7196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7197 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 7197 schema -struct<> --- !query 7197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7198 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 7198 schema -struct<> --- !query 7198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7199 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7199 schema -struct<> --- !query 7199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7200 -SELECT map(cast(1 as float), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7200 schema -struct<> --- !query 7200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7201 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 7201 schema -struct> --- !query 7201 output -{1.0:1,2.0:2} - - --- !query 7202 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 7202 schema -struct> --- !query 7202 output -{1.0:1,2.0:2} - - --- !query 7203 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 7203 schema -struct> --- !query 7203 output -{1.0:1,2.0:2} - - --- !query 7204 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 7204 schema -struct> --- !query 7204 output -{1.0:1,2.0:2} - - --- !query 7205 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 7205 schema -struct> --- !query 7205 output -{1.0:1.0,2.0:2.0} - - --- !query 7206 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 7206 schema -struct> --- !query 7206 output -{1.0:1.0,2.0:2.0} - - --- !query 7207 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 7207 schema -struct> --- !query 7207 output -{1.0:1,2.0:2} - - --- !query 7208 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 7208 schema -struct> --- !query 7208 output -{1.0:"1",2.0:"2"} - - --- !query 7209 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 7209 schema -struct<> --- !query 7209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7210 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 7210 schema -struct<> --- !query 7210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7211 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7211 schema -struct<> --- !query 7211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7212 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7212 schema -struct<> --- !query 7212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7213 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 7213 schema -struct> --- !query 7213 output -{1.0:1,2.0:2} - - --- !query 7214 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 7214 schema -struct> --- !query 7214 output -{1.0:1,2.0:2} - - --- !query 7215 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 7215 schema -struct> --- !query 7215 output -{1.0:1,2.0:2} - - --- !query 7216 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 7216 schema -struct> --- !query 7216 output -{1.0:1,2.0:2} - - --- !query 7217 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 7217 schema -struct> --- !query 7217 output -{1.0:1.0,2.0:2.0} - - --- !query 7218 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 7218 schema -struct> --- !query 7218 output -{1.0:1.0,2.0:2.0} - - --- !query 7219 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 7219 schema -struct> --- !query 7219 output -{1.0:1,2.0:2} - - --- !query 7220 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 7220 schema -struct> --- !query 7220 output -{1.0:"1",2.0:"2"} - - --- !query 7221 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 7221 schema -struct<> --- !query 7221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7222 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 7222 schema -struct<> --- !query 7222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7223 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7223 schema -struct<> --- !query 7223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7224 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7224 schema -struct<> --- !query 7224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7225 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 7225 schema -struct> --- !query 7225 output -{1.0:1,2.0:2} - - --- !query 7226 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 7226 schema -struct> --- !query 7226 output -{1.0:1,2.0:2} - - --- !query 7227 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 7227 schema -struct> --- !query 7227 output -{1.0:1,2.0:2} - - --- !query 7228 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 7228 schema -struct> --- !query 7228 output -{1.0:1,2.0:2} - - --- !query 7229 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 7229 schema -struct> --- !query 7229 output -{1.0:1.0,2.0:2.0} - - --- !query 7230 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 7230 schema -struct> --- !query 7230 output -{1.0:1.0,2.0:2.0} - - --- !query 7231 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 7231 schema -struct> --- !query 7231 output -{1.0:1,2.0:2} - - --- !query 7232 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 7232 schema -struct> --- !query 7232 output -{1.0:"1",2.0:"2"} - - --- !query 7233 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 7233 schema -struct<> --- !query 7233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7234 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 7234 schema -struct<> --- !query 7234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7235 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7235 schema -struct<> --- !query 7235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7236 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7236 schema -struct<> --- !query 7236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7237 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 7237 schema -struct> --- !query 7237 output -{1.0:1,2.0:2} - - --- !query 7238 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 7238 schema -struct> --- !query 7238 output -{1.0:1,2.0:2} - - --- !query 7239 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 7239 schema -struct> --- !query 7239 output -{1.0:1,2.0:2} - - --- !query 7240 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 7240 schema -struct> --- !query 7240 output -{1.0:1,2.0:2} - - --- !query 7241 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 7241 schema -struct> --- !query 7241 output -{1.0:1.0,2.0:2.0} - - --- !query 7242 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 7242 schema -struct> --- !query 7242 output -{1.0:1.0,2.0:2.0} - - --- !query 7243 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 7243 schema -struct> --- !query 7243 output -{1.0:1,2.0:2} - - --- !query 7244 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 7244 schema -struct> --- !query 7244 output -{1.0:"1",2.0:"2"} - - --- !query 7245 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 7245 schema -struct<> --- !query 7245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7246 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 7246 schema -struct<> --- !query 7246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7247 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7247 schema -struct<> --- !query 7247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7248 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7248 schema -struct<> --- !query 7248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7249 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 7249 schema -struct> --- !query 7249 output -{1.0:1,2.0:2} - - --- !query 7250 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 7250 schema -struct> --- !query 7250 output -{1.0:1,2.0:2} - - --- !query 7251 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 7251 schema -struct> --- !query 7251 output -{1.0:1,2.0:2} - - --- !query 7252 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 7252 schema -struct> --- !query 7252 output -{1.0:1,2.0:2} - - --- !query 7253 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 7253 schema -struct> --- !query 7253 output -{1.0:1.0,2.0:2.0} - - --- !query 7254 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 7254 schema -struct> --- !query 7254 output -{1.0:1.0,2.0:2.0} - - --- !query 7255 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 7255 schema -struct> --- !query 7255 output -{1.0:1,2.0:2} - - --- !query 7256 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 7256 schema -struct> --- !query 7256 output -{1.0:"1",2.0:"2"} - - --- !query 7257 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 7257 schema -struct<> --- !query 7257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7258 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 7258 schema -struct<> --- !query 7258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7259 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7259 schema -struct<> --- !query 7259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7260 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7260 schema -struct<> --- !query 7260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7261 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 7261 schema -struct> --- !query 7261 output -{1.0:1,2.0:2} - - --- !query 7262 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 7262 schema -struct> --- !query 7262 output -{1.0:1,2.0:2} - - --- !query 7263 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 7263 schema -struct> --- !query 7263 output -{1.0:1,2.0:2} - - --- !query 7264 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 7264 schema -struct> --- !query 7264 output -{1.0:1,2.0:2} - - --- !query 7265 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 7265 schema -struct> --- !query 7265 output -{1.0:1.0,2.0:2.0} - - --- !query 7266 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 7266 schema -struct> --- !query 7266 output -{1.0:1.0,2.0:2.0} - - --- !query 7267 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 7267 schema -struct> --- !query 7267 output -{1.0:1,2.0:2} - - --- !query 7268 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 7268 schema -struct> --- !query 7268 output -{1.0:"1",2.0:"2"} - - --- !query 7269 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 7269 schema -struct<> --- !query 7269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7270 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 7270 schema -struct<> --- !query 7270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7271 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7271 schema -struct<> --- !query 7271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7272 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7272 schema -struct<> --- !query 7272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7273 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 7273 schema -struct> --- !query 7273 output -{1.0:1,2.0:2} - - --- !query 7274 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 7274 schema -struct> --- !query 7274 output -{1.0:1,2.0:2} - - --- !query 7275 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 7275 schema -struct> --- !query 7275 output -{1.0:1,2.0:2} - - --- !query 7276 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 7276 schema -struct> --- !query 7276 output -{1.0:1,2.0:2} - - --- !query 7277 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 7277 schema -struct> --- !query 7277 output -{1.0:1.0,2.0:2.0} - - --- !query 7278 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 7278 schema -struct> --- !query 7278 output -{1.0:1.0,2.0:2.0} - - --- !query 7279 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 7279 schema -struct> --- !query 7279 output -{1.0:1,2.0:2} - - --- !query 7280 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 7280 schema -struct> --- !query 7280 output -{1.0:"1",2.0:"2"} - - --- !query 7281 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 7281 schema -struct<> --- !query 7281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7282 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 7282 schema -struct<> --- !query 7282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7283 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7283 schema -struct<> --- !query 7283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7284 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7284 schema -struct<> --- !query 7284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7285 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 7285 schema -struct> --- !query 7285 output -{"1.0":1,"2":2} - - --- !query 7286 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 7286 schema -struct> --- !query 7286 output -{"1.0":1,"2":2} - - --- !query 7287 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 7287 schema -struct> --- !query 7287 output -{"1.0":1,"2":2} - - --- !query 7288 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 7288 schema -struct> --- !query 7288 output -{"1.0":1,"2":2} - - --- !query 7289 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 7289 schema -struct> --- !query 7289 output -{"1.0":1.0,"2":2.0} - - --- !query 7290 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 7290 schema -struct> --- !query 7290 output -{"1.0":1.0,"2":2.0} - - --- !query 7291 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 7291 schema -struct> --- !query 7291 output -{"1.0":1,"2":2} - - --- !query 7292 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 7292 schema -struct> --- !query 7292 output -{"1.0":"1","2":"2"} - - --- !query 7293 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 7293 schema -struct<> --- !query 7293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 7294 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 7294 schema -struct<> --- !query 7294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 7295 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7295 schema -struct<> --- !query 7295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 7296 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7296 schema -struct<> --- !query 7296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 7297 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 7297 schema -struct<> --- !query 7297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7298 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 7298 schema -struct<> --- !query 7298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7299 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 7299 schema -struct<> --- !query 7299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7300 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 7300 schema -struct<> --- !query 7300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7301 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 7301 schema -struct<> --- !query 7301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7302 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 7302 schema -struct<> --- !query 7302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7303 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 7303 schema -struct<> --- !query 7303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7304 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 7304 schema -struct<> --- !query 7304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7305 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 7305 schema -struct<> --- !query 7305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7306 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 7306 schema -struct<> --- !query 7306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7307 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7307 schema -struct<> --- !query 7307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7308 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7308 schema -struct<> --- !query 7308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7309 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 7309 schema -struct<> --- !query 7309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7310 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 7310 schema -struct<> --- !query 7310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7311 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 7311 schema -struct<> --- !query 7311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7312 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 7312 schema -struct<> --- !query 7312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7313 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 7313 schema -struct<> --- !query 7313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7314 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 7314 schema -struct<> --- !query 7314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7315 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 7315 schema -struct<> --- !query 7315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7316 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 7316 schema -struct<> --- !query 7316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7317 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 7317 schema -struct<> --- !query 7317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7318 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 7318 schema -struct<> --- !query 7318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7319 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7319 schema -struct<> --- !query 7319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7320 -SELECT map(cast(1 as float), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7320 schema -struct<> --- !query 7320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7321 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 7321 schema -struct<> --- !query 7321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7322 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 7322 schema -struct<> --- !query 7322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7323 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 7323 schema -struct<> --- !query 7323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7324 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 7324 schema -struct<> --- !query 7324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7325 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 7325 schema -struct<> --- !query 7325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7326 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 7326 schema -struct<> --- !query 7326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7327 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 7327 schema -struct<> --- !query 7327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7328 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 7328 schema -struct<> --- !query 7328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7329 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 7329 schema -struct<> --- !query 7329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7330 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 7330 schema -struct<> --- !query 7330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7331 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7331 schema -struct<> --- !query 7331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7332 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7332 schema -struct<> --- !query 7332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7333 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 7333 schema -struct<> --- !query 7333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7334 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 7334 schema -struct<> --- !query 7334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7335 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 7335 schema -struct<> --- !query 7335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7336 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 7336 schema -struct<> --- !query 7336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7337 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 7337 schema -struct<> --- !query 7337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7338 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 7338 schema -struct<> --- !query 7338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7339 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 7339 schema -struct<> --- !query 7339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7340 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 7340 schema -struct<> --- !query 7340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7341 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 7341 schema -struct<> --- !query 7341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7342 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 7342 schema -struct<> --- !query 7342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7343 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7343 schema -struct<> --- !query 7343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7344 -SELECT map(cast(1 as float), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7344 schema -struct<> --- !query 7344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7345 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 7345 schema -struct> --- !query 7345 output -{1.0:1,2.0:2} - - --- !query 7346 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 7346 schema -struct> --- !query 7346 output -{1.0:1,2.0:2} - - --- !query 7347 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 7347 schema -struct> --- !query 7347 output -{1.0:1,2.0:2} - - --- !query 7348 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 7348 schema -struct> --- !query 7348 output -{1.0:1,2.0:2} - - --- !query 7349 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 7349 schema -struct> --- !query 7349 output -{1.0:1.0,2.0:2.0} - - --- !query 7350 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 7350 schema -struct> --- !query 7350 output -{1.0:1.0,2.0:2.0} - - --- !query 7351 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 7351 schema -struct> --- !query 7351 output -{1.0:1,2.0:2} - - --- !query 7352 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 7352 schema -struct> --- !query 7352 output -{1.0:"1",2.0:"2"} - - --- !query 7353 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 7353 schema -struct<> --- !query 7353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7354 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 7354 schema -struct<> --- !query 7354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7355 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7355 schema -struct<> --- !query 7355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7356 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7356 schema -struct<> --- !query 7356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7357 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 7357 schema -struct> --- !query 7357 output -{1.0:1,2.0:2} - - --- !query 7358 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 7358 schema -struct> --- !query 7358 output -{1.0:1,2.0:2} - - --- !query 7359 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 7359 schema -struct> --- !query 7359 output -{1.0:1,2.0:2} - - --- !query 7360 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 7360 schema -struct> --- !query 7360 output -{1.0:1,2.0:2} - - --- !query 7361 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 7361 schema -struct> --- !query 7361 output -{1.0:1.0,2.0:2.0} - - --- !query 7362 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 7362 schema -struct> --- !query 7362 output -{1.0:1.0,2.0:2.0} - - --- !query 7363 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 7363 schema -struct> --- !query 7363 output -{1.0:1,2.0:2} - - --- !query 7364 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 7364 schema -struct> --- !query 7364 output -{1.0:"1",2.0:"2"} - - --- !query 7365 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 7365 schema -struct<> --- !query 7365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7366 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 7366 schema -struct<> --- !query 7366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7367 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7367 schema -struct<> --- !query 7367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7368 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7368 schema -struct<> --- !query 7368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7369 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 7369 schema -struct> --- !query 7369 output -{1.0:1,2.0:2} - - --- !query 7370 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 7370 schema -struct> --- !query 7370 output -{1.0:1,2.0:2} - - --- !query 7371 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 7371 schema -struct> --- !query 7371 output -{1.0:1,2.0:2} - - --- !query 7372 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 7372 schema -struct> --- !query 7372 output -{1.0:1,2.0:2} - - --- !query 7373 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 7373 schema -struct> --- !query 7373 output -{1.0:1.0,2.0:2.0} - - --- !query 7374 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 7374 schema -struct> --- !query 7374 output -{1.0:1.0,2.0:2.0} - - --- !query 7375 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 7375 schema -struct> --- !query 7375 output -{1.0:1,2.0:2} - - --- !query 7376 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 7376 schema -struct> --- !query 7376 output -{1.0:"1",2.0:"2"} - - --- !query 7377 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 7377 schema -struct<> --- !query 7377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7378 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 7378 schema -struct<> --- !query 7378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7379 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7379 schema -struct<> --- !query 7379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7380 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7380 schema -struct<> --- !query 7380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7381 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 7381 schema -struct> --- !query 7381 output -{1.0:1,2.0:2} - - --- !query 7382 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 7382 schema -struct> --- !query 7382 output -{1.0:1,2.0:2} - - --- !query 7383 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 7383 schema -struct> --- !query 7383 output -{1.0:1,2.0:2} - - --- !query 7384 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 7384 schema -struct> --- !query 7384 output -{1.0:1,2.0:2} - - --- !query 7385 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 7385 schema -struct> --- !query 7385 output -{1.0:1.0,2.0:2.0} - - --- !query 7386 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 7386 schema -struct> --- !query 7386 output -{1.0:1.0,2.0:2.0} - - --- !query 7387 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 7387 schema -struct> --- !query 7387 output -{1.0:1,2.0:2} - - --- !query 7388 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 7388 schema -struct> --- !query 7388 output -{1.0:"1",2.0:"2"} - - --- !query 7389 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 7389 schema -struct<> --- !query 7389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7390 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 7390 schema -struct<> --- !query 7390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7391 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7391 schema -struct<> --- !query 7391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7392 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7392 schema -struct<> --- !query 7392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7393 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 7393 schema -struct> --- !query 7393 output -{1.0:1,2.0:2} - - --- !query 7394 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 7394 schema -struct> --- !query 7394 output -{1.0:1,2.0:2} - - --- !query 7395 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 7395 schema -struct> --- !query 7395 output -{1.0:1,2.0:2} - - --- !query 7396 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 7396 schema -struct> --- !query 7396 output -{1.0:1,2.0:2} - - --- !query 7397 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 7397 schema -struct> --- !query 7397 output -{1.0:1.0,2.0:2.0} - - --- !query 7398 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 7398 schema -struct> --- !query 7398 output -{1.0:1.0,2.0:2.0} - - --- !query 7399 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 7399 schema -struct> --- !query 7399 output -{1.0:1,2.0:2} - - --- !query 7400 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 7400 schema -struct> --- !query 7400 output -{1.0:"1",2.0:"2"} - - --- !query 7401 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 7401 schema -struct<> --- !query 7401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7402 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 7402 schema -struct<> --- !query 7402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7403 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7403 schema -struct<> --- !query 7403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7404 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7404 schema -struct<> --- !query 7404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7405 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 7405 schema -struct> --- !query 7405 output -{1.0:1,2.0:2} - - --- !query 7406 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 7406 schema -struct> --- !query 7406 output -{1.0:1,2.0:2} - - --- !query 7407 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 7407 schema -struct> --- !query 7407 output -{1.0:1,2.0:2} - - --- !query 7408 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 7408 schema -struct> --- !query 7408 output -{1.0:1,2.0:2} - - --- !query 7409 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 7409 schema -struct> --- !query 7409 output -{1.0:1.0,2.0:2.0} - - --- !query 7410 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 7410 schema -struct> --- !query 7410 output -{1.0:1.0,2.0:2.0} - - --- !query 7411 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 7411 schema -struct> --- !query 7411 output -{1.0:1,2.0:2} - - --- !query 7412 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 7412 schema -struct> --- !query 7412 output -{1.0:"1",2.0:"2"} - - --- !query 7413 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 7413 schema -struct<> --- !query 7413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7414 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 7414 schema -struct<> --- !query 7414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7415 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7415 schema -struct<> --- !query 7415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7416 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7416 schema -struct<> --- !query 7416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7417 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 7417 schema -struct> --- !query 7417 output -{1.0:1,2.0:2} - - --- !query 7418 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 7418 schema -struct> --- !query 7418 output -{1.0:1,2.0:2} - - --- !query 7419 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 7419 schema -struct> --- !query 7419 output -{1.0:1,2.0:2} - - --- !query 7420 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 7420 schema -struct> --- !query 7420 output -{1.0:1,2.0:2} - - --- !query 7421 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 7421 schema -struct> --- !query 7421 output -{1.0:1.0,2.0:2.0} - - --- !query 7422 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 7422 schema -struct> --- !query 7422 output -{1.0:1.0,2.0:2.0} - - --- !query 7423 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 7423 schema -struct> --- !query 7423 output -{1.0:1,2.0:2} - - --- !query 7424 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 7424 schema -struct> --- !query 7424 output -{1.0:"1",2.0:"2"} - - --- !query 7425 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 7425 schema -struct<> --- !query 7425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7426 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 7426 schema -struct<> --- !query 7426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7427 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7427 schema -struct<> --- !query 7427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7428 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7428 schema -struct<> --- !query 7428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7429 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 7429 schema -struct> --- !query 7429 output -{"1.0":1,"2":2} - - --- !query 7430 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 7430 schema -struct> --- !query 7430 output -{"1.0":1,"2":2} - - --- !query 7431 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 7431 schema -struct> --- !query 7431 output -{"1.0":1,"2":2} - - --- !query 7432 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 7432 schema -struct> --- !query 7432 output -{"1.0":1,"2":2} - - --- !query 7433 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 7433 schema -struct> --- !query 7433 output -{"1.0":1.0,"2":2.0} - - --- !query 7434 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 7434 schema -struct> --- !query 7434 output -{"1.0":1.0,"2":2.0} - - --- !query 7435 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 7435 schema -struct> --- !query 7435 output -{"1.0":1,"2":2} - - --- !query 7436 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 7436 schema -struct> --- !query 7436 output -{"1.0":"1","2":"2"} - - --- !query 7437 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 7437 schema -struct<> --- !query 7437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 7438 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 7438 schema -struct<> --- !query 7438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 7439 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7439 schema -struct<> --- !query 7439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 7440 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7440 schema -struct<> --- !query 7440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 7441 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 7441 schema -struct<> --- !query 7441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7442 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 7442 schema -struct<> --- !query 7442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7443 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 7443 schema -struct<> --- !query 7443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7444 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 7444 schema -struct<> --- !query 7444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7445 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 7445 schema -struct<> --- !query 7445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7446 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 7446 schema -struct<> --- !query 7446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7447 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 7447 schema -struct<> --- !query 7447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7448 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 7448 schema -struct<> --- !query 7448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7449 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 7449 schema -struct<> --- !query 7449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7450 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 7450 schema -struct<> --- !query 7450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7451 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7451 schema -struct<> --- !query 7451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7452 -SELECT map(cast(1 as float), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7452 schema -struct<> --- !query 7452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7453 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 7453 schema -struct<> --- !query 7453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7454 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 7454 schema -struct<> --- !query 7454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7455 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 7455 schema -struct<> --- !query 7455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7456 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 7456 schema -struct<> --- !query 7456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7457 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 7457 schema -struct<> --- !query 7457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7458 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 7458 schema -struct<> --- !query 7458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7459 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 7459 schema -struct<> --- !query 7459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7460 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 7460 schema -struct<> --- !query 7460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7461 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 7461 schema -struct<> --- !query 7461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7462 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 7462 schema -struct<> --- !query 7462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7463 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7463 schema -struct<> --- !query 7463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7464 -SELECT map(cast(1 as float), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7464 schema -struct<> --- !query 7464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7465 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 7465 schema -struct<> --- !query 7465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7466 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 7466 schema -struct<> --- !query 7466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7467 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 7467 schema -struct<> --- !query 7467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7468 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 7468 schema -struct<> --- !query 7468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7469 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 7469 schema -struct<> --- !query 7469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7470 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 7470 schema -struct<> --- !query 7470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7471 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 7471 schema -struct<> --- !query 7471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7472 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 7472 schema -struct<> --- !query 7472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7473 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 7473 schema -struct<> --- !query 7473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7474 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 7474 schema -struct<> --- !query 7474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7475 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7475 schema -struct<> --- !query 7475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7476 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7476 schema -struct<> --- !query 7476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7477 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 7477 schema -struct<> --- !query 7477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7478 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 7478 schema -struct<> --- !query 7478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7479 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 7479 schema -struct<> --- !query 7479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7480 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 7480 schema -struct<> --- !query 7480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7481 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 7481 schema -struct<> --- !query 7481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7482 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 7482 schema -struct<> --- !query 7482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7483 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 7483 schema -struct<> --- !query 7483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7484 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 7484 schema -struct<> --- !query 7484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7485 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 7485 schema -struct<> --- !query 7485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7486 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 7486 schema -struct<> --- !query 7486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7487 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7487 schema -struct<> --- !query 7487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7488 -SELECT map(cast(1 as float), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7488 schema -struct<> --- !query 7488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7489 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 7489 schema -struct> --- !query 7489 output -{1.0:1,2.0:2} - - --- !query 7490 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 7490 schema -struct> --- !query 7490 output -{1.0:1,2.0:2} - - --- !query 7491 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 7491 schema -struct> --- !query 7491 output -{1.0:1,2.0:2} - - --- !query 7492 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 7492 schema -struct> --- !query 7492 output -{1.0:1,2.0:2} - - --- !query 7493 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 7493 schema -struct> --- !query 7493 output -{1.0:1.0,2.0:2.0} - - --- !query 7494 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 7494 schema -struct> --- !query 7494 output -{1.0:1.0,2.0:2.0} - - --- !query 7495 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 7495 schema -struct> --- !query 7495 output -{1.0:1,2.0:2} - - --- !query 7496 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 7496 schema -struct> --- !query 7496 output -{1.0:"1",2.0:"2"} - - --- !query 7497 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 7497 schema -struct<> --- !query 7497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7498 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 7498 schema -struct<> --- !query 7498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7499 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7499 schema -struct<> --- !query 7499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7500 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7500 schema -struct<> --- !query 7500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7501 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 7501 schema -struct> --- !query 7501 output -{1.0:1,2.0:2} - - --- !query 7502 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 7502 schema -struct> --- !query 7502 output -{1.0:1,2.0:2} - - --- !query 7503 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 7503 schema -struct> --- !query 7503 output -{1.0:1,2.0:2} - - --- !query 7504 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 7504 schema -struct> --- !query 7504 output -{1.0:1,2.0:2} - - --- !query 7505 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 7505 schema -struct> --- !query 7505 output -{1.0:1.0,2.0:2.0} - - --- !query 7506 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 7506 schema -struct> --- !query 7506 output -{1.0:1.0,2.0:2.0} - - --- !query 7507 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 7507 schema -struct> --- !query 7507 output -{1.0:1,2.0:2} - - --- !query 7508 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 7508 schema -struct> --- !query 7508 output -{1.0:"1",2.0:"2"} - - --- !query 7509 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 7509 schema -struct<> --- !query 7509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7510 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 7510 schema -struct<> --- !query 7510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7511 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7511 schema -struct<> --- !query 7511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7512 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7512 schema -struct<> --- !query 7512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7513 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 7513 schema -struct> --- !query 7513 output -{1.0:1,2.0:2} - - --- !query 7514 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 7514 schema -struct> --- !query 7514 output -{1.0:1,2.0:2} - - --- !query 7515 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 7515 schema -struct> --- !query 7515 output -{1.0:1,2.0:2} - - --- !query 7516 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 7516 schema -struct> --- !query 7516 output -{1.0:1,2.0:2} - - --- !query 7517 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 7517 schema -struct> --- !query 7517 output -{1.0:1.0,2.0:2.0} - - --- !query 7518 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 7518 schema -struct> --- !query 7518 output -{1.0:1.0,2.0:2.0} - - --- !query 7519 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 7519 schema -struct> --- !query 7519 output -{1.0:1,2.0:2} - - --- !query 7520 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 7520 schema -struct> --- !query 7520 output -{1.0:"1",2.0:"2"} - - --- !query 7521 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 7521 schema -struct<> --- !query 7521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7522 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 7522 schema -struct<> --- !query 7522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7523 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7523 schema -struct<> --- !query 7523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7524 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7524 schema -struct<> --- !query 7524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7525 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 7525 schema -struct> --- !query 7525 output -{1.0:1,2.0:2} - - --- !query 7526 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 7526 schema -struct> --- !query 7526 output -{1.0:1,2.0:2} - - --- !query 7527 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 7527 schema -struct> --- !query 7527 output -{1.0:1,2.0:2} - - --- !query 7528 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 7528 schema -struct> --- !query 7528 output -{1.0:1,2.0:2} - - --- !query 7529 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 7529 schema -struct> --- !query 7529 output -{1.0:1.0,2.0:2.0} - - --- !query 7530 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 7530 schema -struct> --- !query 7530 output -{1.0:1.0,2.0:2.0} - - --- !query 7531 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 7531 schema -struct> --- !query 7531 output -{1.0:1,2.0:2} - - --- !query 7532 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 7532 schema -struct> --- !query 7532 output -{1.0:"1",2.0:"2"} - - --- !query 7533 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 7533 schema -struct<> --- !query 7533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7534 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 7534 schema -struct<> --- !query 7534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7535 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7535 schema -struct<> --- !query 7535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7536 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7536 schema -struct<> --- !query 7536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7537 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 7537 schema -struct> --- !query 7537 output -{1.0:1,2.0:2} - - --- !query 7538 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 7538 schema -struct> --- !query 7538 output -{1.0:1,2.0:2} - - --- !query 7539 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 7539 schema -struct> --- !query 7539 output -{1.0:1,2.0:2} - - --- !query 7540 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 7540 schema -struct> --- !query 7540 output -{1.0:1,2.0:2} - - --- !query 7541 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 7541 schema -struct> --- !query 7541 output -{1.0:1.0,2.0:2.0} - - --- !query 7542 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 7542 schema -struct> --- !query 7542 output -{1.0:1.0,2.0:2.0} - - --- !query 7543 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 7543 schema -struct> --- !query 7543 output -{1.0:1,2.0:2} - - --- !query 7544 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 7544 schema -struct> --- !query 7544 output -{1.0:"1",2.0:"2"} - - --- !query 7545 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 7545 schema -struct<> --- !query 7545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7546 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 7546 schema -struct<> --- !query 7546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7547 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7547 schema -struct<> --- !query 7547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7548 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7548 schema -struct<> --- !query 7548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7549 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 7549 schema -struct> --- !query 7549 output -{1.0:1,2.0:2} - - --- !query 7550 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 7550 schema -struct> --- !query 7550 output -{1.0:1,2.0:2} - - --- !query 7551 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 7551 schema -struct> --- !query 7551 output -{1.0:1,2.0:2} - - --- !query 7552 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 7552 schema -struct> --- !query 7552 output -{1.0:1,2.0:2} - - --- !query 7553 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 7553 schema -struct> --- !query 7553 output -{1.0:1.0,2.0:2.0} - - --- !query 7554 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 7554 schema -struct> --- !query 7554 output -{1.0:1.0,2.0:2.0} - - --- !query 7555 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 7555 schema -struct> --- !query 7555 output -{1.0:1,2.0:2} - - --- !query 7556 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 7556 schema -struct> --- !query 7556 output -{1.0:"1",2.0:"2"} - - --- !query 7557 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 7557 schema -struct<> --- !query 7557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7558 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 7558 schema -struct<> --- !query 7558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7559 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7559 schema -struct<> --- !query 7559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7560 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7560 schema -struct<> --- !query 7560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7561 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 7561 schema -struct> --- !query 7561 output -{1.0:1,2.0:2} - - --- !query 7562 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 7562 schema -struct> --- !query 7562 output -{1.0:1,2.0:2} - - --- !query 7563 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 7563 schema -struct> --- !query 7563 output -{1.0:1,2.0:2} - - --- !query 7564 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 7564 schema -struct> --- !query 7564 output -{1.0:1,2.0:2} - - --- !query 7565 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 7565 schema -struct> --- !query 7565 output -{1.0:1.0,2.0:2.0} - - --- !query 7566 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 7566 schema -struct> --- !query 7566 output -{1.0:1.0,2.0:2.0} - - --- !query 7567 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 7567 schema -struct> --- !query 7567 output -{1.0:1,2.0:2} - - --- !query 7568 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 7568 schema -struct> --- !query 7568 output -{1.0:"1",2.0:"2"} - - --- !query 7569 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 7569 schema -struct<> --- !query 7569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7570 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 7570 schema -struct<> --- !query 7570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7571 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7571 schema -struct<> --- !query 7571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7572 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7572 schema -struct<> --- !query 7572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7573 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 7573 schema -struct> --- !query 7573 output -{"1.0":1,"2":2} - - --- !query 7574 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 7574 schema -struct> --- !query 7574 output -{"1.0":1,"2":2} - - --- !query 7575 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 7575 schema -struct> --- !query 7575 output -{"1.0":1,"2":2} - - --- !query 7576 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 7576 schema -struct> --- !query 7576 output -{"1.0":1,"2":2} - - --- !query 7577 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 7577 schema -struct> --- !query 7577 output -{"1.0":1.0,"2":2.0} - - --- !query 7578 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 7578 schema -struct> --- !query 7578 output -{"1.0":1.0,"2":2.0} - - --- !query 7579 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 7579 schema -struct> --- !query 7579 output -{"1.0":1,"2":2} - - --- !query 7580 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 7580 schema -struct> --- !query 7580 output -{"1.0":"1","2":"2"} - - --- !query 7581 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 7581 schema -struct<> --- !query 7581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 7582 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 7582 schema -struct<> --- !query 7582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 7583 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7583 schema -struct<> --- !query 7583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 7584 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7584 schema -struct<> --- !query 7584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 7585 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 7585 schema -struct<> --- !query 7585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7586 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 7586 schema -struct<> --- !query 7586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7587 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 7587 schema -struct<> --- !query 7587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7588 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 7588 schema -struct<> --- !query 7588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7589 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 7589 schema -struct<> --- !query 7589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7590 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 7590 schema -struct<> --- !query 7590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7591 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 7591 schema -struct<> --- !query 7591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7592 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 7592 schema -struct<> --- !query 7592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7593 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 7593 schema -struct<> --- !query 7593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7594 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 7594 schema -struct<> --- !query 7594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7595 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7595 schema -struct<> --- !query 7595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7596 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7596 schema -struct<> --- !query 7596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7597 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 7597 schema -struct<> --- !query 7597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7598 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 7598 schema -struct<> --- !query 7598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7599 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 7599 schema -struct<> --- !query 7599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7600 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 7600 schema -struct<> --- !query 7600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7601 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 7601 schema -struct<> --- !query 7601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7602 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 7602 schema -struct<> --- !query 7602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7603 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 7603 schema -struct<> --- !query 7603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7604 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 7604 schema -struct<> --- !query 7604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7605 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 7605 schema -struct<> --- !query 7605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7606 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 7606 schema -struct<> --- !query 7606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7607 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7607 schema -struct<> --- !query 7607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7608 -SELECT map(cast(1 as float), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7608 schema -struct<> --- !query 7608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7609 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 7609 schema -struct<> --- !query 7609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7610 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 7610 schema -struct<> --- !query 7610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7611 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 7611 schema -struct<> --- !query 7611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7612 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 7612 schema -struct<> --- !query 7612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7613 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 7613 schema -struct<> --- !query 7613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7614 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 7614 schema -struct<> --- !query 7614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7615 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 7615 schema -struct<> --- !query 7615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7616 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 7616 schema -struct<> --- !query 7616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7617 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 7617 schema -struct<> --- !query 7617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7618 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 7618 schema -struct<> --- !query 7618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7619 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7619 schema -struct<> --- !query 7619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7620 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7620 schema -struct<> --- !query 7620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7621 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 7621 schema -struct<> --- !query 7621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7622 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 7622 schema -struct<> --- !query 7622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7623 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 7623 schema -struct<> --- !query 7623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7624 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 7624 schema -struct<> --- !query 7624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7625 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 7625 schema -struct<> --- !query 7625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7626 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 7626 schema -struct<> --- !query 7626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7627 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 7627 schema -struct<> --- !query 7627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7628 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 7628 schema -struct<> --- !query 7628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7629 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 7629 schema -struct<> --- !query 7629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7630 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 7630 schema -struct<> --- !query 7630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7631 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7631 schema -struct<> --- !query 7631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7632 -SELECT map(cast(1 as float), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7632 schema -struct<> --- !query 7632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7633 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 7633 schema -struct> --- !query 7633 output -{1.0:1.0,2.0:2.0} - - --- !query 7634 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 7634 schema -struct> --- !query 7634 output -{1.0:1.0,2.0:2.0} - - --- !query 7635 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 7635 schema -struct> --- !query 7635 output -{1.0:1.0,2.0:2.0} - - --- !query 7636 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 7636 schema -struct> --- !query 7636 output -{1.0:1.0,2.0:2.0} - - --- !query 7637 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 7637 schema -struct> --- !query 7637 output -{1.0:1.0,2.0:2.0} - - --- !query 7638 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 7638 schema -struct> --- !query 7638 output -{1.0:1.0,2.0:2.0} - - --- !query 7639 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 7639 schema -struct> --- !query 7639 output -{1.0:1.0,2.0:2.0} - - --- !query 7640 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 7640 schema -struct> --- !query 7640 output -{1.0:"1.0",2.0:"2"} - - --- !query 7641 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 7641 schema -struct<> --- !query 7641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7642 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 7642 schema -struct<> --- !query 7642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7643 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7643 schema -struct<> --- !query 7643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7644 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7644 schema -struct<> --- !query 7644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7645 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 7645 schema -struct> --- !query 7645 output -{1.0:1.0,2.0:2.0} - - --- !query 7646 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 7646 schema -struct> --- !query 7646 output -{1.0:1.0,2.0:2.0} - - --- !query 7647 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 7647 schema -struct> --- !query 7647 output -{1.0:1.0,2.0:2.0} - - --- !query 7648 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 7648 schema -struct> --- !query 7648 output -{1.0:1.0,2.0:2.0} - - --- !query 7649 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 7649 schema -struct> --- !query 7649 output -{1.0:1.0,2.0:2.0} - - --- !query 7650 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 7650 schema -struct> --- !query 7650 output -{1.0:1.0,2.0:2.0} - - --- !query 7651 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 7651 schema -struct> --- !query 7651 output -{1.0:1.0,2.0:2.0} - - --- !query 7652 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 7652 schema -struct> --- !query 7652 output -{1.0:"1.0",2.0:"2"} - - --- !query 7653 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 7653 schema -struct<> --- !query 7653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7654 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 7654 schema -struct<> --- !query 7654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7655 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7655 schema -struct<> --- !query 7655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7656 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7656 schema -struct<> --- !query 7656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7657 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 7657 schema -struct> --- !query 7657 output -{1.0:1.0,2.0:2.0} - - --- !query 7658 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 7658 schema -struct> --- !query 7658 output -{1.0:1.0,2.0:2.0} - - --- !query 7659 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 7659 schema -struct> --- !query 7659 output -{1.0:1.0,2.0:2.0} - - --- !query 7660 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 7660 schema -struct> --- !query 7660 output -{1.0:1.0,2.0:2.0} - - --- !query 7661 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 7661 schema -struct> --- !query 7661 output -{1.0:1.0,2.0:2.0} - - --- !query 7662 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 7662 schema -struct> --- !query 7662 output -{1.0:1.0,2.0:2.0} - - --- !query 7663 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 7663 schema -struct> --- !query 7663 output -{1.0:1.0,2.0:2.0} - - --- !query 7664 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 7664 schema -struct> --- !query 7664 output -{1.0:"1.0",2.0:"2"} - - --- !query 7665 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 7665 schema -struct<> --- !query 7665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7666 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 7666 schema -struct<> --- !query 7666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7667 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7667 schema -struct<> --- !query 7667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7668 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7668 schema -struct<> --- !query 7668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7669 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 7669 schema -struct> --- !query 7669 output -{1.0:1.0,2.0:2.0} - - --- !query 7670 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 7670 schema -struct> --- !query 7670 output -{1.0:1.0,2.0:2.0} - - --- !query 7671 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 7671 schema -struct> --- !query 7671 output -{1.0:1.0,2.0:2.0} - - --- !query 7672 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 7672 schema -struct> --- !query 7672 output -{1.0:1.0,2.0:2.0} - - --- !query 7673 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 7673 schema -struct> --- !query 7673 output -{1.0:1.0,2.0:2.0} - - --- !query 7674 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 7674 schema -struct> --- !query 7674 output -{1.0:1.0,2.0:2.0} - - --- !query 7675 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 7675 schema -struct> --- !query 7675 output -{1.0:1.0,2.0:2.0} - - --- !query 7676 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 7676 schema -struct> --- !query 7676 output -{1.0:"1.0",2.0:"2"} - - --- !query 7677 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 7677 schema -struct<> --- !query 7677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7678 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 7678 schema -struct<> --- !query 7678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7679 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7679 schema -struct<> --- !query 7679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7680 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7680 schema -struct<> --- !query 7680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7681 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 7681 schema -struct> --- !query 7681 output -{1.0:1.0,2.0:2.0} - - --- !query 7682 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 7682 schema -struct> --- !query 7682 output -{1.0:1.0,2.0:2.0} - - --- !query 7683 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 7683 schema -struct> --- !query 7683 output -{1.0:1.0,2.0:2.0} - - --- !query 7684 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 7684 schema -struct> --- !query 7684 output -{1.0:1.0,2.0:2.0} - - --- !query 7685 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 7685 schema -struct> --- !query 7685 output -{1.0:1.0,2.0:2.0} - - --- !query 7686 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 7686 schema -struct> --- !query 7686 output -{1.0:1.0,2.0:2.0} - - --- !query 7687 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 7687 schema -struct> --- !query 7687 output -{1.0:1.0,2.0:2.0} - - --- !query 7688 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 7688 schema -struct> --- !query 7688 output -{1.0:"1.0",2.0:"2"} - - --- !query 7689 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 7689 schema -struct<> --- !query 7689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7690 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 7690 schema -struct<> --- !query 7690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7691 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7691 schema -struct<> --- !query 7691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7692 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7692 schema -struct<> --- !query 7692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7693 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 7693 schema -struct> --- !query 7693 output -{1.0:1.0,2.0:2.0} - - --- !query 7694 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 7694 schema -struct> --- !query 7694 output -{1.0:1.0,2.0:2.0} - - --- !query 7695 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 7695 schema -struct> --- !query 7695 output -{1.0:1.0,2.0:2.0} - - --- !query 7696 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 7696 schema -struct> --- !query 7696 output -{1.0:1.0,2.0:2.0} - - --- !query 7697 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 7697 schema -struct> --- !query 7697 output -{1.0:1.0,2.0:2.0} - - --- !query 7698 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 7698 schema -struct> --- !query 7698 output -{1.0:1.0,2.0:2.0} - - --- !query 7699 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 7699 schema -struct> --- !query 7699 output -{1.0:1.0,2.0:2.0} - - --- !query 7700 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 7700 schema -struct> --- !query 7700 output -{1.0:"1.0",2.0:"2"} - - --- !query 7701 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 7701 schema -struct<> --- !query 7701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7702 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 7702 schema -struct<> --- !query 7702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7703 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7703 schema -struct<> --- !query 7703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7704 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7704 schema -struct<> --- !query 7704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7705 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 7705 schema -struct> --- !query 7705 output -{1.0:1.0,2.0:2.0} - - --- !query 7706 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 7706 schema -struct> --- !query 7706 output -{1.0:1.0,2.0:2.0} - - --- !query 7707 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 7707 schema -struct> --- !query 7707 output -{1.0:1.0,2.0:2.0} - - --- !query 7708 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 7708 schema -struct> --- !query 7708 output -{1.0:1.0,2.0:2.0} - - --- !query 7709 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 7709 schema -struct> --- !query 7709 output -{1.0:1.0,2.0:2.0} - - --- !query 7710 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 7710 schema -struct> --- !query 7710 output -{1.0:1.0,2.0:2.0} - - --- !query 7711 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 7711 schema -struct> --- !query 7711 output -{1.0:1.0,2.0:2.0} - - --- !query 7712 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 7712 schema -struct> --- !query 7712 output -{1.0:"1.0",2.0:"2"} - - --- !query 7713 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 7713 schema -struct<> --- !query 7713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7714 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 7714 schema -struct<> --- !query 7714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7715 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7715 schema -struct<> --- !query 7715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7716 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7716 schema -struct<> --- !query 7716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7717 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 7717 schema -struct> --- !query 7717 output -{"1.0":1.0,"2":2.0} - - --- !query 7718 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 7718 schema -struct> --- !query 7718 output -{"1.0":1.0,"2":2.0} - - --- !query 7719 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 7719 schema -struct> --- !query 7719 output -{"1.0":1.0,"2":2.0} - - --- !query 7720 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 7720 schema -struct> --- !query 7720 output -{"1.0":1.0,"2":2.0} - - --- !query 7721 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 7721 schema -struct> --- !query 7721 output -{"1.0":1.0,"2":2.0} - - --- !query 7722 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 7722 schema -struct> --- !query 7722 output -{"1.0":1.0,"2":2.0} - - --- !query 7723 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 7723 schema -struct> --- !query 7723 output -{"1.0":1.0,"2":2.0} - - --- !query 7724 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 7724 schema -struct> --- !query 7724 output -{"1.0":"1.0","2":"2"} - - --- !query 7725 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 7725 schema -struct<> --- !query 7725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7726 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 7726 schema -struct<> --- !query 7726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7727 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7727 schema -struct<> --- !query 7727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7728 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7728 schema -struct<> --- !query 7728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7729 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 7729 schema -struct<> --- !query 7729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7730 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 7730 schema -struct<> --- !query 7730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7731 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 7731 schema -struct<> --- !query 7731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7732 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 7732 schema -struct<> --- !query 7732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7733 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 7733 schema -struct<> --- !query 7733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7734 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 7734 schema -struct<> --- !query 7734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7735 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 7735 schema -struct<> --- !query 7735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7736 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 7736 schema -struct<> --- !query 7736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7737 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 7737 schema -struct<> --- !query 7737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7738 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 7738 schema -struct<> --- !query 7738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7739 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7739 schema -struct<> --- !query 7739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7740 -SELECT map(cast(1 as float), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7740 schema -struct<> --- !query 7740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7741 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 7741 schema -struct<> --- !query 7741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7742 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 7742 schema -struct<> --- !query 7742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7743 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 7743 schema -struct<> --- !query 7743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7744 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 7744 schema -struct<> --- !query 7744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7745 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 7745 schema -struct<> --- !query 7745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7746 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 7746 schema -struct<> --- !query 7746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7747 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 7747 schema -struct<> --- !query 7747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7748 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 7748 schema -struct<> --- !query 7748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7749 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 7749 schema -struct<> --- !query 7749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7750 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 7750 schema -struct<> --- !query 7750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7751 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7751 schema -struct<> --- !query 7751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7752 -SELECT map(cast(1 as float), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7752 schema -struct<> --- !query 7752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7753 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 7753 schema -struct<> --- !query 7753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7754 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 7754 schema -struct<> --- !query 7754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7755 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 7755 schema -struct<> --- !query 7755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7756 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 7756 schema -struct<> --- !query 7756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7757 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 7757 schema -struct<> --- !query 7757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7758 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 7758 schema -struct<> --- !query 7758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7759 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 7759 schema -struct<> --- !query 7759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7760 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 7760 schema -struct<> --- !query 7760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7761 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 7761 schema -struct<> --- !query 7761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7762 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 7762 schema -struct<> --- !query 7762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7763 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7763 schema -struct<> --- !query 7763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7764 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7764 schema -struct<> --- !query 7764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7765 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 7765 schema -struct<> --- !query 7765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7766 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 7766 schema -struct<> --- !query 7766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7767 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 7767 schema -struct<> --- !query 7767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7768 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 7768 schema -struct<> --- !query 7768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7769 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 7769 schema -struct<> --- !query 7769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7770 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 7770 schema -struct<> --- !query 7770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7771 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 7771 schema -struct<> --- !query 7771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7772 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 7772 schema -struct<> --- !query 7772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7773 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 7773 schema -struct<> --- !query 7773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7774 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 7774 schema -struct<> --- !query 7774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7775 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7775 schema -struct<> --- !query 7775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7776 -SELECT map(cast(1 as float), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7776 schema -struct<> --- !query 7776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7777 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 7777 schema -struct> --- !query 7777 output -{1.0:1.0,2.0:2.0} - - --- !query 7778 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 7778 schema -struct> --- !query 7778 output -{1.0:1.0,2.0:2.0} - - --- !query 7779 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 7779 schema -struct> --- !query 7779 output -{1.0:1.0,2.0:2.0} - - --- !query 7780 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 7780 schema -struct> --- !query 7780 output -{1.0:1.0,2.0:2.0} - - --- !query 7781 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 7781 schema -struct> --- !query 7781 output -{1.0:1.0,2.0:2.0} - - --- !query 7782 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 7782 schema -struct> --- !query 7782 output -{1.0:1.0,2.0:2.0} - - --- !query 7783 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 7783 schema -struct> --- !query 7783 output -{1.0:1.0,2.0:2.0} - - --- !query 7784 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 7784 schema -struct> --- !query 7784 output -{1.0:"1.0",2.0:"2"} - - --- !query 7785 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 7785 schema -struct<> --- !query 7785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7786 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 7786 schema -struct<> --- !query 7786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7787 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7787 schema -struct<> --- !query 7787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7788 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7788 schema -struct<> --- !query 7788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7789 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 7789 schema -struct> --- !query 7789 output -{1.0:1.0,2.0:2.0} - - --- !query 7790 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 7790 schema -struct> --- !query 7790 output -{1.0:1.0,2.0:2.0} - - --- !query 7791 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 7791 schema -struct> --- !query 7791 output -{1.0:1.0,2.0:2.0} - - --- !query 7792 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 7792 schema -struct> --- !query 7792 output -{1.0:1.0,2.0:2.0} - - --- !query 7793 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 7793 schema -struct> --- !query 7793 output -{1.0:1.0,2.0:2.0} - - --- !query 7794 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 7794 schema -struct> --- !query 7794 output -{1.0:1.0,2.0:2.0} - - --- !query 7795 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 7795 schema -struct> --- !query 7795 output -{1.0:1.0,2.0:2.0} - - --- !query 7796 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 7796 schema -struct> --- !query 7796 output -{1.0:"1.0",2.0:"2"} - - --- !query 7797 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 7797 schema -struct<> --- !query 7797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7798 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 7798 schema -struct<> --- !query 7798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7799 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7799 schema -struct<> --- !query 7799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7800 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7800 schema -struct<> --- !query 7800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7801 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 7801 schema -struct> --- !query 7801 output -{1.0:1.0,2.0:2.0} - - --- !query 7802 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 7802 schema -struct> --- !query 7802 output -{1.0:1.0,2.0:2.0} - - --- !query 7803 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 7803 schema -struct> --- !query 7803 output -{1.0:1.0,2.0:2.0} - - --- !query 7804 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 7804 schema -struct> --- !query 7804 output -{1.0:1.0,2.0:2.0} - - --- !query 7805 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 7805 schema -struct> --- !query 7805 output -{1.0:1.0,2.0:2.0} - - --- !query 7806 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 7806 schema -struct> --- !query 7806 output -{1.0:1.0,2.0:2.0} - - --- !query 7807 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 7807 schema -struct> --- !query 7807 output -{1.0:1.0,2.0:2.0} - - --- !query 7808 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 7808 schema -struct> --- !query 7808 output -{1.0:"1.0",2.0:"2"} - - --- !query 7809 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 7809 schema -struct<> --- !query 7809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7810 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 7810 schema -struct<> --- !query 7810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7811 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7811 schema -struct<> --- !query 7811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7812 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7812 schema -struct<> --- !query 7812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7813 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 7813 schema -struct> --- !query 7813 output -{1.0:1.0,2.0:2.0} - - --- !query 7814 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 7814 schema -struct> --- !query 7814 output -{1.0:1.0,2.0:2.0} - - --- !query 7815 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 7815 schema -struct> --- !query 7815 output -{1.0:1.0,2.0:2.0} - - --- !query 7816 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 7816 schema -struct> --- !query 7816 output -{1.0:1.0,2.0:2.0} - - --- !query 7817 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 7817 schema -struct> --- !query 7817 output -{1.0:1.0,2.0:2.0} - - --- !query 7818 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 7818 schema -struct> --- !query 7818 output -{1.0:1.0,2.0:2.0} - - --- !query 7819 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 7819 schema -struct> --- !query 7819 output -{1.0:1.0,2.0:2.0} - - --- !query 7820 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 7820 schema -struct> --- !query 7820 output -{1.0:"1.0",2.0:"2"} - - --- !query 7821 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 7821 schema -struct<> --- !query 7821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7822 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 7822 schema -struct<> --- !query 7822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7823 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7823 schema -struct<> --- !query 7823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7824 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7824 schema -struct<> --- !query 7824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7825 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 7825 schema -struct> --- !query 7825 output -{1.0:1.0,2.0:2.0} - - --- !query 7826 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 7826 schema -struct> --- !query 7826 output -{1.0:1.0,2.0:2.0} - - --- !query 7827 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 7827 schema -struct> --- !query 7827 output -{1.0:1.0,2.0:2.0} - - --- !query 7828 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 7828 schema -struct> --- !query 7828 output -{1.0:1.0,2.0:2.0} - - --- !query 7829 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 7829 schema -struct> --- !query 7829 output -{1.0:1.0,2.0:2.0} - - --- !query 7830 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 7830 schema -struct> --- !query 7830 output -{1.0:1.0,2.0:2.0} - - --- !query 7831 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 7831 schema -struct> --- !query 7831 output -{1.0:1.0,2.0:2.0} - - --- !query 7832 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 7832 schema -struct> --- !query 7832 output -{1.0:"1.0",2.0:"2"} - - --- !query 7833 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 7833 schema -struct<> --- !query 7833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7834 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 7834 schema -struct<> --- !query 7834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7835 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7835 schema -struct<> --- !query 7835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7836 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7836 schema -struct<> --- !query 7836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7837 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 7837 schema -struct> --- !query 7837 output -{1.0:1.0,2.0:2.0} - - --- !query 7838 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 7838 schema -struct> --- !query 7838 output -{1.0:1.0,2.0:2.0} - - --- !query 7839 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 7839 schema -struct> --- !query 7839 output -{1.0:1.0,2.0:2.0} - - --- !query 7840 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 7840 schema -struct> --- !query 7840 output -{1.0:1.0,2.0:2.0} - - --- !query 7841 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 7841 schema -struct> --- !query 7841 output -{1.0:1.0,2.0:2.0} - - --- !query 7842 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 7842 schema -struct> --- !query 7842 output -{1.0:1.0,2.0:2.0} - - --- !query 7843 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 7843 schema -struct> --- !query 7843 output -{1.0:1.0,2.0:2.0} - - --- !query 7844 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 7844 schema -struct> --- !query 7844 output -{1.0:"1.0",2.0:"2"} - - --- !query 7845 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 7845 schema -struct<> --- !query 7845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7846 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 7846 schema -struct<> --- !query 7846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7847 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7847 schema -struct<> --- !query 7847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7848 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7848 schema -struct<> --- !query 7848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7849 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 7849 schema -struct> --- !query 7849 output -{1.0:1.0,2.0:2.0} - - --- !query 7850 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 7850 schema -struct> --- !query 7850 output -{1.0:1.0,2.0:2.0} - - --- !query 7851 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 7851 schema -struct> --- !query 7851 output -{1.0:1.0,2.0:2.0} - - --- !query 7852 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 7852 schema -struct> --- !query 7852 output -{1.0:1.0,2.0:2.0} - - --- !query 7853 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 7853 schema -struct> --- !query 7853 output -{1.0:1.0,2.0:2.0} - - --- !query 7854 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 7854 schema -struct> --- !query 7854 output -{1.0:1.0,2.0:2.0} - - --- !query 7855 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 7855 schema -struct> --- !query 7855 output -{1.0:1.0,2.0:2.0} - - --- !query 7856 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 7856 schema -struct> --- !query 7856 output -{1.0:"1.0",2.0:"2"} - - --- !query 7857 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 7857 schema -struct<> --- !query 7857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7858 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 7858 schema -struct<> --- !query 7858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7859 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7859 schema -struct<> --- !query 7859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7860 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7860 schema -struct<> --- !query 7860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7861 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 7861 schema -struct> --- !query 7861 output -{"1.0":1.0,"2":2.0} - - --- !query 7862 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 7862 schema -struct> --- !query 7862 output -{"1.0":1.0,"2":2.0} - - --- !query 7863 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 7863 schema -struct> --- !query 7863 output -{"1.0":1.0,"2":2.0} - - --- !query 7864 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 7864 schema -struct> --- !query 7864 output -{"1.0":1.0,"2":2.0} - - --- !query 7865 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 7865 schema -struct> --- !query 7865 output -{"1.0":1.0,"2":2.0} - - --- !query 7866 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 7866 schema -struct> --- !query 7866 output -{"1.0":1.0,"2":2.0} - - --- !query 7867 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 7867 schema -struct> --- !query 7867 output -{"1.0":1.0,"2":2.0} - - --- !query 7868 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 7868 schema -struct> --- !query 7868 output -{"1.0":"1.0","2":"2"} - - --- !query 7869 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 7869 schema -struct<> --- !query 7869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 7870 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 7870 schema -struct<> --- !query 7870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 7871 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7871 schema -struct<> --- !query 7871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 7872 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7872 schema -struct<> --- !query 7872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 7873 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 7873 schema -struct<> --- !query 7873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7874 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 7874 schema -struct<> --- !query 7874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7875 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 7875 schema -struct<> --- !query 7875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7876 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 7876 schema -struct<> --- !query 7876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7877 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 7877 schema -struct<> --- !query 7877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7878 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 7878 schema -struct<> --- !query 7878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7879 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 7879 schema -struct<> --- !query 7879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7880 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 7880 schema -struct<> --- !query 7880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7881 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 7881 schema -struct<> --- !query 7881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7882 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 7882 schema -struct<> --- !query 7882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7883 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7883 schema -struct<> --- !query 7883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7884 -SELECT map(cast(1 as float), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7884 schema -struct<> --- !query 7884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 7885 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 7885 schema -struct<> --- !query 7885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7886 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 7886 schema -struct<> --- !query 7886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7887 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 7887 schema -struct<> --- !query 7887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7888 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 7888 schema -struct<> --- !query 7888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7889 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 7889 schema -struct<> --- !query 7889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7890 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 7890 schema -struct<> --- !query 7890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7891 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 7891 schema -struct<> --- !query 7891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7892 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 7892 schema -struct<> --- !query 7892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7893 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 7893 schema -struct<> --- !query 7893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7894 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 7894 schema -struct<> --- !query 7894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7895 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7895 schema -struct<> --- !query 7895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7896 -SELECT map(cast(1 as float), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7896 schema -struct<> --- !query 7896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 7897 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 7897 schema -struct<> --- !query 7897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7898 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 7898 schema -struct<> --- !query 7898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7899 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 7899 schema -struct<> --- !query 7899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7900 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 7900 schema -struct<> --- !query 7900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7901 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 7901 schema -struct<> --- !query 7901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7902 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 7902 schema -struct<> --- !query 7902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7903 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 7903 schema -struct<> --- !query 7903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7904 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 7904 schema -struct<> --- !query 7904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7905 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 7905 schema -struct<> --- !query 7905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7906 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 7906 schema -struct<> --- !query 7906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7907 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7907 schema -struct<> --- !query 7907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7908 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7908 schema -struct<> --- !query 7908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 7909 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 7909 schema -struct<> --- !query 7909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7910 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 7910 schema -struct<> --- !query 7910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7911 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 7911 schema -struct<> --- !query 7911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7912 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 7912 schema -struct<> --- !query 7912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7913 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 7913 schema -struct<> --- !query 7913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7914 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 7914 schema -struct<> --- !query 7914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7915 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 7915 schema -struct<> --- !query 7915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7916 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 7916 schema -struct<> --- !query 7916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7917 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 7917 schema -struct<> --- !query 7917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7918 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 7918 schema -struct<> --- !query 7918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7919 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7919 schema -struct<> --- !query 7919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7920 -SELECT map(cast(1 as float), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7920 schema -struct<> --- !query 7920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 7921 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 7921 schema -struct> --- !query 7921 output -{1.0:1,2.0:2} - - --- !query 7922 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 7922 schema -struct> --- !query 7922 output -{1.0:1,2.0:2} - - --- !query 7923 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 7923 schema -struct> --- !query 7923 output -{1.0:1,2.0:2} - - --- !query 7924 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 7924 schema -struct> --- !query 7924 output -{1.0:1,2.0:2} - - --- !query 7925 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 7925 schema -struct> --- !query 7925 output -{1.0:1.0,2.0:2.0} - - --- !query 7926 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 7926 schema -struct> --- !query 7926 output -{1.0:1.0,2.0:2.0} - - --- !query 7927 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 7927 schema -struct> --- !query 7927 output -{1.0:1,2.0:2} - - --- !query 7928 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 7928 schema -struct> --- !query 7928 output -{1.0:"1",2.0:"2"} - - --- !query 7929 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 7929 schema -struct<> --- !query 7929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 7930 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 7930 schema -struct<> --- !query 7930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 7931 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7931 schema -struct<> --- !query 7931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 7932 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7932 schema -struct<> --- !query 7932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 7933 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 7933 schema -struct> --- !query 7933 output -{1.0:1,2.0:2} - - --- !query 7934 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 7934 schema -struct> --- !query 7934 output -{1.0:1,2.0:2} - - --- !query 7935 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 7935 schema -struct> --- !query 7935 output -{1.0:1,2.0:2} - - --- !query 7936 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 7936 schema -struct> --- !query 7936 output -{1.0:1,2.0:2} - - --- !query 7937 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 7937 schema -struct> --- !query 7937 output -{1.0:1.0,2.0:2.0} - - --- !query 7938 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 7938 schema -struct> --- !query 7938 output -{1.0:1.0,2.0:2.0} - - --- !query 7939 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 7939 schema -struct> --- !query 7939 output -{1.0:1,2.0:2} - - --- !query 7940 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 7940 schema -struct> --- !query 7940 output -{1.0:"1",2.0:"2"} - - --- !query 7941 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 7941 schema -struct<> --- !query 7941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 7942 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 7942 schema -struct<> --- !query 7942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 7943 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7943 schema -struct<> --- !query 7943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 7944 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7944 schema -struct<> --- !query 7944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 7945 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 7945 schema -struct> --- !query 7945 output -{1.0:1,2.0:2} - - --- !query 7946 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 7946 schema -struct> --- !query 7946 output -{1.0:1,2.0:2} - - --- !query 7947 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 7947 schema -struct> --- !query 7947 output -{1.0:1,2.0:2} - - --- !query 7948 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 7948 schema -struct> --- !query 7948 output -{1.0:1,2.0:2} - - --- !query 7949 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 7949 schema -struct> --- !query 7949 output -{1.0:1.0,2.0:2.0} - - --- !query 7950 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 7950 schema -struct> --- !query 7950 output -{1.0:1.0,2.0:2.0} - - --- !query 7951 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 7951 schema -struct> --- !query 7951 output -{1.0:1,2.0:2} - - --- !query 7952 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 7952 schema -struct> --- !query 7952 output -{1.0:"1",2.0:"2"} - - --- !query 7953 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 7953 schema -struct<> --- !query 7953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 7954 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 7954 schema -struct<> --- !query 7954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 7955 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7955 schema -struct<> --- !query 7955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 7956 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7956 schema -struct<> --- !query 7956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 7957 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 7957 schema -struct> --- !query 7957 output -{1.0:1,2.0:2} - - --- !query 7958 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 7958 schema -struct> --- !query 7958 output -{1.0:1,2.0:2} - - --- !query 7959 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 7959 schema -struct> --- !query 7959 output -{1.0:1,2.0:2} - - --- !query 7960 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 7960 schema -struct> --- !query 7960 output -{1.0:1,2.0:2} - - --- !query 7961 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 7961 schema -struct> --- !query 7961 output -{1.0:1.0,2.0:2.0} - - --- !query 7962 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 7962 schema -struct> --- !query 7962 output -{1.0:1.0,2.0:2.0} - - --- !query 7963 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 7963 schema -struct> --- !query 7963 output -{1.0:1,2.0:2} - - --- !query 7964 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 7964 schema -struct> --- !query 7964 output -{1.0:"1",2.0:"2"} - - --- !query 7965 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 7965 schema -struct<> --- !query 7965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 7966 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 7966 schema -struct<> --- !query 7966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 7967 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7967 schema -struct<> --- !query 7967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 7968 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7968 schema -struct<> --- !query 7968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 7969 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 7969 schema -struct> --- !query 7969 output -{1.0:1,2.0:2} - - --- !query 7970 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 7970 schema -struct> --- !query 7970 output -{1.0:1,2.0:2} - - --- !query 7971 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 7971 schema -struct> --- !query 7971 output -{1.0:1,2.0:2} - - --- !query 7972 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 7972 schema -struct> --- !query 7972 output -{1.0:1,2.0:2} - - --- !query 7973 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 7973 schema -struct> --- !query 7973 output -{1.0:1.0,2.0:2.0} - - --- !query 7974 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 7974 schema -struct> --- !query 7974 output -{1.0:1.0,2.0:2.0} - - --- !query 7975 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 7975 schema -struct> --- !query 7975 output -{1.0:1,2.0:2} - - --- !query 7976 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 7976 schema -struct> --- !query 7976 output -{1.0:"1",2.0:"2"} - - --- !query 7977 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 7977 schema -struct<> --- !query 7977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 7978 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 7978 schema -struct<> --- !query 7978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 7979 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7979 schema -struct<> --- !query 7979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 7980 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7980 schema -struct<> --- !query 7980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 7981 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 7981 schema -struct> --- !query 7981 output -{1.0:1,2.0:2} - - --- !query 7982 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 7982 schema -struct> --- !query 7982 output -{1.0:1,2.0:2} - - --- !query 7983 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 7983 schema -struct> --- !query 7983 output -{1.0:1,2.0:2} - - --- !query 7984 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 7984 schema -struct> --- !query 7984 output -{1.0:1,2.0:2} - - --- !query 7985 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 7985 schema -struct> --- !query 7985 output -{1.0:1.0,2.0:2.0} - - --- !query 7986 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 7986 schema -struct> --- !query 7986 output -{1.0:1.0,2.0:2.0} - - --- !query 7987 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 7987 schema -struct> --- !query 7987 output -{1.0:1,2.0:2} - - --- !query 7988 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 7988 schema -struct> --- !query 7988 output -{1.0:"1",2.0:"2"} - - --- !query 7989 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 7989 schema -struct<> --- !query 7989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 7990 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 7990 schema -struct<> --- !query 7990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 7991 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 7991 schema -struct<> --- !query 7991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 7992 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 7992 schema -struct<> --- !query 7992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 7993 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 7993 schema -struct> --- !query 7993 output -{1.0:1,2.0:2} - - --- !query 7994 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 7994 schema -struct> --- !query 7994 output -{1.0:1,2.0:2} - - --- !query 7995 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 7995 schema -struct> --- !query 7995 output -{1.0:1,2.0:2} - - --- !query 7996 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 7996 schema -struct> --- !query 7996 output -{1.0:1,2.0:2} - - --- !query 7997 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 7997 schema -struct> --- !query 7997 output -{1.0:1.0,2.0:2.0} - - --- !query 7998 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 7998 schema -struct> --- !query 7998 output -{1.0:1.0,2.0:2.0} - - --- !query 7999 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 7999 schema -struct> --- !query 7999 output -{1.0:1,2.0:2} - - --- !query 8000 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 8000 schema -struct> --- !query 8000 output -{1.0:"1",2.0:"2"} - - --- !query 8001 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 8001 schema -struct<> --- !query 8001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 8002 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 8002 schema -struct<> --- !query 8002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 8003 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8003 schema -struct<> --- !query 8003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 8004 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8004 schema -struct<> --- !query 8004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 8005 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 8005 schema -struct> --- !query 8005 output -{"1.0":1,"2":2} - - --- !query 8006 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 8006 schema -struct> --- !query 8006 output -{"1.0":1,"2":2} - - --- !query 8007 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 8007 schema -struct> --- !query 8007 output -{"1.0":1,"2":2} - - --- !query 8008 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 8008 schema -struct> --- !query 8008 output -{"1.0":1,"2":2} - - --- !query 8009 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 8009 schema -struct> --- !query 8009 output -{"1.0":1.0,"2":2.0} - - --- !query 8010 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 8010 schema -struct> --- !query 8010 output -{"1.0":1.0,"2":2.0} - - --- !query 8011 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 8011 schema -struct> --- !query 8011 output -{"1.0":1,"2":2} - - --- !query 8012 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 8012 schema -struct> --- !query 8012 output -{"1.0":"1","2":"2"} - - --- !query 8013 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 8013 schema -struct<> --- !query 8013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 8014 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 8014 schema -struct<> --- !query 8014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 8015 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8015 schema -struct<> --- !query 8015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 8016 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8016 schema -struct<> --- !query 8016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 8017 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 8017 schema -struct<> --- !query 8017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8018 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 8018 schema -struct<> --- !query 8018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8019 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 8019 schema -struct<> --- !query 8019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8020 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 8020 schema -struct<> --- !query 8020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8021 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 8021 schema -struct<> --- !query 8021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8022 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 8022 schema -struct<> --- !query 8022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8023 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 8023 schema -struct<> --- !query 8023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8024 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 8024 schema -struct<> --- !query 8024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8025 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 8025 schema -struct<> --- !query 8025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8026 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 8026 schema -struct<> --- !query 8026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8027 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8027 schema -struct<> --- !query 8027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8028 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8028 schema -struct<> --- !query 8028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8029 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 8029 schema -struct<> --- !query 8029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8030 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 8030 schema -struct<> --- !query 8030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8031 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 8031 schema -struct<> --- !query 8031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8032 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 8032 schema -struct<> --- !query 8032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8033 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 8033 schema -struct<> --- !query 8033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8034 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 8034 schema -struct<> --- !query 8034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8035 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 8035 schema -struct<> --- !query 8035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8036 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 8036 schema -struct<> --- !query 8036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8037 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 8037 schema -struct<> --- !query 8037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8038 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 8038 schema -struct<> --- !query 8038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8039 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8039 schema -struct<> --- !query 8039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8040 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8040 schema -struct<> --- !query 8040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8041 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 8041 schema -struct<> --- !query 8041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8042 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 8042 schema -struct<> --- !query 8042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8043 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 8043 schema -struct<> --- !query 8043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8044 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 8044 schema -struct<> --- !query 8044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8045 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 8045 schema -struct<> --- !query 8045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8046 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 8046 schema -struct<> --- !query 8046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8047 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 8047 schema -struct<> --- !query 8047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8048 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 8048 schema -struct<> --- !query 8048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8049 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 8049 schema -struct<> --- !query 8049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8050 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 8050 schema -struct<> --- !query 8050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8051 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8051 schema -struct<> --- !query 8051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8052 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8052 schema -struct<> --- !query 8052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8053 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 8053 schema -struct<> --- !query 8053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8054 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 8054 schema -struct<> --- !query 8054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8055 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 8055 schema -struct<> --- !query 8055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8056 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 8056 schema -struct<> --- !query 8056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8057 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 8057 schema -struct<> --- !query 8057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8058 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 8058 schema -struct<> --- !query 8058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8059 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 8059 schema -struct<> --- !query 8059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8060 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 8060 schema -struct<> --- !query 8060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8061 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 8061 schema -struct<> --- !query 8061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8062 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 8062 schema -struct<> --- !query 8062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8063 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8063 schema -struct<> --- !query 8063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8064 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8064 schema -struct<> --- !query 8064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8065 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 8065 schema -struct> --- !query 8065 output -{1.0:"1",2.0:"2"} - - --- !query 8066 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 8066 schema -struct> --- !query 8066 output -{1.0:"1",2.0:"2"} - - --- !query 8067 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 8067 schema -struct> --- !query 8067 output -{1.0:"1",2.0:"2"} - - --- !query 8068 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 8068 schema -struct> --- !query 8068 output -{1.0:"1",2.0:"2"} - - --- !query 8069 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 8069 schema -struct> --- !query 8069 output -{1.0:"1",2.0:"2.0"} - - --- !query 8070 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 8070 schema -struct> --- !query 8070 output -{1.0:"1",2.0:"2.0"} - - --- !query 8071 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 8071 schema -struct> --- !query 8071 output -{1.0:"1",2.0:"2"} - - --- !query 8072 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 8072 schema -struct> --- !query 8072 output -{1.0:"1",2.0:"2"} - - --- !query 8073 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 8073 schema -struct<> --- !query 8073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8074 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 8074 schema -struct<> --- !query 8074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8075 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8075 schema -struct> --- !query 8075 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 8076 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8076 schema -struct> --- !query 8076 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 8077 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 8077 schema -struct> --- !query 8077 output -{1.0:"1",2.0:"2"} - - --- !query 8078 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 8078 schema -struct> --- !query 8078 output -{1.0:"1",2.0:"2"} - - --- !query 8079 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 8079 schema -struct> --- !query 8079 output -{1.0:"1",2.0:"2"} - - --- !query 8080 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 8080 schema -struct> --- !query 8080 output -{1.0:"1",2.0:"2"} - - --- !query 8081 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 8081 schema -struct> --- !query 8081 output -{1.0:"1",2.0:"2.0"} - - --- !query 8082 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 8082 schema -struct> --- !query 8082 output -{1.0:"1",2.0:"2.0"} - - --- !query 8083 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 8083 schema -struct> --- !query 8083 output -{1.0:"1",2.0:"2"} - - --- !query 8084 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 8084 schema -struct> --- !query 8084 output -{1.0:"1",2.0:"2"} - - --- !query 8085 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 8085 schema -struct<> --- !query 8085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8086 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 8086 schema -struct<> --- !query 8086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8087 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8087 schema -struct> --- !query 8087 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 8088 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8088 schema -struct> --- !query 8088 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 8089 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 8089 schema -struct> --- !query 8089 output -{1.0:"1",2.0:"2"} - - --- !query 8090 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 8090 schema -struct> --- !query 8090 output -{1.0:"1",2.0:"2"} - - --- !query 8091 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 8091 schema -struct> --- !query 8091 output -{1.0:"1",2.0:"2"} - - --- !query 8092 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 8092 schema -struct> --- !query 8092 output -{1.0:"1",2.0:"2"} - - --- !query 8093 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 8093 schema -struct> --- !query 8093 output -{1.0:"1",2.0:"2.0"} - - --- !query 8094 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 8094 schema -struct> --- !query 8094 output -{1.0:"1",2.0:"2.0"} - - --- !query 8095 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 8095 schema -struct> --- !query 8095 output -{1.0:"1",2.0:"2"} - - --- !query 8096 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 8096 schema -struct> --- !query 8096 output -{1.0:"1",2.0:"2"} - - --- !query 8097 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 8097 schema -struct<> --- !query 8097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8098 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 8098 schema -struct<> --- !query 8098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8099 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8099 schema -struct> --- !query 8099 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 8100 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8100 schema -struct> --- !query 8100 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 8101 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 8101 schema -struct> --- !query 8101 output -{1.0:"1",2.0:"2"} - - --- !query 8102 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 8102 schema -struct> --- !query 8102 output -{1.0:"1",2.0:"2"} - - --- !query 8103 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 8103 schema -struct> --- !query 8103 output -{1.0:"1",2.0:"2"} - - --- !query 8104 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 8104 schema -struct> --- !query 8104 output -{1.0:"1",2.0:"2"} - - --- !query 8105 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 8105 schema -struct> --- !query 8105 output -{1.0:"1",2.0:"2.0"} - - --- !query 8106 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 8106 schema -struct> --- !query 8106 output -{1.0:"1",2.0:"2.0"} - - --- !query 8107 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 8107 schema -struct> --- !query 8107 output -{1.0:"1",2.0:"2"} - - --- !query 8108 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 8108 schema -struct> --- !query 8108 output -{1.0:"1",2.0:"2"} - - --- !query 8109 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 8109 schema -struct<> --- !query 8109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8110 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 8110 schema -struct<> --- !query 8110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8111 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8111 schema -struct> --- !query 8111 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 8112 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8112 schema -struct> --- !query 8112 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 8113 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 8113 schema -struct> --- !query 8113 output -{1.0:"1",2.0:"2"} - - --- !query 8114 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 8114 schema -struct> --- !query 8114 output -{1.0:"1",2.0:"2"} - - --- !query 8115 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 8115 schema -struct> --- !query 8115 output -{1.0:"1",2.0:"2"} - - --- !query 8116 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 8116 schema -struct> --- !query 8116 output -{1.0:"1",2.0:"2"} - - --- !query 8117 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 8117 schema -struct> --- !query 8117 output -{1.0:"1",2.0:"2.0"} - - --- !query 8118 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 8118 schema -struct> --- !query 8118 output -{1.0:"1",2.0:"2.0"} - - --- !query 8119 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 8119 schema -struct> --- !query 8119 output -{1.0:"1",2.0:"2"} - - --- !query 8120 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 8120 schema -struct> --- !query 8120 output -{1.0:"1",2.0:"2"} - - --- !query 8121 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 8121 schema -struct<> --- !query 8121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8122 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 8122 schema -struct<> --- !query 8122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8123 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8123 schema -struct> --- !query 8123 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 8124 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8124 schema -struct> --- !query 8124 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 8125 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 8125 schema -struct> --- !query 8125 output -{1.0:"1",2.0:"2"} - - --- !query 8126 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 8126 schema -struct> --- !query 8126 output -{1.0:"1",2.0:"2"} - - --- !query 8127 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 8127 schema -struct> --- !query 8127 output -{1.0:"1",2.0:"2"} - - --- !query 8128 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 8128 schema -struct> --- !query 8128 output -{1.0:"1",2.0:"2"} - - --- !query 8129 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 8129 schema -struct> --- !query 8129 output -{1.0:"1",2.0:"2.0"} - - --- !query 8130 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 8130 schema -struct> --- !query 8130 output -{1.0:"1",2.0:"2.0"} - - --- !query 8131 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 8131 schema -struct> --- !query 8131 output -{1.0:"1",2.0:"2"} - - --- !query 8132 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 8132 schema -struct> --- !query 8132 output -{1.0:"1",2.0:"2"} - - --- !query 8133 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 8133 schema -struct<> --- !query 8133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8134 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 8134 schema -struct<> --- !query 8134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8135 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8135 schema -struct> --- !query 8135 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 8136 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8136 schema -struct> --- !query 8136 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 8137 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 8137 schema -struct> --- !query 8137 output -{1.0:"1",2.0:"2"} - - --- !query 8138 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 8138 schema -struct> --- !query 8138 output -{1.0:"1",2.0:"2"} - - --- !query 8139 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 8139 schema -struct> --- !query 8139 output -{1.0:"1",2.0:"2"} - - --- !query 8140 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 8140 schema -struct> --- !query 8140 output -{1.0:"1",2.0:"2"} - - --- !query 8141 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 8141 schema -struct> --- !query 8141 output -{1.0:"1",2.0:"2.0"} - - --- !query 8142 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 8142 schema -struct> --- !query 8142 output -{1.0:"1",2.0:"2.0"} - - --- !query 8143 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 8143 schema -struct> --- !query 8143 output -{1.0:"1",2.0:"2"} - - --- !query 8144 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 8144 schema -struct> --- !query 8144 output -{1.0:"1",2.0:"2"} - - --- !query 8145 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 8145 schema -struct<> --- !query 8145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8146 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 8146 schema -struct<> --- !query 8146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8147 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8147 schema -struct> --- !query 8147 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 8148 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8148 schema -struct> --- !query 8148 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 8149 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 8149 schema -struct> --- !query 8149 output -{"1.0":"1","2":"2"} - - --- !query 8150 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 8150 schema -struct> --- !query 8150 output -{"1.0":"1","2":"2"} - - --- !query 8151 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 8151 schema -struct> --- !query 8151 output -{"1.0":"1","2":"2"} - - --- !query 8152 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 8152 schema -struct> --- !query 8152 output -{"1.0":"1","2":"2"} - - --- !query 8153 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 8153 schema -struct> --- !query 8153 output -{"1.0":"1","2":"2.0"} - - --- !query 8154 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 8154 schema -struct> --- !query 8154 output -{"1.0":"1","2":"2.0"} - - --- !query 8155 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 8155 schema -struct> --- !query 8155 output -{"1.0":"1","2":"2"} - - --- !query 8156 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 8156 schema -struct> --- !query 8156 output -{"1.0":"1","2":"2"} - - --- !query 8157 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 8157 schema -struct<> --- !query 8157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 8158 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 8158 schema -struct<> --- !query 8158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 8159 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8159 schema -struct> --- !query 8159 output -{"1.0":"1","2":"2017-12-12 09:30:00"} - - --- !query 8160 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8160 schema -struct> --- !query 8160 output -{"1.0":"1","2":"2017-12-12"} - - --- !query 8161 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 8161 schema -struct<> --- !query 8161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8162 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 8162 schema -struct<> --- !query 8162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8163 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 8163 schema -struct<> --- !query 8163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8164 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 8164 schema -struct<> --- !query 8164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8165 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 8165 schema -struct<> --- !query 8165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8166 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 8166 schema -struct<> --- !query 8166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8167 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 8167 schema -struct<> --- !query 8167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8168 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 8168 schema -struct<> --- !query 8168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8169 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 8169 schema -struct<> --- !query 8169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8170 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 8170 schema -struct<> --- !query 8170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8171 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8171 schema -struct<> --- !query 8171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8172 -SELECT map(cast(1 as float), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8172 schema -struct<> --- !query 8172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8173 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 8173 schema -struct<> --- !query 8173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8174 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 8174 schema -struct<> --- !query 8174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8175 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 8175 schema -struct<> --- !query 8175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8176 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 8176 schema -struct<> --- !query 8176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8177 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 8177 schema -struct<> --- !query 8177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8178 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 8178 schema -struct<> --- !query 8178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8179 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 8179 schema -struct<> --- !query 8179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8180 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 8180 schema -struct<> --- !query 8180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8181 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 8181 schema -struct<> --- !query 8181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8182 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 8182 schema -struct<> --- !query 8182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8183 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8183 schema -struct<> --- !query 8183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8184 -SELECT map(cast(1 as float), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8184 schema -struct<> --- !query 8184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8185 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 8185 schema -struct<> --- !query 8185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8186 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 8186 schema -struct<> --- !query 8186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8187 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 8187 schema -struct<> --- !query 8187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8188 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 8188 schema -struct<> --- !query 8188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8189 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 8189 schema -struct<> --- !query 8189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8190 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 8190 schema -struct<> --- !query 8190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8191 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 8191 schema -struct<> --- !query 8191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8192 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 8192 schema -struct<> --- !query 8192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8193 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 8193 schema -struct<> --- !query 8193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8194 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 8194 schema -struct<> --- !query 8194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8195 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8195 schema -struct<> --- !query 8195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8196 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8196 schema -struct<> --- !query 8196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8197 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 8197 schema -struct<> --- !query 8197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8198 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 8198 schema -struct<> --- !query 8198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8199 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 8199 schema -struct<> --- !query 8199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8200 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 8200 schema -struct<> --- !query 8200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8201 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 8201 schema -struct<> --- !query 8201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8202 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 8202 schema -struct<> --- !query 8202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8203 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 8203 schema -struct<> --- !query 8203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8204 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 8204 schema -struct<> --- !query 8204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8205 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 8205 schema -struct<> --- !query 8205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8206 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 8206 schema -struct<> --- !query 8206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8207 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8207 schema -struct<> --- !query 8207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8208 -SELECT map(cast(1 as float), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8208 schema -struct<> --- !query 8208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8209 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 8209 schema -struct<> --- !query 8209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8210 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 8210 schema -struct<> --- !query 8210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8211 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 8211 schema -struct<> --- !query 8211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8212 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 8212 schema -struct<> --- !query 8212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8213 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 8213 schema -struct<> --- !query 8213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8214 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 8214 schema -struct<> --- !query 8214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8215 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 8215 schema -struct<> --- !query 8215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8216 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 8216 schema -struct<> --- !query 8216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8217 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 8217 schema -struct> --- !query 8217 output -{1.0:[B@5c0c65b,2.0:[B@77091435} - - --- !query 8218 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 8218 schema -struct<> --- !query 8218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8219 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8219 schema -struct<> --- !query 8219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8220 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8220 schema -struct<> --- !query 8220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8221 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 8221 schema -struct<> --- !query 8221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8222 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 8222 schema -struct<> --- !query 8222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8223 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 8223 schema -struct<> --- !query 8223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8224 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 8224 schema -struct<> --- !query 8224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8225 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 8225 schema -struct<> --- !query 8225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8226 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 8226 schema -struct<> --- !query 8226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8227 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 8227 schema -struct<> --- !query 8227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8228 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 8228 schema -struct<> --- !query 8228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8229 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 8229 schema -struct> --- !query 8229 output -{1.0:[B@470bb89d,2.0:[B@8da0772} - - --- !query 8230 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 8230 schema -struct<> --- !query 8230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8231 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8231 schema -struct<> --- !query 8231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8232 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8232 schema -struct<> --- !query 8232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8233 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 8233 schema -struct<> --- !query 8233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8234 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 8234 schema -struct<> --- !query 8234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8235 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 8235 schema -struct<> --- !query 8235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8236 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 8236 schema -struct<> --- !query 8236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8237 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 8237 schema -struct<> --- !query 8237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8238 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 8238 schema -struct<> --- !query 8238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8239 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 8239 schema -struct<> --- !query 8239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8240 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 8240 schema -struct<> --- !query 8240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8241 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 8241 schema -struct> --- !query 8241 output -{1.0:[B@3c0407c7,2.0:[B@78bb5b77} - - --- !query 8242 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 8242 schema -struct<> --- !query 8242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8243 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8243 schema -struct<> --- !query 8243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8244 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8244 schema -struct<> --- !query 8244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8245 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 8245 schema -struct<> --- !query 8245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8246 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 8246 schema -struct<> --- !query 8246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8247 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 8247 schema -struct<> --- !query 8247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8248 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 8248 schema -struct<> --- !query 8248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8249 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 8249 schema -struct<> --- !query 8249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8250 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 8250 schema -struct<> --- !query 8250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8251 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 8251 schema -struct<> --- !query 8251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8252 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 8252 schema -struct<> --- !query 8252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8253 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 8253 schema -struct> --- !query 8253 output -{1.0:[B@66e1c175,2.0:[B@a5cb518} - - --- !query 8254 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 8254 schema -struct<> --- !query 8254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8255 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8255 schema -struct<> --- !query 8255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8256 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8256 schema -struct<> --- !query 8256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8257 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 8257 schema -struct<> --- !query 8257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8258 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 8258 schema -struct<> --- !query 8258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8259 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 8259 schema -struct<> --- !query 8259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8260 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 8260 schema -struct<> --- !query 8260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8261 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 8261 schema -struct<> --- !query 8261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8262 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 8262 schema -struct<> --- !query 8262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8263 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 8263 schema -struct<> --- !query 8263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8264 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 8264 schema -struct<> --- !query 8264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8265 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 8265 schema -struct> --- !query 8265 output -{1.0:[B@1fca1d63,2.0:[B@44e4c32f} - - --- !query 8266 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 8266 schema -struct<> --- !query 8266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8267 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8267 schema -struct<> --- !query 8267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8268 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8268 schema -struct<> --- !query 8268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8269 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 8269 schema -struct<> --- !query 8269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8270 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 8270 schema -struct<> --- !query 8270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8271 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 8271 schema -struct<> --- !query 8271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8272 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 8272 schema -struct<> --- !query 8272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8273 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 8273 schema -struct<> --- !query 8273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8274 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 8274 schema -struct<> --- !query 8274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8275 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 8275 schema -struct<> --- !query 8275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8276 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 8276 schema -struct<> --- !query 8276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8277 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 8277 schema -struct> --- !query 8277 output -{1.0:[B@47957c53,2.0:[B@75082993} - - --- !query 8278 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 8278 schema -struct<> --- !query 8278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8279 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8279 schema -struct<> --- !query 8279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8280 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8280 schema -struct<> --- !query 8280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8281 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 8281 schema -struct<> --- !query 8281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8282 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 8282 schema -struct<> --- !query 8282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8283 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 8283 schema -struct<> --- !query 8283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8284 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 8284 schema -struct<> --- !query 8284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8285 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 8285 schema -struct<> --- !query 8285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8286 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 8286 schema -struct<> --- !query 8286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8287 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 8287 schema -struct<> --- !query 8287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8288 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 8288 schema -struct<> --- !query 8288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8289 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 8289 schema -struct> --- !query 8289 output -{1.0:[B@5b31a936,2.0:[B@6b244f99} - - --- !query 8290 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 8290 schema -struct<> --- !query 8290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8291 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8291 schema -struct<> --- !query 8291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8292 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8292 schema -struct<> --- !query 8292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8293 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 8293 schema -struct<> --- !query 8293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 8294 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 8294 schema -struct<> --- !query 8294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 8295 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 8295 schema -struct<> --- !query 8295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 8296 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 8296 schema -struct<> --- !query 8296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 8297 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 8297 schema -struct<> --- !query 8297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 8298 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 8298 schema -struct<> --- !query 8298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 8299 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 8299 schema -struct<> --- !query 8299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 8300 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 8300 schema -struct<> --- !query 8300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 8301 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 8301 schema -struct> --- !query 8301 output -{"1.0":[B@429f23e8,"2":[B@7e9b438a} - - --- !query 8302 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 8302 schema -struct<> --- !query 8302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 8303 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8303 schema -struct<> --- !query 8303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 8304 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8304 schema -struct<> --- !query 8304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 8305 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 8305 schema -struct<> --- !query 8305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8306 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 8306 schema -struct<> --- !query 8306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8307 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 8307 schema -struct<> --- !query 8307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8308 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 8308 schema -struct<> --- !query 8308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8309 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 8309 schema -struct<> --- !query 8309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8310 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 8310 schema -struct<> --- !query 8310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8311 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 8311 schema -struct<> --- !query 8311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8312 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 8312 schema -struct<> --- !query 8312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8313 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 8313 schema -struct<> --- !query 8313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8314 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 8314 schema -struct<> --- !query 8314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8315 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8315 schema -struct<> --- !query 8315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8316 -SELECT map(cast(1 as float), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8316 schema -struct<> --- !query 8316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8317 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 8317 schema -struct<> --- !query 8317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8318 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 8318 schema -struct<> --- !query 8318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8319 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 8319 schema -struct<> --- !query 8319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8320 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 8320 schema -struct<> --- !query 8320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8321 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 8321 schema -struct<> --- !query 8321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8322 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 8322 schema -struct<> --- !query 8322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8323 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 8323 schema -struct<> --- !query 8323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8324 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 8324 schema -struct<> --- !query 8324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8325 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 8325 schema -struct<> --- !query 8325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8326 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 8326 schema -struct<> --- !query 8326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8327 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8327 schema -struct<> --- !query 8327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8328 -SELECT map(cast(1 as float), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8328 schema -struct<> --- !query 8328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8329 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 8329 schema -struct<> --- !query 8329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8330 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 8330 schema -struct<> --- !query 8330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8331 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 8331 schema -struct<> --- !query 8331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8332 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 8332 schema -struct<> --- !query 8332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8333 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 8333 schema -struct<> --- !query 8333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8334 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 8334 schema -struct<> --- !query 8334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8335 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 8335 schema -struct<> --- !query 8335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8336 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 8336 schema -struct<> --- !query 8336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8337 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 8337 schema -struct<> --- !query 8337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8338 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 8338 schema -struct<> --- !query 8338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8339 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8339 schema -struct<> --- !query 8339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8340 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8340 schema -struct<> --- !query 8340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8341 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 8341 schema -struct<> --- !query 8341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8342 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 8342 schema -struct<> --- !query 8342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8343 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 8343 schema -struct<> --- !query 8343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8344 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 8344 schema -struct<> --- !query 8344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8345 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 8345 schema -struct<> --- !query 8345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8346 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 8346 schema -struct<> --- !query 8346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8347 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 8347 schema -struct<> --- !query 8347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8348 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 8348 schema -struct<> --- !query 8348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8349 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 8349 schema -struct<> --- !query 8349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8350 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 8350 schema -struct<> --- !query 8350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8351 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8351 schema -struct<> --- !query 8351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8352 -SELECT map(cast(1 as float), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8352 schema -struct<> --- !query 8352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8353 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 8353 schema -struct<> --- !query 8353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8354 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 8354 schema -struct<> --- !query 8354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8355 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 8355 schema -struct<> --- !query 8355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8356 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 8356 schema -struct<> --- !query 8356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8357 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 8357 schema -struct<> --- !query 8357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8358 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 8358 schema -struct<> --- !query 8358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8359 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 8359 schema -struct<> --- !query 8359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8360 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 8360 schema -struct<> --- !query 8360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8361 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 8361 schema -struct<> --- !query 8361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8362 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 8362 schema -struct> --- !query 8362 output -{1.0:true,2.0:true} - - --- !query 8363 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8363 schema -struct<> --- !query 8363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8364 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8364 schema -struct<> --- !query 8364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8365 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 8365 schema -struct<> --- !query 8365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8366 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 8366 schema -struct<> --- !query 8366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8367 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 8367 schema -struct<> --- !query 8367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8368 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 8368 schema -struct<> --- !query 8368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8369 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 8369 schema -struct<> --- !query 8369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8370 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 8370 schema -struct<> --- !query 8370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8371 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 8371 schema -struct<> --- !query 8371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8372 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 8372 schema -struct<> --- !query 8372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8373 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 8373 schema -struct<> --- !query 8373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8374 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 8374 schema -struct> --- !query 8374 output -{1.0:true,2.0:true} - - --- !query 8375 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8375 schema -struct<> --- !query 8375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8376 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8376 schema -struct<> --- !query 8376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8377 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 8377 schema -struct<> --- !query 8377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8378 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 8378 schema -struct<> --- !query 8378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8379 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 8379 schema -struct<> --- !query 8379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8380 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 8380 schema -struct<> --- !query 8380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8381 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 8381 schema -struct<> --- !query 8381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8382 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 8382 schema -struct<> --- !query 8382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8383 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 8383 schema -struct<> --- !query 8383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8384 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 8384 schema -struct<> --- !query 8384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8385 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 8385 schema -struct<> --- !query 8385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8386 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 8386 schema -struct> --- !query 8386 output -{1.0:true,2.0:true} - - --- !query 8387 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8387 schema -struct<> --- !query 8387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8388 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8388 schema -struct<> --- !query 8388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8389 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 8389 schema -struct<> --- !query 8389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8390 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 8390 schema -struct<> --- !query 8390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8391 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 8391 schema -struct<> --- !query 8391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8392 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 8392 schema -struct<> --- !query 8392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8393 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 8393 schema -struct<> --- !query 8393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8394 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 8394 schema -struct<> --- !query 8394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8395 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 8395 schema -struct<> --- !query 8395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8396 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 8396 schema -struct<> --- !query 8396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8397 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 8397 schema -struct<> --- !query 8397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8398 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 8398 schema -struct> --- !query 8398 output -{1.0:true,2.0:true} - - --- !query 8399 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8399 schema -struct<> --- !query 8399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8400 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8400 schema -struct<> --- !query 8400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8401 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 8401 schema -struct<> --- !query 8401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8402 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 8402 schema -struct<> --- !query 8402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8403 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 8403 schema -struct<> --- !query 8403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8404 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 8404 schema -struct<> --- !query 8404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8405 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 8405 schema -struct<> --- !query 8405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8406 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 8406 schema -struct<> --- !query 8406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8407 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 8407 schema -struct<> --- !query 8407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8408 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 8408 schema -struct<> --- !query 8408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8409 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 8409 schema -struct<> --- !query 8409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8410 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 8410 schema -struct> --- !query 8410 output -{1.0:true,2.0:true} - - --- !query 8411 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8411 schema -struct<> --- !query 8411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8412 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8412 schema -struct<> --- !query 8412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8413 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 8413 schema -struct<> --- !query 8413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8414 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 8414 schema -struct<> --- !query 8414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8415 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 8415 schema -struct<> --- !query 8415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8416 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 8416 schema -struct<> --- !query 8416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8417 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 8417 schema -struct<> --- !query 8417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8418 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 8418 schema -struct<> --- !query 8418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8419 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 8419 schema -struct<> --- !query 8419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8420 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 8420 schema -struct<> --- !query 8420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8421 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 8421 schema -struct<> --- !query 8421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8422 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 8422 schema -struct> --- !query 8422 output -{1.0:true,2.0:true} - - --- !query 8423 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8423 schema -struct<> --- !query 8423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8424 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8424 schema -struct<> --- !query 8424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8425 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 8425 schema -struct<> --- !query 8425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8426 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 8426 schema -struct<> --- !query 8426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8427 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 8427 schema -struct<> --- !query 8427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8428 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 8428 schema -struct<> --- !query 8428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8429 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 8429 schema -struct<> --- !query 8429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8430 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 8430 schema -struct<> --- !query 8430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8431 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 8431 schema -struct<> --- !query 8431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8432 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 8432 schema -struct<> --- !query 8432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8433 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 8433 schema -struct<> --- !query 8433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8434 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 8434 schema -struct> --- !query 8434 output -{1.0:true,2.0:true} - - --- !query 8435 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8435 schema -struct<> --- !query 8435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8436 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8436 schema -struct<> --- !query 8436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8437 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 8437 schema -struct<> --- !query 8437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 8438 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 8438 schema -struct<> --- !query 8438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 8439 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 8439 schema -struct<> --- !query 8439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 8440 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 8440 schema -struct<> --- !query 8440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 8441 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 8441 schema -struct<> --- !query 8441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 8442 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 8442 schema -struct<> --- !query 8442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 8443 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 8443 schema -struct<> --- !query 8443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 8444 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 8444 schema -struct<> --- !query 8444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 8445 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 8445 schema -struct<> --- !query 8445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 8446 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 8446 schema -struct> --- !query 8446 output -{"1.0":true,"2":true} - - --- !query 8447 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8447 schema -struct<> --- !query 8447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 8448 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8448 schema -struct<> --- !query 8448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 8449 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 8449 schema -struct<> --- !query 8449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8450 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 8450 schema -struct<> --- !query 8450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8451 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 8451 schema -struct<> --- !query 8451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8452 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 8452 schema -struct<> --- !query 8452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8453 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 8453 schema -struct<> --- !query 8453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8454 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 8454 schema -struct<> --- !query 8454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8455 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 8455 schema -struct<> --- !query 8455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8456 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 8456 schema -struct<> --- !query 8456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8457 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 8457 schema -struct<> --- !query 8457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8458 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 8458 schema -struct<> --- !query 8458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8459 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8459 schema -struct<> --- !query 8459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8460 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8460 schema -struct<> --- !query 8460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8461 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 8461 schema -struct<> --- !query 8461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8462 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 8462 schema -struct<> --- !query 8462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8463 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 8463 schema -struct<> --- !query 8463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8464 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 8464 schema -struct<> --- !query 8464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8465 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 8465 schema -struct<> --- !query 8465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8466 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 8466 schema -struct<> --- !query 8466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8467 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 8467 schema -struct<> --- !query 8467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8468 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 8468 schema -struct<> --- !query 8468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8469 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 8469 schema -struct<> --- !query 8469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8470 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 8470 schema -struct<> --- !query 8470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8471 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8471 schema -struct<> --- !query 8471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8472 -SELECT map(cast(1 as float), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8472 schema -struct<> --- !query 8472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8473 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 8473 schema -struct<> --- !query 8473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8474 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 8474 schema -struct<> --- !query 8474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8475 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 8475 schema -struct<> --- !query 8475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8476 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 8476 schema -struct<> --- !query 8476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8477 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 8477 schema -struct<> --- !query 8477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8478 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 8478 schema -struct<> --- !query 8478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8479 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 8479 schema -struct<> --- !query 8479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8480 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 8480 schema -struct<> --- !query 8480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8481 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 8481 schema -struct<> --- !query 8481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8482 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 8482 schema -struct<> --- !query 8482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8483 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8483 schema -struct<> --- !query 8483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8484 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8484 schema -struct<> --- !query 8484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8485 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 8485 schema -struct<> --- !query 8485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8486 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 8486 schema -struct<> --- !query 8486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8487 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 8487 schema -struct<> --- !query 8487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8488 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 8488 schema -struct<> --- !query 8488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8489 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 8489 schema -struct<> --- !query 8489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8490 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 8490 schema -struct<> --- !query 8490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8491 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 8491 schema -struct<> --- !query 8491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8492 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 8492 schema -struct<> --- !query 8492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8493 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 8493 schema -struct<> --- !query 8493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8494 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 8494 schema -struct<> --- !query 8494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8495 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8495 schema -struct<> --- !query 8495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8496 -SELECT map(cast(1 as float), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8496 schema -struct<> --- !query 8496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8497 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 8497 schema -struct<> --- !query 8497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8498 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 8498 schema -struct<> --- !query 8498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8499 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 8499 schema -struct<> --- !query 8499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8500 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 8500 schema -struct<> --- !query 8500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8501 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 8501 schema -struct<> --- !query 8501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8502 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 8502 schema -struct<> --- !query 8502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8503 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 8503 schema -struct<> --- !query 8503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8504 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 8504 schema -struct> --- !query 8504 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 8505 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 8505 schema -struct<> --- !query 8505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8506 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 8506 schema -struct<> --- !query 8506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8507 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8507 schema -struct> --- !query 8507 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8508 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8508 schema -struct> --- !query 8508 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 8509 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 8509 schema -struct<> --- !query 8509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8510 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 8510 schema -struct<> --- !query 8510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8511 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 8511 schema -struct<> --- !query 8511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8512 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 8512 schema -struct<> --- !query 8512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8513 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 8513 schema -struct<> --- !query 8513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8514 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 8514 schema -struct<> --- !query 8514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8515 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 8515 schema -struct<> --- !query 8515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8516 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 8516 schema -struct> --- !query 8516 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 8517 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 8517 schema -struct<> --- !query 8517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8518 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 8518 schema -struct<> --- !query 8518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8519 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8519 schema -struct> --- !query 8519 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8520 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8520 schema -struct> --- !query 8520 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 8521 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 8521 schema -struct<> --- !query 8521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8522 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 8522 schema -struct<> --- !query 8522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8523 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 8523 schema -struct<> --- !query 8523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8524 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 8524 schema -struct<> --- !query 8524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8525 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 8525 schema -struct<> --- !query 8525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8526 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 8526 schema -struct<> --- !query 8526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8527 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 8527 schema -struct<> --- !query 8527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8528 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 8528 schema -struct> --- !query 8528 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 8529 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 8529 schema -struct<> --- !query 8529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8530 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 8530 schema -struct<> --- !query 8530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8531 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8531 schema -struct> --- !query 8531 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8532 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8532 schema -struct> --- !query 8532 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 8533 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 8533 schema -struct<> --- !query 8533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8534 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 8534 schema -struct<> --- !query 8534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8535 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 8535 schema -struct<> --- !query 8535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8536 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 8536 schema -struct<> --- !query 8536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8537 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 8537 schema -struct<> --- !query 8537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8538 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 8538 schema -struct<> --- !query 8538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8539 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 8539 schema -struct<> --- !query 8539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8540 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 8540 schema -struct> --- !query 8540 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 8541 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 8541 schema -struct<> --- !query 8541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8542 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 8542 schema -struct<> --- !query 8542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8543 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8543 schema -struct> --- !query 8543 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8544 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8544 schema -struct> --- !query 8544 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 8545 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 8545 schema -struct<> --- !query 8545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8546 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 8546 schema -struct<> --- !query 8546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8547 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 8547 schema -struct<> --- !query 8547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8548 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 8548 schema -struct<> --- !query 8548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8549 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 8549 schema -struct<> --- !query 8549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8550 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 8550 schema -struct<> --- !query 8550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8551 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 8551 schema -struct<> --- !query 8551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8552 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 8552 schema -struct> --- !query 8552 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 8553 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 8553 schema -struct<> --- !query 8553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8554 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 8554 schema -struct<> --- !query 8554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8555 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8555 schema -struct> --- !query 8555 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8556 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8556 schema -struct> --- !query 8556 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 8557 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 8557 schema -struct<> --- !query 8557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8558 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 8558 schema -struct<> --- !query 8558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8559 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 8559 schema -struct<> --- !query 8559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8560 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 8560 schema -struct<> --- !query 8560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8561 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 8561 schema -struct<> --- !query 8561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8562 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 8562 schema -struct<> --- !query 8562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8563 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 8563 schema -struct<> --- !query 8563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8564 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 8564 schema -struct> --- !query 8564 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 8565 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 8565 schema -struct<> --- !query 8565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8566 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 8566 schema -struct<> --- !query 8566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8567 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8567 schema -struct> --- !query 8567 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8568 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8568 schema -struct> --- !query 8568 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 8569 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 8569 schema -struct<> --- !query 8569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8570 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 8570 schema -struct<> --- !query 8570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8571 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 8571 schema -struct<> --- !query 8571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8572 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 8572 schema -struct<> --- !query 8572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8573 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 8573 schema -struct<> --- !query 8573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8574 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 8574 schema -struct<> --- !query 8574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8575 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 8575 schema -struct<> --- !query 8575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8576 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 8576 schema -struct> --- !query 8576 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 8577 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 8577 schema -struct<> --- !query 8577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8578 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 8578 schema -struct<> --- !query 8578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8579 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8579 schema -struct> --- !query 8579 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8580 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8580 schema -struct> --- !query 8580 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 8581 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 8581 schema -struct<> --- !query 8581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 8582 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 8582 schema -struct<> --- !query 8582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 8583 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 8583 schema -struct<> --- !query 8583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 8584 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 8584 schema -struct<> --- !query 8584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 8585 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 8585 schema -struct<> --- !query 8585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 8586 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 8586 schema -struct<> --- !query 8586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 8587 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 8587 schema -struct<> --- !query 8587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 8588 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 8588 schema -struct> --- !query 8588 output -{"1.0":"2017-12-11 09:30:00","2":"2"} - - --- !query 8589 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 8589 schema -struct<> --- !query 8589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 8590 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 8590 schema -struct<> --- !query 8590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 8591 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8591 schema -struct> --- !query 8591 output -{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 8592 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8592 schema -struct> --- !query 8592 output -{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 8593 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 8593 schema -struct<> --- !query 8593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8594 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 8594 schema -struct<> --- !query 8594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8595 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 8595 schema -struct<> --- !query 8595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8596 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 8596 schema -struct<> --- !query 8596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8597 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 8597 schema -struct<> --- !query 8597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8598 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 8598 schema -struct<> --- !query 8598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8599 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 8599 schema -struct<> --- !query 8599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8600 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 8600 schema -struct<> --- !query 8600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8601 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 8601 schema -struct<> --- !query 8601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8602 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 8602 schema -struct<> --- !query 8602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8603 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8603 schema -struct<> --- !query 8603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8604 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8604 schema -struct<> --- !query 8604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8605 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 8605 schema -struct<> --- !query 8605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8606 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 8606 schema -struct<> --- !query 8606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8607 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 8607 schema -struct<> --- !query 8607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8608 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 8608 schema -struct<> --- !query 8608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8609 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 8609 schema -struct<> --- !query 8609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8610 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 8610 schema -struct<> --- !query 8610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8611 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 8611 schema -struct<> --- !query 8611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8612 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 8612 schema -struct<> --- !query 8612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8613 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 8613 schema -struct<> --- !query 8613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8614 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 8614 schema -struct<> --- !query 8614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8615 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8615 schema -struct<> --- !query 8615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8616 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8616 schema -struct<> --- !query 8616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8617 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 8617 schema -struct<> --- !query 8617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8618 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 8618 schema -struct<> --- !query 8618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8619 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 8619 schema -struct<> --- !query 8619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8620 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 8620 schema -struct<> --- !query 8620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8621 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 8621 schema -struct<> --- !query 8621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8622 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 8622 schema -struct<> --- !query 8622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8623 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 8623 schema -struct<> --- !query 8623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8624 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 8624 schema -struct<> --- !query 8624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8625 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 8625 schema -struct<> --- !query 8625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8626 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 8626 schema -struct<> --- !query 8626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8627 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8627 schema -struct<> --- !query 8627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8628 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8628 schema -struct<> --- !query 8628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8629 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 8629 schema -struct<> --- !query 8629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8630 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 8630 schema -struct<> --- !query 8630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8631 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 8631 schema -struct<> --- !query 8631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8632 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 8632 schema -struct<> --- !query 8632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8633 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 8633 schema -struct<> --- !query 8633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8634 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 8634 schema -struct<> --- !query 8634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8635 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 8635 schema -struct<> --- !query 8635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8636 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 8636 schema -struct<> --- !query 8636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8637 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 8637 schema -struct<> --- !query 8637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8638 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 8638 schema -struct<> --- !query 8638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8639 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8639 schema -struct<> --- !query 8639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8640 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8640 schema -struct<> --- !query 8640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8641 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 8641 schema -struct<> --- !query 8641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8642 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 8642 schema -struct<> --- !query 8642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8643 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 8643 schema -struct<> --- !query 8643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8644 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 8644 schema -struct<> --- !query 8644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8645 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 8645 schema -struct<> --- !query 8645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8646 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 8646 schema -struct<> --- !query 8646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8647 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 8647 schema -struct<> --- !query 8647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8648 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 8648 schema -struct> --- !query 8648 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 8649 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 8649 schema -struct<> --- !query 8649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8650 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 8650 schema -struct<> --- !query 8650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8651 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8651 schema -struct> --- !query 8651 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8652 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8652 schema -struct> --- !query 8652 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 8653 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 8653 schema -struct<> --- !query 8653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8654 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 8654 schema -struct<> --- !query 8654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8655 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 8655 schema -struct<> --- !query 8655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8656 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 8656 schema -struct<> --- !query 8656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8657 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 8657 schema -struct<> --- !query 8657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8658 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 8658 schema -struct<> --- !query 8658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8659 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 8659 schema -struct<> --- !query 8659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8660 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 8660 schema -struct> --- !query 8660 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 8661 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 8661 schema -struct<> --- !query 8661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8662 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 8662 schema -struct<> --- !query 8662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8663 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8663 schema -struct> --- !query 8663 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8664 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8664 schema -struct> --- !query 8664 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 8665 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 8665 schema -struct<> --- !query 8665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8666 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 8666 schema -struct<> --- !query 8666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8667 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 8667 schema -struct<> --- !query 8667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8668 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 8668 schema -struct<> --- !query 8668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8669 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 8669 schema -struct<> --- !query 8669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8670 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 8670 schema -struct<> --- !query 8670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8671 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 8671 schema -struct<> --- !query 8671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8672 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 8672 schema -struct> --- !query 8672 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 8673 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 8673 schema -struct<> --- !query 8673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8674 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 8674 schema -struct<> --- !query 8674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8675 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8675 schema -struct> --- !query 8675 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8676 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8676 schema -struct> --- !query 8676 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 8677 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 8677 schema -struct<> --- !query 8677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8678 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 8678 schema -struct<> --- !query 8678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8679 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 8679 schema -struct<> --- !query 8679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8680 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 8680 schema -struct<> --- !query 8680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8681 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 8681 schema -struct<> --- !query 8681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8682 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 8682 schema -struct<> --- !query 8682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8683 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 8683 schema -struct<> --- !query 8683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8684 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 8684 schema -struct> --- !query 8684 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 8685 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 8685 schema -struct<> --- !query 8685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8686 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 8686 schema -struct<> --- !query 8686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8687 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8687 schema -struct> --- !query 8687 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8688 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8688 schema -struct> --- !query 8688 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 8689 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 8689 schema -struct<> --- !query 8689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8690 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 8690 schema -struct<> --- !query 8690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8691 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 8691 schema -struct<> --- !query 8691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8692 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 8692 schema -struct<> --- !query 8692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8693 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 8693 schema -struct<> --- !query 8693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8694 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 8694 schema -struct<> --- !query 8694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8695 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 8695 schema -struct<> --- !query 8695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8696 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 8696 schema -struct> --- !query 8696 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 8697 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 8697 schema -struct<> --- !query 8697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8698 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 8698 schema -struct<> --- !query 8698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8699 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8699 schema -struct> --- !query 8699 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8700 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8700 schema -struct> --- !query 8700 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 8701 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 8701 schema -struct<> --- !query 8701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8702 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 8702 schema -struct<> --- !query 8702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8703 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 8703 schema -struct<> --- !query 8703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8704 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 8704 schema -struct<> --- !query 8704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8705 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 8705 schema -struct<> --- !query 8705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8706 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 8706 schema -struct<> --- !query 8706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8707 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 8707 schema -struct<> --- !query 8707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8708 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 8708 schema -struct> --- !query 8708 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 8709 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 8709 schema -struct<> --- !query 8709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8710 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 8710 schema -struct<> --- !query 8710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8711 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8711 schema -struct> --- !query 8711 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8712 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8712 schema -struct> --- !query 8712 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 8713 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 8713 schema -struct<> --- !query 8713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8714 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 8714 schema -struct<> --- !query 8714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8715 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 8715 schema -struct<> --- !query 8715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8716 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 8716 schema -struct<> --- !query 8716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8717 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 8717 schema -struct<> --- !query 8717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8718 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 8718 schema -struct<> --- !query 8718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8719 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 8719 schema -struct<> --- !query 8719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8720 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 8720 schema -struct> --- !query 8720 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 8721 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 8721 schema -struct<> --- !query 8721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8722 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 8722 schema -struct<> --- !query 8722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8723 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8723 schema -struct> --- !query 8723 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 8724 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8724 schema -struct> --- !query 8724 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 8725 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 8725 schema -struct<> --- !query 8725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 8726 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 8726 schema -struct<> --- !query 8726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 8727 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 8727 schema -struct<> --- !query 8727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 8728 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 8728 schema -struct<> --- !query 8728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 8729 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 8729 schema -struct<> --- !query 8729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 8730 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 8730 schema -struct<> --- !query 8730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 8731 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 8731 schema -struct<> --- !query 8731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 8732 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 8732 schema -struct> --- !query 8732 output -{"1.0":"2017-12-11","2":"2"} - - --- !query 8733 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 8733 schema -struct<> --- !query 8733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 8734 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 8734 schema -struct<> --- !query 8734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 8735 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8735 schema -struct> --- !query 8735 output -{"1.0":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 8736 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8736 schema -struct> --- !query 8736 output -{"1.0":2017-12-11,"2":2017-12-12} - - --- !query 8737 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 8737 schema -struct<> --- !query 8737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8738 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 8738 schema -struct<> --- !query 8738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8739 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 8739 schema -struct<> --- !query 8739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8740 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 8740 schema -struct<> --- !query 8740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8741 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 8741 schema -struct<> --- !query 8741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8742 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 8742 schema -struct<> --- !query 8742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8743 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 8743 schema -struct<> --- !query 8743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8744 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 8744 schema -struct<> --- !query 8744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8745 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 8745 schema -struct<> --- !query 8745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8746 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 8746 schema -struct<> --- !query 8746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8747 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8747 schema -struct<> --- !query 8747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8748 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8748 schema -struct<> --- !query 8748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 8749 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 8749 schema -struct<> --- !query 8749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8750 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 8750 schema -struct<> --- !query 8750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8751 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 8751 schema -struct<> --- !query 8751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8752 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 8752 schema -struct<> --- !query 8752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8753 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 8753 schema -struct<> --- !query 8753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8754 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 8754 schema -struct<> --- !query 8754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8755 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 8755 schema -struct<> --- !query 8755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8756 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 8756 schema -struct<> --- !query 8756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8757 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 8757 schema -struct<> --- !query 8757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8758 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 8758 schema -struct<> --- !query 8758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8759 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8759 schema -struct<> --- !query 8759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8760 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8760 schema -struct<> --- !query 8760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 8761 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 8761 schema -struct<> --- !query 8761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8762 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 8762 schema -struct<> --- !query 8762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8763 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 8763 schema -struct<> --- !query 8763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8764 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 8764 schema -struct<> --- !query 8764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8765 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 8765 schema -struct<> --- !query 8765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8766 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 8766 schema -struct<> --- !query 8766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8767 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 8767 schema -struct<> --- !query 8767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8768 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 8768 schema -struct<> --- !query 8768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8769 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 8769 schema -struct<> --- !query 8769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8770 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 8770 schema -struct<> --- !query 8770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8771 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8771 schema -struct<> --- !query 8771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8772 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8772 schema -struct<> --- !query 8772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 8773 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 8773 schema -struct<> --- !query 8773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8774 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 8774 schema -struct<> --- !query 8774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8775 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 8775 schema -struct<> --- !query 8775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8776 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 8776 schema -struct<> --- !query 8776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8777 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 8777 schema -struct<> --- !query 8777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8778 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 8778 schema -struct<> --- !query 8778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8779 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 8779 schema -struct<> --- !query 8779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8780 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 8780 schema -struct<> --- !query 8780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8781 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 8781 schema -struct<> --- !query 8781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8782 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 8782 schema -struct<> --- !query 8782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8783 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8783 schema -struct<> --- !query 8783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8784 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8784 schema -struct<> --- !query 8784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 8785 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 8785 schema -struct> --- !query 8785 output -{1.0:1,2.0:2} - - --- !query 8786 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 8786 schema -struct> --- !query 8786 output -{1.0:1,2.0:2} - - --- !query 8787 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 8787 schema -struct> --- !query 8787 output -{1.0:1,2.0:2} - - --- !query 8788 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 8788 schema -struct> --- !query 8788 output -{1.0:1,2.0:2} - - --- !query 8789 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 8789 schema -struct> --- !query 8789 output -{1.0:1.0,2.0:2.0} - - --- !query 8790 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 8790 schema -struct> --- !query 8790 output -{1.0:1.0,2.0:2.0} - - --- !query 8791 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 8791 schema -struct> --- !query 8791 output -{1.0:1,2.0:2} - - --- !query 8792 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 8792 schema -struct> --- !query 8792 output -{1.0:"1",2.0:"2"} - - --- !query 8793 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 8793 schema -struct<> --- !query 8793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8794 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 8794 schema -struct<> --- !query 8794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8795 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8795 schema -struct<> --- !query 8795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8796 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8796 schema -struct<> --- !query 8796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8797 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 8797 schema -struct> --- !query 8797 output -{1.0:1,2.0:2} - - --- !query 8798 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 8798 schema -struct> --- !query 8798 output -{1.0:1,2.0:2} - - --- !query 8799 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 8799 schema -struct> --- !query 8799 output -{1.0:1,2.0:2} - - --- !query 8800 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 8800 schema -struct> --- !query 8800 output -{1.0:1,2.0:2} - - --- !query 8801 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 8801 schema -struct> --- !query 8801 output -{1.0:1.0,2.0:2.0} - - --- !query 8802 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 8802 schema -struct> --- !query 8802 output -{1.0:1.0,2.0:2.0} - - --- !query 8803 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 8803 schema -struct> --- !query 8803 output -{1.0:1,2.0:2} - - --- !query 8804 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 8804 schema -struct> --- !query 8804 output -{1.0:"1",2.0:"2"} - - --- !query 8805 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 8805 schema -struct<> --- !query 8805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8806 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 8806 schema -struct<> --- !query 8806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8807 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8807 schema -struct<> --- !query 8807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8808 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8808 schema -struct<> --- !query 8808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8809 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 8809 schema -struct> --- !query 8809 output -{1.0:1,2.0:2} - - --- !query 8810 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 8810 schema -struct> --- !query 8810 output -{1.0:1,2.0:2} - - --- !query 8811 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 8811 schema -struct> --- !query 8811 output -{1.0:1,2.0:2} - - --- !query 8812 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 8812 schema -struct> --- !query 8812 output -{1.0:1,2.0:2} - - --- !query 8813 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 8813 schema -struct> --- !query 8813 output -{1.0:1.0,2.0:2.0} - - --- !query 8814 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 8814 schema -struct> --- !query 8814 output -{1.0:1.0,2.0:2.0} - - --- !query 8815 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 8815 schema -struct> --- !query 8815 output -{1.0:1,2.0:2} - - --- !query 8816 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 8816 schema -struct> --- !query 8816 output -{1.0:"1",2.0:"2"} - - --- !query 8817 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 8817 schema -struct<> --- !query 8817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8818 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 8818 schema -struct<> --- !query 8818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8819 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8819 schema -struct<> --- !query 8819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8820 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8820 schema -struct<> --- !query 8820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8821 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 8821 schema -struct> --- !query 8821 output -{1.0:1,2.0:2} - - --- !query 8822 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 8822 schema -struct> --- !query 8822 output -{1.0:1,2.0:2} - - --- !query 8823 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 8823 schema -struct> --- !query 8823 output -{1.0:1,2.0:2} - - --- !query 8824 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 8824 schema -struct> --- !query 8824 output -{1.0:1,2.0:2} - - --- !query 8825 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 8825 schema -struct> --- !query 8825 output -{1.0:1.0,2.0:2.0} - - --- !query 8826 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 8826 schema -struct> --- !query 8826 output -{1.0:1.0,2.0:2.0} - - --- !query 8827 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 8827 schema -struct> --- !query 8827 output -{1.0:1,2.0:2} - - --- !query 8828 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 8828 schema -struct> --- !query 8828 output -{1.0:"1",2.0:"2"} - - --- !query 8829 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 8829 schema -struct<> --- !query 8829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8830 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 8830 schema -struct<> --- !query 8830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8831 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8831 schema -struct<> --- !query 8831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8832 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8832 schema -struct<> --- !query 8832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8833 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 8833 schema -struct> --- !query 8833 output -{1.0:1,2.0:2} - - --- !query 8834 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 8834 schema -struct> --- !query 8834 output -{1.0:1,2.0:2} - - --- !query 8835 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 8835 schema -struct> --- !query 8835 output -{1.0:1,2.0:2} - - --- !query 8836 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 8836 schema -struct> --- !query 8836 output -{1.0:1,2.0:2} - - --- !query 8837 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 8837 schema -struct> --- !query 8837 output -{1.0:1.0,2.0:2.0} - - --- !query 8838 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 8838 schema -struct> --- !query 8838 output -{1.0:1.0,2.0:2.0} - - --- !query 8839 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 8839 schema -struct> --- !query 8839 output -{1.0:1,2.0:2} - - --- !query 8840 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 8840 schema -struct> --- !query 8840 output -{1.0:"1",2.0:"2"} - - --- !query 8841 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 8841 schema -struct<> --- !query 8841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8842 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 8842 schema -struct<> --- !query 8842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8843 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8843 schema -struct<> --- !query 8843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8844 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8844 schema -struct<> --- !query 8844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8845 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 8845 schema -struct> --- !query 8845 output -{1.0:1,2.0:2} - - --- !query 8846 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 8846 schema -struct> --- !query 8846 output -{1.0:1,2.0:2} - - --- !query 8847 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 8847 schema -struct> --- !query 8847 output -{1.0:1,2.0:2} - - --- !query 8848 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 8848 schema -struct> --- !query 8848 output -{1.0:1,2.0:2} - - --- !query 8849 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 8849 schema -struct> --- !query 8849 output -{1.0:1.0,2.0:2.0} - - --- !query 8850 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 8850 schema -struct> --- !query 8850 output -{1.0:1.0,2.0:2.0} - - --- !query 8851 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 8851 schema -struct> --- !query 8851 output -{1.0:1,2.0:2} - - --- !query 8852 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 8852 schema -struct> --- !query 8852 output -{1.0:"1",2.0:"2"} - - --- !query 8853 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 8853 schema -struct<> --- !query 8853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8854 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 8854 schema -struct<> --- !query 8854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8855 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8855 schema -struct<> --- !query 8855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8856 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8856 schema -struct<> --- !query 8856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8857 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 8857 schema -struct> --- !query 8857 output -{1.0:1,2.0:2} - - --- !query 8858 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 8858 schema -struct> --- !query 8858 output -{1.0:1,2.0:2} - - --- !query 8859 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 8859 schema -struct> --- !query 8859 output -{1.0:1,2.0:2} - - --- !query 8860 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 8860 schema -struct> --- !query 8860 output -{1.0:1,2.0:2} - - --- !query 8861 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 8861 schema -struct> --- !query 8861 output -{1.0:1.0,2.0:2.0} - - --- !query 8862 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 8862 schema -struct> --- !query 8862 output -{1.0:1.0,2.0:2.0} - - --- !query 8863 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 8863 schema -struct> --- !query 8863 output -{1.0:1,2.0:2} - - --- !query 8864 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 8864 schema -struct> --- !query 8864 output -{1.0:"1",2.0:"2"} - - --- !query 8865 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 8865 schema -struct<> --- !query 8865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8866 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 8866 schema -struct<> --- !query 8866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8867 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8867 schema -struct<> --- !query 8867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8868 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8868 schema -struct<> --- !query 8868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8869 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 8869 schema -struct> --- !query 8869 output -{"1.0":1,"2":2} - - --- !query 8870 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 8870 schema -struct> --- !query 8870 output -{"1.0":1,"2":2} - - --- !query 8871 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 8871 schema -struct> --- !query 8871 output -{"1.0":1,"2":2} - - --- !query 8872 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 8872 schema -struct> --- !query 8872 output -{"1.0":1,"2":2} - - --- !query 8873 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 8873 schema -struct> --- !query 8873 output -{"1.0":1.0,"2":2.0} - - --- !query 8874 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 8874 schema -struct> --- !query 8874 output -{"1.0":1.0,"2":2.0} - - --- !query 8875 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 8875 schema -struct> --- !query 8875 output -{"1.0":1,"2":2} - - --- !query 8876 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 8876 schema -struct> --- !query 8876 output -{"1.0":"1","2":"2"} - - --- !query 8877 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 8877 schema -struct<> --- !query 8877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 8878 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 8878 schema -struct<> --- !query 8878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 8879 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8879 schema -struct<> --- !query 8879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 8880 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8880 schema -struct<> --- !query 8880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 8881 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 8881 schema -struct<> --- !query 8881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8882 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 8882 schema -struct<> --- !query 8882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8883 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 8883 schema -struct<> --- !query 8883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8884 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 8884 schema -struct<> --- !query 8884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8885 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 8885 schema -struct<> --- !query 8885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8886 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 8886 schema -struct<> --- !query 8886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8887 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 8887 schema -struct<> --- !query 8887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8888 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 8888 schema -struct<> --- !query 8888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8889 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 8889 schema -struct<> --- !query 8889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8890 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 8890 schema -struct<> --- !query 8890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8891 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8891 schema -struct<> --- !query 8891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8892 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8892 schema -struct<> --- !query 8892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 8893 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 8893 schema -struct<> --- !query 8893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8894 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 8894 schema -struct<> --- !query 8894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8895 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 8895 schema -struct<> --- !query 8895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8896 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 8896 schema -struct<> --- !query 8896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8897 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 8897 schema -struct<> --- !query 8897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8898 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 8898 schema -struct<> --- !query 8898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8899 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 8899 schema -struct<> --- !query 8899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8900 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 8900 schema -struct<> --- !query 8900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8901 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 8901 schema -struct<> --- !query 8901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8902 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 8902 schema -struct<> --- !query 8902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8903 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8903 schema -struct<> --- !query 8903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8904 -SELECT map(cast(1 as double), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8904 schema -struct<> --- !query 8904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 8905 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 8905 schema -struct<> --- !query 8905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8906 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 8906 schema -struct<> --- !query 8906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8907 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 8907 schema -struct<> --- !query 8907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8908 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 8908 schema -struct<> --- !query 8908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8909 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 8909 schema -struct<> --- !query 8909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8910 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 8910 schema -struct<> --- !query 8910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8911 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 8911 schema -struct<> --- !query 8911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8912 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 8912 schema -struct<> --- !query 8912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8913 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 8913 schema -struct<> --- !query 8913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8914 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 8914 schema -struct<> --- !query 8914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8915 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8915 schema -struct<> --- !query 8915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8916 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8916 schema -struct<> --- !query 8916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 8917 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 8917 schema -struct<> --- !query 8917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8918 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 8918 schema -struct<> --- !query 8918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8919 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 8919 schema -struct<> --- !query 8919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8920 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 8920 schema -struct<> --- !query 8920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8921 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 8921 schema -struct<> --- !query 8921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8922 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 8922 schema -struct<> --- !query 8922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8923 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 8923 schema -struct<> --- !query 8923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8924 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 8924 schema -struct<> --- !query 8924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8925 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 8925 schema -struct<> --- !query 8925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8926 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 8926 schema -struct<> --- !query 8926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8927 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8927 schema -struct<> --- !query 8927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8928 -SELECT map(cast(1 as double), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8928 schema -struct<> --- !query 8928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 8929 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 8929 schema -struct> --- !query 8929 output -{1.0:1,2.0:2} - - --- !query 8930 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 8930 schema -struct> --- !query 8930 output -{1.0:1,2.0:2} - - --- !query 8931 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 8931 schema -struct> --- !query 8931 output -{1.0:1,2.0:2} - - --- !query 8932 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 8932 schema -struct> --- !query 8932 output -{1.0:1,2.0:2} - - --- !query 8933 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 8933 schema -struct> --- !query 8933 output -{1.0:1.0,2.0:2.0} - - --- !query 8934 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 8934 schema -struct> --- !query 8934 output -{1.0:1.0,2.0:2.0} - - --- !query 8935 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 8935 schema -struct> --- !query 8935 output -{1.0:1,2.0:2} - - --- !query 8936 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 8936 schema -struct> --- !query 8936 output -{1.0:"1",2.0:"2"} - - --- !query 8937 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 8937 schema -struct<> --- !query 8937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 8938 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 8938 schema -struct<> --- !query 8938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 8939 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8939 schema -struct<> --- !query 8939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 8940 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8940 schema -struct<> --- !query 8940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 8941 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 8941 schema -struct> --- !query 8941 output -{1.0:1,2.0:2} - - --- !query 8942 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 8942 schema -struct> --- !query 8942 output -{1.0:1,2.0:2} - - --- !query 8943 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 8943 schema -struct> --- !query 8943 output -{1.0:1,2.0:2} - - --- !query 8944 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 8944 schema -struct> --- !query 8944 output -{1.0:1,2.0:2} - - --- !query 8945 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 8945 schema -struct> --- !query 8945 output -{1.0:1.0,2.0:2.0} - - --- !query 8946 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 8946 schema -struct> --- !query 8946 output -{1.0:1.0,2.0:2.0} - - --- !query 8947 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 8947 schema -struct> --- !query 8947 output -{1.0:1,2.0:2} - - --- !query 8948 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 8948 schema -struct> --- !query 8948 output -{1.0:"1",2.0:"2"} - - --- !query 8949 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 8949 schema -struct<> --- !query 8949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 8950 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 8950 schema -struct<> --- !query 8950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 8951 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8951 schema -struct<> --- !query 8951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 8952 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8952 schema -struct<> --- !query 8952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 8953 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 8953 schema -struct> --- !query 8953 output -{1.0:1,2.0:2} - - --- !query 8954 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 8954 schema -struct> --- !query 8954 output -{1.0:1,2.0:2} - - --- !query 8955 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 8955 schema -struct> --- !query 8955 output -{1.0:1,2.0:2} - - --- !query 8956 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 8956 schema -struct> --- !query 8956 output -{1.0:1,2.0:2} - - --- !query 8957 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 8957 schema -struct> --- !query 8957 output -{1.0:1.0,2.0:2.0} - - --- !query 8958 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 8958 schema -struct> --- !query 8958 output -{1.0:1.0,2.0:2.0} - - --- !query 8959 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 8959 schema -struct> --- !query 8959 output -{1.0:1,2.0:2} - - --- !query 8960 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 8960 schema -struct> --- !query 8960 output -{1.0:"1",2.0:"2"} - - --- !query 8961 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 8961 schema -struct<> --- !query 8961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 8962 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 8962 schema -struct<> --- !query 8962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 8963 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8963 schema -struct<> --- !query 8963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 8964 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8964 schema -struct<> --- !query 8964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 8965 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 8965 schema -struct> --- !query 8965 output -{1.0:1,2.0:2} - - --- !query 8966 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 8966 schema -struct> --- !query 8966 output -{1.0:1,2.0:2} - - --- !query 8967 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 8967 schema -struct> --- !query 8967 output -{1.0:1,2.0:2} - - --- !query 8968 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 8968 schema -struct> --- !query 8968 output -{1.0:1,2.0:2} - - --- !query 8969 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 8969 schema -struct> --- !query 8969 output -{1.0:1.0,2.0:2.0} - - --- !query 8970 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 8970 schema -struct> --- !query 8970 output -{1.0:1.0,2.0:2.0} - - --- !query 8971 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 8971 schema -struct> --- !query 8971 output -{1.0:1,2.0:2} - - --- !query 8972 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 8972 schema -struct> --- !query 8972 output -{1.0:"1",2.0:"2"} - - --- !query 8973 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 8973 schema -struct<> --- !query 8973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 8974 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 8974 schema -struct<> --- !query 8974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 8975 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8975 schema -struct<> --- !query 8975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 8976 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8976 schema -struct<> --- !query 8976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 8977 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 8977 schema -struct> --- !query 8977 output -{1.0:1,2.0:2} - - --- !query 8978 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 8978 schema -struct> --- !query 8978 output -{1.0:1,2.0:2} - - --- !query 8979 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 8979 schema -struct> --- !query 8979 output -{1.0:1,2.0:2} - - --- !query 8980 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 8980 schema -struct> --- !query 8980 output -{1.0:1,2.0:2} - - --- !query 8981 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 8981 schema -struct> --- !query 8981 output -{1.0:1.0,2.0:2.0} - - --- !query 8982 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 8982 schema -struct> --- !query 8982 output -{1.0:1.0,2.0:2.0} - - --- !query 8983 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 8983 schema -struct> --- !query 8983 output -{1.0:1,2.0:2} - - --- !query 8984 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 8984 schema -struct> --- !query 8984 output -{1.0:"1",2.0:"2"} - - --- !query 8985 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 8985 schema -struct<> --- !query 8985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 8986 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 8986 schema -struct<> --- !query 8986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 8987 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8987 schema -struct<> --- !query 8987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 8988 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 8988 schema -struct<> --- !query 8988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 8989 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 8989 schema -struct> --- !query 8989 output -{1.0:1,2.0:2} - - --- !query 8990 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 8990 schema -struct> --- !query 8990 output -{1.0:1,2.0:2} - - --- !query 8991 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 8991 schema -struct> --- !query 8991 output -{1.0:1,2.0:2} - - --- !query 8992 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 8992 schema -struct> --- !query 8992 output -{1.0:1,2.0:2} - - --- !query 8993 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 8993 schema -struct> --- !query 8993 output -{1.0:1.0,2.0:2.0} - - --- !query 8994 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 8994 schema -struct> --- !query 8994 output -{1.0:1.0,2.0:2.0} - - --- !query 8995 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 8995 schema -struct> --- !query 8995 output -{1.0:1,2.0:2} - - --- !query 8996 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 8996 schema -struct> --- !query 8996 output -{1.0:"1",2.0:"2"} - - --- !query 8997 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 8997 schema -struct<> --- !query 8997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 8998 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 8998 schema -struct<> --- !query 8998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 8999 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 8999 schema -struct<> --- !query 8999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 9000 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9000 schema -struct<> --- !query 9000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 9001 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 9001 schema -struct> --- !query 9001 output -{1.0:1,2.0:2} - - --- !query 9002 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 9002 schema -struct> --- !query 9002 output -{1.0:1,2.0:2} - - --- !query 9003 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 9003 schema -struct> --- !query 9003 output -{1.0:1,2.0:2} - - --- !query 9004 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 9004 schema -struct> --- !query 9004 output -{1.0:1,2.0:2} - - --- !query 9005 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 9005 schema -struct> --- !query 9005 output -{1.0:1.0,2.0:2.0} - - --- !query 9006 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 9006 schema -struct> --- !query 9006 output -{1.0:1.0,2.0:2.0} - - --- !query 9007 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 9007 schema -struct> --- !query 9007 output -{1.0:1,2.0:2} - - --- !query 9008 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 9008 schema -struct> --- !query 9008 output -{1.0:"1",2.0:"2"} - - --- !query 9009 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 9009 schema -struct<> --- !query 9009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 9010 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 9010 schema -struct<> --- !query 9010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 9011 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9011 schema -struct<> --- !query 9011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 9012 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9012 schema -struct<> --- !query 9012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 9013 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 9013 schema -struct> --- !query 9013 output -{"1.0":1,"2":2} - - --- !query 9014 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 9014 schema -struct> --- !query 9014 output -{"1.0":1,"2":2} - - --- !query 9015 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 9015 schema -struct> --- !query 9015 output -{"1.0":1,"2":2} - - --- !query 9016 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 9016 schema -struct> --- !query 9016 output -{"1.0":1,"2":2} - - --- !query 9017 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 9017 schema -struct> --- !query 9017 output -{"1.0":1.0,"2":2.0} - - --- !query 9018 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 9018 schema -struct> --- !query 9018 output -{"1.0":1.0,"2":2.0} - - --- !query 9019 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 9019 schema -struct> --- !query 9019 output -{"1.0":1,"2":2} - - --- !query 9020 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 9020 schema -struct> --- !query 9020 output -{"1.0":"1","2":"2"} - - --- !query 9021 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 9021 schema -struct<> --- !query 9021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 9022 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 9022 schema -struct<> --- !query 9022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 9023 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9023 schema -struct<> --- !query 9023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 9024 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9024 schema -struct<> --- !query 9024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 9025 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 9025 schema -struct<> --- !query 9025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9026 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 9026 schema -struct<> --- !query 9026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9027 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 9027 schema -struct<> --- !query 9027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9028 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 9028 schema -struct<> --- !query 9028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9029 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 9029 schema -struct<> --- !query 9029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9030 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 9030 schema -struct<> --- !query 9030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9031 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 9031 schema -struct<> --- !query 9031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9032 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 9032 schema -struct<> --- !query 9032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9033 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 9033 schema -struct<> --- !query 9033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9034 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 9034 schema -struct<> --- !query 9034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9035 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9035 schema -struct<> --- !query 9035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9036 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9036 schema -struct<> --- !query 9036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9037 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 9037 schema -struct<> --- !query 9037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9038 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 9038 schema -struct<> --- !query 9038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9039 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 9039 schema -struct<> --- !query 9039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9040 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 9040 schema -struct<> --- !query 9040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9041 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 9041 schema -struct<> --- !query 9041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9042 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 9042 schema -struct<> --- !query 9042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9043 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 9043 schema -struct<> --- !query 9043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9044 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 9044 schema -struct<> --- !query 9044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9045 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 9045 schema -struct<> --- !query 9045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9046 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 9046 schema -struct<> --- !query 9046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9047 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9047 schema -struct<> --- !query 9047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9048 -SELECT map(cast(1 as double), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9048 schema -struct<> --- !query 9048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9049 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 9049 schema -struct<> --- !query 9049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9050 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 9050 schema -struct<> --- !query 9050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9051 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 9051 schema -struct<> --- !query 9051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9052 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 9052 schema -struct<> --- !query 9052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9053 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 9053 schema -struct<> --- !query 9053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9054 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 9054 schema -struct<> --- !query 9054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9055 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 9055 schema -struct<> --- !query 9055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9056 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 9056 schema -struct<> --- !query 9056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9057 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 9057 schema -struct<> --- !query 9057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9058 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 9058 schema -struct<> --- !query 9058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9059 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9059 schema -struct<> --- !query 9059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9060 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9060 schema -struct<> --- !query 9060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9061 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 9061 schema -struct<> --- !query 9061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9062 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 9062 schema -struct<> --- !query 9062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9063 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 9063 schema -struct<> --- !query 9063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9064 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 9064 schema -struct<> --- !query 9064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9065 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 9065 schema -struct<> --- !query 9065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9066 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 9066 schema -struct<> --- !query 9066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9067 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 9067 schema -struct<> --- !query 9067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9068 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 9068 schema -struct<> --- !query 9068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9069 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 9069 schema -struct<> --- !query 9069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9070 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 9070 schema -struct<> --- !query 9070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9071 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9071 schema -struct<> --- !query 9071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9072 -SELECT map(cast(1 as double), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9072 schema -struct<> --- !query 9072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9073 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 9073 schema -struct> --- !query 9073 output -{1.0:1,2.0:2} - - --- !query 9074 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 9074 schema -struct> --- !query 9074 output -{1.0:1,2.0:2} - - --- !query 9075 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 9075 schema -struct> --- !query 9075 output -{1.0:1,2.0:2} - - --- !query 9076 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 9076 schema -struct> --- !query 9076 output -{1.0:1,2.0:2} - - --- !query 9077 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 9077 schema -struct> --- !query 9077 output -{1.0:1.0,2.0:2.0} - - --- !query 9078 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 9078 schema -struct> --- !query 9078 output -{1.0:1.0,2.0:2.0} - - --- !query 9079 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 9079 schema -struct> --- !query 9079 output -{1.0:1,2.0:2} - - --- !query 9080 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 9080 schema -struct> --- !query 9080 output -{1.0:"1",2.0:"2"} - - --- !query 9081 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 9081 schema -struct<> --- !query 9081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9082 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 9082 schema -struct<> --- !query 9082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9083 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9083 schema -struct<> --- !query 9083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9084 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9084 schema -struct<> --- !query 9084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9085 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 9085 schema -struct> --- !query 9085 output -{1.0:1,2.0:2} - - --- !query 9086 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 9086 schema -struct> --- !query 9086 output -{1.0:1,2.0:2} - - --- !query 9087 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 9087 schema -struct> --- !query 9087 output -{1.0:1,2.0:2} - - --- !query 9088 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 9088 schema -struct> --- !query 9088 output -{1.0:1,2.0:2} - - --- !query 9089 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 9089 schema -struct> --- !query 9089 output -{1.0:1.0,2.0:2.0} - - --- !query 9090 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 9090 schema -struct> --- !query 9090 output -{1.0:1.0,2.0:2.0} - - --- !query 9091 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 9091 schema -struct> --- !query 9091 output -{1.0:1,2.0:2} - - --- !query 9092 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 9092 schema -struct> --- !query 9092 output -{1.0:"1",2.0:"2"} - - --- !query 9093 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 9093 schema -struct<> --- !query 9093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9094 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 9094 schema -struct<> --- !query 9094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9095 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9095 schema -struct<> --- !query 9095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9096 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9096 schema -struct<> --- !query 9096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9097 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 9097 schema -struct> --- !query 9097 output -{1.0:1,2.0:2} - - --- !query 9098 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 9098 schema -struct> --- !query 9098 output -{1.0:1,2.0:2} - - --- !query 9099 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 9099 schema -struct> --- !query 9099 output -{1.0:1,2.0:2} - - --- !query 9100 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 9100 schema -struct> --- !query 9100 output -{1.0:1,2.0:2} - - --- !query 9101 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 9101 schema -struct> --- !query 9101 output -{1.0:1.0,2.0:2.0} - - --- !query 9102 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 9102 schema -struct> --- !query 9102 output -{1.0:1.0,2.0:2.0} - - --- !query 9103 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 9103 schema -struct> --- !query 9103 output -{1.0:1,2.0:2} - - --- !query 9104 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 9104 schema -struct> --- !query 9104 output -{1.0:"1",2.0:"2"} - - --- !query 9105 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 9105 schema -struct<> --- !query 9105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9106 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 9106 schema -struct<> --- !query 9106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9107 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9107 schema -struct<> --- !query 9107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9108 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9108 schema -struct<> --- !query 9108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9109 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 9109 schema -struct> --- !query 9109 output -{1.0:1,2.0:2} - - --- !query 9110 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 9110 schema -struct> --- !query 9110 output -{1.0:1,2.0:2} - - --- !query 9111 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 9111 schema -struct> --- !query 9111 output -{1.0:1,2.0:2} - - --- !query 9112 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 9112 schema -struct> --- !query 9112 output -{1.0:1,2.0:2} - - --- !query 9113 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 9113 schema -struct> --- !query 9113 output -{1.0:1.0,2.0:2.0} - - --- !query 9114 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 9114 schema -struct> --- !query 9114 output -{1.0:1.0,2.0:2.0} - - --- !query 9115 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 9115 schema -struct> --- !query 9115 output -{1.0:1,2.0:2} - - --- !query 9116 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 9116 schema -struct> --- !query 9116 output -{1.0:"1",2.0:"2"} - - --- !query 9117 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 9117 schema -struct<> --- !query 9117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9118 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 9118 schema -struct<> --- !query 9118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9119 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9119 schema -struct<> --- !query 9119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9120 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9120 schema -struct<> --- !query 9120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9121 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 9121 schema -struct> --- !query 9121 output -{1.0:1,2.0:2} - - --- !query 9122 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 9122 schema -struct> --- !query 9122 output -{1.0:1,2.0:2} - - --- !query 9123 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 9123 schema -struct> --- !query 9123 output -{1.0:1,2.0:2} - - --- !query 9124 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 9124 schema -struct> --- !query 9124 output -{1.0:1,2.0:2} - - --- !query 9125 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 9125 schema -struct> --- !query 9125 output -{1.0:1.0,2.0:2.0} - - --- !query 9126 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 9126 schema -struct> --- !query 9126 output -{1.0:1.0,2.0:2.0} - - --- !query 9127 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 9127 schema -struct> --- !query 9127 output -{1.0:1,2.0:2} - - --- !query 9128 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 9128 schema -struct> --- !query 9128 output -{1.0:"1",2.0:"2"} - - --- !query 9129 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 9129 schema -struct<> --- !query 9129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9130 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 9130 schema -struct<> --- !query 9130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9131 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9131 schema -struct<> --- !query 9131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9132 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9132 schema -struct<> --- !query 9132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9133 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 9133 schema -struct> --- !query 9133 output -{1.0:1,2.0:2} - - --- !query 9134 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 9134 schema -struct> --- !query 9134 output -{1.0:1,2.0:2} - - --- !query 9135 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 9135 schema -struct> --- !query 9135 output -{1.0:1,2.0:2} - - --- !query 9136 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 9136 schema -struct> --- !query 9136 output -{1.0:1,2.0:2} - - --- !query 9137 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 9137 schema -struct> --- !query 9137 output -{1.0:1.0,2.0:2.0} - - --- !query 9138 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 9138 schema -struct> --- !query 9138 output -{1.0:1.0,2.0:2.0} - - --- !query 9139 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 9139 schema -struct> --- !query 9139 output -{1.0:1,2.0:2} - - --- !query 9140 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 9140 schema -struct> --- !query 9140 output -{1.0:"1",2.0:"2"} - - --- !query 9141 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 9141 schema -struct<> --- !query 9141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9142 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 9142 schema -struct<> --- !query 9142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9143 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9143 schema -struct<> --- !query 9143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9144 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9144 schema -struct<> --- !query 9144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9145 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 9145 schema -struct> --- !query 9145 output -{1.0:1,2.0:2} - - --- !query 9146 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 9146 schema -struct> --- !query 9146 output -{1.0:1,2.0:2} - - --- !query 9147 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 9147 schema -struct> --- !query 9147 output -{1.0:1,2.0:2} - - --- !query 9148 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 9148 schema -struct> --- !query 9148 output -{1.0:1,2.0:2} - - --- !query 9149 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 9149 schema -struct> --- !query 9149 output -{1.0:1.0,2.0:2.0} - - --- !query 9150 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 9150 schema -struct> --- !query 9150 output -{1.0:1.0,2.0:2.0} - - --- !query 9151 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 9151 schema -struct> --- !query 9151 output -{1.0:1,2.0:2} - - --- !query 9152 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 9152 schema -struct> --- !query 9152 output -{1.0:"1",2.0:"2"} - - --- !query 9153 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 9153 schema -struct<> --- !query 9153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9154 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 9154 schema -struct<> --- !query 9154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9155 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9155 schema -struct<> --- !query 9155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9156 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9156 schema -struct<> --- !query 9156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9157 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 9157 schema -struct> --- !query 9157 output -{"1.0":1,"2":2} - - --- !query 9158 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 9158 schema -struct> --- !query 9158 output -{"1.0":1,"2":2} - - --- !query 9159 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 9159 schema -struct> --- !query 9159 output -{"1.0":1,"2":2} - - --- !query 9160 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 9160 schema -struct> --- !query 9160 output -{"1.0":1,"2":2} - - --- !query 9161 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 9161 schema -struct> --- !query 9161 output -{"1.0":1.0,"2":2.0} - - --- !query 9162 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 9162 schema -struct> --- !query 9162 output -{"1.0":1.0,"2":2.0} - - --- !query 9163 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 9163 schema -struct> --- !query 9163 output -{"1.0":1,"2":2} - - --- !query 9164 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 9164 schema -struct> --- !query 9164 output -{"1.0":"1","2":"2"} - - --- !query 9165 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 9165 schema -struct<> --- !query 9165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 9166 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 9166 schema -struct<> --- !query 9166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 9167 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9167 schema -struct<> --- !query 9167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 9168 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9168 schema -struct<> --- !query 9168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 9169 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 9169 schema -struct<> --- !query 9169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9170 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 9170 schema -struct<> --- !query 9170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9171 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 9171 schema -struct<> --- !query 9171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9172 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 9172 schema -struct<> --- !query 9172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9173 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 9173 schema -struct<> --- !query 9173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9174 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 9174 schema -struct<> --- !query 9174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9175 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 9175 schema -struct<> --- !query 9175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9176 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 9176 schema -struct<> --- !query 9176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9177 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 9177 schema -struct<> --- !query 9177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9178 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 9178 schema -struct<> --- !query 9178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9179 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9179 schema -struct<> --- !query 9179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9180 -SELECT map(cast(1 as double), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9180 schema -struct<> --- !query 9180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9181 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 9181 schema -struct<> --- !query 9181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9182 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 9182 schema -struct<> --- !query 9182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9183 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 9183 schema -struct<> --- !query 9183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9184 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 9184 schema -struct<> --- !query 9184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9185 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 9185 schema -struct<> --- !query 9185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9186 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 9186 schema -struct<> --- !query 9186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9187 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 9187 schema -struct<> --- !query 9187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9188 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 9188 schema -struct<> --- !query 9188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9189 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 9189 schema -struct<> --- !query 9189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9190 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 9190 schema -struct<> --- !query 9190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9191 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9191 schema -struct<> --- !query 9191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9192 -SELECT map(cast(1 as double), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9192 schema -struct<> --- !query 9192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9193 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 9193 schema -struct<> --- !query 9193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9194 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 9194 schema -struct<> --- !query 9194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9195 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 9195 schema -struct<> --- !query 9195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9196 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 9196 schema -struct<> --- !query 9196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9197 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 9197 schema -struct<> --- !query 9197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9198 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 9198 schema -struct<> --- !query 9198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9199 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 9199 schema -struct<> --- !query 9199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9200 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 9200 schema -struct<> --- !query 9200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9201 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 9201 schema -struct<> --- !query 9201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9202 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 9202 schema -struct<> --- !query 9202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9203 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9203 schema -struct<> --- !query 9203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9204 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9204 schema -struct<> --- !query 9204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9205 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 9205 schema -struct<> --- !query 9205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9206 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 9206 schema -struct<> --- !query 9206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9207 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 9207 schema -struct<> --- !query 9207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9208 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 9208 schema -struct<> --- !query 9208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9209 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 9209 schema -struct<> --- !query 9209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9210 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 9210 schema -struct<> --- !query 9210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9211 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 9211 schema -struct<> --- !query 9211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9212 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 9212 schema -struct<> --- !query 9212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9213 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 9213 schema -struct<> --- !query 9213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9214 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 9214 schema -struct<> --- !query 9214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9215 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9215 schema -struct<> --- !query 9215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9216 -SELECT map(cast(1 as double), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9216 schema -struct<> --- !query 9216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9217 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 9217 schema -struct> --- !query 9217 output -{1.0:1,2.0:2} - - --- !query 9218 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 9218 schema -struct> --- !query 9218 output -{1.0:1,2.0:2} - - --- !query 9219 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 9219 schema -struct> --- !query 9219 output -{1.0:1,2.0:2} - - --- !query 9220 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 9220 schema -struct> --- !query 9220 output -{1.0:1,2.0:2} - - --- !query 9221 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 9221 schema -struct> --- !query 9221 output -{1.0:1.0,2.0:2.0} - - --- !query 9222 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 9222 schema -struct> --- !query 9222 output -{1.0:1.0,2.0:2.0} - - --- !query 9223 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 9223 schema -struct> --- !query 9223 output -{1.0:1,2.0:2} - - --- !query 9224 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 9224 schema -struct> --- !query 9224 output -{1.0:"1",2.0:"2"} - - --- !query 9225 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 9225 schema -struct<> --- !query 9225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9226 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 9226 schema -struct<> --- !query 9226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9227 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9227 schema -struct<> --- !query 9227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9228 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9228 schema -struct<> --- !query 9228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9229 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 9229 schema -struct> --- !query 9229 output -{1.0:1,2.0:2} - - --- !query 9230 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 9230 schema -struct> --- !query 9230 output -{1.0:1,2.0:2} - - --- !query 9231 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 9231 schema -struct> --- !query 9231 output -{1.0:1,2.0:2} - - --- !query 9232 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 9232 schema -struct> --- !query 9232 output -{1.0:1,2.0:2} - - --- !query 9233 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 9233 schema -struct> --- !query 9233 output -{1.0:1.0,2.0:2.0} - - --- !query 9234 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 9234 schema -struct> --- !query 9234 output -{1.0:1.0,2.0:2.0} - - --- !query 9235 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 9235 schema -struct> --- !query 9235 output -{1.0:1,2.0:2} - - --- !query 9236 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 9236 schema -struct> --- !query 9236 output -{1.0:"1",2.0:"2"} - - --- !query 9237 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 9237 schema -struct<> --- !query 9237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9238 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 9238 schema -struct<> --- !query 9238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9239 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9239 schema -struct<> --- !query 9239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9240 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9240 schema -struct<> --- !query 9240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9241 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 9241 schema -struct> --- !query 9241 output -{1.0:1,2.0:2} - - --- !query 9242 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 9242 schema -struct> --- !query 9242 output -{1.0:1,2.0:2} - - --- !query 9243 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 9243 schema -struct> --- !query 9243 output -{1.0:1,2.0:2} - - --- !query 9244 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 9244 schema -struct> --- !query 9244 output -{1.0:1,2.0:2} - - --- !query 9245 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 9245 schema -struct> --- !query 9245 output -{1.0:1.0,2.0:2.0} - - --- !query 9246 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 9246 schema -struct> --- !query 9246 output -{1.0:1.0,2.0:2.0} - - --- !query 9247 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 9247 schema -struct> --- !query 9247 output -{1.0:1,2.0:2} - - --- !query 9248 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 9248 schema -struct> --- !query 9248 output -{1.0:"1",2.0:"2"} - - --- !query 9249 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 9249 schema -struct<> --- !query 9249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9250 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 9250 schema -struct<> --- !query 9250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9251 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9251 schema -struct<> --- !query 9251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9252 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9252 schema -struct<> --- !query 9252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9253 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 9253 schema -struct> --- !query 9253 output -{1.0:1,2.0:2} - - --- !query 9254 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 9254 schema -struct> --- !query 9254 output -{1.0:1,2.0:2} - - --- !query 9255 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 9255 schema -struct> --- !query 9255 output -{1.0:1,2.0:2} - - --- !query 9256 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 9256 schema -struct> --- !query 9256 output -{1.0:1,2.0:2} - - --- !query 9257 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 9257 schema -struct> --- !query 9257 output -{1.0:1.0,2.0:2.0} - - --- !query 9258 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 9258 schema -struct> --- !query 9258 output -{1.0:1.0,2.0:2.0} - - --- !query 9259 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 9259 schema -struct> --- !query 9259 output -{1.0:1,2.0:2} - - --- !query 9260 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 9260 schema -struct> --- !query 9260 output -{1.0:"1",2.0:"2"} - - --- !query 9261 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 9261 schema -struct<> --- !query 9261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9262 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 9262 schema -struct<> --- !query 9262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9263 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9263 schema -struct<> --- !query 9263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9264 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9264 schema -struct<> --- !query 9264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9265 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 9265 schema -struct> --- !query 9265 output -{1.0:1,2.0:2} - - --- !query 9266 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 9266 schema -struct> --- !query 9266 output -{1.0:1,2.0:2} - - --- !query 9267 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 9267 schema -struct> --- !query 9267 output -{1.0:1,2.0:2} - - --- !query 9268 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 9268 schema -struct> --- !query 9268 output -{1.0:1,2.0:2} - - --- !query 9269 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 9269 schema -struct> --- !query 9269 output -{1.0:1.0,2.0:2.0} - - --- !query 9270 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 9270 schema -struct> --- !query 9270 output -{1.0:1.0,2.0:2.0} - - --- !query 9271 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 9271 schema -struct> --- !query 9271 output -{1.0:1,2.0:2} - - --- !query 9272 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 9272 schema -struct> --- !query 9272 output -{1.0:"1",2.0:"2"} - - --- !query 9273 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 9273 schema -struct<> --- !query 9273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9274 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 9274 schema -struct<> --- !query 9274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9275 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9275 schema -struct<> --- !query 9275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9276 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9276 schema -struct<> --- !query 9276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9277 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 9277 schema -struct> --- !query 9277 output -{1.0:1,2.0:2} - - --- !query 9278 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 9278 schema -struct> --- !query 9278 output -{1.0:1,2.0:2} - - --- !query 9279 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 9279 schema -struct> --- !query 9279 output -{1.0:1,2.0:2} - - --- !query 9280 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 9280 schema -struct> --- !query 9280 output -{1.0:1,2.0:2} - - --- !query 9281 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 9281 schema -struct> --- !query 9281 output -{1.0:1.0,2.0:2.0} - - --- !query 9282 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 9282 schema -struct> --- !query 9282 output -{1.0:1.0,2.0:2.0} - - --- !query 9283 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 9283 schema -struct> --- !query 9283 output -{1.0:1,2.0:2} - - --- !query 9284 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 9284 schema -struct> --- !query 9284 output -{1.0:"1",2.0:"2"} - - --- !query 9285 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 9285 schema -struct<> --- !query 9285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9286 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 9286 schema -struct<> --- !query 9286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9287 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9287 schema -struct<> --- !query 9287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9288 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9288 schema -struct<> --- !query 9288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9289 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 9289 schema -struct> --- !query 9289 output -{1.0:1,2.0:2} - - --- !query 9290 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 9290 schema -struct> --- !query 9290 output -{1.0:1,2.0:2} - - --- !query 9291 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 9291 schema -struct> --- !query 9291 output -{1.0:1,2.0:2} - - --- !query 9292 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 9292 schema -struct> --- !query 9292 output -{1.0:1,2.0:2} - - --- !query 9293 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 9293 schema -struct> --- !query 9293 output -{1.0:1.0,2.0:2.0} - - --- !query 9294 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 9294 schema -struct> --- !query 9294 output -{1.0:1.0,2.0:2.0} - - --- !query 9295 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 9295 schema -struct> --- !query 9295 output -{1.0:1,2.0:2} - - --- !query 9296 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 9296 schema -struct> --- !query 9296 output -{1.0:"1",2.0:"2"} - - --- !query 9297 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 9297 schema -struct<> --- !query 9297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9298 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 9298 schema -struct<> --- !query 9298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9299 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9299 schema -struct<> --- !query 9299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9300 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9300 schema -struct<> --- !query 9300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9301 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 9301 schema -struct> --- !query 9301 output -{"1.0":1,"2":2} - - --- !query 9302 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 9302 schema -struct> --- !query 9302 output -{"1.0":1,"2":2} - - --- !query 9303 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 9303 schema -struct> --- !query 9303 output -{"1.0":1,"2":2} - - --- !query 9304 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 9304 schema -struct> --- !query 9304 output -{"1.0":1,"2":2} - - --- !query 9305 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 9305 schema -struct> --- !query 9305 output -{"1.0":1.0,"2":2.0} - - --- !query 9306 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 9306 schema -struct> --- !query 9306 output -{"1.0":1.0,"2":2.0} - - --- !query 9307 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 9307 schema -struct> --- !query 9307 output -{"1.0":1,"2":2} - - --- !query 9308 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 9308 schema -struct> --- !query 9308 output -{"1.0":"1","2":"2"} - - --- !query 9309 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 9309 schema -struct<> --- !query 9309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 9310 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 9310 schema -struct<> --- !query 9310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 9311 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9311 schema -struct<> --- !query 9311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 9312 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9312 schema -struct<> --- !query 9312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 9313 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 9313 schema -struct<> --- !query 9313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9314 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 9314 schema -struct<> --- !query 9314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9315 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 9315 schema -struct<> --- !query 9315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9316 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 9316 schema -struct<> --- !query 9316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9317 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 9317 schema -struct<> --- !query 9317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9318 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 9318 schema -struct<> --- !query 9318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9319 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 9319 schema -struct<> --- !query 9319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9320 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 9320 schema -struct<> --- !query 9320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9321 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 9321 schema -struct<> --- !query 9321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9322 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 9322 schema -struct<> --- !query 9322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9323 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9323 schema -struct<> --- !query 9323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9324 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9324 schema -struct<> --- !query 9324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9325 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 9325 schema -struct<> --- !query 9325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9326 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 9326 schema -struct<> --- !query 9326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9327 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 9327 schema -struct<> --- !query 9327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9328 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 9328 schema -struct<> --- !query 9328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9329 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 9329 schema -struct<> --- !query 9329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9330 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 9330 schema -struct<> --- !query 9330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9331 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 9331 schema -struct<> --- !query 9331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9332 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 9332 schema -struct<> --- !query 9332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9333 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 9333 schema -struct<> --- !query 9333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9334 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 9334 schema -struct<> --- !query 9334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9335 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9335 schema -struct<> --- !query 9335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9336 -SELECT map(cast(1 as double), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9336 schema -struct<> --- !query 9336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9337 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 9337 schema -struct<> --- !query 9337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9338 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 9338 schema -struct<> --- !query 9338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9339 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 9339 schema -struct<> --- !query 9339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9340 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 9340 schema -struct<> --- !query 9340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9341 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 9341 schema -struct<> --- !query 9341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9342 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 9342 schema -struct<> --- !query 9342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9343 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 9343 schema -struct<> --- !query 9343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9344 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 9344 schema -struct<> --- !query 9344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9345 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 9345 schema -struct<> --- !query 9345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9346 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 9346 schema -struct<> --- !query 9346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9347 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9347 schema -struct<> --- !query 9347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9348 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9348 schema -struct<> --- !query 9348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9349 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 9349 schema -struct<> --- !query 9349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9350 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 9350 schema -struct<> --- !query 9350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9351 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 9351 schema -struct<> --- !query 9351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9352 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 9352 schema -struct<> --- !query 9352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9353 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 9353 schema -struct<> --- !query 9353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9354 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 9354 schema -struct<> --- !query 9354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9355 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 9355 schema -struct<> --- !query 9355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9356 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 9356 schema -struct<> --- !query 9356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9357 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 9357 schema -struct<> --- !query 9357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9358 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 9358 schema -struct<> --- !query 9358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9359 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9359 schema -struct<> --- !query 9359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9360 -SELECT map(cast(1 as double), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9360 schema -struct<> --- !query 9360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9361 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 9361 schema -struct> --- !query 9361 output -{1.0:1.0,2.0:2.0} - - --- !query 9362 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 9362 schema -struct> --- !query 9362 output -{1.0:1.0,2.0:2.0} - - --- !query 9363 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 9363 schema -struct> --- !query 9363 output -{1.0:1.0,2.0:2.0} - - --- !query 9364 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 9364 schema -struct> --- !query 9364 output -{1.0:1.0,2.0:2.0} - - --- !query 9365 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 9365 schema -struct> --- !query 9365 output -{1.0:1.0,2.0:2.0} - - --- !query 9366 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 9366 schema -struct> --- !query 9366 output -{1.0:1.0,2.0:2.0} - - --- !query 9367 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 9367 schema -struct> --- !query 9367 output -{1.0:1.0,2.0:2.0} - - --- !query 9368 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 9368 schema -struct> --- !query 9368 output -{1.0:"1.0",2.0:"2"} - - --- !query 9369 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 9369 schema -struct<> --- !query 9369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9370 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 9370 schema -struct<> --- !query 9370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9371 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9371 schema -struct<> --- !query 9371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9372 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9372 schema -struct<> --- !query 9372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9373 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 9373 schema -struct> --- !query 9373 output -{1.0:1.0,2.0:2.0} - - --- !query 9374 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 9374 schema -struct> --- !query 9374 output -{1.0:1.0,2.0:2.0} - - --- !query 9375 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 9375 schema -struct> --- !query 9375 output -{1.0:1.0,2.0:2.0} - - --- !query 9376 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 9376 schema -struct> --- !query 9376 output -{1.0:1.0,2.0:2.0} - - --- !query 9377 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 9377 schema -struct> --- !query 9377 output -{1.0:1.0,2.0:2.0} - - --- !query 9378 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 9378 schema -struct> --- !query 9378 output -{1.0:1.0,2.0:2.0} - - --- !query 9379 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 9379 schema -struct> --- !query 9379 output -{1.0:1.0,2.0:2.0} - - --- !query 9380 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 9380 schema -struct> --- !query 9380 output -{1.0:"1.0",2.0:"2"} - - --- !query 9381 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 9381 schema -struct<> --- !query 9381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9382 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 9382 schema -struct<> --- !query 9382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9383 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9383 schema -struct<> --- !query 9383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9384 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9384 schema -struct<> --- !query 9384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9385 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 9385 schema -struct> --- !query 9385 output -{1.0:1.0,2.0:2.0} - - --- !query 9386 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 9386 schema -struct> --- !query 9386 output -{1.0:1.0,2.0:2.0} - - --- !query 9387 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 9387 schema -struct> --- !query 9387 output -{1.0:1.0,2.0:2.0} - - --- !query 9388 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 9388 schema -struct> --- !query 9388 output -{1.0:1.0,2.0:2.0} - - --- !query 9389 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 9389 schema -struct> --- !query 9389 output -{1.0:1.0,2.0:2.0} - - --- !query 9390 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 9390 schema -struct> --- !query 9390 output -{1.0:1.0,2.0:2.0} - - --- !query 9391 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 9391 schema -struct> --- !query 9391 output -{1.0:1.0,2.0:2.0} - - --- !query 9392 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 9392 schema -struct> --- !query 9392 output -{1.0:"1.0",2.0:"2"} - - --- !query 9393 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 9393 schema -struct<> --- !query 9393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9394 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 9394 schema -struct<> --- !query 9394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9395 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9395 schema -struct<> --- !query 9395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9396 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9396 schema -struct<> --- !query 9396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9397 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 9397 schema -struct> --- !query 9397 output -{1.0:1.0,2.0:2.0} - - --- !query 9398 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 9398 schema -struct> --- !query 9398 output -{1.0:1.0,2.0:2.0} - - --- !query 9399 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 9399 schema -struct> --- !query 9399 output -{1.0:1.0,2.0:2.0} - - --- !query 9400 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 9400 schema -struct> --- !query 9400 output -{1.0:1.0,2.0:2.0} - - --- !query 9401 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 9401 schema -struct> --- !query 9401 output -{1.0:1.0,2.0:2.0} - - --- !query 9402 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 9402 schema -struct> --- !query 9402 output -{1.0:1.0,2.0:2.0} - - --- !query 9403 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 9403 schema -struct> --- !query 9403 output -{1.0:1.0,2.0:2.0} - - --- !query 9404 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 9404 schema -struct> --- !query 9404 output -{1.0:"1.0",2.0:"2"} - - --- !query 9405 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 9405 schema -struct<> --- !query 9405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9406 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 9406 schema -struct<> --- !query 9406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9407 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9407 schema -struct<> --- !query 9407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9408 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9408 schema -struct<> --- !query 9408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9409 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 9409 schema -struct> --- !query 9409 output -{1.0:1.0,2.0:2.0} - - --- !query 9410 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 9410 schema -struct> --- !query 9410 output -{1.0:1.0,2.0:2.0} - - --- !query 9411 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 9411 schema -struct> --- !query 9411 output -{1.0:1.0,2.0:2.0} - - --- !query 9412 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 9412 schema -struct> --- !query 9412 output -{1.0:1.0,2.0:2.0} - - --- !query 9413 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 9413 schema -struct> --- !query 9413 output -{1.0:1.0,2.0:2.0} - - --- !query 9414 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 9414 schema -struct> --- !query 9414 output -{1.0:1.0,2.0:2.0} - - --- !query 9415 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 9415 schema -struct> --- !query 9415 output -{1.0:1.0,2.0:2.0} - - --- !query 9416 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 9416 schema -struct> --- !query 9416 output -{1.0:"1.0",2.0:"2"} - - --- !query 9417 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 9417 schema -struct<> --- !query 9417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9418 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 9418 schema -struct<> --- !query 9418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9419 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9419 schema -struct<> --- !query 9419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9420 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9420 schema -struct<> --- !query 9420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9421 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 9421 schema -struct> --- !query 9421 output -{1.0:1.0,2.0:2.0} - - --- !query 9422 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 9422 schema -struct> --- !query 9422 output -{1.0:1.0,2.0:2.0} - - --- !query 9423 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 9423 schema -struct> --- !query 9423 output -{1.0:1.0,2.0:2.0} - - --- !query 9424 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 9424 schema -struct> --- !query 9424 output -{1.0:1.0,2.0:2.0} - - --- !query 9425 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 9425 schema -struct> --- !query 9425 output -{1.0:1.0,2.0:2.0} - - --- !query 9426 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 9426 schema -struct> --- !query 9426 output -{1.0:1.0,2.0:2.0} - - --- !query 9427 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 9427 schema -struct> --- !query 9427 output -{1.0:1.0,2.0:2.0} - - --- !query 9428 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 9428 schema -struct> --- !query 9428 output -{1.0:"1.0",2.0:"2"} - - --- !query 9429 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 9429 schema -struct<> --- !query 9429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9430 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 9430 schema -struct<> --- !query 9430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9431 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9431 schema -struct<> --- !query 9431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9432 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9432 schema -struct<> --- !query 9432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9433 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 9433 schema -struct> --- !query 9433 output -{1.0:1.0,2.0:2.0} - - --- !query 9434 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 9434 schema -struct> --- !query 9434 output -{1.0:1.0,2.0:2.0} - - --- !query 9435 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 9435 schema -struct> --- !query 9435 output -{1.0:1.0,2.0:2.0} - - --- !query 9436 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 9436 schema -struct> --- !query 9436 output -{1.0:1.0,2.0:2.0} - - --- !query 9437 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 9437 schema -struct> --- !query 9437 output -{1.0:1.0,2.0:2.0} - - --- !query 9438 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 9438 schema -struct> --- !query 9438 output -{1.0:1.0,2.0:2.0} - - --- !query 9439 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 9439 schema -struct> --- !query 9439 output -{1.0:1.0,2.0:2.0} - - --- !query 9440 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 9440 schema -struct> --- !query 9440 output -{1.0:"1.0",2.0:"2"} - - --- !query 9441 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 9441 schema -struct<> --- !query 9441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9442 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 9442 schema -struct<> --- !query 9442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9443 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9443 schema -struct<> --- !query 9443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9444 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9444 schema -struct<> --- !query 9444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9445 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 9445 schema -struct> --- !query 9445 output -{"1.0":1.0,"2":2.0} - - --- !query 9446 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 9446 schema -struct> --- !query 9446 output -{"1.0":1.0,"2":2.0} - - --- !query 9447 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 9447 schema -struct> --- !query 9447 output -{"1.0":1.0,"2":2.0} - - --- !query 9448 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 9448 schema -struct> --- !query 9448 output -{"1.0":1.0,"2":2.0} - - --- !query 9449 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 9449 schema -struct> --- !query 9449 output -{"1.0":1.0,"2":2.0} - - --- !query 9450 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 9450 schema -struct> --- !query 9450 output -{"1.0":1.0,"2":2.0} - - --- !query 9451 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 9451 schema -struct> --- !query 9451 output -{"1.0":1.0,"2":2.0} - - --- !query 9452 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 9452 schema -struct> --- !query 9452 output -{"1.0":"1.0","2":"2"} - - --- !query 9453 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 9453 schema -struct<> --- !query 9453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 9454 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 9454 schema -struct<> --- !query 9454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 9455 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9455 schema -struct<> --- !query 9455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 9456 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9456 schema -struct<> --- !query 9456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 9457 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 9457 schema -struct<> --- !query 9457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9458 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 9458 schema -struct<> --- !query 9458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9459 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 9459 schema -struct<> --- !query 9459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9460 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 9460 schema -struct<> --- !query 9460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9461 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 9461 schema -struct<> --- !query 9461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9462 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 9462 schema -struct<> --- !query 9462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9463 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 9463 schema -struct<> --- !query 9463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9464 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 9464 schema -struct<> --- !query 9464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9465 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 9465 schema -struct<> --- !query 9465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9466 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 9466 schema -struct<> --- !query 9466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9467 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9467 schema -struct<> --- !query 9467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9468 -SELECT map(cast(1 as double), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9468 schema -struct<> --- !query 9468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9469 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 9469 schema -struct<> --- !query 9469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9470 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 9470 schema -struct<> --- !query 9470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9471 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 9471 schema -struct<> --- !query 9471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9472 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 9472 schema -struct<> --- !query 9472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9473 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 9473 schema -struct<> --- !query 9473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9474 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 9474 schema -struct<> --- !query 9474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9475 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 9475 schema -struct<> --- !query 9475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9476 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 9476 schema -struct<> --- !query 9476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9477 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 9477 schema -struct<> --- !query 9477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9478 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 9478 schema -struct<> --- !query 9478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9479 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9479 schema -struct<> --- !query 9479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9480 -SELECT map(cast(1 as double), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9480 schema -struct<> --- !query 9480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9481 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 9481 schema -struct<> --- !query 9481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9482 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 9482 schema -struct<> --- !query 9482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9483 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 9483 schema -struct<> --- !query 9483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9484 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 9484 schema -struct<> --- !query 9484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9485 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 9485 schema -struct<> --- !query 9485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9486 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 9486 schema -struct<> --- !query 9486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9487 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 9487 schema -struct<> --- !query 9487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9488 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 9488 schema -struct<> --- !query 9488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9489 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 9489 schema -struct<> --- !query 9489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9490 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 9490 schema -struct<> --- !query 9490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9491 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9491 schema -struct<> --- !query 9491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9492 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9492 schema -struct<> --- !query 9492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9493 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 9493 schema -struct<> --- !query 9493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9494 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 9494 schema -struct<> --- !query 9494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9495 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 9495 schema -struct<> --- !query 9495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9496 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 9496 schema -struct<> --- !query 9496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9497 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 9497 schema -struct<> --- !query 9497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9498 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 9498 schema -struct<> --- !query 9498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9499 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 9499 schema -struct<> --- !query 9499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9500 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 9500 schema -struct<> --- !query 9500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9501 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 9501 schema -struct<> --- !query 9501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9502 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 9502 schema -struct<> --- !query 9502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9503 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9503 schema -struct<> --- !query 9503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9504 -SELECT map(cast(1 as double), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9504 schema -struct<> --- !query 9504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9505 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 9505 schema -struct> --- !query 9505 output -{1.0:1.0,2.0:2.0} - - --- !query 9506 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 9506 schema -struct> --- !query 9506 output -{1.0:1.0,2.0:2.0} - - --- !query 9507 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 9507 schema -struct> --- !query 9507 output -{1.0:1.0,2.0:2.0} - - --- !query 9508 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 9508 schema -struct> --- !query 9508 output -{1.0:1.0,2.0:2.0} - - --- !query 9509 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 9509 schema -struct> --- !query 9509 output -{1.0:1.0,2.0:2.0} - - --- !query 9510 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 9510 schema -struct> --- !query 9510 output -{1.0:1.0,2.0:2.0} - - --- !query 9511 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 9511 schema -struct> --- !query 9511 output -{1.0:1.0,2.0:2.0} - - --- !query 9512 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 9512 schema -struct> --- !query 9512 output -{1.0:"1.0",2.0:"2"} - - --- !query 9513 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 9513 schema -struct<> --- !query 9513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9514 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 9514 schema -struct<> --- !query 9514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9515 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9515 schema -struct<> --- !query 9515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9516 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9516 schema -struct<> --- !query 9516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9517 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 9517 schema -struct> --- !query 9517 output -{1.0:1.0,2.0:2.0} - - --- !query 9518 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 9518 schema -struct> --- !query 9518 output -{1.0:1.0,2.0:2.0} - - --- !query 9519 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 9519 schema -struct> --- !query 9519 output -{1.0:1.0,2.0:2.0} - - --- !query 9520 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 9520 schema -struct> --- !query 9520 output -{1.0:1.0,2.0:2.0} - - --- !query 9521 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 9521 schema -struct> --- !query 9521 output -{1.0:1.0,2.0:2.0} - - --- !query 9522 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 9522 schema -struct> --- !query 9522 output -{1.0:1.0,2.0:2.0} - - --- !query 9523 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 9523 schema -struct> --- !query 9523 output -{1.0:1.0,2.0:2.0} - - --- !query 9524 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 9524 schema -struct> --- !query 9524 output -{1.0:"1.0",2.0:"2"} - - --- !query 9525 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 9525 schema -struct<> --- !query 9525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9526 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 9526 schema -struct<> --- !query 9526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9527 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9527 schema -struct<> --- !query 9527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9528 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9528 schema -struct<> --- !query 9528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9529 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 9529 schema -struct> --- !query 9529 output -{1.0:1.0,2.0:2.0} - - --- !query 9530 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 9530 schema -struct> --- !query 9530 output -{1.0:1.0,2.0:2.0} - - --- !query 9531 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 9531 schema -struct> --- !query 9531 output -{1.0:1.0,2.0:2.0} - - --- !query 9532 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 9532 schema -struct> --- !query 9532 output -{1.0:1.0,2.0:2.0} - - --- !query 9533 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 9533 schema -struct> --- !query 9533 output -{1.0:1.0,2.0:2.0} - - --- !query 9534 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 9534 schema -struct> --- !query 9534 output -{1.0:1.0,2.0:2.0} - - --- !query 9535 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 9535 schema -struct> --- !query 9535 output -{1.0:1.0,2.0:2.0} - - --- !query 9536 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 9536 schema -struct> --- !query 9536 output -{1.0:"1.0",2.0:"2"} - - --- !query 9537 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 9537 schema -struct<> --- !query 9537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9538 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 9538 schema -struct<> --- !query 9538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9539 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9539 schema -struct<> --- !query 9539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9540 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9540 schema -struct<> --- !query 9540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9541 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 9541 schema -struct> --- !query 9541 output -{1.0:1.0,2.0:2.0} - - --- !query 9542 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 9542 schema -struct> --- !query 9542 output -{1.0:1.0,2.0:2.0} - - --- !query 9543 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 9543 schema -struct> --- !query 9543 output -{1.0:1.0,2.0:2.0} - - --- !query 9544 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 9544 schema -struct> --- !query 9544 output -{1.0:1.0,2.0:2.0} - - --- !query 9545 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 9545 schema -struct> --- !query 9545 output -{1.0:1.0,2.0:2.0} - - --- !query 9546 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 9546 schema -struct> --- !query 9546 output -{1.0:1.0,2.0:2.0} - - --- !query 9547 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 9547 schema -struct> --- !query 9547 output -{1.0:1.0,2.0:2.0} - - --- !query 9548 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 9548 schema -struct> --- !query 9548 output -{1.0:"1.0",2.0:"2"} - - --- !query 9549 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 9549 schema -struct<> --- !query 9549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9550 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 9550 schema -struct<> --- !query 9550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9551 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9551 schema -struct<> --- !query 9551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9552 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9552 schema -struct<> --- !query 9552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9553 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 9553 schema -struct> --- !query 9553 output -{1.0:1.0,2.0:2.0} - - --- !query 9554 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 9554 schema -struct> --- !query 9554 output -{1.0:1.0,2.0:2.0} - - --- !query 9555 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 9555 schema -struct> --- !query 9555 output -{1.0:1.0,2.0:2.0} - - --- !query 9556 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 9556 schema -struct> --- !query 9556 output -{1.0:1.0,2.0:2.0} - - --- !query 9557 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 9557 schema -struct> --- !query 9557 output -{1.0:1.0,2.0:2.0} - - --- !query 9558 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 9558 schema -struct> --- !query 9558 output -{1.0:1.0,2.0:2.0} - - --- !query 9559 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 9559 schema -struct> --- !query 9559 output -{1.0:1.0,2.0:2.0} - - --- !query 9560 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 9560 schema -struct> --- !query 9560 output -{1.0:"1.0",2.0:"2"} - - --- !query 9561 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 9561 schema -struct<> --- !query 9561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9562 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 9562 schema -struct<> --- !query 9562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9563 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9563 schema -struct<> --- !query 9563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9564 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9564 schema -struct<> --- !query 9564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9565 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 9565 schema -struct> --- !query 9565 output -{1.0:1.0,2.0:2.0} - - --- !query 9566 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 9566 schema -struct> --- !query 9566 output -{1.0:1.0,2.0:2.0} - - --- !query 9567 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 9567 schema -struct> --- !query 9567 output -{1.0:1.0,2.0:2.0} - - --- !query 9568 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 9568 schema -struct> --- !query 9568 output -{1.0:1.0,2.0:2.0} - - --- !query 9569 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 9569 schema -struct> --- !query 9569 output -{1.0:1.0,2.0:2.0} - - --- !query 9570 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 9570 schema -struct> --- !query 9570 output -{1.0:1.0,2.0:2.0} - - --- !query 9571 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 9571 schema -struct> --- !query 9571 output -{1.0:1.0,2.0:2.0} - - --- !query 9572 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 9572 schema -struct> --- !query 9572 output -{1.0:"1.0",2.0:"2"} - - --- !query 9573 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 9573 schema -struct<> --- !query 9573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9574 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 9574 schema -struct<> --- !query 9574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9575 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9575 schema -struct<> --- !query 9575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9576 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9576 schema -struct<> --- !query 9576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9577 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 9577 schema -struct> --- !query 9577 output -{1.0:1.0,2.0:2.0} - - --- !query 9578 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 9578 schema -struct> --- !query 9578 output -{1.0:1.0,2.0:2.0} - - --- !query 9579 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 9579 schema -struct> --- !query 9579 output -{1.0:1.0,2.0:2.0} - - --- !query 9580 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 9580 schema -struct> --- !query 9580 output -{1.0:1.0,2.0:2.0} - - --- !query 9581 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 9581 schema -struct> --- !query 9581 output -{1.0:1.0,2.0:2.0} - - --- !query 9582 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 9582 schema -struct> --- !query 9582 output -{1.0:1.0,2.0:2.0} - - --- !query 9583 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 9583 schema -struct> --- !query 9583 output -{1.0:1.0,2.0:2.0} - - --- !query 9584 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 9584 schema -struct> --- !query 9584 output -{1.0:"1.0",2.0:"2"} - - --- !query 9585 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 9585 schema -struct<> --- !query 9585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9586 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 9586 schema -struct<> --- !query 9586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9587 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9587 schema -struct<> --- !query 9587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9588 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9588 schema -struct<> --- !query 9588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9589 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 9589 schema -struct> --- !query 9589 output -{"1.0":1.0,"2":2.0} - - --- !query 9590 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 9590 schema -struct> --- !query 9590 output -{"1.0":1.0,"2":2.0} - - --- !query 9591 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 9591 schema -struct> --- !query 9591 output -{"1.0":1.0,"2":2.0} - - --- !query 9592 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 9592 schema -struct> --- !query 9592 output -{"1.0":1.0,"2":2.0} - - --- !query 9593 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 9593 schema -struct> --- !query 9593 output -{"1.0":1.0,"2":2.0} - - --- !query 9594 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 9594 schema -struct> --- !query 9594 output -{"1.0":1.0,"2":2.0} - - --- !query 9595 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 9595 schema -struct> --- !query 9595 output -{"1.0":1.0,"2":2.0} - - --- !query 9596 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 9596 schema -struct> --- !query 9596 output -{"1.0":"1.0","2":"2"} - - --- !query 9597 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 9597 schema -struct<> --- !query 9597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9598 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 9598 schema -struct<> --- !query 9598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9599 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9599 schema -struct<> --- !query 9599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9600 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9600 schema -struct<> --- !query 9600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9601 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 9601 schema -struct<> --- !query 9601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9602 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 9602 schema -struct<> --- !query 9602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9603 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 9603 schema -struct<> --- !query 9603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9604 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 9604 schema -struct<> --- !query 9604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9605 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 9605 schema -struct<> --- !query 9605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9606 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 9606 schema -struct<> --- !query 9606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9607 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 9607 schema -struct<> --- !query 9607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9608 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 9608 schema -struct<> --- !query 9608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9609 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 9609 schema -struct<> --- !query 9609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9610 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 9610 schema -struct<> --- !query 9610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9611 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9611 schema -struct<> --- !query 9611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9612 -SELECT map(cast(1 as double), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9612 schema -struct<> --- !query 9612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9613 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 9613 schema -struct<> --- !query 9613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9614 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 9614 schema -struct<> --- !query 9614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9615 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 9615 schema -struct<> --- !query 9615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9616 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 9616 schema -struct<> --- !query 9616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9617 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 9617 schema -struct<> --- !query 9617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9618 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 9618 schema -struct<> --- !query 9618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9619 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 9619 schema -struct<> --- !query 9619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9620 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 9620 schema -struct<> --- !query 9620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9621 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 9621 schema -struct<> --- !query 9621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9622 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 9622 schema -struct<> --- !query 9622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9623 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9623 schema -struct<> --- !query 9623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9624 -SELECT map(cast(1 as double), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9624 schema -struct<> --- !query 9624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9625 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 9625 schema -struct<> --- !query 9625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9626 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 9626 schema -struct<> --- !query 9626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9627 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 9627 schema -struct<> --- !query 9627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9628 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 9628 schema -struct<> --- !query 9628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9629 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 9629 schema -struct<> --- !query 9629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9630 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 9630 schema -struct<> --- !query 9630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9631 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 9631 schema -struct<> --- !query 9631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9632 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 9632 schema -struct<> --- !query 9632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9633 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 9633 schema -struct<> --- !query 9633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9634 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 9634 schema -struct<> --- !query 9634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9635 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9635 schema -struct<> --- !query 9635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9636 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9636 schema -struct<> --- !query 9636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9637 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 9637 schema -struct<> --- !query 9637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9638 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 9638 schema -struct<> --- !query 9638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9639 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 9639 schema -struct<> --- !query 9639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9640 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 9640 schema -struct<> --- !query 9640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9641 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 9641 schema -struct<> --- !query 9641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9642 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 9642 schema -struct<> --- !query 9642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9643 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 9643 schema -struct<> --- !query 9643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9644 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 9644 schema -struct<> --- !query 9644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9645 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 9645 schema -struct<> --- !query 9645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9646 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 9646 schema -struct<> --- !query 9646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9647 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9647 schema -struct<> --- !query 9647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9648 -SELECT map(cast(1 as double), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9648 schema -struct<> --- !query 9648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9649 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 9649 schema -struct> --- !query 9649 output -{1.0:1,2.0:2} - - --- !query 9650 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 9650 schema -struct> --- !query 9650 output -{1.0:1,2.0:2} - - --- !query 9651 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 9651 schema -struct> --- !query 9651 output -{1.0:1,2.0:2} - - --- !query 9652 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 9652 schema -struct> --- !query 9652 output -{1.0:1,2.0:2} - - --- !query 9653 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 9653 schema -struct> --- !query 9653 output -{1.0:1.0,2.0:2.0} - - --- !query 9654 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 9654 schema -struct> --- !query 9654 output -{1.0:1.0,2.0:2.0} - - --- !query 9655 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 9655 schema -struct> --- !query 9655 output -{1.0:1,2.0:2} - - --- !query 9656 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 9656 schema -struct> --- !query 9656 output -{1.0:"1",2.0:"2"} - - --- !query 9657 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 9657 schema -struct<> --- !query 9657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9658 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 9658 schema -struct<> --- !query 9658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9659 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9659 schema -struct<> --- !query 9659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9660 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9660 schema -struct<> --- !query 9660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9661 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 9661 schema -struct> --- !query 9661 output -{1.0:1,2.0:2} - - --- !query 9662 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 9662 schema -struct> --- !query 9662 output -{1.0:1,2.0:2} - - --- !query 9663 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 9663 schema -struct> --- !query 9663 output -{1.0:1,2.0:2} - - --- !query 9664 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 9664 schema -struct> --- !query 9664 output -{1.0:1,2.0:2} - - --- !query 9665 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 9665 schema -struct> --- !query 9665 output -{1.0:1.0,2.0:2.0} - - --- !query 9666 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 9666 schema -struct> --- !query 9666 output -{1.0:1.0,2.0:2.0} - - --- !query 9667 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 9667 schema -struct> --- !query 9667 output -{1.0:1,2.0:2} - - --- !query 9668 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 9668 schema -struct> --- !query 9668 output -{1.0:"1",2.0:"2"} - - --- !query 9669 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 9669 schema -struct<> --- !query 9669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9670 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 9670 schema -struct<> --- !query 9670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9671 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9671 schema -struct<> --- !query 9671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9672 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9672 schema -struct<> --- !query 9672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9673 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 9673 schema -struct> --- !query 9673 output -{1.0:1,2.0:2} - - --- !query 9674 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 9674 schema -struct> --- !query 9674 output -{1.0:1,2.0:2} - - --- !query 9675 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 9675 schema -struct> --- !query 9675 output -{1.0:1,2.0:2} - - --- !query 9676 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 9676 schema -struct> --- !query 9676 output -{1.0:1,2.0:2} - - --- !query 9677 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 9677 schema -struct> --- !query 9677 output -{1.0:1.0,2.0:2.0} - - --- !query 9678 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 9678 schema -struct> --- !query 9678 output -{1.0:1.0,2.0:2.0} - - --- !query 9679 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 9679 schema -struct> --- !query 9679 output -{1.0:1,2.0:2} - - --- !query 9680 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 9680 schema -struct> --- !query 9680 output -{1.0:"1",2.0:"2"} - - --- !query 9681 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 9681 schema -struct<> --- !query 9681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9682 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 9682 schema -struct<> --- !query 9682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9683 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9683 schema -struct<> --- !query 9683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9684 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9684 schema -struct<> --- !query 9684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9685 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 9685 schema -struct> --- !query 9685 output -{1.0:1,2.0:2} - - --- !query 9686 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 9686 schema -struct> --- !query 9686 output -{1.0:1,2.0:2} - - --- !query 9687 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 9687 schema -struct> --- !query 9687 output -{1.0:1,2.0:2} - - --- !query 9688 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 9688 schema -struct> --- !query 9688 output -{1.0:1,2.0:2} - - --- !query 9689 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 9689 schema -struct> --- !query 9689 output -{1.0:1.0,2.0:2.0} - - --- !query 9690 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 9690 schema -struct> --- !query 9690 output -{1.0:1.0,2.0:2.0} - - --- !query 9691 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 9691 schema -struct> --- !query 9691 output -{1.0:1,2.0:2} - - --- !query 9692 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 9692 schema -struct> --- !query 9692 output -{1.0:"1",2.0:"2"} - - --- !query 9693 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 9693 schema -struct<> --- !query 9693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9694 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 9694 schema -struct<> --- !query 9694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9695 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9695 schema -struct<> --- !query 9695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9696 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9696 schema -struct<> --- !query 9696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9697 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 9697 schema -struct> --- !query 9697 output -{1.0:1,2.0:2} - - --- !query 9698 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 9698 schema -struct> --- !query 9698 output -{1.0:1,2.0:2} - - --- !query 9699 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 9699 schema -struct> --- !query 9699 output -{1.0:1,2.0:2} - - --- !query 9700 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 9700 schema -struct> --- !query 9700 output -{1.0:1,2.0:2} - - --- !query 9701 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 9701 schema -struct> --- !query 9701 output -{1.0:1.0,2.0:2.0} - - --- !query 9702 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 9702 schema -struct> --- !query 9702 output -{1.0:1.0,2.0:2.0} - - --- !query 9703 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 9703 schema -struct> --- !query 9703 output -{1.0:1,2.0:2} - - --- !query 9704 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 9704 schema -struct> --- !query 9704 output -{1.0:"1",2.0:"2"} - - --- !query 9705 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 9705 schema -struct<> --- !query 9705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9706 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 9706 schema -struct<> --- !query 9706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9707 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9707 schema -struct<> --- !query 9707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9708 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9708 schema -struct<> --- !query 9708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9709 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 9709 schema -struct> --- !query 9709 output -{1.0:1,2.0:2} - - --- !query 9710 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 9710 schema -struct> --- !query 9710 output -{1.0:1,2.0:2} - - --- !query 9711 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 9711 schema -struct> --- !query 9711 output -{1.0:1,2.0:2} - - --- !query 9712 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 9712 schema -struct> --- !query 9712 output -{1.0:1,2.0:2} - - --- !query 9713 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 9713 schema -struct> --- !query 9713 output -{1.0:1.0,2.0:2.0} - - --- !query 9714 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 9714 schema -struct> --- !query 9714 output -{1.0:1.0,2.0:2.0} - - --- !query 9715 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 9715 schema -struct> --- !query 9715 output -{1.0:1,2.0:2} - - --- !query 9716 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 9716 schema -struct> --- !query 9716 output -{1.0:"1",2.0:"2"} - - --- !query 9717 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 9717 schema -struct<> --- !query 9717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9718 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 9718 schema -struct<> --- !query 9718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9719 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9719 schema -struct<> --- !query 9719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9720 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9720 schema -struct<> --- !query 9720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9721 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 9721 schema -struct> --- !query 9721 output -{1.0:1,2.0:2} - - --- !query 9722 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 9722 schema -struct> --- !query 9722 output -{1.0:1,2.0:2} - - --- !query 9723 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 9723 schema -struct> --- !query 9723 output -{1.0:1,2.0:2} - - --- !query 9724 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 9724 schema -struct> --- !query 9724 output -{1.0:1,2.0:2} - - --- !query 9725 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 9725 schema -struct> --- !query 9725 output -{1.0:1.0,2.0:2.0} - - --- !query 9726 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 9726 schema -struct> --- !query 9726 output -{1.0:1.0,2.0:2.0} - - --- !query 9727 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 9727 schema -struct> --- !query 9727 output -{1.0:1,2.0:2} - - --- !query 9728 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 9728 schema -struct> --- !query 9728 output -{1.0:"1",2.0:"2"} - - --- !query 9729 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 9729 schema -struct<> --- !query 9729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9730 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 9730 schema -struct<> --- !query 9730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9731 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9731 schema -struct<> --- !query 9731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9732 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9732 schema -struct<> --- !query 9732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9733 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 9733 schema -struct> --- !query 9733 output -{"1.0":1,"2":2} - - --- !query 9734 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 9734 schema -struct> --- !query 9734 output -{"1.0":1,"2":2} - - --- !query 9735 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 9735 schema -struct> --- !query 9735 output -{"1.0":1,"2":2} - - --- !query 9736 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 9736 schema -struct> --- !query 9736 output -{"1.0":1,"2":2} - - --- !query 9737 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 9737 schema -struct> --- !query 9737 output -{"1.0":1.0,"2":2.0} - - --- !query 9738 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 9738 schema -struct> --- !query 9738 output -{"1.0":1.0,"2":2.0} - - --- !query 9739 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 9739 schema -struct> --- !query 9739 output -{"1.0":1,"2":2} - - --- !query 9740 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 9740 schema -struct> --- !query 9740 output -{"1.0":"1","2":"2"} - - --- !query 9741 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 9741 schema -struct<> --- !query 9741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 9742 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 9742 schema -struct<> --- !query 9742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 9743 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9743 schema -struct<> --- !query 9743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 9744 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9744 schema -struct<> --- !query 9744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 9745 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 9745 schema -struct<> --- !query 9745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9746 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 9746 schema -struct<> --- !query 9746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9747 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 9747 schema -struct<> --- !query 9747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9748 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 9748 schema -struct<> --- !query 9748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9749 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 9749 schema -struct<> --- !query 9749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9750 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 9750 schema -struct<> --- !query 9750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9751 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 9751 schema -struct<> --- !query 9751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9752 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 9752 schema -struct<> --- !query 9752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9753 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 9753 schema -struct<> --- !query 9753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9754 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 9754 schema -struct<> --- !query 9754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9755 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9755 schema -struct<> --- !query 9755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9756 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9756 schema -struct<> --- !query 9756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9757 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 9757 schema -struct<> --- !query 9757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9758 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 9758 schema -struct<> --- !query 9758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9759 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 9759 schema -struct<> --- !query 9759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9760 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 9760 schema -struct<> --- !query 9760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9761 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 9761 schema -struct<> --- !query 9761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9762 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 9762 schema -struct<> --- !query 9762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9763 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 9763 schema -struct<> --- !query 9763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9764 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 9764 schema -struct<> --- !query 9764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9765 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 9765 schema -struct<> --- !query 9765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9766 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 9766 schema -struct<> --- !query 9766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9767 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9767 schema -struct<> --- !query 9767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9768 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9768 schema -struct<> --- !query 9768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9769 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 9769 schema -struct<> --- !query 9769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9770 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 9770 schema -struct<> --- !query 9770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9771 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 9771 schema -struct<> --- !query 9771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9772 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 9772 schema -struct<> --- !query 9772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9773 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 9773 schema -struct<> --- !query 9773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9774 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 9774 schema -struct<> --- !query 9774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9775 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 9775 schema -struct<> --- !query 9775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9776 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 9776 schema -struct<> --- !query 9776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9777 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 9777 schema -struct<> --- !query 9777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9778 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 9778 schema -struct<> --- !query 9778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9779 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9779 schema -struct<> --- !query 9779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9780 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9780 schema -struct<> --- !query 9780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9781 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 9781 schema -struct<> --- !query 9781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9782 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 9782 schema -struct<> --- !query 9782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9783 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 9783 schema -struct<> --- !query 9783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9784 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 9784 schema -struct<> --- !query 9784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9785 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 9785 schema -struct<> --- !query 9785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9786 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 9786 schema -struct<> --- !query 9786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9787 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 9787 schema -struct<> --- !query 9787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9788 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 9788 schema -struct<> --- !query 9788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9789 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 9789 schema -struct<> --- !query 9789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9790 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 9790 schema -struct<> --- !query 9790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9791 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9791 schema -struct<> --- !query 9791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9792 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9792 schema -struct<> --- !query 9792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9793 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 9793 schema -struct> --- !query 9793 output -{1.0:"1",2.0:"2"} - - --- !query 9794 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 9794 schema -struct> --- !query 9794 output -{1.0:"1",2.0:"2"} - - --- !query 9795 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 9795 schema -struct> --- !query 9795 output -{1.0:"1",2.0:"2"} - - --- !query 9796 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 9796 schema -struct> --- !query 9796 output -{1.0:"1",2.0:"2"} - - --- !query 9797 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 9797 schema -struct> --- !query 9797 output -{1.0:"1",2.0:"2.0"} - - --- !query 9798 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 9798 schema -struct> --- !query 9798 output -{1.0:"1",2.0:"2.0"} - - --- !query 9799 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 9799 schema -struct> --- !query 9799 output -{1.0:"1",2.0:"2"} - - --- !query 9800 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 9800 schema -struct> --- !query 9800 output -{1.0:"1",2.0:"2"} - - --- !query 9801 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 9801 schema -struct<> --- !query 9801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9802 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 9802 schema -struct<> --- !query 9802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9803 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9803 schema -struct> --- !query 9803 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 9804 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9804 schema -struct> --- !query 9804 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 9805 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 9805 schema -struct> --- !query 9805 output -{1.0:"1",2.0:"2"} - - --- !query 9806 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 9806 schema -struct> --- !query 9806 output -{1.0:"1",2.0:"2"} - - --- !query 9807 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 9807 schema -struct> --- !query 9807 output -{1.0:"1",2.0:"2"} - - --- !query 9808 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 9808 schema -struct> --- !query 9808 output -{1.0:"1",2.0:"2"} - - --- !query 9809 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 9809 schema -struct> --- !query 9809 output -{1.0:"1",2.0:"2.0"} - - --- !query 9810 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 9810 schema -struct> --- !query 9810 output -{1.0:"1",2.0:"2.0"} - - --- !query 9811 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 9811 schema -struct> --- !query 9811 output -{1.0:"1",2.0:"2"} - - --- !query 9812 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 9812 schema -struct> --- !query 9812 output -{1.0:"1",2.0:"2"} - - --- !query 9813 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 9813 schema -struct<> --- !query 9813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9814 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 9814 schema -struct<> --- !query 9814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9815 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9815 schema -struct> --- !query 9815 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 9816 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9816 schema -struct> --- !query 9816 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 9817 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 9817 schema -struct> --- !query 9817 output -{1.0:"1",2.0:"2"} - - --- !query 9818 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 9818 schema -struct> --- !query 9818 output -{1.0:"1",2.0:"2"} - - --- !query 9819 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 9819 schema -struct> --- !query 9819 output -{1.0:"1",2.0:"2"} - - --- !query 9820 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 9820 schema -struct> --- !query 9820 output -{1.0:"1",2.0:"2"} - - --- !query 9821 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 9821 schema -struct> --- !query 9821 output -{1.0:"1",2.0:"2.0"} - - --- !query 9822 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 9822 schema -struct> --- !query 9822 output -{1.0:"1",2.0:"2.0"} - - --- !query 9823 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 9823 schema -struct> --- !query 9823 output -{1.0:"1",2.0:"2"} - - --- !query 9824 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 9824 schema -struct> --- !query 9824 output -{1.0:"1",2.0:"2"} - - --- !query 9825 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 9825 schema -struct<> --- !query 9825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9826 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 9826 schema -struct<> --- !query 9826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9827 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9827 schema -struct> --- !query 9827 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 9828 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9828 schema -struct> --- !query 9828 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 9829 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 9829 schema -struct> --- !query 9829 output -{1.0:"1",2.0:"2"} - - --- !query 9830 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 9830 schema -struct> --- !query 9830 output -{1.0:"1",2.0:"2"} - - --- !query 9831 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 9831 schema -struct> --- !query 9831 output -{1.0:"1",2.0:"2"} - - --- !query 9832 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 9832 schema -struct> --- !query 9832 output -{1.0:"1",2.0:"2"} - - --- !query 9833 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 9833 schema -struct> --- !query 9833 output -{1.0:"1",2.0:"2.0"} - - --- !query 9834 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 9834 schema -struct> --- !query 9834 output -{1.0:"1",2.0:"2.0"} - - --- !query 9835 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 9835 schema -struct> --- !query 9835 output -{1.0:"1",2.0:"2"} - - --- !query 9836 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 9836 schema -struct> --- !query 9836 output -{1.0:"1",2.0:"2"} - - --- !query 9837 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 9837 schema -struct<> --- !query 9837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9838 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 9838 schema -struct<> --- !query 9838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9839 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9839 schema -struct> --- !query 9839 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 9840 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9840 schema -struct> --- !query 9840 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 9841 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 9841 schema -struct> --- !query 9841 output -{1.0:"1",2.0:"2"} - - --- !query 9842 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 9842 schema -struct> --- !query 9842 output -{1.0:"1",2.0:"2"} - - --- !query 9843 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 9843 schema -struct> --- !query 9843 output -{1.0:"1",2.0:"2"} - - --- !query 9844 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 9844 schema -struct> --- !query 9844 output -{1.0:"1",2.0:"2"} - - --- !query 9845 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 9845 schema -struct> --- !query 9845 output -{1.0:"1",2.0:"2.0"} - - --- !query 9846 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 9846 schema -struct> --- !query 9846 output -{1.0:"1",2.0:"2.0"} - - --- !query 9847 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 9847 schema -struct> --- !query 9847 output -{1.0:"1",2.0:"2"} - - --- !query 9848 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 9848 schema -struct> --- !query 9848 output -{1.0:"1",2.0:"2"} - - --- !query 9849 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 9849 schema -struct<> --- !query 9849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9850 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 9850 schema -struct<> --- !query 9850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9851 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9851 schema -struct> --- !query 9851 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 9852 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9852 schema -struct> --- !query 9852 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 9853 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 9853 schema -struct> --- !query 9853 output -{1.0:"1",2.0:"2"} - - --- !query 9854 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 9854 schema -struct> --- !query 9854 output -{1.0:"1",2.0:"2"} - - --- !query 9855 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 9855 schema -struct> --- !query 9855 output -{1.0:"1",2.0:"2"} - - --- !query 9856 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 9856 schema -struct> --- !query 9856 output -{1.0:"1",2.0:"2"} - - --- !query 9857 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 9857 schema -struct> --- !query 9857 output -{1.0:"1",2.0:"2.0"} - - --- !query 9858 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 9858 schema -struct> --- !query 9858 output -{1.0:"1",2.0:"2.0"} - - --- !query 9859 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 9859 schema -struct> --- !query 9859 output -{1.0:"1",2.0:"2"} - - --- !query 9860 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 9860 schema -struct> --- !query 9860 output -{1.0:"1",2.0:"2"} - - --- !query 9861 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 9861 schema -struct<> --- !query 9861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9862 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 9862 schema -struct<> --- !query 9862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9863 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9863 schema -struct> --- !query 9863 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 9864 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9864 schema -struct> --- !query 9864 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 9865 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 9865 schema -struct> --- !query 9865 output -{1.0:"1",2.0:"2"} - - --- !query 9866 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 9866 schema -struct> --- !query 9866 output -{1.0:"1",2.0:"2"} - - --- !query 9867 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 9867 schema -struct> --- !query 9867 output -{1.0:"1",2.0:"2"} - - --- !query 9868 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 9868 schema -struct> --- !query 9868 output -{1.0:"1",2.0:"2"} - - --- !query 9869 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 9869 schema -struct> --- !query 9869 output -{1.0:"1",2.0:"2.0"} - - --- !query 9870 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 9870 schema -struct> --- !query 9870 output -{1.0:"1",2.0:"2.0"} - - --- !query 9871 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 9871 schema -struct> --- !query 9871 output -{1.0:"1",2.0:"2"} - - --- !query 9872 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 9872 schema -struct> --- !query 9872 output -{1.0:"1",2.0:"2"} - - --- !query 9873 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 9873 schema -struct<> --- !query 9873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9874 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 9874 schema -struct<> --- !query 9874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9875 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9875 schema -struct> --- !query 9875 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 9876 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9876 schema -struct> --- !query 9876 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 9877 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 9877 schema -struct> --- !query 9877 output -{"1.0":"1","2":"2"} - - --- !query 9878 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 9878 schema -struct> --- !query 9878 output -{"1.0":"1","2":"2"} - - --- !query 9879 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 9879 schema -struct> --- !query 9879 output -{"1.0":"1","2":"2"} - - --- !query 9880 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 9880 schema -struct> --- !query 9880 output -{"1.0":"1","2":"2"} - - --- !query 9881 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 9881 schema -struct> --- !query 9881 output -{"1.0":"1","2":"2.0"} - - --- !query 9882 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 9882 schema -struct> --- !query 9882 output -{"1.0":"1","2":"2.0"} - - --- !query 9883 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 9883 schema -struct> --- !query 9883 output -{"1.0":"1","2":"2"} - - --- !query 9884 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 9884 schema -struct> --- !query 9884 output -{"1.0":"1","2":"2"} - - --- !query 9885 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 9885 schema -struct<> --- !query 9885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 9886 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 9886 schema -struct<> --- !query 9886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 9887 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9887 schema -struct> --- !query 9887 output -{"1.0":"1","2":"2017-12-12 09:30:00"} - - --- !query 9888 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9888 schema -struct> --- !query 9888 output -{"1.0":"1","2":"2017-12-12"} - - --- !query 9889 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 9889 schema -struct<> --- !query 9889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9890 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 9890 schema -struct<> --- !query 9890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9891 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 9891 schema -struct<> --- !query 9891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9892 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 9892 schema -struct<> --- !query 9892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9893 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 9893 schema -struct<> --- !query 9893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9894 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 9894 schema -struct<> --- !query 9894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9895 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 9895 schema -struct<> --- !query 9895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9896 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 9896 schema -struct<> --- !query 9896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9897 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 9897 schema -struct<> --- !query 9897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9898 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 9898 schema -struct<> --- !query 9898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9899 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9899 schema -struct<> --- !query 9899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9900 -SELECT map(cast(1 as double), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9900 schema -struct<> --- !query 9900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 9901 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 9901 schema -struct<> --- !query 9901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9902 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 9902 schema -struct<> --- !query 9902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9903 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 9903 schema -struct<> --- !query 9903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9904 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 9904 schema -struct<> --- !query 9904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9905 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 9905 schema -struct<> --- !query 9905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9906 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 9906 schema -struct<> --- !query 9906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9907 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 9907 schema -struct<> --- !query 9907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9908 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 9908 schema -struct<> --- !query 9908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9909 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 9909 schema -struct<> --- !query 9909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9910 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 9910 schema -struct<> --- !query 9910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9911 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9911 schema -struct<> --- !query 9911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9912 -SELECT map(cast(1 as double), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9912 schema -struct<> --- !query 9912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 9913 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 9913 schema -struct<> --- !query 9913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9914 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 9914 schema -struct<> --- !query 9914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9915 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 9915 schema -struct<> --- !query 9915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9916 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 9916 schema -struct<> --- !query 9916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9917 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 9917 schema -struct<> --- !query 9917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9918 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 9918 schema -struct<> --- !query 9918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9919 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 9919 schema -struct<> --- !query 9919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9920 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 9920 schema -struct<> --- !query 9920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9921 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 9921 schema -struct<> --- !query 9921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9922 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 9922 schema -struct<> --- !query 9922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9923 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9923 schema -struct<> --- !query 9923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9924 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9924 schema -struct<> --- !query 9924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 9925 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 9925 schema -struct<> --- !query 9925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9926 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 9926 schema -struct<> --- !query 9926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9927 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 9927 schema -struct<> --- !query 9927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9928 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 9928 schema -struct<> --- !query 9928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9929 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 9929 schema -struct<> --- !query 9929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9930 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 9930 schema -struct<> --- !query 9930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9931 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 9931 schema -struct<> --- !query 9931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9932 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 9932 schema -struct<> --- !query 9932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9933 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 9933 schema -struct<> --- !query 9933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9934 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 9934 schema -struct<> --- !query 9934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9935 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9935 schema -struct<> --- !query 9935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9936 -SELECT map(cast(1 as double), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9936 schema -struct<> --- !query 9936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 9937 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 9937 schema -struct<> --- !query 9937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 9938 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 9938 schema -struct<> --- !query 9938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 9939 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 9939 schema -struct<> --- !query 9939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 9940 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 9940 schema -struct<> --- !query 9940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 9941 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 9941 schema -struct<> --- !query 9941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 9942 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 9942 schema -struct<> --- !query 9942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 9943 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 9943 schema -struct<> --- !query 9943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 9944 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 9944 schema -struct<> --- !query 9944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 9945 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 9945 schema -struct> --- !query 9945 output -{1.0:[B@1e49d6c3,2.0:[B@780d94cc} - - --- !query 9946 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 9946 schema -struct<> --- !query 9946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 9947 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9947 schema -struct<> --- !query 9947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 9948 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9948 schema -struct<> --- !query 9948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 9949 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 9949 schema -struct<> --- !query 9949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 9950 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 9950 schema -struct<> --- !query 9950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 9951 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 9951 schema -struct<> --- !query 9951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 9952 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 9952 schema -struct<> --- !query 9952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 9953 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 9953 schema -struct<> --- !query 9953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 9954 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 9954 schema -struct<> --- !query 9954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 9955 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 9955 schema -struct<> --- !query 9955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 9956 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 9956 schema -struct<> --- !query 9956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 9957 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 9957 schema -struct> --- !query 9957 output -{1.0:[B@2c9b5a8d,2.0:[B@4d510999} - - --- !query 9958 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 9958 schema -struct<> --- !query 9958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 9959 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9959 schema -struct<> --- !query 9959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 9960 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9960 schema -struct<> --- !query 9960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 9961 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 9961 schema -struct<> --- !query 9961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 9962 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 9962 schema -struct<> --- !query 9962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 9963 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 9963 schema -struct<> --- !query 9963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 9964 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 9964 schema -struct<> --- !query 9964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 9965 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 9965 schema -struct<> --- !query 9965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 9966 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 9966 schema -struct<> --- !query 9966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 9967 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 9967 schema -struct<> --- !query 9967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 9968 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 9968 schema -struct<> --- !query 9968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 9969 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 9969 schema -struct> --- !query 9969 output -{1.0:[B@54fe7e4e,2.0:[B@6a74ead9} - - --- !query 9970 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 9970 schema -struct<> --- !query 9970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 9971 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9971 schema -struct<> --- !query 9971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 9972 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9972 schema -struct<> --- !query 9972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 9973 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 9973 schema -struct<> --- !query 9973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 9974 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 9974 schema -struct<> --- !query 9974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 9975 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 9975 schema -struct<> --- !query 9975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 9976 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 9976 schema -struct<> --- !query 9976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 9977 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 9977 schema -struct<> --- !query 9977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 9978 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 9978 schema -struct<> --- !query 9978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 9979 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 9979 schema -struct<> --- !query 9979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 9980 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 9980 schema -struct<> --- !query 9980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 9981 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 9981 schema -struct> --- !query 9981 output -{1.0:[B@6265985d,2.0:[B@8a97d80} - - --- !query 9982 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 9982 schema -struct<> --- !query 9982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 9983 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9983 schema -struct<> --- !query 9983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 9984 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9984 schema -struct<> --- !query 9984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 9985 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 9985 schema -struct<> --- !query 9985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 9986 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 9986 schema -struct<> --- !query 9986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 9987 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 9987 schema -struct<> --- !query 9987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 9988 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 9988 schema -struct<> --- !query 9988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 9989 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 9989 schema -struct<> --- !query 9989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 9990 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 9990 schema -struct<> --- !query 9990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 9991 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 9991 schema -struct<> --- !query 9991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 9992 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 9992 schema -struct<> --- !query 9992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 9993 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 9993 schema -struct> --- !query 9993 output -{1.0:[B@63ea6e3f,2.0:[B@5351ceb6} - - --- !query 9994 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 9994 schema -struct<> --- !query 9994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 9995 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 9995 schema -struct<> --- !query 9995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 9996 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 9996 schema -struct<> --- !query 9996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 9997 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 9997 schema -struct<> --- !query 9997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 9998 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 9998 schema -struct<> --- !query 9998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 9999 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 9999 schema -struct<> --- !query 9999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 10000 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 10000 schema -struct<> --- !query 10000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 10001 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 10001 schema -struct<> --- !query 10001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 10002 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 10002 schema -struct<> --- !query 10002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 10003 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 10003 schema -struct<> --- !query 10003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 10004 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 10004 schema -struct<> --- !query 10004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 10005 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 10005 schema -struct> --- !query 10005 output -{1.0:[B@25959532,2.0:[B@4cae2162} - - --- !query 10006 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 10006 schema -struct<> --- !query 10006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 10007 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10007 schema -struct<> --- !query 10007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 10008 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10008 schema -struct<> --- !query 10008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 10009 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 10009 schema -struct<> --- !query 10009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 10010 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 10010 schema -struct<> --- !query 10010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 10011 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 10011 schema -struct<> --- !query 10011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 10012 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 10012 schema -struct<> --- !query 10012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 10013 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 10013 schema -struct<> --- !query 10013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 10014 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 10014 schema -struct<> --- !query 10014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 10015 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 10015 schema -struct<> --- !query 10015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 10016 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 10016 schema -struct<> --- !query 10016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 10017 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 10017 schema -struct> --- !query 10017 output -{1.0:[B@1a755eaa,2.0:[B@55e36675} - - --- !query 10018 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 10018 schema -struct<> --- !query 10018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 10019 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10019 schema -struct<> --- !query 10019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 10020 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10020 schema -struct<> --- !query 10020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 10021 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 10021 schema -struct<> --- !query 10021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 10022 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 10022 schema -struct<> --- !query 10022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 10023 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 10023 schema -struct<> --- !query 10023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 10024 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 10024 schema -struct<> --- !query 10024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 10025 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 10025 schema -struct<> --- !query 10025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 10026 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 10026 schema -struct<> --- !query 10026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 10027 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 10027 schema -struct<> --- !query 10027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 10028 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 10028 schema -struct<> --- !query 10028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 10029 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 10029 schema -struct> --- !query 10029 output -{"1.0":[B@7f9dfc42,"2":[B@3b1c5b75} - - --- !query 10030 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 10030 schema -struct<> --- !query 10030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 10031 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10031 schema -struct<> --- !query 10031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 10032 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10032 schema -struct<> --- !query 10032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 10033 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 10033 schema -struct<> --- !query 10033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10034 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 10034 schema -struct<> --- !query 10034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10035 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 10035 schema -struct<> --- !query 10035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10036 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 10036 schema -struct<> --- !query 10036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10037 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 10037 schema -struct<> --- !query 10037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10038 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 10038 schema -struct<> --- !query 10038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10039 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 10039 schema -struct<> --- !query 10039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10040 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 10040 schema -struct<> --- !query 10040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10041 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 10041 schema -struct<> --- !query 10041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10042 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 10042 schema -struct<> --- !query 10042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10043 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10043 schema -struct<> --- !query 10043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10044 -SELECT map(cast(1 as double), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10044 schema -struct<> --- !query 10044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10045 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 10045 schema -struct<> --- !query 10045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10046 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 10046 schema -struct<> --- !query 10046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10047 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 10047 schema -struct<> --- !query 10047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10048 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 10048 schema -struct<> --- !query 10048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10049 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 10049 schema -struct<> --- !query 10049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10050 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 10050 schema -struct<> --- !query 10050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10051 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 10051 schema -struct<> --- !query 10051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10052 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 10052 schema -struct<> --- !query 10052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10053 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 10053 schema -struct<> --- !query 10053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10054 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 10054 schema -struct<> --- !query 10054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10055 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10055 schema -struct<> --- !query 10055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10056 -SELECT map(cast(1 as double), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10056 schema -struct<> --- !query 10056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10057 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 10057 schema -struct<> --- !query 10057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10058 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 10058 schema -struct<> --- !query 10058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10059 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 10059 schema -struct<> --- !query 10059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10060 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 10060 schema -struct<> --- !query 10060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10061 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 10061 schema -struct<> --- !query 10061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10062 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 10062 schema -struct<> --- !query 10062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10063 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 10063 schema -struct<> --- !query 10063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10064 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 10064 schema -struct<> --- !query 10064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10065 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 10065 schema -struct<> --- !query 10065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10066 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 10066 schema -struct<> --- !query 10066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10067 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10067 schema -struct<> --- !query 10067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10068 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10068 schema -struct<> --- !query 10068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10069 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 10069 schema -struct<> --- !query 10069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10070 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 10070 schema -struct<> --- !query 10070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10071 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 10071 schema -struct<> --- !query 10071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10072 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 10072 schema -struct<> --- !query 10072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10073 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 10073 schema -struct<> --- !query 10073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10074 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 10074 schema -struct<> --- !query 10074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10075 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 10075 schema -struct<> --- !query 10075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10076 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 10076 schema -struct<> --- !query 10076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10077 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 10077 schema -struct<> --- !query 10077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10078 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 10078 schema -struct<> --- !query 10078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10079 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10079 schema -struct<> --- !query 10079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10080 -SELECT map(cast(1 as double), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10080 schema -struct<> --- !query 10080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10081 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 10081 schema -struct<> --- !query 10081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10082 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 10082 schema -struct<> --- !query 10082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10083 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 10083 schema -struct<> --- !query 10083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10084 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 10084 schema -struct<> --- !query 10084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10085 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 10085 schema -struct<> --- !query 10085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10086 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 10086 schema -struct<> --- !query 10086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10087 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 10087 schema -struct<> --- !query 10087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10088 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 10088 schema -struct<> --- !query 10088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10089 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 10089 schema -struct<> --- !query 10089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10090 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 10090 schema -struct> --- !query 10090 output -{1.0:true,2.0:true} - - --- !query 10091 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10091 schema -struct<> --- !query 10091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10092 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10092 schema -struct<> --- !query 10092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10093 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 10093 schema -struct<> --- !query 10093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10094 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 10094 schema -struct<> --- !query 10094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10095 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 10095 schema -struct<> --- !query 10095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10096 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 10096 schema -struct<> --- !query 10096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10097 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 10097 schema -struct<> --- !query 10097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10098 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 10098 schema -struct<> --- !query 10098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10099 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 10099 schema -struct<> --- !query 10099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10100 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 10100 schema -struct<> --- !query 10100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10101 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 10101 schema -struct<> --- !query 10101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10102 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 10102 schema -struct> --- !query 10102 output -{1.0:true,2.0:true} - - --- !query 10103 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10103 schema -struct<> --- !query 10103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10104 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10104 schema -struct<> --- !query 10104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10105 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 10105 schema -struct<> --- !query 10105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10106 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 10106 schema -struct<> --- !query 10106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10107 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 10107 schema -struct<> --- !query 10107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10108 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 10108 schema -struct<> --- !query 10108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10109 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 10109 schema -struct<> --- !query 10109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10110 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 10110 schema -struct<> --- !query 10110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10111 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 10111 schema -struct<> --- !query 10111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10112 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 10112 schema -struct<> --- !query 10112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10113 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 10113 schema -struct<> --- !query 10113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10114 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 10114 schema -struct> --- !query 10114 output -{1.0:true,2.0:true} - - --- !query 10115 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10115 schema -struct<> --- !query 10115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10116 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10116 schema -struct<> --- !query 10116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10117 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 10117 schema -struct<> --- !query 10117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10118 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 10118 schema -struct<> --- !query 10118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10119 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 10119 schema -struct<> --- !query 10119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10120 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 10120 schema -struct<> --- !query 10120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10121 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 10121 schema -struct<> --- !query 10121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10122 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 10122 schema -struct<> --- !query 10122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10123 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 10123 schema -struct<> --- !query 10123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10124 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 10124 schema -struct<> --- !query 10124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10125 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 10125 schema -struct<> --- !query 10125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10126 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 10126 schema -struct> --- !query 10126 output -{1.0:true,2.0:true} - - --- !query 10127 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10127 schema -struct<> --- !query 10127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10128 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10128 schema -struct<> --- !query 10128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10129 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 10129 schema -struct<> --- !query 10129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10130 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 10130 schema -struct<> --- !query 10130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10131 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 10131 schema -struct<> --- !query 10131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10132 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 10132 schema -struct<> --- !query 10132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10133 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 10133 schema -struct<> --- !query 10133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10134 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 10134 schema -struct<> --- !query 10134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10135 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 10135 schema -struct<> --- !query 10135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10136 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 10136 schema -struct<> --- !query 10136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10137 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 10137 schema -struct<> --- !query 10137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10138 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 10138 schema -struct> --- !query 10138 output -{1.0:true,2.0:true} - - --- !query 10139 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10139 schema -struct<> --- !query 10139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10140 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10140 schema -struct<> --- !query 10140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10141 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 10141 schema -struct<> --- !query 10141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10142 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 10142 schema -struct<> --- !query 10142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10143 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 10143 schema -struct<> --- !query 10143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10144 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 10144 schema -struct<> --- !query 10144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10145 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 10145 schema -struct<> --- !query 10145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10146 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 10146 schema -struct<> --- !query 10146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10147 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 10147 schema -struct<> --- !query 10147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10148 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 10148 schema -struct<> --- !query 10148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10149 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 10149 schema -struct<> --- !query 10149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10150 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 10150 schema -struct> --- !query 10150 output -{1.0:true,2.0:true} - - --- !query 10151 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10151 schema -struct<> --- !query 10151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10152 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10152 schema -struct<> --- !query 10152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10153 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 10153 schema -struct<> --- !query 10153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10154 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 10154 schema -struct<> --- !query 10154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10155 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 10155 schema -struct<> --- !query 10155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10156 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 10156 schema -struct<> --- !query 10156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10157 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 10157 schema -struct<> --- !query 10157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10158 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 10158 schema -struct<> --- !query 10158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10159 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 10159 schema -struct<> --- !query 10159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10160 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 10160 schema -struct<> --- !query 10160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10161 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 10161 schema -struct<> --- !query 10161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10162 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 10162 schema -struct> --- !query 10162 output -{1.0:true,2.0:true} - - --- !query 10163 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10163 schema -struct<> --- !query 10163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10164 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10164 schema -struct<> --- !query 10164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10165 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 10165 schema -struct<> --- !query 10165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 10166 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 10166 schema -struct<> --- !query 10166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 10167 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 10167 schema -struct<> --- !query 10167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 10168 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 10168 schema -struct<> --- !query 10168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 10169 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 10169 schema -struct<> --- !query 10169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 10170 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 10170 schema -struct<> --- !query 10170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 10171 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 10171 schema -struct<> --- !query 10171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 10172 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 10172 schema -struct<> --- !query 10172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 10173 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 10173 schema -struct<> --- !query 10173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 10174 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 10174 schema -struct> --- !query 10174 output -{"1.0":true,"2":true} - - --- !query 10175 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10175 schema -struct<> --- !query 10175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 10176 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10176 schema -struct<> --- !query 10176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 10177 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 10177 schema -struct<> --- !query 10177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10178 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 10178 schema -struct<> --- !query 10178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10179 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 10179 schema -struct<> --- !query 10179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10180 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 10180 schema -struct<> --- !query 10180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10181 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 10181 schema -struct<> --- !query 10181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10182 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 10182 schema -struct<> --- !query 10182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10183 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 10183 schema -struct<> --- !query 10183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10184 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 10184 schema -struct<> --- !query 10184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10185 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 10185 schema -struct<> --- !query 10185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10186 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 10186 schema -struct<> --- !query 10186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10187 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10187 schema -struct<> --- !query 10187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10188 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10188 schema -struct<> --- !query 10188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10189 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 10189 schema -struct<> --- !query 10189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10190 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 10190 schema -struct<> --- !query 10190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10191 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 10191 schema -struct<> --- !query 10191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10192 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 10192 schema -struct<> --- !query 10192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10193 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 10193 schema -struct<> --- !query 10193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10194 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 10194 schema -struct<> --- !query 10194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10195 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 10195 schema -struct<> --- !query 10195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10196 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 10196 schema -struct<> --- !query 10196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10197 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 10197 schema -struct<> --- !query 10197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10198 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 10198 schema -struct<> --- !query 10198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10199 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10199 schema -struct<> --- !query 10199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10200 -SELECT map(cast(1 as double), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10200 schema -struct<> --- !query 10200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10201 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 10201 schema -struct<> --- !query 10201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10202 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 10202 schema -struct<> --- !query 10202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10203 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 10203 schema -struct<> --- !query 10203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10204 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 10204 schema -struct<> --- !query 10204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10205 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 10205 schema -struct<> --- !query 10205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10206 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 10206 schema -struct<> --- !query 10206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10207 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 10207 schema -struct<> --- !query 10207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10208 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 10208 schema -struct<> --- !query 10208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10209 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 10209 schema -struct<> --- !query 10209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10210 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 10210 schema -struct<> --- !query 10210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10211 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10211 schema -struct<> --- !query 10211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10212 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10212 schema -struct<> --- !query 10212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10213 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 10213 schema -struct<> --- !query 10213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10214 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 10214 schema -struct<> --- !query 10214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10215 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 10215 schema -struct<> --- !query 10215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10216 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 10216 schema -struct<> --- !query 10216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10217 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 10217 schema -struct<> --- !query 10217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10218 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 10218 schema -struct<> --- !query 10218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10219 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 10219 schema -struct<> --- !query 10219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10220 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 10220 schema -struct<> --- !query 10220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10221 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 10221 schema -struct<> --- !query 10221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10222 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 10222 schema -struct<> --- !query 10222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10223 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10223 schema -struct<> --- !query 10223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10224 -SELECT map(cast(1 as double), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10224 schema -struct<> --- !query 10224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10225 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 10225 schema -struct<> --- !query 10225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10226 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 10226 schema -struct<> --- !query 10226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10227 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 10227 schema -struct<> --- !query 10227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10228 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 10228 schema -struct<> --- !query 10228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10229 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 10229 schema -struct<> --- !query 10229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10230 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 10230 schema -struct<> --- !query 10230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10231 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 10231 schema -struct<> --- !query 10231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10232 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 10232 schema -struct> --- !query 10232 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 10233 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 10233 schema -struct<> --- !query 10233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10234 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 10234 schema -struct<> --- !query 10234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10235 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10235 schema -struct> --- !query 10235 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10236 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10236 schema -struct> --- !query 10236 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 10237 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 10237 schema -struct<> --- !query 10237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10238 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 10238 schema -struct<> --- !query 10238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10239 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 10239 schema -struct<> --- !query 10239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10240 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 10240 schema -struct<> --- !query 10240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10241 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 10241 schema -struct<> --- !query 10241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10242 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 10242 schema -struct<> --- !query 10242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10243 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 10243 schema -struct<> --- !query 10243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10244 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 10244 schema -struct> --- !query 10244 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 10245 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 10245 schema -struct<> --- !query 10245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10246 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 10246 schema -struct<> --- !query 10246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10247 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10247 schema -struct> --- !query 10247 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10248 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10248 schema -struct> --- !query 10248 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 10249 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 10249 schema -struct<> --- !query 10249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10250 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 10250 schema -struct<> --- !query 10250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10251 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 10251 schema -struct<> --- !query 10251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10252 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 10252 schema -struct<> --- !query 10252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10253 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 10253 schema -struct<> --- !query 10253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10254 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 10254 schema -struct<> --- !query 10254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10255 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 10255 schema -struct<> --- !query 10255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10256 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 10256 schema -struct> --- !query 10256 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 10257 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 10257 schema -struct<> --- !query 10257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10258 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 10258 schema -struct<> --- !query 10258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10259 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10259 schema -struct> --- !query 10259 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10260 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10260 schema -struct> --- !query 10260 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 10261 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 10261 schema -struct<> --- !query 10261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10262 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 10262 schema -struct<> --- !query 10262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10263 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 10263 schema -struct<> --- !query 10263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10264 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 10264 schema -struct<> --- !query 10264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10265 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 10265 schema -struct<> --- !query 10265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10266 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 10266 schema -struct<> --- !query 10266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10267 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 10267 schema -struct<> --- !query 10267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10268 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 10268 schema -struct> --- !query 10268 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 10269 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 10269 schema -struct<> --- !query 10269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10270 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 10270 schema -struct<> --- !query 10270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10271 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10271 schema -struct> --- !query 10271 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10272 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10272 schema -struct> --- !query 10272 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 10273 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 10273 schema -struct<> --- !query 10273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10274 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 10274 schema -struct<> --- !query 10274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10275 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 10275 schema -struct<> --- !query 10275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10276 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 10276 schema -struct<> --- !query 10276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10277 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 10277 schema -struct<> --- !query 10277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10278 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 10278 schema -struct<> --- !query 10278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10279 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 10279 schema -struct<> --- !query 10279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10280 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 10280 schema -struct> --- !query 10280 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 10281 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 10281 schema -struct<> --- !query 10281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10282 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 10282 schema -struct<> --- !query 10282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10283 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10283 schema -struct> --- !query 10283 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10284 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10284 schema -struct> --- !query 10284 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 10285 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 10285 schema -struct<> --- !query 10285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10286 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 10286 schema -struct<> --- !query 10286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10287 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 10287 schema -struct<> --- !query 10287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10288 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 10288 schema -struct<> --- !query 10288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10289 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 10289 schema -struct<> --- !query 10289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10290 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 10290 schema -struct<> --- !query 10290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10291 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 10291 schema -struct<> --- !query 10291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10292 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 10292 schema -struct> --- !query 10292 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 10293 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 10293 schema -struct<> --- !query 10293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10294 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 10294 schema -struct<> --- !query 10294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10295 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10295 schema -struct> --- !query 10295 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10296 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10296 schema -struct> --- !query 10296 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 10297 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 10297 schema -struct<> --- !query 10297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10298 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 10298 schema -struct<> --- !query 10298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10299 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 10299 schema -struct<> --- !query 10299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10300 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 10300 schema -struct<> --- !query 10300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10301 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 10301 schema -struct<> --- !query 10301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10302 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 10302 schema -struct<> --- !query 10302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10303 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 10303 schema -struct<> --- !query 10303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10304 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 10304 schema -struct> --- !query 10304 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 10305 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 10305 schema -struct<> --- !query 10305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10306 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 10306 schema -struct<> --- !query 10306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10307 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10307 schema -struct> --- !query 10307 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10308 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10308 schema -struct> --- !query 10308 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 10309 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 10309 schema -struct<> --- !query 10309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 10310 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 10310 schema -struct<> --- !query 10310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 10311 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 10311 schema -struct<> --- !query 10311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 10312 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 10312 schema -struct<> --- !query 10312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 10313 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 10313 schema -struct<> --- !query 10313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 10314 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 10314 schema -struct<> --- !query 10314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 10315 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 10315 schema -struct<> --- !query 10315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 10316 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 10316 schema -struct> --- !query 10316 output -{"1.0":"2017-12-11 09:30:00","2":"2"} - - --- !query 10317 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 10317 schema -struct<> --- !query 10317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 10318 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 10318 schema -struct<> --- !query 10318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 10319 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10319 schema -struct> --- !query 10319 output -{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 10320 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10320 schema -struct> --- !query 10320 output -{"1.0":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 10321 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 10321 schema -struct<> --- !query 10321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10322 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 10322 schema -struct<> --- !query 10322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10323 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 10323 schema -struct<> --- !query 10323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10324 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 10324 schema -struct<> --- !query 10324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10325 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 10325 schema -struct<> --- !query 10325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10326 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 10326 schema -struct<> --- !query 10326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10327 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 10327 schema -struct<> --- !query 10327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10328 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 10328 schema -struct<> --- !query 10328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10329 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 10329 schema -struct<> --- !query 10329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10330 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 10330 schema -struct<> --- !query 10330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10331 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10331 schema -struct<> --- !query 10331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10332 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10332 schema -struct<> --- !query 10332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10333 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 10333 schema -struct<> --- !query 10333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10334 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 10334 schema -struct<> --- !query 10334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10335 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 10335 schema -struct<> --- !query 10335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10336 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 10336 schema -struct<> --- !query 10336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10337 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 10337 schema -struct<> --- !query 10337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10338 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 10338 schema -struct<> --- !query 10338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10339 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 10339 schema -struct<> --- !query 10339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10340 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 10340 schema -struct<> --- !query 10340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10341 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 10341 schema -struct<> --- !query 10341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10342 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 10342 schema -struct<> --- !query 10342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10343 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10343 schema -struct<> --- !query 10343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10344 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10344 schema -struct<> --- !query 10344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10345 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 10345 schema -struct<> --- !query 10345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10346 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 10346 schema -struct<> --- !query 10346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10347 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 10347 schema -struct<> --- !query 10347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10348 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 10348 schema -struct<> --- !query 10348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10349 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 10349 schema -struct<> --- !query 10349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10350 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 10350 schema -struct<> --- !query 10350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10351 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 10351 schema -struct<> --- !query 10351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10352 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 10352 schema -struct<> --- !query 10352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10353 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 10353 schema -struct<> --- !query 10353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10354 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 10354 schema -struct<> --- !query 10354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10355 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10355 schema -struct<> --- !query 10355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10356 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10356 schema -struct<> --- !query 10356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10357 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 10357 schema -struct<> --- !query 10357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10358 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 10358 schema -struct<> --- !query 10358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10359 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 10359 schema -struct<> --- !query 10359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10360 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 10360 schema -struct<> --- !query 10360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10361 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 10361 schema -struct<> --- !query 10361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10362 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 10362 schema -struct<> --- !query 10362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10363 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 10363 schema -struct<> --- !query 10363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10364 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 10364 schema -struct<> --- !query 10364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10365 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 10365 schema -struct<> --- !query 10365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10366 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 10366 schema -struct<> --- !query 10366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10367 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10367 schema -struct<> --- !query 10367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10368 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10368 schema -struct<> --- !query 10368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10369 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 10369 schema -struct<> --- !query 10369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10370 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 10370 schema -struct<> --- !query 10370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10371 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 10371 schema -struct<> --- !query 10371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10372 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 10372 schema -struct<> --- !query 10372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10373 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 10373 schema -struct<> --- !query 10373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10374 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 10374 schema -struct<> --- !query 10374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10375 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 10375 schema -struct<> --- !query 10375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10376 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 10376 schema -struct> --- !query 10376 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 10377 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 10377 schema -struct<> --- !query 10377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10378 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 10378 schema -struct<> --- !query 10378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10379 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10379 schema -struct> --- !query 10379 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10380 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10380 schema -struct> --- !query 10380 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 10381 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 10381 schema -struct<> --- !query 10381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10382 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 10382 schema -struct<> --- !query 10382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10383 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 10383 schema -struct<> --- !query 10383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10384 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 10384 schema -struct<> --- !query 10384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10385 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 10385 schema -struct<> --- !query 10385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10386 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 10386 schema -struct<> --- !query 10386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10387 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 10387 schema -struct<> --- !query 10387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10388 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 10388 schema -struct> --- !query 10388 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 10389 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 10389 schema -struct<> --- !query 10389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10390 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 10390 schema -struct<> --- !query 10390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10391 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10391 schema -struct> --- !query 10391 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10392 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10392 schema -struct> --- !query 10392 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 10393 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 10393 schema -struct<> --- !query 10393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10394 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 10394 schema -struct<> --- !query 10394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10395 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 10395 schema -struct<> --- !query 10395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10396 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 10396 schema -struct<> --- !query 10396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10397 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 10397 schema -struct<> --- !query 10397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10398 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 10398 schema -struct<> --- !query 10398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10399 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 10399 schema -struct<> --- !query 10399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10400 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 10400 schema -struct> --- !query 10400 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 10401 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 10401 schema -struct<> --- !query 10401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10402 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 10402 schema -struct<> --- !query 10402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10403 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10403 schema -struct> --- !query 10403 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10404 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10404 schema -struct> --- !query 10404 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 10405 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 10405 schema -struct<> --- !query 10405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10406 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 10406 schema -struct<> --- !query 10406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10407 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 10407 schema -struct<> --- !query 10407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10408 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 10408 schema -struct<> --- !query 10408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10409 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 10409 schema -struct<> --- !query 10409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10410 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 10410 schema -struct<> --- !query 10410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10411 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 10411 schema -struct<> --- !query 10411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10412 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 10412 schema -struct> --- !query 10412 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 10413 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 10413 schema -struct<> --- !query 10413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10414 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 10414 schema -struct<> --- !query 10414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10415 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10415 schema -struct> --- !query 10415 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10416 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10416 schema -struct> --- !query 10416 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 10417 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 10417 schema -struct<> --- !query 10417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10418 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 10418 schema -struct<> --- !query 10418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10419 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 10419 schema -struct<> --- !query 10419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10420 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 10420 schema -struct<> --- !query 10420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10421 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 10421 schema -struct<> --- !query 10421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10422 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 10422 schema -struct<> --- !query 10422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10423 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 10423 schema -struct<> --- !query 10423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10424 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 10424 schema -struct> --- !query 10424 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 10425 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 10425 schema -struct<> --- !query 10425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10426 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 10426 schema -struct<> --- !query 10426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10427 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10427 schema -struct> --- !query 10427 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10428 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10428 schema -struct> --- !query 10428 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 10429 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 10429 schema -struct<> --- !query 10429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10430 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 10430 schema -struct<> --- !query 10430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10431 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 10431 schema -struct<> --- !query 10431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10432 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 10432 schema -struct<> --- !query 10432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10433 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 10433 schema -struct<> --- !query 10433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10434 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 10434 schema -struct<> --- !query 10434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10435 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 10435 schema -struct<> --- !query 10435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10436 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 10436 schema -struct> --- !query 10436 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 10437 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 10437 schema -struct<> --- !query 10437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10438 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 10438 schema -struct<> --- !query 10438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10439 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10439 schema -struct> --- !query 10439 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10440 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10440 schema -struct> --- !query 10440 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 10441 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 10441 schema -struct<> --- !query 10441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10442 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 10442 schema -struct<> --- !query 10442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10443 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 10443 schema -struct<> --- !query 10443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10444 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 10444 schema -struct<> --- !query 10444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10445 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 10445 schema -struct<> --- !query 10445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10446 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 10446 schema -struct<> --- !query 10446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10447 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 10447 schema -struct<> --- !query 10447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10448 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 10448 schema -struct> --- !query 10448 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 10449 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 10449 schema -struct<> --- !query 10449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10450 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 10450 schema -struct<> --- !query 10450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10451 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10451 schema -struct> --- !query 10451 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 10452 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10452 schema -struct> --- !query 10452 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 10453 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 10453 schema -struct<> --- !query 10453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 10454 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 10454 schema -struct<> --- !query 10454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 10455 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 10455 schema -struct<> --- !query 10455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 10456 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 10456 schema -struct<> --- !query 10456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 10457 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 10457 schema -struct<> --- !query 10457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 10458 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 10458 schema -struct<> --- !query 10458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 10459 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 10459 schema -struct<> --- !query 10459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 10460 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 10460 schema -struct> --- !query 10460 output -{"1.0":"2017-12-11","2":"2"} - - --- !query 10461 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 10461 schema -struct<> --- !query 10461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 10462 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 10462 schema -struct<> --- !query 10462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 10463 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10463 schema -struct> --- !query 10463 output -{"1.0":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 10464 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10464 schema -struct> --- !query 10464 output -{"1.0":2017-12-11,"2":2017-12-12} - - --- !query 10465 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 10465 schema -struct<> --- !query 10465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10466 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 10466 schema -struct<> --- !query 10466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10467 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 10467 schema -struct<> --- !query 10467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10468 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 10468 schema -struct<> --- !query 10468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10469 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 10469 schema -struct<> --- !query 10469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10470 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 10470 schema -struct<> --- !query 10470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10471 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 10471 schema -struct<> --- !query 10471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10472 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 10472 schema -struct<> --- !query 10472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10473 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 10473 schema -struct<> --- !query 10473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10474 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 10474 schema -struct<> --- !query 10474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10475 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10475 schema -struct<> --- !query 10475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10476 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10476 schema -struct<> --- !query 10476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 10477 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 10477 schema -struct<> --- !query 10477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10478 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 10478 schema -struct<> --- !query 10478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10479 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 10479 schema -struct<> --- !query 10479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10480 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 10480 schema -struct<> --- !query 10480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10481 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 10481 schema -struct<> --- !query 10481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10482 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 10482 schema -struct<> --- !query 10482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10483 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 10483 schema -struct<> --- !query 10483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10484 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 10484 schema -struct<> --- !query 10484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10485 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 10485 schema -struct<> --- !query 10485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10486 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 10486 schema -struct<> --- !query 10486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10487 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10487 schema -struct<> --- !query 10487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10488 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10488 schema -struct<> --- !query 10488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 10489 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 10489 schema -struct<> --- !query 10489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10490 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 10490 schema -struct<> --- !query 10490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10491 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 10491 schema -struct<> --- !query 10491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10492 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 10492 schema -struct<> --- !query 10492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10493 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 10493 schema -struct<> --- !query 10493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10494 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 10494 schema -struct<> --- !query 10494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10495 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 10495 schema -struct<> --- !query 10495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10496 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 10496 schema -struct<> --- !query 10496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10497 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 10497 schema -struct<> --- !query 10497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10498 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 10498 schema -struct<> --- !query 10498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10499 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10499 schema -struct<> --- !query 10499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10500 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10500 schema -struct<> --- !query 10500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 10501 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 10501 schema -struct<> --- !query 10501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10502 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 10502 schema -struct<> --- !query 10502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10503 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 10503 schema -struct<> --- !query 10503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10504 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 10504 schema -struct<> --- !query 10504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10505 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 10505 schema -struct<> --- !query 10505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10506 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 10506 schema -struct<> --- !query 10506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10507 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 10507 schema -struct<> --- !query 10507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10508 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 10508 schema -struct<> --- !query 10508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10509 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 10509 schema -struct<> --- !query 10509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10510 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 10510 schema -struct<> --- !query 10510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10511 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10511 schema -struct<> --- !query 10511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10512 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10512 schema -struct<> --- !query 10512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 10513 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 10513 schema -struct> --- !query 10513 output -{1:1,2:2} - - --- !query 10514 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 10514 schema -struct> --- !query 10514 output -{1:1,2:2} - - --- !query 10515 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 10515 schema -struct> --- !query 10515 output -{1:1,2:2} - - --- !query 10516 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 10516 schema -struct> --- !query 10516 output -{1:1,2:2} - - --- !query 10517 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 10517 schema -struct> --- !query 10517 output -{1:1.0,2:2.0} - - --- !query 10518 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 10518 schema -struct> --- !query 10518 output -{1:1.0,2:2.0} - - --- !query 10519 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 10519 schema -struct> --- !query 10519 output -{1:1,2:2} - - --- !query 10520 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 10520 schema -struct> --- !query 10520 output -{1:"1",2:"2"} - - --- !query 10521 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 10521 schema -struct<> --- !query 10521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10522 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 10522 schema -struct<> --- !query 10522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10523 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10523 schema -struct<> --- !query 10523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10524 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10524 schema -struct<> --- !query 10524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10525 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 10525 schema -struct> --- !query 10525 output -{1:1,2:2} - - --- !query 10526 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 10526 schema -struct> --- !query 10526 output -{1:1,2:2} - - --- !query 10527 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 10527 schema -struct> --- !query 10527 output -{1:1,2:2} - - --- !query 10528 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 10528 schema -struct> --- !query 10528 output -{1:1,2:2} - - --- !query 10529 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 10529 schema -struct> --- !query 10529 output -{1:1.0,2:2.0} - - --- !query 10530 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 10530 schema -struct> --- !query 10530 output -{1:1.0,2:2.0} - - --- !query 10531 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 10531 schema -struct> --- !query 10531 output -{1:1,2:2} - - --- !query 10532 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 10532 schema -struct> --- !query 10532 output -{1:"1",2:"2"} - - --- !query 10533 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 10533 schema -struct<> --- !query 10533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10534 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 10534 schema -struct<> --- !query 10534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10535 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10535 schema -struct<> --- !query 10535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10536 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10536 schema -struct<> --- !query 10536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10537 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 10537 schema -struct> --- !query 10537 output -{1:1,2:2} - - --- !query 10538 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 10538 schema -struct> --- !query 10538 output -{1:1,2:2} - - --- !query 10539 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 10539 schema -struct> --- !query 10539 output -{1:1,2:2} - - --- !query 10540 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 10540 schema -struct> --- !query 10540 output -{1:1,2:2} - - --- !query 10541 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 10541 schema -struct> --- !query 10541 output -{1:1.0,2:2.0} - - --- !query 10542 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 10542 schema -struct> --- !query 10542 output -{1:1.0,2:2.0} - - --- !query 10543 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 10543 schema -struct> --- !query 10543 output -{1:1,2:2} - - --- !query 10544 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 10544 schema -struct> --- !query 10544 output -{1:"1",2:"2"} - - --- !query 10545 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 10545 schema -struct<> --- !query 10545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10546 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 10546 schema -struct<> --- !query 10546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10547 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10547 schema -struct<> --- !query 10547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10548 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10548 schema -struct<> --- !query 10548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10549 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 10549 schema -struct> --- !query 10549 output -{1:1,2:2} - - --- !query 10550 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 10550 schema -struct> --- !query 10550 output -{1:1,2:2} - - --- !query 10551 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 10551 schema -struct> --- !query 10551 output -{1:1,2:2} - - --- !query 10552 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 10552 schema -struct> --- !query 10552 output -{1:1,2:2} - - --- !query 10553 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 10553 schema -struct> --- !query 10553 output -{1:1.0,2:2.0} - - --- !query 10554 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 10554 schema -struct> --- !query 10554 output -{1:1.0,2:2.0} - - --- !query 10555 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 10555 schema -struct> --- !query 10555 output -{1:1,2:2} - - --- !query 10556 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 10556 schema -struct> --- !query 10556 output -{1:"1",2:"2"} - - --- !query 10557 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 10557 schema -struct<> --- !query 10557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10558 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 10558 schema -struct<> --- !query 10558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10559 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10559 schema -struct<> --- !query 10559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10560 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10560 schema -struct<> --- !query 10560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10561 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 10561 schema -struct> --- !query 10561 output -{1.0:1,2.0:2} - - --- !query 10562 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 10562 schema -struct> --- !query 10562 output -{1.0:1,2.0:2} - - --- !query 10563 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 10563 schema -struct> --- !query 10563 output -{1.0:1,2.0:2} - - --- !query 10564 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 10564 schema -struct> --- !query 10564 output -{1.0:1,2.0:2} - - --- !query 10565 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 10565 schema -struct> --- !query 10565 output -{1.0:1.0,2.0:2.0} - - --- !query 10566 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 10566 schema -struct> --- !query 10566 output -{1.0:1.0,2.0:2.0} - - --- !query 10567 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 10567 schema -struct> --- !query 10567 output -{1.0:1,2.0:2} - - --- !query 10568 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 10568 schema -struct> --- !query 10568 output -{1.0:"1",2.0:"2"} - - --- !query 10569 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 10569 schema -struct<> --- !query 10569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10570 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 10570 schema -struct<> --- !query 10570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10571 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10571 schema -struct<> --- !query 10571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10572 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10572 schema -struct<> --- !query 10572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10573 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 10573 schema -struct> --- !query 10573 output -{1.0:1,2.0:2} - - --- !query 10574 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 10574 schema -struct> --- !query 10574 output -{1.0:1,2.0:2} - - --- !query 10575 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 10575 schema -struct> --- !query 10575 output -{1.0:1,2.0:2} - - --- !query 10576 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 10576 schema -struct> --- !query 10576 output -{1.0:1,2.0:2} - - --- !query 10577 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 10577 schema -struct> --- !query 10577 output -{1.0:1.0,2.0:2.0} - - --- !query 10578 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 10578 schema -struct> --- !query 10578 output -{1.0:1.0,2.0:2.0} - - --- !query 10579 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 10579 schema -struct> --- !query 10579 output -{1.0:1,2.0:2} - - --- !query 10580 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 10580 schema -struct> --- !query 10580 output -{1.0:"1",2.0:"2"} - - --- !query 10581 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 10581 schema -struct<> --- !query 10581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10582 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 10582 schema -struct<> --- !query 10582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10583 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10583 schema -struct<> --- !query 10583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10584 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10584 schema -struct<> --- !query 10584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10585 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 10585 schema -struct> --- !query 10585 output -{1:1,2:2} - - --- !query 10586 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 10586 schema -struct> --- !query 10586 output -{1:1,2:2} - - --- !query 10587 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 10587 schema -struct> --- !query 10587 output -{1:1,2:2} - - --- !query 10588 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 10588 schema -struct> --- !query 10588 output -{1:1,2:2} - - --- !query 10589 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 10589 schema -struct> --- !query 10589 output -{1:1.0,2:2.0} - - --- !query 10590 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 10590 schema -struct> --- !query 10590 output -{1:1.0,2:2.0} - - --- !query 10591 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 10591 schema -struct> --- !query 10591 output -{1:1,2:2} - - --- !query 10592 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 10592 schema -struct> --- !query 10592 output -{1:"1",2:"2"} - - --- !query 10593 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 10593 schema -struct<> --- !query 10593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10594 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 10594 schema -struct<> --- !query 10594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10595 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10595 schema -struct<> --- !query 10595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10596 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10596 schema -struct<> --- !query 10596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10597 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 10597 schema -struct> --- !query 10597 output -{"1":1,"2":2} - - --- !query 10598 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 10598 schema -struct> --- !query 10598 output -{"1":1,"2":2} - - --- !query 10599 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 10599 schema -struct> --- !query 10599 output -{"1":1,"2":2} - - --- !query 10600 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 10600 schema -struct> --- !query 10600 output -{"1":1,"2":2} - - --- !query 10601 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 10601 schema -struct> --- !query 10601 output -{"1":1.0,"2":2.0} - - --- !query 10602 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 10602 schema -struct> --- !query 10602 output -{"1":1.0,"2":2.0} - - --- !query 10603 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 10603 schema -struct> --- !query 10603 output -{"1":1,"2":2} - - --- !query 10604 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 10604 schema -struct> --- !query 10604 output -{"1":"1","2":"2"} - - --- !query 10605 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 10605 schema -struct<> --- !query 10605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 10606 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 10606 schema -struct<> --- !query 10606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 10607 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10607 schema -struct<> --- !query 10607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 10608 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10608 schema -struct<> --- !query 10608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 10609 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 10609 schema -struct<> --- !query 10609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10610 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 10610 schema -struct<> --- !query 10610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10611 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 10611 schema -struct<> --- !query 10611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10612 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 10612 schema -struct<> --- !query 10612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10613 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 10613 schema -struct<> --- !query 10613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10614 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 10614 schema -struct<> --- !query 10614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10615 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 10615 schema -struct<> --- !query 10615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10616 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 10616 schema -struct<> --- !query 10616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10617 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 10617 schema -struct<> --- !query 10617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10618 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 10618 schema -struct<> --- !query 10618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10619 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10619 schema -struct<> --- !query 10619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10620 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10620 schema -struct<> --- !query 10620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10621 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 10621 schema -struct<> --- !query 10621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10622 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 10622 schema -struct<> --- !query 10622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10623 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 10623 schema -struct<> --- !query 10623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10624 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 10624 schema -struct<> --- !query 10624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10625 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 10625 schema -struct<> --- !query 10625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10626 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 10626 schema -struct<> --- !query 10626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10627 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 10627 schema -struct<> --- !query 10627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10628 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 10628 schema -struct<> --- !query 10628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10629 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 10629 schema -struct<> --- !query 10629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10630 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 10630 schema -struct<> --- !query 10630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10631 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10631 schema -struct<> --- !query 10631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10632 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10632 schema -struct<> --- !query 10632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10633 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 10633 schema -struct<> --- !query 10633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10634 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 10634 schema -struct<> --- !query 10634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10635 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 10635 schema -struct<> --- !query 10635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10636 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 10636 schema -struct<> --- !query 10636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10637 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 10637 schema -struct<> --- !query 10637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10638 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 10638 schema -struct<> --- !query 10638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10639 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 10639 schema -struct<> --- !query 10639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10640 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 10640 schema -struct<> --- !query 10640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10641 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 10641 schema -struct<> --- !query 10641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10642 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 10642 schema -struct<> --- !query 10642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10643 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10643 schema -struct<> --- !query 10643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10644 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10644 schema -struct<> --- !query 10644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10645 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 10645 schema -struct<> --- !query 10645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10646 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 10646 schema -struct<> --- !query 10646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10647 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 10647 schema -struct<> --- !query 10647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10648 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 10648 schema -struct<> --- !query 10648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10649 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 10649 schema -struct<> --- !query 10649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10650 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 10650 schema -struct<> --- !query 10650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10651 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 10651 schema -struct<> --- !query 10651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10652 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 10652 schema -struct<> --- !query 10652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10653 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 10653 schema -struct<> --- !query 10653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10654 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 10654 schema -struct<> --- !query 10654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10655 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10655 schema -struct<> --- !query 10655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10656 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10656 schema -struct<> --- !query 10656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10657 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 10657 schema -struct> --- !query 10657 output -{1:1,2:2} - - --- !query 10658 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 10658 schema -struct> --- !query 10658 output -{1:1,2:2} - - --- !query 10659 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 10659 schema -struct> --- !query 10659 output -{1:1,2:2} - - --- !query 10660 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 10660 schema -struct> --- !query 10660 output -{1:1,2:2} - - --- !query 10661 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 10661 schema -struct> --- !query 10661 output -{1:1.0,2:2.0} - - --- !query 10662 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 10662 schema -struct> --- !query 10662 output -{1:1.0,2:2.0} - - --- !query 10663 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 10663 schema -struct> --- !query 10663 output -{1:1,2:2} - - --- !query 10664 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 10664 schema -struct> --- !query 10664 output -{1:"1",2:"2"} - - --- !query 10665 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 10665 schema -struct<> --- !query 10665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10666 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 10666 schema -struct<> --- !query 10666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10667 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10667 schema -struct<> --- !query 10667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10668 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10668 schema -struct<> --- !query 10668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10669 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 10669 schema -struct> --- !query 10669 output -{1:1,2:2} - - --- !query 10670 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 10670 schema -struct> --- !query 10670 output -{1:1,2:2} - - --- !query 10671 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 10671 schema -struct> --- !query 10671 output -{1:1,2:2} - - --- !query 10672 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 10672 schema -struct> --- !query 10672 output -{1:1,2:2} - - --- !query 10673 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 10673 schema -struct> --- !query 10673 output -{1:1.0,2:2.0} - - --- !query 10674 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 10674 schema -struct> --- !query 10674 output -{1:1.0,2:2.0} - - --- !query 10675 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 10675 schema -struct> --- !query 10675 output -{1:1,2:2} - - --- !query 10676 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 10676 schema -struct> --- !query 10676 output -{1:"1",2:"2"} - - --- !query 10677 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 10677 schema -struct<> --- !query 10677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10678 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 10678 schema -struct<> --- !query 10678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10679 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10679 schema -struct<> --- !query 10679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10680 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10680 schema -struct<> --- !query 10680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10681 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 10681 schema -struct> --- !query 10681 output -{1:1,2:2} - - --- !query 10682 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 10682 schema -struct> --- !query 10682 output -{1:1,2:2} - - --- !query 10683 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 10683 schema -struct> --- !query 10683 output -{1:1,2:2} - - --- !query 10684 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 10684 schema -struct> --- !query 10684 output -{1:1,2:2} - - --- !query 10685 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 10685 schema -struct> --- !query 10685 output -{1:1.0,2:2.0} - - --- !query 10686 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 10686 schema -struct> --- !query 10686 output -{1:1.0,2:2.0} - - --- !query 10687 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 10687 schema -struct> --- !query 10687 output -{1:1,2:2} - - --- !query 10688 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 10688 schema -struct> --- !query 10688 output -{1:"1",2:"2"} - - --- !query 10689 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 10689 schema -struct<> --- !query 10689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10690 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 10690 schema -struct<> --- !query 10690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10691 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10691 schema -struct<> --- !query 10691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10692 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10692 schema -struct<> --- !query 10692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10693 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 10693 schema -struct> --- !query 10693 output -{1:1,2:2} - - --- !query 10694 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 10694 schema -struct> --- !query 10694 output -{1:1,2:2} - - --- !query 10695 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 10695 schema -struct> --- !query 10695 output -{1:1,2:2} - - --- !query 10696 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 10696 schema -struct> --- !query 10696 output -{1:1,2:2} - - --- !query 10697 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 10697 schema -struct> --- !query 10697 output -{1:1.0,2:2.0} - - --- !query 10698 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 10698 schema -struct> --- !query 10698 output -{1:1.0,2:2.0} - - --- !query 10699 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 10699 schema -struct> --- !query 10699 output -{1:1,2:2} - - --- !query 10700 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 10700 schema -struct> --- !query 10700 output -{1:"1",2:"2"} - - --- !query 10701 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 10701 schema -struct<> --- !query 10701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10702 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 10702 schema -struct<> --- !query 10702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10703 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10703 schema -struct<> --- !query 10703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10704 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10704 schema -struct<> --- !query 10704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10705 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 10705 schema -struct> --- !query 10705 output -{1.0:1,2.0:2} - - --- !query 10706 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 10706 schema -struct> --- !query 10706 output -{1.0:1,2.0:2} - - --- !query 10707 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 10707 schema -struct> --- !query 10707 output -{1.0:1,2.0:2} - - --- !query 10708 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 10708 schema -struct> --- !query 10708 output -{1.0:1,2.0:2} - - --- !query 10709 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 10709 schema -struct> --- !query 10709 output -{1.0:1.0,2.0:2.0} - - --- !query 10710 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 10710 schema -struct> --- !query 10710 output -{1.0:1.0,2.0:2.0} - - --- !query 10711 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 10711 schema -struct> --- !query 10711 output -{1.0:1,2.0:2} - - --- !query 10712 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 10712 schema -struct> --- !query 10712 output -{1.0:"1",2.0:"2"} - - --- !query 10713 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 10713 schema -struct<> --- !query 10713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10714 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 10714 schema -struct<> --- !query 10714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10715 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10715 schema -struct<> --- !query 10715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10716 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10716 schema -struct<> --- !query 10716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10717 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 10717 schema -struct> --- !query 10717 output -{1.0:1,2.0:2} - - --- !query 10718 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 10718 schema -struct> --- !query 10718 output -{1.0:1,2.0:2} - - --- !query 10719 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 10719 schema -struct> --- !query 10719 output -{1.0:1,2.0:2} - - --- !query 10720 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 10720 schema -struct> --- !query 10720 output -{1.0:1,2.0:2} - - --- !query 10721 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 10721 schema -struct> --- !query 10721 output -{1.0:1.0,2.0:2.0} - - --- !query 10722 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 10722 schema -struct> --- !query 10722 output -{1.0:1.0,2.0:2.0} - - --- !query 10723 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 10723 schema -struct> --- !query 10723 output -{1.0:1,2.0:2} - - --- !query 10724 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 10724 schema -struct> --- !query 10724 output -{1.0:"1",2.0:"2"} - - --- !query 10725 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 10725 schema -struct<> --- !query 10725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10726 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 10726 schema -struct<> --- !query 10726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10727 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10727 schema -struct<> --- !query 10727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10728 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10728 schema -struct<> --- !query 10728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10729 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 10729 schema -struct> --- !query 10729 output -{1:1,2:2} - - --- !query 10730 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 10730 schema -struct> --- !query 10730 output -{1:1,2:2} - - --- !query 10731 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 10731 schema -struct> --- !query 10731 output -{1:1,2:2} - - --- !query 10732 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 10732 schema -struct> --- !query 10732 output -{1:1,2:2} - - --- !query 10733 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 10733 schema -struct> --- !query 10733 output -{1:1.0,2:2.0} - - --- !query 10734 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 10734 schema -struct> --- !query 10734 output -{1:1.0,2:2.0} - - --- !query 10735 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 10735 schema -struct> --- !query 10735 output -{1:1,2:2} - - --- !query 10736 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 10736 schema -struct> --- !query 10736 output -{1:"1",2:"2"} - - --- !query 10737 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 10737 schema -struct<> --- !query 10737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10738 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 10738 schema -struct<> --- !query 10738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10739 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10739 schema -struct<> --- !query 10739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10740 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10740 schema -struct<> --- !query 10740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10741 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 10741 schema -struct> --- !query 10741 output -{"1":1,"2":2} - - --- !query 10742 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 10742 schema -struct> --- !query 10742 output -{"1":1,"2":2} - - --- !query 10743 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 10743 schema -struct> --- !query 10743 output -{"1":1,"2":2} - - --- !query 10744 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 10744 schema -struct> --- !query 10744 output -{"1":1,"2":2} - - --- !query 10745 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 10745 schema -struct> --- !query 10745 output -{"1":1.0,"2":2.0} - - --- !query 10746 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 10746 schema -struct> --- !query 10746 output -{"1":1.0,"2":2.0} - - --- !query 10747 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 10747 schema -struct> --- !query 10747 output -{"1":1,"2":2} - - --- !query 10748 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 10748 schema -struct> --- !query 10748 output -{"1":"1","2":"2"} - - --- !query 10749 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 10749 schema -struct<> --- !query 10749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 10750 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 10750 schema -struct<> --- !query 10750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 10751 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10751 schema -struct<> --- !query 10751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 10752 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10752 schema -struct<> --- !query 10752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 10753 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 10753 schema -struct<> --- !query 10753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10754 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 10754 schema -struct<> --- !query 10754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10755 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 10755 schema -struct<> --- !query 10755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10756 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 10756 schema -struct<> --- !query 10756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10757 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 10757 schema -struct<> --- !query 10757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10758 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 10758 schema -struct<> --- !query 10758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10759 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 10759 schema -struct<> --- !query 10759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10760 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 10760 schema -struct<> --- !query 10760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10761 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 10761 schema -struct<> --- !query 10761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10762 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 10762 schema -struct<> --- !query 10762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10763 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10763 schema -struct<> --- !query 10763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10764 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10764 schema -struct<> --- !query 10764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10765 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 10765 schema -struct<> --- !query 10765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10766 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 10766 schema -struct<> --- !query 10766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10767 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 10767 schema -struct<> --- !query 10767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10768 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 10768 schema -struct<> --- !query 10768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10769 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 10769 schema -struct<> --- !query 10769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10770 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 10770 schema -struct<> --- !query 10770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10771 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 10771 schema -struct<> --- !query 10771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10772 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 10772 schema -struct<> --- !query 10772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10773 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 10773 schema -struct<> --- !query 10773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10774 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 10774 schema -struct<> --- !query 10774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10775 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10775 schema -struct<> --- !query 10775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10776 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10776 schema -struct<> --- !query 10776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10777 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 10777 schema -struct<> --- !query 10777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10778 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 10778 schema -struct<> --- !query 10778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10779 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 10779 schema -struct<> --- !query 10779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10780 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 10780 schema -struct<> --- !query 10780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10781 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 10781 schema -struct<> --- !query 10781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10782 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 10782 schema -struct<> --- !query 10782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10783 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 10783 schema -struct<> --- !query 10783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10784 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 10784 schema -struct<> --- !query 10784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10785 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 10785 schema -struct<> --- !query 10785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10786 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 10786 schema -struct<> --- !query 10786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10787 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10787 schema -struct<> --- !query 10787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10788 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10788 schema -struct<> --- !query 10788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10789 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 10789 schema -struct<> --- !query 10789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10790 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 10790 schema -struct<> --- !query 10790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10791 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 10791 schema -struct<> --- !query 10791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10792 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 10792 schema -struct<> --- !query 10792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10793 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 10793 schema -struct<> --- !query 10793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10794 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 10794 schema -struct<> --- !query 10794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10795 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 10795 schema -struct<> --- !query 10795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10796 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 10796 schema -struct<> --- !query 10796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10797 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 10797 schema -struct<> --- !query 10797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10798 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 10798 schema -struct<> --- !query 10798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10799 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10799 schema -struct<> --- !query 10799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10800 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10800 schema -struct<> --- !query 10800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10801 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 10801 schema -struct> --- !query 10801 output -{1:1,2:2} - - --- !query 10802 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 10802 schema -struct> --- !query 10802 output -{1:1,2:2} - - --- !query 10803 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 10803 schema -struct> --- !query 10803 output -{1:1,2:2} - - --- !query 10804 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 10804 schema -struct> --- !query 10804 output -{1:1,2:2} - - --- !query 10805 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 10805 schema -struct> --- !query 10805 output -{1:1.0,2:2.0} - - --- !query 10806 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 10806 schema -struct> --- !query 10806 output -{1:1.0,2:2.0} - - --- !query 10807 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 10807 schema -struct> --- !query 10807 output -{1:1,2:2} - - --- !query 10808 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 10808 schema -struct> --- !query 10808 output -{1:"1",2:"2"} - - --- !query 10809 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 10809 schema -struct<> --- !query 10809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10810 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 10810 schema -struct<> --- !query 10810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10811 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10811 schema -struct<> --- !query 10811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10812 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10812 schema -struct<> --- !query 10812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10813 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 10813 schema -struct> --- !query 10813 output -{1:1,2:2} - - --- !query 10814 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 10814 schema -struct> --- !query 10814 output -{1:1,2:2} - - --- !query 10815 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 10815 schema -struct> --- !query 10815 output -{1:1,2:2} - - --- !query 10816 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 10816 schema -struct> --- !query 10816 output -{1:1,2:2} - - --- !query 10817 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 10817 schema -struct> --- !query 10817 output -{1:1.0,2:2.0} - - --- !query 10818 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 10818 schema -struct> --- !query 10818 output -{1:1.0,2:2.0} - - --- !query 10819 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 10819 schema -struct> --- !query 10819 output -{1:1,2:2} - - --- !query 10820 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 10820 schema -struct> --- !query 10820 output -{1:"1",2:"2"} - - --- !query 10821 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 10821 schema -struct<> --- !query 10821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10822 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 10822 schema -struct<> --- !query 10822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10823 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10823 schema -struct<> --- !query 10823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10824 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10824 schema -struct<> --- !query 10824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10825 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 10825 schema -struct> --- !query 10825 output -{1:1,2:2} - - --- !query 10826 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 10826 schema -struct> --- !query 10826 output -{1:1,2:2} - - --- !query 10827 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 10827 schema -struct> --- !query 10827 output -{1:1,2:2} - - --- !query 10828 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 10828 schema -struct> --- !query 10828 output -{1:1,2:2} - - --- !query 10829 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 10829 schema -struct> --- !query 10829 output -{1:1.0,2:2.0} - - --- !query 10830 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 10830 schema -struct> --- !query 10830 output -{1:1.0,2:2.0} - - --- !query 10831 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 10831 schema -struct> --- !query 10831 output -{1:1,2:2} - - --- !query 10832 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 10832 schema -struct> --- !query 10832 output -{1:"1",2:"2"} - - --- !query 10833 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 10833 schema -struct<> --- !query 10833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10834 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 10834 schema -struct<> --- !query 10834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10835 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10835 schema -struct<> --- !query 10835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10836 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10836 schema -struct<> --- !query 10836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10837 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 10837 schema -struct> --- !query 10837 output -{1:1,2:2} - - --- !query 10838 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 10838 schema -struct> --- !query 10838 output -{1:1,2:2} - - --- !query 10839 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 10839 schema -struct> --- !query 10839 output -{1:1,2:2} - - --- !query 10840 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 10840 schema -struct> --- !query 10840 output -{1:1,2:2} - - --- !query 10841 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 10841 schema -struct> --- !query 10841 output -{1:1.0,2:2.0} - - --- !query 10842 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 10842 schema -struct> --- !query 10842 output -{1:1.0,2:2.0} - - --- !query 10843 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 10843 schema -struct> --- !query 10843 output -{1:1,2:2} - - --- !query 10844 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 10844 schema -struct> --- !query 10844 output -{1:"1",2:"2"} - - --- !query 10845 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 10845 schema -struct<> --- !query 10845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10846 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 10846 schema -struct<> --- !query 10846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10847 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10847 schema -struct<> --- !query 10847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10848 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10848 schema -struct<> --- !query 10848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10849 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 10849 schema -struct> --- !query 10849 output -{1.0:1,2.0:2} - - --- !query 10850 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 10850 schema -struct> --- !query 10850 output -{1.0:1,2.0:2} - - --- !query 10851 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 10851 schema -struct> --- !query 10851 output -{1.0:1,2.0:2} - - --- !query 10852 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 10852 schema -struct> --- !query 10852 output -{1.0:1,2.0:2} - - --- !query 10853 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 10853 schema -struct> --- !query 10853 output -{1.0:1.0,2.0:2.0} - - --- !query 10854 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 10854 schema -struct> --- !query 10854 output -{1.0:1.0,2.0:2.0} - - --- !query 10855 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 10855 schema -struct> --- !query 10855 output -{1.0:1,2.0:2} - - --- !query 10856 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 10856 schema -struct> --- !query 10856 output -{1.0:"1",2.0:"2"} - - --- !query 10857 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 10857 schema -struct<> --- !query 10857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10858 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 10858 schema -struct<> --- !query 10858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10859 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10859 schema -struct<> --- !query 10859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10860 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10860 schema -struct<> --- !query 10860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10861 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 10861 schema -struct> --- !query 10861 output -{1.0:1,2.0:2} - - --- !query 10862 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 10862 schema -struct> --- !query 10862 output -{1.0:1,2.0:2} - - --- !query 10863 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 10863 schema -struct> --- !query 10863 output -{1.0:1,2.0:2} - - --- !query 10864 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 10864 schema -struct> --- !query 10864 output -{1.0:1,2.0:2} - - --- !query 10865 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 10865 schema -struct> --- !query 10865 output -{1.0:1.0,2.0:2.0} - - --- !query 10866 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 10866 schema -struct> --- !query 10866 output -{1.0:1.0,2.0:2.0} - - --- !query 10867 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 10867 schema -struct> --- !query 10867 output -{1.0:1,2.0:2} - - --- !query 10868 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 10868 schema -struct> --- !query 10868 output -{1.0:"1",2.0:"2"} - - --- !query 10869 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 10869 schema -struct<> --- !query 10869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10870 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 10870 schema -struct<> --- !query 10870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10871 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10871 schema -struct<> --- !query 10871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10872 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10872 schema -struct<> --- !query 10872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10873 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 10873 schema -struct> --- !query 10873 output -{1:1,2:2} - - --- !query 10874 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 10874 schema -struct> --- !query 10874 output -{1:1,2:2} - - --- !query 10875 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 10875 schema -struct> --- !query 10875 output -{1:1,2:2} - - --- !query 10876 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 10876 schema -struct> --- !query 10876 output -{1:1,2:2} - - --- !query 10877 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 10877 schema -struct> --- !query 10877 output -{1:1.0,2:2.0} - - --- !query 10878 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 10878 schema -struct> --- !query 10878 output -{1:1.0,2:2.0} - - --- !query 10879 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 10879 schema -struct> --- !query 10879 output -{1:1,2:2} - - --- !query 10880 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 10880 schema -struct> --- !query 10880 output -{1:"1",2:"2"} - - --- !query 10881 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 10881 schema -struct<> --- !query 10881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10882 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 10882 schema -struct<> --- !query 10882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10883 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10883 schema -struct<> --- !query 10883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10884 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10884 schema -struct<> --- !query 10884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10885 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 10885 schema -struct> --- !query 10885 output -{"1":1,"2":2} - - --- !query 10886 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 10886 schema -struct> --- !query 10886 output -{"1":1,"2":2} - - --- !query 10887 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 10887 schema -struct> --- !query 10887 output -{"1":1,"2":2} - - --- !query 10888 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 10888 schema -struct> --- !query 10888 output -{"1":1,"2":2} - - --- !query 10889 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 10889 schema -struct> --- !query 10889 output -{"1":1.0,"2":2.0} - - --- !query 10890 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 10890 schema -struct> --- !query 10890 output -{"1":1.0,"2":2.0} - - --- !query 10891 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 10891 schema -struct> --- !query 10891 output -{"1":1,"2":2} - - --- !query 10892 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 10892 schema -struct> --- !query 10892 output -{"1":"1","2":"2"} - - --- !query 10893 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 10893 schema -struct<> --- !query 10893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 10894 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 10894 schema -struct<> --- !query 10894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 10895 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10895 schema -struct<> --- !query 10895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 10896 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10896 schema -struct<> --- !query 10896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 10897 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 10897 schema -struct<> --- !query 10897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10898 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 10898 schema -struct<> --- !query 10898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10899 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 10899 schema -struct<> --- !query 10899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10900 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 10900 schema -struct<> --- !query 10900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10901 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 10901 schema -struct<> --- !query 10901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10902 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 10902 schema -struct<> --- !query 10902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10903 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 10903 schema -struct<> --- !query 10903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10904 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 10904 schema -struct<> --- !query 10904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10905 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 10905 schema -struct<> --- !query 10905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10906 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 10906 schema -struct<> --- !query 10906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10907 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10907 schema -struct<> --- !query 10907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10908 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10908 schema -struct<> --- !query 10908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 10909 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 10909 schema -struct<> --- !query 10909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10910 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 10910 schema -struct<> --- !query 10910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10911 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 10911 schema -struct<> --- !query 10911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10912 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 10912 schema -struct<> --- !query 10912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10913 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 10913 schema -struct<> --- !query 10913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10914 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 10914 schema -struct<> --- !query 10914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10915 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 10915 schema -struct<> --- !query 10915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10916 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 10916 schema -struct<> --- !query 10916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10917 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 10917 schema -struct<> --- !query 10917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10918 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 10918 schema -struct<> --- !query 10918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10919 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10919 schema -struct<> --- !query 10919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10920 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10920 schema -struct<> --- !query 10920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 10921 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 10921 schema -struct<> --- !query 10921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10922 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 10922 schema -struct<> --- !query 10922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10923 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 10923 schema -struct<> --- !query 10923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10924 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 10924 schema -struct<> --- !query 10924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10925 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 10925 schema -struct<> --- !query 10925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10926 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 10926 schema -struct<> --- !query 10926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10927 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 10927 schema -struct<> --- !query 10927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10928 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 10928 schema -struct<> --- !query 10928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10929 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 10929 schema -struct<> --- !query 10929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10930 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 10930 schema -struct<> --- !query 10930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10931 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10931 schema -struct<> --- !query 10931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10932 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10932 schema -struct<> --- !query 10932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 10933 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 10933 schema -struct<> --- !query 10933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10934 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 10934 schema -struct<> --- !query 10934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10935 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 10935 schema -struct<> --- !query 10935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10936 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 10936 schema -struct<> --- !query 10936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10937 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 10937 schema -struct<> --- !query 10937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10938 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 10938 schema -struct<> --- !query 10938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10939 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 10939 schema -struct<> --- !query 10939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10940 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 10940 schema -struct<> --- !query 10940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10941 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 10941 schema -struct<> --- !query 10941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10942 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 10942 schema -struct<> --- !query 10942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10943 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10943 schema -struct<> --- !query 10943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10944 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10944 schema -struct<> --- !query 10944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 10945 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 10945 schema -struct> --- !query 10945 output -{1:1,2:2} - - --- !query 10946 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 10946 schema -struct> --- !query 10946 output -{1:1,2:2} - - --- !query 10947 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 10947 schema -struct> --- !query 10947 output -{1:1,2:2} - - --- !query 10948 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 10948 schema -struct> --- !query 10948 output -{1:1,2:2} - - --- !query 10949 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 10949 schema -struct> --- !query 10949 output -{1:1.0,2:2.0} - - --- !query 10950 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 10950 schema -struct> --- !query 10950 output -{1:1.0,2:2.0} - - --- !query 10951 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 10951 schema -struct> --- !query 10951 output -{1:1,2:2} - - --- !query 10952 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 10952 schema -struct> --- !query 10952 output -{1:"1",2:"2"} - - --- !query 10953 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 10953 schema -struct<> --- !query 10953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 10954 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 10954 schema -struct<> --- !query 10954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 10955 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10955 schema -struct<> --- !query 10955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 10956 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10956 schema -struct<> --- !query 10956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 10957 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 10957 schema -struct> --- !query 10957 output -{1:1,2:2} - - --- !query 10958 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 10958 schema -struct> --- !query 10958 output -{1:1,2:2} - - --- !query 10959 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 10959 schema -struct> --- !query 10959 output -{1:1,2:2} - - --- !query 10960 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 10960 schema -struct> --- !query 10960 output -{1:1,2:2} - - --- !query 10961 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 10961 schema -struct> --- !query 10961 output -{1:1.0,2:2.0} - - --- !query 10962 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 10962 schema -struct> --- !query 10962 output -{1:1.0,2:2.0} - - --- !query 10963 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 10963 schema -struct> --- !query 10963 output -{1:1,2:2} - - --- !query 10964 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 10964 schema -struct> --- !query 10964 output -{1:"1",2:"2"} - - --- !query 10965 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 10965 schema -struct<> --- !query 10965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 10966 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 10966 schema -struct<> --- !query 10966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 10967 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10967 schema -struct<> --- !query 10967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 10968 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10968 schema -struct<> --- !query 10968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 10969 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 10969 schema -struct> --- !query 10969 output -{1:1,2:2} - - --- !query 10970 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 10970 schema -struct> --- !query 10970 output -{1:1,2:2} - - --- !query 10971 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 10971 schema -struct> --- !query 10971 output -{1:1,2:2} - - --- !query 10972 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 10972 schema -struct> --- !query 10972 output -{1:1,2:2} - - --- !query 10973 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 10973 schema -struct> --- !query 10973 output -{1:1.0,2:2.0} - - --- !query 10974 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 10974 schema -struct> --- !query 10974 output -{1:1.0,2:2.0} - - --- !query 10975 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 10975 schema -struct> --- !query 10975 output -{1:1,2:2} - - --- !query 10976 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 10976 schema -struct> --- !query 10976 output -{1:"1",2:"2"} - - --- !query 10977 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 10977 schema -struct<> --- !query 10977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 10978 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 10978 schema -struct<> --- !query 10978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 10979 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10979 schema -struct<> --- !query 10979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 10980 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10980 schema -struct<> --- !query 10980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 10981 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 10981 schema -struct> --- !query 10981 output -{1:1,2:2} - - --- !query 10982 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 10982 schema -struct> --- !query 10982 output -{1:1,2:2} - - --- !query 10983 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 10983 schema -struct> --- !query 10983 output -{1:1,2:2} - - --- !query 10984 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 10984 schema -struct> --- !query 10984 output -{1:1,2:2} - - --- !query 10985 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 10985 schema -struct> --- !query 10985 output -{1:1.0,2:2.0} - - --- !query 10986 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 10986 schema -struct> --- !query 10986 output -{1:1.0,2:2.0} - - --- !query 10987 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 10987 schema -struct> --- !query 10987 output -{1:1,2:2} - - --- !query 10988 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 10988 schema -struct> --- !query 10988 output -{1:"1",2:"2"} - - --- !query 10989 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 10989 schema -struct<> --- !query 10989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 10990 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 10990 schema -struct<> --- !query 10990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 10991 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 10991 schema -struct<> --- !query 10991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 10992 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 10992 schema -struct<> --- !query 10992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 10993 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 10993 schema -struct> --- !query 10993 output -{1.0:1,2.0:2} - - --- !query 10994 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 10994 schema -struct> --- !query 10994 output -{1.0:1,2.0:2} - - --- !query 10995 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 10995 schema -struct> --- !query 10995 output -{1.0:1,2.0:2} - - --- !query 10996 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 10996 schema -struct> --- !query 10996 output -{1.0:1,2.0:2} - - --- !query 10997 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 10997 schema -struct> --- !query 10997 output -{1.0:1.0,2.0:2.0} - - --- !query 10998 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 10998 schema -struct> --- !query 10998 output -{1.0:1.0,2.0:2.0} - - --- !query 10999 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 10999 schema -struct> --- !query 10999 output -{1.0:1,2.0:2} - - --- !query 11000 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 11000 schema -struct> --- !query 11000 output -{1.0:"1",2.0:"2"} - - --- !query 11001 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 11001 schema -struct<> --- !query 11001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 11002 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 11002 schema -struct<> --- !query 11002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 11003 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11003 schema -struct<> --- !query 11003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 11004 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11004 schema -struct<> --- !query 11004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 11005 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 11005 schema -struct> --- !query 11005 output -{1.0:1,2.0:2} - - --- !query 11006 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 11006 schema -struct> --- !query 11006 output -{1.0:1,2.0:2} - - --- !query 11007 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 11007 schema -struct> --- !query 11007 output -{1.0:1,2.0:2} - - --- !query 11008 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 11008 schema -struct> --- !query 11008 output -{1.0:1,2.0:2} - - --- !query 11009 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 11009 schema -struct> --- !query 11009 output -{1.0:1.0,2.0:2.0} - - --- !query 11010 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 11010 schema -struct> --- !query 11010 output -{1.0:1.0,2.0:2.0} - - --- !query 11011 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 11011 schema -struct> --- !query 11011 output -{1.0:1,2.0:2} - - --- !query 11012 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 11012 schema -struct> --- !query 11012 output -{1.0:"1",2.0:"2"} - - --- !query 11013 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 11013 schema -struct<> --- !query 11013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 11014 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 11014 schema -struct<> --- !query 11014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 11015 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11015 schema -struct<> --- !query 11015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 11016 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11016 schema -struct<> --- !query 11016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 11017 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 11017 schema -struct> --- !query 11017 output -{1:1,2:2} - - --- !query 11018 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 11018 schema -struct> --- !query 11018 output -{1:1,2:2} - - --- !query 11019 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 11019 schema -struct> --- !query 11019 output -{1:1,2:2} - - --- !query 11020 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 11020 schema -struct> --- !query 11020 output -{1:1,2:2} - - --- !query 11021 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 11021 schema -struct> --- !query 11021 output -{1:1.0,2:2.0} - - --- !query 11022 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 11022 schema -struct> --- !query 11022 output -{1:1.0,2:2.0} - - --- !query 11023 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 11023 schema -struct> --- !query 11023 output -{1:1,2:2} - - --- !query 11024 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 11024 schema -struct> --- !query 11024 output -{1:"1",2:"2"} - - --- !query 11025 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 11025 schema -struct<> --- !query 11025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 11026 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 11026 schema -struct<> --- !query 11026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 11027 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11027 schema -struct<> --- !query 11027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 11028 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11028 schema -struct<> --- !query 11028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 11029 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 11029 schema -struct> --- !query 11029 output -{"1":1,"2":2} - - --- !query 11030 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 11030 schema -struct> --- !query 11030 output -{"1":1,"2":2} - - --- !query 11031 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 11031 schema -struct> --- !query 11031 output -{"1":1,"2":2} - - --- !query 11032 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 11032 schema -struct> --- !query 11032 output -{"1":1,"2":2} - - --- !query 11033 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 11033 schema -struct> --- !query 11033 output -{"1":1.0,"2":2.0} - - --- !query 11034 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 11034 schema -struct> --- !query 11034 output -{"1":1.0,"2":2.0} - - --- !query 11035 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 11035 schema -struct> --- !query 11035 output -{"1":1,"2":2} - - --- !query 11036 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 11036 schema -struct> --- !query 11036 output -{"1":"1","2":"2"} - - --- !query 11037 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 11037 schema -struct<> --- !query 11037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 11038 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 11038 schema -struct<> --- !query 11038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 11039 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11039 schema -struct<> --- !query 11039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 11040 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11040 schema -struct<> --- !query 11040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 11041 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 11041 schema -struct<> --- !query 11041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11042 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 11042 schema -struct<> --- !query 11042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11043 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 11043 schema -struct<> --- !query 11043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11044 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 11044 schema -struct<> --- !query 11044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11045 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 11045 schema -struct<> --- !query 11045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11046 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 11046 schema -struct<> --- !query 11046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11047 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 11047 schema -struct<> --- !query 11047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11048 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 11048 schema -struct<> --- !query 11048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11049 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 11049 schema -struct<> --- !query 11049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11050 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 11050 schema -struct<> --- !query 11050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11051 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11051 schema -struct<> --- !query 11051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11052 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11052 schema -struct<> --- !query 11052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11053 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 11053 schema -struct<> --- !query 11053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11054 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 11054 schema -struct<> --- !query 11054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11055 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 11055 schema -struct<> --- !query 11055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11056 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 11056 schema -struct<> --- !query 11056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11057 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 11057 schema -struct<> --- !query 11057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11058 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 11058 schema -struct<> --- !query 11058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11059 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 11059 schema -struct<> --- !query 11059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11060 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 11060 schema -struct<> --- !query 11060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11061 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 11061 schema -struct<> --- !query 11061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11062 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 11062 schema -struct<> --- !query 11062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11063 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11063 schema -struct<> --- !query 11063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11064 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11064 schema -struct<> --- !query 11064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11065 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 11065 schema -struct<> --- !query 11065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11066 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 11066 schema -struct<> --- !query 11066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11067 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 11067 schema -struct<> --- !query 11067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11068 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 11068 schema -struct<> --- !query 11068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11069 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 11069 schema -struct<> --- !query 11069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11070 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 11070 schema -struct<> --- !query 11070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11071 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 11071 schema -struct<> --- !query 11071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11072 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 11072 schema -struct<> --- !query 11072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11073 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 11073 schema -struct<> --- !query 11073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11074 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 11074 schema -struct<> --- !query 11074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11075 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11075 schema -struct<> --- !query 11075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11076 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11076 schema -struct<> --- !query 11076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11077 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 11077 schema -struct<> --- !query 11077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11078 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 11078 schema -struct<> --- !query 11078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11079 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 11079 schema -struct<> --- !query 11079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11080 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 11080 schema -struct<> --- !query 11080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11081 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 11081 schema -struct<> --- !query 11081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11082 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 11082 schema -struct<> --- !query 11082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11083 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 11083 schema -struct<> --- !query 11083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11084 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 11084 schema -struct<> --- !query 11084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11085 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 11085 schema -struct<> --- !query 11085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11086 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 11086 schema -struct<> --- !query 11086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11087 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11087 schema -struct<> --- !query 11087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11088 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11088 schema -struct<> --- !query 11088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11089 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 11089 schema -struct> --- !query 11089 output -{1:1.0,2:2.0} - - --- !query 11090 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 11090 schema -struct> --- !query 11090 output -{1:1.0,2:2.0} - - --- !query 11091 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 11091 schema -struct> --- !query 11091 output -{1:1.0,2:2.0} - - --- !query 11092 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 11092 schema -struct> --- !query 11092 output -{1:1.0,2:2.0} - - --- !query 11093 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 11093 schema -struct> --- !query 11093 output -{1:1.0,2:2.0} - - --- !query 11094 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 11094 schema -struct> --- !query 11094 output -{1:1.0,2:2.0} - - --- !query 11095 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 11095 schema -struct> --- !query 11095 output -{1:1.0,2:2.0} - - --- !query 11096 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 11096 schema -struct> --- !query 11096 output -{1:"1.0",2:"2"} - - --- !query 11097 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 11097 schema -struct<> --- !query 11097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11098 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 11098 schema -struct<> --- !query 11098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11099 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11099 schema -struct<> --- !query 11099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11100 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11100 schema -struct<> --- !query 11100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11101 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 11101 schema -struct> --- !query 11101 output -{1:1.0,2:2.0} - - --- !query 11102 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 11102 schema -struct> --- !query 11102 output -{1:1.0,2:2.0} - - --- !query 11103 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 11103 schema -struct> --- !query 11103 output -{1:1.0,2:2.0} - - --- !query 11104 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 11104 schema -struct> --- !query 11104 output -{1:1.0,2:2.0} - - --- !query 11105 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 11105 schema -struct> --- !query 11105 output -{1:1.0,2:2.0} - - --- !query 11106 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 11106 schema -struct> --- !query 11106 output -{1:1.0,2:2.0} - - --- !query 11107 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 11107 schema -struct> --- !query 11107 output -{1:1.0,2:2.0} - - --- !query 11108 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 11108 schema -struct> --- !query 11108 output -{1:"1.0",2:"2"} - - --- !query 11109 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 11109 schema -struct<> --- !query 11109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11110 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 11110 schema -struct<> --- !query 11110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11111 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11111 schema -struct<> --- !query 11111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11112 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11112 schema -struct<> --- !query 11112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11113 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 11113 schema -struct> --- !query 11113 output -{1:1.0,2:2.0} - - --- !query 11114 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 11114 schema -struct> --- !query 11114 output -{1:1.0,2:2.0} - - --- !query 11115 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 11115 schema -struct> --- !query 11115 output -{1:1.0,2:2.0} - - --- !query 11116 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 11116 schema -struct> --- !query 11116 output -{1:1.0,2:2.0} - - --- !query 11117 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 11117 schema -struct> --- !query 11117 output -{1:1.0,2:2.0} - - --- !query 11118 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 11118 schema -struct> --- !query 11118 output -{1:1.0,2:2.0} - - --- !query 11119 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 11119 schema -struct> --- !query 11119 output -{1:1.0,2:2.0} - - --- !query 11120 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 11120 schema -struct> --- !query 11120 output -{1:"1.0",2:"2"} - - --- !query 11121 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 11121 schema -struct<> --- !query 11121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11122 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 11122 schema -struct<> --- !query 11122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11123 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11123 schema -struct<> --- !query 11123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11124 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11124 schema -struct<> --- !query 11124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11125 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 11125 schema -struct> --- !query 11125 output -{1:1.0,2:2.0} - - --- !query 11126 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 11126 schema -struct> --- !query 11126 output -{1:1.0,2:2.0} - - --- !query 11127 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 11127 schema -struct> --- !query 11127 output -{1:1.0,2:2.0} - - --- !query 11128 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 11128 schema -struct> --- !query 11128 output -{1:1.0,2:2.0} - - --- !query 11129 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 11129 schema -struct> --- !query 11129 output -{1:1.0,2:2.0} - - --- !query 11130 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 11130 schema -struct> --- !query 11130 output -{1:1.0,2:2.0} - - --- !query 11131 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 11131 schema -struct> --- !query 11131 output -{1:1.0,2:2.0} - - --- !query 11132 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 11132 schema -struct> --- !query 11132 output -{1:"1.0",2:"2"} - - --- !query 11133 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 11133 schema -struct<> --- !query 11133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11134 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 11134 schema -struct<> --- !query 11134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11135 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11135 schema -struct<> --- !query 11135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11136 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11136 schema -struct<> --- !query 11136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11137 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 11137 schema -struct> --- !query 11137 output -{1.0:1.0,2.0:2.0} - - --- !query 11138 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 11138 schema -struct> --- !query 11138 output -{1.0:1.0,2.0:2.0} - - --- !query 11139 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 11139 schema -struct> --- !query 11139 output -{1.0:1.0,2.0:2.0} - - --- !query 11140 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 11140 schema -struct> --- !query 11140 output -{1.0:1.0,2.0:2.0} - - --- !query 11141 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 11141 schema -struct> --- !query 11141 output -{1.0:1.0,2.0:2.0} - - --- !query 11142 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 11142 schema -struct> --- !query 11142 output -{1.0:1.0,2.0:2.0} - - --- !query 11143 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 11143 schema -struct> --- !query 11143 output -{1.0:1.0,2.0:2.0} - - --- !query 11144 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 11144 schema -struct> --- !query 11144 output -{1.0:"1.0",2.0:"2"} - - --- !query 11145 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 11145 schema -struct<> --- !query 11145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11146 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 11146 schema -struct<> --- !query 11146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11147 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11147 schema -struct<> --- !query 11147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11148 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11148 schema -struct<> --- !query 11148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11149 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 11149 schema -struct> --- !query 11149 output -{1.0:1.0,2.0:2.0} - - --- !query 11150 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 11150 schema -struct> --- !query 11150 output -{1.0:1.0,2.0:2.0} - - --- !query 11151 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 11151 schema -struct> --- !query 11151 output -{1.0:1.0,2.0:2.0} - - --- !query 11152 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 11152 schema -struct> --- !query 11152 output -{1.0:1.0,2.0:2.0} - - --- !query 11153 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 11153 schema -struct> --- !query 11153 output -{1.0:1.0,2.0:2.0} - - --- !query 11154 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 11154 schema -struct> --- !query 11154 output -{1.0:1.0,2.0:2.0} - - --- !query 11155 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 11155 schema -struct> --- !query 11155 output -{1.0:1.0,2.0:2.0} - - --- !query 11156 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 11156 schema -struct> --- !query 11156 output -{1.0:"1.0",2.0:"2"} - - --- !query 11157 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 11157 schema -struct<> --- !query 11157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11158 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 11158 schema -struct<> --- !query 11158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11159 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11159 schema -struct<> --- !query 11159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11160 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11160 schema -struct<> --- !query 11160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11161 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 11161 schema -struct> --- !query 11161 output -{1:1.0,2:2.0} - - --- !query 11162 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 11162 schema -struct> --- !query 11162 output -{1:1.0,2:2.0} - - --- !query 11163 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 11163 schema -struct> --- !query 11163 output -{1:1.0,2:2.0} - - --- !query 11164 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 11164 schema -struct> --- !query 11164 output -{1:1.0,2:2.0} - - --- !query 11165 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 11165 schema -struct> --- !query 11165 output -{1:1.0,2:2.0} - - --- !query 11166 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 11166 schema -struct> --- !query 11166 output -{1:1.0,2:2.0} - - --- !query 11167 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 11167 schema -struct> --- !query 11167 output -{1:1.0,2:2.0} - - --- !query 11168 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 11168 schema -struct> --- !query 11168 output -{1:"1.0",2:"2"} - - --- !query 11169 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 11169 schema -struct<> --- !query 11169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11170 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 11170 schema -struct<> --- !query 11170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11171 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11171 schema -struct<> --- !query 11171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11172 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11172 schema -struct<> --- !query 11172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11173 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 11173 schema -struct> --- !query 11173 output -{"1":1.0,"2":2.0} - - --- !query 11174 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 11174 schema -struct> --- !query 11174 output -{"1":1.0,"2":2.0} - - --- !query 11175 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 11175 schema -struct> --- !query 11175 output -{"1":1.0,"2":2.0} - - --- !query 11176 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 11176 schema -struct> --- !query 11176 output -{"1":1.0,"2":2.0} - - --- !query 11177 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 11177 schema -struct> --- !query 11177 output -{"1":1.0,"2":2.0} - - --- !query 11178 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 11178 schema -struct> --- !query 11178 output -{"1":1.0,"2":2.0} - - --- !query 11179 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 11179 schema -struct> --- !query 11179 output -{"1":1.0,"2":2.0} - - --- !query 11180 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 11180 schema -struct> --- !query 11180 output -{"1":"1.0","2":"2"} - - --- !query 11181 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 11181 schema -struct<> --- !query 11181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 11182 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 11182 schema -struct<> --- !query 11182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 11183 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11183 schema -struct<> --- !query 11183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 11184 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11184 schema -struct<> --- !query 11184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 11185 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 11185 schema -struct<> --- !query 11185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11186 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 11186 schema -struct<> --- !query 11186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11187 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 11187 schema -struct<> --- !query 11187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11188 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 11188 schema -struct<> --- !query 11188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11189 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 11189 schema -struct<> --- !query 11189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11190 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 11190 schema -struct<> --- !query 11190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11191 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 11191 schema -struct<> --- !query 11191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11192 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 11192 schema -struct<> --- !query 11192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11193 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 11193 schema -struct<> --- !query 11193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11194 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 11194 schema -struct<> --- !query 11194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11195 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11195 schema -struct<> --- !query 11195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11196 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11196 schema -struct<> --- !query 11196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11197 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 11197 schema -struct<> --- !query 11197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11198 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 11198 schema -struct<> --- !query 11198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11199 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 11199 schema -struct<> --- !query 11199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11200 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 11200 schema -struct<> --- !query 11200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11201 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 11201 schema -struct<> --- !query 11201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11202 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 11202 schema -struct<> --- !query 11202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11203 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 11203 schema -struct<> --- !query 11203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11204 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 11204 schema -struct<> --- !query 11204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11205 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 11205 schema -struct<> --- !query 11205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11206 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 11206 schema -struct<> --- !query 11206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11207 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11207 schema -struct<> --- !query 11207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11208 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11208 schema -struct<> --- !query 11208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11209 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 11209 schema -struct<> --- !query 11209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11210 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 11210 schema -struct<> --- !query 11210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11211 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 11211 schema -struct<> --- !query 11211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11212 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 11212 schema -struct<> --- !query 11212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11213 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 11213 schema -struct<> --- !query 11213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11214 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 11214 schema -struct<> --- !query 11214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11215 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 11215 schema -struct<> --- !query 11215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11216 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 11216 schema -struct<> --- !query 11216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11217 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 11217 schema -struct<> --- !query 11217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11218 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 11218 schema -struct<> --- !query 11218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11219 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11219 schema -struct<> --- !query 11219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11220 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11220 schema -struct<> --- !query 11220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11221 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 11221 schema -struct<> --- !query 11221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11222 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 11222 schema -struct<> --- !query 11222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11223 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 11223 schema -struct<> --- !query 11223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11224 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 11224 schema -struct<> --- !query 11224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11225 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 11225 schema -struct<> --- !query 11225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11226 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 11226 schema -struct<> --- !query 11226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11227 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 11227 schema -struct<> --- !query 11227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11228 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 11228 schema -struct<> --- !query 11228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11229 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 11229 schema -struct<> --- !query 11229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11230 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 11230 schema -struct<> --- !query 11230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11231 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11231 schema -struct<> --- !query 11231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11232 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11232 schema -struct<> --- !query 11232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11233 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 11233 schema -struct> --- !query 11233 output -{1:1.0,2:2.0} - - --- !query 11234 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 11234 schema -struct> --- !query 11234 output -{1:1.0,2:2.0} - - --- !query 11235 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 11235 schema -struct> --- !query 11235 output -{1:1.0,2:2.0} - - --- !query 11236 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 11236 schema -struct> --- !query 11236 output -{1:1.0,2:2.0} - - --- !query 11237 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 11237 schema -struct> --- !query 11237 output -{1:1.0,2:2.0} - - --- !query 11238 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 11238 schema -struct> --- !query 11238 output -{1:1.0,2:2.0} - - --- !query 11239 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 11239 schema -struct> --- !query 11239 output -{1:1.0,2:2.0} - - --- !query 11240 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 11240 schema -struct> --- !query 11240 output -{1:"1.0",2:"2"} - - --- !query 11241 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 11241 schema -struct<> --- !query 11241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11242 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 11242 schema -struct<> --- !query 11242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11243 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11243 schema -struct<> --- !query 11243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11244 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11244 schema -struct<> --- !query 11244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11245 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 11245 schema -struct> --- !query 11245 output -{1:1.0,2:2.0} - - --- !query 11246 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 11246 schema -struct> --- !query 11246 output -{1:1.0,2:2.0} - - --- !query 11247 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 11247 schema -struct> --- !query 11247 output -{1:1.0,2:2.0} - - --- !query 11248 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 11248 schema -struct> --- !query 11248 output -{1:1.0,2:2.0} - - --- !query 11249 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 11249 schema -struct> --- !query 11249 output -{1:1.0,2:2.0} - - --- !query 11250 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 11250 schema -struct> --- !query 11250 output -{1:1.0,2:2.0} - - --- !query 11251 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 11251 schema -struct> --- !query 11251 output -{1:1.0,2:2.0} - - --- !query 11252 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 11252 schema -struct> --- !query 11252 output -{1:"1.0",2:"2"} - - --- !query 11253 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 11253 schema -struct<> --- !query 11253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11254 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 11254 schema -struct<> --- !query 11254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11255 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11255 schema -struct<> --- !query 11255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11256 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11256 schema -struct<> --- !query 11256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11257 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 11257 schema -struct> --- !query 11257 output -{1:1.0,2:2.0} - - --- !query 11258 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 11258 schema -struct> --- !query 11258 output -{1:1.0,2:2.0} - - --- !query 11259 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 11259 schema -struct> --- !query 11259 output -{1:1.0,2:2.0} - - --- !query 11260 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 11260 schema -struct> --- !query 11260 output -{1:1.0,2:2.0} - - --- !query 11261 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 11261 schema -struct> --- !query 11261 output -{1:1.0,2:2.0} - - --- !query 11262 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 11262 schema -struct> --- !query 11262 output -{1:1.0,2:2.0} - - --- !query 11263 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 11263 schema -struct> --- !query 11263 output -{1:1.0,2:2.0} - - --- !query 11264 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 11264 schema -struct> --- !query 11264 output -{1:"1.0",2:"2"} - - --- !query 11265 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 11265 schema -struct<> --- !query 11265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11266 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 11266 schema -struct<> --- !query 11266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11267 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11267 schema -struct<> --- !query 11267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11268 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11268 schema -struct<> --- !query 11268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11269 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 11269 schema -struct> --- !query 11269 output -{1:1.0,2:2.0} - - --- !query 11270 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 11270 schema -struct> --- !query 11270 output -{1:1.0,2:2.0} - - --- !query 11271 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 11271 schema -struct> --- !query 11271 output -{1:1.0,2:2.0} - - --- !query 11272 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 11272 schema -struct> --- !query 11272 output -{1:1.0,2:2.0} - - --- !query 11273 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 11273 schema -struct> --- !query 11273 output -{1:1.0,2:2.0} - - --- !query 11274 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 11274 schema -struct> --- !query 11274 output -{1:1.0,2:2.0} - - --- !query 11275 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 11275 schema -struct> --- !query 11275 output -{1:1.0,2:2.0} - - --- !query 11276 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 11276 schema -struct> --- !query 11276 output -{1:"1.0",2:"2"} - - --- !query 11277 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 11277 schema -struct<> --- !query 11277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11278 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 11278 schema -struct<> --- !query 11278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11279 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11279 schema -struct<> --- !query 11279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11280 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11280 schema -struct<> --- !query 11280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11281 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 11281 schema -struct> --- !query 11281 output -{1.0:1.0,2.0:2.0} - - --- !query 11282 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 11282 schema -struct> --- !query 11282 output -{1.0:1.0,2.0:2.0} - - --- !query 11283 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 11283 schema -struct> --- !query 11283 output -{1.0:1.0,2.0:2.0} - - --- !query 11284 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 11284 schema -struct> --- !query 11284 output -{1.0:1.0,2.0:2.0} - - --- !query 11285 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 11285 schema -struct> --- !query 11285 output -{1.0:1.0,2.0:2.0} - - --- !query 11286 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 11286 schema -struct> --- !query 11286 output -{1.0:1.0,2.0:2.0} - - --- !query 11287 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 11287 schema -struct> --- !query 11287 output -{1.0:1.0,2.0:2.0} - - --- !query 11288 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 11288 schema -struct> --- !query 11288 output -{1.0:"1.0",2.0:"2"} - - --- !query 11289 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 11289 schema -struct<> --- !query 11289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11290 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 11290 schema -struct<> --- !query 11290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11291 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11291 schema -struct<> --- !query 11291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11292 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11292 schema -struct<> --- !query 11292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11293 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 11293 schema -struct> --- !query 11293 output -{1.0:1.0,2.0:2.0} - - --- !query 11294 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 11294 schema -struct> --- !query 11294 output -{1.0:1.0,2.0:2.0} - - --- !query 11295 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 11295 schema -struct> --- !query 11295 output -{1.0:1.0,2.0:2.0} - - --- !query 11296 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 11296 schema -struct> --- !query 11296 output -{1.0:1.0,2.0:2.0} - - --- !query 11297 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 11297 schema -struct> --- !query 11297 output -{1.0:1.0,2.0:2.0} - - --- !query 11298 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 11298 schema -struct> --- !query 11298 output -{1.0:1.0,2.0:2.0} - - --- !query 11299 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 11299 schema -struct> --- !query 11299 output -{1.0:1.0,2.0:2.0} - - --- !query 11300 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 11300 schema -struct> --- !query 11300 output -{1.0:"1.0",2.0:"2"} - - --- !query 11301 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 11301 schema -struct<> --- !query 11301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11302 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 11302 schema -struct<> --- !query 11302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11303 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11303 schema -struct<> --- !query 11303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11304 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11304 schema -struct<> --- !query 11304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11305 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 11305 schema -struct> --- !query 11305 output -{1:1.0,2:2.0} - - --- !query 11306 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 11306 schema -struct> --- !query 11306 output -{1:1.0,2:2.0} - - --- !query 11307 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 11307 schema -struct> --- !query 11307 output -{1:1.0,2:2.0} - - --- !query 11308 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 11308 schema -struct> --- !query 11308 output -{1:1.0,2:2.0} - - --- !query 11309 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 11309 schema -struct> --- !query 11309 output -{1:1.0,2:2.0} - - --- !query 11310 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 11310 schema -struct> --- !query 11310 output -{1:1.0,2:2.0} - - --- !query 11311 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 11311 schema -struct> --- !query 11311 output -{1:1.0,2:2.0} - - --- !query 11312 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 11312 schema -struct> --- !query 11312 output -{1:"1.0",2:"2"} - - --- !query 11313 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 11313 schema -struct<> --- !query 11313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11314 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 11314 schema -struct<> --- !query 11314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11315 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11315 schema -struct<> --- !query 11315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11316 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11316 schema -struct<> --- !query 11316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11317 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 11317 schema -struct> --- !query 11317 output -{"1":1.0,"2":2.0} - - --- !query 11318 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 11318 schema -struct> --- !query 11318 output -{"1":1.0,"2":2.0} - - --- !query 11319 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 11319 schema -struct> --- !query 11319 output -{"1":1.0,"2":2.0} - - --- !query 11320 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 11320 schema -struct> --- !query 11320 output -{"1":1.0,"2":2.0} - - --- !query 11321 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 11321 schema -struct> --- !query 11321 output -{"1":1.0,"2":2.0} - - --- !query 11322 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 11322 schema -struct> --- !query 11322 output -{"1":1.0,"2":2.0} - - --- !query 11323 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 11323 schema -struct> --- !query 11323 output -{"1":1.0,"2":2.0} - - --- !query 11324 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 11324 schema -struct> --- !query 11324 output -{"1":"1.0","2":"2"} - - --- !query 11325 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 11325 schema -struct<> --- !query 11325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 11326 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 11326 schema -struct<> --- !query 11326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 11327 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11327 schema -struct<> --- !query 11327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 11328 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11328 schema -struct<> --- !query 11328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 11329 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 11329 schema -struct<> --- !query 11329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11330 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 11330 schema -struct<> --- !query 11330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11331 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 11331 schema -struct<> --- !query 11331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11332 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 11332 schema -struct<> --- !query 11332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11333 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 11333 schema -struct<> --- !query 11333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11334 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 11334 schema -struct<> --- !query 11334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11335 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 11335 schema -struct<> --- !query 11335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11336 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 11336 schema -struct<> --- !query 11336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11337 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 11337 schema -struct<> --- !query 11337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11338 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 11338 schema -struct<> --- !query 11338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11339 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11339 schema -struct<> --- !query 11339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11340 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11340 schema -struct<> --- !query 11340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11341 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 11341 schema -struct<> --- !query 11341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11342 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 11342 schema -struct<> --- !query 11342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11343 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 11343 schema -struct<> --- !query 11343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11344 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 11344 schema -struct<> --- !query 11344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11345 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 11345 schema -struct<> --- !query 11345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11346 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 11346 schema -struct<> --- !query 11346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11347 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 11347 schema -struct<> --- !query 11347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11348 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 11348 schema -struct<> --- !query 11348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11349 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 11349 schema -struct<> --- !query 11349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11350 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 11350 schema -struct<> --- !query 11350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11351 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11351 schema -struct<> --- !query 11351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11352 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11352 schema -struct<> --- !query 11352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11353 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 11353 schema -struct<> --- !query 11353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11354 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 11354 schema -struct<> --- !query 11354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11355 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 11355 schema -struct<> --- !query 11355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11356 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 11356 schema -struct<> --- !query 11356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11357 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 11357 schema -struct<> --- !query 11357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11358 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 11358 schema -struct<> --- !query 11358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11359 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 11359 schema -struct<> --- !query 11359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11360 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 11360 schema -struct<> --- !query 11360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11361 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 11361 schema -struct<> --- !query 11361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11362 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 11362 schema -struct<> --- !query 11362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11363 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11363 schema -struct<> --- !query 11363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11364 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11364 schema -struct<> --- !query 11364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11365 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 11365 schema -struct<> --- !query 11365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11366 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 11366 schema -struct<> --- !query 11366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11367 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 11367 schema -struct<> --- !query 11367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11368 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 11368 schema -struct<> --- !query 11368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11369 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 11369 schema -struct<> --- !query 11369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11370 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 11370 schema -struct<> --- !query 11370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11371 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 11371 schema -struct<> --- !query 11371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11372 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 11372 schema -struct<> --- !query 11372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11373 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 11373 schema -struct<> --- !query 11373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11374 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 11374 schema -struct<> --- !query 11374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11375 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11375 schema -struct<> --- !query 11375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11376 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11376 schema -struct<> --- !query 11376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11377 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 11377 schema -struct> --- !query 11377 output -{1:1,2:2} - - --- !query 11378 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 11378 schema -struct> --- !query 11378 output -{1:1,2:2} - - --- !query 11379 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 11379 schema -struct> --- !query 11379 output -{1:1,2:2} - - --- !query 11380 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 11380 schema -struct> --- !query 11380 output -{1:1,2:2} - - --- !query 11381 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 11381 schema -struct> --- !query 11381 output -{1:1.0,2:2.0} - - --- !query 11382 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 11382 schema -struct> --- !query 11382 output -{1:1.0,2:2.0} - - --- !query 11383 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 11383 schema -struct> --- !query 11383 output -{1:1,2:2} - - --- !query 11384 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 11384 schema -struct> --- !query 11384 output -{1:"1",2:"2"} - - --- !query 11385 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 11385 schema -struct<> --- !query 11385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11386 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 11386 schema -struct<> --- !query 11386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11387 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11387 schema -struct<> --- !query 11387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11388 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11388 schema -struct<> --- !query 11388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11389 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 11389 schema -struct> --- !query 11389 output -{1:1,2:2} - - --- !query 11390 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 11390 schema -struct> --- !query 11390 output -{1:1,2:2} - - --- !query 11391 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 11391 schema -struct> --- !query 11391 output -{1:1,2:2} - - --- !query 11392 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 11392 schema -struct> --- !query 11392 output -{1:1,2:2} - - --- !query 11393 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 11393 schema -struct> --- !query 11393 output -{1:1.0,2:2.0} - - --- !query 11394 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 11394 schema -struct> --- !query 11394 output -{1:1.0,2:2.0} - - --- !query 11395 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 11395 schema -struct> --- !query 11395 output -{1:1,2:2} - - --- !query 11396 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 11396 schema -struct> --- !query 11396 output -{1:"1",2:"2"} - - --- !query 11397 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 11397 schema -struct<> --- !query 11397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11398 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 11398 schema -struct<> --- !query 11398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11399 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11399 schema -struct<> --- !query 11399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11400 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11400 schema -struct<> --- !query 11400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11401 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 11401 schema -struct> --- !query 11401 output -{1:1,2:2} - - --- !query 11402 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 11402 schema -struct> --- !query 11402 output -{1:1,2:2} - - --- !query 11403 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 11403 schema -struct> --- !query 11403 output -{1:1,2:2} - - --- !query 11404 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 11404 schema -struct> --- !query 11404 output -{1:1,2:2} - - --- !query 11405 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 11405 schema -struct> --- !query 11405 output -{1:1.0,2:2.0} - - --- !query 11406 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 11406 schema -struct> --- !query 11406 output -{1:1.0,2:2.0} - - --- !query 11407 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 11407 schema -struct> --- !query 11407 output -{1:1,2:2} - - --- !query 11408 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 11408 schema -struct> --- !query 11408 output -{1:"1",2:"2"} - - --- !query 11409 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 11409 schema -struct<> --- !query 11409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11410 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 11410 schema -struct<> --- !query 11410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11411 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11411 schema -struct<> --- !query 11411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11412 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11412 schema -struct<> --- !query 11412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11413 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 11413 schema -struct> --- !query 11413 output -{1:1,2:2} - - --- !query 11414 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 11414 schema -struct> --- !query 11414 output -{1:1,2:2} - - --- !query 11415 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 11415 schema -struct> --- !query 11415 output -{1:1,2:2} - - --- !query 11416 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 11416 schema -struct> --- !query 11416 output -{1:1,2:2} - - --- !query 11417 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 11417 schema -struct> --- !query 11417 output -{1:1.0,2:2.0} - - --- !query 11418 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 11418 schema -struct> --- !query 11418 output -{1:1.0,2:2.0} - - --- !query 11419 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 11419 schema -struct> --- !query 11419 output -{1:1,2:2} - - --- !query 11420 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 11420 schema -struct> --- !query 11420 output -{1:"1",2:"2"} - - --- !query 11421 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 11421 schema -struct<> --- !query 11421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11422 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 11422 schema -struct<> --- !query 11422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11423 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11423 schema -struct<> --- !query 11423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11424 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11424 schema -struct<> --- !query 11424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11425 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 11425 schema -struct> --- !query 11425 output -{1.0:1,2.0:2} - - --- !query 11426 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 11426 schema -struct> --- !query 11426 output -{1.0:1,2.0:2} - - --- !query 11427 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 11427 schema -struct> --- !query 11427 output -{1.0:1,2.0:2} - - --- !query 11428 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 11428 schema -struct> --- !query 11428 output -{1.0:1,2.0:2} - - --- !query 11429 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 11429 schema -struct> --- !query 11429 output -{1.0:1.0,2.0:2.0} - - --- !query 11430 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 11430 schema -struct> --- !query 11430 output -{1.0:1.0,2.0:2.0} - - --- !query 11431 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 11431 schema -struct> --- !query 11431 output -{1.0:1,2.0:2} - - --- !query 11432 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 11432 schema -struct> --- !query 11432 output -{1.0:"1",2.0:"2"} - - --- !query 11433 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 11433 schema -struct<> --- !query 11433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11434 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 11434 schema -struct<> --- !query 11434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11435 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11435 schema -struct<> --- !query 11435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11436 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11436 schema -struct<> --- !query 11436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11437 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 11437 schema -struct> --- !query 11437 output -{1.0:1,2.0:2} - - --- !query 11438 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 11438 schema -struct> --- !query 11438 output -{1.0:1,2.0:2} - - --- !query 11439 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 11439 schema -struct> --- !query 11439 output -{1.0:1,2.0:2} - - --- !query 11440 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 11440 schema -struct> --- !query 11440 output -{1.0:1,2.0:2} - - --- !query 11441 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 11441 schema -struct> --- !query 11441 output -{1.0:1.0,2.0:2.0} - - --- !query 11442 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 11442 schema -struct> --- !query 11442 output -{1.0:1.0,2.0:2.0} - - --- !query 11443 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 11443 schema -struct> --- !query 11443 output -{1.0:1,2.0:2} - - --- !query 11444 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 11444 schema -struct> --- !query 11444 output -{1.0:"1",2.0:"2"} - - --- !query 11445 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 11445 schema -struct<> --- !query 11445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11446 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 11446 schema -struct<> --- !query 11446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11447 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11447 schema -struct<> --- !query 11447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11448 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11448 schema -struct<> --- !query 11448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11449 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 11449 schema -struct> --- !query 11449 output -{1:1,2:2} - - --- !query 11450 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 11450 schema -struct> --- !query 11450 output -{1:1,2:2} - - --- !query 11451 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 11451 schema -struct> --- !query 11451 output -{1:1,2:2} - - --- !query 11452 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 11452 schema -struct> --- !query 11452 output -{1:1,2:2} - - --- !query 11453 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 11453 schema -struct> --- !query 11453 output -{1:1.0,2:2.0} - - --- !query 11454 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 11454 schema -struct> --- !query 11454 output -{1:1.0,2:2.0} - - --- !query 11455 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 11455 schema -struct> --- !query 11455 output -{1:1,2:2} - - --- !query 11456 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 11456 schema -struct> --- !query 11456 output -{1:"1",2:"2"} - - --- !query 11457 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 11457 schema -struct<> --- !query 11457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11458 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 11458 schema -struct<> --- !query 11458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11459 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11459 schema -struct<> --- !query 11459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11460 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11460 schema -struct<> --- !query 11460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11461 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 11461 schema -struct> --- !query 11461 output -{"1":1,"2":2} - - --- !query 11462 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 11462 schema -struct> --- !query 11462 output -{"1":1,"2":2} - - --- !query 11463 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 11463 schema -struct> --- !query 11463 output -{"1":1,"2":2} - - --- !query 11464 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 11464 schema -struct> --- !query 11464 output -{"1":1,"2":2} - - --- !query 11465 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 11465 schema -struct> --- !query 11465 output -{"1":1.0,"2":2.0} - - --- !query 11466 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 11466 schema -struct> --- !query 11466 output -{"1":1.0,"2":2.0} - - --- !query 11467 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 11467 schema -struct> --- !query 11467 output -{"1":1,"2":2} - - --- !query 11468 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 11468 schema -struct> --- !query 11468 output -{"1":"1","2":"2"} - - --- !query 11469 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 11469 schema -struct<> --- !query 11469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11470 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 11470 schema -struct<> --- !query 11470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11471 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11471 schema -struct<> --- !query 11471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11472 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11472 schema -struct<> --- !query 11472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11473 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 11473 schema -struct<> --- !query 11473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11474 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 11474 schema -struct<> --- !query 11474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11475 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 11475 schema -struct<> --- !query 11475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11476 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 11476 schema -struct<> --- !query 11476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11477 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 11477 schema -struct<> --- !query 11477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11478 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 11478 schema -struct<> --- !query 11478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11479 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 11479 schema -struct<> --- !query 11479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11480 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 11480 schema -struct<> --- !query 11480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11481 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 11481 schema -struct<> --- !query 11481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11482 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 11482 schema -struct<> --- !query 11482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11483 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11483 schema -struct<> --- !query 11483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11484 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11484 schema -struct<> --- !query 11484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11485 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 11485 schema -struct<> --- !query 11485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11486 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 11486 schema -struct<> --- !query 11486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11487 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 11487 schema -struct<> --- !query 11487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11488 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 11488 schema -struct<> --- !query 11488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11489 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 11489 schema -struct<> --- !query 11489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11490 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 11490 schema -struct<> --- !query 11490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11491 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 11491 schema -struct<> --- !query 11491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11492 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 11492 schema -struct<> --- !query 11492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11493 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 11493 schema -struct<> --- !query 11493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11494 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 11494 schema -struct<> --- !query 11494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11495 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11495 schema -struct<> --- !query 11495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11496 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11496 schema -struct<> --- !query 11496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11497 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 11497 schema -struct<> --- !query 11497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11498 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 11498 schema -struct<> --- !query 11498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11499 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 11499 schema -struct<> --- !query 11499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11500 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 11500 schema -struct<> --- !query 11500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11501 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 11501 schema -struct<> --- !query 11501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11502 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 11502 schema -struct<> --- !query 11502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11503 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 11503 schema -struct<> --- !query 11503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11504 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 11504 schema -struct<> --- !query 11504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11505 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 11505 schema -struct<> --- !query 11505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11506 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 11506 schema -struct<> --- !query 11506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11507 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11507 schema -struct<> --- !query 11507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11508 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11508 schema -struct<> --- !query 11508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11509 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 11509 schema -struct<> --- !query 11509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11510 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 11510 schema -struct<> --- !query 11510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11511 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 11511 schema -struct<> --- !query 11511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11512 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 11512 schema -struct<> --- !query 11512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11513 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 11513 schema -struct<> --- !query 11513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11514 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 11514 schema -struct<> --- !query 11514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11515 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 11515 schema -struct<> --- !query 11515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11516 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 11516 schema -struct<> --- !query 11516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11517 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 11517 schema -struct<> --- !query 11517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11518 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 11518 schema -struct<> --- !query 11518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11519 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11519 schema -struct<> --- !query 11519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11520 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11520 schema -struct<> --- !query 11520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11521 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 11521 schema -struct> --- !query 11521 output -{1:"1",2:"2"} - - --- !query 11522 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 11522 schema -struct> --- !query 11522 output -{1:"1",2:"2"} - - --- !query 11523 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 11523 schema -struct> --- !query 11523 output -{1:"1",2:"2"} - - --- !query 11524 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 11524 schema -struct> --- !query 11524 output -{1:"1",2:"2"} - - --- !query 11525 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 11525 schema -struct> --- !query 11525 output -{1:"1",2:"2.0"} - - --- !query 11526 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 11526 schema -struct> --- !query 11526 output -{1:"1",2:"2.0"} - - --- !query 11527 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 11527 schema -struct> --- !query 11527 output -{1:"1",2:"2"} - - --- !query 11528 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 11528 schema -struct> --- !query 11528 output -{1:"1",2:"2"} - - --- !query 11529 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 11529 schema -struct<> --- !query 11529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11530 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 11530 schema -struct<> --- !query 11530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11531 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11531 schema -struct> --- !query 11531 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 11532 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11532 schema -struct> --- !query 11532 output -{1:"1",2:"2017-12-12"} - - --- !query 11533 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 11533 schema -struct> --- !query 11533 output -{1:"1",2:"2"} - - --- !query 11534 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 11534 schema -struct> --- !query 11534 output -{1:"1",2:"2"} - - --- !query 11535 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 11535 schema -struct> --- !query 11535 output -{1:"1",2:"2"} - - --- !query 11536 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 11536 schema -struct> --- !query 11536 output -{1:"1",2:"2"} - - --- !query 11537 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 11537 schema -struct> --- !query 11537 output -{1:"1",2:"2.0"} - - --- !query 11538 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 11538 schema -struct> --- !query 11538 output -{1:"1",2:"2.0"} - - --- !query 11539 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 11539 schema -struct> --- !query 11539 output -{1:"1",2:"2"} - - --- !query 11540 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 11540 schema -struct> --- !query 11540 output -{1:"1",2:"2"} - - --- !query 11541 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 11541 schema -struct<> --- !query 11541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11542 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 11542 schema -struct<> --- !query 11542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11543 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11543 schema -struct> --- !query 11543 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 11544 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11544 schema -struct> --- !query 11544 output -{1:"1",2:"2017-12-12"} - - --- !query 11545 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 11545 schema -struct> --- !query 11545 output -{1:"1",2:"2"} - - --- !query 11546 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 11546 schema -struct> --- !query 11546 output -{1:"1",2:"2"} - - --- !query 11547 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 11547 schema -struct> --- !query 11547 output -{1:"1",2:"2"} - - --- !query 11548 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 11548 schema -struct> --- !query 11548 output -{1:"1",2:"2"} - - --- !query 11549 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 11549 schema -struct> --- !query 11549 output -{1:"1",2:"2.0"} - - --- !query 11550 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 11550 schema -struct> --- !query 11550 output -{1:"1",2:"2.0"} - - --- !query 11551 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 11551 schema -struct> --- !query 11551 output -{1:"1",2:"2"} - - --- !query 11552 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 11552 schema -struct> --- !query 11552 output -{1:"1",2:"2"} - - --- !query 11553 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 11553 schema -struct<> --- !query 11553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11554 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 11554 schema -struct<> --- !query 11554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11555 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11555 schema -struct> --- !query 11555 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 11556 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11556 schema -struct> --- !query 11556 output -{1:"1",2:"2017-12-12"} - - --- !query 11557 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 11557 schema -struct> --- !query 11557 output -{1:"1",2:"2"} - - --- !query 11558 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 11558 schema -struct> --- !query 11558 output -{1:"1",2:"2"} - - --- !query 11559 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 11559 schema -struct> --- !query 11559 output -{1:"1",2:"2"} - - --- !query 11560 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 11560 schema -struct> --- !query 11560 output -{1:"1",2:"2"} - - --- !query 11561 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 11561 schema -struct> --- !query 11561 output -{1:"1",2:"2.0"} - - --- !query 11562 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 11562 schema -struct> --- !query 11562 output -{1:"1",2:"2.0"} - - --- !query 11563 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 11563 schema -struct> --- !query 11563 output -{1:"1",2:"2"} - - --- !query 11564 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 11564 schema -struct> --- !query 11564 output -{1:"1",2:"2"} - - --- !query 11565 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 11565 schema -struct<> --- !query 11565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11566 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 11566 schema -struct<> --- !query 11566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11567 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11567 schema -struct> --- !query 11567 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 11568 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11568 schema -struct> --- !query 11568 output -{1:"1",2:"2017-12-12"} - - --- !query 11569 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 11569 schema -struct> --- !query 11569 output -{1.0:"1",2.0:"2"} - - --- !query 11570 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 11570 schema -struct> --- !query 11570 output -{1.0:"1",2.0:"2"} - - --- !query 11571 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 11571 schema -struct> --- !query 11571 output -{1.0:"1",2.0:"2"} - - --- !query 11572 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 11572 schema -struct> --- !query 11572 output -{1.0:"1",2.0:"2"} - - --- !query 11573 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 11573 schema -struct> --- !query 11573 output -{1.0:"1",2.0:"2.0"} - - --- !query 11574 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 11574 schema -struct> --- !query 11574 output -{1.0:"1",2.0:"2.0"} - - --- !query 11575 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 11575 schema -struct> --- !query 11575 output -{1.0:"1",2.0:"2"} - - --- !query 11576 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 11576 schema -struct> --- !query 11576 output -{1.0:"1",2.0:"2"} - - --- !query 11577 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 11577 schema -struct<> --- !query 11577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11578 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 11578 schema -struct<> --- !query 11578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11579 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11579 schema -struct> --- !query 11579 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 11580 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11580 schema -struct> --- !query 11580 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 11581 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 11581 schema -struct> --- !query 11581 output -{1.0:"1",2.0:"2"} - - --- !query 11582 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 11582 schema -struct> --- !query 11582 output -{1.0:"1",2.0:"2"} - - --- !query 11583 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 11583 schema -struct> --- !query 11583 output -{1.0:"1",2.0:"2"} - - --- !query 11584 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 11584 schema -struct> --- !query 11584 output -{1.0:"1",2.0:"2"} - - --- !query 11585 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 11585 schema -struct> --- !query 11585 output -{1.0:"1",2.0:"2.0"} - - --- !query 11586 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 11586 schema -struct> --- !query 11586 output -{1.0:"1",2.0:"2.0"} - - --- !query 11587 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 11587 schema -struct> --- !query 11587 output -{1.0:"1",2.0:"2"} - - --- !query 11588 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 11588 schema -struct> --- !query 11588 output -{1.0:"1",2.0:"2"} - - --- !query 11589 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 11589 schema -struct<> --- !query 11589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11590 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 11590 schema -struct<> --- !query 11590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11591 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11591 schema -struct> --- !query 11591 output -{1.0:"1",2.0:"2017-12-12 09:30:00"} - - --- !query 11592 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11592 schema -struct> --- !query 11592 output -{1.0:"1",2.0:"2017-12-12"} - - --- !query 11593 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 11593 schema -struct> --- !query 11593 output -{1:"1",2:"2"} - - --- !query 11594 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 11594 schema -struct> --- !query 11594 output -{1:"1",2:"2"} - - --- !query 11595 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 11595 schema -struct> --- !query 11595 output -{1:"1",2:"2"} - - --- !query 11596 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 11596 schema -struct> --- !query 11596 output -{1:"1",2:"2"} - - --- !query 11597 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 11597 schema -struct> --- !query 11597 output -{1:"1",2:"2.0"} - - --- !query 11598 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 11598 schema -struct> --- !query 11598 output -{1:"1",2:"2.0"} - - --- !query 11599 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 11599 schema -struct> --- !query 11599 output -{1:"1",2:"2"} - - --- !query 11600 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 11600 schema -struct> --- !query 11600 output -{1:"1",2:"2"} - - --- !query 11601 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 11601 schema -struct<> --- !query 11601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11602 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 11602 schema -struct<> --- !query 11602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11603 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11603 schema -struct> --- !query 11603 output -{1:"1",2:"2017-12-12 09:30:00"} - - --- !query 11604 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11604 schema -struct> --- !query 11604 output -{1:"1",2:"2017-12-12"} - - --- !query 11605 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 11605 schema -struct> --- !query 11605 output -{"1":"1","2":"2"} - - --- !query 11606 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 11606 schema -struct> --- !query 11606 output -{"1":"1","2":"2"} - - --- !query 11607 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 11607 schema -struct> --- !query 11607 output -{"1":"1","2":"2"} - - --- !query 11608 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 11608 schema -struct> --- !query 11608 output -{"1":"1","2":"2"} - - --- !query 11609 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 11609 schema -struct> --- !query 11609 output -{"1":"1","2":"2.0"} - - --- !query 11610 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 11610 schema -struct> --- !query 11610 output -{"1":"1","2":"2.0"} - - --- !query 11611 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 11611 schema -struct> --- !query 11611 output -{"1":"1","2":"2"} - - --- !query 11612 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 11612 schema -struct> --- !query 11612 output -{"1":"1","2":"2"} - - --- !query 11613 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 11613 schema -struct<> --- !query 11613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 11614 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 11614 schema -struct<> --- !query 11614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 11615 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11615 schema -struct> --- !query 11615 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 11616 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11616 schema -struct> --- !query 11616 output -{"1":"1","2":"2017-12-12"} - - --- !query 11617 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 11617 schema -struct<> --- !query 11617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11618 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 11618 schema -struct<> --- !query 11618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11619 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 11619 schema -struct<> --- !query 11619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11620 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 11620 schema -struct<> --- !query 11620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11621 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 11621 schema -struct<> --- !query 11621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11622 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 11622 schema -struct<> --- !query 11622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11623 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 11623 schema -struct<> --- !query 11623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11624 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 11624 schema -struct<> --- !query 11624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11625 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 11625 schema -struct<> --- !query 11625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11626 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 11626 schema -struct<> --- !query 11626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11627 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11627 schema -struct<> --- !query 11627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11628 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11628 schema -struct<> --- !query 11628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11629 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 11629 schema -struct<> --- !query 11629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11630 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 11630 schema -struct<> --- !query 11630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11631 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 11631 schema -struct<> --- !query 11631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11632 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 11632 schema -struct<> --- !query 11632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11633 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 11633 schema -struct<> --- !query 11633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11634 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 11634 schema -struct<> --- !query 11634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11635 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 11635 schema -struct<> --- !query 11635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11636 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 11636 schema -struct<> --- !query 11636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11637 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 11637 schema -struct<> --- !query 11637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11638 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 11638 schema -struct<> --- !query 11638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11639 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11639 schema -struct<> --- !query 11639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11640 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11640 schema -struct<> --- !query 11640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11641 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 11641 schema -struct<> --- !query 11641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11642 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 11642 schema -struct<> --- !query 11642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11643 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 11643 schema -struct<> --- !query 11643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11644 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 11644 schema -struct<> --- !query 11644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11645 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 11645 schema -struct<> --- !query 11645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11646 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 11646 schema -struct<> --- !query 11646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11647 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 11647 schema -struct<> --- !query 11647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11648 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 11648 schema -struct<> --- !query 11648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11649 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 11649 schema -struct<> --- !query 11649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11650 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 11650 schema -struct<> --- !query 11650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11651 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11651 schema -struct<> --- !query 11651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11652 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11652 schema -struct<> --- !query 11652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11653 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 11653 schema -struct<> --- !query 11653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11654 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 11654 schema -struct<> --- !query 11654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11655 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 11655 schema -struct<> --- !query 11655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11656 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 11656 schema -struct<> --- !query 11656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11657 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 11657 schema -struct<> --- !query 11657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11658 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 11658 schema -struct<> --- !query 11658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11659 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 11659 schema -struct<> --- !query 11659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11660 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 11660 schema -struct<> --- !query 11660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11661 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 11661 schema -struct<> --- !query 11661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11662 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 11662 schema -struct<> --- !query 11662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11663 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11663 schema -struct<> --- !query 11663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11664 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11664 schema -struct<> --- !query 11664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11665 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 11665 schema -struct<> --- !query 11665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11666 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 11666 schema -struct<> --- !query 11666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11667 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 11667 schema -struct<> --- !query 11667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11668 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 11668 schema -struct<> --- !query 11668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11669 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 11669 schema -struct<> --- !query 11669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11670 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 11670 schema -struct<> --- !query 11670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11671 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 11671 schema -struct<> --- !query 11671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11672 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 11672 schema -struct<> --- !query 11672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11673 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 11673 schema -struct> --- !query 11673 output -{1:[B@319d4f30,2:[B@6f57d6ab} - - --- !query 11674 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 11674 schema -struct<> --- !query 11674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11675 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11675 schema -struct<> --- !query 11675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11676 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11676 schema -struct<> --- !query 11676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11677 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 11677 schema -struct<> --- !query 11677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11678 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 11678 schema -struct<> --- !query 11678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11679 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 11679 schema -struct<> --- !query 11679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11680 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 11680 schema -struct<> --- !query 11680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11681 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 11681 schema -struct<> --- !query 11681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11682 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 11682 schema -struct<> --- !query 11682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11683 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 11683 schema -struct<> --- !query 11683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11684 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 11684 schema -struct<> --- !query 11684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11685 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 11685 schema -struct> --- !query 11685 output -{1:[B@7379355b,2:[B@31e36d1a} - - --- !query 11686 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 11686 schema -struct<> --- !query 11686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11687 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11687 schema -struct<> --- !query 11687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11688 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11688 schema -struct<> --- !query 11688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11689 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 11689 schema -struct<> --- !query 11689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11690 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 11690 schema -struct<> --- !query 11690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11691 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 11691 schema -struct<> --- !query 11691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11692 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 11692 schema -struct<> --- !query 11692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11693 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 11693 schema -struct<> --- !query 11693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11694 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 11694 schema -struct<> --- !query 11694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11695 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 11695 schema -struct<> --- !query 11695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11696 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 11696 schema -struct<> --- !query 11696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11697 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 11697 schema -struct> --- !query 11697 output -{1:[B@56f78c03,2:[B@4b80f61f} - - --- !query 11698 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 11698 schema -struct<> --- !query 11698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11699 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11699 schema -struct<> --- !query 11699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11700 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11700 schema -struct<> --- !query 11700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11701 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 11701 schema -struct<> --- !query 11701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11702 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 11702 schema -struct<> --- !query 11702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11703 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 11703 schema -struct<> --- !query 11703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11704 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 11704 schema -struct<> --- !query 11704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11705 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 11705 schema -struct<> --- !query 11705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11706 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 11706 schema -struct<> --- !query 11706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11707 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 11707 schema -struct<> --- !query 11707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11708 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 11708 schema -struct<> --- !query 11708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11709 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 11709 schema -struct> --- !query 11709 output -{1:[B@74068228,2:[B@745985d6} - - --- !query 11710 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 11710 schema -struct<> --- !query 11710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11711 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11711 schema -struct<> --- !query 11711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11712 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11712 schema -struct<> --- !query 11712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11713 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 11713 schema -struct<> --- !query 11713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11714 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 11714 schema -struct<> --- !query 11714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11715 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 11715 schema -struct<> --- !query 11715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11716 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 11716 schema -struct<> --- !query 11716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11717 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 11717 schema -struct<> --- !query 11717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11718 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 11718 schema -struct<> --- !query 11718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11719 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 11719 schema -struct<> --- !query 11719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11720 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 11720 schema -struct<> --- !query 11720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11721 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 11721 schema -struct> --- !query 11721 output -{1.0:[B@16313ad0,2.0:[B@6f63314e} - - --- !query 11722 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 11722 schema -struct<> --- !query 11722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11723 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11723 schema -struct<> --- !query 11723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11724 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11724 schema -struct<> --- !query 11724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11725 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 11725 schema -struct<> --- !query 11725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11726 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 11726 schema -struct<> --- !query 11726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11727 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 11727 schema -struct<> --- !query 11727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11728 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 11728 schema -struct<> --- !query 11728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11729 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 11729 schema -struct<> --- !query 11729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11730 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 11730 schema -struct<> --- !query 11730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11731 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 11731 schema -struct<> --- !query 11731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11732 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 11732 schema -struct<> --- !query 11732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11733 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 11733 schema -struct> --- !query 11733 output -{1.0:[B@5c4f4f26,2.0:[B@5877686b} - - --- !query 11734 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 11734 schema -struct<> --- !query 11734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11735 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11735 schema -struct<> --- !query 11735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11736 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11736 schema -struct<> --- !query 11736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11737 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 11737 schema -struct<> --- !query 11737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11738 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 11738 schema -struct<> --- !query 11738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11739 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 11739 schema -struct<> --- !query 11739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11740 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 11740 schema -struct<> --- !query 11740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11741 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 11741 schema -struct<> --- !query 11741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11742 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 11742 schema -struct<> --- !query 11742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11743 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 11743 schema -struct<> --- !query 11743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11744 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 11744 schema -struct<> --- !query 11744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11745 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 11745 schema -struct> --- !query 11745 output -{1:[B@4d8cd6c2,2:[B@163af4df} - - --- !query 11746 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 11746 schema -struct<> --- !query 11746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11747 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11747 schema -struct<> --- !query 11747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11748 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11748 schema -struct<> --- !query 11748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11749 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 11749 schema -struct<> --- !query 11749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 11750 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 11750 schema -struct<> --- !query 11750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 11751 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 11751 schema -struct<> --- !query 11751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 11752 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 11752 schema -struct<> --- !query 11752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 11753 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 11753 schema -struct<> --- !query 11753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 11754 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 11754 schema -struct<> --- !query 11754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 11755 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 11755 schema -struct<> --- !query 11755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 11756 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 11756 schema -struct<> --- !query 11756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 11757 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 11757 schema -struct> --- !query 11757 output -{"1":[B@439b9543,"2":[B@27706fcb} - - --- !query 11758 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 11758 schema -struct<> --- !query 11758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 11759 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11759 schema -struct<> --- !query 11759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 11760 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11760 schema -struct<> --- !query 11760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 11761 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 11761 schema -struct<> --- !query 11761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11762 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 11762 schema -struct<> --- !query 11762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11763 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 11763 schema -struct<> --- !query 11763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11764 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 11764 schema -struct<> --- !query 11764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11765 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 11765 schema -struct<> --- !query 11765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11766 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 11766 schema -struct<> --- !query 11766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11767 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 11767 schema -struct<> --- !query 11767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11768 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 11768 schema -struct<> --- !query 11768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11769 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 11769 schema -struct<> --- !query 11769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11770 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 11770 schema -struct<> --- !query 11770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11771 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11771 schema -struct<> --- !query 11771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11772 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11772 schema -struct<> --- !query 11772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11773 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 11773 schema -struct<> --- !query 11773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11774 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 11774 schema -struct<> --- !query 11774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11775 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 11775 schema -struct<> --- !query 11775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11776 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 11776 schema -struct<> --- !query 11776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11777 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 11777 schema -struct<> --- !query 11777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11778 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 11778 schema -struct<> --- !query 11778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11779 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 11779 schema -struct<> --- !query 11779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11780 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 11780 schema -struct<> --- !query 11780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11781 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 11781 schema -struct<> --- !query 11781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11782 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 11782 schema -struct<> --- !query 11782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11783 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11783 schema -struct<> --- !query 11783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11784 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11784 schema -struct<> --- !query 11784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11785 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 11785 schema -struct<> --- !query 11785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11786 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 11786 schema -struct<> --- !query 11786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11787 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 11787 schema -struct<> --- !query 11787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11788 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 11788 schema -struct<> --- !query 11788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11789 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 11789 schema -struct<> --- !query 11789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11790 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 11790 schema -struct<> --- !query 11790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11791 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 11791 schema -struct<> --- !query 11791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11792 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 11792 schema -struct<> --- !query 11792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11793 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 11793 schema -struct<> --- !query 11793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11794 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 11794 schema -struct<> --- !query 11794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11795 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11795 schema -struct<> --- !query 11795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11796 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11796 schema -struct<> --- !query 11796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11797 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 11797 schema -struct<> --- !query 11797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11798 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 11798 schema -struct<> --- !query 11798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11799 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 11799 schema -struct<> --- !query 11799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11800 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 11800 schema -struct<> --- !query 11800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11801 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 11801 schema -struct<> --- !query 11801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11802 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 11802 schema -struct<> --- !query 11802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11803 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 11803 schema -struct<> --- !query 11803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11804 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 11804 schema -struct<> --- !query 11804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11805 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 11805 schema -struct<> --- !query 11805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11806 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 11806 schema -struct<> --- !query 11806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11807 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11807 schema -struct<> --- !query 11807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11808 -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11808 schema -struct<> --- !query 11808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11809 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 11809 schema -struct<> --- !query 11809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11810 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 11810 schema -struct<> --- !query 11810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11811 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 11811 schema -struct<> --- !query 11811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11812 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 11812 schema -struct<> --- !query 11812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11813 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 11813 schema -struct<> --- !query 11813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11814 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 11814 schema -struct<> --- !query 11814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11815 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 11815 schema -struct<> --- !query 11815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11816 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 11816 schema -struct<> --- !query 11816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11817 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 11817 schema -struct<> --- !query 11817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11818 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 11818 schema -struct> --- !query 11818 output -{1:true,2:true} - - --- !query 11819 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11819 schema -struct<> --- !query 11819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11820 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11820 schema -struct<> --- !query 11820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11821 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 11821 schema -struct<> --- !query 11821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11822 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 11822 schema -struct<> --- !query 11822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11823 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 11823 schema -struct<> --- !query 11823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11824 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 11824 schema -struct<> --- !query 11824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11825 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 11825 schema -struct<> --- !query 11825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11826 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 11826 schema -struct<> --- !query 11826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11827 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 11827 schema -struct<> --- !query 11827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11828 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 11828 schema -struct<> --- !query 11828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11829 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 11829 schema -struct<> --- !query 11829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11830 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 11830 schema -struct> --- !query 11830 output -{1:true,2:true} - - --- !query 11831 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11831 schema -struct<> --- !query 11831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11832 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11832 schema -struct<> --- !query 11832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11833 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 11833 schema -struct<> --- !query 11833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11834 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 11834 schema -struct<> --- !query 11834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11835 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 11835 schema -struct<> --- !query 11835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11836 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 11836 schema -struct<> --- !query 11836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11837 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 11837 schema -struct<> --- !query 11837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11838 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 11838 schema -struct<> --- !query 11838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11839 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 11839 schema -struct<> --- !query 11839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11840 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 11840 schema -struct<> --- !query 11840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11841 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 11841 schema -struct<> --- !query 11841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11842 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 11842 schema -struct> --- !query 11842 output -{1:true,2:true} - - --- !query 11843 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11843 schema -struct<> --- !query 11843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11844 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11844 schema -struct<> --- !query 11844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11845 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 11845 schema -struct<> --- !query 11845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11846 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 11846 schema -struct<> --- !query 11846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11847 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 11847 schema -struct<> --- !query 11847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11848 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 11848 schema -struct<> --- !query 11848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11849 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 11849 schema -struct<> --- !query 11849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11850 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 11850 schema -struct<> --- !query 11850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11851 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 11851 schema -struct<> --- !query 11851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11852 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 11852 schema -struct<> --- !query 11852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11853 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 11853 schema -struct<> --- !query 11853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11854 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 11854 schema -struct> --- !query 11854 output -{1:true,2:true} - - --- !query 11855 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11855 schema -struct<> --- !query 11855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11856 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11856 schema -struct<> --- !query 11856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11857 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 11857 schema -struct<> --- !query 11857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11858 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 11858 schema -struct<> --- !query 11858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11859 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 11859 schema -struct<> --- !query 11859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11860 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 11860 schema -struct<> --- !query 11860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11861 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 11861 schema -struct<> --- !query 11861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11862 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 11862 schema -struct<> --- !query 11862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11863 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 11863 schema -struct<> --- !query 11863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11864 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 11864 schema -struct<> --- !query 11864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11865 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 11865 schema -struct<> --- !query 11865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11866 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 11866 schema -struct> --- !query 11866 output -{1.0:true,2.0:true} - - --- !query 11867 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11867 schema -struct<> --- !query 11867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11868 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11868 schema -struct<> --- !query 11868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11869 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 11869 schema -struct<> --- !query 11869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11870 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 11870 schema -struct<> --- !query 11870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11871 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 11871 schema -struct<> --- !query 11871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11872 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 11872 schema -struct<> --- !query 11872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11873 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 11873 schema -struct<> --- !query 11873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11874 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 11874 schema -struct<> --- !query 11874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11875 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 11875 schema -struct<> --- !query 11875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11876 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 11876 schema -struct<> --- !query 11876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11877 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 11877 schema -struct<> --- !query 11877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11878 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 11878 schema -struct> --- !query 11878 output -{1.0:true,2.0:true} - - --- !query 11879 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11879 schema -struct<> --- !query 11879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11880 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11880 schema -struct<> --- !query 11880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11881 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 11881 schema -struct<> --- !query 11881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11882 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 11882 schema -struct<> --- !query 11882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11883 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 11883 schema -struct<> --- !query 11883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11884 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 11884 schema -struct<> --- !query 11884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11885 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 11885 schema -struct<> --- !query 11885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11886 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 11886 schema -struct<> --- !query 11886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11887 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 11887 schema -struct<> --- !query 11887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11888 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 11888 schema -struct<> --- !query 11888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11889 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 11889 schema -struct<> --- !query 11889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11890 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 11890 schema -struct> --- !query 11890 output -{1:true,2:true} - - --- !query 11891 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11891 schema -struct<> --- !query 11891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11892 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11892 schema -struct<> --- !query 11892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11893 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 11893 schema -struct<> --- !query 11893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 11894 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 11894 schema -struct<> --- !query 11894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 11895 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 11895 schema -struct<> --- !query 11895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 11896 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 11896 schema -struct<> --- !query 11896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 11897 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 11897 schema -struct<> --- !query 11897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 11898 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 11898 schema -struct<> --- !query 11898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 11899 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 11899 schema -struct<> --- !query 11899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 11900 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 11900 schema -struct<> --- !query 11900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 11901 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 11901 schema -struct<> --- !query 11901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 11902 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 11902 schema -struct> --- !query 11902 output -{"1":true,"2":true} - - --- !query 11903 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11903 schema -struct<> --- !query 11903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 11904 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11904 schema -struct<> --- !query 11904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 11905 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 11905 schema -struct<> --- !query 11905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11906 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 11906 schema -struct<> --- !query 11906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11907 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 11907 schema -struct<> --- !query 11907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11908 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 11908 schema -struct<> --- !query 11908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11909 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 11909 schema -struct<> --- !query 11909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11910 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 11910 schema -struct<> --- !query 11910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11911 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 11911 schema -struct<> --- !query 11911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11912 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 11912 schema -struct<> --- !query 11912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11913 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 11913 schema -struct<> --- !query 11913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11914 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 11914 schema -struct<> --- !query 11914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11915 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11915 schema -struct<> --- !query 11915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11916 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11916 schema -struct<> --- !query 11916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 11917 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 11917 schema -struct<> --- !query 11917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11918 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 11918 schema -struct<> --- !query 11918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11919 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 11919 schema -struct<> --- !query 11919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11920 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 11920 schema -struct<> --- !query 11920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11921 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 11921 schema -struct<> --- !query 11921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11922 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 11922 schema -struct<> --- !query 11922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11923 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 11923 schema -struct<> --- !query 11923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11924 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 11924 schema -struct<> --- !query 11924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11925 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 11925 schema -struct<> --- !query 11925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11926 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 11926 schema -struct<> --- !query 11926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11927 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11927 schema -struct<> --- !query 11927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11928 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11928 schema -struct<> --- !query 11928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 11929 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 11929 schema -struct<> --- !query 11929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11930 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 11930 schema -struct<> --- !query 11930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11931 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 11931 schema -struct<> --- !query 11931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11932 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 11932 schema -struct<> --- !query 11932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11933 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 11933 schema -struct<> --- !query 11933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11934 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 11934 schema -struct<> --- !query 11934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11935 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 11935 schema -struct<> --- !query 11935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11936 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 11936 schema -struct<> --- !query 11936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11937 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 11937 schema -struct<> --- !query 11937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11938 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 11938 schema -struct<> --- !query 11938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11939 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11939 schema -struct<> --- !query 11939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11940 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11940 schema -struct<> --- !query 11940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 11941 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 11941 schema -struct<> --- !query 11941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11942 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 11942 schema -struct<> --- !query 11942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11943 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 11943 schema -struct<> --- !query 11943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11944 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 11944 schema -struct<> --- !query 11944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11945 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 11945 schema -struct<> --- !query 11945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11946 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 11946 schema -struct<> --- !query 11946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11947 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 11947 schema -struct<> --- !query 11947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11948 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 11948 schema -struct<> --- !query 11948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11949 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 11949 schema -struct<> --- !query 11949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11950 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 11950 schema -struct<> --- !query 11950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11951 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11951 schema -struct<> --- !query 11951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11952 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11952 schema -struct<> --- !query 11952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 11953 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 11953 schema -struct<> --- !query 11953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 11954 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 11954 schema -struct<> --- !query 11954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 11955 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 11955 schema -struct<> --- !query 11955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 11956 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 11956 schema -struct<> --- !query 11956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 11957 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 11957 schema -struct<> --- !query 11957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 11958 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 11958 schema -struct<> --- !query 11958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 11959 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 11959 schema -struct<> --- !query 11959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 11960 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 11960 schema -struct> --- !query 11960 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 11961 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 11961 schema -struct<> --- !query 11961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 11962 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 11962 schema -struct<> --- !query 11962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 11963 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11963 schema -struct> --- !query 11963 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 11964 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11964 schema -struct> --- !query 11964 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 11965 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 11965 schema -struct<> --- !query 11965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 11966 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 11966 schema -struct<> --- !query 11966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 11967 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 11967 schema -struct<> --- !query 11967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 11968 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 11968 schema -struct<> --- !query 11968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 11969 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 11969 schema -struct<> --- !query 11969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 11970 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 11970 schema -struct<> --- !query 11970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 11971 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 11971 schema -struct<> --- !query 11971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 11972 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 11972 schema -struct> --- !query 11972 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 11973 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 11973 schema -struct<> --- !query 11973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 11974 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 11974 schema -struct<> --- !query 11974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 11975 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11975 schema -struct> --- !query 11975 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 11976 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11976 schema -struct> --- !query 11976 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 11977 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 11977 schema -struct<> --- !query 11977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 11978 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 11978 schema -struct<> --- !query 11978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 11979 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 11979 schema -struct<> --- !query 11979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 11980 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 11980 schema -struct<> --- !query 11980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 11981 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 11981 schema -struct<> --- !query 11981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 11982 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 11982 schema -struct<> --- !query 11982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 11983 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 11983 schema -struct<> --- !query 11983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 11984 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 11984 schema -struct> --- !query 11984 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 11985 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 11985 schema -struct<> --- !query 11985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 11986 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 11986 schema -struct<> --- !query 11986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 11987 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11987 schema -struct> --- !query 11987 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 11988 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 11988 schema -struct> --- !query 11988 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 11989 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 11989 schema -struct<> --- !query 11989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 11990 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 11990 schema -struct<> --- !query 11990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 11991 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 11991 schema -struct<> --- !query 11991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 11992 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 11992 schema -struct<> --- !query 11992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 11993 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 11993 schema -struct<> --- !query 11993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 11994 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 11994 schema -struct<> --- !query 11994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 11995 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 11995 schema -struct<> --- !query 11995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 11996 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 11996 schema -struct> --- !query 11996 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 11997 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 11997 schema -struct<> --- !query 11997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 11998 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 11998 schema -struct<> --- !query 11998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 11999 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 11999 schema -struct> --- !query 11999 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 12000 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12000 schema -struct> --- !query 12000 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 12001 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 12001 schema -struct<> --- !query 12001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 12002 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 12002 schema -struct<> --- !query 12002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 12003 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 12003 schema -struct<> --- !query 12003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 12004 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 12004 schema -struct<> --- !query 12004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 12005 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 12005 schema -struct<> --- !query 12005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 12006 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 12006 schema -struct<> --- !query 12006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 12007 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 12007 schema -struct<> --- !query 12007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 12008 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 12008 schema -struct> --- !query 12008 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 12009 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 12009 schema -struct<> --- !query 12009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 12010 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 12010 schema -struct<> --- !query 12010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 12011 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12011 schema -struct> --- !query 12011 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 12012 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12012 schema -struct> --- !query 12012 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 12013 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 12013 schema -struct<> --- !query 12013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 12014 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 12014 schema -struct<> --- !query 12014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 12015 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 12015 schema -struct<> --- !query 12015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 12016 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 12016 schema -struct<> --- !query 12016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 12017 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 12017 schema -struct<> --- !query 12017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 12018 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 12018 schema -struct<> --- !query 12018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 12019 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 12019 schema -struct<> --- !query 12019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 12020 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 12020 schema -struct> --- !query 12020 output -{1.0:"2017-12-11 09:30:00",2.0:"2"} - - --- !query 12021 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 12021 schema -struct<> --- !query 12021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 12022 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 12022 schema -struct<> --- !query 12022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 12023 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12023 schema -struct> --- !query 12023 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 12024 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12024 schema -struct> --- !query 12024 output -{1.0:2017-12-11 09:30:00.0,2.0:2017-12-12 00:00:00.0} - - --- !query 12025 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 12025 schema -struct<> --- !query 12025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 12026 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 12026 schema -struct<> --- !query 12026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 12027 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 12027 schema -struct<> --- !query 12027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 12028 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 12028 schema -struct<> --- !query 12028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 12029 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 12029 schema -struct<> --- !query 12029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 12030 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 12030 schema -struct<> --- !query 12030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 12031 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 12031 schema -struct<> --- !query 12031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 12032 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 12032 schema -struct> --- !query 12032 output -{1:"2017-12-11 09:30:00",2:"2"} - - --- !query 12033 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 12033 schema -struct<> --- !query 12033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 12034 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 12034 schema -struct<> --- !query 12034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 12035 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12035 schema -struct> --- !query 12035 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 09:30:00.0} - - --- !query 12036 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12036 schema -struct> --- !query 12036 output -{1:2017-12-11 09:30:00.0,2:2017-12-12 00:00:00.0} - - --- !query 12037 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 12037 schema -struct<> --- !query 12037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 12038 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 12038 schema -struct<> --- !query 12038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 12039 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 12039 schema -struct<> --- !query 12039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 12040 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 12040 schema -struct<> --- !query 12040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 12041 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 12041 schema -struct<> --- !query 12041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 12042 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 12042 schema -struct<> --- !query 12042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 12043 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 12043 schema -struct<> --- !query 12043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 12044 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 12044 schema -struct> --- !query 12044 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 12045 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 12045 schema -struct<> --- !query 12045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 12046 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 12046 schema -struct<> --- !query 12046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 12047 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12047 schema -struct> --- !query 12047 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 12048 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12048 schema -struct> --- !query 12048 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 12049 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 12049 schema -struct<> --- !query 12049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12050 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 12050 schema -struct<> --- !query 12050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12051 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 12051 schema -struct<> --- !query 12051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12052 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 12052 schema -struct<> --- !query 12052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12053 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 12053 schema -struct<> --- !query 12053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12054 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 12054 schema -struct<> --- !query 12054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12055 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 12055 schema -struct<> --- !query 12055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12056 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 12056 schema -struct<> --- !query 12056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12057 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 12057 schema -struct<> --- !query 12057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12058 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 12058 schema -struct<> --- !query 12058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12059 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12059 schema -struct<> --- !query 12059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12060 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12060 schema -struct<> --- !query 12060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12061 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 12061 schema -struct<> --- !query 12061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12062 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 12062 schema -struct<> --- !query 12062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12063 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 12063 schema -struct<> --- !query 12063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12064 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 12064 schema -struct<> --- !query 12064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12065 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 12065 schema -struct<> --- !query 12065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12066 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 12066 schema -struct<> --- !query 12066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12067 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 12067 schema -struct<> --- !query 12067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12068 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 12068 schema -struct<> --- !query 12068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12069 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 12069 schema -struct<> --- !query 12069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12070 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 12070 schema -struct<> --- !query 12070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12071 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12071 schema -struct<> --- !query 12071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12072 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12072 schema -struct<> --- !query 12072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12073 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 12073 schema -struct<> --- !query 12073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12074 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 12074 schema -struct<> --- !query 12074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12075 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 12075 schema -struct<> --- !query 12075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12076 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 12076 schema -struct<> --- !query 12076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12077 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 12077 schema -struct<> --- !query 12077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12078 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 12078 schema -struct<> --- !query 12078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12079 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 12079 schema -struct<> --- !query 12079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12080 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 12080 schema -struct<> --- !query 12080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12081 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 12081 schema -struct<> --- !query 12081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12082 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 12082 schema -struct<> --- !query 12082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12083 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12083 schema -struct<> --- !query 12083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12084 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12084 schema -struct<> --- !query 12084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12085 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 12085 schema -struct<> --- !query 12085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12086 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 12086 schema -struct<> --- !query 12086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12087 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 12087 schema -struct<> --- !query 12087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12088 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 12088 schema -struct<> --- !query 12088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12089 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 12089 schema -struct<> --- !query 12089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12090 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 12090 schema -struct<> --- !query 12090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12091 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 12091 schema -struct<> --- !query 12091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12092 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 12092 schema -struct<> --- !query 12092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12093 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 12093 schema -struct<> --- !query 12093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12094 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 12094 schema -struct<> --- !query 12094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12095 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12095 schema -struct<> --- !query 12095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12096 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12096 schema -struct<> --- !query 12096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12097 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 12097 schema -struct<> --- !query 12097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12098 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 12098 schema -struct<> --- !query 12098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12099 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 12099 schema -struct<> --- !query 12099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12100 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 12100 schema -struct<> --- !query 12100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12101 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 12101 schema -struct<> --- !query 12101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12102 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 12102 schema -struct<> --- !query 12102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12103 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 12103 schema -struct<> --- !query 12103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12104 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 12104 schema -struct> --- !query 12104 output -{1:"2017-12-11",2:"2"} - - --- !query 12105 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 12105 schema -struct<> --- !query 12105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12106 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 12106 schema -struct<> --- !query 12106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12107 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12107 schema -struct> --- !query 12107 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 12108 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12108 schema -struct> --- !query 12108 output -{1:2017-12-11,2:2017-12-12} - - --- !query 12109 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 12109 schema -struct<> --- !query 12109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12110 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 12110 schema -struct<> --- !query 12110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12111 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 12111 schema -struct<> --- !query 12111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12112 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 12112 schema -struct<> --- !query 12112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12113 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 12113 schema -struct<> --- !query 12113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12114 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 12114 schema -struct<> --- !query 12114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12115 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 12115 schema -struct<> --- !query 12115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12116 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 12116 schema -struct> --- !query 12116 output -{1:"2017-12-11",2:"2"} - - --- !query 12117 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 12117 schema -struct<> --- !query 12117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12118 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 12118 schema -struct<> --- !query 12118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12119 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12119 schema -struct> --- !query 12119 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 12120 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12120 schema -struct> --- !query 12120 output -{1:2017-12-11,2:2017-12-12} - - --- !query 12121 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 12121 schema -struct<> --- !query 12121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12122 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 12122 schema -struct<> --- !query 12122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12123 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 12123 schema -struct<> --- !query 12123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12124 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 12124 schema -struct<> --- !query 12124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12125 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 12125 schema -struct<> --- !query 12125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12126 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 12126 schema -struct<> --- !query 12126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12127 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 12127 schema -struct<> --- !query 12127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12128 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 12128 schema -struct> --- !query 12128 output -{1:"2017-12-11",2:"2"} - - --- !query 12129 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 12129 schema -struct<> --- !query 12129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12130 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 12130 schema -struct<> --- !query 12130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12131 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12131 schema -struct> --- !query 12131 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 12132 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12132 schema -struct> --- !query 12132 output -{1:2017-12-11,2:2017-12-12} - - --- !query 12133 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 12133 schema -struct<> --- !query 12133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12134 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 12134 schema -struct<> --- !query 12134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12135 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 12135 schema -struct<> --- !query 12135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12136 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 12136 schema -struct<> --- !query 12136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12137 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 12137 schema -struct<> --- !query 12137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12138 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 12138 schema -struct<> --- !query 12138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12139 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 12139 schema -struct<> --- !query 12139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12140 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 12140 schema -struct> --- !query 12140 output -{1:"2017-12-11",2:"2"} - - --- !query 12141 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 12141 schema -struct<> --- !query 12141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12142 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 12142 schema -struct<> --- !query 12142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12143 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12143 schema -struct> --- !query 12143 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 12144 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12144 schema -struct> --- !query 12144 output -{1:2017-12-11,2:2017-12-12} - - --- !query 12145 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 12145 schema -struct<> --- !query 12145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12146 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 12146 schema -struct<> --- !query 12146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12147 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 12147 schema -struct<> --- !query 12147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12148 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 12148 schema -struct<> --- !query 12148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12149 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 12149 schema -struct<> --- !query 12149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12150 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 12150 schema -struct<> --- !query 12150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12151 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 12151 schema -struct<> --- !query 12151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12152 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 12152 schema -struct> --- !query 12152 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 12153 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 12153 schema -struct<> --- !query 12153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12154 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 12154 schema -struct<> --- !query 12154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12155 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12155 schema -struct> --- !query 12155 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 12156 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12156 schema -struct> --- !query 12156 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 12157 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 12157 schema -struct<> --- !query 12157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12158 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 12158 schema -struct<> --- !query 12158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12159 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 12159 schema -struct<> --- !query 12159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12160 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 12160 schema -struct<> --- !query 12160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12161 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 12161 schema -struct<> --- !query 12161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12162 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 12162 schema -struct<> --- !query 12162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12163 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 12163 schema -struct<> --- !query 12163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12164 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 12164 schema -struct> --- !query 12164 output -{1.0:"2017-12-11",2.0:"2"} - - --- !query 12165 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 12165 schema -struct<> --- !query 12165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12166 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 12166 schema -struct<> --- !query 12166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12167 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12167 schema -struct> --- !query 12167 output -{1.0:2017-12-11 00:00:00.0,2.0:2017-12-12 09:30:00.0} - - --- !query 12168 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12168 schema -struct> --- !query 12168 output -{1.0:2017-12-11,2.0:2017-12-12} - - --- !query 12169 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 12169 schema -struct<> --- !query 12169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12170 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 12170 schema -struct<> --- !query 12170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12171 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 12171 schema -struct<> --- !query 12171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12172 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 12172 schema -struct<> --- !query 12172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12173 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 12173 schema -struct<> --- !query 12173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12174 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 12174 schema -struct<> --- !query 12174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12175 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 12175 schema -struct<> --- !query 12175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12176 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 12176 schema -struct> --- !query 12176 output -{1:"2017-12-11",2:"2"} - - --- !query 12177 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 12177 schema -struct<> --- !query 12177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12178 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 12178 schema -struct<> --- !query 12178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12179 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12179 schema -struct> --- !query 12179 output -{1:2017-12-11 00:00:00.0,2:2017-12-12 09:30:00.0} - - --- !query 12180 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12180 schema -struct> --- !query 12180 output -{1:2017-12-11,2:2017-12-12} - - --- !query 12181 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 12181 schema -struct<> --- !query 12181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 12182 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 12182 schema -struct<> --- !query 12182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 12183 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 12183 schema -struct<> --- !query 12183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 12184 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 12184 schema -struct<> --- !query 12184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 12185 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 12185 schema -struct<> --- !query 12185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 12186 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 12186 schema -struct<> --- !query 12186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 12187 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 12187 schema -struct<> --- !query 12187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 12188 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 12188 schema -struct> --- !query 12188 output -{"1":"2017-12-11","2":"2"} - - --- !query 12189 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 12189 schema -struct<> --- !query 12189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 12190 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 12190 schema -struct<> --- !query 12190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 12191 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12191 schema -struct> --- !query 12191 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 12192 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12192 schema -struct> --- !query 12192 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 12193 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 12193 schema -struct<> --- !query 12193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12194 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 12194 schema -struct<> --- !query 12194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12195 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 12195 schema -struct<> --- !query 12195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12196 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 12196 schema -struct<> --- !query 12196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12197 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 12197 schema -struct<> --- !query 12197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12198 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 12198 schema -struct<> --- !query 12198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12199 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 12199 schema -struct<> --- !query 12199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12200 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 12200 schema -struct<> --- !query 12200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12201 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 12201 schema -struct<> --- !query 12201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12202 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 12202 schema -struct<> --- !query 12202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12203 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12203 schema -struct<> --- !query 12203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12204 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12204 schema -struct<> --- !query 12204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 12205 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 12205 schema -struct<> --- !query 12205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12206 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 12206 schema -struct<> --- !query 12206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12207 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 12207 schema -struct<> --- !query 12207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12208 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 12208 schema -struct<> --- !query 12208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12209 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 12209 schema -struct<> --- !query 12209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12210 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 12210 schema -struct<> --- !query 12210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12211 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 12211 schema -struct<> --- !query 12211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12212 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 12212 schema -struct<> --- !query 12212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12213 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 12213 schema -struct<> --- !query 12213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12214 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 12214 schema -struct<> --- !query 12214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12215 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12215 schema -struct<> --- !query 12215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12216 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12216 schema -struct<> --- !query 12216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 12217 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 12217 schema -struct<> --- !query 12217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12218 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 12218 schema -struct<> --- !query 12218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12219 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 12219 schema -struct<> --- !query 12219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12220 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 12220 schema -struct<> --- !query 12220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12221 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 12221 schema -struct<> --- !query 12221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12222 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 12222 schema -struct<> --- !query 12222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12223 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 12223 schema -struct<> --- !query 12223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12224 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 12224 schema -struct<> --- !query 12224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12225 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 12225 schema -struct<> --- !query 12225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12226 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 12226 schema -struct<> --- !query 12226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12227 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12227 schema -struct<> --- !query 12227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12228 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12228 schema -struct<> --- !query 12228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 12229 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 12229 schema -struct<> --- !query 12229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12230 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 12230 schema -struct<> --- !query 12230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12231 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 12231 schema -struct<> --- !query 12231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12232 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 12232 schema -struct<> --- !query 12232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12233 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 12233 schema -struct<> --- !query 12233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12234 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 12234 schema -struct<> --- !query 12234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12235 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 12235 schema -struct<> --- !query 12235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12236 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 12236 schema -struct<> --- !query 12236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12237 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 12237 schema -struct<> --- !query 12237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12238 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 12238 schema -struct<> --- !query 12238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12239 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12239 schema -struct<> --- !query 12239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12240 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12240 schema -struct<> --- !query 12240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 12241 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 12241 schema -struct> --- !query 12241 output -{"1":1,"2":2} - - --- !query 12242 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 12242 schema -struct> --- !query 12242 output -{"1":1,"2":2} - - --- !query 12243 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 12243 schema -struct> --- !query 12243 output -{"1":1,"2":2} - - --- !query 12244 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 12244 schema -struct> --- !query 12244 output -{"1":1,"2":2} - - --- !query 12245 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 12245 schema -struct> --- !query 12245 output -{"1":1.0,"2":2.0} - - --- !query 12246 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 12246 schema -struct> --- !query 12246 output -{"1":1.0,"2":2.0} - - --- !query 12247 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 12247 schema -struct> --- !query 12247 output -{"1":1,"2":2} - - --- !query 12248 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 12248 schema -struct> --- !query 12248 output -{"1":"1","2":"2"} - - --- !query 12249 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 12249 schema -struct<> --- !query 12249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12250 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 12250 schema -struct<> --- !query 12250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12251 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12251 schema -struct<> --- !query 12251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12252 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12252 schema -struct<> --- !query 12252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12253 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 12253 schema -struct> --- !query 12253 output -{"1":1,"2":2} - - --- !query 12254 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 12254 schema -struct> --- !query 12254 output -{"1":1,"2":2} - - --- !query 12255 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 12255 schema -struct> --- !query 12255 output -{"1":1,"2":2} - - --- !query 12256 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 12256 schema -struct> --- !query 12256 output -{"1":1,"2":2} - - --- !query 12257 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 12257 schema -struct> --- !query 12257 output -{"1":1.0,"2":2.0} - - --- !query 12258 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 12258 schema -struct> --- !query 12258 output -{"1":1.0,"2":2.0} - - --- !query 12259 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 12259 schema -struct> --- !query 12259 output -{"1":1,"2":2} - - --- !query 12260 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 12260 schema -struct> --- !query 12260 output -{"1":"1","2":"2"} - - --- !query 12261 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 12261 schema -struct<> --- !query 12261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12262 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 12262 schema -struct<> --- !query 12262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12263 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12263 schema -struct<> --- !query 12263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12264 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12264 schema -struct<> --- !query 12264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12265 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 12265 schema -struct> --- !query 12265 output -{"1":1,"2":2} - - --- !query 12266 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 12266 schema -struct> --- !query 12266 output -{"1":1,"2":2} - - --- !query 12267 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 12267 schema -struct> --- !query 12267 output -{"1":1,"2":2} - - --- !query 12268 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 12268 schema -struct> --- !query 12268 output -{"1":1,"2":2} - - --- !query 12269 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 12269 schema -struct> --- !query 12269 output -{"1":1.0,"2":2.0} - - --- !query 12270 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 12270 schema -struct> --- !query 12270 output -{"1":1.0,"2":2.0} - - --- !query 12271 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 12271 schema -struct> --- !query 12271 output -{"1":1,"2":2} - - --- !query 12272 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 12272 schema -struct> --- !query 12272 output -{"1":"1","2":"2"} - - --- !query 12273 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 12273 schema -struct<> --- !query 12273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12274 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 12274 schema -struct<> --- !query 12274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12275 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12275 schema -struct<> --- !query 12275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12276 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12276 schema -struct<> --- !query 12276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12277 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 12277 schema -struct> --- !query 12277 output -{"1":1,"2":2} - - --- !query 12278 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 12278 schema -struct> --- !query 12278 output -{"1":1,"2":2} - - --- !query 12279 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 12279 schema -struct> --- !query 12279 output -{"1":1,"2":2} - - --- !query 12280 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 12280 schema -struct> --- !query 12280 output -{"1":1,"2":2} - - --- !query 12281 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 12281 schema -struct> --- !query 12281 output -{"1":1.0,"2":2.0} - - --- !query 12282 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 12282 schema -struct> --- !query 12282 output -{"1":1.0,"2":2.0} - - --- !query 12283 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 12283 schema -struct> --- !query 12283 output -{"1":1,"2":2} - - --- !query 12284 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 12284 schema -struct> --- !query 12284 output -{"1":"1","2":"2"} - - --- !query 12285 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 12285 schema -struct<> --- !query 12285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12286 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 12286 schema -struct<> --- !query 12286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12287 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12287 schema -struct<> --- !query 12287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12288 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12288 schema -struct<> --- !query 12288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12289 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 12289 schema -struct> --- !query 12289 output -{"1":1,"2.0":2} - - --- !query 12290 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 12290 schema -struct> --- !query 12290 output -{"1":1,"2.0":2} - - --- !query 12291 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 12291 schema -struct> --- !query 12291 output -{"1":1,"2.0":2} - - --- !query 12292 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 12292 schema -struct> --- !query 12292 output -{"1":1,"2.0":2} - - --- !query 12293 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 12293 schema -struct> --- !query 12293 output -{"1":1.0,"2.0":2.0} - - --- !query 12294 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 12294 schema -struct> --- !query 12294 output -{"1":1.0,"2.0":2.0} - - --- !query 12295 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 12295 schema -struct> --- !query 12295 output -{"1":1,"2.0":2} - - --- !query 12296 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 12296 schema -struct> --- !query 12296 output -{"1":"1","2.0":"2"} - - --- !query 12297 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 12297 schema -struct<> --- !query 12297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12298 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 12298 schema -struct<> --- !query 12298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12299 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12299 schema -struct<> --- !query 12299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12300 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12300 schema -struct<> --- !query 12300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12301 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 12301 schema -struct> --- !query 12301 output -{"1":1,"2.0":2} - - --- !query 12302 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 12302 schema -struct> --- !query 12302 output -{"1":1,"2.0":2} - - --- !query 12303 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 12303 schema -struct> --- !query 12303 output -{"1":1,"2.0":2} - - --- !query 12304 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 12304 schema -struct> --- !query 12304 output -{"1":1,"2.0":2} - - --- !query 12305 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 12305 schema -struct> --- !query 12305 output -{"1":1.0,"2.0":2.0} - - --- !query 12306 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 12306 schema -struct> --- !query 12306 output -{"1":1.0,"2.0":2.0} - - --- !query 12307 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 12307 schema -struct> --- !query 12307 output -{"1":1,"2.0":2} - - --- !query 12308 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 12308 schema -struct> --- !query 12308 output -{"1":"1","2.0":"2"} - - --- !query 12309 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 12309 schema -struct<> --- !query 12309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12310 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 12310 schema -struct<> --- !query 12310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12311 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12311 schema -struct<> --- !query 12311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12312 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12312 schema -struct<> --- !query 12312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12313 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 12313 schema -struct> --- !query 12313 output -{"1":1,"2":2} - - --- !query 12314 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 12314 schema -struct> --- !query 12314 output -{"1":1,"2":2} - - --- !query 12315 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 12315 schema -struct> --- !query 12315 output -{"1":1,"2":2} - - --- !query 12316 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 12316 schema -struct> --- !query 12316 output -{"1":1,"2":2} - - --- !query 12317 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 12317 schema -struct> --- !query 12317 output -{"1":1.0,"2":2.0} - - --- !query 12318 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 12318 schema -struct> --- !query 12318 output -{"1":1.0,"2":2.0} - - --- !query 12319 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 12319 schema -struct> --- !query 12319 output -{"1":1,"2":2} - - --- !query 12320 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 12320 schema -struct> --- !query 12320 output -{"1":"1","2":"2"} - - --- !query 12321 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 12321 schema -struct<> --- !query 12321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12322 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 12322 schema -struct<> --- !query 12322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12323 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12323 schema -struct<> --- !query 12323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12324 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12324 schema -struct<> --- !query 12324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12325 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 12325 schema -struct> --- !query 12325 output -{"1":1,"2":2} - - --- !query 12326 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 12326 schema -struct> --- !query 12326 output -{"1":1,"2":2} - - --- !query 12327 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 12327 schema -struct> --- !query 12327 output -{"1":1,"2":2} - - --- !query 12328 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 12328 schema -struct> --- !query 12328 output -{"1":1,"2":2} - - --- !query 12329 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 12329 schema -struct> --- !query 12329 output -{"1":1.0,"2":2.0} - - --- !query 12330 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 12330 schema -struct> --- !query 12330 output -{"1":1.0,"2":2.0} - - --- !query 12331 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 12331 schema -struct> --- !query 12331 output -{"1":1,"2":2} - - --- !query 12332 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 12332 schema -struct> --- !query 12332 output -{"1":"1","2":"2"} - - --- !query 12333 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 12333 schema -struct<> --- !query 12333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12334 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 12334 schema -struct<> --- !query 12334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12335 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12335 schema -struct<> --- !query 12335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12336 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12336 schema -struct<> --- !query 12336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12337 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 12337 schema -struct<> --- !query 12337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12338 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 12338 schema -struct<> --- !query 12338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12339 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 12339 schema -struct<> --- !query 12339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12340 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 12340 schema -struct<> --- !query 12340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12341 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 12341 schema -struct<> --- !query 12341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12342 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 12342 schema -struct<> --- !query 12342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12343 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 12343 schema -struct<> --- !query 12343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12344 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 12344 schema -struct<> --- !query 12344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12345 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 12345 schema -struct<> --- !query 12345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12346 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 12346 schema -struct<> --- !query 12346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12347 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12347 schema -struct<> --- !query 12347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12348 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12348 schema -struct<> --- !query 12348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12349 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 12349 schema -struct<> --- !query 12349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12350 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 12350 schema -struct<> --- !query 12350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12351 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 12351 schema -struct<> --- !query 12351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12352 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 12352 schema -struct<> --- !query 12352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12353 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 12353 schema -struct<> --- !query 12353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12354 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 12354 schema -struct<> --- !query 12354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12355 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 12355 schema -struct<> --- !query 12355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12356 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 12356 schema -struct<> --- !query 12356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12357 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 12357 schema -struct<> --- !query 12357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12358 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 12358 schema -struct<> --- !query 12358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12359 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12359 schema -struct<> --- !query 12359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12360 -SELECT map(cast(1 as string), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12360 schema -struct<> --- !query 12360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12361 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 12361 schema -struct> --- !query 12361 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12362 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 12362 schema -struct> --- !query 12362 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12363 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 12363 schema -struct> --- !query 12363 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12364 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 12364 schema -struct> --- !query 12364 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12365 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 12365 schema -struct> --- !query 12365 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12366 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 12366 schema -struct> --- !query 12366 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12367 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 12367 schema -struct> --- !query 12367 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12368 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 12368 schema -struct> --- !query 12368 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 12369 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 12369 schema -struct<> --- !query 12369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12370 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 12370 schema -struct<> --- !query 12370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12371 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12371 schema -struct<> --- !query 12371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12372 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12372 schema -struct<> --- !query 12372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12373 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 12373 schema -struct> --- !query 12373 output -{"1":1,"2017-12-12":2} - - --- !query 12374 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 12374 schema -struct> --- !query 12374 output -{"1":1,"2017-12-12":2} - - --- !query 12375 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 12375 schema -struct> --- !query 12375 output -{"1":1,"2017-12-12":2} - - --- !query 12376 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 12376 schema -struct> --- !query 12376 output -{"1":1,"2017-12-12":2} - - --- !query 12377 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 12377 schema -struct> --- !query 12377 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12378 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 12378 schema -struct> --- !query 12378 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12379 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 12379 schema -struct> --- !query 12379 output -{"1":1,"2017-12-12":2} - - --- !query 12380 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 12380 schema -struct> --- !query 12380 output -{"1":"1","2017-12-12":"2"} - - --- !query 12381 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 12381 schema -struct<> --- !query 12381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 12382 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 12382 schema -struct<> --- !query 12382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 12383 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12383 schema -struct<> --- !query 12383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 12384 -SELECT map(cast(1 as string), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12384 schema -struct<> --- !query 12384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 12385 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 12385 schema -struct> --- !query 12385 output -{"1":1,"2":2} - - --- !query 12386 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 12386 schema -struct> --- !query 12386 output -{"1":1,"2":2} - - --- !query 12387 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 12387 schema -struct> --- !query 12387 output -{"1":1,"2":2} - - --- !query 12388 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 12388 schema -struct> --- !query 12388 output -{"1":1,"2":2} - - --- !query 12389 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 12389 schema -struct> --- !query 12389 output -{"1":1.0,"2":2.0} - - --- !query 12390 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 12390 schema -struct> --- !query 12390 output -{"1":1.0,"2":2.0} - - --- !query 12391 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 12391 schema -struct> --- !query 12391 output -{"1":1,"2":2} - - --- !query 12392 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 12392 schema -struct> --- !query 12392 output -{"1":"1","2":"2"} - - --- !query 12393 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 12393 schema -struct<> --- !query 12393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12394 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 12394 schema -struct<> --- !query 12394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12395 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12395 schema -struct<> --- !query 12395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12396 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12396 schema -struct<> --- !query 12396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12397 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 12397 schema -struct> --- !query 12397 output -{"1":1,"2":2} - - --- !query 12398 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 12398 schema -struct> --- !query 12398 output -{"1":1,"2":2} - - --- !query 12399 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 12399 schema -struct> --- !query 12399 output -{"1":1,"2":2} - - --- !query 12400 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 12400 schema -struct> --- !query 12400 output -{"1":1,"2":2} - - --- !query 12401 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 12401 schema -struct> --- !query 12401 output -{"1":1.0,"2":2.0} - - --- !query 12402 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 12402 schema -struct> --- !query 12402 output -{"1":1.0,"2":2.0} - - --- !query 12403 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 12403 schema -struct> --- !query 12403 output -{"1":1,"2":2} - - --- !query 12404 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 12404 schema -struct> --- !query 12404 output -{"1":"1","2":"2"} - - --- !query 12405 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 12405 schema -struct<> --- !query 12405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12406 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 12406 schema -struct<> --- !query 12406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12407 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12407 schema -struct<> --- !query 12407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12408 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12408 schema -struct<> --- !query 12408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12409 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 12409 schema -struct> --- !query 12409 output -{"1":1,"2":2} - - --- !query 12410 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 12410 schema -struct> --- !query 12410 output -{"1":1,"2":2} - - --- !query 12411 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 12411 schema -struct> --- !query 12411 output -{"1":1,"2":2} - - --- !query 12412 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 12412 schema -struct> --- !query 12412 output -{"1":1,"2":2} - - --- !query 12413 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 12413 schema -struct> --- !query 12413 output -{"1":1.0,"2":2.0} - - --- !query 12414 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 12414 schema -struct> --- !query 12414 output -{"1":1.0,"2":2.0} - - --- !query 12415 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 12415 schema -struct> --- !query 12415 output -{"1":1,"2":2} - - --- !query 12416 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 12416 schema -struct> --- !query 12416 output -{"1":"1","2":"2"} - - --- !query 12417 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 12417 schema -struct<> --- !query 12417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12418 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 12418 schema -struct<> --- !query 12418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12419 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12419 schema -struct<> --- !query 12419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12420 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12420 schema -struct<> --- !query 12420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12421 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 12421 schema -struct> --- !query 12421 output -{"1":1,"2":2} - - --- !query 12422 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 12422 schema -struct> --- !query 12422 output -{"1":1,"2":2} - - --- !query 12423 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 12423 schema -struct> --- !query 12423 output -{"1":1,"2":2} - - --- !query 12424 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 12424 schema -struct> --- !query 12424 output -{"1":1,"2":2} - - --- !query 12425 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 12425 schema -struct> --- !query 12425 output -{"1":1.0,"2":2.0} - - --- !query 12426 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 12426 schema -struct> --- !query 12426 output -{"1":1.0,"2":2.0} - - --- !query 12427 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 12427 schema -struct> --- !query 12427 output -{"1":1,"2":2} - - --- !query 12428 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 12428 schema -struct> --- !query 12428 output -{"1":"1","2":"2"} - - --- !query 12429 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 12429 schema -struct<> --- !query 12429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12430 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 12430 schema -struct<> --- !query 12430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12431 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12431 schema -struct<> --- !query 12431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12432 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12432 schema -struct<> --- !query 12432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12433 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 12433 schema -struct> --- !query 12433 output -{"1":1,"2.0":2} - - --- !query 12434 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 12434 schema -struct> --- !query 12434 output -{"1":1,"2.0":2} - - --- !query 12435 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 12435 schema -struct> --- !query 12435 output -{"1":1,"2.0":2} - - --- !query 12436 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 12436 schema -struct> --- !query 12436 output -{"1":1,"2.0":2} - - --- !query 12437 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 12437 schema -struct> --- !query 12437 output -{"1":1.0,"2.0":2.0} - - --- !query 12438 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 12438 schema -struct> --- !query 12438 output -{"1":1.0,"2.0":2.0} - - --- !query 12439 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 12439 schema -struct> --- !query 12439 output -{"1":1,"2.0":2} - - --- !query 12440 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 12440 schema -struct> --- !query 12440 output -{"1":"1","2.0":"2"} - - --- !query 12441 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 12441 schema -struct<> --- !query 12441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12442 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 12442 schema -struct<> --- !query 12442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12443 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12443 schema -struct<> --- !query 12443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12444 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12444 schema -struct<> --- !query 12444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12445 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 12445 schema -struct> --- !query 12445 output -{"1":1,"2.0":2} - - --- !query 12446 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 12446 schema -struct> --- !query 12446 output -{"1":1,"2.0":2} - - --- !query 12447 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 12447 schema -struct> --- !query 12447 output -{"1":1,"2.0":2} - - --- !query 12448 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 12448 schema -struct> --- !query 12448 output -{"1":1,"2.0":2} - - --- !query 12449 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 12449 schema -struct> --- !query 12449 output -{"1":1.0,"2.0":2.0} - - --- !query 12450 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 12450 schema -struct> --- !query 12450 output -{"1":1.0,"2.0":2.0} - - --- !query 12451 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 12451 schema -struct> --- !query 12451 output -{"1":1,"2.0":2} - - --- !query 12452 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 12452 schema -struct> --- !query 12452 output -{"1":"1","2.0":"2"} - - --- !query 12453 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 12453 schema -struct<> --- !query 12453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12454 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 12454 schema -struct<> --- !query 12454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12455 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12455 schema -struct<> --- !query 12455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12456 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12456 schema -struct<> --- !query 12456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12457 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 12457 schema -struct> --- !query 12457 output -{"1":1,"2":2} - - --- !query 12458 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 12458 schema -struct> --- !query 12458 output -{"1":1,"2":2} - - --- !query 12459 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 12459 schema -struct> --- !query 12459 output -{"1":1,"2":2} - - --- !query 12460 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 12460 schema -struct> --- !query 12460 output -{"1":1,"2":2} - - --- !query 12461 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 12461 schema -struct> --- !query 12461 output -{"1":1.0,"2":2.0} - - --- !query 12462 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 12462 schema -struct> --- !query 12462 output -{"1":1.0,"2":2.0} - - --- !query 12463 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 12463 schema -struct> --- !query 12463 output -{"1":1,"2":2} - - --- !query 12464 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 12464 schema -struct> --- !query 12464 output -{"1":"1","2":"2"} - - --- !query 12465 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 12465 schema -struct<> --- !query 12465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12466 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 12466 schema -struct<> --- !query 12466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12467 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12467 schema -struct<> --- !query 12467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12468 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12468 schema -struct<> --- !query 12468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12469 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 12469 schema -struct> --- !query 12469 output -{"1":1,"2":2} - - --- !query 12470 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 12470 schema -struct> --- !query 12470 output -{"1":1,"2":2} - - --- !query 12471 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 12471 schema -struct> --- !query 12471 output -{"1":1,"2":2} - - --- !query 12472 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 12472 schema -struct> --- !query 12472 output -{"1":1,"2":2} - - --- !query 12473 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 12473 schema -struct> --- !query 12473 output -{"1":1.0,"2":2.0} - - --- !query 12474 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 12474 schema -struct> --- !query 12474 output -{"1":1.0,"2":2.0} - - --- !query 12475 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 12475 schema -struct> --- !query 12475 output -{"1":1,"2":2} - - --- !query 12476 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 12476 schema -struct> --- !query 12476 output -{"1":"1","2":"2"} - - --- !query 12477 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 12477 schema -struct<> --- !query 12477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12478 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 12478 schema -struct<> --- !query 12478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12479 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12479 schema -struct<> --- !query 12479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12480 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12480 schema -struct<> --- !query 12480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12481 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 12481 schema -struct<> --- !query 12481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12482 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 12482 schema -struct<> --- !query 12482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12483 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 12483 schema -struct<> --- !query 12483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12484 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 12484 schema -struct<> --- !query 12484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12485 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 12485 schema -struct<> --- !query 12485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12486 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 12486 schema -struct<> --- !query 12486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12487 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 12487 schema -struct<> --- !query 12487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12488 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 12488 schema -struct<> --- !query 12488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12489 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 12489 schema -struct<> --- !query 12489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12490 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 12490 schema -struct<> --- !query 12490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12491 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12491 schema -struct<> --- !query 12491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12492 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12492 schema -struct<> --- !query 12492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12493 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 12493 schema -struct<> --- !query 12493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12494 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 12494 schema -struct<> --- !query 12494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12495 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 12495 schema -struct<> --- !query 12495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12496 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 12496 schema -struct<> --- !query 12496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12497 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 12497 schema -struct<> --- !query 12497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12498 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 12498 schema -struct<> --- !query 12498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12499 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 12499 schema -struct<> --- !query 12499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12500 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 12500 schema -struct<> --- !query 12500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12501 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 12501 schema -struct<> --- !query 12501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12502 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 12502 schema -struct<> --- !query 12502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12503 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12503 schema -struct<> --- !query 12503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12504 -SELECT map(cast(1 as string), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12504 schema -struct<> --- !query 12504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12505 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 12505 schema -struct> --- !query 12505 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12506 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 12506 schema -struct> --- !query 12506 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12507 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 12507 schema -struct> --- !query 12507 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12508 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 12508 schema -struct> --- !query 12508 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12509 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 12509 schema -struct> --- !query 12509 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12510 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 12510 schema -struct> --- !query 12510 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12511 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 12511 schema -struct> --- !query 12511 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12512 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 12512 schema -struct> --- !query 12512 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 12513 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 12513 schema -struct<> --- !query 12513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12514 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 12514 schema -struct<> --- !query 12514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12515 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12515 schema -struct<> --- !query 12515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12516 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12516 schema -struct<> --- !query 12516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12517 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 12517 schema -struct> --- !query 12517 output -{"1":1,"2017-12-12":2} - - --- !query 12518 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 12518 schema -struct> --- !query 12518 output -{"1":1,"2017-12-12":2} - - --- !query 12519 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 12519 schema -struct> --- !query 12519 output -{"1":1,"2017-12-12":2} - - --- !query 12520 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 12520 schema -struct> --- !query 12520 output -{"1":1,"2017-12-12":2} - - --- !query 12521 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 12521 schema -struct> --- !query 12521 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12522 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 12522 schema -struct> --- !query 12522 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12523 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 12523 schema -struct> --- !query 12523 output -{"1":1,"2017-12-12":2} - - --- !query 12524 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 12524 schema -struct> --- !query 12524 output -{"1":"1","2017-12-12":"2"} - - --- !query 12525 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 12525 schema -struct<> --- !query 12525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 12526 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 12526 schema -struct<> --- !query 12526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 12527 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12527 schema -struct<> --- !query 12527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 12528 -SELECT map(cast(1 as string), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12528 schema -struct<> --- !query 12528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 12529 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 12529 schema -struct> --- !query 12529 output -{"1":1,"2":2} - - --- !query 12530 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 12530 schema -struct> --- !query 12530 output -{"1":1,"2":2} - - --- !query 12531 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 12531 schema -struct> --- !query 12531 output -{"1":1,"2":2} - - --- !query 12532 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 12532 schema -struct> --- !query 12532 output -{"1":1,"2":2} - - --- !query 12533 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 12533 schema -struct> --- !query 12533 output -{"1":1.0,"2":2.0} - - --- !query 12534 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 12534 schema -struct> --- !query 12534 output -{"1":1.0,"2":2.0} - - --- !query 12535 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 12535 schema -struct> --- !query 12535 output -{"1":1,"2":2} - - --- !query 12536 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 12536 schema -struct> --- !query 12536 output -{"1":"1","2":"2"} - - --- !query 12537 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 12537 schema -struct<> --- !query 12537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12538 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 12538 schema -struct<> --- !query 12538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12539 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12539 schema -struct<> --- !query 12539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12540 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12540 schema -struct<> --- !query 12540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12541 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 12541 schema -struct> --- !query 12541 output -{"1":1,"2":2} - - --- !query 12542 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 12542 schema -struct> --- !query 12542 output -{"1":1,"2":2} - - --- !query 12543 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 12543 schema -struct> --- !query 12543 output -{"1":1,"2":2} - - --- !query 12544 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 12544 schema -struct> --- !query 12544 output -{"1":1,"2":2} - - --- !query 12545 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 12545 schema -struct> --- !query 12545 output -{"1":1.0,"2":2.0} - - --- !query 12546 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 12546 schema -struct> --- !query 12546 output -{"1":1.0,"2":2.0} - - --- !query 12547 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 12547 schema -struct> --- !query 12547 output -{"1":1,"2":2} - - --- !query 12548 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 12548 schema -struct> --- !query 12548 output -{"1":"1","2":"2"} - - --- !query 12549 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 12549 schema -struct<> --- !query 12549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12550 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 12550 schema -struct<> --- !query 12550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12551 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12551 schema -struct<> --- !query 12551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12552 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12552 schema -struct<> --- !query 12552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12553 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 12553 schema -struct> --- !query 12553 output -{"1":1,"2":2} - - --- !query 12554 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 12554 schema -struct> --- !query 12554 output -{"1":1,"2":2} - - --- !query 12555 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 12555 schema -struct> --- !query 12555 output -{"1":1,"2":2} - - --- !query 12556 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 12556 schema -struct> --- !query 12556 output -{"1":1,"2":2} - - --- !query 12557 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 12557 schema -struct> --- !query 12557 output -{"1":1.0,"2":2.0} - - --- !query 12558 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 12558 schema -struct> --- !query 12558 output -{"1":1.0,"2":2.0} - - --- !query 12559 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 12559 schema -struct> --- !query 12559 output -{"1":1,"2":2} - - --- !query 12560 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 12560 schema -struct> --- !query 12560 output -{"1":"1","2":"2"} - - --- !query 12561 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 12561 schema -struct<> --- !query 12561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12562 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 12562 schema -struct<> --- !query 12562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12563 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12563 schema -struct<> --- !query 12563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12564 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12564 schema -struct<> --- !query 12564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12565 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 12565 schema -struct> --- !query 12565 output -{"1":1,"2":2} - - --- !query 12566 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 12566 schema -struct> --- !query 12566 output -{"1":1,"2":2} - - --- !query 12567 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 12567 schema -struct> --- !query 12567 output -{"1":1,"2":2} - - --- !query 12568 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 12568 schema -struct> --- !query 12568 output -{"1":1,"2":2} - - --- !query 12569 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 12569 schema -struct> --- !query 12569 output -{"1":1.0,"2":2.0} - - --- !query 12570 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 12570 schema -struct> --- !query 12570 output -{"1":1.0,"2":2.0} - - --- !query 12571 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 12571 schema -struct> --- !query 12571 output -{"1":1,"2":2} - - --- !query 12572 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 12572 schema -struct> --- !query 12572 output -{"1":"1","2":"2"} - - --- !query 12573 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 12573 schema -struct<> --- !query 12573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12574 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 12574 schema -struct<> --- !query 12574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12575 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12575 schema -struct<> --- !query 12575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12576 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12576 schema -struct<> --- !query 12576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12577 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 12577 schema -struct> --- !query 12577 output -{"1":1,"2.0":2} - - --- !query 12578 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 12578 schema -struct> --- !query 12578 output -{"1":1,"2.0":2} - - --- !query 12579 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 12579 schema -struct> --- !query 12579 output -{"1":1,"2.0":2} - - --- !query 12580 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 12580 schema -struct> --- !query 12580 output -{"1":1,"2.0":2} - - --- !query 12581 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 12581 schema -struct> --- !query 12581 output -{"1":1.0,"2.0":2.0} - - --- !query 12582 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 12582 schema -struct> --- !query 12582 output -{"1":1.0,"2.0":2.0} - - --- !query 12583 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 12583 schema -struct> --- !query 12583 output -{"1":1,"2.0":2} - - --- !query 12584 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 12584 schema -struct> --- !query 12584 output -{"1":"1","2.0":"2"} - - --- !query 12585 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 12585 schema -struct<> --- !query 12585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12586 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 12586 schema -struct<> --- !query 12586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12587 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12587 schema -struct<> --- !query 12587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12588 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12588 schema -struct<> --- !query 12588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12589 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 12589 schema -struct> --- !query 12589 output -{"1":1,"2.0":2} - - --- !query 12590 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 12590 schema -struct> --- !query 12590 output -{"1":1,"2.0":2} - - --- !query 12591 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 12591 schema -struct> --- !query 12591 output -{"1":1,"2.0":2} - - --- !query 12592 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 12592 schema -struct> --- !query 12592 output -{"1":1,"2.0":2} - - --- !query 12593 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 12593 schema -struct> --- !query 12593 output -{"1":1.0,"2.0":2.0} - - --- !query 12594 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 12594 schema -struct> --- !query 12594 output -{"1":1.0,"2.0":2.0} - - --- !query 12595 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 12595 schema -struct> --- !query 12595 output -{"1":1,"2.0":2} - - --- !query 12596 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 12596 schema -struct> --- !query 12596 output -{"1":"1","2.0":"2"} - - --- !query 12597 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 12597 schema -struct<> --- !query 12597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12598 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 12598 schema -struct<> --- !query 12598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12599 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12599 schema -struct<> --- !query 12599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12600 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12600 schema -struct<> --- !query 12600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12601 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 12601 schema -struct> --- !query 12601 output -{"1":1,"2":2} - - --- !query 12602 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 12602 schema -struct> --- !query 12602 output -{"1":1,"2":2} - - --- !query 12603 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 12603 schema -struct> --- !query 12603 output -{"1":1,"2":2} - - --- !query 12604 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 12604 schema -struct> --- !query 12604 output -{"1":1,"2":2} - - --- !query 12605 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 12605 schema -struct> --- !query 12605 output -{"1":1.0,"2":2.0} - - --- !query 12606 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 12606 schema -struct> --- !query 12606 output -{"1":1.0,"2":2.0} - - --- !query 12607 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 12607 schema -struct> --- !query 12607 output -{"1":1,"2":2} - - --- !query 12608 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 12608 schema -struct> --- !query 12608 output -{"1":"1","2":"2"} - - --- !query 12609 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 12609 schema -struct<> --- !query 12609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12610 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 12610 schema -struct<> --- !query 12610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12611 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12611 schema -struct<> --- !query 12611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12612 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12612 schema -struct<> --- !query 12612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12613 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 12613 schema -struct> --- !query 12613 output -{"1":1,"2":2} - - --- !query 12614 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 12614 schema -struct> --- !query 12614 output -{"1":1,"2":2} - - --- !query 12615 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 12615 schema -struct> --- !query 12615 output -{"1":1,"2":2} - - --- !query 12616 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 12616 schema -struct> --- !query 12616 output -{"1":1,"2":2} - - --- !query 12617 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 12617 schema -struct> --- !query 12617 output -{"1":1.0,"2":2.0} - - --- !query 12618 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 12618 schema -struct> --- !query 12618 output -{"1":1.0,"2":2.0} - - --- !query 12619 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 12619 schema -struct> --- !query 12619 output -{"1":1,"2":2} - - --- !query 12620 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 12620 schema -struct> --- !query 12620 output -{"1":"1","2":"2"} - - --- !query 12621 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 12621 schema -struct<> --- !query 12621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12622 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 12622 schema -struct<> --- !query 12622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12623 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12623 schema -struct<> --- !query 12623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12624 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12624 schema -struct<> --- !query 12624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12625 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 12625 schema -struct<> --- !query 12625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12626 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 12626 schema -struct<> --- !query 12626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12627 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 12627 schema -struct<> --- !query 12627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12628 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 12628 schema -struct<> --- !query 12628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12629 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 12629 schema -struct<> --- !query 12629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12630 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 12630 schema -struct<> --- !query 12630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12631 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 12631 schema -struct<> --- !query 12631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12632 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 12632 schema -struct<> --- !query 12632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12633 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 12633 schema -struct<> --- !query 12633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12634 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 12634 schema -struct<> --- !query 12634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12635 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12635 schema -struct<> --- !query 12635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12636 -SELECT map(cast(1 as string), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12636 schema -struct<> --- !query 12636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12637 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 12637 schema -struct<> --- !query 12637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12638 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 12638 schema -struct<> --- !query 12638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12639 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 12639 schema -struct<> --- !query 12639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12640 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 12640 schema -struct<> --- !query 12640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12641 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 12641 schema -struct<> --- !query 12641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12642 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 12642 schema -struct<> --- !query 12642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12643 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 12643 schema -struct<> --- !query 12643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12644 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 12644 schema -struct<> --- !query 12644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12645 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 12645 schema -struct<> --- !query 12645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12646 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 12646 schema -struct<> --- !query 12646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12647 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12647 schema -struct<> --- !query 12647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12648 -SELECT map(cast(1 as string), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12648 schema -struct<> --- !query 12648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12649 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 12649 schema -struct> --- !query 12649 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12650 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 12650 schema -struct> --- !query 12650 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12651 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 12651 schema -struct> --- !query 12651 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12652 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 12652 schema -struct> --- !query 12652 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12653 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 12653 schema -struct> --- !query 12653 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12654 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 12654 schema -struct> --- !query 12654 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12655 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 12655 schema -struct> --- !query 12655 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12656 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 12656 schema -struct> --- !query 12656 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 12657 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 12657 schema -struct<> --- !query 12657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12658 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 12658 schema -struct<> --- !query 12658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12659 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12659 schema -struct<> --- !query 12659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12660 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12660 schema -struct<> --- !query 12660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12661 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 12661 schema -struct> --- !query 12661 output -{"1":1,"2017-12-12":2} - - --- !query 12662 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 12662 schema -struct> --- !query 12662 output -{"1":1,"2017-12-12":2} - - --- !query 12663 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 12663 schema -struct> --- !query 12663 output -{"1":1,"2017-12-12":2} - - --- !query 12664 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 12664 schema -struct> --- !query 12664 output -{"1":1,"2017-12-12":2} - - --- !query 12665 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 12665 schema -struct> --- !query 12665 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12666 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 12666 schema -struct> --- !query 12666 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12667 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 12667 schema -struct> --- !query 12667 output -{"1":1,"2017-12-12":2} - - --- !query 12668 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 12668 schema -struct> --- !query 12668 output -{"1":"1","2017-12-12":"2"} - - --- !query 12669 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 12669 schema -struct<> --- !query 12669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 12670 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 12670 schema -struct<> --- !query 12670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 12671 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12671 schema -struct<> --- !query 12671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 12672 -SELECT map(cast(1 as string), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12672 schema -struct<> --- !query 12672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 12673 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 12673 schema -struct> --- !query 12673 output -{"1":1,"2":2} - - --- !query 12674 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 12674 schema -struct> --- !query 12674 output -{"1":1,"2":2} - - --- !query 12675 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 12675 schema -struct> --- !query 12675 output -{"1":1,"2":2} - - --- !query 12676 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 12676 schema -struct> --- !query 12676 output -{"1":1,"2":2} - - --- !query 12677 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 12677 schema -struct> --- !query 12677 output -{"1":1.0,"2":2.0} - - --- !query 12678 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 12678 schema -struct> --- !query 12678 output -{"1":1.0,"2":2.0} - - --- !query 12679 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 12679 schema -struct> --- !query 12679 output -{"1":1,"2":2} - - --- !query 12680 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 12680 schema -struct> --- !query 12680 output -{"1":"1","2":"2"} - - --- !query 12681 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 12681 schema -struct<> --- !query 12681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12682 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 12682 schema -struct<> --- !query 12682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12683 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12683 schema -struct<> --- !query 12683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12684 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12684 schema -struct<> --- !query 12684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12685 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 12685 schema -struct> --- !query 12685 output -{"1":1,"2":2} - - --- !query 12686 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 12686 schema -struct> --- !query 12686 output -{"1":1,"2":2} - - --- !query 12687 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 12687 schema -struct> --- !query 12687 output -{"1":1,"2":2} - - --- !query 12688 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 12688 schema -struct> --- !query 12688 output -{"1":1,"2":2} - - --- !query 12689 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 12689 schema -struct> --- !query 12689 output -{"1":1.0,"2":2.0} - - --- !query 12690 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 12690 schema -struct> --- !query 12690 output -{"1":1.0,"2":2.0} - - --- !query 12691 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 12691 schema -struct> --- !query 12691 output -{"1":1,"2":2} - - --- !query 12692 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 12692 schema -struct> --- !query 12692 output -{"1":"1","2":"2"} - - --- !query 12693 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 12693 schema -struct<> --- !query 12693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12694 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 12694 schema -struct<> --- !query 12694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12695 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12695 schema -struct<> --- !query 12695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12696 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12696 schema -struct<> --- !query 12696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12697 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 12697 schema -struct> --- !query 12697 output -{"1":1,"2":2} - - --- !query 12698 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 12698 schema -struct> --- !query 12698 output -{"1":1,"2":2} - - --- !query 12699 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 12699 schema -struct> --- !query 12699 output -{"1":1,"2":2} - - --- !query 12700 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 12700 schema -struct> --- !query 12700 output -{"1":1,"2":2} - - --- !query 12701 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 12701 schema -struct> --- !query 12701 output -{"1":1.0,"2":2.0} - - --- !query 12702 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 12702 schema -struct> --- !query 12702 output -{"1":1.0,"2":2.0} - - --- !query 12703 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 12703 schema -struct> --- !query 12703 output -{"1":1,"2":2} - - --- !query 12704 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 12704 schema -struct> --- !query 12704 output -{"1":"1","2":"2"} - - --- !query 12705 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 12705 schema -struct<> --- !query 12705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12706 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 12706 schema -struct<> --- !query 12706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12707 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12707 schema -struct<> --- !query 12707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12708 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12708 schema -struct<> --- !query 12708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12709 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 12709 schema -struct> --- !query 12709 output -{"1":1,"2":2} - - --- !query 12710 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 12710 schema -struct> --- !query 12710 output -{"1":1,"2":2} - - --- !query 12711 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 12711 schema -struct> --- !query 12711 output -{"1":1,"2":2} - - --- !query 12712 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 12712 schema -struct> --- !query 12712 output -{"1":1,"2":2} - - --- !query 12713 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 12713 schema -struct> --- !query 12713 output -{"1":1.0,"2":2.0} - - --- !query 12714 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 12714 schema -struct> --- !query 12714 output -{"1":1.0,"2":2.0} - - --- !query 12715 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 12715 schema -struct> --- !query 12715 output -{"1":1,"2":2} - - --- !query 12716 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 12716 schema -struct> --- !query 12716 output -{"1":"1","2":"2"} - - --- !query 12717 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 12717 schema -struct<> --- !query 12717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12718 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 12718 schema -struct<> --- !query 12718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12719 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12719 schema -struct<> --- !query 12719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12720 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12720 schema -struct<> --- !query 12720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12721 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 12721 schema -struct> --- !query 12721 output -{"1":1,"2.0":2} - - --- !query 12722 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 12722 schema -struct> --- !query 12722 output -{"1":1,"2.0":2} - - --- !query 12723 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 12723 schema -struct> --- !query 12723 output -{"1":1,"2.0":2} - - --- !query 12724 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 12724 schema -struct> --- !query 12724 output -{"1":1,"2.0":2} - - --- !query 12725 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 12725 schema -struct> --- !query 12725 output -{"1":1.0,"2.0":2.0} - - --- !query 12726 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 12726 schema -struct> --- !query 12726 output -{"1":1.0,"2.0":2.0} - - --- !query 12727 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 12727 schema -struct> --- !query 12727 output -{"1":1,"2.0":2} - - --- !query 12728 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 12728 schema -struct> --- !query 12728 output -{"1":"1","2.0":"2"} - - --- !query 12729 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 12729 schema -struct<> --- !query 12729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12730 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 12730 schema -struct<> --- !query 12730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12731 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12731 schema -struct<> --- !query 12731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12732 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12732 schema -struct<> --- !query 12732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12733 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 12733 schema -struct> --- !query 12733 output -{"1":1,"2.0":2} - - --- !query 12734 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 12734 schema -struct> --- !query 12734 output -{"1":1,"2.0":2} - - --- !query 12735 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 12735 schema -struct> --- !query 12735 output -{"1":1,"2.0":2} - - --- !query 12736 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 12736 schema -struct> --- !query 12736 output -{"1":1,"2.0":2} - - --- !query 12737 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 12737 schema -struct> --- !query 12737 output -{"1":1.0,"2.0":2.0} - - --- !query 12738 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 12738 schema -struct> --- !query 12738 output -{"1":1.0,"2.0":2.0} - - --- !query 12739 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 12739 schema -struct> --- !query 12739 output -{"1":1,"2.0":2} - - --- !query 12740 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 12740 schema -struct> --- !query 12740 output -{"1":"1","2.0":"2"} - - --- !query 12741 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 12741 schema -struct<> --- !query 12741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12742 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 12742 schema -struct<> --- !query 12742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12743 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12743 schema -struct<> --- !query 12743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12744 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12744 schema -struct<> --- !query 12744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12745 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 12745 schema -struct> --- !query 12745 output -{"1":1,"2":2} - - --- !query 12746 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 12746 schema -struct> --- !query 12746 output -{"1":1,"2":2} - - --- !query 12747 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 12747 schema -struct> --- !query 12747 output -{"1":1,"2":2} - - --- !query 12748 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 12748 schema -struct> --- !query 12748 output -{"1":1,"2":2} - - --- !query 12749 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 12749 schema -struct> --- !query 12749 output -{"1":1.0,"2":2.0} - - --- !query 12750 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 12750 schema -struct> --- !query 12750 output -{"1":1.0,"2":2.0} - - --- !query 12751 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 12751 schema -struct> --- !query 12751 output -{"1":1,"2":2} - - --- !query 12752 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 12752 schema -struct> --- !query 12752 output -{"1":"1","2":"2"} - - --- !query 12753 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 12753 schema -struct<> --- !query 12753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12754 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 12754 schema -struct<> --- !query 12754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12755 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12755 schema -struct<> --- !query 12755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12756 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12756 schema -struct<> --- !query 12756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12757 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 12757 schema -struct> --- !query 12757 output -{"1":1,"2":2} - - --- !query 12758 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 12758 schema -struct> --- !query 12758 output -{"1":1,"2":2} - - --- !query 12759 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 12759 schema -struct> --- !query 12759 output -{"1":1,"2":2} - - --- !query 12760 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 12760 schema -struct> --- !query 12760 output -{"1":1,"2":2} - - --- !query 12761 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 12761 schema -struct> --- !query 12761 output -{"1":1.0,"2":2.0} - - --- !query 12762 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 12762 schema -struct> --- !query 12762 output -{"1":1.0,"2":2.0} - - --- !query 12763 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 12763 schema -struct> --- !query 12763 output -{"1":1,"2":2} - - --- !query 12764 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 12764 schema -struct> --- !query 12764 output -{"1":"1","2":"2"} - - --- !query 12765 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 12765 schema -struct<> --- !query 12765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12766 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 12766 schema -struct<> --- !query 12766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12767 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12767 schema -struct<> --- !query 12767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12768 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12768 schema -struct<> --- !query 12768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12769 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 12769 schema -struct<> --- !query 12769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12770 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 12770 schema -struct<> --- !query 12770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12771 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 12771 schema -struct<> --- !query 12771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12772 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 12772 schema -struct<> --- !query 12772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12773 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 12773 schema -struct<> --- !query 12773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12774 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 12774 schema -struct<> --- !query 12774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12775 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 12775 schema -struct<> --- !query 12775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12776 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 12776 schema -struct<> --- !query 12776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12777 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 12777 schema -struct<> --- !query 12777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12778 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 12778 schema -struct<> --- !query 12778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12779 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12779 schema -struct<> --- !query 12779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12780 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12780 schema -struct<> --- !query 12780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12781 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 12781 schema -struct<> --- !query 12781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12782 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 12782 schema -struct<> --- !query 12782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12783 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 12783 schema -struct<> --- !query 12783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12784 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 12784 schema -struct<> --- !query 12784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12785 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 12785 schema -struct<> --- !query 12785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12786 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 12786 schema -struct<> --- !query 12786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12787 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 12787 schema -struct<> --- !query 12787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12788 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 12788 schema -struct<> --- !query 12788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12789 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 12789 schema -struct<> --- !query 12789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12790 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 12790 schema -struct<> --- !query 12790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12791 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12791 schema -struct<> --- !query 12791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12792 -SELECT map(cast(1 as string), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12792 schema -struct<> --- !query 12792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12793 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 12793 schema -struct> --- !query 12793 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12794 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 12794 schema -struct> --- !query 12794 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12795 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 12795 schema -struct> --- !query 12795 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12796 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 12796 schema -struct> --- !query 12796 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12797 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 12797 schema -struct> --- !query 12797 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12798 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 12798 schema -struct> --- !query 12798 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12799 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 12799 schema -struct> --- !query 12799 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 12800 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 12800 schema -struct> --- !query 12800 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 12801 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 12801 schema -struct<> --- !query 12801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12802 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 12802 schema -struct<> --- !query 12802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12803 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12803 schema -struct<> --- !query 12803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12804 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12804 schema -struct<> --- !query 12804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12805 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 12805 schema -struct> --- !query 12805 output -{"1":1,"2017-12-12":2} - - --- !query 12806 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 12806 schema -struct> --- !query 12806 output -{"1":1,"2017-12-12":2} - - --- !query 12807 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 12807 schema -struct> --- !query 12807 output -{"1":1,"2017-12-12":2} - - --- !query 12808 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 12808 schema -struct> --- !query 12808 output -{"1":1,"2017-12-12":2} - - --- !query 12809 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 12809 schema -struct> --- !query 12809 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12810 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 12810 schema -struct> --- !query 12810 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12811 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 12811 schema -struct> --- !query 12811 output -{"1":1,"2017-12-12":2} - - --- !query 12812 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 12812 schema -struct> --- !query 12812 output -{"1":"1","2017-12-12":"2"} - - --- !query 12813 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 12813 schema -struct<> --- !query 12813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 12814 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 12814 schema -struct<> --- !query 12814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 12815 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12815 schema -struct<> --- !query 12815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 12816 -SELECT map(cast(1 as string), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12816 schema -struct<> --- !query 12816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 12817 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 12817 schema -struct> --- !query 12817 output -{"1":1.0,"2":2.0} - - --- !query 12818 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 12818 schema -struct> --- !query 12818 output -{"1":1.0,"2":2.0} - - --- !query 12819 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 12819 schema -struct> --- !query 12819 output -{"1":1.0,"2":2.0} - - --- !query 12820 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 12820 schema -struct> --- !query 12820 output -{"1":1.0,"2":2.0} - - --- !query 12821 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 12821 schema -struct> --- !query 12821 output -{"1":1.0,"2":2.0} - - --- !query 12822 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 12822 schema -struct> --- !query 12822 output -{"1":1.0,"2":2.0} - - --- !query 12823 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 12823 schema -struct> --- !query 12823 output -{"1":1.0,"2":2.0} - - --- !query 12824 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 12824 schema -struct> --- !query 12824 output -{"1":"1.0","2":"2"} - - --- !query 12825 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 12825 schema -struct<> --- !query 12825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12826 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 12826 schema -struct<> --- !query 12826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12827 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12827 schema -struct<> --- !query 12827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12828 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12828 schema -struct<> --- !query 12828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12829 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 12829 schema -struct> --- !query 12829 output -{"1":1.0,"2":2.0} - - --- !query 12830 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 12830 schema -struct> --- !query 12830 output -{"1":1.0,"2":2.0} - - --- !query 12831 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 12831 schema -struct> --- !query 12831 output -{"1":1.0,"2":2.0} - - --- !query 12832 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 12832 schema -struct> --- !query 12832 output -{"1":1.0,"2":2.0} - - --- !query 12833 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 12833 schema -struct> --- !query 12833 output -{"1":1.0,"2":2.0} - - --- !query 12834 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 12834 schema -struct> --- !query 12834 output -{"1":1.0,"2":2.0} - - --- !query 12835 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 12835 schema -struct> --- !query 12835 output -{"1":1.0,"2":2.0} - - --- !query 12836 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 12836 schema -struct> --- !query 12836 output -{"1":"1.0","2":"2"} - - --- !query 12837 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 12837 schema -struct<> --- !query 12837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12838 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 12838 schema -struct<> --- !query 12838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12839 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12839 schema -struct<> --- !query 12839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12840 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12840 schema -struct<> --- !query 12840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12841 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 12841 schema -struct> --- !query 12841 output -{"1":1.0,"2":2.0} - - --- !query 12842 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 12842 schema -struct> --- !query 12842 output -{"1":1.0,"2":2.0} - - --- !query 12843 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 12843 schema -struct> --- !query 12843 output -{"1":1.0,"2":2.0} - - --- !query 12844 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 12844 schema -struct> --- !query 12844 output -{"1":1.0,"2":2.0} - - --- !query 12845 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 12845 schema -struct> --- !query 12845 output -{"1":1.0,"2":2.0} - - --- !query 12846 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 12846 schema -struct> --- !query 12846 output -{"1":1.0,"2":2.0} - - --- !query 12847 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 12847 schema -struct> --- !query 12847 output -{"1":1.0,"2":2.0} - - --- !query 12848 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 12848 schema -struct> --- !query 12848 output -{"1":"1.0","2":"2"} - - --- !query 12849 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 12849 schema -struct<> --- !query 12849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12850 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 12850 schema -struct<> --- !query 12850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12851 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12851 schema -struct<> --- !query 12851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12852 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12852 schema -struct<> --- !query 12852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12853 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 12853 schema -struct> --- !query 12853 output -{"1":1.0,"2":2.0} - - --- !query 12854 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 12854 schema -struct> --- !query 12854 output -{"1":1.0,"2":2.0} - - --- !query 12855 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 12855 schema -struct> --- !query 12855 output -{"1":1.0,"2":2.0} - - --- !query 12856 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 12856 schema -struct> --- !query 12856 output -{"1":1.0,"2":2.0} - - --- !query 12857 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 12857 schema -struct> --- !query 12857 output -{"1":1.0,"2":2.0} - - --- !query 12858 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 12858 schema -struct> --- !query 12858 output -{"1":1.0,"2":2.0} - - --- !query 12859 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 12859 schema -struct> --- !query 12859 output -{"1":1.0,"2":2.0} - - --- !query 12860 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 12860 schema -struct> --- !query 12860 output -{"1":"1.0","2":"2"} - - --- !query 12861 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 12861 schema -struct<> --- !query 12861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12862 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 12862 schema -struct<> --- !query 12862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12863 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12863 schema -struct<> --- !query 12863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12864 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12864 schema -struct<> --- !query 12864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12865 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 12865 schema -struct> --- !query 12865 output -{"1":1.0,"2.0":2.0} - - --- !query 12866 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 12866 schema -struct> --- !query 12866 output -{"1":1.0,"2.0":2.0} - - --- !query 12867 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 12867 schema -struct> --- !query 12867 output -{"1":1.0,"2.0":2.0} - - --- !query 12868 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 12868 schema -struct> --- !query 12868 output -{"1":1.0,"2.0":2.0} - - --- !query 12869 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 12869 schema -struct> --- !query 12869 output -{"1":1.0,"2.0":2.0} - - --- !query 12870 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 12870 schema -struct> --- !query 12870 output -{"1":1.0,"2.0":2.0} - - --- !query 12871 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 12871 schema -struct> --- !query 12871 output -{"1":1.0,"2.0":2.0} - - --- !query 12872 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 12872 schema -struct> --- !query 12872 output -{"1":"1.0","2.0":"2"} - - --- !query 12873 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 12873 schema -struct<> --- !query 12873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12874 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 12874 schema -struct<> --- !query 12874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12875 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12875 schema -struct<> --- !query 12875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12876 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12876 schema -struct<> --- !query 12876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12877 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 12877 schema -struct> --- !query 12877 output -{"1":1.0,"2.0":2.0} - - --- !query 12878 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 12878 schema -struct> --- !query 12878 output -{"1":1.0,"2.0":2.0} - - --- !query 12879 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 12879 schema -struct> --- !query 12879 output -{"1":1.0,"2.0":2.0} - - --- !query 12880 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 12880 schema -struct> --- !query 12880 output -{"1":1.0,"2.0":2.0} - - --- !query 12881 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 12881 schema -struct> --- !query 12881 output -{"1":1.0,"2.0":2.0} - - --- !query 12882 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 12882 schema -struct> --- !query 12882 output -{"1":1.0,"2.0":2.0} - - --- !query 12883 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 12883 schema -struct> --- !query 12883 output -{"1":1.0,"2.0":2.0} - - --- !query 12884 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 12884 schema -struct> --- !query 12884 output -{"1":"1.0","2.0":"2"} - - --- !query 12885 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 12885 schema -struct<> --- !query 12885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12886 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 12886 schema -struct<> --- !query 12886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12887 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12887 schema -struct<> --- !query 12887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12888 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12888 schema -struct<> --- !query 12888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12889 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 12889 schema -struct> --- !query 12889 output -{"1":1.0,"2":2.0} - - --- !query 12890 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 12890 schema -struct> --- !query 12890 output -{"1":1.0,"2":2.0} - - --- !query 12891 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 12891 schema -struct> --- !query 12891 output -{"1":1.0,"2":2.0} - - --- !query 12892 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 12892 schema -struct> --- !query 12892 output -{"1":1.0,"2":2.0} - - --- !query 12893 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 12893 schema -struct> --- !query 12893 output -{"1":1.0,"2":2.0} - - --- !query 12894 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 12894 schema -struct> --- !query 12894 output -{"1":1.0,"2":2.0} - - --- !query 12895 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 12895 schema -struct> --- !query 12895 output -{"1":1.0,"2":2.0} - - --- !query 12896 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 12896 schema -struct> --- !query 12896 output -{"1":"1.0","2":"2"} - - --- !query 12897 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 12897 schema -struct<> --- !query 12897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12898 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 12898 schema -struct<> --- !query 12898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12899 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12899 schema -struct<> --- !query 12899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12900 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12900 schema -struct<> --- !query 12900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12901 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 12901 schema -struct> --- !query 12901 output -{"1":1.0,"2":2.0} - - --- !query 12902 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 12902 schema -struct> --- !query 12902 output -{"1":1.0,"2":2.0} - - --- !query 12903 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 12903 schema -struct> --- !query 12903 output -{"1":1.0,"2":2.0} - - --- !query 12904 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 12904 schema -struct> --- !query 12904 output -{"1":1.0,"2":2.0} - - --- !query 12905 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 12905 schema -struct> --- !query 12905 output -{"1":1.0,"2":2.0} - - --- !query 12906 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 12906 schema -struct> --- !query 12906 output -{"1":1.0,"2":2.0} - - --- !query 12907 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 12907 schema -struct> --- !query 12907 output -{"1":1.0,"2":2.0} - - --- !query 12908 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 12908 schema -struct> --- !query 12908 output -{"1":"1.0","2":"2"} - - --- !query 12909 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 12909 schema -struct<> --- !query 12909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12910 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 12910 schema -struct<> --- !query 12910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12911 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12911 schema -struct<> --- !query 12911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12912 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12912 schema -struct<> --- !query 12912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12913 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 12913 schema -struct<> --- !query 12913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12914 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 12914 schema -struct<> --- !query 12914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12915 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 12915 schema -struct<> --- !query 12915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12916 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 12916 schema -struct<> --- !query 12916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12917 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 12917 schema -struct<> --- !query 12917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12918 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 12918 schema -struct<> --- !query 12918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12919 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 12919 schema -struct<> --- !query 12919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12920 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 12920 schema -struct<> --- !query 12920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12921 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 12921 schema -struct<> --- !query 12921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12922 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 12922 schema -struct<> --- !query 12922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12923 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12923 schema -struct<> --- !query 12923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12924 -SELECT map(cast(1 as string), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12924 schema -struct<> --- !query 12924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 12925 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 12925 schema -struct<> --- !query 12925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12926 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 12926 schema -struct<> --- !query 12926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12927 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 12927 schema -struct<> --- !query 12927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12928 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 12928 schema -struct<> --- !query 12928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12929 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 12929 schema -struct<> --- !query 12929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12930 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 12930 schema -struct<> --- !query 12930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12931 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 12931 schema -struct<> --- !query 12931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12932 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 12932 schema -struct<> --- !query 12932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12933 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 12933 schema -struct<> --- !query 12933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12934 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 12934 schema -struct<> --- !query 12934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12935 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12935 schema -struct<> --- !query 12935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12936 -SELECT map(cast(1 as string), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12936 schema -struct<> --- !query 12936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 12937 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 12937 schema -struct> --- !query 12937 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12938 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 12938 schema -struct> --- !query 12938 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12939 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 12939 schema -struct> --- !query 12939 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12940 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 12940 schema -struct> --- !query 12940 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12941 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 12941 schema -struct> --- !query 12941 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12942 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 12942 schema -struct> --- !query 12942 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12943 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 12943 schema -struct> --- !query 12943 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 12944 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 12944 schema -struct> --- !query 12944 output -{"1":"1.0","2017-12-12 09:30:00":"2"} - - --- !query 12945 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 12945 schema -struct<> --- !query 12945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12946 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 12946 schema -struct<> --- !query 12946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12947 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12947 schema -struct<> --- !query 12947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12948 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12948 schema -struct<> --- !query 12948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12949 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 12949 schema -struct> --- !query 12949 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12950 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 12950 schema -struct> --- !query 12950 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12951 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 12951 schema -struct> --- !query 12951 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12952 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 12952 schema -struct> --- !query 12952 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12953 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 12953 schema -struct> --- !query 12953 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12954 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 12954 schema -struct> --- !query 12954 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12955 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 12955 schema -struct> --- !query 12955 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 12956 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 12956 schema -struct> --- !query 12956 output -{"1":"1.0","2017-12-12":"2"} - - --- !query 12957 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 12957 schema -struct<> --- !query 12957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 12958 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 12958 schema -struct<> --- !query 12958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 12959 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12959 schema -struct<> --- !query 12959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 12960 -SELECT map(cast(1 as string), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12960 schema -struct<> --- !query 12960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 12961 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 12961 schema -struct> --- !query 12961 output -{"1":1.0,"2":2.0} - - --- !query 12962 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 12962 schema -struct> --- !query 12962 output -{"1":1.0,"2":2.0} - - --- !query 12963 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 12963 schema -struct> --- !query 12963 output -{"1":1.0,"2":2.0} - - --- !query 12964 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 12964 schema -struct> --- !query 12964 output -{"1":1.0,"2":2.0} - - --- !query 12965 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 12965 schema -struct> --- !query 12965 output -{"1":1.0,"2":2.0} - - --- !query 12966 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 12966 schema -struct> --- !query 12966 output -{"1":1.0,"2":2.0} - - --- !query 12967 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 12967 schema -struct> --- !query 12967 output -{"1":1.0,"2":2.0} - - --- !query 12968 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 12968 schema -struct> --- !query 12968 output -{"1":"1.0","2":"2"} - - --- !query 12969 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 12969 schema -struct<> --- !query 12969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 12970 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 12970 schema -struct<> --- !query 12970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 12971 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12971 schema -struct<> --- !query 12971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 12972 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12972 schema -struct<> --- !query 12972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 12973 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 12973 schema -struct> --- !query 12973 output -{"1":1.0,"2":2.0} - - --- !query 12974 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 12974 schema -struct> --- !query 12974 output -{"1":1.0,"2":2.0} - - --- !query 12975 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 12975 schema -struct> --- !query 12975 output -{"1":1.0,"2":2.0} - - --- !query 12976 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 12976 schema -struct> --- !query 12976 output -{"1":1.0,"2":2.0} - - --- !query 12977 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 12977 schema -struct> --- !query 12977 output -{"1":1.0,"2":2.0} - - --- !query 12978 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 12978 schema -struct> --- !query 12978 output -{"1":1.0,"2":2.0} - - --- !query 12979 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 12979 schema -struct> --- !query 12979 output -{"1":1.0,"2":2.0} - - --- !query 12980 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 12980 schema -struct> --- !query 12980 output -{"1":"1.0","2":"2"} - - --- !query 12981 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 12981 schema -struct<> --- !query 12981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 12982 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 12982 schema -struct<> --- !query 12982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 12983 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12983 schema -struct<> --- !query 12983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 12984 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12984 schema -struct<> --- !query 12984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 12985 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 12985 schema -struct> --- !query 12985 output -{"1":1.0,"2":2.0} - - --- !query 12986 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 12986 schema -struct> --- !query 12986 output -{"1":1.0,"2":2.0} - - --- !query 12987 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 12987 schema -struct> --- !query 12987 output -{"1":1.0,"2":2.0} - - --- !query 12988 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 12988 schema -struct> --- !query 12988 output -{"1":1.0,"2":2.0} - - --- !query 12989 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 12989 schema -struct> --- !query 12989 output -{"1":1.0,"2":2.0} - - --- !query 12990 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 12990 schema -struct> --- !query 12990 output -{"1":1.0,"2":2.0} - - --- !query 12991 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 12991 schema -struct> --- !query 12991 output -{"1":1.0,"2":2.0} - - --- !query 12992 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 12992 schema -struct> --- !query 12992 output -{"1":"1.0","2":"2"} - - --- !query 12993 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 12993 schema -struct<> --- !query 12993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 12994 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 12994 schema -struct<> --- !query 12994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 12995 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 12995 schema -struct<> --- !query 12995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 12996 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 12996 schema -struct<> --- !query 12996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 12997 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 12997 schema -struct> --- !query 12997 output -{"1":1.0,"2":2.0} - - --- !query 12998 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 12998 schema -struct> --- !query 12998 output -{"1":1.0,"2":2.0} - - --- !query 12999 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 12999 schema -struct> --- !query 12999 output -{"1":1.0,"2":2.0} - - --- !query 13000 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 13000 schema -struct> --- !query 13000 output -{"1":1.0,"2":2.0} - - --- !query 13001 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 13001 schema -struct> --- !query 13001 output -{"1":1.0,"2":2.0} - - --- !query 13002 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 13002 schema -struct> --- !query 13002 output -{"1":1.0,"2":2.0} - - --- !query 13003 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 13003 schema -struct> --- !query 13003 output -{"1":1.0,"2":2.0} - - --- !query 13004 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 13004 schema -struct> --- !query 13004 output -{"1":"1.0","2":"2"} - - --- !query 13005 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 13005 schema -struct<> --- !query 13005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 13006 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 13006 schema -struct<> --- !query 13006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 13007 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13007 schema -struct<> --- !query 13007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 13008 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13008 schema -struct<> --- !query 13008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 13009 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 13009 schema -struct> --- !query 13009 output -{"1":1.0,"2.0":2.0} - - --- !query 13010 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 13010 schema -struct> --- !query 13010 output -{"1":1.0,"2.0":2.0} - - --- !query 13011 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 13011 schema -struct> --- !query 13011 output -{"1":1.0,"2.0":2.0} - - --- !query 13012 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 13012 schema -struct> --- !query 13012 output -{"1":1.0,"2.0":2.0} - - --- !query 13013 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 13013 schema -struct> --- !query 13013 output -{"1":1.0,"2.0":2.0} - - --- !query 13014 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 13014 schema -struct> --- !query 13014 output -{"1":1.0,"2.0":2.0} - - --- !query 13015 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 13015 schema -struct> --- !query 13015 output -{"1":1.0,"2.0":2.0} - - --- !query 13016 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 13016 schema -struct> --- !query 13016 output -{"1":"1.0","2.0":"2"} - - --- !query 13017 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 13017 schema -struct<> --- !query 13017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 13018 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 13018 schema -struct<> --- !query 13018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 13019 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13019 schema -struct<> --- !query 13019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 13020 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13020 schema -struct<> --- !query 13020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 13021 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 13021 schema -struct> --- !query 13021 output -{"1":1.0,"2.0":2.0} - - --- !query 13022 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 13022 schema -struct> --- !query 13022 output -{"1":1.0,"2.0":2.0} - - --- !query 13023 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 13023 schema -struct> --- !query 13023 output -{"1":1.0,"2.0":2.0} - - --- !query 13024 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 13024 schema -struct> --- !query 13024 output -{"1":1.0,"2.0":2.0} - - --- !query 13025 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 13025 schema -struct> --- !query 13025 output -{"1":1.0,"2.0":2.0} - - --- !query 13026 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 13026 schema -struct> --- !query 13026 output -{"1":1.0,"2.0":2.0} - - --- !query 13027 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 13027 schema -struct> --- !query 13027 output -{"1":1.0,"2.0":2.0} - - --- !query 13028 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 13028 schema -struct> --- !query 13028 output -{"1":"1.0","2.0":"2"} - - --- !query 13029 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 13029 schema -struct<> --- !query 13029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 13030 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 13030 schema -struct<> --- !query 13030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 13031 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13031 schema -struct<> --- !query 13031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 13032 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13032 schema -struct<> --- !query 13032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 13033 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 13033 schema -struct> --- !query 13033 output -{"1":1.0,"2":2.0} - - --- !query 13034 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 13034 schema -struct> --- !query 13034 output -{"1":1.0,"2":2.0} - - --- !query 13035 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 13035 schema -struct> --- !query 13035 output -{"1":1.0,"2":2.0} - - --- !query 13036 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 13036 schema -struct> --- !query 13036 output -{"1":1.0,"2":2.0} - - --- !query 13037 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 13037 schema -struct> --- !query 13037 output -{"1":1.0,"2":2.0} - - --- !query 13038 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 13038 schema -struct> --- !query 13038 output -{"1":1.0,"2":2.0} - - --- !query 13039 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 13039 schema -struct> --- !query 13039 output -{"1":1.0,"2":2.0} - - --- !query 13040 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 13040 schema -struct> --- !query 13040 output -{"1":"1.0","2":"2"} - - --- !query 13041 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 13041 schema -struct<> --- !query 13041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 13042 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 13042 schema -struct<> --- !query 13042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 13043 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13043 schema -struct<> --- !query 13043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 13044 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13044 schema -struct<> --- !query 13044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 13045 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 13045 schema -struct> --- !query 13045 output -{"1":1.0,"2":2.0} - - --- !query 13046 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 13046 schema -struct> --- !query 13046 output -{"1":1.0,"2":2.0} - - --- !query 13047 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 13047 schema -struct> --- !query 13047 output -{"1":1.0,"2":2.0} - - --- !query 13048 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 13048 schema -struct> --- !query 13048 output -{"1":1.0,"2":2.0} - - --- !query 13049 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 13049 schema -struct> --- !query 13049 output -{"1":1.0,"2":2.0} - - --- !query 13050 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 13050 schema -struct> --- !query 13050 output -{"1":1.0,"2":2.0} - - --- !query 13051 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 13051 schema -struct> --- !query 13051 output -{"1":1.0,"2":2.0} - - --- !query 13052 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 13052 schema -struct> --- !query 13052 output -{"1":"1.0","2":"2"} - - --- !query 13053 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 13053 schema -struct<> --- !query 13053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 13054 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 13054 schema -struct<> --- !query 13054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 13055 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13055 schema -struct<> --- !query 13055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 13056 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13056 schema -struct<> --- !query 13056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 13057 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 13057 schema -struct<> --- !query 13057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13058 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 13058 schema -struct<> --- !query 13058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13059 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 13059 schema -struct<> --- !query 13059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13060 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 13060 schema -struct<> --- !query 13060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13061 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 13061 schema -struct<> --- !query 13061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13062 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 13062 schema -struct<> --- !query 13062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13063 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 13063 schema -struct<> --- !query 13063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13064 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 13064 schema -struct<> --- !query 13064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13065 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 13065 schema -struct<> --- !query 13065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13066 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 13066 schema -struct<> --- !query 13066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13067 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13067 schema -struct<> --- !query 13067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13068 -SELECT map(cast(1 as string), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13068 schema -struct<> --- !query 13068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13069 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 13069 schema -struct<> --- !query 13069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13070 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 13070 schema -struct<> --- !query 13070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13071 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 13071 schema -struct<> --- !query 13071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13072 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 13072 schema -struct<> --- !query 13072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13073 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 13073 schema -struct<> --- !query 13073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13074 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 13074 schema -struct<> --- !query 13074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13075 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 13075 schema -struct<> --- !query 13075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13076 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 13076 schema -struct<> --- !query 13076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13077 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 13077 schema -struct<> --- !query 13077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13078 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 13078 schema -struct<> --- !query 13078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13079 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13079 schema -struct<> --- !query 13079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13080 -SELECT map(cast(1 as string), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13080 schema -struct<> --- !query 13080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13081 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 13081 schema -struct> --- !query 13081 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13082 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 13082 schema -struct> --- !query 13082 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13083 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 13083 schema -struct> --- !query 13083 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13084 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 13084 schema -struct> --- !query 13084 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13085 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 13085 schema -struct> --- !query 13085 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13086 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 13086 schema -struct> --- !query 13086 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13087 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 13087 schema -struct> --- !query 13087 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13088 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 13088 schema -struct> --- !query 13088 output -{"1":"1.0","2017-12-12 09:30:00":"2"} - - --- !query 13089 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 13089 schema -struct<> --- !query 13089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 13090 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 13090 schema -struct<> --- !query 13090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 13091 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13091 schema -struct<> --- !query 13091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 13092 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13092 schema -struct<> --- !query 13092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 13093 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 13093 schema -struct> --- !query 13093 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13094 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 13094 schema -struct> --- !query 13094 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13095 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 13095 schema -struct> --- !query 13095 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13096 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 13096 schema -struct> --- !query 13096 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13097 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 13097 schema -struct> --- !query 13097 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13098 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 13098 schema -struct> --- !query 13098 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13099 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 13099 schema -struct> --- !query 13099 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13100 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 13100 schema -struct> --- !query 13100 output -{"1":"1.0","2017-12-12":"2"} - - --- !query 13101 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 13101 schema -struct<> --- !query 13101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 13102 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 13102 schema -struct<> --- !query 13102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 13103 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13103 schema -struct<> --- !query 13103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 13104 -SELECT map(cast(1 as string), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13104 schema -struct<> --- !query 13104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 13105 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 13105 schema -struct> --- !query 13105 output -{"1":1,"2":2} - - --- !query 13106 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 13106 schema -struct> --- !query 13106 output -{"1":1,"2":2} - - --- !query 13107 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 13107 schema -struct> --- !query 13107 output -{"1":1,"2":2} - - --- !query 13108 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 13108 schema -struct> --- !query 13108 output -{"1":1,"2":2} - - --- !query 13109 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 13109 schema -struct> --- !query 13109 output -{"1":1.0,"2":2.0} - - --- !query 13110 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 13110 schema -struct> --- !query 13110 output -{"1":1.0,"2":2.0} - - --- !query 13111 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 13111 schema -struct> --- !query 13111 output -{"1":1,"2":2} - - --- !query 13112 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 13112 schema -struct> --- !query 13112 output -{"1":"1","2":"2"} - - --- !query 13113 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 13113 schema -struct<> --- !query 13113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13114 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 13114 schema -struct<> --- !query 13114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13115 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13115 schema -struct<> --- !query 13115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13116 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13116 schema -struct<> --- !query 13116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13117 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 13117 schema -struct> --- !query 13117 output -{"1":1,"2":2} - - --- !query 13118 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 13118 schema -struct> --- !query 13118 output -{"1":1,"2":2} - - --- !query 13119 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 13119 schema -struct> --- !query 13119 output -{"1":1,"2":2} - - --- !query 13120 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 13120 schema -struct> --- !query 13120 output -{"1":1,"2":2} - - --- !query 13121 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 13121 schema -struct> --- !query 13121 output -{"1":1.0,"2":2.0} - - --- !query 13122 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 13122 schema -struct> --- !query 13122 output -{"1":1.0,"2":2.0} - - --- !query 13123 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 13123 schema -struct> --- !query 13123 output -{"1":1,"2":2} - - --- !query 13124 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 13124 schema -struct> --- !query 13124 output -{"1":"1","2":"2"} - - --- !query 13125 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 13125 schema -struct<> --- !query 13125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13126 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 13126 schema -struct<> --- !query 13126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13127 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13127 schema -struct<> --- !query 13127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13128 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13128 schema -struct<> --- !query 13128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13129 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 13129 schema -struct> --- !query 13129 output -{"1":1,"2":2} - - --- !query 13130 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 13130 schema -struct> --- !query 13130 output -{"1":1,"2":2} - - --- !query 13131 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 13131 schema -struct> --- !query 13131 output -{"1":1,"2":2} - - --- !query 13132 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 13132 schema -struct> --- !query 13132 output -{"1":1,"2":2} - - --- !query 13133 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 13133 schema -struct> --- !query 13133 output -{"1":1.0,"2":2.0} - - --- !query 13134 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 13134 schema -struct> --- !query 13134 output -{"1":1.0,"2":2.0} - - --- !query 13135 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 13135 schema -struct> --- !query 13135 output -{"1":1,"2":2} - - --- !query 13136 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 13136 schema -struct> --- !query 13136 output -{"1":"1","2":"2"} - - --- !query 13137 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 13137 schema -struct<> --- !query 13137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13138 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 13138 schema -struct<> --- !query 13138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13139 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13139 schema -struct<> --- !query 13139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13140 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13140 schema -struct<> --- !query 13140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13141 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 13141 schema -struct> --- !query 13141 output -{"1":1,"2":2} - - --- !query 13142 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 13142 schema -struct> --- !query 13142 output -{"1":1,"2":2} - - --- !query 13143 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 13143 schema -struct> --- !query 13143 output -{"1":1,"2":2} - - --- !query 13144 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 13144 schema -struct> --- !query 13144 output -{"1":1,"2":2} - - --- !query 13145 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 13145 schema -struct> --- !query 13145 output -{"1":1.0,"2":2.0} - - --- !query 13146 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 13146 schema -struct> --- !query 13146 output -{"1":1.0,"2":2.0} - - --- !query 13147 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 13147 schema -struct> --- !query 13147 output -{"1":1,"2":2} - - --- !query 13148 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 13148 schema -struct> --- !query 13148 output -{"1":"1","2":"2"} - - --- !query 13149 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 13149 schema -struct<> --- !query 13149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13150 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 13150 schema -struct<> --- !query 13150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13151 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13151 schema -struct<> --- !query 13151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13152 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13152 schema -struct<> --- !query 13152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13153 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 13153 schema -struct> --- !query 13153 output -{"1":1,"2.0":2} - - --- !query 13154 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 13154 schema -struct> --- !query 13154 output -{"1":1,"2.0":2} - - --- !query 13155 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 13155 schema -struct> --- !query 13155 output -{"1":1,"2.0":2} - - --- !query 13156 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 13156 schema -struct> --- !query 13156 output -{"1":1,"2.0":2} - - --- !query 13157 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 13157 schema -struct> --- !query 13157 output -{"1":1.0,"2.0":2.0} - - --- !query 13158 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 13158 schema -struct> --- !query 13158 output -{"1":1.0,"2.0":2.0} - - --- !query 13159 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 13159 schema -struct> --- !query 13159 output -{"1":1,"2.0":2} - - --- !query 13160 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 13160 schema -struct> --- !query 13160 output -{"1":"1","2.0":"2"} - - --- !query 13161 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 13161 schema -struct<> --- !query 13161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13162 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 13162 schema -struct<> --- !query 13162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13163 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13163 schema -struct<> --- !query 13163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13164 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13164 schema -struct<> --- !query 13164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13165 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 13165 schema -struct> --- !query 13165 output -{"1":1,"2.0":2} - - --- !query 13166 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 13166 schema -struct> --- !query 13166 output -{"1":1,"2.0":2} - - --- !query 13167 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 13167 schema -struct> --- !query 13167 output -{"1":1,"2.0":2} - - --- !query 13168 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 13168 schema -struct> --- !query 13168 output -{"1":1,"2.0":2} - - --- !query 13169 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 13169 schema -struct> --- !query 13169 output -{"1":1.0,"2.0":2.0} - - --- !query 13170 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 13170 schema -struct> --- !query 13170 output -{"1":1.0,"2.0":2.0} - - --- !query 13171 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 13171 schema -struct> --- !query 13171 output -{"1":1,"2.0":2} - - --- !query 13172 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 13172 schema -struct> --- !query 13172 output -{"1":"1","2.0":"2"} - - --- !query 13173 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 13173 schema -struct<> --- !query 13173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13174 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 13174 schema -struct<> --- !query 13174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13175 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13175 schema -struct<> --- !query 13175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13176 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13176 schema -struct<> --- !query 13176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13177 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 13177 schema -struct> --- !query 13177 output -{"1":1,"2":2} - - --- !query 13178 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 13178 schema -struct> --- !query 13178 output -{"1":1,"2":2} - - --- !query 13179 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 13179 schema -struct> --- !query 13179 output -{"1":1,"2":2} - - --- !query 13180 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 13180 schema -struct> --- !query 13180 output -{"1":1,"2":2} - - --- !query 13181 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 13181 schema -struct> --- !query 13181 output -{"1":1.0,"2":2.0} - - --- !query 13182 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 13182 schema -struct> --- !query 13182 output -{"1":1.0,"2":2.0} - - --- !query 13183 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 13183 schema -struct> --- !query 13183 output -{"1":1,"2":2} - - --- !query 13184 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 13184 schema -struct> --- !query 13184 output -{"1":"1","2":"2"} - - --- !query 13185 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 13185 schema -struct<> --- !query 13185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13186 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 13186 schema -struct<> --- !query 13186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13187 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13187 schema -struct<> --- !query 13187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13188 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13188 schema -struct<> --- !query 13188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13189 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 13189 schema -struct> --- !query 13189 output -{"1":1,"2":2} - - --- !query 13190 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 13190 schema -struct> --- !query 13190 output -{"1":1,"2":2} - - --- !query 13191 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 13191 schema -struct> --- !query 13191 output -{"1":1,"2":2} - - --- !query 13192 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 13192 schema -struct> --- !query 13192 output -{"1":1,"2":2} - - --- !query 13193 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 13193 schema -struct> --- !query 13193 output -{"1":1.0,"2":2.0} - - --- !query 13194 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 13194 schema -struct> --- !query 13194 output -{"1":1.0,"2":2.0} - - --- !query 13195 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 13195 schema -struct> --- !query 13195 output -{"1":1,"2":2} - - --- !query 13196 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 13196 schema -struct> --- !query 13196 output -{"1":"1","2":"2"} - - --- !query 13197 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 13197 schema -struct<> --- !query 13197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13198 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 13198 schema -struct<> --- !query 13198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13199 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13199 schema -struct<> --- !query 13199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13200 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13200 schema -struct<> --- !query 13200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13201 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 13201 schema -struct<> --- !query 13201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13202 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 13202 schema -struct<> --- !query 13202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13203 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 13203 schema -struct<> --- !query 13203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13204 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 13204 schema -struct<> --- !query 13204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13205 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 13205 schema -struct<> --- !query 13205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13206 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 13206 schema -struct<> --- !query 13206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13207 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 13207 schema -struct<> --- !query 13207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13208 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 13208 schema -struct<> --- !query 13208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13209 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 13209 schema -struct<> --- !query 13209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13210 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 13210 schema -struct<> --- !query 13210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13211 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13211 schema -struct<> --- !query 13211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13212 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13212 schema -struct<> --- !query 13212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13213 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 13213 schema -struct<> --- !query 13213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13214 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 13214 schema -struct<> --- !query 13214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13215 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 13215 schema -struct<> --- !query 13215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13216 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 13216 schema -struct<> --- !query 13216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13217 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 13217 schema -struct<> --- !query 13217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13218 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 13218 schema -struct<> --- !query 13218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13219 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 13219 schema -struct<> --- !query 13219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13220 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 13220 schema -struct<> --- !query 13220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13221 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 13221 schema -struct<> --- !query 13221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13222 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 13222 schema -struct<> --- !query 13222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13223 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13223 schema -struct<> --- !query 13223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13224 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13224 schema -struct<> --- !query 13224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13225 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 13225 schema -struct> --- !query 13225 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 13226 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 13226 schema -struct> --- !query 13226 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 13227 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 13227 schema -struct> --- !query 13227 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 13228 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 13228 schema -struct> --- !query 13228 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 13229 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 13229 schema -struct> --- !query 13229 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13230 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 13230 schema -struct> --- !query 13230 output -{"1":1.0,"2017-12-12 09:30:00":2.0} - - --- !query 13231 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 13231 schema -struct> --- !query 13231 output -{"1":1,"2017-12-12 09:30:00":2} - - --- !query 13232 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 13232 schema -struct> --- !query 13232 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 13233 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 13233 schema -struct<> --- !query 13233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13234 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 13234 schema -struct<> --- !query 13234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13235 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13235 schema -struct<> --- !query 13235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13236 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13236 schema -struct<> --- !query 13236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13237 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 13237 schema -struct> --- !query 13237 output -{"1":1,"2017-12-12":2} - - --- !query 13238 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 13238 schema -struct> --- !query 13238 output -{"1":1,"2017-12-12":2} - - --- !query 13239 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 13239 schema -struct> --- !query 13239 output -{"1":1,"2017-12-12":2} - - --- !query 13240 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 13240 schema -struct> --- !query 13240 output -{"1":1,"2017-12-12":2} - - --- !query 13241 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 13241 schema -struct> --- !query 13241 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13242 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 13242 schema -struct> --- !query 13242 output -{"1":1.0,"2017-12-12":2.0} - - --- !query 13243 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 13243 schema -struct> --- !query 13243 output -{"1":1,"2017-12-12":2} - - --- !query 13244 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 13244 schema -struct> --- !query 13244 output -{"1":"1","2017-12-12":"2"} - - --- !query 13245 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 13245 schema -struct<> --- !query 13245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 13246 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 13246 schema -struct<> --- !query 13246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 13247 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13247 schema -struct<> --- !query 13247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 13248 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13248 schema -struct<> --- !query 13248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 13249 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 13249 schema -struct> --- !query 13249 output -{"1":"1","2":"2"} - - --- !query 13250 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 13250 schema -struct> --- !query 13250 output -{"1":"1","2":"2"} - - --- !query 13251 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 13251 schema -struct> --- !query 13251 output -{"1":"1","2":"2"} - - --- !query 13252 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 13252 schema -struct> --- !query 13252 output -{"1":"1","2":"2"} - - --- !query 13253 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 13253 schema -struct> --- !query 13253 output -{"1":"1","2":"2.0"} - - --- !query 13254 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 13254 schema -struct> --- !query 13254 output -{"1":"1","2":"2.0"} - - --- !query 13255 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 13255 schema -struct> --- !query 13255 output -{"1":"1","2":"2"} - - --- !query 13256 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 13256 schema -struct> --- !query 13256 output -{"1":"1","2":"2"} - - --- !query 13257 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 13257 schema -struct<> --- !query 13257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13258 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 13258 schema -struct<> --- !query 13258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13259 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13259 schema -struct> --- !query 13259 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 13260 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13260 schema -struct> --- !query 13260 output -{"1":"1","2":"2017-12-12"} - - --- !query 13261 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 13261 schema -struct> --- !query 13261 output -{"1":"1","2":"2"} - - --- !query 13262 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 13262 schema -struct> --- !query 13262 output -{"1":"1","2":"2"} - - --- !query 13263 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 13263 schema -struct> --- !query 13263 output -{"1":"1","2":"2"} - - --- !query 13264 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 13264 schema -struct> --- !query 13264 output -{"1":"1","2":"2"} - - --- !query 13265 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 13265 schema -struct> --- !query 13265 output -{"1":"1","2":"2.0"} - - --- !query 13266 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 13266 schema -struct> --- !query 13266 output -{"1":"1","2":"2.0"} - - --- !query 13267 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 13267 schema -struct> --- !query 13267 output -{"1":"1","2":"2"} - - --- !query 13268 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 13268 schema -struct> --- !query 13268 output -{"1":"1","2":"2"} - - --- !query 13269 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 13269 schema -struct<> --- !query 13269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13270 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 13270 schema -struct<> --- !query 13270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13271 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13271 schema -struct> --- !query 13271 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 13272 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13272 schema -struct> --- !query 13272 output -{"1":"1","2":"2017-12-12"} - - --- !query 13273 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 13273 schema -struct> --- !query 13273 output -{"1":"1","2":"2"} - - --- !query 13274 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 13274 schema -struct> --- !query 13274 output -{"1":"1","2":"2"} - - --- !query 13275 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 13275 schema -struct> --- !query 13275 output -{"1":"1","2":"2"} - - --- !query 13276 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 13276 schema -struct> --- !query 13276 output -{"1":"1","2":"2"} - - --- !query 13277 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 13277 schema -struct> --- !query 13277 output -{"1":"1","2":"2.0"} - - --- !query 13278 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 13278 schema -struct> --- !query 13278 output -{"1":"1","2":"2.0"} - - --- !query 13279 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 13279 schema -struct> --- !query 13279 output -{"1":"1","2":"2"} - - --- !query 13280 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 13280 schema -struct> --- !query 13280 output -{"1":"1","2":"2"} - - --- !query 13281 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 13281 schema -struct<> --- !query 13281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13282 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 13282 schema -struct<> --- !query 13282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13283 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13283 schema -struct> --- !query 13283 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 13284 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13284 schema -struct> --- !query 13284 output -{"1":"1","2":"2017-12-12"} - - --- !query 13285 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 13285 schema -struct> --- !query 13285 output -{"1":"1","2":"2"} - - --- !query 13286 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 13286 schema -struct> --- !query 13286 output -{"1":"1","2":"2"} - - --- !query 13287 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 13287 schema -struct> --- !query 13287 output -{"1":"1","2":"2"} - - --- !query 13288 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 13288 schema -struct> --- !query 13288 output -{"1":"1","2":"2"} - - --- !query 13289 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 13289 schema -struct> --- !query 13289 output -{"1":"1","2":"2.0"} - - --- !query 13290 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 13290 schema -struct> --- !query 13290 output -{"1":"1","2":"2.0"} - - --- !query 13291 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 13291 schema -struct> --- !query 13291 output -{"1":"1","2":"2"} - - --- !query 13292 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 13292 schema -struct> --- !query 13292 output -{"1":"1","2":"2"} - - --- !query 13293 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 13293 schema -struct<> --- !query 13293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13294 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 13294 schema -struct<> --- !query 13294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13295 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13295 schema -struct> --- !query 13295 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 13296 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13296 schema -struct> --- !query 13296 output -{"1":"1","2":"2017-12-12"} - - --- !query 13297 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 13297 schema -struct> --- !query 13297 output -{"1":"1","2.0":"2"} - - --- !query 13298 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 13298 schema -struct> --- !query 13298 output -{"1":"1","2.0":"2"} - - --- !query 13299 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 13299 schema -struct> --- !query 13299 output -{"1":"1","2.0":"2"} - - --- !query 13300 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 13300 schema -struct> --- !query 13300 output -{"1":"1","2.0":"2"} - - --- !query 13301 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 13301 schema -struct> --- !query 13301 output -{"1":"1","2.0":"2.0"} - - --- !query 13302 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 13302 schema -struct> --- !query 13302 output -{"1":"1","2.0":"2.0"} - - --- !query 13303 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 13303 schema -struct> --- !query 13303 output -{"1":"1","2.0":"2"} - - --- !query 13304 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 13304 schema -struct> --- !query 13304 output -{"1":"1","2.0":"2"} - - --- !query 13305 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 13305 schema -struct<> --- !query 13305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13306 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 13306 schema -struct<> --- !query 13306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13307 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13307 schema -struct> --- !query 13307 output -{"1":"1","2.0":"2017-12-12 09:30:00"} - - --- !query 13308 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13308 schema -struct> --- !query 13308 output -{"1":"1","2.0":"2017-12-12"} - - --- !query 13309 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 13309 schema -struct> --- !query 13309 output -{"1":"1","2.0":"2"} - - --- !query 13310 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 13310 schema -struct> --- !query 13310 output -{"1":"1","2.0":"2"} - - --- !query 13311 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 13311 schema -struct> --- !query 13311 output -{"1":"1","2.0":"2"} - - --- !query 13312 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 13312 schema -struct> --- !query 13312 output -{"1":"1","2.0":"2"} - - --- !query 13313 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 13313 schema -struct> --- !query 13313 output -{"1":"1","2.0":"2.0"} - - --- !query 13314 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 13314 schema -struct> --- !query 13314 output -{"1":"1","2.0":"2.0"} - - --- !query 13315 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 13315 schema -struct> --- !query 13315 output -{"1":"1","2.0":"2"} - - --- !query 13316 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 13316 schema -struct> --- !query 13316 output -{"1":"1","2.0":"2"} - - --- !query 13317 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 13317 schema -struct<> --- !query 13317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13318 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 13318 schema -struct<> --- !query 13318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13319 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13319 schema -struct> --- !query 13319 output -{"1":"1","2.0":"2017-12-12 09:30:00"} - - --- !query 13320 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13320 schema -struct> --- !query 13320 output -{"1":"1","2.0":"2017-12-12"} - - --- !query 13321 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 13321 schema -struct> --- !query 13321 output -{"1":"1","2":"2"} - - --- !query 13322 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 13322 schema -struct> --- !query 13322 output -{"1":"1","2":"2"} - - --- !query 13323 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 13323 schema -struct> --- !query 13323 output -{"1":"1","2":"2"} - - --- !query 13324 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 13324 schema -struct> --- !query 13324 output -{"1":"1","2":"2"} - - --- !query 13325 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 13325 schema -struct> --- !query 13325 output -{"1":"1","2":"2.0"} - - --- !query 13326 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 13326 schema -struct> --- !query 13326 output -{"1":"1","2":"2.0"} - - --- !query 13327 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 13327 schema -struct> --- !query 13327 output -{"1":"1","2":"2"} - - --- !query 13328 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 13328 schema -struct> --- !query 13328 output -{"1":"1","2":"2"} - - --- !query 13329 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 13329 schema -struct<> --- !query 13329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13330 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 13330 schema -struct<> --- !query 13330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13331 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13331 schema -struct> --- !query 13331 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 13332 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13332 schema -struct> --- !query 13332 output -{"1":"1","2":"2017-12-12"} - - --- !query 13333 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 13333 schema -struct> --- !query 13333 output -{"1":"1","2":"2"} - - --- !query 13334 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 13334 schema -struct> --- !query 13334 output -{"1":"1","2":"2"} - - --- !query 13335 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 13335 schema -struct> --- !query 13335 output -{"1":"1","2":"2"} - - --- !query 13336 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 13336 schema -struct> --- !query 13336 output -{"1":"1","2":"2"} - - --- !query 13337 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 13337 schema -struct> --- !query 13337 output -{"1":"1","2":"2.0"} - - --- !query 13338 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 13338 schema -struct> --- !query 13338 output -{"1":"1","2":"2.0"} - - --- !query 13339 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 13339 schema -struct> --- !query 13339 output -{"1":"1","2":"2"} - - --- !query 13340 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 13340 schema -struct> --- !query 13340 output -{"1":"1","2":"2"} - - --- !query 13341 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 13341 schema -struct<> --- !query 13341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13342 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 13342 schema -struct<> --- !query 13342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13343 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13343 schema -struct> --- !query 13343 output -{"1":"1","2":"2017-12-12 09:30:00"} - - --- !query 13344 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13344 schema -struct> --- !query 13344 output -{"1":"1","2":"2017-12-12"} - - --- !query 13345 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 13345 schema -struct<> --- !query 13345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13346 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 13346 schema -struct<> --- !query 13346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13347 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 13347 schema -struct<> --- !query 13347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13348 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 13348 schema -struct<> --- !query 13348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13349 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 13349 schema -struct<> --- !query 13349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13350 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 13350 schema -struct<> --- !query 13350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13351 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 13351 schema -struct<> --- !query 13351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13352 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 13352 schema -struct<> --- !query 13352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13353 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 13353 schema -struct<> --- !query 13353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13354 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 13354 schema -struct<> --- !query 13354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13355 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13355 schema -struct<> --- !query 13355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13356 -SELECT map(cast(1 as string), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13356 schema -struct<> --- !query 13356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13357 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 13357 schema -struct<> --- !query 13357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13358 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 13358 schema -struct<> --- !query 13358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13359 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 13359 schema -struct<> --- !query 13359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13360 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 13360 schema -struct<> --- !query 13360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13361 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 13361 schema -struct<> --- !query 13361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13362 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 13362 schema -struct<> --- !query 13362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13363 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 13363 schema -struct<> --- !query 13363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13364 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 13364 schema -struct<> --- !query 13364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13365 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 13365 schema -struct<> --- !query 13365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13366 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 13366 schema -struct<> --- !query 13366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13367 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13367 schema -struct<> --- !query 13367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13368 -SELECT map(cast(1 as string), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13368 schema -struct<> --- !query 13368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13369 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 13369 schema -struct> --- !query 13369 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 13370 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 13370 schema -struct> --- !query 13370 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 13371 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 13371 schema -struct> --- !query 13371 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 13372 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 13372 schema -struct> --- !query 13372 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 13373 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 13373 schema -struct> --- !query 13373 output -{"1":"1","2017-12-12 09:30:00":"2.0"} - - --- !query 13374 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 13374 schema -struct> --- !query 13374 output -{"1":"1","2017-12-12 09:30:00":"2.0"} - - --- !query 13375 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 13375 schema -struct> --- !query 13375 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 13376 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 13376 schema -struct> --- !query 13376 output -{"1":"1","2017-12-12 09:30:00":"2"} - - --- !query 13377 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 13377 schema -struct<> --- !query 13377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13378 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 13378 schema -struct<> --- !query 13378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13379 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13379 schema -struct> --- !query 13379 output -{"1":"1","2017-12-12 09:30:00":"2017-12-12 09:30:00"} - - --- !query 13380 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13380 schema -struct> --- !query 13380 output -{"1":"1","2017-12-12 09:30:00":"2017-12-12"} - - --- !query 13381 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 13381 schema -struct> --- !query 13381 output -{"1":"1","2017-12-12":"2"} - - --- !query 13382 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 13382 schema -struct> --- !query 13382 output -{"1":"1","2017-12-12":"2"} - - --- !query 13383 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 13383 schema -struct> --- !query 13383 output -{"1":"1","2017-12-12":"2"} - - --- !query 13384 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 13384 schema -struct> --- !query 13384 output -{"1":"1","2017-12-12":"2"} - - --- !query 13385 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 13385 schema -struct> --- !query 13385 output -{"1":"1","2017-12-12":"2.0"} - - --- !query 13386 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 13386 schema -struct> --- !query 13386 output -{"1":"1","2017-12-12":"2.0"} - - --- !query 13387 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 13387 schema -struct> --- !query 13387 output -{"1":"1","2017-12-12":"2"} - - --- !query 13388 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 13388 schema -struct> --- !query 13388 output -{"1":"1","2017-12-12":"2"} - - --- !query 13389 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 13389 schema -struct<> --- !query 13389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13390 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 13390 schema -struct<> --- !query 13390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13391 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13391 schema -struct> --- !query 13391 output -{"1":"1","2017-12-12":"2017-12-12 09:30:00"} - - --- !query 13392 -SELECT map(cast(1 as string), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13392 schema -struct> --- !query 13392 output -{"1":"1","2017-12-12":"2017-12-12"} - - --- !query 13393 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 13393 schema -struct<> --- !query 13393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13394 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 13394 schema -struct<> --- !query 13394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13395 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 13395 schema -struct<> --- !query 13395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13396 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 13396 schema -struct<> --- !query 13396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13397 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 13397 schema -struct<> --- !query 13397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13398 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 13398 schema -struct<> --- !query 13398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13399 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 13399 schema -struct<> --- !query 13399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13400 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 13400 schema -struct<> --- !query 13400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13401 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 13401 schema -struct> --- !query 13401 output -{"1":[B@38c114a2,"2":[B@7c3fe383} - - --- !query 13402 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 13402 schema -struct<> --- !query 13402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13403 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13403 schema -struct<> --- !query 13403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13404 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13404 schema -struct<> --- !query 13404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13405 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 13405 schema -struct<> --- !query 13405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13406 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 13406 schema -struct<> --- !query 13406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13407 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 13407 schema -struct<> --- !query 13407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13408 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 13408 schema -struct<> --- !query 13408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13409 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 13409 schema -struct<> --- !query 13409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13410 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 13410 schema -struct<> --- !query 13410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13411 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 13411 schema -struct<> --- !query 13411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13412 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 13412 schema -struct<> --- !query 13412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13413 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 13413 schema -struct> --- !query 13413 output -{"1":[B@67161b9b,"2":[B@1d1ae392} - - --- !query 13414 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 13414 schema -struct<> --- !query 13414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13415 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13415 schema -struct<> --- !query 13415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13416 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13416 schema -struct<> --- !query 13416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13417 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 13417 schema -struct<> --- !query 13417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13418 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 13418 schema -struct<> --- !query 13418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13419 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 13419 schema -struct<> --- !query 13419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13420 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 13420 schema -struct<> --- !query 13420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13421 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 13421 schema -struct<> --- !query 13421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13422 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 13422 schema -struct<> --- !query 13422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13423 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 13423 schema -struct<> --- !query 13423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13424 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 13424 schema -struct<> --- !query 13424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13425 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 13425 schema -struct> --- !query 13425 output -{"1":[B@55ce8493,"2":[B@50abd3b3} - - --- !query 13426 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 13426 schema -struct<> --- !query 13426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13427 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13427 schema -struct<> --- !query 13427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13428 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13428 schema -struct<> --- !query 13428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13429 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 13429 schema -struct<> --- !query 13429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13430 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 13430 schema -struct<> --- !query 13430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13431 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 13431 schema -struct<> --- !query 13431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13432 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 13432 schema -struct<> --- !query 13432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13433 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 13433 schema -struct<> --- !query 13433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13434 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 13434 schema -struct<> --- !query 13434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13435 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 13435 schema -struct<> --- !query 13435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13436 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 13436 schema -struct<> --- !query 13436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13437 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 13437 schema -struct> --- !query 13437 output -{"1":[B@788b22a0,"2":[B@5e403012} - - --- !query 13438 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 13438 schema -struct<> --- !query 13438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13439 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13439 schema -struct<> --- !query 13439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13440 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13440 schema -struct<> --- !query 13440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13441 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 13441 schema -struct<> --- !query 13441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13442 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 13442 schema -struct<> --- !query 13442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13443 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 13443 schema -struct<> --- !query 13443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13444 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 13444 schema -struct<> --- !query 13444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13445 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 13445 schema -struct<> --- !query 13445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13446 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 13446 schema -struct<> --- !query 13446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13447 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 13447 schema -struct<> --- !query 13447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13448 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 13448 schema -struct<> --- !query 13448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13449 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 13449 schema -struct> --- !query 13449 output -{"1":[B@1900b1c4,"2.0":[B@6ab33c8a} - - --- !query 13450 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 13450 schema -struct<> --- !query 13450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13451 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13451 schema -struct<> --- !query 13451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13452 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13452 schema -struct<> --- !query 13452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13453 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 13453 schema -struct<> --- !query 13453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13454 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 13454 schema -struct<> --- !query 13454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13455 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 13455 schema -struct<> --- !query 13455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13456 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 13456 schema -struct<> --- !query 13456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13457 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 13457 schema -struct<> --- !query 13457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13458 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 13458 schema -struct<> --- !query 13458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13459 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 13459 schema -struct<> --- !query 13459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13460 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 13460 schema -struct<> --- !query 13460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13461 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 13461 schema -struct> --- !query 13461 output -{"1":[B@42c1a5bd,"2.0":[B@7ee34e87} - - --- !query 13462 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 13462 schema -struct<> --- !query 13462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13463 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13463 schema -struct<> --- !query 13463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13464 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13464 schema -struct<> --- !query 13464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13465 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 13465 schema -struct<> --- !query 13465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13466 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 13466 schema -struct<> --- !query 13466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13467 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 13467 schema -struct<> --- !query 13467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13468 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 13468 schema -struct<> --- !query 13468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13469 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 13469 schema -struct<> --- !query 13469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13470 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 13470 schema -struct<> --- !query 13470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13471 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 13471 schema -struct<> --- !query 13471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13472 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 13472 schema -struct<> --- !query 13472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13473 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 13473 schema -struct> --- !query 13473 output -{"1":[B@487ef1,"2":[B@6718b7de} - - --- !query 13474 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 13474 schema -struct<> --- !query 13474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13475 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13475 schema -struct<> --- !query 13475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13476 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13476 schema -struct<> --- !query 13476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13477 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 13477 schema -struct<> --- !query 13477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13478 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 13478 schema -struct<> --- !query 13478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13479 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 13479 schema -struct<> --- !query 13479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13480 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 13480 schema -struct<> --- !query 13480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13481 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 13481 schema -struct<> --- !query 13481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13482 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 13482 schema -struct<> --- !query 13482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13483 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 13483 schema -struct<> --- !query 13483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13484 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 13484 schema -struct<> --- !query 13484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13485 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 13485 schema -struct> --- !query 13485 output -{"1":[B@5222c72a,"2":[B@384e9539} - - --- !query 13486 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 13486 schema -struct<> --- !query 13486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13487 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13487 schema -struct<> --- !query 13487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13488 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13488 schema -struct<> --- !query 13488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13489 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 13489 schema -struct<> --- !query 13489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13490 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 13490 schema -struct<> --- !query 13490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13491 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 13491 schema -struct<> --- !query 13491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13492 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 13492 schema -struct<> --- !query 13492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13493 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 13493 schema -struct<> --- !query 13493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13494 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 13494 schema -struct<> --- !query 13494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13495 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 13495 schema -struct<> --- !query 13495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13496 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 13496 schema -struct<> --- !query 13496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13497 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 13497 schema -struct<> --- !query 13497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13498 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 13498 schema -struct<> --- !query 13498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13499 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13499 schema -struct<> --- !query 13499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13500 -SELECT map(cast(1 as string), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13500 schema -struct<> --- !query 13500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13501 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 13501 schema -struct<> --- !query 13501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13502 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 13502 schema -struct<> --- !query 13502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13503 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 13503 schema -struct<> --- !query 13503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13504 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 13504 schema -struct<> --- !query 13504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13505 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 13505 schema -struct<> --- !query 13505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13506 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 13506 schema -struct<> --- !query 13506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13507 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 13507 schema -struct<> --- !query 13507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13508 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 13508 schema -struct<> --- !query 13508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13509 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 13509 schema -struct<> --- !query 13509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13510 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 13510 schema -struct<> --- !query 13510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13511 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13511 schema -struct<> --- !query 13511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13512 -SELECT map(cast(1 as string), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13512 schema -struct<> --- !query 13512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13513 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 13513 schema -struct<> --- !query 13513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13514 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 13514 schema -struct<> --- !query 13514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13515 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 13515 schema -struct<> --- !query 13515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13516 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 13516 schema -struct<> --- !query 13516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13517 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 13517 schema -struct<> --- !query 13517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13518 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 13518 schema -struct<> --- !query 13518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13519 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 13519 schema -struct<> --- !query 13519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13520 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 13520 schema -struct<> --- !query 13520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13521 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 13521 schema -struct> --- !query 13521 output -{"1":[B@76fec34,"2017-12-12 09:30:00":[B@74bda16c} - - --- !query 13522 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 13522 schema -struct<> --- !query 13522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13523 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13523 schema -struct<> --- !query 13523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13524 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13524 schema -struct<> --- !query 13524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13525 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 13525 schema -struct<> --- !query 13525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13526 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 13526 schema -struct<> --- !query 13526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13527 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 13527 schema -struct<> --- !query 13527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13528 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 13528 schema -struct<> --- !query 13528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 13529 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 13529 schema -struct<> --- !query 13529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 13530 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 13530 schema -struct<> --- !query 13530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 13531 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 13531 schema -struct<> --- !query 13531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 13532 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 13532 schema -struct<> --- !query 13532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 13533 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 13533 schema -struct> --- !query 13533 output -{"1":[B@5b75e9a6,"2017-12-12":[B@89bdcb8} - - --- !query 13534 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 13534 schema -struct<> --- !query 13534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 13535 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13535 schema -struct<> --- !query 13535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 13536 -SELECT map(cast(1 as string), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13536 schema -struct<> --- !query 13536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 13537 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 13537 schema -struct<> --- !query 13537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13538 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 13538 schema -struct<> --- !query 13538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13539 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 13539 schema -struct<> --- !query 13539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13540 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 13540 schema -struct<> --- !query 13540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13541 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 13541 schema -struct<> --- !query 13541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13542 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 13542 schema -struct<> --- !query 13542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13543 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 13543 schema -struct<> --- !query 13543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13544 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 13544 schema -struct<> --- !query 13544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13545 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 13545 schema -struct<> --- !query 13545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13546 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 13546 schema -struct> --- !query 13546 output -{"1":true,"2":true} - - --- !query 13547 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13547 schema -struct<> --- !query 13547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13548 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13548 schema -struct<> --- !query 13548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13549 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 13549 schema -struct<> --- !query 13549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13550 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 13550 schema -struct<> --- !query 13550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13551 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 13551 schema -struct<> --- !query 13551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13552 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 13552 schema -struct<> --- !query 13552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13553 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 13553 schema -struct<> --- !query 13553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13554 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 13554 schema -struct<> --- !query 13554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13555 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 13555 schema -struct<> --- !query 13555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13556 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 13556 schema -struct<> --- !query 13556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13557 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 13557 schema -struct<> --- !query 13557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13558 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 13558 schema -struct> --- !query 13558 output -{"1":true,"2":true} - - --- !query 13559 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13559 schema -struct<> --- !query 13559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13560 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13560 schema -struct<> --- !query 13560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13561 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 13561 schema -struct<> --- !query 13561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13562 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 13562 schema -struct<> --- !query 13562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13563 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 13563 schema -struct<> --- !query 13563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13564 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 13564 schema -struct<> --- !query 13564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13565 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 13565 schema -struct<> --- !query 13565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13566 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 13566 schema -struct<> --- !query 13566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13567 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 13567 schema -struct<> --- !query 13567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13568 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 13568 schema -struct<> --- !query 13568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13569 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 13569 schema -struct<> --- !query 13569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13570 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 13570 schema -struct> --- !query 13570 output -{"1":true,"2":true} - - --- !query 13571 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13571 schema -struct<> --- !query 13571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13572 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13572 schema -struct<> --- !query 13572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13573 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 13573 schema -struct<> --- !query 13573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13574 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 13574 schema -struct<> --- !query 13574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13575 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 13575 schema -struct<> --- !query 13575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13576 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 13576 schema -struct<> --- !query 13576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13577 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 13577 schema -struct<> --- !query 13577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13578 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 13578 schema -struct<> --- !query 13578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13579 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 13579 schema -struct<> --- !query 13579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13580 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 13580 schema -struct<> --- !query 13580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13581 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 13581 schema -struct<> --- !query 13581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13582 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 13582 schema -struct> --- !query 13582 output -{"1":true,"2":true} - - --- !query 13583 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13583 schema -struct<> --- !query 13583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13584 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13584 schema -struct<> --- !query 13584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13585 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 13585 schema -struct<> --- !query 13585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13586 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 13586 schema -struct<> --- !query 13586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13587 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 13587 schema -struct<> --- !query 13587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13588 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 13588 schema -struct<> --- !query 13588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13589 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 13589 schema -struct<> --- !query 13589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13590 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 13590 schema -struct<> --- !query 13590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13591 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 13591 schema -struct<> --- !query 13591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13592 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 13592 schema -struct<> --- !query 13592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13593 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 13593 schema -struct<> --- !query 13593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13594 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 13594 schema -struct> --- !query 13594 output -{"1":true,"2.0":true} - - --- !query 13595 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13595 schema -struct<> --- !query 13595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13596 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13596 schema -struct<> --- !query 13596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13597 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 13597 schema -struct<> --- !query 13597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13598 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 13598 schema -struct<> --- !query 13598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13599 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 13599 schema -struct<> --- !query 13599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13600 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 13600 schema -struct<> --- !query 13600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13601 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 13601 schema -struct<> --- !query 13601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13602 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 13602 schema -struct<> --- !query 13602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13603 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 13603 schema -struct<> --- !query 13603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13604 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 13604 schema -struct<> --- !query 13604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13605 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 13605 schema -struct<> --- !query 13605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13606 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 13606 schema -struct> --- !query 13606 output -{"1":true,"2.0":true} - - --- !query 13607 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13607 schema -struct<> --- !query 13607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13608 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13608 schema -struct<> --- !query 13608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13609 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 13609 schema -struct<> --- !query 13609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13610 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 13610 schema -struct<> --- !query 13610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13611 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 13611 schema -struct<> --- !query 13611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13612 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 13612 schema -struct<> --- !query 13612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13613 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 13613 schema -struct<> --- !query 13613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13614 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 13614 schema -struct<> --- !query 13614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13615 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 13615 schema -struct<> --- !query 13615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13616 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 13616 schema -struct<> --- !query 13616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13617 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 13617 schema -struct<> --- !query 13617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13618 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 13618 schema -struct> --- !query 13618 output -{"1":true,"2":true} - - --- !query 13619 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13619 schema -struct<> --- !query 13619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13620 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13620 schema -struct<> --- !query 13620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13621 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 13621 schema -struct<> --- !query 13621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13622 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 13622 schema -struct<> --- !query 13622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13623 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 13623 schema -struct<> --- !query 13623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13624 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 13624 schema -struct<> --- !query 13624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13625 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 13625 schema -struct<> --- !query 13625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13626 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 13626 schema -struct<> --- !query 13626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13627 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 13627 schema -struct<> --- !query 13627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13628 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 13628 schema -struct<> --- !query 13628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13629 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 13629 schema -struct<> --- !query 13629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13630 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 13630 schema -struct> --- !query 13630 output -{"1":true,"2":true} - - --- !query 13631 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13631 schema -struct<> --- !query 13631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13632 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13632 schema -struct<> --- !query 13632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13633 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 13633 schema -struct<> --- !query 13633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13634 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 13634 schema -struct<> --- !query 13634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13635 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 13635 schema -struct<> --- !query 13635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13636 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 13636 schema -struct<> --- !query 13636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13637 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 13637 schema -struct<> --- !query 13637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13638 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 13638 schema -struct<> --- !query 13638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13639 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 13639 schema -struct<> --- !query 13639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13640 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 13640 schema -struct<> --- !query 13640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13641 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 13641 schema -struct<> --- !query 13641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13642 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 13642 schema -struct<> --- !query 13642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13643 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13643 schema -struct<> --- !query 13643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13644 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13644 schema -struct<> --- !query 13644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13645 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 13645 schema -struct<> --- !query 13645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13646 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 13646 schema -struct<> --- !query 13646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13647 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 13647 schema -struct<> --- !query 13647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13648 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 13648 schema -struct<> --- !query 13648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13649 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 13649 schema -struct<> --- !query 13649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13650 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 13650 schema -struct<> --- !query 13650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13651 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 13651 schema -struct<> --- !query 13651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13652 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 13652 schema -struct<> --- !query 13652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13653 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 13653 schema -struct<> --- !query 13653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13654 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 13654 schema -struct<> --- !query 13654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13655 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13655 schema -struct<> --- !query 13655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13656 -SELECT map(cast(1 as string), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13656 schema -struct<> --- !query 13656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13657 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 13657 schema -struct<> --- !query 13657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13658 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 13658 schema -struct<> --- !query 13658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13659 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 13659 schema -struct<> --- !query 13659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13660 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 13660 schema -struct<> --- !query 13660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13661 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 13661 schema -struct<> --- !query 13661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13662 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 13662 schema -struct<> --- !query 13662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13663 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 13663 schema -struct<> --- !query 13663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13664 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 13664 schema -struct<> --- !query 13664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13665 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 13665 schema -struct<> --- !query 13665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13666 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 13666 schema -struct> --- !query 13666 output -{"1":true,"2017-12-12 09:30:00":true} - - --- !query 13667 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13667 schema -struct<> --- !query 13667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13668 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13668 schema -struct<> --- !query 13668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13669 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 13669 schema -struct<> --- !query 13669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 13670 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 13670 schema -struct<> --- !query 13670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 13671 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 13671 schema -struct<> --- !query 13671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 13672 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 13672 schema -struct<> --- !query 13672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 13673 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 13673 schema -struct<> --- !query 13673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 13674 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 13674 schema -struct<> --- !query 13674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 13675 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 13675 schema -struct<> --- !query 13675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 13676 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 13676 schema -struct<> --- !query 13676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 13677 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 13677 schema -struct<> --- !query 13677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 13678 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 13678 schema -struct> --- !query 13678 output -{"1":true,"2017-12-12":true} - - --- !query 13679 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13679 schema -struct<> --- !query 13679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 13680 -SELECT map(cast(1 as string), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13680 schema -struct<> --- !query 13680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 13681 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 13681 schema -struct<> --- !query 13681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13682 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 13682 schema -struct<> --- !query 13682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13683 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 13683 schema -struct<> --- !query 13683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13684 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 13684 schema -struct<> --- !query 13684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13685 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 13685 schema -struct<> --- !query 13685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13686 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 13686 schema -struct<> --- !query 13686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13687 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 13687 schema -struct<> --- !query 13687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13688 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 13688 schema -struct> --- !query 13688 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 13689 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 13689 schema -struct<> --- !query 13689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13690 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 13690 schema -struct<> --- !query 13690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13691 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13691 schema -struct> --- !query 13691 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13692 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13692 schema -struct> --- !query 13692 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 13693 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 13693 schema -struct<> --- !query 13693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13694 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 13694 schema -struct<> --- !query 13694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13695 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 13695 schema -struct<> --- !query 13695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13696 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 13696 schema -struct<> --- !query 13696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13697 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 13697 schema -struct<> --- !query 13697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13698 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 13698 schema -struct<> --- !query 13698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13699 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 13699 schema -struct<> --- !query 13699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13700 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 13700 schema -struct> --- !query 13700 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 13701 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 13701 schema -struct<> --- !query 13701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13702 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 13702 schema -struct<> --- !query 13702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13703 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13703 schema -struct> --- !query 13703 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13704 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13704 schema -struct> --- !query 13704 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 13705 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 13705 schema -struct<> --- !query 13705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13706 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 13706 schema -struct<> --- !query 13706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13707 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 13707 schema -struct<> --- !query 13707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13708 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 13708 schema -struct<> --- !query 13708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13709 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 13709 schema -struct<> --- !query 13709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13710 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 13710 schema -struct<> --- !query 13710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13711 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 13711 schema -struct<> --- !query 13711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13712 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 13712 schema -struct> --- !query 13712 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 13713 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 13713 schema -struct<> --- !query 13713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13714 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 13714 schema -struct<> --- !query 13714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13715 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13715 schema -struct> --- !query 13715 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13716 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13716 schema -struct> --- !query 13716 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 13717 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 13717 schema -struct<> --- !query 13717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13718 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 13718 schema -struct<> --- !query 13718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13719 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 13719 schema -struct<> --- !query 13719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13720 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 13720 schema -struct<> --- !query 13720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13721 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 13721 schema -struct<> --- !query 13721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13722 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 13722 schema -struct<> --- !query 13722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13723 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 13723 schema -struct<> --- !query 13723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13724 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 13724 schema -struct> --- !query 13724 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 13725 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 13725 schema -struct<> --- !query 13725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13726 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 13726 schema -struct<> --- !query 13726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13727 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13727 schema -struct> --- !query 13727 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13728 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13728 schema -struct> --- !query 13728 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 13729 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 13729 schema -struct<> --- !query 13729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13730 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 13730 schema -struct<> --- !query 13730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13731 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 13731 schema -struct<> --- !query 13731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13732 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 13732 schema -struct<> --- !query 13732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13733 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 13733 schema -struct<> --- !query 13733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13734 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 13734 schema -struct<> --- !query 13734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13735 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 13735 schema -struct<> --- !query 13735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13736 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 13736 schema -struct> --- !query 13736 output -{"1":"2017-12-11 09:30:00","2.0":"2"} - - --- !query 13737 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 13737 schema -struct<> --- !query 13737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13738 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 13738 schema -struct<> --- !query 13738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13739 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13739 schema -struct> --- !query 13739 output -{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 09:30:00.0} - - --- !query 13740 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13740 schema -struct> --- !query 13740 output -{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 00:00:00.0} - - --- !query 13741 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 13741 schema -struct<> --- !query 13741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13742 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 13742 schema -struct<> --- !query 13742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13743 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 13743 schema -struct<> --- !query 13743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13744 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 13744 schema -struct<> --- !query 13744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13745 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 13745 schema -struct<> --- !query 13745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13746 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 13746 schema -struct<> --- !query 13746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13747 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 13747 schema -struct<> --- !query 13747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13748 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 13748 schema -struct> --- !query 13748 output -{"1":"2017-12-11 09:30:00","2.0":"2"} - - --- !query 13749 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 13749 schema -struct<> --- !query 13749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13750 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 13750 schema -struct<> --- !query 13750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13751 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13751 schema -struct> --- !query 13751 output -{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 09:30:00.0} - - --- !query 13752 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13752 schema -struct> --- !query 13752 output -{"1":2017-12-11 09:30:00.0,"2.0":2017-12-12 00:00:00.0} - - --- !query 13753 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 13753 schema -struct<> --- !query 13753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13754 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 13754 schema -struct<> --- !query 13754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13755 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 13755 schema -struct<> --- !query 13755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13756 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 13756 schema -struct<> --- !query 13756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13757 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 13757 schema -struct<> --- !query 13757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13758 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 13758 schema -struct<> --- !query 13758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13759 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 13759 schema -struct<> --- !query 13759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13760 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 13760 schema -struct> --- !query 13760 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 13761 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 13761 schema -struct<> --- !query 13761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13762 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 13762 schema -struct<> --- !query 13762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13763 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13763 schema -struct> --- !query 13763 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13764 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13764 schema -struct> --- !query 13764 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 13765 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 13765 schema -struct<> --- !query 13765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13766 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 13766 schema -struct<> --- !query 13766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13767 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 13767 schema -struct<> --- !query 13767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13768 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 13768 schema -struct<> --- !query 13768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13769 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 13769 schema -struct<> --- !query 13769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13770 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 13770 schema -struct<> --- !query 13770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13771 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 13771 schema -struct<> --- !query 13771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13772 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 13772 schema -struct> --- !query 13772 output -{"1":"2017-12-11 09:30:00","2":"2"} - - --- !query 13773 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 13773 schema -struct<> --- !query 13773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13774 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 13774 schema -struct<> --- !query 13774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13775 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13775 schema -struct> --- !query 13775 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13776 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13776 schema -struct> --- !query 13776 output -{"1":2017-12-11 09:30:00.0,"2":2017-12-12 00:00:00.0} - - --- !query 13777 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 13777 schema -struct<> --- !query 13777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13778 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 13778 schema -struct<> --- !query 13778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13779 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 13779 schema -struct<> --- !query 13779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13780 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 13780 schema -struct<> --- !query 13780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13781 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 13781 schema -struct<> --- !query 13781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13782 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 13782 schema -struct<> --- !query 13782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13783 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 13783 schema -struct<> --- !query 13783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13784 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 13784 schema -struct<> --- !query 13784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13785 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 13785 schema -struct<> --- !query 13785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13786 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 13786 schema -struct<> --- !query 13786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13787 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13787 schema -struct<> --- !query 13787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13788 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13788 schema -struct<> --- !query 13788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13789 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 13789 schema -struct<> --- !query 13789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13790 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 13790 schema -struct<> --- !query 13790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13791 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 13791 schema -struct<> --- !query 13791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13792 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 13792 schema -struct<> --- !query 13792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13793 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 13793 schema -struct<> --- !query 13793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13794 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 13794 schema -struct<> --- !query 13794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13795 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 13795 schema -struct<> --- !query 13795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13796 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 13796 schema -struct<> --- !query 13796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13797 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 13797 schema -struct<> --- !query 13797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13798 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 13798 schema -struct<> --- !query 13798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13799 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13799 schema -struct<> --- !query 13799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13800 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13800 schema -struct<> --- !query 13800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13801 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 13801 schema -struct<> --- !query 13801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13802 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 13802 schema -struct<> --- !query 13802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13803 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 13803 schema -struct<> --- !query 13803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13804 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 13804 schema -struct<> --- !query 13804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13805 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 13805 schema -struct<> --- !query 13805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13806 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 13806 schema -struct<> --- !query 13806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13807 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 13807 schema -struct<> --- !query 13807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13808 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 13808 schema -struct> --- !query 13808 output -{"1":"2017-12-11 09:30:00","2017-12-12 09:30:00":"2"} - - --- !query 13809 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 13809 schema -struct<> --- !query 13809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13810 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 13810 schema -struct<> --- !query 13810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13811 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13811 schema -struct> --- !query 13811 output -{"1":2017-12-11 09:30:00.0,"2017-12-12 09:30:00":2017-12-12 09:30:00.0} - - --- !query 13812 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13812 schema -struct> --- !query 13812 output -{"1":2017-12-11 09:30:00.0,"2017-12-12 09:30:00":2017-12-12 00:00:00.0} - - --- !query 13813 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 13813 schema -struct<> --- !query 13813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 13814 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 13814 schema -struct<> --- !query 13814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 13815 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 13815 schema -struct<> --- !query 13815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 13816 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 13816 schema -struct<> --- !query 13816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 13817 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 13817 schema -struct<> --- !query 13817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 13818 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 13818 schema -struct<> --- !query 13818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 13819 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 13819 schema -struct<> --- !query 13819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 13820 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 13820 schema -struct> --- !query 13820 output -{"1":"2017-12-11 09:30:00","2017-12-12":"2"} - - --- !query 13821 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 13821 schema -struct<> --- !query 13821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 13822 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 13822 schema -struct<> --- !query 13822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 13823 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13823 schema -struct> --- !query 13823 output -{"1":2017-12-11 09:30:00.0,"2017-12-12":2017-12-12 09:30:00.0} - - --- !query 13824 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13824 schema -struct> --- !query 13824 output -{"1":2017-12-11 09:30:00.0,"2017-12-12":2017-12-12 00:00:00.0} - - --- !query 13825 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 13825 schema -struct<> --- !query 13825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13826 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 13826 schema -struct<> --- !query 13826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13827 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 13827 schema -struct<> --- !query 13827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13828 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 13828 schema -struct<> --- !query 13828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13829 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 13829 schema -struct<> --- !query 13829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13830 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 13830 schema -struct<> --- !query 13830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13831 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 13831 schema -struct<> --- !query 13831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13832 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 13832 schema -struct> --- !query 13832 output -{"1":"2017-12-11","2":"2"} - - --- !query 13833 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 13833 schema -struct<> --- !query 13833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13834 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 13834 schema -struct<> --- !query 13834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13835 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13835 schema -struct> --- !query 13835 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13836 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13836 schema -struct> --- !query 13836 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 13837 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 13837 schema -struct<> --- !query 13837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13838 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 13838 schema -struct<> --- !query 13838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13839 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 13839 schema -struct<> --- !query 13839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13840 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 13840 schema -struct<> --- !query 13840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13841 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 13841 schema -struct<> --- !query 13841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13842 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 13842 schema -struct<> --- !query 13842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13843 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 13843 schema -struct<> --- !query 13843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13844 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 13844 schema -struct> --- !query 13844 output -{"1":"2017-12-11","2":"2"} - - --- !query 13845 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 13845 schema -struct<> --- !query 13845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13846 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 13846 schema -struct<> --- !query 13846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13847 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13847 schema -struct> --- !query 13847 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13848 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13848 schema -struct> --- !query 13848 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 13849 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 13849 schema -struct<> --- !query 13849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13850 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 13850 schema -struct<> --- !query 13850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13851 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 13851 schema -struct<> --- !query 13851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13852 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 13852 schema -struct<> --- !query 13852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13853 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 13853 schema -struct<> --- !query 13853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13854 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 13854 schema -struct<> --- !query 13854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13855 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 13855 schema -struct<> --- !query 13855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13856 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 13856 schema -struct> --- !query 13856 output -{"1":"2017-12-11","2":"2"} - - --- !query 13857 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 13857 schema -struct<> --- !query 13857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13858 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 13858 schema -struct<> --- !query 13858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13859 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13859 schema -struct> --- !query 13859 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13860 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13860 schema -struct> --- !query 13860 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 13861 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 13861 schema -struct<> --- !query 13861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13862 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 13862 schema -struct<> --- !query 13862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13863 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 13863 schema -struct<> --- !query 13863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13864 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 13864 schema -struct<> --- !query 13864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13865 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 13865 schema -struct<> --- !query 13865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13866 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 13866 schema -struct<> --- !query 13866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13867 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 13867 schema -struct<> --- !query 13867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13868 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 13868 schema -struct> --- !query 13868 output -{"1":"2017-12-11","2":"2"} - - --- !query 13869 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 13869 schema -struct<> --- !query 13869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13870 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 13870 schema -struct<> --- !query 13870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13871 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13871 schema -struct> --- !query 13871 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13872 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13872 schema -struct> --- !query 13872 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 13873 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 13873 schema -struct<> --- !query 13873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13874 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 13874 schema -struct<> --- !query 13874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13875 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 13875 schema -struct<> --- !query 13875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13876 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 13876 schema -struct<> --- !query 13876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13877 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 13877 schema -struct<> --- !query 13877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13878 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 13878 schema -struct<> --- !query 13878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13879 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 13879 schema -struct<> --- !query 13879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13880 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 13880 schema -struct> --- !query 13880 output -{"1":"2017-12-11","2.0":"2"} - - --- !query 13881 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 13881 schema -struct<> --- !query 13881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13882 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 13882 schema -struct<> --- !query 13882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13883 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13883 schema -struct> --- !query 13883 output -{"1":2017-12-11 00:00:00.0,"2.0":2017-12-12 09:30:00.0} - - --- !query 13884 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13884 schema -struct> --- !query 13884 output -{"1":2017-12-11,"2.0":2017-12-12} - - --- !query 13885 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 13885 schema -struct<> --- !query 13885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13886 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 13886 schema -struct<> --- !query 13886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13887 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 13887 schema -struct<> --- !query 13887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13888 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 13888 schema -struct<> --- !query 13888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13889 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 13889 schema -struct<> --- !query 13889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13890 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 13890 schema -struct<> --- !query 13890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13891 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 13891 schema -struct<> --- !query 13891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13892 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 13892 schema -struct> --- !query 13892 output -{"1":"2017-12-11","2.0":"2"} - - --- !query 13893 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 13893 schema -struct<> --- !query 13893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13894 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 13894 schema -struct<> --- !query 13894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13895 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13895 schema -struct> --- !query 13895 output -{"1":2017-12-11 00:00:00.0,"2.0":2017-12-12 09:30:00.0} - - --- !query 13896 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13896 schema -struct> --- !query 13896 output -{"1":2017-12-11,"2.0":2017-12-12} - - --- !query 13897 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 13897 schema -struct<> --- !query 13897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13898 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 13898 schema -struct<> --- !query 13898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13899 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 13899 schema -struct<> --- !query 13899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13900 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 13900 schema -struct<> --- !query 13900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13901 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 13901 schema -struct<> --- !query 13901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13902 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 13902 schema -struct<> --- !query 13902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13903 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 13903 schema -struct<> --- !query 13903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13904 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 13904 schema -struct> --- !query 13904 output -{"1":"2017-12-11","2":"2"} - - --- !query 13905 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 13905 schema -struct<> --- !query 13905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13906 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 13906 schema -struct<> --- !query 13906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13907 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13907 schema -struct> --- !query 13907 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13908 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13908 schema -struct> --- !query 13908 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 13909 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 13909 schema -struct<> --- !query 13909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13910 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 13910 schema -struct<> --- !query 13910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13911 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 13911 schema -struct<> --- !query 13911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13912 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 13912 schema -struct<> --- !query 13912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13913 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 13913 schema -struct<> --- !query 13913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13914 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 13914 schema -struct<> --- !query 13914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13915 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 13915 schema -struct<> --- !query 13915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13916 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 13916 schema -struct> --- !query 13916 output -{"1":"2017-12-11","2":"2"} - - --- !query 13917 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 13917 schema -struct<> --- !query 13917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13918 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 13918 schema -struct<> --- !query 13918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13919 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13919 schema -struct> --- !query 13919 output -{"1":2017-12-11 00:00:00.0,"2":2017-12-12 09:30:00.0} - - --- !query 13920 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13920 schema -struct> --- !query 13920 output -{"1":2017-12-11,"2":2017-12-12} - - --- !query 13921 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 13921 schema -struct<> --- !query 13921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13922 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 13922 schema -struct<> --- !query 13922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13923 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 13923 schema -struct<> --- !query 13923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13924 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 13924 schema -struct<> --- !query 13924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13925 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 13925 schema -struct<> --- !query 13925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13926 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 13926 schema -struct<> --- !query 13926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13927 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 13927 schema -struct<> --- !query 13927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13928 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 13928 schema -struct<> --- !query 13928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13929 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 13929 schema -struct<> --- !query 13929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13930 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 13930 schema -struct<> --- !query 13930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13931 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13931 schema -struct<> --- !query 13931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13932 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13932 schema -struct<> --- !query 13932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 13933 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 13933 schema -struct<> --- !query 13933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13934 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 13934 schema -struct<> --- !query 13934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13935 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 13935 schema -struct<> --- !query 13935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13936 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 13936 schema -struct<> --- !query 13936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13937 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 13937 schema -struct<> --- !query 13937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13938 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 13938 schema -struct<> --- !query 13938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13939 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 13939 schema -struct<> --- !query 13939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13940 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 13940 schema -struct<> --- !query 13940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13941 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 13941 schema -struct<> --- !query 13941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13942 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 13942 schema -struct<> --- !query 13942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13943 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13943 schema -struct<> --- !query 13943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13944 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13944 schema -struct<> --- !query 13944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 13945 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 13945 schema -struct<> --- !query 13945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13946 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 13946 schema -struct<> --- !query 13946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13947 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 13947 schema -struct<> --- !query 13947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13948 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 13948 schema -struct<> --- !query 13948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13949 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 13949 schema -struct<> --- !query 13949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13950 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 13950 schema -struct<> --- !query 13950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13951 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 13951 schema -struct<> --- !query 13951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13952 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 13952 schema -struct> --- !query 13952 output -{"1":"2017-12-11","2017-12-12 09:30:00":"2"} - - --- !query 13953 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 13953 schema -struct<> --- !query 13953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13954 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 13954 schema -struct<> --- !query 13954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13955 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13955 schema -struct> --- !query 13955 output -{"1":2017-12-11 00:00:00.0,"2017-12-12 09:30:00":2017-12-12 09:30:00.0} - - --- !query 13956 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13956 schema -struct> --- !query 13956 output -{"1":2017-12-11,"2017-12-12 09:30:00":2017-12-12} - - --- !query 13957 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 13957 schema -struct<> --- !query 13957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 13958 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 13958 schema -struct<> --- !query 13958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 13959 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 13959 schema -struct<> --- !query 13959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 13960 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 13960 schema -struct<> --- !query 13960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 13961 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 13961 schema -struct<> --- !query 13961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 13962 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 13962 schema -struct<> --- !query 13962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 13963 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 13963 schema -struct<> --- !query 13963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 13964 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 13964 schema -struct> --- !query 13964 output -{"1":"2017-12-11","2017-12-12":"2"} - - --- !query 13965 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 13965 schema -struct<> --- !query 13965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 13966 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 13966 schema -struct<> --- !query 13966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 13967 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13967 schema -struct> --- !query 13967 output -{"1":2017-12-11 00:00:00.0,"2017-12-12":2017-12-12 09:30:00.0} - - --- !query 13968 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13968 schema -struct> --- !query 13968 output -{"1":2017-12-11,"2017-12-12":2017-12-12} - - --- !query 13969 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 13969 schema -struct<> --- !query 13969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13970 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 13970 schema -struct<> --- !query 13970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13971 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 13971 schema -struct<> --- !query 13971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13972 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 13972 schema -struct<> --- !query 13972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13973 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 13973 schema -struct<> --- !query 13973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13974 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 13974 schema -struct<> --- !query 13974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13975 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 13975 schema -struct<> --- !query 13975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13976 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 13976 schema -struct<> --- !query 13976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13977 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 13977 schema -struct<> --- !query 13977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13978 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 13978 schema -struct<> --- !query 13978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13979 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13979 schema -struct<> --- !query 13979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13980 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13980 schema -struct<> --- !query 13980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 13981 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 13981 schema -struct<> --- !query 13981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13982 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 13982 schema -struct<> --- !query 13982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13983 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 13983 schema -struct<> --- !query 13983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13984 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 13984 schema -struct<> --- !query 13984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13985 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 13985 schema -struct<> --- !query 13985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13986 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 13986 schema -struct<> --- !query 13986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13987 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 13987 schema -struct<> --- !query 13987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13988 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 13988 schema -struct<> --- !query 13988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13989 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 13989 schema -struct<> --- !query 13989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13990 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 13990 schema -struct<> --- !query 13990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13991 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 13991 schema -struct<> --- !query 13991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13992 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 13992 schema -struct<> --- !query 13992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 13993 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 13993 schema -struct<> --- !query 13993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13994 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 13994 schema -struct<> --- !query 13994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13995 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 13995 schema -struct<> --- !query 13995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13996 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 13996 schema -struct<> --- !query 13996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13997 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 13997 schema -struct<> --- !query 13997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13998 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 13998 schema -struct<> --- !query 13998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 13999 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 13999 schema -struct<> --- !query 13999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14000 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 14000 schema -struct<> --- !query 14000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14001 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 14001 schema -struct<> --- !query 14001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14002 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 14002 schema -struct<> --- !query 14002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14003 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14003 schema -struct<> --- !query 14003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14004 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14004 schema -struct<> --- !query 14004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14005 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 14005 schema -struct<> --- !query 14005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14006 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 14006 schema -struct<> --- !query 14006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14007 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 14007 schema -struct<> --- !query 14007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14008 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 14008 schema -struct<> --- !query 14008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14009 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 14009 schema -struct<> --- !query 14009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14010 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 14010 schema -struct<> --- !query 14010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14011 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 14011 schema -struct<> --- !query 14011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14012 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 14012 schema -struct<> --- !query 14012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14013 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 14013 schema -struct<> --- !query 14013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14014 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 14014 schema -struct<> --- !query 14014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14015 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14015 schema -struct<> --- !query 14015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14016 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14016 schema -struct<> --- !query 14016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14017 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 14017 schema -struct<> --- !query 14017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14018 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 14018 schema -struct<> --- !query 14018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14019 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 14019 schema -struct<> --- !query 14019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14020 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 14020 schema -struct<> --- !query 14020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14021 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 14021 schema -struct<> --- !query 14021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14022 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 14022 schema -struct<> --- !query 14022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14023 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 14023 schema -struct<> --- !query 14023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14024 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 14024 schema -struct<> --- !query 14024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14025 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 14025 schema -struct<> --- !query 14025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14026 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 14026 schema -struct<> --- !query 14026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14027 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14027 schema -struct<> --- !query 14027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14028 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14028 schema -struct<> --- !query 14028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14029 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 14029 schema -struct<> --- !query 14029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14030 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 14030 schema -struct<> --- !query 14030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14031 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 14031 schema -struct<> --- !query 14031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14032 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 14032 schema -struct<> --- !query 14032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14033 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 14033 schema -struct<> --- !query 14033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14034 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 14034 schema -struct<> --- !query 14034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14035 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 14035 schema -struct<> --- !query 14035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14036 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 14036 schema -struct<> --- !query 14036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14037 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 14037 schema -struct<> --- !query 14037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14038 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 14038 schema -struct<> --- !query 14038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14039 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14039 schema -struct<> --- !query 14039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14040 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14040 schema -struct<> --- !query 14040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14041 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 14041 schema -struct<> --- !query 14041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14042 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 14042 schema -struct<> --- !query 14042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14043 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 14043 schema -struct<> --- !query 14043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14044 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 14044 schema -struct<> --- !query 14044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14045 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 14045 schema -struct<> --- !query 14045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14046 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 14046 schema -struct<> --- !query 14046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14047 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 14047 schema -struct<> --- !query 14047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14048 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 14048 schema -struct<> --- !query 14048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14049 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 14049 schema -struct<> --- !query 14049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14050 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 14050 schema -struct<> --- !query 14050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14051 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14051 schema -struct<> --- !query 14051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14052 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14052 schema -struct<> --- !query 14052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14053 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 14053 schema -struct<> --- !query 14053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14054 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 14054 schema -struct<> --- !query 14054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14055 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 14055 schema -struct<> --- !query 14055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14056 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 14056 schema -struct<> --- !query 14056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14057 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 14057 schema -struct<> --- !query 14057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14058 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 14058 schema -struct<> --- !query 14058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14059 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 14059 schema -struct<> --- !query 14059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14060 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 14060 schema -struct<> --- !query 14060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14061 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 14061 schema -struct<> --- !query 14061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14062 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 14062 schema -struct<> --- !query 14062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14063 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14063 schema -struct<> --- !query 14063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14064 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14064 schema -struct<> --- !query 14064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14065 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 14065 schema -struct> --- !query 14065 output -{[B@5fb75994:2,[B@6dcc36e4:1} - - --- !query 14066 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 14066 schema -struct> --- !query 14066 output -{[B@3bbdbf66:1,[B@695ac83e:2} - - --- !query 14067 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 14067 schema -struct> --- !query 14067 output -{[B@43ba6930:2,[B@7da1bf2b:1} - - --- !query 14068 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 14068 schema -struct> --- !query 14068 output -{[B@10b21188:2,[B@7774a776:1} - - --- !query 14069 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 14069 schema -struct> --- !query 14069 output -{[B@116d8299:1.0,[B@4b2509f2:2.0} - - --- !query 14070 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 14070 schema -struct> --- !query 14070 output -{[B@181c1b5a:2.0,[B@3d220f0a:1.0} - - --- !query 14071 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 14071 schema -struct> --- !query 14071 output -{[B@28d022fc:2,[B@6a696ae:1} - - --- !query 14072 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 14072 schema -struct> --- !query 14072 output -{[B@36727af1:"2",[B@6d24f57a:"1"} - - --- !query 14073 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 14073 schema -struct<> --- !query 14073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 14074 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 14074 schema -struct<> --- !query 14074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 14075 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14075 schema -struct<> --- !query 14075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 14076 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14076 schema -struct<> --- !query 14076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 14077 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 14077 schema -struct<> --- !query 14077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14078 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 14078 schema -struct<> --- !query 14078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14079 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 14079 schema -struct<> --- !query 14079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14080 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 14080 schema -struct<> --- !query 14080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14081 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 14081 schema -struct<> --- !query 14081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14082 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 14082 schema -struct<> --- !query 14082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14083 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 14083 schema -struct<> --- !query 14083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14084 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 14084 schema -struct<> --- !query 14084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14085 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 14085 schema -struct<> --- !query 14085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14086 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 14086 schema -struct<> --- !query 14086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14087 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14087 schema -struct<> --- !query 14087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14088 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14088 schema -struct<> --- !query 14088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14089 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 14089 schema -struct<> --- !query 14089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14090 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 14090 schema -struct<> --- !query 14090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14091 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 14091 schema -struct<> --- !query 14091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14092 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 14092 schema -struct<> --- !query 14092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14093 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 14093 schema -struct<> --- !query 14093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14094 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 14094 schema -struct<> --- !query 14094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14095 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 14095 schema -struct<> --- !query 14095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14096 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 14096 schema -struct<> --- !query 14096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14097 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 14097 schema -struct<> --- !query 14097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14098 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 14098 schema -struct<> --- !query 14098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14099 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14099 schema -struct<> --- !query 14099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14100 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14100 schema -struct<> --- !query 14100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14101 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 14101 schema -struct<> --- !query 14101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14102 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 14102 schema -struct<> --- !query 14102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14103 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 14103 schema -struct<> --- !query 14103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14104 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 14104 schema -struct<> --- !query 14104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14105 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 14105 schema -struct<> --- !query 14105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14106 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 14106 schema -struct<> --- !query 14106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14107 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 14107 schema -struct<> --- !query 14107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14108 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 14108 schema -struct<> --- !query 14108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14109 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 14109 schema -struct<> --- !query 14109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14110 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 14110 schema -struct<> --- !query 14110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14111 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14111 schema -struct<> --- !query 14111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14112 -SELECT map(cast('1' as binary), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14112 schema -struct<> --- !query 14112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14113 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 14113 schema -struct<> --- !query 14113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14114 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 14114 schema -struct<> --- !query 14114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14115 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 14115 schema -struct<> --- !query 14115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14116 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 14116 schema -struct<> --- !query 14116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14117 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 14117 schema -struct<> --- !query 14117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14118 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 14118 schema -struct<> --- !query 14118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14119 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 14119 schema -struct<> --- !query 14119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14120 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 14120 schema -struct<> --- !query 14120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14121 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 14121 schema -struct<> --- !query 14121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14122 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 14122 schema -struct<> --- !query 14122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14123 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14123 schema -struct<> --- !query 14123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14124 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14124 schema -struct<> --- !query 14124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14125 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 14125 schema -struct<> --- !query 14125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14126 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 14126 schema -struct<> --- !query 14126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14127 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 14127 schema -struct<> --- !query 14127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14128 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 14128 schema -struct<> --- !query 14128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14129 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 14129 schema -struct<> --- !query 14129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14130 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 14130 schema -struct<> --- !query 14130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14131 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 14131 schema -struct<> --- !query 14131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14132 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 14132 schema -struct<> --- !query 14132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14133 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 14133 schema -struct<> --- !query 14133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14134 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 14134 schema -struct<> --- !query 14134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14135 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14135 schema -struct<> --- !query 14135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14136 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14136 schema -struct<> --- !query 14136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14137 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 14137 schema -struct<> --- !query 14137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14138 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 14138 schema -struct<> --- !query 14138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14139 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 14139 schema -struct<> --- !query 14139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14140 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 14140 schema -struct<> --- !query 14140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14141 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 14141 schema -struct<> --- !query 14141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14142 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 14142 schema -struct<> --- !query 14142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14143 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 14143 schema -struct<> --- !query 14143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14144 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 14144 schema -struct<> --- !query 14144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14145 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 14145 schema -struct<> --- !query 14145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14146 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 14146 schema -struct<> --- !query 14146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14147 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14147 schema -struct<> --- !query 14147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14148 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14148 schema -struct<> --- !query 14148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14149 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 14149 schema -struct<> --- !query 14149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14150 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 14150 schema -struct<> --- !query 14150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14151 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 14151 schema -struct<> --- !query 14151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14152 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 14152 schema -struct<> --- !query 14152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14153 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 14153 schema -struct<> --- !query 14153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14154 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 14154 schema -struct<> --- !query 14154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14155 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 14155 schema -struct<> --- !query 14155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14156 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 14156 schema -struct<> --- !query 14156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14157 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 14157 schema -struct<> --- !query 14157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14158 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 14158 schema -struct<> --- !query 14158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14159 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14159 schema -struct<> --- !query 14159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14160 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14160 schema -struct<> --- !query 14160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14161 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 14161 schema -struct<> --- !query 14161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14162 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 14162 schema -struct<> --- !query 14162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14163 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 14163 schema -struct<> --- !query 14163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14164 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 14164 schema -struct<> --- !query 14164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14165 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 14165 schema -struct<> --- !query 14165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14166 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 14166 schema -struct<> --- !query 14166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14167 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 14167 schema -struct<> --- !query 14167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14168 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 14168 schema -struct<> --- !query 14168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14169 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 14169 schema -struct<> --- !query 14169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14170 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 14170 schema -struct<> --- !query 14170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14171 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14171 schema -struct<> --- !query 14171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14172 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14172 schema -struct<> --- !query 14172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14173 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 14173 schema -struct<> --- !query 14173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14174 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 14174 schema -struct<> --- !query 14174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14175 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 14175 schema -struct<> --- !query 14175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14176 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 14176 schema -struct<> --- !query 14176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14177 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 14177 schema -struct<> --- !query 14177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14178 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 14178 schema -struct<> --- !query 14178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14179 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 14179 schema -struct<> --- !query 14179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14180 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 14180 schema -struct<> --- !query 14180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14181 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 14181 schema -struct<> --- !query 14181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14182 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 14182 schema -struct<> --- !query 14182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14183 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14183 schema -struct<> --- !query 14183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14184 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14184 schema -struct<> --- !query 14184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14185 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 14185 schema -struct<> --- !query 14185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14186 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 14186 schema -struct<> --- !query 14186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14187 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 14187 schema -struct<> --- !query 14187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14188 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 14188 schema -struct<> --- !query 14188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14189 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 14189 schema -struct<> --- !query 14189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14190 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 14190 schema -struct<> --- !query 14190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14191 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 14191 schema -struct<> --- !query 14191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14192 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 14192 schema -struct<> --- !query 14192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14193 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 14193 schema -struct<> --- !query 14193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14194 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 14194 schema -struct<> --- !query 14194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14195 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14195 schema -struct<> --- !query 14195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14196 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14196 schema -struct<> --- !query 14196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14197 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 14197 schema -struct<> --- !query 14197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14198 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 14198 schema -struct<> --- !query 14198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14199 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 14199 schema -struct<> --- !query 14199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14200 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 14200 schema -struct<> --- !query 14200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14201 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 14201 schema -struct<> --- !query 14201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14202 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 14202 schema -struct<> --- !query 14202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14203 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 14203 schema -struct<> --- !query 14203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14204 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 14204 schema -struct<> --- !query 14204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14205 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 14205 schema -struct<> --- !query 14205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14206 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 14206 schema -struct<> --- !query 14206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14207 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14207 schema -struct<> --- !query 14207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14208 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14208 schema -struct<> --- !query 14208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14209 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 14209 schema -struct> --- !query 14209 output -{[B@1bc54c53:1,[B@3c65f6f6:2} - - --- !query 14210 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 14210 schema -struct> --- !query 14210 output -{[B@105d5fee:1,[B@7a934f08:2} - - --- !query 14211 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 14211 schema -struct> --- !query 14211 output -{[B@21a575f8:1,[B@ded62a7:2} - - --- !query 14212 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 14212 schema -struct> --- !query 14212 output -{[B@56088bee:1,[B@8dca8fa:2} - - --- !query 14213 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 14213 schema -struct> --- !query 14213 output -{[B@1d3fda66:2.0,[B@5a8cc438:1.0} - - --- !query 14214 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 14214 schema -struct> --- !query 14214 output -{[B@19fe10ad:2.0,[B@203ef43b:1.0} - - --- !query 14215 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 14215 schema -struct> --- !query 14215 output -{[B@7ae6fb53:2,[B@7e99247e:1} - - --- !query 14216 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 14216 schema -struct> --- !query 14216 output -{[B@13b6da9f:"1",[B@4f24a261:"2"} - - --- !query 14217 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 14217 schema -struct<> --- !query 14217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 14218 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 14218 schema -struct<> --- !query 14218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 14219 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14219 schema -struct<> --- !query 14219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 14220 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14220 schema -struct<> --- !query 14220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 14221 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 14221 schema -struct<> --- !query 14221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14222 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 14222 schema -struct<> --- !query 14222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14223 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 14223 schema -struct<> --- !query 14223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14224 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 14224 schema -struct<> --- !query 14224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14225 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 14225 schema -struct<> --- !query 14225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14226 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 14226 schema -struct<> --- !query 14226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14227 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 14227 schema -struct<> --- !query 14227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14228 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 14228 schema -struct<> --- !query 14228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14229 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 14229 schema -struct<> --- !query 14229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14230 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 14230 schema -struct<> --- !query 14230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14231 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14231 schema -struct<> --- !query 14231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14232 -SELECT map(cast('1' as binary), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14232 schema -struct<> --- !query 14232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14233 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 14233 schema -struct<> --- !query 14233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14234 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 14234 schema -struct<> --- !query 14234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14235 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 14235 schema -struct<> --- !query 14235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14236 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 14236 schema -struct<> --- !query 14236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14237 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 14237 schema -struct<> --- !query 14237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14238 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 14238 schema -struct<> --- !query 14238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14239 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 14239 schema -struct<> --- !query 14239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14240 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 14240 schema -struct<> --- !query 14240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14241 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 14241 schema -struct<> --- !query 14241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14242 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 14242 schema -struct<> --- !query 14242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14243 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14243 schema -struct<> --- !query 14243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14244 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14244 schema -struct<> --- !query 14244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14245 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 14245 schema -struct<> --- !query 14245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14246 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 14246 schema -struct<> --- !query 14246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14247 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 14247 schema -struct<> --- !query 14247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14248 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 14248 schema -struct<> --- !query 14248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14249 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 14249 schema -struct<> --- !query 14249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14250 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 14250 schema -struct<> --- !query 14250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14251 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 14251 schema -struct<> --- !query 14251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14252 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 14252 schema -struct<> --- !query 14252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14253 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 14253 schema -struct<> --- !query 14253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14254 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 14254 schema -struct<> --- !query 14254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14255 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14255 schema -struct<> --- !query 14255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14256 -SELECT map(cast('1' as binary), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14256 schema -struct<> --- !query 14256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14257 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 14257 schema -struct<> --- !query 14257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14258 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 14258 schema -struct<> --- !query 14258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14259 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 14259 schema -struct<> --- !query 14259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14260 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 14260 schema -struct<> --- !query 14260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14261 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 14261 schema -struct<> --- !query 14261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14262 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 14262 schema -struct<> --- !query 14262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14263 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 14263 schema -struct<> --- !query 14263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14264 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 14264 schema -struct<> --- !query 14264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14265 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 14265 schema -struct<> --- !query 14265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14266 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 14266 schema -struct<> --- !query 14266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14267 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14267 schema -struct<> --- !query 14267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14268 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14268 schema -struct<> --- !query 14268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14269 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 14269 schema -struct<> --- !query 14269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14270 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 14270 schema -struct<> --- !query 14270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14271 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 14271 schema -struct<> --- !query 14271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14272 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 14272 schema -struct<> --- !query 14272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14273 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 14273 schema -struct<> --- !query 14273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14274 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 14274 schema -struct<> --- !query 14274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14275 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 14275 schema -struct<> --- !query 14275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14276 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 14276 schema -struct<> --- !query 14276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14277 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 14277 schema -struct<> --- !query 14277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14278 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 14278 schema -struct<> --- !query 14278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14279 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14279 schema -struct<> --- !query 14279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14280 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14280 schema -struct<> --- !query 14280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14281 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 14281 schema -struct<> --- !query 14281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14282 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 14282 schema -struct<> --- !query 14282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14283 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 14283 schema -struct<> --- !query 14283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14284 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 14284 schema -struct<> --- !query 14284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14285 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 14285 schema -struct<> --- !query 14285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14286 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 14286 schema -struct<> --- !query 14286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14287 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 14287 schema -struct<> --- !query 14287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14288 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 14288 schema -struct<> --- !query 14288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14289 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 14289 schema -struct<> --- !query 14289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14290 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 14290 schema -struct<> --- !query 14290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14291 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14291 schema -struct<> --- !query 14291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14292 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14292 schema -struct<> --- !query 14292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14293 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 14293 schema -struct<> --- !query 14293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14294 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 14294 schema -struct<> --- !query 14294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14295 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 14295 schema -struct<> --- !query 14295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14296 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 14296 schema -struct<> --- !query 14296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14297 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 14297 schema -struct<> --- !query 14297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14298 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 14298 schema -struct<> --- !query 14298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14299 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 14299 schema -struct<> --- !query 14299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14300 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 14300 schema -struct<> --- !query 14300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14301 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 14301 schema -struct<> --- !query 14301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14302 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 14302 schema -struct<> --- !query 14302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14303 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14303 schema -struct<> --- !query 14303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14304 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14304 schema -struct<> --- !query 14304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14305 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 14305 schema -struct<> --- !query 14305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14306 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 14306 schema -struct<> --- !query 14306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14307 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 14307 schema -struct<> --- !query 14307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14308 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 14308 schema -struct<> --- !query 14308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14309 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 14309 schema -struct<> --- !query 14309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14310 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 14310 schema -struct<> --- !query 14310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14311 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 14311 schema -struct<> --- !query 14311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14312 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 14312 schema -struct<> --- !query 14312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14313 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 14313 schema -struct<> --- !query 14313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14314 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 14314 schema -struct<> --- !query 14314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14315 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14315 schema -struct<> --- !query 14315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14316 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14316 schema -struct<> --- !query 14316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14317 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 14317 schema -struct<> --- !query 14317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14318 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 14318 schema -struct<> --- !query 14318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14319 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 14319 schema -struct<> --- !query 14319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14320 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 14320 schema -struct<> --- !query 14320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14321 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 14321 schema -struct<> --- !query 14321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14322 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 14322 schema -struct<> --- !query 14322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14323 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 14323 schema -struct<> --- !query 14323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14324 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 14324 schema -struct<> --- !query 14324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14325 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 14325 schema -struct<> --- !query 14325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14326 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 14326 schema -struct<> --- !query 14326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14327 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14327 schema -struct<> --- !query 14327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14328 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14328 schema -struct<> --- !query 14328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14329 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 14329 schema -struct<> --- !query 14329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14330 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 14330 schema -struct<> --- !query 14330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14331 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 14331 schema -struct<> --- !query 14331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14332 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 14332 schema -struct<> --- !query 14332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14333 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 14333 schema -struct<> --- !query 14333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14334 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 14334 schema -struct<> --- !query 14334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14335 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 14335 schema -struct<> --- !query 14335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14336 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 14336 schema -struct<> --- !query 14336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14337 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 14337 schema -struct<> --- !query 14337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14338 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 14338 schema -struct<> --- !query 14338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14339 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14339 schema -struct<> --- !query 14339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14340 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14340 schema -struct<> --- !query 14340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14341 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 14341 schema -struct<> --- !query 14341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14342 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 14342 schema -struct<> --- !query 14342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14343 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 14343 schema -struct<> --- !query 14343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14344 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 14344 schema -struct<> --- !query 14344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14345 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 14345 schema -struct<> --- !query 14345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14346 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 14346 schema -struct<> --- !query 14346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14347 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 14347 schema -struct<> --- !query 14347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14348 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 14348 schema -struct<> --- !query 14348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14349 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 14349 schema -struct<> --- !query 14349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14350 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 14350 schema -struct<> --- !query 14350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14351 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14351 schema -struct<> --- !query 14351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14352 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14352 schema -struct<> --- !query 14352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14353 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 14353 schema -struct> --- !query 14353 output -{[B@141b2c26:1,[B@5a6d138:2} - - --- !query 14354 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 14354 schema -struct> --- !query 14354 output -{[B@2fa02956:2,[B@6b862caa:1} - - --- !query 14355 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 14355 schema -struct> --- !query 14355 output -{[B@2fd6517c:1,[B@4bd89056:2} - - --- !query 14356 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 14356 schema -struct> --- !query 14356 output -{[B@63020bdf:2,[B@66c86b44:1} - - --- !query 14357 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 14357 schema -struct> --- !query 14357 output -{[B@1bad8367:1.0,[B@3a51cf61:2.0} - - --- !query 14358 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 14358 schema -struct> --- !query 14358 output -{[B@4da6e79e:2.0,[B@79a9407b:1.0} - - --- !query 14359 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 14359 schema -struct> --- !query 14359 output -{[B@696bd6fb:2,[B@6b097e40:1} - - --- !query 14360 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 14360 schema -struct> --- !query 14360 output -{[B@756ba9e0:"2",[B@799f0f70:"1"} - - --- !query 14361 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 14361 schema -struct<> --- !query 14361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 14362 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 14362 schema -struct<> --- !query 14362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 14363 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14363 schema -struct<> --- !query 14363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 14364 -SELECT map(cast('1' as binary), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14364 schema -struct<> --- !query 14364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 14365 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 14365 schema -struct<> --- !query 14365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14366 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 14366 schema -struct<> --- !query 14366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14367 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 14367 schema -struct<> --- !query 14367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14368 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 14368 schema -struct<> --- !query 14368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14369 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 14369 schema -struct<> --- !query 14369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14370 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 14370 schema -struct<> --- !query 14370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14371 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 14371 schema -struct<> --- !query 14371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14372 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 14372 schema -struct<> --- !query 14372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14373 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 14373 schema -struct<> --- !query 14373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14374 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 14374 schema -struct<> --- !query 14374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14375 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14375 schema -struct<> --- !query 14375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14376 -SELECT map(cast('1' as binary), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14376 schema -struct<> --- !query 14376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14377 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 14377 schema -struct<> --- !query 14377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14378 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 14378 schema -struct<> --- !query 14378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14379 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 14379 schema -struct<> --- !query 14379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14380 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 14380 schema -struct<> --- !query 14380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14381 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 14381 schema -struct<> --- !query 14381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14382 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 14382 schema -struct<> --- !query 14382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14383 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 14383 schema -struct<> --- !query 14383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14384 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 14384 schema -struct<> --- !query 14384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14385 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 14385 schema -struct<> --- !query 14385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14386 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 14386 schema -struct<> --- !query 14386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14387 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14387 schema -struct<> --- !query 14387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14388 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14388 schema -struct<> --- !query 14388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14389 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 14389 schema -struct<> --- !query 14389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14390 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 14390 schema -struct<> --- !query 14390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14391 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 14391 schema -struct<> --- !query 14391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14392 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 14392 schema -struct<> --- !query 14392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14393 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 14393 schema -struct<> --- !query 14393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14394 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 14394 schema -struct<> --- !query 14394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14395 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 14395 schema -struct<> --- !query 14395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14396 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 14396 schema -struct<> --- !query 14396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14397 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 14397 schema -struct<> --- !query 14397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14398 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 14398 schema -struct<> --- !query 14398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14399 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14399 schema -struct<> --- !query 14399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14400 -SELECT map(cast('1' as binary), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14400 schema -struct<> --- !query 14400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14401 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 14401 schema -struct<> --- !query 14401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14402 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 14402 schema -struct<> --- !query 14402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14403 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 14403 schema -struct<> --- !query 14403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14404 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 14404 schema -struct<> --- !query 14404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14405 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 14405 schema -struct<> --- !query 14405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14406 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 14406 schema -struct<> --- !query 14406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14407 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 14407 schema -struct<> --- !query 14407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14408 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 14408 schema -struct<> --- !query 14408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14409 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 14409 schema -struct<> --- !query 14409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14410 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 14410 schema -struct<> --- !query 14410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14411 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14411 schema -struct<> --- !query 14411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14412 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14412 schema -struct<> --- !query 14412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14413 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 14413 schema -struct<> --- !query 14413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14414 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 14414 schema -struct<> --- !query 14414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14415 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 14415 schema -struct<> --- !query 14415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14416 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 14416 schema -struct<> --- !query 14416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14417 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 14417 schema -struct<> --- !query 14417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14418 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 14418 schema -struct<> --- !query 14418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14419 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 14419 schema -struct<> --- !query 14419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14420 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 14420 schema -struct<> --- !query 14420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14421 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 14421 schema -struct<> --- !query 14421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14422 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 14422 schema -struct<> --- !query 14422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14423 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14423 schema -struct<> --- !query 14423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14424 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14424 schema -struct<> --- !query 14424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14425 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 14425 schema -struct<> --- !query 14425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14426 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 14426 schema -struct<> --- !query 14426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14427 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 14427 schema -struct<> --- !query 14427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14428 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 14428 schema -struct<> --- !query 14428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14429 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 14429 schema -struct<> --- !query 14429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14430 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 14430 schema -struct<> --- !query 14430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14431 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 14431 schema -struct<> --- !query 14431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14432 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 14432 schema -struct<> --- !query 14432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14433 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 14433 schema -struct<> --- !query 14433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14434 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 14434 schema -struct<> --- !query 14434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14435 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14435 schema -struct<> --- !query 14435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14436 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14436 schema -struct<> --- !query 14436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14437 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 14437 schema -struct<> --- !query 14437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14438 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 14438 schema -struct<> --- !query 14438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14439 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 14439 schema -struct<> --- !query 14439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14440 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 14440 schema -struct<> --- !query 14440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14441 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 14441 schema -struct<> --- !query 14441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14442 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 14442 schema -struct<> --- !query 14442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14443 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 14443 schema -struct<> --- !query 14443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14444 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 14444 schema -struct<> --- !query 14444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14445 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 14445 schema -struct<> --- !query 14445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14446 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 14446 schema -struct<> --- !query 14446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14447 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14447 schema -struct<> --- !query 14447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14448 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14448 schema -struct<> --- !query 14448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14449 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 14449 schema -struct<> --- !query 14449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14450 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 14450 schema -struct<> --- !query 14450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14451 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 14451 schema -struct<> --- !query 14451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14452 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 14452 schema -struct<> --- !query 14452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14453 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 14453 schema -struct<> --- !query 14453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14454 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 14454 schema -struct<> --- !query 14454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14455 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 14455 schema -struct<> --- !query 14455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14456 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 14456 schema -struct<> --- !query 14456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14457 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 14457 schema -struct<> --- !query 14457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14458 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 14458 schema -struct<> --- !query 14458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14459 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14459 schema -struct<> --- !query 14459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14460 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14460 schema -struct<> --- !query 14460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14461 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 14461 schema -struct<> --- !query 14461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14462 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 14462 schema -struct<> --- !query 14462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14463 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 14463 schema -struct<> --- !query 14463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14464 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 14464 schema -struct<> --- !query 14464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14465 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 14465 schema -struct<> --- !query 14465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14466 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 14466 schema -struct<> --- !query 14466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14467 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 14467 schema -struct<> --- !query 14467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14468 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 14468 schema -struct<> --- !query 14468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14469 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 14469 schema -struct<> --- !query 14469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14470 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 14470 schema -struct<> --- !query 14470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14471 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14471 schema -struct<> --- !query 14471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14472 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14472 schema -struct<> --- !query 14472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14473 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 14473 schema -struct<> --- !query 14473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14474 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 14474 schema -struct<> --- !query 14474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14475 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 14475 schema -struct<> --- !query 14475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14476 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 14476 schema -struct<> --- !query 14476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14477 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 14477 schema -struct<> --- !query 14477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14478 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 14478 schema -struct<> --- !query 14478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14479 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 14479 schema -struct<> --- !query 14479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14480 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 14480 schema -struct<> --- !query 14480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14481 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 14481 schema -struct<> --- !query 14481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14482 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 14482 schema -struct<> --- !query 14482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14483 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14483 schema -struct<> --- !query 14483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14484 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14484 schema -struct<> --- !query 14484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14485 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 14485 schema -struct<> --- !query 14485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14486 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 14486 schema -struct<> --- !query 14486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14487 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 14487 schema -struct<> --- !query 14487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14488 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 14488 schema -struct<> --- !query 14488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14489 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 14489 schema -struct<> --- !query 14489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14490 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 14490 schema -struct<> --- !query 14490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14491 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 14491 schema -struct<> --- !query 14491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14492 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 14492 schema -struct<> --- !query 14492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14493 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 14493 schema -struct<> --- !query 14493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14494 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 14494 schema -struct<> --- !query 14494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14495 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14495 schema -struct<> --- !query 14495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14496 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14496 schema -struct<> --- !query 14496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14497 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 14497 schema -struct> --- !query 14497 output -{[B@2578f50b:1,[B@f18700d:2} - - --- !query 14498 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 14498 schema -struct> --- !query 14498 output -{[B@764257f6:2,[B@7bdfe101:1} - - --- !query 14499 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 14499 schema -struct> --- !query 14499 output -{[B@4f4ce52d:2,[B@7705d955:1} - - --- !query 14500 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 14500 schema -struct> --- !query 14500 output -{[B@3f2a0bb:2,[B@48d88e74:1} - - --- !query 14501 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 14501 schema -struct> --- !query 14501 output -{[B@2b6514e8:2.0,[B@4698e16d:1.0} - - --- !query 14502 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 14502 schema -struct> --- !query 14502 output -{[B@659415a1:2.0,[B@753e1d4a:1.0} - - --- !query 14503 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 14503 schema -struct> --- !query 14503 output -{[B@1b0612e8:2,[B@1fe07e6e:1} - - --- !query 14504 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 14504 schema -struct> --- !query 14504 output -{[B@32800c3a:"2",[B@402e2b38:"1"} - - --- !query 14505 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 14505 schema -struct<> --- !query 14505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 14506 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 14506 schema -struct<> --- !query 14506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 14507 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14507 schema -struct<> --- !query 14507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 14508 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14508 schema -struct<> --- !query 14508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 14509 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 14509 schema -struct<> --- !query 14509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14510 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 14510 schema -struct<> --- !query 14510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14511 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 14511 schema -struct<> --- !query 14511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14512 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 14512 schema -struct<> --- !query 14512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14513 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 14513 schema -struct<> --- !query 14513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14514 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 14514 schema -struct<> --- !query 14514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14515 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 14515 schema -struct<> --- !query 14515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14516 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 14516 schema -struct<> --- !query 14516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14517 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 14517 schema -struct<> --- !query 14517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14518 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 14518 schema -struct<> --- !query 14518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14519 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14519 schema -struct<> --- !query 14519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14520 -SELECT map(cast('1' as binary), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14520 schema -struct<> --- !query 14520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14521 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 14521 schema -struct<> --- !query 14521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14522 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 14522 schema -struct<> --- !query 14522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14523 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 14523 schema -struct<> --- !query 14523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14524 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 14524 schema -struct<> --- !query 14524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14525 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 14525 schema -struct<> --- !query 14525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14526 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 14526 schema -struct<> --- !query 14526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14527 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 14527 schema -struct<> --- !query 14527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14528 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 14528 schema -struct<> --- !query 14528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14529 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 14529 schema -struct<> --- !query 14529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14530 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 14530 schema -struct<> --- !query 14530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14531 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14531 schema -struct<> --- !query 14531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14532 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14532 schema -struct<> --- !query 14532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14533 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 14533 schema -struct<> --- !query 14533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14534 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 14534 schema -struct<> --- !query 14534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14535 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 14535 schema -struct<> --- !query 14535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14536 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 14536 schema -struct<> --- !query 14536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14537 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 14537 schema -struct<> --- !query 14537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14538 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 14538 schema -struct<> --- !query 14538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14539 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 14539 schema -struct<> --- !query 14539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14540 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 14540 schema -struct<> --- !query 14540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14541 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 14541 schema -struct<> --- !query 14541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14542 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 14542 schema -struct<> --- !query 14542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14543 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14543 schema -struct<> --- !query 14543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14544 -SELECT map(cast('1' as binary), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14544 schema -struct<> --- !query 14544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14545 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 14545 schema -struct<> --- !query 14545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14546 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 14546 schema -struct<> --- !query 14546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14547 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 14547 schema -struct<> --- !query 14547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14548 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 14548 schema -struct<> --- !query 14548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14549 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 14549 schema -struct<> --- !query 14549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14550 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 14550 schema -struct<> --- !query 14550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14551 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 14551 schema -struct<> --- !query 14551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14552 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 14552 schema -struct<> --- !query 14552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14553 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 14553 schema -struct<> --- !query 14553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14554 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 14554 schema -struct<> --- !query 14554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14555 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14555 schema -struct<> --- !query 14555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14556 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14556 schema -struct<> --- !query 14556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14557 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 14557 schema -struct<> --- !query 14557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14558 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 14558 schema -struct<> --- !query 14558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14559 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 14559 schema -struct<> --- !query 14559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14560 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 14560 schema -struct<> --- !query 14560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14561 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 14561 schema -struct<> --- !query 14561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14562 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 14562 schema -struct<> --- !query 14562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14563 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 14563 schema -struct<> --- !query 14563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14564 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 14564 schema -struct<> --- !query 14564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14565 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 14565 schema -struct<> --- !query 14565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14566 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 14566 schema -struct<> --- !query 14566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14567 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14567 schema -struct<> --- !query 14567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14568 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14568 schema -struct<> --- !query 14568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14569 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 14569 schema -struct<> --- !query 14569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14570 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 14570 schema -struct<> --- !query 14570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14571 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 14571 schema -struct<> --- !query 14571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14572 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 14572 schema -struct<> --- !query 14572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14573 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 14573 schema -struct<> --- !query 14573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14574 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 14574 schema -struct<> --- !query 14574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14575 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 14575 schema -struct<> --- !query 14575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14576 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 14576 schema -struct<> --- !query 14576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14577 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 14577 schema -struct<> --- !query 14577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14578 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 14578 schema -struct<> --- !query 14578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14579 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14579 schema -struct<> --- !query 14579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14580 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14580 schema -struct<> --- !query 14580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14581 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 14581 schema -struct<> --- !query 14581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14582 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 14582 schema -struct<> --- !query 14582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14583 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 14583 schema -struct<> --- !query 14583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14584 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 14584 schema -struct<> --- !query 14584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14585 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 14585 schema -struct<> --- !query 14585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14586 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 14586 schema -struct<> --- !query 14586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14587 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 14587 schema -struct<> --- !query 14587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14588 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 14588 schema -struct<> --- !query 14588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14589 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 14589 schema -struct<> --- !query 14589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14590 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 14590 schema -struct<> --- !query 14590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14591 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14591 schema -struct<> --- !query 14591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14592 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14592 schema -struct<> --- !query 14592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14593 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 14593 schema -struct<> --- !query 14593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14594 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 14594 schema -struct<> --- !query 14594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14595 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 14595 schema -struct<> --- !query 14595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14596 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 14596 schema -struct<> --- !query 14596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14597 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 14597 schema -struct<> --- !query 14597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14598 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 14598 schema -struct<> --- !query 14598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14599 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 14599 schema -struct<> --- !query 14599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14600 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 14600 schema -struct<> --- !query 14600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14601 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 14601 schema -struct<> --- !query 14601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14602 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 14602 schema -struct<> --- !query 14602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14603 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14603 schema -struct<> --- !query 14603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14604 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14604 schema -struct<> --- !query 14604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14605 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 14605 schema -struct<> --- !query 14605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14606 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 14606 schema -struct<> --- !query 14606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14607 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 14607 schema -struct<> --- !query 14607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14608 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 14608 schema -struct<> --- !query 14608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14609 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 14609 schema -struct<> --- !query 14609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14610 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 14610 schema -struct<> --- !query 14610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14611 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 14611 schema -struct<> --- !query 14611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14612 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 14612 schema -struct<> --- !query 14612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14613 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 14613 schema -struct<> --- !query 14613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14614 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 14614 schema -struct<> --- !query 14614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14615 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14615 schema -struct<> --- !query 14615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14616 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14616 schema -struct<> --- !query 14616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14617 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 14617 schema -struct<> --- !query 14617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14618 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 14618 schema -struct<> --- !query 14618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14619 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 14619 schema -struct<> --- !query 14619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14620 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 14620 schema -struct<> --- !query 14620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14621 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 14621 schema -struct<> --- !query 14621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14622 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 14622 schema -struct<> --- !query 14622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14623 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 14623 schema -struct<> --- !query 14623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14624 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 14624 schema -struct<> --- !query 14624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14625 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 14625 schema -struct<> --- !query 14625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14626 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 14626 schema -struct<> --- !query 14626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14627 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14627 schema -struct<> --- !query 14627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14628 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14628 schema -struct<> --- !query 14628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14629 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 14629 schema -struct<> --- !query 14629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14630 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 14630 schema -struct<> --- !query 14630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14631 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 14631 schema -struct<> --- !query 14631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14632 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 14632 schema -struct<> --- !query 14632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14633 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 14633 schema -struct<> --- !query 14633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14634 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 14634 schema -struct<> --- !query 14634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14635 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 14635 schema -struct<> --- !query 14635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14636 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 14636 schema -struct<> --- !query 14636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14637 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 14637 schema -struct<> --- !query 14637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14638 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 14638 schema -struct<> --- !query 14638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14639 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14639 schema -struct<> --- !query 14639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14640 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14640 schema -struct<> --- !query 14640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14641 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 14641 schema -struct> --- !query 14641 output -{[B@13125d5b:2.0,[B@2d8a4bb6:1.0} - - --- !query 14642 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 14642 schema -struct> --- !query 14642 output -{[B@155e5e45:1.0,[B@771a9501:2.0} - - --- !query 14643 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 14643 schema -struct> --- !query 14643 output -{[B@18564e79:2.0,[B@380271b2:1.0} - - --- !query 14644 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 14644 schema -struct> --- !query 14644 output -{[B@499a7575:1.0,[B@5402963:2.0} - - --- !query 14645 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 14645 schema -struct> --- !query 14645 output -{[B@50193e3a:2.0,[B@65272ecb:1.0} - - --- !query 14646 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 14646 schema -struct> --- !query 14646 output -{[B@31086e9f:1.0,[B@735ddd48:2.0} - - --- !query 14647 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 14647 schema -struct> --- !query 14647 output -{[B@33ff320a:1.0,[B@dbde1ed:2.0} - - --- !query 14648 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 14648 schema -struct> --- !query 14648 output -{[B@341f516a:"1.0",[B@7d448e25:"2"} - - --- !query 14649 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 14649 schema -struct<> --- !query 14649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 14650 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 14650 schema -struct<> --- !query 14650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 14651 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14651 schema -struct<> --- !query 14651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 14652 -SELECT map(cast('1' as binary), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14652 schema -struct<> --- !query 14652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 14653 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 14653 schema -struct<> --- !query 14653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14654 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 14654 schema -struct<> --- !query 14654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14655 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 14655 schema -struct<> --- !query 14655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14656 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 14656 schema -struct<> --- !query 14656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14657 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 14657 schema -struct<> --- !query 14657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14658 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 14658 schema -struct<> --- !query 14658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14659 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 14659 schema -struct<> --- !query 14659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14660 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 14660 schema -struct<> --- !query 14660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14661 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 14661 schema -struct<> --- !query 14661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14662 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 14662 schema -struct<> --- !query 14662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14663 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14663 schema -struct<> --- !query 14663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14664 -SELECT map(cast('1' as binary), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14664 schema -struct<> --- !query 14664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14665 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 14665 schema -struct<> --- !query 14665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14666 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 14666 schema -struct<> --- !query 14666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14667 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 14667 schema -struct<> --- !query 14667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14668 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 14668 schema -struct<> --- !query 14668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14669 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 14669 schema -struct<> --- !query 14669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14670 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 14670 schema -struct<> --- !query 14670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14671 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 14671 schema -struct<> --- !query 14671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14672 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 14672 schema -struct<> --- !query 14672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14673 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 14673 schema -struct<> --- !query 14673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14674 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 14674 schema -struct<> --- !query 14674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14675 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14675 schema -struct<> --- !query 14675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14676 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14676 schema -struct<> --- !query 14676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14677 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 14677 schema -struct<> --- !query 14677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14678 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 14678 schema -struct<> --- !query 14678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14679 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 14679 schema -struct<> --- !query 14679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14680 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 14680 schema -struct<> --- !query 14680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14681 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 14681 schema -struct<> --- !query 14681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14682 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 14682 schema -struct<> --- !query 14682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14683 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 14683 schema -struct<> --- !query 14683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14684 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 14684 schema -struct<> --- !query 14684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14685 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 14685 schema -struct<> --- !query 14685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14686 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 14686 schema -struct<> --- !query 14686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14687 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14687 schema -struct<> --- !query 14687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14688 -SELECT map(cast('1' as binary), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14688 schema -struct<> --- !query 14688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14689 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 14689 schema -struct<> --- !query 14689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14690 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 14690 schema -struct<> --- !query 14690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14691 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 14691 schema -struct<> --- !query 14691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14692 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 14692 schema -struct<> --- !query 14692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14693 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 14693 schema -struct<> --- !query 14693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14694 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 14694 schema -struct<> --- !query 14694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14695 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 14695 schema -struct<> --- !query 14695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14696 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 14696 schema -struct<> --- !query 14696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14697 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 14697 schema -struct<> --- !query 14697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14698 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 14698 schema -struct<> --- !query 14698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14699 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14699 schema -struct<> --- !query 14699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14700 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14700 schema -struct<> --- !query 14700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14701 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 14701 schema -struct<> --- !query 14701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14702 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 14702 schema -struct<> --- !query 14702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14703 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 14703 schema -struct<> --- !query 14703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14704 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 14704 schema -struct<> --- !query 14704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14705 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 14705 schema -struct<> --- !query 14705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14706 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 14706 schema -struct<> --- !query 14706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14707 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 14707 schema -struct<> --- !query 14707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14708 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 14708 schema -struct<> --- !query 14708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14709 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 14709 schema -struct<> --- !query 14709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14710 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 14710 schema -struct<> --- !query 14710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14711 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14711 schema -struct<> --- !query 14711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14712 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14712 schema -struct<> --- !query 14712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14713 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 14713 schema -struct<> --- !query 14713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14714 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 14714 schema -struct<> --- !query 14714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14715 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 14715 schema -struct<> --- !query 14715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14716 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 14716 schema -struct<> --- !query 14716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14717 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 14717 schema -struct<> --- !query 14717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14718 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 14718 schema -struct<> --- !query 14718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14719 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 14719 schema -struct<> --- !query 14719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14720 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 14720 schema -struct<> --- !query 14720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14721 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 14721 schema -struct<> --- !query 14721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14722 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 14722 schema -struct<> --- !query 14722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14723 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14723 schema -struct<> --- !query 14723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14724 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14724 schema -struct<> --- !query 14724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14725 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 14725 schema -struct<> --- !query 14725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14726 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 14726 schema -struct<> --- !query 14726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14727 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 14727 schema -struct<> --- !query 14727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14728 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 14728 schema -struct<> --- !query 14728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14729 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 14729 schema -struct<> --- !query 14729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14730 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 14730 schema -struct<> --- !query 14730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14731 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 14731 schema -struct<> --- !query 14731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14732 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 14732 schema -struct<> --- !query 14732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14733 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 14733 schema -struct<> --- !query 14733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14734 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 14734 schema -struct<> --- !query 14734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14735 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14735 schema -struct<> --- !query 14735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14736 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14736 schema -struct<> --- !query 14736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14737 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 14737 schema -struct<> --- !query 14737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14738 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 14738 schema -struct<> --- !query 14738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14739 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 14739 schema -struct<> --- !query 14739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14740 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 14740 schema -struct<> --- !query 14740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14741 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 14741 schema -struct<> --- !query 14741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14742 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 14742 schema -struct<> --- !query 14742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14743 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 14743 schema -struct<> --- !query 14743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14744 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 14744 schema -struct<> --- !query 14744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14745 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 14745 schema -struct<> --- !query 14745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14746 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 14746 schema -struct<> --- !query 14746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14747 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14747 schema -struct<> --- !query 14747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14748 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14748 schema -struct<> --- !query 14748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14749 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 14749 schema -struct<> --- !query 14749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14750 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 14750 schema -struct<> --- !query 14750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14751 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 14751 schema -struct<> --- !query 14751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14752 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 14752 schema -struct<> --- !query 14752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14753 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 14753 schema -struct<> --- !query 14753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14754 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 14754 schema -struct<> --- !query 14754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14755 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 14755 schema -struct<> --- !query 14755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14756 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 14756 schema -struct<> --- !query 14756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14757 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 14757 schema -struct<> --- !query 14757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14758 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 14758 schema -struct<> --- !query 14758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14759 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14759 schema -struct<> --- !query 14759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14760 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14760 schema -struct<> --- !query 14760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14761 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 14761 schema -struct<> --- !query 14761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14762 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 14762 schema -struct<> --- !query 14762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14763 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 14763 schema -struct<> --- !query 14763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14764 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 14764 schema -struct<> --- !query 14764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14765 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 14765 schema -struct<> --- !query 14765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14766 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 14766 schema -struct<> --- !query 14766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14767 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 14767 schema -struct<> --- !query 14767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14768 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 14768 schema -struct<> --- !query 14768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14769 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 14769 schema -struct<> --- !query 14769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14770 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 14770 schema -struct<> --- !query 14770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14771 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14771 schema -struct<> --- !query 14771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14772 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14772 schema -struct<> --- !query 14772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14773 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 14773 schema -struct<> --- !query 14773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14774 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 14774 schema -struct<> --- !query 14774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14775 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 14775 schema -struct<> --- !query 14775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14776 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 14776 schema -struct<> --- !query 14776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14777 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 14777 schema -struct<> --- !query 14777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14778 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 14778 schema -struct<> --- !query 14778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14779 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 14779 schema -struct<> --- !query 14779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14780 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 14780 schema -struct<> --- !query 14780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14781 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 14781 schema -struct<> --- !query 14781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14782 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 14782 schema -struct<> --- !query 14782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14783 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14783 schema -struct<> --- !query 14783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14784 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14784 schema -struct<> --- !query 14784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14785 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 14785 schema -struct> --- !query 14785 output -{[B@11904705:2.0,[B@29dde0ad:1.0} - - --- !query 14786 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 14786 schema -struct> --- !query 14786 output -{[B@16052b77:2.0,[B@5551001c:1.0} - - --- !query 14787 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 14787 schema -struct> --- !query 14787 output -{[B@6effbf37:2.0,[B@77dc8af2:1.0} - - --- !query 14788 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 14788 schema -struct> --- !query 14788 output -{[B@16b5e727:2.0,[B@4bf7c6e8:1.0} - - --- !query 14789 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 14789 schema -struct> --- !query 14789 output -{[B@11949c28:1.0,[B@2831c485:2.0} - - --- !query 14790 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 14790 schema -struct> --- !query 14790 output -{[B@2f7d3e4:1.0,[B@6f74de63:2.0} - - --- !query 14791 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 14791 schema -struct> --- !query 14791 output -{[B@4890e825:2.0,[B@49ebfa5a:1.0} - - --- !query 14792 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 14792 schema -struct> --- !query 14792 output -{[B@1b9c74a9:"2",[B@8a289b5:"1.0"} - - --- !query 14793 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 14793 schema -struct<> --- !query 14793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 14794 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 14794 schema -struct<> --- !query 14794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 14795 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14795 schema -struct<> --- !query 14795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 14796 -SELECT map(cast('1' as binary), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14796 schema -struct<> --- !query 14796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 14797 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 14797 schema -struct<> --- !query 14797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14798 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 14798 schema -struct<> --- !query 14798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14799 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 14799 schema -struct<> --- !query 14799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14800 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 14800 schema -struct<> --- !query 14800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14801 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 14801 schema -struct<> --- !query 14801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14802 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 14802 schema -struct<> --- !query 14802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14803 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 14803 schema -struct<> --- !query 14803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14804 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 14804 schema -struct<> --- !query 14804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14805 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 14805 schema -struct<> --- !query 14805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14806 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 14806 schema -struct<> --- !query 14806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14807 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14807 schema -struct<> --- !query 14807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14808 -SELECT map(cast('1' as binary), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14808 schema -struct<> --- !query 14808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14809 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 14809 schema -struct<> --- !query 14809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14810 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 14810 schema -struct<> --- !query 14810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14811 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 14811 schema -struct<> --- !query 14811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14812 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 14812 schema -struct<> --- !query 14812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14813 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 14813 schema -struct<> --- !query 14813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14814 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 14814 schema -struct<> --- !query 14814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14815 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 14815 schema -struct<> --- !query 14815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14816 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 14816 schema -struct<> --- !query 14816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14817 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 14817 schema -struct<> --- !query 14817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14818 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 14818 schema -struct<> --- !query 14818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14819 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14819 schema -struct<> --- !query 14819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14820 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14820 schema -struct<> --- !query 14820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14821 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 14821 schema -struct<> --- !query 14821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14822 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 14822 schema -struct<> --- !query 14822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14823 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 14823 schema -struct<> --- !query 14823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14824 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 14824 schema -struct<> --- !query 14824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14825 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 14825 schema -struct<> --- !query 14825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14826 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 14826 schema -struct<> --- !query 14826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14827 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 14827 schema -struct<> --- !query 14827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14828 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 14828 schema -struct<> --- !query 14828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14829 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 14829 schema -struct<> --- !query 14829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14830 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 14830 schema -struct<> --- !query 14830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14831 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14831 schema -struct<> --- !query 14831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14832 -SELECT map(cast('1' as binary), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14832 schema -struct<> --- !query 14832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14833 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 14833 schema -struct<> --- !query 14833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14834 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 14834 schema -struct<> --- !query 14834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14835 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 14835 schema -struct<> --- !query 14835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14836 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 14836 schema -struct<> --- !query 14836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14837 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 14837 schema -struct<> --- !query 14837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14838 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 14838 schema -struct<> --- !query 14838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14839 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 14839 schema -struct<> --- !query 14839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14840 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 14840 schema -struct<> --- !query 14840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14841 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 14841 schema -struct<> --- !query 14841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14842 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 14842 schema -struct<> --- !query 14842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14843 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14843 schema -struct<> --- !query 14843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14844 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14844 schema -struct<> --- !query 14844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14845 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 14845 schema -struct<> --- !query 14845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14846 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 14846 schema -struct<> --- !query 14846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14847 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 14847 schema -struct<> --- !query 14847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14848 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 14848 schema -struct<> --- !query 14848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14849 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 14849 schema -struct<> --- !query 14849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14850 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 14850 schema -struct<> --- !query 14850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14851 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 14851 schema -struct<> --- !query 14851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14852 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 14852 schema -struct<> --- !query 14852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14853 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 14853 schema -struct<> --- !query 14853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14854 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 14854 schema -struct<> --- !query 14854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14855 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14855 schema -struct<> --- !query 14855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14856 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14856 schema -struct<> --- !query 14856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14857 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 14857 schema -struct<> --- !query 14857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14858 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 14858 schema -struct<> --- !query 14858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14859 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 14859 schema -struct<> --- !query 14859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14860 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 14860 schema -struct<> --- !query 14860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14861 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 14861 schema -struct<> --- !query 14861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14862 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 14862 schema -struct<> --- !query 14862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14863 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 14863 schema -struct<> --- !query 14863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14864 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 14864 schema -struct<> --- !query 14864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14865 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 14865 schema -struct<> --- !query 14865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14866 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 14866 schema -struct<> --- !query 14866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14867 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14867 schema -struct<> --- !query 14867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14868 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14868 schema -struct<> --- !query 14868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 14869 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 14869 schema -struct<> --- !query 14869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14870 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 14870 schema -struct<> --- !query 14870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14871 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 14871 schema -struct<> --- !query 14871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14872 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 14872 schema -struct<> --- !query 14872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14873 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 14873 schema -struct<> --- !query 14873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14874 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 14874 schema -struct<> --- !query 14874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14875 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 14875 schema -struct<> --- !query 14875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14876 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 14876 schema -struct<> --- !query 14876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14877 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 14877 schema -struct<> --- !query 14877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14878 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 14878 schema -struct<> --- !query 14878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14879 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14879 schema -struct<> --- !query 14879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14880 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14880 schema -struct<> --- !query 14880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 14881 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 14881 schema -struct<> --- !query 14881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14882 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 14882 schema -struct<> --- !query 14882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14883 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 14883 schema -struct<> --- !query 14883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14884 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 14884 schema -struct<> --- !query 14884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14885 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 14885 schema -struct<> --- !query 14885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14886 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 14886 schema -struct<> --- !query 14886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14887 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 14887 schema -struct<> --- !query 14887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14888 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 14888 schema -struct<> --- !query 14888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14889 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 14889 schema -struct<> --- !query 14889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14890 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 14890 schema -struct<> --- !query 14890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14891 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14891 schema -struct<> --- !query 14891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14892 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14892 schema -struct<> --- !query 14892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 14893 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 14893 schema -struct<> --- !query 14893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14894 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 14894 schema -struct<> --- !query 14894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14895 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 14895 schema -struct<> --- !query 14895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14896 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 14896 schema -struct<> --- !query 14896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14897 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 14897 schema -struct<> --- !query 14897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14898 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 14898 schema -struct<> --- !query 14898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14899 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 14899 schema -struct<> --- !query 14899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14900 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 14900 schema -struct<> --- !query 14900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14901 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 14901 schema -struct<> --- !query 14901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14902 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 14902 schema -struct<> --- !query 14902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14903 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14903 schema -struct<> --- !query 14903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14904 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14904 schema -struct<> --- !query 14904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 14905 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 14905 schema -struct<> --- !query 14905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14906 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 14906 schema -struct<> --- !query 14906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14907 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 14907 schema -struct<> --- !query 14907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14908 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 14908 schema -struct<> --- !query 14908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14909 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 14909 schema -struct<> --- !query 14909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14910 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 14910 schema -struct<> --- !query 14910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14911 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 14911 schema -struct<> --- !query 14911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14912 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 14912 schema -struct<> --- !query 14912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14913 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 14913 schema -struct<> --- !query 14913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14914 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 14914 schema -struct<> --- !query 14914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14915 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14915 schema -struct<> --- !query 14915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14916 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14916 schema -struct<> --- !query 14916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 14917 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 14917 schema -struct<> --- !query 14917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14918 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 14918 schema -struct<> --- !query 14918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14919 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 14919 schema -struct<> --- !query 14919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14920 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 14920 schema -struct<> --- !query 14920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14921 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 14921 schema -struct<> --- !query 14921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14922 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 14922 schema -struct<> --- !query 14922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14923 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 14923 schema -struct<> --- !query 14923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14924 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 14924 schema -struct<> --- !query 14924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14925 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 14925 schema -struct<> --- !query 14925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14926 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 14926 schema -struct<> --- !query 14926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14927 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14927 schema -struct<> --- !query 14927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14928 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14928 schema -struct<> --- !query 14928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 14929 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 14929 schema -struct> --- !query 14929 output -{[B@5060be69:2,[B@66c4e9ac:1} - - --- !query 14930 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 14930 schema -struct> --- !query 14930 output -{[B@13578d96:1,[B@2b68f474:2} - - --- !query 14931 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 14931 schema -struct> --- !query 14931 output -{[B@327bf02a:1,[B@533dffbd:2} - - --- !query 14932 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 14932 schema -struct> --- !query 14932 output -{[B@20fbffb:1,[B@9268c57:2} - - --- !query 14933 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 14933 schema -struct> --- !query 14933 output -{[B@6681eacf:2.0,[B@be6895e:1.0} - - --- !query 14934 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 14934 schema -struct> --- !query 14934 output -{[B@47425fbf:2.0,[B@71346ee6:1.0} - - --- !query 14935 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 14935 schema -struct> --- !query 14935 output -{[B@31d6f842:2,[B@7dc13794:1} - - --- !query 14936 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 14936 schema -struct> --- !query 14936 output -{[B@1b6ac5a1:"1",[B@4c813fa6:"2"} - - --- !query 14937 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 14937 schema -struct<> --- !query 14937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 14938 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 14938 schema -struct<> --- !query 14938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 14939 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14939 schema -struct<> --- !query 14939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 14940 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14940 schema -struct<> --- !query 14940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 14941 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 14941 schema -struct<> --- !query 14941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14942 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 14942 schema -struct<> --- !query 14942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14943 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 14943 schema -struct<> --- !query 14943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14944 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 14944 schema -struct<> --- !query 14944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14945 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 14945 schema -struct<> --- !query 14945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14946 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 14946 schema -struct<> --- !query 14946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14947 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 14947 schema -struct<> --- !query 14947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14948 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 14948 schema -struct<> --- !query 14948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14949 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 14949 schema -struct<> --- !query 14949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14950 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 14950 schema -struct<> --- !query 14950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14951 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14951 schema -struct<> --- !query 14951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14952 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14952 schema -struct<> --- !query 14952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 14953 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 14953 schema -struct<> --- !query 14953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14954 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 14954 schema -struct<> --- !query 14954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14955 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 14955 schema -struct<> --- !query 14955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14956 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 14956 schema -struct<> --- !query 14956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14957 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 14957 schema -struct<> --- !query 14957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14958 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 14958 schema -struct<> --- !query 14958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14959 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 14959 schema -struct<> --- !query 14959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14960 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 14960 schema -struct<> --- !query 14960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14961 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 14961 schema -struct<> --- !query 14961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14962 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 14962 schema -struct<> --- !query 14962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14963 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14963 schema -struct<> --- !query 14963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14964 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14964 schema -struct<> --- !query 14964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 14965 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 14965 schema -struct<> --- !query 14965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14966 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 14966 schema -struct<> --- !query 14966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14967 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 14967 schema -struct<> --- !query 14967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14968 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 14968 schema -struct<> --- !query 14968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14969 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 14969 schema -struct<> --- !query 14969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14970 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 14970 schema -struct<> --- !query 14970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14971 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 14971 schema -struct<> --- !query 14971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14972 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 14972 schema -struct<> --- !query 14972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14973 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 14973 schema -struct<> --- !query 14973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14974 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 14974 schema -struct<> --- !query 14974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14975 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14975 schema -struct<> --- !query 14975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14976 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14976 schema -struct<> --- !query 14976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 14977 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 14977 schema -struct<> --- !query 14977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14978 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 14978 schema -struct<> --- !query 14978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14979 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 14979 schema -struct<> --- !query 14979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14980 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 14980 schema -struct<> --- !query 14980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14981 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 14981 schema -struct<> --- !query 14981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14982 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 14982 schema -struct<> --- !query 14982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14983 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 14983 schema -struct<> --- !query 14983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14984 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 14984 schema -struct<> --- !query 14984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14985 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 14985 schema -struct<> --- !query 14985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14986 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 14986 schema -struct<> --- !query 14986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14987 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14987 schema -struct<> --- !query 14987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14988 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 14988 schema -struct<> --- !query 14988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 14989 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 14989 schema -struct<> --- !query 14989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14990 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 14990 schema -struct<> --- !query 14990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14991 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 14991 schema -struct<> --- !query 14991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14992 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 14992 schema -struct<> --- !query 14992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14993 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 14993 schema -struct<> --- !query 14993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14994 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 14994 schema -struct<> --- !query 14994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14995 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 14995 schema -struct<> --- !query 14995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14996 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 14996 schema -struct<> --- !query 14996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14997 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 14997 schema -struct<> --- !query 14997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14998 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 14998 schema -struct<> --- !query 14998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 14999 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 14999 schema -struct<> --- !query 14999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15000 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15000 schema -struct<> --- !query 15000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15001 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 15001 schema -struct<> --- !query 15001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15002 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 15002 schema -struct<> --- !query 15002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15003 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 15003 schema -struct<> --- !query 15003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15004 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 15004 schema -struct<> --- !query 15004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15005 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 15005 schema -struct<> --- !query 15005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15006 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 15006 schema -struct<> --- !query 15006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15007 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 15007 schema -struct<> --- !query 15007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15008 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 15008 schema -struct<> --- !query 15008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15009 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 15009 schema -struct<> --- !query 15009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15010 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 15010 schema -struct<> --- !query 15010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15011 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15011 schema -struct<> --- !query 15011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15012 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15012 schema -struct<> --- !query 15012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15013 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 15013 schema -struct<> --- !query 15013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15014 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 15014 schema -struct<> --- !query 15014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15015 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 15015 schema -struct<> --- !query 15015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15016 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 15016 schema -struct<> --- !query 15016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15017 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 15017 schema -struct<> --- !query 15017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15018 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 15018 schema -struct<> --- !query 15018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15019 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 15019 schema -struct<> --- !query 15019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15020 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 15020 schema -struct<> --- !query 15020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15021 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 15021 schema -struct<> --- !query 15021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15022 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 15022 schema -struct<> --- !query 15022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15023 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15023 schema -struct<> --- !query 15023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15024 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15024 schema -struct<> --- !query 15024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15025 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 15025 schema -struct<> --- !query 15025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15026 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 15026 schema -struct<> --- !query 15026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15027 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 15027 schema -struct<> --- !query 15027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15028 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 15028 schema -struct<> --- !query 15028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15029 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 15029 schema -struct<> --- !query 15029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15030 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 15030 schema -struct<> --- !query 15030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15031 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 15031 schema -struct<> --- !query 15031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15032 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 15032 schema -struct<> --- !query 15032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15033 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 15033 schema -struct<> --- !query 15033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15034 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 15034 schema -struct<> --- !query 15034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15035 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15035 schema -struct<> --- !query 15035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15036 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15036 schema -struct<> --- !query 15036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15037 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 15037 schema -struct<> --- !query 15037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15038 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 15038 schema -struct<> --- !query 15038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15039 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 15039 schema -struct<> --- !query 15039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15040 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 15040 schema -struct<> --- !query 15040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15041 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 15041 schema -struct<> --- !query 15041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15042 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 15042 schema -struct<> --- !query 15042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15043 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 15043 schema -struct<> --- !query 15043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15044 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 15044 schema -struct<> --- !query 15044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15045 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 15045 schema -struct<> --- !query 15045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15046 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 15046 schema -struct<> --- !query 15046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15047 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15047 schema -struct<> --- !query 15047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15048 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15048 schema -struct<> --- !query 15048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15049 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 15049 schema -struct<> --- !query 15049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15050 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 15050 schema -struct<> --- !query 15050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15051 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 15051 schema -struct<> --- !query 15051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15052 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 15052 schema -struct<> --- !query 15052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15053 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 15053 schema -struct<> --- !query 15053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15054 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 15054 schema -struct<> --- !query 15054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15055 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 15055 schema -struct<> --- !query 15055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15056 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 15056 schema -struct<> --- !query 15056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15057 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 15057 schema -struct<> --- !query 15057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15058 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 15058 schema -struct<> --- !query 15058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15059 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15059 schema -struct<> --- !query 15059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15060 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15060 schema -struct<> --- !query 15060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15061 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 15061 schema -struct<> --- !query 15061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15062 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 15062 schema -struct<> --- !query 15062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15063 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 15063 schema -struct<> --- !query 15063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15064 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 15064 schema -struct<> --- !query 15064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15065 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 15065 schema -struct<> --- !query 15065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15066 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 15066 schema -struct<> --- !query 15066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15067 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 15067 schema -struct<> --- !query 15067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15068 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 15068 schema -struct<> --- !query 15068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15069 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 15069 schema -struct<> --- !query 15069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15070 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 15070 schema -struct<> --- !query 15070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15071 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15071 schema -struct<> --- !query 15071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15072 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15072 schema -struct<> --- !query 15072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15073 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 15073 schema -struct> --- !query 15073 output -{[B@1ce53261:"1",[B@62b8a30f:"2"} - - --- !query 15074 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 15074 schema -struct> --- !query 15074 output -{[B@6e6ce894:"2",[B@7c9e03d9:"1"} - - --- !query 15075 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 15075 schema -struct> --- !query 15075 output -{[B@6d8ed83:"1",[B@7cec0f84:"2"} - - --- !query 15076 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 15076 schema -struct> --- !query 15076 output -{[B@299c40b3:"1",[B@4433b29c:"2"} - - --- !query 15077 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 15077 schema -struct> --- !query 15077 output -{[B@3023da97:"2.0",[B@3b88fc8f:"1"} - - --- !query 15078 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 15078 schema -struct> --- !query 15078 output -{[B@6ec0627:"2.0",[B@72854993:"1"} - - --- !query 15079 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 15079 schema -struct> --- !query 15079 output -{[B@121bd854:"2",[B@ebeea1e:"1"} - - --- !query 15080 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 15080 schema -struct> --- !query 15080 output -{[B@3eb5f534:"2",[B@77369228:"1"} - - --- !query 15081 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 15081 schema -struct<> --- !query 15081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 15082 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 15082 schema -struct<> --- !query 15082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 15083 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15083 schema -struct> --- !query 15083 output -{[B@23bfb3ab:"2017-12-12 09:30:00",[B@6b093932:"1"} - - --- !query 15084 -SELECT map(cast('1' as binary), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15084 schema -struct> --- !query 15084 output -{[B@37c22440:"2017-12-12",[B@79424c4d:"1"} - - --- !query 15085 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 15085 schema -struct<> --- !query 15085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15086 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 15086 schema -struct<> --- !query 15086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15087 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 15087 schema -struct<> --- !query 15087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15088 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 15088 schema -struct<> --- !query 15088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15089 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 15089 schema -struct<> --- !query 15089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15090 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 15090 schema -struct<> --- !query 15090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15091 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 15091 schema -struct<> --- !query 15091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15092 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 15092 schema -struct<> --- !query 15092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15093 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 15093 schema -struct<> --- !query 15093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15094 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 15094 schema -struct<> --- !query 15094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15095 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15095 schema -struct<> --- !query 15095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15096 -SELECT map(cast('1' as binary), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15096 schema -struct<> --- !query 15096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15097 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 15097 schema -struct<> --- !query 15097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15098 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 15098 schema -struct<> --- !query 15098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15099 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 15099 schema -struct<> --- !query 15099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15100 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 15100 schema -struct<> --- !query 15100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15101 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 15101 schema -struct<> --- !query 15101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15102 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 15102 schema -struct<> --- !query 15102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15103 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 15103 schema -struct<> --- !query 15103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15104 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 15104 schema -struct<> --- !query 15104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15105 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 15105 schema -struct<> --- !query 15105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15106 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 15106 schema -struct<> --- !query 15106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15107 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15107 schema -struct<> --- !query 15107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15108 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15108 schema -struct<> --- !query 15108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15109 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 15109 schema -struct<> --- !query 15109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15110 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 15110 schema -struct<> --- !query 15110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15111 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 15111 schema -struct<> --- !query 15111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15112 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 15112 schema -struct<> --- !query 15112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15113 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 15113 schema -struct<> --- !query 15113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15114 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 15114 schema -struct<> --- !query 15114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15115 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 15115 schema -struct<> --- !query 15115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15116 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 15116 schema -struct<> --- !query 15116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15117 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 15117 schema -struct<> --- !query 15117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15118 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 15118 schema -struct<> --- !query 15118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15119 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15119 schema -struct<> --- !query 15119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15120 -SELECT map(cast('1' as binary), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15120 schema -struct<> --- !query 15120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15121 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 15121 schema -struct<> --- !query 15121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15122 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 15122 schema -struct<> --- !query 15122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15123 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 15123 schema -struct<> --- !query 15123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15124 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 15124 schema -struct<> --- !query 15124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15125 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 15125 schema -struct<> --- !query 15125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15126 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 15126 schema -struct<> --- !query 15126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15127 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 15127 schema -struct<> --- !query 15127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15128 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 15128 schema -struct<> --- !query 15128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15129 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 15129 schema -struct<> --- !query 15129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15130 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 15130 schema -struct<> --- !query 15130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15131 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15131 schema -struct<> --- !query 15131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15132 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15132 schema -struct<> --- !query 15132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15133 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 15133 schema -struct<> --- !query 15133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15134 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 15134 schema -struct<> --- !query 15134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15135 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 15135 schema -struct<> --- !query 15135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15136 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 15136 schema -struct<> --- !query 15136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15137 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 15137 schema -struct<> --- !query 15137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15138 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 15138 schema -struct<> --- !query 15138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15139 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 15139 schema -struct<> --- !query 15139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15140 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 15140 schema -struct<> --- !query 15140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15141 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 15141 schema -struct<> --- !query 15141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15142 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 15142 schema -struct<> --- !query 15142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15143 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15143 schema -struct<> --- !query 15143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15144 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15144 schema -struct<> --- !query 15144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15145 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 15145 schema -struct<> --- !query 15145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15146 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 15146 schema -struct<> --- !query 15146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15147 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 15147 schema -struct<> --- !query 15147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15148 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 15148 schema -struct<> --- !query 15148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15149 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 15149 schema -struct<> --- !query 15149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15150 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 15150 schema -struct<> --- !query 15150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15151 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 15151 schema -struct<> --- !query 15151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15152 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 15152 schema -struct<> --- !query 15152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15153 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 15153 schema -struct<> --- !query 15153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15154 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 15154 schema -struct<> --- !query 15154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15155 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15155 schema -struct<> --- !query 15155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15156 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15156 schema -struct<> --- !query 15156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15157 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 15157 schema -struct<> --- !query 15157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15158 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 15158 schema -struct<> --- !query 15158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15159 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 15159 schema -struct<> --- !query 15159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15160 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 15160 schema -struct<> --- !query 15160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15161 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 15161 schema -struct<> --- !query 15161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15162 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 15162 schema -struct<> --- !query 15162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15163 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 15163 schema -struct<> --- !query 15163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15164 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 15164 schema -struct<> --- !query 15164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15165 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 15165 schema -struct<> --- !query 15165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15166 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 15166 schema -struct<> --- !query 15166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15167 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15167 schema -struct<> --- !query 15167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15168 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15168 schema -struct<> --- !query 15168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15169 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 15169 schema -struct<> --- !query 15169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15170 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 15170 schema -struct<> --- !query 15170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15171 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 15171 schema -struct<> --- !query 15171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15172 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 15172 schema -struct<> --- !query 15172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15173 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 15173 schema -struct<> --- !query 15173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15174 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 15174 schema -struct<> --- !query 15174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15175 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 15175 schema -struct<> --- !query 15175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15176 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 15176 schema -struct<> --- !query 15176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15177 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 15177 schema -struct<> --- !query 15177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15178 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 15178 schema -struct<> --- !query 15178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15179 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15179 schema -struct<> --- !query 15179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15180 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15180 schema -struct<> --- !query 15180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15181 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 15181 schema -struct<> --- !query 15181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15182 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 15182 schema -struct<> --- !query 15182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15183 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 15183 schema -struct<> --- !query 15183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15184 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 15184 schema -struct<> --- !query 15184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15185 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 15185 schema -struct<> --- !query 15185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15186 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 15186 schema -struct<> --- !query 15186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15187 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 15187 schema -struct<> --- !query 15187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15188 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 15188 schema -struct<> --- !query 15188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15189 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 15189 schema -struct<> --- !query 15189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15190 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 15190 schema -struct<> --- !query 15190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15191 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15191 schema -struct<> --- !query 15191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15192 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15192 schema -struct<> --- !query 15192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15193 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 15193 schema -struct<> --- !query 15193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15194 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 15194 schema -struct<> --- !query 15194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15195 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 15195 schema -struct<> --- !query 15195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15196 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 15196 schema -struct<> --- !query 15196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15197 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 15197 schema -struct<> --- !query 15197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15198 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 15198 schema -struct<> --- !query 15198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15199 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 15199 schema -struct<> --- !query 15199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15200 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 15200 schema -struct<> --- !query 15200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15201 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 15201 schema -struct<> --- !query 15201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15202 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 15202 schema -struct<> --- !query 15202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15203 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15203 schema -struct<> --- !query 15203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15204 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15204 schema -struct<> --- !query 15204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15205 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 15205 schema -struct<> --- !query 15205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15206 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 15206 schema -struct<> --- !query 15206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15207 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 15207 schema -struct<> --- !query 15207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15208 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 15208 schema -struct<> --- !query 15208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15209 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 15209 schema -struct<> --- !query 15209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15210 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 15210 schema -struct<> --- !query 15210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15211 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 15211 schema -struct<> --- !query 15211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15212 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 15212 schema -struct<> --- !query 15212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15213 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 15213 schema -struct<> --- !query 15213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15214 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 15214 schema -struct<> --- !query 15214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15215 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15215 schema -struct<> --- !query 15215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15216 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15216 schema -struct<> --- !query 15216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15217 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 15217 schema -struct<> --- !query 15217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15218 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 15218 schema -struct<> --- !query 15218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15219 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 15219 schema -struct<> --- !query 15219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15220 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 15220 schema -struct<> --- !query 15220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15221 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 15221 schema -struct<> --- !query 15221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15222 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 15222 schema -struct<> --- !query 15222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15223 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 15223 schema -struct<> --- !query 15223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15224 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 15224 schema -struct<> --- !query 15224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15225 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 15225 schema -struct> --- !query 15225 output -{[B@15f41c9f:[B@8fbea1c,[B@28d68fe2:[B@4438400b} - - --- !query 15226 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 15226 schema -struct<> --- !query 15226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15227 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15227 schema -struct<> --- !query 15227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15228 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15228 schema -struct<> --- !query 15228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15229 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 15229 schema -struct<> --- !query 15229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15230 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 15230 schema -struct<> --- !query 15230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15231 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 15231 schema -struct<> --- !query 15231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15232 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 15232 schema -struct<> --- !query 15232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15233 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 15233 schema -struct<> --- !query 15233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15234 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 15234 schema -struct<> --- !query 15234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15235 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 15235 schema -struct<> --- !query 15235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15236 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 15236 schema -struct<> --- !query 15236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15237 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 15237 schema -struct<> --- !query 15237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15238 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 15238 schema -struct<> --- !query 15238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15239 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15239 schema -struct<> --- !query 15239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15240 -SELECT map(cast('1' as binary), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15240 schema -struct<> --- !query 15240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15241 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 15241 schema -struct<> --- !query 15241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15242 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 15242 schema -struct<> --- !query 15242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15243 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 15243 schema -struct<> --- !query 15243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15244 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 15244 schema -struct<> --- !query 15244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15245 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 15245 schema -struct<> --- !query 15245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15246 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 15246 schema -struct<> --- !query 15246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15247 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 15247 schema -struct<> --- !query 15247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15248 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 15248 schema -struct<> --- !query 15248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15249 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 15249 schema -struct<> --- !query 15249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15250 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 15250 schema -struct<> --- !query 15250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15251 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15251 schema -struct<> --- !query 15251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15252 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15252 schema -struct<> --- !query 15252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15253 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 15253 schema -struct<> --- !query 15253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15254 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 15254 schema -struct<> --- !query 15254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15255 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 15255 schema -struct<> --- !query 15255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15256 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 15256 schema -struct<> --- !query 15256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15257 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 15257 schema -struct<> --- !query 15257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15258 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 15258 schema -struct<> --- !query 15258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15259 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 15259 schema -struct<> --- !query 15259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15260 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 15260 schema -struct<> --- !query 15260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15261 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 15261 schema -struct<> --- !query 15261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15262 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 15262 schema -struct<> --- !query 15262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15263 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15263 schema -struct<> --- !query 15263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15264 -SELECT map(cast('1' as binary), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15264 schema -struct<> --- !query 15264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15265 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 15265 schema -struct<> --- !query 15265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15266 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 15266 schema -struct<> --- !query 15266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15267 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 15267 schema -struct<> --- !query 15267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15268 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 15268 schema -struct<> --- !query 15268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15269 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 15269 schema -struct<> --- !query 15269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15270 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 15270 schema -struct<> --- !query 15270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15271 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 15271 schema -struct<> --- !query 15271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15272 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 15272 schema -struct<> --- !query 15272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15273 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 15273 schema -struct<> --- !query 15273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15274 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 15274 schema -struct<> --- !query 15274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15275 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15275 schema -struct<> --- !query 15275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15276 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15276 schema -struct<> --- !query 15276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15277 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 15277 schema -struct<> --- !query 15277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15278 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 15278 schema -struct<> --- !query 15278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15279 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 15279 schema -struct<> --- !query 15279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15280 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 15280 schema -struct<> --- !query 15280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15281 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 15281 schema -struct<> --- !query 15281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15282 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 15282 schema -struct<> --- !query 15282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15283 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 15283 schema -struct<> --- !query 15283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15284 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 15284 schema -struct<> --- !query 15284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15285 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 15285 schema -struct<> --- !query 15285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15286 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 15286 schema -struct<> --- !query 15286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15287 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15287 schema -struct<> --- !query 15287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15288 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15288 schema -struct<> --- !query 15288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15289 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 15289 schema -struct<> --- !query 15289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15290 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 15290 schema -struct<> --- !query 15290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15291 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 15291 schema -struct<> --- !query 15291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15292 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 15292 schema -struct<> --- !query 15292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15293 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 15293 schema -struct<> --- !query 15293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15294 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 15294 schema -struct<> --- !query 15294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15295 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 15295 schema -struct<> --- !query 15295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15296 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 15296 schema -struct<> --- !query 15296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15297 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 15297 schema -struct<> --- !query 15297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15298 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 15298 schema -struct<> --- !query 15298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15299 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15299 schema -struct<> --- !query 15299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15300 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15300 schema -struct<> --- !query 15300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15301 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 15301 schema -struct<> --- !query 15301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15302 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 15302 schema -struct<> --- !query 15302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15303 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 15303 schema -struct<> --- !query 15303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15304 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 15304 schema -struct<> --- !query 15304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15305 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 15305 schema -struct<> --- !query 15305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15306 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 15306 schema -struct<> --- !query 15306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15307 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 15307 schema -struct<> --- !query 15307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15308 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 15308 schema -struct<> --- !query 15308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15309 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 15309 schema -struct<> --- !query 15309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15310 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 15310 schema -struct<> --- !query 15310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15311 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15311 schema -struct<> --- !query 15311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15312 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15312 schema -struct<> --- !query 15312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15313 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 15313 schema -struct<> --- !query 15313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15314 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 15314 schema -struct<> --- !query 15314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15315 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 15315 schema -struct<> --- !query 15315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15316 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 15316 schema -struct<> --- !query 15316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15317 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 15317 schema -struct<> --- !query 15317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15318 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 15318 schema -struct<> --- !query 15318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15319 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 15319 schema -struct<> --- !query 15319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15320 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 15320 schema -struct<> --- !query 15320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15321 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 15321 schema -struct<> --- !query 15321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15322 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 15322 schema -struct<> --- !query 15322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15323 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15323 schema -struct<> --- !query 15323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15324 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15324 schema -struct<> --- !query 15324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15325 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 15325 schema -struct<> --- !query 15325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15326 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 15326 schema -struct<> --- !query 15326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15327 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 15327 schema -struct<> --- !query 15327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15328 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 15328 schema -struct<> --- !query 15328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15329 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 15329 schema -struct<> --- !query 15329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15330 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 15330 schema -struct<> --- !query 15330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15331 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 15331 schema -struct<> --- !query 15331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15332 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 15332 schema -struct<> --- !query 15332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15333 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 15333 schema -struct<> --- !query 15333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15334 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 15334 schema -struct<> --- !query 15334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15335 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15335 schema -struct<> --- !query 15335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15336 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15336 schema -struct<> --- !query 15336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15337 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 15337 schema -struct<> --- !query 15337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15338 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 15338 schema -struct<> --- !query 15338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15339 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 15339 schema -struct<> --- !query 15339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15340 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 15340 schema -struct<> --- !query 15340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15341 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 15341 schema -struct<> --- !query 15341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15342 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 15342 schema -struct<> --- !query 15342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15343 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 15343 schema -struct<> --- !query 15343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15344 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 15344 schema -struct<> --- !query 15344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15345 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 15345 schema -struct<> --- !query 15345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15346 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 15346 schema -struct<> --- !query 15346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15347 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15347 schema -struct<> --- !query 15347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15348 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15348 schema -struct<> --- !query 15348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15349 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 15349 schema -struct<> --- !query 15349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15350 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 15350 schema -struct<> --- !query 15350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15351 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 15351 schema -struct<> --- !query 15351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15352 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 15352 schema -struct<> --- !query 15352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15353 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 15353 schema -struct<> --- !query 15353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15354 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 15354 schema -struct<> --- !query 15354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15355 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 15355 schema -struct<> --- !query 15355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15356 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 15356 schema -struct<> --- !query 15356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15357 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 15357 schema -struct<> --- !query 15357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15358 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 15358 schema -struct<> --- !query 15358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15359 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15359 schema -struct<> --- !query 15359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15360 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15360 schema -struct<> --- !query 15360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15361 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 15361 schema -struct<> --- !query 15361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15362 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 15362 schema -struct<> --- !query 15362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15363 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 15363 schema -struct<> --- !query 15363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15364 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 15364 schema -struct<> --- !query 15364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15365 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 15365 schema -struct<> --- !query 15365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15366 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 15366 schema -struct<> --- !query 15366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15367 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 15367 schema -struct<> --- !query 15367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15368 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 15368 schema -struct<> --- !query 15368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15369 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 15369 schema -struct<> --- !query 15369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15370 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 15370 schema -struct> --- !query 15370 output -{[B@46bb34c1:true,[B@53b25bb3:true} - - --- !query 15371 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15371 schema -struct<> --- !query 15371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15372 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15372 schema -struct<> --- !query 15372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15373 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 15373 schema -struct<> --- !query 15373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15374 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 15374 schema -struct<> --- !query 15374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15375 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 15375 schema -struct<> --- !query 15375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15376 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 15376 schema -struct<> --- !query 15376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15377 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 15377 schema -struct<> --- !query 15377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15378 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 15378 schema -struct<> --- !query 15378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15379 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 15379 schema -struct<> --- !query 15379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15380 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 15380 schema -struct<> --- !query 15380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15381 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 15381 schema -struct<> --- !query 15381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15382 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 15382 schema -struct<> --- !query 15382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15383 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15383 schema -struct<> --- !query 15383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15384 -SELECT map(cast('1' as binary), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15384 schema -struct<> --- !query 15384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15385 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 15385 schema -struct<> --- !query 15385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15386 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 15386 schema -struct<> --- !query 15386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15387 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 15387 schema -struct<> --- !query 15387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15388 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 15388 schema -struct<> --- !query 15388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15389 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 15389 schema -struct<> --- !query 15389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15390 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 15390 schema -struct<> --- !query 15390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15391 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 15391 schema -struct<> --- !query 15391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15392 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 15392 schema -struct<> --- !query 15392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15393 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 15393 schema -struct<> --- !query 15393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15394 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 15394 schema -struct<> --- !query 15394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15395 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15395 schema -struct<> --- !query 15395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15396 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15396 schema -struct<> --- !query 15396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15397 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 15397 schema -struct<> --- !query 15397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15398 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 15398 schema -struct<> --- !query 15398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15399 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 15399 schema -struct<> --- !query 15399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15400 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 15400 schema -struct<> --- !query 15400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15401 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 15401 schema -struct<> --- !query 15401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15402 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 15402 schema -struct<> --- !query 15402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15403 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 15403 schema -struct<> --- !query 15403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15404 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 15404 schema -struct<> --- !query 15404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15405 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 15405 schema -struct<> --- !query 15405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15406 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 15406 schema -struct<> --- !query 15406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15407 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15407 schema -struct<> --- !query 15407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15408 -SELECT map(cast('1' as binary), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15408 schema -struct<> --- !query 15408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15409 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 15409 schema -struct<> --- !query 15409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15410 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 15410 schema -struct<> --- !query 15410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15411 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 15411 schema -struct<> --- !query 15411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15412 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 15412 schema -struct<> --- !query 15412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15413 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 15413 schema -struct<> --- !query 15413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15414 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 15414 schema -struct<> --- !query 15414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15415 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 15415 schema -struct<> --- !query 15415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15416 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 15416 schema -struct<> --- !query 15416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15417 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 15417 schema -struct<> --- !query 15417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15418 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 15418 schema -struct<> --- !query 15418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15419 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15419 schema -struct<> --- !query 15419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15420 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15420 schema -struct<> --- !query 15420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15421 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 15421 schema -struct<> --- !query 15421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15422 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 15422 schema -struct<> --- !query 15422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15423 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 15423 schema -struct<> --- !query 15423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15424 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 15424 schema -struct<> --- !query 15424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15425 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 15425 schema -struct<> --- !query 15425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15426 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 15426 schema -struct<> --- !query 15426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15427 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 15427 schema -struct<> --- !query 15427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15428 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 15428 schema -struct<> --- !query 15428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15429 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 15429 schema -struct<> --- !query 15429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15430 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 15430 schema -struct<> --- !query 15430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15431 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15431 schema -struct<> --- !query 15431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15432 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15432 schema -struct<> --- !query 15432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15433 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 15433 schema -struct<> --- !query 15433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15434 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 15434 schema -struct<> --- !query 15434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15435 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 15435 schema -struct<> --- !query 15435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15436 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 15436 schema -struct<> --- !query 15436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15437 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 15437 schema -struct<> --- !query 15437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15438 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 15438 schema -struct<> --- !query 15438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15439 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 15439 schema -struct<> --- !query 15439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15440 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 15440 schema -struct<> --- !query 15440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15441 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 15441 schema -struct<> --- !query 15441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15442 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 15442 schema -struct<> --- !query 15442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15443 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15443 schema -struct<> --- !query 15443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15444 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15444 schema -struct<> --- !query 15444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15445 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 15445 schema -struct<> --- !query 15445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15446 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 15446 schema -struct<> --- !query 15446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15447 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 15447 schema -struct<> --- !query 15447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15448 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 15448 schema -struct<> --- !query 15448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15449 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 15449 schema -struct<> --- !query 15449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15450 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 15450 schema -struct<> --- !query 15450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15451 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 15451 schema -struct<> --- !query 15451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15452 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 15452 schema -struct<> --- !query 15452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15453 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 15453 schema -struct<> --- !query 15453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15454 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 15454 schema -struct<> --- !query 15454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15455 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15455 schema -struct<> --- !query 15455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15456 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15456 schema -struct<> --- !query 15456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15457 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 15457 schema -struct<> --- !query 15457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15458 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 15458 schema -struct<> --- !query 15458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15459 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 15459 schema -struct<> --- !query 15459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15460 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 15460 schema -struct<> --- !query 15460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15461 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 15461 schema -struct<> --- !query 15461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15462 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 15462 schema -struct<> --- !query 15462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15463 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 15463 schema -struct<> --- !query 15463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15464 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 15464 schema -struct<> --- !query 15464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15465 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 15465 schema -struct<> --- !query 15465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15466 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 15466 schema -struct<> --- !query 15466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15467 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15467 schema -struct<> --- !query 15467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15468 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15468 schema -struct<> --- !query 15468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15469 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 15469 schema -struct<> --- !query 15469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15470 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 15470 schema -struct<> --- !query 15470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15471 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 15471 schema -struct<> --- !query 15471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15472 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 15472 schema -struct<> --- !query 15472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15473 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 15473 schema -struct<> --- !query 15473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15474 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 15474 schema -struct<> --- !query 15474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15475 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 15475 schema -struct<> --- !query 15475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15476 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 15476 schema -struct<> --- !query 15476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15477 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 15477 schema -struct<> --- !query 15477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15478 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 15478 schema -struct<> --- !query 15478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15479 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15479 schema -struct<> --- !query 15479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15480 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15480 schema -struct<> --- !query 15480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15481 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 15481 schema -struct<> --- !query 15481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15482 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 15482 schema -struct<> --- !query 15482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15483 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 15483 schema -struct<> --- !query 15483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15484 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 15484 schema -struct<> --- !query 15484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15485 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 15485 schema -struct<> --- !query 15485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15486 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 15486 schema -struct<> --- !query 15486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15487 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 15487 schema -struct<> --- !query 15487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15488 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 15488 schema -struct<> --- !query 15488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15489 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 15489 schema -struct<> --- !query 15489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15490 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 15490 schema -struct<> --- !query 15490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15491 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15491 schema -struct<> --- !query 15491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15492 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15492 schema -struct<> --- !query 15492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15493 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 15493 schema -struct<> --- !query 15493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15494 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 15494 schema -struct<> --- !query 15494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15495 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 15495 schema -struct<> --- !query 15495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15496 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 15496 schema -struct<> --- !query 15496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15497 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 15497 schema -struct<> --- !query 15497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15498 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 15498 schema -struct<> --- !query 15498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15499 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 15499 schema -struct<> --- !query 15499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15500 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 15500 schema -struct<> --- !query 15500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15501 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 15501 schema -struct<> --- !query 15501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15502 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 15502 schema -struct<> --- !query 15502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15503 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15503 schema -struct<> --- !query 15503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15504 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15504 schema -struct<> --- !query 15504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15505 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 15505 schema -struct<> --- !query 15505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 15506 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 15506 schema -struct<> --- !query 15506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 15507 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 15507 schema -struct<> --- !query 15507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 15508 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 15508 schema -struct<> --- !query 15508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 15509 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 15509 schema -struct<> --- !query 15509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 15510 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 15510 schema -struct<> --- !query 15510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 15511 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 15511 schema -struct<> --- !query 15511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 15512 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 15512 schema -struct> --- !query 15512 output -{[B@1148cf25:"2017-12-11 09:30:00",[B@2af64863:"2"} - - --- !query 15513 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 15513 schema -struct<> --- !query 15513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 15514 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 15514 schema -struct<> --- !query 15514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 15515 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15515 schema -struct> --- !query 15515 output -{[B@24c6d6ac:2017-12-12 09:30:00.0,[B@7d91f23b:2017-12-11 09:30:00.0} - - --- !query 15516 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15516 schema -struct> --- !query 15516 output -{[B@430f5757:2017-12-11 09:30:00.0,[B@658a12d6:2017-12-12 00:00:00.0} - - --- !query 15517 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 15517 schema -struct<> --- !query 15517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15518 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 15518 schema -struct<> --- !query 15518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15519 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 15519 schema -struct<> --- !query 15519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15520 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 15520 schema -struct<> --- !query 15520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15521 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 15521 schema -struct<> --- !query 15521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15522 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 15522 schema -struct<> --- !query 15522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15523 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 15523 schema -struct<> --- !query 15523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15524 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 15524 schema -struct<> --- !query 15524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15525 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 15525 schema -struct<> --- !query 15525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15526 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 15526 schema -struct<> --- !query 15526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15527 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15527 schema -struct<> --- !query 15527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15528 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15528 schema -struct<> --- !query 15528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15529 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 15529 schema -struct<> --- !query 15529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15530 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 15530 schema -struct<> --- !query 15530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15531 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 15531 schema -struct<> --- !query 15531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15532 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 15532 schema -struct<> --- !query 15532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15533 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 15533 schema -struct<> --- !query 15533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15534 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 15534 schema -struct<> --- !query 15534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15535 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 15535 schema -struct<> --- !query 15535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15536 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 15536 schema -struct<> --- !query 15536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15537 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 15537 schema -struct<> --- !query 15537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15538 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 15538 schema -struct<> --- !query 15538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15539 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15539 schema -struct<> --- !query 15539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15540 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15540 schema -struct<> --- !query 15540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15541 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 15541 schema -struct<> --- !query 15541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15542 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 15542 schema -struct<> --- !query 15542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15543 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 15543 schema -struct<> --- !query 15543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15544 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 15544 schema -struct<> --- !query 15544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15545 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 15545 schema -struct<> --- !query 15545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15546 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 15546 schema -struct<> --- !query 15546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15547 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 15547 schema -struct<> --- !query 15547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15548 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 15548 schema -struct<> --- !query 15548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15549 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 15549 schema -struct<> --- !query 15549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15550 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 15550 schema -struct<> --- !query 15550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15551 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15551 schema -struct<> --- !query 15551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15552 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15552 schema -struct<> --- !query 15552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15553 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 15553 schema -struct<> --- !query 15553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15554 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 15554 schema -struct<> --- !query 15554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15555 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 15555 schema -struct<> --- !query 15555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15556 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 15556 schema -struct<> --- !query 15556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15557 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 15557 schema -struct<> --- !query 15557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15558 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 15558 schema -struct<> --- !query 15558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15559 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 15559 schema -struct<> --- !query 15559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15560 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 15560 schema -struct<> --- !query 15560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15561 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 15561 schema -struct<> --- !query 15561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15562 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 15562 schema -struct<> --- !query 15562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15563 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15563 schema -struct<> --- !query 15563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15564 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15564 schema -struct<> --- !query 15564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 15565 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 15565 schema -struct<> --- !query 15565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15566 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 15566 schema -struct<> --- !query 15566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15567 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 15567 schema -struct<> --- !query 15567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15568 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 15568 schema -struct<> --- !query 15568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15569 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 15569 schema -struct<> --- !query 15569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15570 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 15570 schema -struct<> --- !query 15570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15571 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 15571 schema -struct<> --- !query 15571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15572 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 15572 schema -struct<> --- !query 15572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15573 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 15573 schema -struct<> --- !query 15573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15574 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 15574 schema -struct<> --- !query 15574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15575 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15575 schema -struct<> --- !query 15575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15576 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15576 schema -struct<> --- !query 15576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 15577 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 15577 schema -struct<> --- !query 15577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15578 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 15578 schema -struct<> --- !query 15578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15579 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 15579 schema -struct<> --- !query 15579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15580 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 15580 schema -struct<> --- !query 15580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15581 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 15581 schema -struct<> --- !query 15581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15582 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 15582 schema -struct<> --- !query 15582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15583 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 15583 schema -struct<> --- !query 15583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15584 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 15584 schema -struct<> --- !query 15584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15585 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 15585 schema -struct<> --- !query 15585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15586 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 15586 schema -struct<> --- !query 15586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15587 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15587 schema -struct<> --- !query 15587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15588 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15588 schema -struct<> --- !query 15588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 15589 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 15589 schema -struct<> --- !query 15589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15590 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 15590 schema -struct<> --- !query 15590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15591 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 15591 schema -struct<> --- !query 15591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15592 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 15592 schema -struct<> --- !query 15592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15593 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 15593 schema -struct<> --- !query 15593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15594 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 15594 schema -struct<> --- !query 15594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15595 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 15595 schema -struct<> --- !query 15595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15596 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 15596 schema -struct<> --- !query 15596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15597 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 15597 schema -struct<> --- !query 15597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15598 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 15598 schema -struct<> --- !query 15598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15599 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15599 schema -struct<> --- !query 15599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15600 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15600 schema -struct<> --- !query 15600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 15601 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 15601 schema -struct<> --- !query 15601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15602 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 15602 schema -struct<> --- !query 15602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15603 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 15603 schema -struct<> --- !query 15603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15604 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 15604 schema -struct<> --- !query 15604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15605 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 15605 schema -struct<> --- !query 15605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15606 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 15606 schema -struct<> --- !query 15606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15607 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 15607 schema -struct<> --- !query 15607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15608 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 15608 schema -struct<> --- !query 15608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15609 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 15609 schema -struct<> --- !query 15609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15610 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 15610 schema -struct<> --- !query 15610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15611 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15611 schema -struct<> --- !query 15611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15612 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15612 schema -struct<> --- !query 15612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 15613 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 15613 schema -struct<> --- !query 15613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15614 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 15614 schema -struct<> --- !query 15614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15615 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 15615 schema -struct<> --- !query 15615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15616 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 15616 schema -struct<> --- !query 15616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15617 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 15617 schema -struct<> --- !query 15617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15618 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 15618 schema -struct<> --- !query 15618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15619 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 15619 schema -struct<> --- !query 15619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15620 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 15620 schema -struct<> --- !query 15620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15621 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 15621 schema -struct<> --- !query 15621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15622 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 15622 schema -struct<> --- !query 15622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15623 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15623 schema -struct<> --- !query 15623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15624 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15624 schema -struct<> --- !query 15624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 15625 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 15625 schema -struct<> --- !query 15625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15626 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 15626 schema -struct<> --- !query 15626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15627 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 15627 schema -struct<> --- !query 15627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15628 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 15628 schema -struct<> --- !query 15628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15629 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 15629 schema -struct<> --- !query 15629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15630 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 15630 schema -struct<> --- !query 15630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15631 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 15631 schema -struct<> --- !query 15631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15632 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 15632 schema -struct<> --- !query 15632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15633 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 15633 schema -struct<> --- !query 15633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15634 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 15634 schema -struct<> --- !query 15634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15635 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15635 schema -struct<> --- !query 15635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15636 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15636 schema -struct<> --- !query 15636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 15637 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 15637 schema -struct<> --- !query 15637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15638 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 15638 schema -struct<> --- !query 15638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15639 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 15639 schema -struct<> --- !query 15639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15640 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 15640 schema -struct<> --- !query 15640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15641 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 15641 schema -struct<> --- !query 15641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15642 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 15642 schema -struct<> --- !query 15642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15643 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 15643 schema -struct<> --- !query 15643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15644 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 15644 schema -struct<> --- !query 15644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15645 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 15645 schema -struct<> --- !query 15645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15646 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 15646 schema -struct<> --- !query 15646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15647 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15647 schema -struct<> --- !query 15647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15648 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15648 schema -struct<> --- !query 15648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 15649 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 15649 schema -struct<> --- !query 15649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 15650 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 15650 schema -struct<> --- !query 15650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 15651 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 15651 schema -struct<> --- !query 15651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 15652 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 15652 schema -struct<> --- !query 15652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 15653 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 15653 schema -struct<> --- !query 15653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 15654 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 15654 schema -struct<> --- !query 15654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 15655 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 15655 schema -struct<> --- !query 15655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 15656 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 15656 schema -struct> --- !query 15656 output -{[B@25ffb6b6:"2017-12-11",[B@4086c558:"2"} - - --- !query 15657 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 15657 schema -struct<> --- !query 15657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 15658 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 15658 schema -struct<> --- !query 15658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 15659 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15659 schema -struct> --- !query 15659 output -{[B@6fbf9a9f:2017-12-11 00:00:00.0,[B@73bbd1d7:2017-12-12 09:30:00.0} - - --- !query 15660 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15660 schema -struct> --- !query 15660 output -{[B@1519ad88:2017-12-12,[B@7f06caf8:2017-12-11} - - --- !query 15661 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 15661 schema -struct<> --- !query 15661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15662 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 15662 schema -struct<> --- !query 15662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15663 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 15663 schema -struct<> --- !query 15663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15664 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 15664 schema -struct<> --- !query 15664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15665 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 15665 schema -struct<> --- !query 15665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15666 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 15666 schema -struct<> --- !query 15666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15667 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 15667 schema -struct<> --- !query 15667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15668 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 15668 schema -struct<> --- !query 15668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15669 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 15669 schema -struct<> --- !query 15669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15670 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 15670 schema -struct<> --- !query 15670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15671 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15671 schema -struct<> --- !query 15671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15672 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15672 schema -struct<> --- !query 15672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 15673 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 15673 schema -struct<> --- !query 15673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15674 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 15674 schema -struct<> --- !query 15674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15675 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 15675 schema -struct<> --- !query 15675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15676 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 15676 schema -struct<> --- !query 15676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15677 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 15677 schema -struct<> --- !query 15677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15678 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 15678 schema -struct<> --- !query 15678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15679 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 15679 schema -struct<> --- !query 15679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15680 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 15680 schema -struct<> --- !query 15680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15681 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 15681 schema -struct<> --- !query 15681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15682 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 15682 schema -struct<> --- !query 15682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15683 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15683 schema -struct<> --- !query 15683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15684 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15684 schema -struct<> --- !query 15684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 15685 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 15685 schema -struct<> --- !query 15685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15686 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 15686 schema -struct<> --- !query 15686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15687 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 15687 schema -struct<> --- !query 15687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15688 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 15688 schema -struct<> --- !query 15688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15689 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 15689 schema -struct<> --- !query 15689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15690 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 15690 schema -struct<> --- !query 15690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15691 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 15691 schema -struct<> --- !query 15691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15692 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 15692 schema -struct<> --- !query 15692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15693 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 15693 schema -struct<> --- !query 15693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15694 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 15694 schema -struct<> --- !query 15694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15695 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15695 schema -struct<> --- !query 15695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15696 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15696 schema -struct<> --- !query 15696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 15697 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 15697 schema -struct<> --- !query 15697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15698 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 15698 schema -struct<> --- !query 15698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15699 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 15699 schema -struct<> --- !query 15699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15700 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 15700 schema -struct<> --- !query 15700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15701 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 15701 schema -struct<> --- !query 15701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15702 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 15702 schema -struct<> --- !query 15702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15703 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 15703 schema -struct<> --- !query 15703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15704 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 15704 schema -struct<> --- !query 15704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15705 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 15705 schema -struct<> --- !query 15705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15706 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 15706 schema -struct<> --- !query 15706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15707 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15707 schema -struct<> --- !query 15707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15708 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15708 schema -struct<> --- !query 15708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15709 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 15709 schema -struct<> --- !query 15709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15710 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 15710 schema -struct<> --- !query 15710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15711 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 15711 schema -struct<> --- !query 15711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15712 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 15712 schema -struct<> --- !query 15712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15713 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 15713 schema -struct<> --- !query 15713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15714 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 15714 schema -struct<> --- !query 15714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15715 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 15715 schema -struct<> --- !query 15715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15716 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 15716 schema -struct<> --- !query 15716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15717 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 15717 schema -struct<> --- !query 15717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15718 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 15718 schema -struct<> --- !query 15718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15719 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15719 schema -struct<> --- !query 15719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15720 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15720 schema -struct<> --- !query 15720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15721 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 15721 schema -struct<> --- !query 15721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15722 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 15722 schema -struct<> --- !query 15722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15723 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 15723 schema -struct<> --- !query 15723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15724 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 15724 schema -struct<> --- !query 15724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15725 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 15725 schema -struct<> --- !query 15725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15726 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 15726 schema -struct<> --- !query 15726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15727 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 15727 schema -struct<> --- !query 15727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15728 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 15728 schema -struct<> --- !query 15728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15729 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 15729 schema -struct<> --- !query 15729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15730 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 15730 schema -struct<> --- !query 15730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15731 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15731 schema -struct<> --- !query 15731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15732 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15732 schema -struct<> --- !query 15732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15733 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 15733 schema -struct<> --- !query 15733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15734 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 15734 schema -struct<> --- !query 15734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15735 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 15735 schema -struct<> --- !query 15735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15736 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 15736 schema -struct<> --- !query 15736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15737 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 15737 schema -struct<> --- !query 15737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15738 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 15738 schema -struct<> --- !query 15738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15739 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 15739 schema -struct<> --- !query 15739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15740 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 15740 schema -struct<> --- !query 15740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15741 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 15741 schema -struct<> --- !query 15741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15742 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 15742 schema -struct<> --- !query 15742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15743 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15743 schema -struct<> --- !query 15743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15744 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15744 schema -struct<> --- !query 15744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15745 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 15745 schema -struct<> --- !query 15745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15746 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 15746 schema -struct<> --- !query 15746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15747 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 15747 schema -struct<> --- !query 15747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15748 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 15748 schema -struct<> --- !query 15748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15749 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 15749 schema -struct<> --- !query 15749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15750 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 15750 schema -struct<> --- !query 15750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15751 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 15751 schema -struct<> --- !query 15751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15752 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 15752 schema -struct<> --- !query 15752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15753 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 15753 schema -struct<> --- !query 15753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15754 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 15754 schema -struct<> --- !query 15754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15755 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15755 schema -struct<> --- !query 15755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15756 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15756 schema -struct<> --- !query 15756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15757 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 15757 schema -struct<> --- !query 15757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15758 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 15758 schema -struct<> --- !query 15758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15759 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 15759 schema -struct<> --- !query 15759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15760 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 15760 schema -struct<> --- !query 15760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15761 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 15761 schema -struct<> --- !query 15761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15762 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 15762 schema -struct<> --- !query 15762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15763 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 15763 schema -struct<> --- !query 15763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15764 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 15764 schema -struct<> --- !query 15764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15765 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 15765 schema -struct<> --- !query 15765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15766 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 15766 schema -struct<> --- !query 15766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15767 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15767 schema -struct<> --- !query 15767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15768 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15768 schema -struct<> --- !query 15768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15769 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 15769 schema -struct<> --- !query 15769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15770 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 15770 schema -struct<> --- !query 15770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15771 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 15771 schema -struct<> --- !query 15771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15772 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 15772 schema -struct<> --- !query 15772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15773 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 15773 schema -struct<> --- !query 15773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15774 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 15774 schema -struct<> --- !query 15774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15775 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 15775 schema -struct<> --- !query 15775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15776 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 15776 schema -struct<> --- !query 15776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15777 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 15777 schema -struct<> --- !query 15777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15778 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 15778 schema -struct<> --- !query 15778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15779 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15779 schema -struct<> --- !query 15779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15780 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15780 schema -struct<> --- !query 15780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15781 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 15781 schema -struct<> --- !query 15781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15782 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 15782 schema -struct<> --- !query 15782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15783 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 15783 schema -struct<> --- !query 15783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15784 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 15784 schema -struct<> --- !query 15784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15785 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 15785 schema -struct<> --- !query 15785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15786 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 15786 schema -struct<> --- !query 15786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15787 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 15787 schema -struct<> --- !query 15787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15788 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 15788 schema -struct<> --- !query 15788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15789 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 15789 schema -struct<> --- !query 15789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15790 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 15790 schema -struct<> --- !query 15790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15791 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15791 schema -struct<> --- !query 15791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15792 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15792 schema -struct<> --- !query 15792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15793 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 15793 schema -struct<> --- !query 15793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15794 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 15794 schema -struct<> --- !query 15794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15795 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 15795 schema -struct<> --- !query 15795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15796 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 15796 schema -struct<> --- !query 15796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15797 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 15797 schema -struct<> --- !query 15797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15798 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 15798 schema -struct<> --- !query 15798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15799 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 15799 schema -struct<> --- !query 15799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15800 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 15800 schema -struct<> --- !query 15800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15801 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 15801 schema -struct<> --- !query 15801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15802 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 15802 schema -struct<> --- !query 15802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15803 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15803 schema -struct<> --- !query 15803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15804 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15804 schema -struct<> --- !query 15804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15805 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 15805 schema -struct> --- !query 15805 output -{true:2} - - --- !query 15806 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 15806 schema -struct> --- !query 15806 output -{true:2} - - --- !query 15807 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 15807 schema -struct> --- !query 15807 output -{true:2} - - --- !query 15808 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 15808 schema -struct> --- !query 15808 output -{true:2} - - --- !query 15809 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 15809 schema -struct> --- !query 15809 output -{true:2.0} - - --- !query 15810 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 15810 schema -struct> --- !query 15810 output -{true:2.0} - - --- !query 15811 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 15811 schema -struct> --- !query 15811 output -{true:2} - - --- !query 15812 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 15812 schema -struct> --- !query 15812 output -{true:"2"} - - --- !query 15813 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 15813 schema -struct<> --- !query 15813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 15814 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 15814 schema -struct<> --- !query 15814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 15815 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15815 schema -struct<> --- !query 15815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 15816 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15816 schema -struct<> --- !query 15816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 15817 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 15817 schema -struct<> --- !query 15817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15818 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 15818 schema -struct<> --- !query 15818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15819 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 15819 schema -struct<> --- !query 15819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15820 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 15820 schema -struct<> --- !query 15820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15821 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 15821 schema -struct<> --- !query 15821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15822 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 15822 schema -struct<> --- !query 15822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15823 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 15823 schema -struct<> --- !query 15823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15824 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 15824 schema -struct<> --- !query 15824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15825 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 15825 schema -struct<> --- !query 15825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15826 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 15826 schema -struct<> --- !query 15826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15827 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15827 schema -struct<> --- !query 15827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15828 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15828 schema -struct<> --- !query 15828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15829 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 15829 schema -struct<> --- !query 15829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15830 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 15830 schema -struct<> --- !query 15830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15831 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 15831 schema -struct<> --- !query 15831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15832 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 15832 schema -struct<> --- !query 15832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15833 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 15833 schema -struct<> --- !query 15833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15834 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 15834 schema -struct<> --- !query 15834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15835 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 15835 schema -struct<> --- !query 15835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15836 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 15836 schema -struct<> --- !query 15836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15837 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 15837 schema -struct<> --- !query 15837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15838 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 15838 schema -struct<> --- !query 15838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15839 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15839 schema -struct<> --- !query 15839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15840 -SELECT map(cast(1 as boolean), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15840 schema -struct<> --- !query 15840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15841 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 15841 schema -struct<> --- !query 15841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15842 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 15842 schema -struct<> --- !query 15842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15843 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 15843 schema -struct<> --- !query 15843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15844 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 15844 schema -struct<> --- !query 15844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15845 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 15845 schema -struct<> --- !query 15845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15846 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 15846 schema -struct<> --- !query 15846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15847 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 15847 schema -struct<> --- !query 15847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15848 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 15848 schema -struct<> --- !query 15848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15849 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 15849 schema -struct<> --- !query 15849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15850 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 15850 schema -struct<> --- !query 15850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15851 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15851 schema -struct<> --- !query 15851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15852 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15852 schema -struct<> --- !query 15852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15853 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 15853 schema -struct<> --- !query 15853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15854 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 15854 schema -struct<> --- !query 15854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15855 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 15855 schema -struct<> --- !query 15855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15856 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 15856 schema -struct<> --- !query 15856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15857 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 15857 schema -struct<> --- !query 15857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15858 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 15858 schema -struct<> --- !query 15858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15859 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 15859 schema -struct<> --- !query 15859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15860 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 15860 schema -struct<> --- !query 15860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15861 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 15861 schema -struct<> --- !query 15861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15862 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 15862 schema -struct<> --- !query 15862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15863 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15863 schema -struct<> --- !query 15863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15864 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15864 schema -struct<> --- !query 15864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15865 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 15865 schema -struct<> --- !query 15865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15866 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 15866 schema -struct<> --- !query 15866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15867 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 15867 schema -struct<> --- !query 15867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15868 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 15868 schema -struct<> --- !query 15868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15869 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 15869 schema -struct<> --- !query 15869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15870 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 15870 schema -struct<> --- !query 15870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15871 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 15871 schema -struct<> --- !query 15871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15872 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 15872 schema -struct<> --- !query 15872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15873 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 15873 schema -struct<> --- !query 15873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15874 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 15874 schema -struct<> --- !query 15874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15875 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15875 schema -struct<> --- !query 15875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15876 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15876 schema -struct<> --- !query 15876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 15877 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 15877 schema -struct<> --- !query 15877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15878 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 15878 schema -struct<> --- !query 15878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15879 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 15879 schema -struct<> --- !query 15879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15880 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 15880 schema -struct<> --- !query 15880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15881 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 15881 schema -struct<> --- !query 15881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15882 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 15882 schema -struct<> --- !query 15882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15883 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 15883 schema -struct<> --- !query 15883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15884 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 15884 schema -struct<> --- !query 15884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15885 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 15885 schema -struct<> --- !query 15885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15886 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 15886 schema -struct<> --- !query 15886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15887 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15887 schema -struct<> --- !query 15887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15888 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15888 schema -struct<> --- !query 15888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 15889 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 15889 schema -struct<> --- !query 15889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15890 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 15890 schema -struct<> --- !query 15890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15891 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 15891 schema -struct<> --- !query 15891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15892 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 15892 schema -struct<> --- !query 15892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15893 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 15893 schema -struct<> --- !query 15893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15894 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 15894 schema -struct<> --- !query 15894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15895 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 15895 schema -struct<> --- !query 15895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15896 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 15896 schema -struct<> --- !query 15896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15897 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 15897 schema -struct<> --- !query 15897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15898 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 15898 schema -struct<> --- !query 15898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15899 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15899 schema -struct<> --- !query 15899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15900 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15900 schema -struct<> --- !query 15900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 15901 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 15901 schema -struct<> --- !query 15901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15902 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 15902 schema -struct<> --- !query 15902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15903 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 15903 schema -struct<> --- !query 15903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15904 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 15904 schema -struct<> --- !query 15904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15905 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 15905 schema -struct<> --- !query 15905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15906 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 15906 schema -struct<> --- !query 15906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15907 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 15907 schema -struct<> --- !query 15907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15908 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 15908 schema -struct<> --- !query 15908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15909 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 15909 schema -struct<> --- !query 15909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15910 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 15910 schema -struct<> --- !query 15910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15911 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15911 schema -struct<> --- !query 15911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15912 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15912 schema -struct<> --- !query 15912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 15913 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 15913 schema -struct<> --- !query 15913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15914 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 15914 schema -struct<> --- !query 15914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15915 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 15915 schema -struct<> --- !query 15915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15916 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 15916 schema -struct<> --- !query 15916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15917 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 15917 schema -struct<> --- !query 15917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15918 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 15918 schema -struct<> --- !query 15918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15919 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 15919 schema -struct<> --- !query 15919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15920 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 15920 schema -struct<> --- !query 15920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15921 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 15921 schema -struct<> --- !query 15921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15922 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 15922 schema -struct<> --- !query 15922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15923 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15923 schema -struct<> --- !query 15923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15924 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15924 schema -struct<> --- !query 15924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 15925 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 15925 schema -struct<> --- !query 15925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15926 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 15926 schema -struct<> --- !query 15926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15927 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 15927 schema -struct<> --- !query 15927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15928 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 15928 schema -struct<> --- !query 15928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15929 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 15929 schema -struct<> --- !query 15929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15930 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 15930 schema -struct<> --- !query 15930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15931 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 15931 schema -struct<> --- !query 15931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15932 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 15932 schema -struct<> --- !query 15932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15933 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 15933 schema -struct<> --- !query 15933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15934 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 15934 schema -struct<> --- !query 15934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15935 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15935 schema -struct<> --- !query 15935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15936 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15936 schema -struct<> --- !query 15936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 15937 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 15937 schema -struct<> --- !query 15937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15938 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 15938 schema -struct<> --- !query 15938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15939 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 15939 schema -struct<> --- !query 15939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15940 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 15940 schema -struct<> --- !query 15940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15941 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 15941 schema -struct<> --- !query 15941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15942 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 15942 schema -struct<> --- !query 15942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15943 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 15943 schema -struct<> --- !query 15943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15944 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 15944 schema -struct<> --- !query 15944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15945 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 15945 schema -struct<> --- !query 15945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15946 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 15946 schema -struct<> --- !query 15946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15947 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15947 schema -struct<> --- !query 15947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15948 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15948 schema -struct<> --- !query 15948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 15949 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 15949 schema -struct> --- !query 15949 output -{true:2} - - --- !query 15950 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 15950 schema -struct> --- !query 15950 output -{true:2} - - --- !query 15951 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 15951 schema -struct> --- !query 15951 output -{true:2} - - --- !query 15952 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 15952 schema -struct> --- !query 15952 output -{true:2} - - --- !query 15953 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 15953 schema -struct> --- !query 15953 output -{true:2.0} - - --- !query 15954 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 15954 schema -struct> --- !query 15954 output -{true:2.0} - - --- !query 15955 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 15955 schema -struct> --- !query 15955 output -{true:2} - - --- !query 15956 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 15956 schema -struct> --- !query 15956 output -{true:"2"} - - --- !query 15957 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 15957 schema -struct<> --- !query 15957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 15958 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 15958 schema -struct<> --- !query 15958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 15959 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15959 schema -struct<> --- !query 15959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 15960 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15960 schema -struct<> --- !query 15960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 15961 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 15961 schema -struct<> --- !query 15961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15962 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 15962 schema -struct<> --- !query 15962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15963 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 15963 schema -struct<> --- !query 15963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15964 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 15964 schema -struct<> --- !query 15964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15965 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 15965 schema -struct<> --- !query 15965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15966 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 15966 schema -struct<> --- !query 15966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15967 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 15967 schema -struct<> --- !query 15967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15968 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 15968 schema -struct<> --- !query 15968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15969 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 15969 schema -struct<> --- !query 15969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15970 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 15970 schema -struct<> --- !query 15970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15971 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15971 schema -struct<> --- !query 15971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15972 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15972 schema -struct<> --- !query 15972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 15973 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 15973 schema -struct<> --- !query 15973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15974 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 15974 schema -struct<> --- !query 15974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15975 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 15975 schema -struct<> --- !query 15975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15976 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 15976 schema -struct<> --- !query 15976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15977 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 15977 schema -struct<> --- !query 15977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15978 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 15978 schema -struct<> --- !query 15978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15979 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 15979 schema -struct<> --- !query 15979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15980 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 15980 schema -struct<> --- !query 15980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15981 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 15981 schema -struct<> --- !query 15981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15982 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 15982 schema -struct<> --- !query 15982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15983 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15983 schema -struct<> --- !query 15983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15984 -SELECT map(cast(1 as boolean), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15984 schema -struct<> --- !query 15984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 15985 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 15985 schema -struct<> --- !query 15985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15986 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 15986 schema -struct<> --- !query 15986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15987 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 15987 schema -struct<> --- !query 15987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15988 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 15988 schema -struct<> --- !query 15988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15989 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 15989 schema -struct<> --- !query 15989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15990 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 15990 schema -struct<> --- !query 15990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15991 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 15991 schema -struct<> --- !query 15991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15992 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 15992 schema -struct<> --- !query 15992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15993 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 15993 schema -struct<> --- !query 15993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15994 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 15994 schema -struct<> --- !query 15994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15995 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 15995 schema -struct<> --- !query 15995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15996 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 15996 schema -struct<> --- !query 15996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 15997 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 15997 schema -struct<> --- !query 15997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15998 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 15998 schema -struct<> --- !query 15998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 15999 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 15999 schema -struct<> --- !query 15999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16000 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 16000 schema -struct<> --- !query 16000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16001 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 16001 schema -struct<> --- !query 16001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16002 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 16002 schema -struct<> --- !query 16002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16003 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 16003 schema -struct<> --- !query 16003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16004 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 16004 schema -struct<> --- !query 16004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16005 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 16005 schema -struct<> --- !query 16005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16006 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 16006 schema -struct<> --- !query 16006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16007 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16007 schema -struct<> --- !query 16007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16008 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16008 schema -struct<> --- !query 16008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16009 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 16009 schema -struct<> --- !query 16009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16010 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 16010 schema -struct<> --- !query 16010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16011 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 16011 schema -struct<> --- !query 16011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16012 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 16012 schema -struct<> --- !query 16012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16013 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 16013 schema -struct<> --- !query 16013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16014 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 16014 schema -struct<> --- !query 16014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16015 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 16015 schema -struct<> --- !query 16015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16016 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 16016 schema -struct<> --- !query 16016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16017 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 16017 schema -struct<> --- !query 16017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16018 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 16018 schema -struct<> --- !query 16018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16019 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16019 schema -struct<> --- !query 16019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16020 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16020 schema -struct<> --- !query 16020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16021 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 16021 schema -struct<> --- !query 16021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16022 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 16022 schema -struct<> --- !query 16022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16023 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 16023 schema -struct<> --- !query 16023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16024 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 16024 schema -struct<> --- !query 16024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16025 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 16025 schema -struct<> --- !query 16025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16026 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 16026 schema -struct<> --- !query 16026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16027 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 16027 schema -struct<> --- !query 16027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16028 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 16028 schema -struct<> --- !query 16028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16029 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 16029 schema -struct<> --- !query 16029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16030 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 16030 schema -struct<> --- !query 16030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16031 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16031 schema -struct<> --- !query 16031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16032 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16032 schema -struct<> --- !query 16032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16033 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 16033 schema -struct<> --- !query 16033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16034 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 16034 schema -struct<> --- !query 16034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16035 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 16035 schema -struct<> --- !query 16035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16036 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 16036 schema -struct<> --- !query 16036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16037 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 16037 schema -struct<> --- !query 16037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16038 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 16038 schema -struct<> --- !query 16038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16039 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 16039 schema -struct<> --- !query 16039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16040 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 16040 schema -struct<> --- !query 16040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16041 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 16041 schema -struct<> --- !query 16041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16042 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 16042 schema -struct<> --- !query 16042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16043 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16043 schema -struct<> --- !query 16043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16044 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16044 schema -struct<> --- !query 16044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16045 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 16045 schema -struct<> --- !query 16045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16046 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 16046 schema -struct<> --- !query 16046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16047 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 16047 schema -struct<> --- !query 16047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16048 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 16048 schema -struct<> --- !query 16048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16049 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 16049 schema -struct<> --- !query 16049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16050 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 16050 schema -struct<> --- !query 16050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16051 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 16051 schema -struct<> --- !query 16051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16052 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 16052 schema -struct<> --- !query 16052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16053 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 16053 schema -struct<> --- !query 16053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16054 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 16054 schema -struct<> --- !query 16054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16055 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16055 schema -struct<> --- !query 16055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16056 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16056 schema -struct<> --- !query 16056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16057 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 16057 schema -struct<> --- !query 16057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16058 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 16058 schema -struct<> --- !query 16058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16059 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 16059 schema -struct<> --- !query 16059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16060 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 16060 schema -struct<> --- !query 16060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16061 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 16061 schema -struct<> --- !query 16061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16062 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 16062 schema -struct<> --- !query 16062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16063 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 16063 schema -struct<> --- !query 16063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16064 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 16064 schema -struct<> --- !query 16064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16065 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 16065 schema -struct<> --- !query 16065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16066 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 16066 schema -struct<> --- !query 16066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16067 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16067 schema -struct<> --- !query 16067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16068 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16068 schema -struct<> --- !query 16068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16069 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 16069 schema -struct<> --- !query 16069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16070 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 16070 schema -struct<> --- !query 16070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16071 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 16071 schema -struct<> --- !query 16071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16072 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 16072 schema -struct<> --- !query 16072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16073 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 16073 schema -struct<> --- !query 16073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16074 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 16074 schema -struct<> --- !query 16074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16075 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 16075 schema -struct<> --- !query 16075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16076 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 16076 schema -struct<> --- !query 16076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16077 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 16077 schema -struct<> --- !query 16077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16078 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 16078 schema -struct<> --- !query 16078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16079 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16079 schema -struct<> --- !query 16079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16080 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16080 schema -struct<> --- !query 16080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16081 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 16081 schema -struct<> --- !query 16081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16082 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 16082 schema -struct<> --- !query 16082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16083 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 16083 schema -struct<> --- !query 16083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16084 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 16084 schema -struct<> --- !query 16084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16085 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 16085 schema -struct<> --- !query 16085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16086 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 16086 schema -struct<> --- !query 16086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16087 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 16087 schema -struct<> --- !query 16087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16088 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 16088 schema -struct<> --- !query 16088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16089 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 16089 schema -struct<> --- !query 16089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16090 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 16090 schema -struct<> --- !query 16090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16091 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16091 schema -struct<> --- !query 16091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16092 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16092 schema -struct<> --- !query 16092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16093 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 16093 schema -struct> --- !query 16093 output -{true:2} - - --- !query 16094 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 16094 schema -struct> --- !query 16094 output -{true:2} - - --- !query 16095 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 16095 schema -struct> --- !query 16095 output -{true:2} - - --- !query 16096 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 16096 schema -struct> --- !query 16096 output -{true:2} - - --- !query 16097 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 16097 schema -struct> --- !query 16097 output -{true:2.0} - - --- !query 16098 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 16098 schema -struct> --- !query 16098 output -{true:2.0} - - --- !query 16099 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 16099 schema -struct> --- !query 16099 output -{true:2} - - --- !query 16100 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 16100 schema -struct> --- !query 16100 output -{true:"2"} - - --- !query 16101 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 16101 schema -struct<> --- !query 16101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 16102 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 16102 schema -struct<> --- !query 16102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 16103 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16103 schema -struct<> --- !query 16103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 16104 -SELECT map(cast(1 as boolean), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16104 schema -struct<> --- !query 16104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 16105 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 16105 schema -struct<> --- !query 16105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16106 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 16106 schema -struct<> --- !query 16106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16107 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 16107 schema -struct<> --- !query 16107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16108 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 16108 schema -struct<> --- !query 16108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16109 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 16109 schema -struct<> --- !query 16109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16110 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 16110 schema -struct<> --- !query 16110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16111 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 16111 schema -struct<> --- !query 16111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16112 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 16112 schema -struct<> --- !query 16112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16113 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 16113 schema -struct<> --- !query 16113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16114 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 16114 schema -struct<> --- !query 16114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16115 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16115 schema -struct<> --- !query 16115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16116 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16116 schema -struct<> --- !query 16116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16117 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 16117 schema -struct<> --- !query 16117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16118 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 16118 schema -struct<> --- !query 16118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16119 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 16119 schema -struct<> --- !query 16119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16120 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 16120 schema -struct<> --- !query 16120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16121 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 16121 schema -struct<> --- !query 16121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16122 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 16122 schema -struct<> --- !query 16122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16123 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 16123 schema -struct<> --- !query 16123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16124 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 16124 schema -struct<> --- !query 16124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS INT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16125 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 16125 schema -struct<> --- !query 16125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16126 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 16126 schema -struct<> --- !query 16126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16127 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16127 schema -struct<> --- !query 16127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16128 -SELECT map(cast(1 as boolean), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16128 schema -struct<> --- !query 16128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16129 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 16129 schema -struct<> --- !query 16129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16130 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 16130 schema -struct<> --- !query 16130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16131 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 16131 schema -struct<> --- !query 16131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16132 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 16132 schema -struct<> --- !query 16132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16133 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 16133 schema -struct<> --- !query 16133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16134 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 16134 schema -struct<> --- !query 16134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16135 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 16135 schema -struct<> --- !query 16135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16136 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 16136 schema -struct<> --- !query 16136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16137 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 16137 schema -struct<> --- !query 16137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16138 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 16138 schema -struct<> --- !query 16138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16139 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16139 schema -struct<> --- !query 16139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16140 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16140 schema -struct<> --- !query 16140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16141 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 16141 schema -struct<> --- !query 16141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16142 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 16142 schema -struct<> --- !query 16142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16143 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 16143 schema -struct<> --- !query 16143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16144 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 16144 schema -struct<> --- !query 16144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16145 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 16145 schema -struct<> --- !query 16145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16146 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 16146 schema -struct<> --- !query 16146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16147 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 16147 schema -struct<> --- !query 16147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16148 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 16148 schema -struct<> --- !query 16148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16149 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 16149 schema -struct<> --- !query 16149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16150 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 16150 schema -struct<> --- !query 16150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16151 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16151 schema -struct<> --- !query 16151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16152 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16152 schema -struct<> --- !query 16152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16153 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 16153 schema -struct<> --- !query 16153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16154 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 16154 schema -struct<> --- !query 16154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16155 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 16155 schema -struct<> --- !query 16155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16156 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 16156 schema -struct<> --- !query 16156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16157 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 16157 schema -struct<> --- !query 16157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16158 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 16158 schema -struct<> --- !query 16158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16159 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 16159 schema -struct<> --- !query 16159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16160 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 16160 schema -struct<> --- !query 16160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16161 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 16161 schema -struct<> --- !query 16161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16162 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 16162 schema -struct<> --- !query 16162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16163 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16163 schema -struct<> --- !query 16163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16164 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16164 schema -struct<> --- !query 16164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16165 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 16165 schema -struct<> --- !query 16165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16166 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 16166 schema -struct<> --- !query 16166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16167 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 16167 schema -struct<> --- !query 16167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16168 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 16168 schema -struct<> --- !query 16168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16169 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 16169 schema -struct<> --- !query 16169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16170 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 16170 schema -struct<> --- !query 16170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16171 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 16171 schema -struct<> --- !query 16171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16172 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 16172 schema -struct<> --- !query 16172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16173 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 16173 schema -struct<> --- !query 16173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16174 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 16174 schema -struct<> --- !query 16174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16175 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16175 schema -struct<> --- !query 16175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16176 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16176 schema -struct<> --- !query 16176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16177 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 16177 schema -struct<> --- !query 16177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16178 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 16178 schema -struct<> --- !query 16178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16179 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 16179 schema -struct<> --- !query 16179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16180 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 16180 schema -struct<> --- !query 16180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16181 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 16181 schema -struct<> --- !query 16181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16182 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 16182 schema -struct<> --- !query 16182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16183 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 16183 schema -struct<> --- !query 16183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16184 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 16184 schema -struct<> --- !query 16184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16185 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 16185 schema -struct<> --- !query 16185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16186 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 16186 schema -struct<> --- !query 16186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16187 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16187 schema -struct<> --- !query 16187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16188 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16188 schema -struct<> --- !query 16188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16189 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 16189 schema -struct<> --- !query 16189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16190 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 16190 schema -struct<> --- !query 16190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16191 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 16191 schema -struct<> --- !query 16191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16192 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 16192 schema -struct<> --- !query 16192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16193 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 16193 schema -struct<> --- !query 16193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16194 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 16194 schema -struct<> --- !query 16194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16195 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 16195 schema -struct<> --- !query 16195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16196 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 16196 schema -struct<> --- !query 16196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16197 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 16197 schema -struct<> --- !query 16197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16198 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 16198 schema -struct<> --- !query 16198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16199 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16199 schema -struct<> --- !query 16199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16200 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16200 schema -struct<> --- !query 16200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16201 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 16201 schema -struct<> --- !query 16201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16202 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 16202 schema -struct<> --- !query 16202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16203 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 16203 schema -struct<> --- !query 16203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16204 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 16204 schema -struct<> --- !query 16204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16205 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 16205 schema -struct<> --- !query 16205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16206 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 16206 schema -struct<> --- !query 16206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16207 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 16207 schema -struct<> --- !query 16207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16208 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 16208 schema -struct<> --- !query 16208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16209 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 16209 schema -struct<> --- !query 16209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16210 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 16210 schema -struct<> --- !query 16210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16211 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16211 schema -struct<> --- !query 16211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16212 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16212 schema -struct<> --- !query 16212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16213 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 16213 schema -struct<> --- !query 16213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16214 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 16214 schema -struct<> --- !query 16214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16215 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 16215 schema -struct<> --- !query 16215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16216 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 16216 schema -struct<> --- !query 16216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16217 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 16217 schema -struct<> --- !query 16217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16218 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 16218 schema -struct<> --- !query 16218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16219 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 16219 schema -struct<> --- !query 16219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16220 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 16220 schema -struct<> --- !query 16220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16221 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 16221 schema -struct<> --- !query 16221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16222 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 16222 schema -struct<> --- !query 16222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16223 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16223 schema -struct<> --- !query 16223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16224 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16224 schema -struct<> --- !query 16224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16225 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 16225 schema -struct<> --- !query 16225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16226 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 16226 schema -struct<> --- !query 16226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16227 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 16227 schema -struct<> --- !query 16227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16228 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 16228 schema -struct<> --- !query 16228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16229 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 16229 schema -struct<> --- !query 16229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16230 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 16230 schema -struct<> --- !query 16230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16231 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 16231 schema -struct<> --- !query 16231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16232 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 16232 schema -struct<> --- !query 16232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16233 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 16233 schema -struct<> --- !query 16233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16234 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 16234 schema -struct<> --- !query 16234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16235 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16235 schema -struct<> --- !query 16235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16236 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16236 schema -struct<> --- !query 16236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16237 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 16237 schema -struct> --- !query 16237 output -{true:2} - - --- !query 16238 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 16238 schema -struct> --- !query 16238 output -{true:2} - - --- !query 16239 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 16239 schema -struct> --- !query 16239 output -{true:2} - - --- !query 16240 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 16240 schema -struct> --- !query 16240 output -{true:2} - - --- !query 16241 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 16241 schema -struct> --- !query 16241 output -{true:2.0} - - --- !query 16242 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 16242 schema -struct> --- !query 16242 output -{true:2.0} - - --- !query 16243 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 16243 schema -struct> --- !query 16243 output -{true:2} - - --- !query 16244 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 16244 schema -struct> --- !query 16244 output -{true:"2"} - - --- !query 16245 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 16245 schema -struct<> --- !query 16245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 16246 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 16246 schema -struct<> --- !query 16246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 16247 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16247 schema -struct<> --- !query 16247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 16248 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16248 schema -struct<> --- !query 16248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 16249 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 16249 schema -struct<> --- !query 16249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16250 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 16250 schema -struct<> --- !query 16250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16251 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 16251 schema -struct<> --- !query 16251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16252 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 16252 schema -struct<> --- !query 16252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16253 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 16253 schema -struct<> --- !query 16253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16254 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 16254 schema -struct<> --- !query 16254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16255 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 16255 schema -struct<> --- !query 16255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16256 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 16256 schema -struct<> --- !query 16256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16257 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 16257 schema -struct<> --- !query 16257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16258 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 16258 schema -struct<> --- !query 16258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16259 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16259 schema -struct<> --- !query 16259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16260 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16260 schema -struct<> --- !query 16260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16261 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 16261 schema -struct<> --- !query 16261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16262 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 16262 schema -struct<> --- !query 16262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16263 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 16263 schema -struct<> --- !query 16263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16264 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 16264 schema -struct<> --- !query 16264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16265 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 16265 schema -struct<> --- !query 16265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16266 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 16266 schema -struct<> --- !query 16266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16267 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 16267 schema -struct<> --- !query 16267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16268 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 16268 schema -struct<> --- !query 16268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16269 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 16269 schema -struct<> --- !query 16269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16270 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 16270 schema -struct<> --- !query 16270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16271 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16271 schema -struct<> --- !query 16271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16272 -SELECT map(cast(1 as boolean), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16272 schema -struct<> --- !query 16272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16273 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 16273 schema -struct<> --- !query 16273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16274 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 16274 schema -struct<> --- !query 16274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16275 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 16275 schema -struct<> --- !query 16275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16276 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 16276 schema -struct<> --- !query 16276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16277 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 16277 schema -struct<> --- !query 16277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16278 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 16278 schema -struct<> --- !query 16278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16279 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 16279 schema -struct<> --- !query 16279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16280 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 16280 schema -struct<> --- !query 16280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16281 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 16281 schema -struct<> --- !query 16281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16282 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 16282 schema -struct<> --- !query 16282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16283 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16283 schema -struct<> --- !query 16283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16284 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16284 schema -struct<> --- !query 16284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16285 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 16285 schema -struct<> --- !query 16285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16286 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 16286 schema -struct<> --- !query 16286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16287 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 16287 schema -struct<> --- !query 16287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16288 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 16288 schema -struct<> --- !query 16288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16289 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 16289 schema -struct<> --- !query 16289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16290 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 16290 schema -struct<> --- !query 16290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16291 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 16291 schema -struct<> --- !query 16291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16292 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 16292 schema -struct<> --- !query 16292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16293 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 16293 schema -struct<> --- !query 16293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16294 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 16294 schema -struct<> --- !query 16294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16295 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16295 schema -struct<> --- !query 16295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16296 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16296 schema -struct<> --- !query 16296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16297 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 16297 schema -struct<> --- !query 16297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16298 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 16298 schema -struct<> --- !query 16298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16299 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 16299 schema -struct<> --- !query 16299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16300 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 16300 schema -struct<> --- !query 16300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16301 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 16301 schema -struct<> --- !query 16301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16302 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 16302 schema -struct<> --- !query 16302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16303 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 16303 schema -struct<> --- !query 16303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16304 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 16304 schema -struct<> --- !query 16304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16305 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 16305 schema -struct<> --- !query 16305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16306 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 16306 schema -struct<> --- !query 16306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16307 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16307 schema -struct<> --- !query 16307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16308 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16308 schema -struct<> --- !query 16308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16309 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 16309 schema -struct<> --- !query 16309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16310 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 16310 schema -struct<> --- !query 16310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16311 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 16311 schema -struct<> --- !query 16311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16312 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 16312 schema -struct<> --- !query 16312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16313 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 16313 schema -struct<> --- !query 16313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16314 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 16314 schema -struct<> --- !query 16314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16315 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 16315 schema -struct<> --- !query 16315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16316 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 16316 schema -struct<> --- !query 16316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16317 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 16317 schema -struct<> --- !query 16317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16318 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 16318 schema -struct<> --- !query 16318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16319 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16319 schema -struct<> --- !query 16319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16320 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16320 schema -struct<> --- !query 16320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16321 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 16321 schema -struct<> --- !query 16321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16322 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 16322 schema -struct<> --- !query 16322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16323 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 16323 schema -struct<> --- !query 16323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16324 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 16324 schema -struct<> --- !query 16324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16325 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 16325 schema -struct<> --- !query 16325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16326 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 16326 schema -struct<> --- !query 16326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16327 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 16327 schema -struct<> --- !query 16327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16328 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 16328 schema -struct<> --- !query 16328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16329 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 16329 schema -struct<> --- !query 16329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16330 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 16330 schema -struct<> --- !query 16330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16331 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16331 schema -struct<> --- !query 16331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16332 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16332 schema -struct<> --- !query 16332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16333 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 16333 schema -struct<> --- !query 16333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16334 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 16334 schema -struct<> --- !query 16334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16335 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 16335 schema -struct<> --- !query 16335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16336 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 16336 schema -struct<> --- !query 16336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16337 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 16337 schema -struct<> --- !query 16337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16338 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 16338 schema -struct<> --- !query 16338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16339 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 16339 schema -struct<> --- !query 16339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16340 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 16340 schema -struct<> --- !query 16340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16341 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 16341 schema -struct<> --- !query 16341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16342 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 16342 schema -struct<> --- !query 16342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16343 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16343 schema -struct<> --- !query 16343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16344 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16344 schema -struct<> --- !query 16344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16345 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 16345 schema -struct<> --- !query 16345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16346 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 16346 schema -struct<> --- !query 16346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16347 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 16347 schema -struct<> --- !query 16347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16348 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 16348 schema -struct<> --- !query 16348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16349 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 16349 schema -struct<> --- !query 16349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16350 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 16350 schema -struct<> --- !query 16350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16351 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 16351 schema -struct<> --- !query 16351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16352 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 16352 schema -struct<> --- !query 16352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16353 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 16353 schema -struct<> --- !query 16353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16354 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 16354 schema -struct<> --- !query 16354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16355 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16355 schema -struct<> --- !query 16355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16356 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16356 schema -struct<> --- !query 16356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16357 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 16357 schema -struct<> --- !query 16357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16358 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 16358 schema -struct<> --- !query 16358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16359 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 16359 schema -struct<> --- !query 16359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16360 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 16360 schema -struct<> --- !query 16360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16361 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 16361 schema -struct<> --- !query 16361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16362 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 16362 schema -struct<> --- !query 16362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16363 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 16363 schema -struct<> --- !query 16363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16364 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 16364 schema -struct<> --- !query 16364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16365 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 16365 schema -struct<> --- !query 16365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16366 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 16366 schema -struct<> --- !query 16366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16367 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16367 schema -struct<> --- !query 16367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16368 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16368 schema -struct<> --- !query 16368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16369 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 16369 schema -struct<> --- !query 16369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16370 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 16370 schema -struct<> --- !query 16370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16371 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 16371 schema -struct<> --- !query 16371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16372 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 16372 schema -struct<> --- !query 16372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16373 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 16373 schema -struct<> --- !query 16373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16374 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 16374 schema -struct<> --- !query 16374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16375 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 16375 schema -struct<> --- !query 16375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16376 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 16376 schema -struct<> --- !query 16376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16377 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 16377 schema -struct<> --- !query 16377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16378 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 16378 schema -struct<> --- !query 16378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16379 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16379 schema -struct<> --- !query 16379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16380 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16380 schema -struct<> --- !query 16380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16381 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 16381 schema -struct> --- !query 16381 output -{true:2.0} - - --- !query 16382 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 16382 schema -struct> --- !query 16382 output -{true:2.0} - - --- !query 16383 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 16383 schema -struct> --- !query 16383 output -{true:2.0} - - --- !query 16384 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 16384 schema -struct> --- !query 16384 output -{true:2.0} - - --- !query 16385 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 16385 schema -struct> --- !query 16385 output -{true:2.0} - - --- !query 16386 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 16386 schema -struct> --- !query 16386 output -{true:2.0} - - --- !query 16387 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 16387 schema -struct> --- !query 16387 output -{true:2.0} - - --- !query 16388 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 16388 schema -struct> --- !query 16388 output -{true:"2"} - - --- !query 16389 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 16389 schema -struct<> --- !query 16389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 16390 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 16390 schema -struct<> --- !query 16390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 16391 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16391 schema -struct<> --- !query 16391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 16392 -SELECT map(cast(1 as boolean), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16392 schema -struct<> --- !query 16392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 16393 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 16393 schema -struct<> --- !query 16393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16394 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 16394 schema -struct<> --- !query 16394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16395 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 16395 schema -struct<> --- !query 16395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16396 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 16396 schema -struct<> --- !query 16396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16397 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 16397 schema -struct<> --- !query 16397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16398 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 16398 schema -struct<> --- !query 16398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16399 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 16399 schema -struct<> --- !query 16399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16400 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 16400 schema -struct<> --- !query 16400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16401 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 16401 schema -struct<> --- !query 16401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16402 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 16402 schema -struct<> --- !query 16402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16403 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16403 schema -struct<> --- !query 16403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16404 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16404 schema -struct<> --- !query 16404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16405 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 16405 schema -struct<> --- !query 16405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16406 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 16406 schema -struct<> --- !query 16406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16407 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 16407 schema -struct<> --- !query 16407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16408 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 16408 schema -struct<> --- !query 16408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16409 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 16409 schema -struct<> --- !query 16409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16410 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 16410 schema -struct<> --- !query 16410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16411 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 16411 schema -struct<> --- !query 16411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16412 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 16412 schema -struct<> --- !query 16412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16413 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 16413 schema -struct<> --- !query 16413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16414 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 16414 schema -struct<> --- !query 16414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16415 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16415 schema -struct<> --- !query 16415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16416 -SELECT map(cast(1 as boolean), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16416 schema -struct<> --- !query 16416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16417 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 16417 schema -struct<> --- !query 16417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16418 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 16418 schema -struct<> --- !query 16418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16419 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 16419 schema -struct<> --- !query 16419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16420 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 16420 schema -struct<> --- !query 16420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16421 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 16421 schema -struct<> --- !query 16421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16422 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 16422 schema -struct<> --- !query 16422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16423 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 16423 schema -struct<> --- !query 16423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16424 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 16424 schema -struct<> --- !query 16424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16425 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 16425 schema -struct<> --- !query 16425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16426 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 16426 schema -struct<> --- !query 16426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16427 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16427 schema -struct<> --- !query 16427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16428 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16428 schema -struct<> --- !query 16428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16429 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 16429 schema -struct<> --- !query 16429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16430 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 16430 schema -struct<> --- !query 16430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16431 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 16431 schema -struct<> --- !query 16431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16432 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 16432 schema -struct<> --- !query 16432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16433 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 16433 schema -struct<> --- !query 16433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16434 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 16434 schema -struct<> --- !query 16434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16435 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 16435 schema -struct<> --- !query 16435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16436 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 16436 schema -struct<> --- !query 16436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16437 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 16437 schema -struct<> --- !query 16437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16438 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 16438 schema -struct<> --- !query 16438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16439 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16439 schema -struct<> --- !query 16439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16440 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16440 schema -struct<> --- !query 16440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16441 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 16441 schema -struct<> --- !query 16441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16442 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 16442 schema -struct<> --- !query 16442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16443 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 16443 schema -struct<> --- !query 16443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16444 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 16444 schema -struct<> --- !query 16444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16445 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 16445 schema -struct<> --- !query 16445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16446 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 16446 schema -struct<> --- !query 16446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16447 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 16447 schema -struct<> --- !query 16447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16448 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 16448 schema -struct<> --- !query 16448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16449 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 16449 schema -struct<> --- !query 16449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16450 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 16450 schema -struct<> --- !query 16450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16451 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16451 schema -struct<> --- !query 16451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16452 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16452 schema -struct<> --- !query 16452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16453 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 16453 schema -struct<> --- !query 16453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16454 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 16454 schema -struct<> --- !query 16454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16455 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 16455 schema -struct<> --- !query 16455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16456 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 16456 schema -struct<> --- !query 16456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16457 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 16457 schema -struct<> --- !query 16457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16458 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 16458 schema -struct<> --- !query 16458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16459 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 16459 schema -struct<> --- !query 16459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16460 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 16460 schema -struct<> --- !query 16460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16461 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 16461 schema -struct<> --- !query 16461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16462 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 16462 schema -struct<> --- !query 16462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16463 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16463 schema -struct<> --- !query 16463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16464 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16464 schema -struct<> --- !query 16464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16465 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 16465 schema -struct<> --- !query 16465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16466 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 16466 schema -struct<> --- !query 16466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16467 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 16467 schema -struct<> --- !query 16467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16468 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 16468 schema -struct<> --- !query 16468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16469 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 16469 schema -struct<> --- !query 16469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16470 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 16470 schema -struct<> --- !query 16470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16471 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 16471 schema -struct<> --- !query 16471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16472 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 16472 schema -struct<> --- !query 16472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16473 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 16473 schema -struct<> --- !query 16473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16474 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 16474 schema -struct<> --- !query 16474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16475 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16475 schema -struct<> --- !query 16475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16476 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16476 schema -struct<> --- !query 16476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16477 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 16477 schema -struct<> --- !query 16477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16478 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 16478 schema -struct<> --- !query 16478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16479 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 16479 schema -struct<> --- !query 16479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16480 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 16480 schema -struct<> --- !query 16480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16481 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 16481 schema -struct<> --- !query 16481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16482 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 16482 schema -struct<> --- !query 16482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16483 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 16483 schema -struct<> --- !query 16483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16484 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 16484 schema -struct<> --- !query 16484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16485 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 16485 schema -struct<> --- !query 16485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16486 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 16486 schema -struct<> --- !query 16486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16487 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16487 schema -struct<> --- !query 16487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16488 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16488 schema -struct<> --- !query 16488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16489 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 16489 schema -struct<> --- !query 16489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16490 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 16490 schema -struct<> --- !query 16490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16491 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 16491 schema -struct<> --- !query 16491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16492 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 16492 schema -struct<> --- !query 16492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16493 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 16493 schema -struct<> --- !query 16493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16494 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 16494 schema -struct<> --- !query 16494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16495 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 16495 schema -struct<> --- !query 16495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16496 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 16496 schema -struct<> --- !query 16496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16497 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 16497 schema -struct<> --- !query 16497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16498 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 16498 schema -struct<> --- !query 16498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16499 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16499 schema -struct<> --- !query 16499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16500 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16500 schema -struct<> --- !query 16500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16501 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 16501 schema -struct<> --- !query 16501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16502 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 16502 schema -struct<> --- !query 16502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16503 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 16503 schema -struct<> --- !query 16503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16504 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 16504 schema -struct<> --- !query 16504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16505 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 16505 schema -struct<> --- !query 16505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16506 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 16506 schema -struct<> --- !query 16506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16507 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 16507 schema -struct<> --- !query 16507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16508 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 16508 schema -struct<> --- !query 16508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16509 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 16509 schema -struct<> --- !query 16509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16510 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 16510 schema -struct<> --- !query 16510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16511 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16511 schema -struct<> --- !query 16511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16512 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16512 schema -struct<> --- !query 16512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16513 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 16513 schema -struct<> --- !query 16513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16514 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 16514 schema -struct<> --- !query 16514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16515 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 16515 schema -struct<> --- !query 16515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16516 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 16516 schema -struct<> --- !query 16516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16517 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 16517 schema -struct<> --- !query 16517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16518 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 16518 schema -struct<> --- !query 16518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16519 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 16519 schema -struct<> --- !query 16519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16520 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 16520 schema -struct<> --- !query 16520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16521 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 16521 schema -struct<> --- !query 16521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16522 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 16522 schema -struct<> --- !query 16522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16523 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16523 schema -struct<> --- !query 16523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16524 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16524 schema -struct<> --- !query 16524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16525 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 16525 schema -struct> --- !query 16525 output -{true:2.0} - - --- !query 16526 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 16526 schema -struct> --- !query 16526 output -{true:2.0} - - --- !query 16527 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 16527 schema -struct> --- !query 16527 output -{true:2.0} - - --- !query 16528 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 16528 schema -struct> --- !query 16528 output -{true:2.0} - - --- !query 16529 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 16529 schema -struct> --- !query 16529 output -{true:2.0} - - --- !query 16530 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 16530 schema -struct> --- !query 16530 output -{true:2.0} - - --- !query 16531 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 16531 schema -struct> --- !query 16531 output -{true:2.0} - - --- !query 16532 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 16532 schema -struct> --- !query 16532 output -{true:"2"} - - --- !query 16533 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 16533 schema -struct<> --- !query 16533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 16534 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 16534 schema -struct<> --- !query 16534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 16535 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16535 schema -struct<> --- !query 16535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 16536 -SELECT map(cast(1 as boolean), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16536 schema -struct<> --- !query 16536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 16537 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 16537 schema -struct<> --- !query 16537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16538 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 16538 schema -struct<> --- !query 16538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16539 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 16539 schema -struct<> --- !query 16539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16540 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 16540 schema -struct<> --- !query 16540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16541 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 16541 schema -struct<> --- !query 16541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16542 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 16542 schema -struct<> --- !query 16542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16543 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 16543 schema -struct<> --- !query 16543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16544 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 16544 schema -struct<> --- !query 16544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16545 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 16545 schema -struct<> --- !query 16545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16546 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 16546 schema -struct<> --- !query 16546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16547 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16547 schema -struct<> --- !query 16547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16548 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16548 schema -struct<> --- !query 16548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16549 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 16549 schema -struct<> --- !query 16549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16550 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 16550 schema -struct<> --- !query 16550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16551 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 16551 schema -struct<> --- !query 16551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16552 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 16552 schema -struct<> --- !query 16552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16553 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 16553 schema -struct<> --- !query 16553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16554 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 16554 schema -struct<> --- !query 16554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16555 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 16555 schema -struct<> --- !query 16555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16556 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 16556 schema -struct<> --- !query 16556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16557 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 16557 schema -struct<> --- !query 16557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16558 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 16558 schema -struct<> --- !query 16558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16559 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16559 schema -struct<> --- !query 16559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16560 -SELECT map(cast(1 as boolean), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16560 schema -struct<> --- !query 16560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16561 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 16561 schema -struct<> --- !query 16561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16562 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 16562 schema -struct<> --- !query 16562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16563 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 16563 schema -struct<> --- !query 16563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16564 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 16564 schema -struct<> --- !query 16564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16565 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 16565 schema -struct<> --- !query 16565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16566 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 16566 schema -struct<> --- !query 16566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16567 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 16567 schema -struct<> --- !query 16567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16568 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 16568 schema -struct<> --- !query 16568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16569 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 16569 schema -struct<> --- !query 16569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16570 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 16570 schema -struct<> --- !query 16570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16571 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16571 schema -struct<> --- !query 16571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16572 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16572 schema -struct<> --- !query 16572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16573 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 16573 schema -struct<> --- !query 16573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16574 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 16574 schema -struct<> --- !query 16574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16575 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 16575 schema -struct<> --- !query 16575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16576 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 16576 schema -struct<> --- !query 16576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16577 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 16577 schema -struct<> --- !query 16577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16578 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 16578 schema -struct<> --- !query 16578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16579 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 16579 schema -struct<> --- !query 16579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16580 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 16580 schema -struct<> --- !query 16580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16581 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 16581 schema -struct<> --- !query 16581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16582 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 16582 schema -struct<> --- !query 16582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16583 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16583 schema -struct<> --- !query 16583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16584 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16584 schema -struct<> --- !query 16584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16585 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 16585 schema -struct<> --- !query 16585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16586 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 16586 schema -struct<> --- !query 16586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16587 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 16587 schema -struct<> --- !query 16587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16588 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 16588 schema -struct<> --- !query 16588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16589 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 16589 schema -struct<> --- !query 16589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16590 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 16590 schema -struct<> --- !query 16590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16591 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 16591 schema -struct<> --- !query 16591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16592 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 16592 schema -struct<> --- !query 16592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16593 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 16593 schema -struct<> --- !query 16593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16594 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 16594 schema -struct<> --- !query 16594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16595 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16595 schema -struct<> --- !query 16595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16596 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16596 schema -struct<> --- !query 16596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16597 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 16597 schema -struct<> --- !query 16597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16598 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 16598 schema -struct<> --- !query 16598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16599 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 16599 schema -struct<> --- !query 16599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16600 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 16600 schema -struct<> --- !query 16600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16601 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 16601 schema -struct<> --- !query 16601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16602 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 16602 schema -struct<> --- !query 16602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16603 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 16603 schema -struct<> --- !query 16603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16604 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 16604 schema -struct<> --- !query 16604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16605 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 16605 schema -struct<> --- !query 16605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16606 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 16606 schema -struct<> --- !query 16606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16607 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16607 schema -struct<> --- !query 16607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16608 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16608 schema -struct<> --- !query 16608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16609 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 16609 schema -struct<> --- !query 16609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16610 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 16610 schema -struct<> --- !query 16610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16611 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 16611 schema -struct<> --- !query 16611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16612 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 16612 schema -struct<> --- !query 16612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16613 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 16613 schema -struct<> --- !query 16613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16614 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 16614 schema -struct<> --- !query 16614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16615 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 16615 schema -struct<> --- !query 16615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16616 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 16616 schema -struct<> --- !query 16616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16617 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 16617 schema -struct<> --- !query 16617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16618 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 16618 schema -struct<> --- !query 16618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16619 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16619 schema -struct<> --- !query 16619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16620 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16620 schema -struct<> --- !query 16620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16621 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 16621 schema -struct<> --- !query 16621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16622 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 16622 schema -struct<> --- !query 16622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16623 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 16623 schema -struct<> --- !query 16623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16624 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 16624 schema -struct<> --- !query 16624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16625 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 16625 schema -struct<> --- !query 16625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16626 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 16626 schema -struct<> --- !query 16626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16627 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 16627 schema -struct<> --- !query 16627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16628 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 16628 schema -struct<> --- !query 16628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16629 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 16629 schema -struct<> --- !query 16629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16630 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 16630 schema -struct<> --- !query 16630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16631 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16631 schema -struct<> --- !query 16631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16632 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16632 schema -struct<> --- !query 16632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16633 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 16633 schema -struct<> --- !query 16633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16634 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 16634 schema -struct<> --- !query 16634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16635 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 16635 schema -struct<> --- !query 16635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16636 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 16636 schema -struct<> --- !query 16636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16637 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 16637 schema -struct<> --- !query 16637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16638 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 16638 schema -struct<> --- !query 16638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16639 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 16639 schema -struct<> --- !query 16639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16640 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 16640 schema -struct<> --- !query 16640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16641 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 16641 schema -struct<> --- !query 16641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16642 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 16642 schema -struct<> --- !query 16642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16643 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16643 schema -struct<> --- !query 16643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16644 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16644 schema -struct<> --- !query 16644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16645 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 16645 schema -struct<> --- !query 16645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16646 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 16646 schema -struct<> --- !query 16646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16647 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 16647 schema -struct<> --- !query 16647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16648 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 16648 schema -struct<> --- !query 16648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16649 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 16649 schema -struct<> --- !query 16649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16650 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 16650 schema -struct<> --- !query 16650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16651 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 16651 schema -struct<> --- !query 16651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16652 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 16652 schema -struct<> --- !query 16652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16653 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 16653 schema -struct<> --- !query 16653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16654 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 16654 schema -struct<> --- !query 16654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16655 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16655 schema -struct<> --- !query 16655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16656 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16656 schema -struct<> --- !query 16656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16657 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 16657 schema -struct<> --- !query 16657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16658 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 16658 schema -struct<> --- !query 16658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16659 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 16659 schema -struct<> --- !query 16659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16660 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 16660 schema -struct<> --- !query 16660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16661 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 16661 schema -struct<> --- !query 16661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16662 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 16662 schema -struct<> --- !query 16662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16663 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 16663 schema -struct<> --- !query 16663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16664 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 16664 schema -struct<> --- !query 16664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16665 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 16665 schema -struct<> --- !query 16665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16666 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 16666 schema -struct<> --- !query 16666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16667 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16667 schema -struct<> --- !query 16667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16668 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16668 schema -struct<> --- !query 16668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16669 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 16669 schema -struct> --- !query 16669 output -{true:2} - - --- !query 16670 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 16670 schema -struct> --- !query 16670 output -{true:2} - - --- !query 16671 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 16671 schema -struct> --- !query 16671 output -{true:2} - - --- !query 16672 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 16672 schema -struct> --- !query 16672 output -{true:2} - - --- !query 16673 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 16673 schema -struct> --- !query 16673 output -{true:2.0} - - --- !query 16674 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 16674 schema -struct> --- !query 16674 output -{true:2.0} - - --- !query 16675 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 16675 schema -struct> --- !query 16675 output -{true:2} - - --- !query 16676 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 16676 schema -struct> --- !query 16676 output -{true:"2"} - - --- !query 16677 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 16677 schema -struct<> --- !query 16677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 16678 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 16678 schema -struct<> --- !query 16678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 16679 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16679 schema -struct<> --- !query 16679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 16680 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16680 schema -struct<> --- !query 16680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 16681 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 16681 schema -struct<> --- !query 16681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16682 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 16682 schema -struct<> --- !query 16682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16683 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 16683 schema -struct<> --- !query 16683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16684 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 16684 schema -struct<> --- !query 16684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16685 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 16685 schema -struct<> --- !query 16685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16686 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 16686 schema -struct<> --- !query 16686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16687 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 16687 schema -struct<> --- !query 16687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16688 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 16688 schema -struct<> --- !query 16688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16689 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 16689 schema -struct<> --- !query 16689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16690 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 16690 schema -struct<> --- !query 16690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16691 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16691 schema -struct<> --- !query 16691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16692 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16692 schema -struct<> --- !query 16692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16693 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 16693 schema -struct<> --- !query 16693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16694 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 16694 schema -struct<> --- !query 16694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16695 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 16695 schema -struct<> --- !query 16695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16696 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 16696 schema -struct<> --- !query 16696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16697 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 16697 schema -struct<> --- !query 16697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16698 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 16698 schema -struct<> --- !query 16698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16699 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 16699 schema -struct<> --- !query 16699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16700 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 16700 schema -struct<> --- !query 16700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16701 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 16701 schema -struct<> --- !query 16701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16702 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 16702 schema -struct<> --- !query 16702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16703 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16703 schema -struct<> --- !query 16703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16704 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16704 schema -struct<> --- !query 16704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16705 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 16705 schema -struct<> --- !query 16705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16706 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 16706 schema -struct<> --- !query 16706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16707 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 16707 schema -struct<> --- !query 16707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16708 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 16708 schema -struct<> --- !query 16708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16709 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 16709 schema -struct<> --- !query 16709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16710 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 16710 schema -struct<> --- !query 16710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16711 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 16711 schema -struct<> --- !query 16711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16712 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 16712 schema -struct<> --- !query 16712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16713 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 16713 schema -struct<> --- !query 16713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16714 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 16714 schema -struct<> --- !query 16714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16715 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16715 schema -struct<> --- !query 16715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16716 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16716 schema -struct<> --- !query 16716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16717 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 16717 schema -struct<> --- !query 16717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16718 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 16718 schema -struct<> --- !query 16718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16719 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 16719 schema -struct<> --- !query 16719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16720 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 16720 schema -struct<> --- !query 16720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16721 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 16721 schema -struct<> --- !query 16721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16722 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 16722 schema -struct<> --- !query 16722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16723 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 16723 schema -struct<> --- !query 16723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16724 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 16724 schema -struct<> --- !query 16724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16725 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 16725 schema -struct<> --- !query 16725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16726 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 16726 schema -struct<> --- !query 16726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16727 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16727 schema -struct<> --- !query 16727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16728 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16728 schema -struct<> --- !query 16728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16729 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 16729 schema -struct<> --- !query 16729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16730 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 16730 schema -struct<> --- !query 16730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16731 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 16731 schema -struct<> --- !query 16731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16732 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 16732 schema -struct<> --- !query 16732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16733 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 16733 schema -struct<> --- !query 16733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16734 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 16734 schema -struct<> --- !query 16734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16735 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 16735 schema -struct<> --- !query 16735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16736 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 16736 schema -struct<> --- !query 16736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16737 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 16737 schema -struct<> --- !query 16737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16738 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 16738 schema -struct<> --- !query 16738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16739 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16739 schema -struct<> --- !query 16739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16740 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16740 schema -struct<> --- !query 16740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16741 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 16741 schema -struct<> --- !query 16741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16742 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 16742 schema -struct<> --- !query 16742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16743 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 16743 schema -struct<> --- !query 16743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16744 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 16744 schema -struct<> --- !query 16744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16745 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 16745 schema -struct<> --- !query 16745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16746 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 16746 schema -struct<> --- !query 16746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16747 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 16747 schema -struct<> --- !query 16747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16748 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 16748 schema -struct<> --- !query 16748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16749 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 16749 schema -struct<> --- !query 16749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16750 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 16750 schema -struct<> --- !query 16750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16751 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16751 schema -struct<> --- !query 16751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16752 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16752 schema -struct<> --- !query 16752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16753 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 16753 schema -struct<> --- !query 16753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16754 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 16754 schema -struct<> --- !query 16754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16755 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 16755 schema -struct<> --- !query 16755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16756 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 16756 schema -struct<> --- !query 16756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16757 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 16757 schema -struct<> --- !query 16757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16758 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 16758 schema -struct<> --- !query 16758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16759 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 16759 schema -struct<> --- !query 16759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16760 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 16760 schema -struct<> --- !query 16760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16761 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 16761 schema -struct<> --- !query 16761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16762 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 16762 schema -struct<> --- !query 16762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16763 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16763 schema -struct<> --- !query 16763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16764 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16764 schema -struct<> --- !query 16764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16765 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 16765 schema -struct<> --- !query 16765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16766 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 16766 schema -struct<> --- !query 16766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16767 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 16767 schema -struct<> --- !query 16767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16768 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 16768 schema -struct<> --- !query 16768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16769 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 16769 schema -struct<> --- !query 16769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16770 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 16770 schema -struct<> --- !query 16770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16771 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 16771 schema -struct<> --- !query 16771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16772 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 16772 schema -struct<> --- !query 16772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16773 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 16773 schema -struct<> --- !query 16773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16774 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 16774 schema -struct<> --- !query 16774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16775 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16775 schema -struct<> --- !query 16775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16776 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16776 schema -struct<> --- !query 16776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16777 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 16777 schema -struct<> --- !query 16777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16778 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 16778 schema -struct<> --- !query 16778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16779 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 16779 schema -struct<> --- !query 16779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16780 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 16780 schema -struct<> --- !query 16780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16781 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 16781 schema -struct<> --- !query 16781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16782 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 16782 schema -struct<> --- !query 16782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16783 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 16783 schema -struct<> --- !query 16783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16784 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 16784 schema -struct<> --- !query 16784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16785 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 16785 schema -struct<> --- !query 16785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16786 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 16786 schema -struct<> --- !query 16786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16787 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16787 schema -struct<> --- !query 16787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16788 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16788 schema -struct<> --- !query 16788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16789 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 16789 schema -struct<> --- !query 16789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16790 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 16790 schema -struct<> --- !query 16790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16791 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 16791 schema -struct<> --- !query 16791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16792 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 16792 schema -struct<> --- !query 16792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16793 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 16793 schema -struct<> --- !query 16793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16794 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 16794 schema -struct<> --- !query 16794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16795 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 16795 schema -struct<> --- !query 16795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16796 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 16796 schema -struct<> --- !query 16796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16797 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 16797 schema -struct<> --- !query 16797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16798 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 16798 schema -struct<> --- !query 16798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16799 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16799 schema -struct<> --- !query 16799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16800 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16800 schema -struct<> --- !query 16800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16801 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 16801 schema -struct<> --- !query 16801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16802 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 16802 schema -struct<> --- !query 16802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16803 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 16803 schema -struct<> --- !query 16803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16804 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 16804 schema -struct<> --- !query 16804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16805 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 16805 schema -struct<> --- !query 16805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16806 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 16806 schema -struct<> --- !query 16806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16807 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 16807 schema -struct<> --- !query 16807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16808 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 16808 schema -struct<> --- !query 16808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16809 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 16809 schema -struct<> --- !query 16809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16810 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 16810 schema -struct<> --- !query 16810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16811 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16811 schema -struct<> --- !query 16811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16812 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16812 schema -struct<> --- !query 16812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16813 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 16813 schema -struct> --- !query 16813 output -{true:"2"} - - --- !query 16814 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 16814 schema -struct> --- !query 16814 output -{true:"2"} - - --- !query 16815 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 16815 schema -struct> --- !query 16815 output -{true:"2"} - - --- !query 16816 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 16816 schema -struct> --- !query 16816 output -{true:"2"} - - --- !query 16817 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 16817 schema -struct> --- !query 16817 output -{true:"2.0"} - - --- !query 16818 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 16818 schema -struct> --- !query 16818 output -{true:"2.0"} - - --- !query 16819 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 16819 schema -struct> --- !query 16819 output -{true:"2"} - - --- !query 16820 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 16820 schema -struct> --- !query 16820 output -{true:"2"} - - --- !query 16821 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 16821 schema -struct<> --- !query 16821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 16822 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 16822 schema -struct<> --- !query 16822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 16823 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16823 schema -struct> --- !query 16823 output -{true:"2017-12-12 09:30:00"} - - --- !query 16824 -SELECT map(cast(1 as boolean), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16824 schema -struct> --- !query 16824 output -{true:"2017-12-12"} - - --- !query 16825 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 16825 schema -struct<> --- !query 16825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16826 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 16826 schema -struct<> --- !query 16826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16827 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 16827 schema -struct<> --- !query 16827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16828 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 16828 schema -struct<> --- !query 16828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16829 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 16829 schema -struct<> --- !query 16829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16830 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 16830 schema -struct<> --- !query 16830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16831 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 16831 schema -struct<> --- !query 16831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16832 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 16832 schema -struct<> --- !query 16832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16833 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 16833 schema -struct<> --- !query 16833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16834 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 16834 schema -struct<> --- !query 16834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16835 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16835 schema -struct<> --- !query 16835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16836 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16836 schema -struct<> --- !query 16836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16837 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 16837 schema -struct<> --- !query 16837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16838 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 16838 schema -struct<> --- !query 16838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16839 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 16839 schema -struct<> --- !query 16839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16840 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 16840 schema -struct<> --- !query 16840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16841 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 16841 schema -struct<> --- !query 16841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16842 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 16842 schema -struct<> --- !query 16842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16843 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 16843 schema -struct<> --- !query 16843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16844 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 16844 schema -struct<> --- !query 16844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16845 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 16845 schema -struct<> --- !query 16845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16846 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 16846 schema -struct<> --- !query 16846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16847 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16847 schema -struct<> --- !query 16847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16848 -SELECT map(cast(1 as boolean), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16848 schema -struct<> --- !query 16848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST(1 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16849 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 16849 schema -struct<> --- !query 16849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16850 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 16850 schema -struct<> --- !query 16850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16851 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 16851 schema -struct<> --- !query 16851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16852 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 16852 schema -struct<> --- !query 16852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16853 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 16853 schema -struct<> --- !query 16853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16854 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 16854 schema -struct<> --- !query 16854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16855 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 16855 schema -struct<> --- !query 16855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16856 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 16856 schema -struct<> --- !query 16856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16857 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 16857 schema -struct<> --- !query 16857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16858 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 16858 schema -struct<> --- !query 16858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16859 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16859 schema -struct<> --- !query 16859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16860 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16860 schema -struct<> --- !query 16860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16861 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 16861 schema -struct<> --- !query 16861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16862 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 16862 schema -struct<> --- !query 16862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16863 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 16863 schema -struct<> --- !query 16863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16864 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 16864 schema -struct<> --- !query 16864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16865 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 16865 schema -struct<> --- !query 16865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16866 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 16866 schema -struct<> --- !query 16866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16867 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 16867 schema -struct<> --- !query 16867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16868 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 16868 schema -struct<> --- !query 16868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16869 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 16869 schema -struct<> --- !query 16869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16870 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 16870 schema -struct<> --- !query 16870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16871 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16871 schema -struct<> --- !query 16871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16872 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16872 schema -struct<> --- !query 16872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 16873 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 16873 schema -struct<> --- !query 16873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16874 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 16874 schema -struct<> --- !query 16874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16875 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 16875 schema -struct<> --- !query 16875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16876 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 16876 schema -struct<> --- !query 16876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16877 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 16877 schema -struct<> --- !query 16877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16878 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 16878 schema -struct<> --- !query 16878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16879 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 16879 schema -struct<> --- !query 16879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16880 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 16880 schema -struct<> --- !query 16880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16881 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 16881 schema -struct<> --- !query 16881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16882 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 16882 schema -struct<> --- !query 16882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16883 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16883 schema -struct<> --- !query 16883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16884 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16884 schema -struct<> --- !query 16884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 16885 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 16885 schema -struct<> --- !query 16885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16886 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 16886 schema -struct<> --- !query 16886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16887 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 16887 schema -struct<> --- !query 16887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16888 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 16888 schema -struct<> --- !query 16888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16889 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 16889 schema -struct<> --- !query 16889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16890 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 16890 schema -struct<> --- !query 16890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16891 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 16891 schema -struct<> --- !query 16891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16892 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 16892 schema -struct<> --- !query 16892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16893 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 16893 schema -struct<> --- !query 16893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16894 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 16894 schema -struct<> --- !query 16894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16895 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16895 schema -struct<> --- !query 16895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16896 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16896 schema -struct<> --- !query 16896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 16897 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 16897 schema -struct<> --- !query 16897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16898 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 16898 schema -struct<> --- !query 16898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16899 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 16899 schema -struct<> --- !query 16899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16900 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 16900 schema -struct<> --- !query 16900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16901 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 16901 schema -struct<> --- !query 16901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16902 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 16902 schema -struct<> --- !query 16902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16903 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 16903 schema -struct<> --- !query 16903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16904 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 16904 schema -struct<> --- !query 16904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16905 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 16905 schema -struct<> --- !query 16905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16906 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 16906 schema -struct<> --- !query 16906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16907 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16907 schema -struct<> --- !query 16907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16908 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16908 schema -struct<> --- !query 16908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 16909 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 16909 schema -struct<> --- !query 16909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16910 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 16910 schema -struct<> --- !query 16910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16911 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 16911 schema -struct<> --- !query 16911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16912 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 16912 schema -struct<> --- !query 16912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16913 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 16913 schema -struct<> --- !query 16913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16914 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 16914 schema -struct<> --- !query 16914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16915 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 16915 schema -struct<> --- !query 16915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16916 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 16916 schema -struct<> --- !query 16916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16917 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 16917 schema -struct<> --- !query 16917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16918 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 16918 schema -struct<> --- !query 16918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16919 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16919 schema -struct<> --- !query 16919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16920 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16920 schema -struct<> --- !query 16920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 16921 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 16921 schema -struct<> --- !query 16921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16922 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 16922 schema -struct<> --- !query 16922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16923 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 16923 schema -struct<> --- !query 16923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16924 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 16924 schema -struct<> --- !query 16924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16925 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 16925 schema -struct<> --- !query 16925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16926 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 16926 schema -struct<> --- !query 16926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16927 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 16927 schema -struct<> --- !query 16927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16928 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 16928 schema -struct<> --- !query 16928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16929 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 16929 schema -struct<> --- !query 16929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16930 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 16930 schema -struct<> --- !query 16930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16931 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16931 schema -struct<> --- !query 16931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16932 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16932 schema -struct<> --- !query 16932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 16933 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 16933 schema -struct<> --- !query 16933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16934 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 16934 schema -struct<> --- !query 16934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16935 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 16935 schema -struct<> --- !query 16935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16936 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 16936 schema -struct<> --- !query 16936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16937 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 16937 schema -struct<> --- !query 16937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16938 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 16938 schema -struct<> --- !query 16938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16939 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 16939 schema -struct<> --- !query 16939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16940 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 16940 schema -struct<> --- !query 16940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16941 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 16941 schema -struct<> --- !query 16941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16942 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 16942 schema -struct<> --- !query 16942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16943 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16943 schema -struct<> --- !query 16943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16944 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16944 schema -struct<> --- !query 16944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 16945 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 16945 schema -struct<> --- !query 16945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16946 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 16946 schema -struct<> --- !query 16946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16947 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 16947 schema -struct<> --- !query 16947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16948 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 16948 schema -struct<> --- !query 16948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16949 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 16949 schema -struct<> --- !query 16949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16950 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 16950 schema -struct<> --- !query 16950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16951 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 16951 schema -struct<> --- !query 16951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16952 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 16952 schema -struct<> --- !query 16952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16953 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 16953 schema -struct<> --- !query 16953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16954 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 16954 schema -struct<> --- !query 16954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16955 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16955 schema -struct<> --- !query 16955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16956 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16956 schema -struct<> --- !query 16956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 16957 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 16957 schema -struct<> --- !query 16957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 16958 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 16958 schema -struct<> --- !query 16958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 16959 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 16959 schema -struct<> --- !query 16959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 16960 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 16960 schema -struct<> --- !query 16960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 16961 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 16961 schema -struct<> --- !query 16961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 16962 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 16962 schema -struct<> --- !query 16962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 16963 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 16963 schema -struct<> --- !query 16963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 16964 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 16964 schema -struct<> --- !query 16964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 16965 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 16965 schema -struct> --- !query 16965 output -{true:[B@230bb9ff} - - --- !query 16966 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 16966 schema -struct<> --- !query 16966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 16967 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16967 schema -struct<> --- !query 16967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 16968 -SELECT map(cast(1 as boolean), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16968 schema -struct<> --- !query 16968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 16969 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 16969 schema -struct<> --- !query 16969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16970 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 16970 schema -struct<> --- !query 16970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16971 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 16971 schema -struct<> --- !query 16971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16972 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 16972 schema -struct<> --- !query 16972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16973 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 16973 schema -struct<> --- !query 16973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16974 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 16974 schema -struct<> --- !query 16974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16975 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 16975 schema -struct<> --- !query 16975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16976 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 16976 schema -struct<> --- !query 16976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16977 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 16977 schema -struct<> --- !query 16977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16978 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 16978 schema -struct<> --- !query 16978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16979 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16979 schema -struct<> --- !query 16979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16980 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16980 schema -struct<> --- !query 16980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 16981 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 16981 schema -struct<> --- !query 16981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16982 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 16982 schema -struct<> --- !query 16982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16983 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 16983 schema -struct<> --- !query 16983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16984 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 16984 schema -struct<> --- !query 16984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16985 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 16985 schema -struct<> --- !query 16985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16986 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 16986 schema -struct<> --- !query 16986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16987 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 16987 schema -struct<> --- !query 16987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16988 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 16988 schema -struct<> --- !query 16988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16989 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 16989 schema -struct<> --- !query 16989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16990 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 16990 schema -struct<> --- !query 16990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16991 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 16991 schema -struct<> --- !query 16991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16992 -SELECT map(cast(1 as boolean), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 16992 schema -struct<> --- !query 16992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 16993 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 16993 schema -struct<> --- !query 16993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16994 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 16994 schema -struct<> --- !query 16994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16995 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 16995 schema -struct<> --- !query 16995 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16996 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 16996 schema -struct<> --- !query 16996 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16997 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 16997 schema -struct<> --- !query 16997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16998 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 16998 schema -struct<> --- !query 16998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 16999 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 16999 schema -struct<> --- !query 16999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17000 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 17000 schema -struct<> --- !query 17000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17001 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 17001 schema -struct<> --- !query 17001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17002 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 17002 schema -struct<> --- !query 17002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17003 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17003 schema -struct<> --- !query 17003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17004 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17004 schema -struct<> --- !query 17004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17005 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 17005 schema -struct<> --- !query 17005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17006 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 17006 schema -struct<> --- !query 17006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17007 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 17007 schema -struct<> --- !query 17007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17008 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 17008 schema -struct<> --- !query 17008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17009 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 17009 schema -struct<> --- !query 17009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17010 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 17010 schema -struct<> --- !query 17010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17011 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 17011 schema -struct<> --- !query 17011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17012 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 17012 schema -struct<> --- !query 17012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17013 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 17013 schema -struct<> --- !query 17013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17014 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 17014 schema -struct<> --- !query 17014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17015 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17015 schema -struct<> --- !query 17015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17016 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17016 schema -struct<> --- !query 17016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17017 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 17017 schema -struct<> --- !query 17017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17018 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 17018 schema -struct<> --- !query 17018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17019 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 17019 schema -struct<> --- !query 17019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17020 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 17020 schema -struct<> --- !query 17020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17021 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 17021 schema -struct<> --- !query 17021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17022 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 17022 schema -struct<> --- !query 17022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17023 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 17023 schema -struct<> --- !query 17023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17024 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 17024 schema -struct<> --- !query 17024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17025 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 17025 schema -struct<> --- !query 17025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17026 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 17026 schema -struct<> --- !query 17026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17027 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17027 schema -struct<> --- !query 17027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17028 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17028 schema -struct<> --- !query 17028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17029 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 17029 schema -struct<> --- !query 17029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17030 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 17030 schema -struct<> --- !query 17030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17031 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 17031 schema -struct<> --- !query 17031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17032 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 17032 schema -struct<> --- !query 17032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17033 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 17033 schema -struct<> --- !query 17033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17034 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 17034 schema -struct<> --- !query 17034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17035 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 17035 schema -struct<> --- !query 17035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17036 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 17036 schema -struct<> --- !query 17036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17037 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 17037 schema -struct<> --- !query 17037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17038 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 17038 schema -struct<> --- !query 17038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17039 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17039 schema -struct<> --- !query 17039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17040 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17040 schema -struct<> --- !query 17040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17041 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 17041 schema -struct<> --- !query 17041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17042 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 17042 schema -struct<> --- !query 17042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17043 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 17043 schema -struct<> --- !query 17043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17044 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 17044 schema -struct<> --- !query 17044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17045 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 17045 schema -struct<> --- !query 17045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17046 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 17046 schema -struct<> --- !query 17046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17047 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 17047 schema -struct<> --- !query 17047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17048 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 17048 schema -struct<> --- !query 17048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17049 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 17049 schema -struct<> --- !query 17049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17050 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 17050 schema -struct<> --- !query 17050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17051 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17051 schema -struct<> --- !query 17051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17052 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17052 schema -struct<> --- !query 17052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17053 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 17053 schema -struct<> --- !query 17053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17054 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 17054 schema -struct<> --- !query 17054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17055 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 17055 schema -struct<> --- !query 17055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17056 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 17056 schema -struct<> --- !query 17056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17057 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 17057 schema -struct<> --- !query 17057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17058 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 17058 schema -struct<> --- !query 17058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17059 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 17059 schema -struct<> --- !query 17059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17060 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 17060 schema -struct<> --- !query 17060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17061 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 17061 schema -struct<> --- !query 17061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17062 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 17062 schema -struct<> --- !query 17062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17063 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17063 schema -struct<> --- !query 17063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17064 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17064 schema -struct<> --- !query 17064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17065 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 17065 schema -struct<> --- !query 17065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17066 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 17066 schema -struct<> --- !query 17066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17067 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 17067 schema -struct<> --- !query 17067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17068 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 17068 schema -struct<> --- !query 17068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17069 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 17069 schema -struct<> --- !query 17069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17070 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 17070 schema -struct<> --- !query 17070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17071 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 17071 schema -struct<> --- !query 17071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17072 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 17072 schema -struct<> --- !query 17072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17073 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 17073 schema -struct<> --- !query 17073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17074 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 17074 schema -struct<> --- !query 17074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17075 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17075 schema -struct<> --- !query 17075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17076 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17076 schema -struct<> --- !query 17076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17077 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 17077 schema -struct<> --- !query 17077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17078 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 17078 schema -struct<> --- !query 17078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17079 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 17079 schema -struct<> --- !query 17079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17080 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 17080 schema -struct<> --- !query 17080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17081 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 17081 schema -struct<> --- !query 17081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17082 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 17082 schema -struct<> --- !query 17082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17083 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 17083 schema -struct<> --- !query 17083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17084 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 17084 schema -struct<> --- !query 17084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17085 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 17085 schema -struct<> --- !query 17085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17086 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 17086 schema -struct<> --- !query 17086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17087 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17087 schema -struct<> --- !query 17087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17088 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17088 schema -struct<> --- !query 17088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17089 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 17089 schema -struct<> --- !query 17089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17090 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 17090 schema -struct<> --- !query 17090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17091 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 17091 schema -struct<> --- !query 17091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17092 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 17092 schema -struct<> --- !query 17092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17093 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 17093 schema -struct<> --- !query 17093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17094 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 17094 schema -struct<> --- !query 17094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17095 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 17095 schema -struct<> --- !query 17095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17096 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 17096 schema -struct<> --- !query 17096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17097 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 17097 schema -struct<> --- !query 17097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17098 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 17098 schema -struct<> --- !query 17098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17099 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17099 schema -struct<> --- !query 17099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17100 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17100 schema -struct<> --- !query 17100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17101 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 17101 schema -struct<> --- !query 17101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17102 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 17102 schema -struct<> --- !query 17102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17103 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 17103 schema -struct<> --- !query 17103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17104 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 17104 schema -struct<> --- !query 17104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17105 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 17105 schema -struct<> --- !query 17105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17106 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 17106 schema -struct<> --- !query 17106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17107 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 17107 schema -struct<> --- !query 17107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17108 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 17108 schema -struct<> --- !query 17108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17109 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 17109 schema -struct<> --- !query 17109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17110 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 17110 schema -struct> --- !query 17110 output -{true:true} - - --- !query 17111 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17111 schema -struct<> --- !query 17111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17112 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17112 schema -struct<> --- !query 17112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17113 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 17113 schema -struct<> --- !query 17113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17114 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 17114 schema -struct<> --- !query 17114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17115 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 17115 schema -struct<> --- !query 17115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17116 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 17116 schema -struct<> --- !query 17116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17117 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 17117 schema -struct<> --- !query 17117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17118 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 17118 schema -struct<> --- !query 17118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17119 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 17119 schema -struct<> --- !query 17119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17120 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 17120 schema -struct<> --- !query 17120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17121 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 17121 schema -struct<> --- !query 17121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17122 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 17122 schema -struct<> --- !query 17122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17123 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17123 schema -struct<> --- !query 17123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17124 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17124 schema -struct<> --- !query 17124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17125 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 17125 schema -struct<> --- !query 17125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17126 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 17126 schema -struct<> --- !query 17126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17127 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 17127 schema -struct<> --- !query 17127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17128 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 17128 schema -struct<> --- !query 17128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17129 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 17129 schema -struct<> --- !query 17129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17130 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 17130 schema -struct<> --- !query 17130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17131 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 17131 schema -struct<> --- !query 17131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17132 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 17132 schema -struct<> --- !query 17132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17133 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 17133 schema -struct<> --- !query 17133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17134 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 17134 schema -struct<> --- !query 17134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17135 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17135 schema -struct<> --- !query 17135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17136 -SELECT map(cast(1 as boolean), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17136 schema -struct<> --- !query 17136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17137 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 17137 schema -struct<> --- !query 17137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17138 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 17138 schema -struct<> --- !query 17138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17139 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 17139 schema -struct<> --- !query 17139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17140 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 17140 schema -struct<> --- !query 17140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17141 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 17141 schema -struct<> --- !query 17141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17142 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 17142 schema -struct<> --- !query 17142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17143 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 17143 schema -struct<> --- !query 17143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17144 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 17144 schema -struct<> --- !query 17144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17145 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 17145 schema -struct<> --- !query 17145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17146 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 17146 schema -struct<> --- !query 17146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17147 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17147 schema -struct<> --- !query 17147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17148 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17148 schema -struct<> --- !query 17148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17149 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 17149 schema -struct<> --- !query 17149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17150 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 17150 schema -struct<> --- !query 17150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17151 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 17151 schema -struct<> --- !query 17151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17152 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 17152 schema -struct<> --- !query 17152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17153 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 17153 schema -struct<> --- !query 17153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17154 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 17154 schema -struct<> --- !query 17154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17155 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 17155 schema -struct<> --- !query 17155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17156 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 17156 schema -struct<> --- !query 17156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17157 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 17157 schema -struct<> --- !query 17157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17158 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 17158 schema -struct<> --- !query 17158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17159 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17159 schema -struct<> --- !query 17159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17160 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17160 schema -struct<> --- !query 17160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17161 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 17161 schema -struct<> --- !query 17161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17162 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 17162 schema -struct<> --- !query 17162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17163 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 17163 schema -struct<> --- !query 17163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17164 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 17164 schema -struct<> --- !query 17164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17165 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 17165 schema -struct<> --- !query 17165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17166 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 17166 schema -struct<> --- !query 17166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17167 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 17167 schema -struct<> --- !query 17167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17168 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 17168 schema -struct<> --- !query 17168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17169 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 17169 schema -struct<> --- !query 17169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17170 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 17170 schema -struct<> --- !query 17170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17171 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17171 schema -struct<> --- !query 17171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17172 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17172 schema -struct<> --- !query 17172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17173 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 17173 schema -struct<> --- !query 17173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17174 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 17174 schema -struct<> --- !query 17174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17175 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 17175 schema -struct<> --- !query 17175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17176 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 17176 schema -struct<> --- !query 17176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17177 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 17177 schema -struct<> --- !query 17177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17178 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 17178 schema -struct<> --- !query 17178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17179 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 17179 schema -struct<> --- !query 17179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17180 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 17180 schema -struct<> --- !query 17180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17181 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 17181 schema -struct<> --- !query 17181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17182 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 17182 schema -struct<> --- !query 17182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17183 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17183 schema -struct<> --- !query 17183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17184 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17184 schema -struct<> --- !query 17184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17185 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 17185 schema -struct<> --- !query 17185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17186 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 17186 schema -struct<> --- !query 17186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17187 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 17187 schema -struct<> --- !query 17187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17188 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 17188 schema -struct<> --- !query 17188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17189 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 17189 schema -struct<> --- !query 17189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17190 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 17190 schema -struct<> --- !query 17190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17191 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 17191 schema -struct<> --- !query 17191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17192 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 17192 schema -struct<> --- !query 17192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17193 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 17193 schema -struct<> --- !query 17193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17194 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 17194 schema -struct<> --- !query 17194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17195 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17195 schema -struct<> --- !query 17195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17196 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17196 schema -struct<> --- !query 17196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17197 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 17197 schema -struct<> --- !query 17197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17198 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 17198 schema -struct<> --- !query 17198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17199 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 17199 schema -struct<> --- !query 17199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17200 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 17200 schema -struct<> --- !query 17200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17201 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 17201 schema -struct<> --- !query 17201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17202 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 17202 schema -struct<> --- !query 17202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17203 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 17203 schema -struct<> --- !query 17203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17204 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 17204 schema -struct<> --- !query 17204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17205 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 17205 schema -struct<> --- !query 17205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17206 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 17206 schema -struct<> --- !query 17206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17207 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17207 schema -struct<> --- !query 17207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17208 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17208 schema -struct<> --- !query 17208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17209 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 17209 schema -struct<> --- !query 17209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17210 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 17210 schema -struct<> --- !query 17210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17211 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 17211 schema -struct<> --- !query 17211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17212 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 17212 schema -struct<> --- !query 17212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17213 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 17213 schema -struct<> --- !query 17213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17214 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 17214 schema -struct<> --- !query 17214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17215 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 17215 schema -struct<> --- !query 17215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17216 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 17216 schema -struct<> --- !query 17216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17217 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 17217 schema -struct<> --- !query 17217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17218 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 17218 schema -struct<> --- !query 17218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17219 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17219 schema -struct<> --- !query 17219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17220 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17220 schema -struct<> --- !query 17220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17221 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 17221 schema -struct<> --- !query 17221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17222 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 17222 schema -struct<> --- !query 17222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17223 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 17223 schema -struct<> --- !query 17223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17224 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 17224 schema -struct<> --- !query 17224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17225 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 17225 schema -struct<> --- !query 17225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17226 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 17226 schema -struct<> --- !query 17226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17227 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 17227 schema -struct<> --- !query 17227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17228 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 17228 schema -struct<> --- !query 17228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17229 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 17229 schema -struct<> --- !query 17229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17230 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 17230 schema -struct<> --- !query 17230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17231 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17231 schema -struct<> --- !query 17231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17232 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17232 schema -struct<> --- !query 17232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17233 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 17233 schema -struct<> --- !query 17233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17234 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 17234 schema -struct<> --- !query 17234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17235 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 17235 schema -struct<> --- !query 17235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17236 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 17236 schema -struct<> --- !query 17236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17237 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 17237 schema -struct<> --- !query 17237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17238 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 17238 schema -struct<> --- !query 17238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17239 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 17239 schema -struct<> --- !query 17239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17240 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 17240 schema -struct<> --- !query 17240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17241 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 17241 schema -struct<> --- !query 17241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17242 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 17242 schema -struct<> --- !query 17242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17243 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17243 schema -struct<> --- !query 17243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17244 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17244 schema -struct<> --- !query 17244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17245 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 17245 schema -struct<> --- !query 17245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17246 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 17246 schema -struct<> --- !query 17246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17247 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 17247 schema -struct<> --- !query 17247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17248 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 17248 schema -struct<> --- !query 17248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17249 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 17249 schema -struct<> --- !query 17249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17250 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 17250 schema -struct<> --- !query 17250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17251 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 17251 schema -struct<> --- !query 17251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17252 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 17252 schema -struct> --- !query 17252 output -{true:"2"} - - --- !query 17253 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 17253 schema -struct<> --- !query 17253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17254 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 17254 schema -struct<> --- !query 17254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17255 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17255 schema -struct> --- !query 17255 output -{true:2017-12-12 09:30:00.0} - - --- !query 17256 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17256 schema -struct> --- !query 17256 output -{true:2017-12-12 00:00:00.0} - - --- !query 17257 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 17257 schema -struct<> --- !query 17257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17258 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 17258 schema -struct<> --- !query 17258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17259 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 17259 schema -struct<> --- !query 17259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17260 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 17260 schema -struct<> --- !query 17260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17261 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 17261 schema -struct<> --- !query 17261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17262 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 17262 schema -struct<> --- !query 17262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17263 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 17263 schema -struct<> --- !query 17263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17264 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 17264 schema -struct<> --- !query 17264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17265 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 17265 schema -struct<> --- !query 17265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17266 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 17266 schema -struct<> --- !query 17266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17267 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17267 schema -struct<> --- !query 17267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17268 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17268 schema -struct<> --- !query 17268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17269 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 17269 schema -struct<> --- !query 17269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17270 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 17270 schema -struct<> --- !query 17270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17271 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 17271 schema -struct<> --- !query 17271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17272 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 17272 schema -struct<> --- !query 17272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17273 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 17273 schema -struct<> --- !query 17273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17274 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 17274 schema -struct<> --- !query 17274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17275 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 17275 schema -struct<> --- !query 17275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17276 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 17276 schema -struct<> --- !query 17276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17277 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 17277 schema -struct<> --- !query 17277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17278 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 17278 schema -struct<> --- !query 17278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17279 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17279 schema -struct<> --- !query 17279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17280 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17280 schema -struct<> --- !query 17280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17281 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 17281 schema -struct<> --- !query 17281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17282 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 17282 schema -struct<> --- !query 17282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17283 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 17283 schema -struct<> --- !query 17283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17284 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 17284 schema -struct<> --- !query 17284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17285 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 17285 schema -struct<> --- !query 17285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17286 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 17286 schema -struct<> --- !query 17286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17287 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 17287 schema -struct<> --- !query 17287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17288 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 17288 schema -struct<> --- !query 17288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17289 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 17289 schema -struct<> --- !query 17289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17290 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 17290 schema -struct<> --- !query 17290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17291 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17291 schema -struct<> --- !query 17291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17292 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17292 schema -struct<> --- !query 17292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 17293 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 17293 schema -struct<> --- !query 17293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17294 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 17294 schema -struct<> --- !query 17294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17295 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 17295 schema -struct<> --- !query 17295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17296 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 17296 schema -struct<> --- !query 17296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17297 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 17297 schema -struct<> --- !query 17297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17298 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 17298 schema -struct<> --- !query 17298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17299 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 17299 schema -struct<> --- !query 17299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17300 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 17300 schema -struct<> --- !query 17300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17301 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 17301 schema -struct<> --- !query 17301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17302 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 17302 schema -struct<> --- !query 17302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17303 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17303 schema -struct<> --- !query 17303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17304 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17304 schema -struct<> --- !query 17304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 17305 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 17305 schema -struct<> --- !query 17305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17306 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 17306 schema -struct<> --- !query 17306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17307 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 17307 schema -struct<> --- !query 17307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17308 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 17308 schema -struct<> --- !query 17308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17309 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 17309 schema -struct<> --- !query 17309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17310 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 17310 schema -struct<> --- !query 17310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17311 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 17311 schema -struct<> --- !query 17311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17312 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 17312 schema -struct<> --- !query 17312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17313 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 17313 schema -struct<> --- !query 17313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17314 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 17314 schema -struct<> --- !query 17314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17315 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17315 schema -struct<> --- !query 17315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17316 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17316 schema -struct<> --- !query 17316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 17317 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 17317 schema -struct<> --- !query 17317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17318 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 17318 schema -struct<> --- !query 17318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17319 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 17319 schema -struct<> --- !query 17319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17320 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 17320 schema -struct<> --- !query 17320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17321 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 17321 schema -struct<> --- !query 17321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17322 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 17322 schema -struct<> --- !query 17322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17323 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 17323 schema -struct<> --- !query 17323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17324 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 17324 schema -struct<> --- !query 17324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17325 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 17325 schema -struct<> --- !query 17325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17326 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 17326 schema -struct<> --- !query 17326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17327 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17327 schema -struct<> --- !query 17327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17328 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17328 schema -struct<> --- !query 17328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 17329 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 17329 schema -struct<> --- !query 17329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17330 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 17330 schema -struct<> --- !query 17330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17331 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 17331 schema -struct<> --- !query 17331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17332 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 17332 schema -struct<> --- !query 17332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17333 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 17333 schema -struct<> --- !query 17333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17334 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 17334 schema -struct<> --- !query 17334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17335 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 17335 schema -struct<> --- !query 17335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17336 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 17336 schema -struct<> --- !query 17336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17337 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 17337 schema -struct<> --- !query 17337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17338 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 17338 schema -struct<> --- !query 17338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17339 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17339 schema -struct<> --- !query 17339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17340 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17340 schema -struct<> --- !query 17340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 17341 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 17341 schema -struct<> --- !query 17341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17342 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 17342 schema -struct<> --- !query 17342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17343 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 17343 schema -struct<> --- !query 17343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17344 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 17344 schema -struct<> --- !query 17344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17345 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 17345 schema -struct<> --- !query 17345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17346 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 17346 schema -struct<> --- !query 17346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17347 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 17347 schema -struct<> --- !query 17347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17348 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 17348 schema -struct<> --- !query 17348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17349 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 17349 schema -struct<> --- !query 17349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17350 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 17350 schema -struct<> --- !query 17350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17351 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17351 schema -struct<> --- !query 17351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17352 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17352 schema -struct<> --- !query 17352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 17353 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 17353 schema -struct<> --- !query 17353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17354 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 17354 schema -struct<> --- !query 17354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17355 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 17355 schema -struct<> --- !query 17355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17356 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 17356 schema -struct<> --- !query 17356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17357 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 17357 schema -struct<> --- !query 17357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17358 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 17358 schema -struct<> --- !query 17358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17359 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 17359 schema -struct<> --- !query 17359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17360 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 17360 schema -struct<> --- !query 17360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17361 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 17361 schema -struct<> --- !query 17361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17362 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 17362 schema -struct<> --- !query 17362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17363 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17363 schema -struct<> --- !query 17363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17364 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17364 schema -struct<> --- !query 17364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 17365 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 17365 schema -struct<> --- !query 17365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17366 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 17366 schema -struct<> --- !query 17366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17367 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 17367 schema -struct<> --- !query 17367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17368 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 17368 schema -struct<> --- !query 17368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17369 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 17369 schema -struct<> --- !query 17369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17370 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 17370 schema -struct<> --- !query 17370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17371 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 17371 schema -struct<> --- !query 17371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17372 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 17372 schema -struct<> --- !query 17372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS STRING), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17373 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 17373 schema -struct<> --- !query 17373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17374 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 17374 schema -struct<> --- !query 17374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17375 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17375 schema -struct<> --- !query 17375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17376 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17376 schema -struct<> --- !query 17376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 17377 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 17377 schema -struct<> --- !query 17377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17378 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 17378 schema -struct<> --- !query 17378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17379 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 17379 schema -struct<> --- !query 17379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17380 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 17380 schema -struct<> --- !query 17380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17381 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 17381 schema -struct<> --- !query 17381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17382 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 17382 schema -struct<> --- !query 17382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17383 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 17383 schema -struct<> --- !query 17383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17384 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 17384 schema -struct<> --- !query 17384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17385 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 17385 schema -struct<> --- !query 17385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17386 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 17386 schema -struct<> --- !query 17386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17387 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17387 schema -struct<> --- !query 17387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17388 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17388 schema -struct<> --- !query 17388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 17389 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 17389 schema -struct<> --- !query 17389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 17390 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 17390 schema -struct<> --- !query 17390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 17391 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 17391 schema -struct<> --- !query 17391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 17392 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 17392 schema -struct<> --- !query 17392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 17393 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 17393 schema -struct<> --- !query 17393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 17394 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 17394 schema -struct<> --- !query 17394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 17395 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 17395 schema -struct<> --- !query 17395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 17396 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 17396 schema -struct> --- !query 17396 output -{true:"2"} - - --- !query 17397 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 17397 schema -struct<> --- !query 17397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 17398 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 17398 schema -struct<> --- !query 17398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 17399 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17399 schema -struct> --- !query 17399 output -{true:2017-12-12 09:30:00.0} - - --- !query 17400 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17400 schema -struct> --- !query 17400 output -{true:2017-12-12} - - --- !query 17401 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 17401 schema -struct<> --- !query 17401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17402 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 17402 schema -struct<> --- !query 17402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17403 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 17403 schema -struct<> --- !query 17403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17404 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 17404 schema -struct<> --- !query 17404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17405 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 17405 schema -struct<> --- !query 17405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17406 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 17406 schema -struct<> --- !query 17406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17407 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 17407 schema -struct<> --- !query 17407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17408 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 17408 schema -struct<> --- !query 17408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17409 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 17409 schema -struct<> --- !query 17409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17410 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 17410 schema -struct<> --- !query 17410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17411 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17411 schema -struct<> --- !query 17411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17412 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17412 schema -struct<> --- !query 17412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 17413 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 17413 schema -struct<> --- !query 17413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17414 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 17414 schema -struct<> --- !query 17414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17415 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 17415 schema -struct<> --- !query 17415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17416 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 17416 schema -struct<> --- !query 17416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17417 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 17417 schema -struct<> --- !query 17417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17418 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 17418 schema -struct<> --- !query 17418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17419 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 17419 schema -struct<> --- !query 17419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17420 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 17420 schema -struct<> --- !query 17420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17421 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 17421 schema -struct<> --- !query 17421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17422 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 17422 schema -struct<> --- !query 17422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17423 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17423 schema -struct<> --- !query 17423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17424 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17424 schema -struct<> --- !query 17424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 17425 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 17425 schema -struct<> --- !query 17425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17426 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 17426 schema -struct<> --- !query 17426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17427 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 17427 schema -struct<> --- !query 17427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17428 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 17428 schema -struct<> --- !query 17428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17429 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 17429 schema -struct<> --- !query 17429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17430 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 17430 schema -struct<> --- !query 17430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17431 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 17431 schema -struct<> --- !query 17431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17432 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 17432 schema -struct<> --- !query 17432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17433 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 17433 schema -struct<> --- !query 17433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17434 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 17434 schema -struct<> --- !query 17434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17435 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17435 schema -struct<> --- !query 17435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17436 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17436 schema -struct<> --- !query 17436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17437 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 17437 schema -struct<> --- !query 17437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17438 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 17438 schema -struct<> --- !query 17438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17439 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 17439 schema -struct<> --- !query 17439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17440 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 17440 schema -struct<> --- !query 17440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17441 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 17441 schema -struct<> --- !query 17441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17442 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 17442 schema -struct<> --- !query 17442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17443 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 17443 schema -struct<> --- !query 17443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17444 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 17444 schema -struct<> --- !query 17444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17445 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 17445 schema -struct<> --- !query 17445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17446 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 17446 schema -struct<> --- !query 17446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17447 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17447 schema -struct<> --- !query 17447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17448 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17448 schema -struct<> --- !query 17448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17449 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 17449 schema -struct<> --- !query 17449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17450 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 17450 schema -struct<> --- !query 17450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17451 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 17451 schema -struct<> --- !query 17451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17452 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 17452 schema -struct<> --- !query 17452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17453 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 17453 schema -struct<> --- !query 17453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17454 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 17454 schema -struct<> --- !query 17454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17455 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 17455 schema -struct<> --- !query 17455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17456 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 17456 schema -struct<> --- !query 17456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17457 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 17457 schema -struct<> --- !query 17457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17458 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 17458 schema -struct<> --- !query 17458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17459 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17459 schema -struct<> --- !query 17459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17460 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17460 schema -struct<> --- !query 17460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17461 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 17461 schema -struct<> --- !query 17461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17462 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 17462 schema -struct<> --- !query 17462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17463 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 17463 schema -struct<> --- !query 17463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17464 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 17464 schema -struct<> --- !query 17464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17465 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 17465 schema -struct<> --- !query 17465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17466 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 17466 schema -struct<> --- !query 17466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17467 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 17467 schema -struct<> --- !query 17467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17468 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 17468 schema -struct<> --- !query 17468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17469 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 17469 schema -struct<> --- !query 17469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17470 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 17470 schema -struct<> --- !query 17470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17471 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17471 schema -struct<> --- !query 17471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17472 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17472 schema -struct<> --- !query 17472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17473 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 17473 schema -struct<> --- !query 17473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17474 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 17474 schema -struct<> --- !query 17474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17475 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 17475 schema -struct<> --- !query 17475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17476 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 17476 schema -struct<> --- !query 17476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17477 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 17477 schema -struct<> --- !query 17477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17478 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 17478 schema -struct<> --- !query 17478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17479 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 17479 schema -struct<> --- !query 17479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17480 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 17480 schema -struct<> --- !query 17480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17481 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 17481 schema -struct<> --- !query 17481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17482 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 17482 schema -struct<> --- !query 17482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17483 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17483 schema -struct<> --- !query 17483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17484 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17484 schema -struct<> --- !query 17484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17485 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 17485 schema -struct<> --- !query 17485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17486 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 17486 schema -struct<> --- !query 17486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17487 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 17487 schema -struct<> --- !query 17487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17488 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 17488 schema -struct<> --- !query 17488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17489 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 17489 schema -struct<> --- !query 17489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17490 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 17490 schema -struct<> --- !query 17490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17491 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 17491 schema -struct<> --- !query 17491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17492 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 17492 schema -struct<> --- !query 17492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17493 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 17493 schema -struct<> --- !query 17493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17494 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 17494 schema -struct<> --- !query 17494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17495 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17495 schema -struct<> --- !query 17495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17496 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17496 schema -struct<> --- !query 17496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17497 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 17497 schema -struct<> --- !query 17497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17498 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 17498 schema -struct<> --- !query 17498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17499 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 17499 schema -struct<> --- !query 17499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17500 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 17500 schema -struct<> --- !query 17500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17501 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 17501 schema -struct<> --- !query 17501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17502 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 17502 schema -struct<> --- !query 17502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17503 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 17503 schema -struct<> --- !query 17503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17504 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 17504 schema -struct<> --- !query 17504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17505 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 17505 schema -struct<> --- !query 17505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17506 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 17506 schema -struct<> --- !query 17506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17507 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17507 schema -struct<> --- !query 17507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17508 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17508 schema -struct<> --- !query 17508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17509 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 17509 schema -struct> --- !query 17509 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17510 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 17510 schema -struct> --- !query 17510 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17511 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 17511 schema -struct> --- !query 17511 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17512 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 17512 schema -struct> --- !query 17512 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17513 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 17513 schema -struct> --- !query 17513 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17514 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 17514 schema -struct> --- !query 17514 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17515 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 17515 schema -struct> --- !query 17515 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17516 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 17516 schema -struct> --- !query 17516 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 17517 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 17517 schema -struct<> --- !query 17517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 17518 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 17518 schema -struct<> --- !query 17518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 17519 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17519 schema -struct<> --- !query 17519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 17520 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17520 schema -struct<> --- !query 17520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 17521 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 17521 schema -struct<> --- !query 17521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17522 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 17522 schema -struct<> --- !query 17522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17523 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 17523 schema -struct<> --- !query 17523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17524 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 17524 schema -struct<> --- !query 17524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17525 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 17525 schema -struct<> --- !query 17525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17526 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 17526 schema -struct<> --- !query 17526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17527 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 17527 schema -struct<> --- !query 17527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17528 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 17528 schema -struct<> --- !query 17528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17529 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 17529 schema -struct<> --- !query 17529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17530 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 17530 schema -struct<> --- !query 17530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17531 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17531 schema -struct<> --- !query 17531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17532 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17532 schema -struct<> --- !query 17532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17533 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 17533 schema -struct<> --- !query 17533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17534 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 17534 schema -struct<> --- !query 17534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17535 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 17535 schema -struct<> --- !query 17535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17536 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 17536 schema -struct<> --- !query 17536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17537 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 17537 schema -struct<> --- !query 17537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17538 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 17538 schema -struct<> --- !query 17538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17539 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 17539 schema -struct<> --- !query 17539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17540 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 17540 schema -struct<> --- !query 17540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17541 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 17541 schema -struct<> --- !query 17541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17542 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 17542 schema -struct<> --- !query 17542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17543 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17543 schema -struct<> --- !query 17543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17544 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17544 schema -struct<> --- !query 17544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17545 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 17545 schema -struct> --- !query 17545 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17546 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 17546 schema -struct> --- !query 17546 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17547 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 17547 schema -struct> --- !query 17547 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17548 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 17548 schema -struct> --- !query 17548 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17549 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 17549 schema -struct> --- !query 17549 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17550 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 17550 schema -struct> --- !query 17550 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17551 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 17551 schema -struct> --- !query 17551 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17552 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 17552 schema -struct> --- !query 17552 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 17553 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 17553 schema -struct<> --- !query 17553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 17554 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 17554 schema -struct<> --- !query 17554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 17555 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17555 schema -struct<> --- !query 17555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 17556 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17556 schema -struct<> --- !query 17556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 17557 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 17557 schema -struct> --- !query 17557 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17558 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 17558 schema -struct> --- !query 17558 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17559 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 17559 schema -struct> --- !query 17559 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17560 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 17560 schema -struct> --- !query 17560 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17561 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 17561 schema -struct> --- !query 17561 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17562 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 17562 schema -struct> --- !query 17562 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17563 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 17563 schema -struct> --- !query 17563 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17564 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 17564 schema -struct> --- !query 17564 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 17565 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 17565 schema -struct<> --- !query 17565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 17566 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 17566 schema -struct<> --- !query 17566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 17567 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17567 schema -struct<> --- !query 17567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 17568 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17568 schema -struct<> --- !query 17568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 17569 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 17569 schema -struct<> --- !query 17569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17570 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 17570 schema -struct<> --- !query 17570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17571 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 17571 schema -struct<> --- !query 17571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17572 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 17572 schema -struct<> --- !query 17572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17573 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 17573 schema -struct<> --- !query 17573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17574 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 17574 schema -struct<> --- !query 17574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17575 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 17575 schema -struct<> --- !query 17575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17576 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 17576 schema -struct<> --- !query 17576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17577 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 17577 schema -struct<> --- !query 17577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17578 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 17578 schema -struct<> --- !query 17578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17579 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17579 schema -struct<> --- !query 17579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17580 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17580 schema -struct<> --- !query 17580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17581 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 17581 schema -struct<> --- !query 17581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17582 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 17582 schema -struct<> --- !query 17582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17583 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 17583 schema -struct<> --- !query 17583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17584 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 17584 schema -struct<> --- !query 17584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17585 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 17585 schema -struct<> --- !query 17585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17586 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 17586 schema -struct<> --- !query 17586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17587 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 17587 schema -struct<> --- !query 17587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17588 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 17588 schema -struct<> --- !query 17588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17589 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 17589 schema -struct<> --- !query 17589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17590 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 17590 schema -struct<> --- !query 17590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17591 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17591 schema -struct<> --- !query 17591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17592 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17592 schema -struct<> --- !query 17592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17593 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 17593 schema -struct<> --- !query 17593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17594 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 17594 schema -struct<> --- !query 17594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17595 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 17595 schema -struct<> --- !query 17595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17596 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 17596 schema -struct<> --- !query 17596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17597 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 17597 schema -struct<> --- !query 17597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17598 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 17598 schema -struct<> --- !query 17598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17599 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 17599 schema -struct<> --- !query 17599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17600 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 17600 schema -struct<> --- !query 17600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17601 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 17601 schema -struct<> --- !query 17601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17602 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 17602 schema -struct<> --- !query 17602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17603 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17603 schema -struct<> --- !query 17603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17604 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17604 schema -struct<> --- !query 17604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17605 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 17605 schema -struct<> --- !query 17605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17606 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 17606 schema -struct<> --- !query 17606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17607 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 17607 schema -struct<> --- !query 17607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17608 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 17608 schema -struct<> --- !query 17608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17609 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 17609 schema -struct<> --- !query 17609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17610 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 17610 schema -struct<> --- !query 17610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17611 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 17611 schema -struct<> --- !query 17611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17612 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 17612 schema -struct<> --- !query 17612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17613 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 17613 schema -struct<> --- !query 17613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17614 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 17614 schema -struct<> --- !query 17614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17615 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17615 schema -struct<> --- !query 17615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17616 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17616 schema -struct<> --- !query 17616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17617 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 17617 schema -struct<> --- !query 17617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17618 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 17618 schema -struct<> --- !query 17618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17619 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 17619 schema -struct<> --- !query 17619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17620 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 17620 schema -struct<> --- !query 17620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17621 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 17621 schema -struct<> --- !query 17621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17622 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 17622 schema -struct<> --- !query 17622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17623 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 17623 schema -struct<> --- !query 17623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17624 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 17624 schema -struct<> --- !query 17624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17625 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 17625 schema -struct<> --- !query 17625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17626 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 17626 schema -struct<> --- !query 17626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17627 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17627 schema -struct<> --- !query 17627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17628 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17628 schema -struct<> --- !query 17628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17629 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 17629 schema -struct<> --- !query 17629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17630 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 17630 schema -struct<> --- !query 17630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17631 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 17631 schema -struct<> --- !query 17631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17632 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 17632 schema -struct<> --- !query 17632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17633 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 17633 schema -struct<> --- !query 17633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17634 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 17634 schema -struct<> --- !query 17634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17635 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 17635 schema -struct<> --- !query 17635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17636 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 17636 schema -struct<> --- !query 17636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17637 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 17637 schema -struct<> --- !query 17637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17638 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 17638 schema -struct<> --- !query 17638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17639 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17639 schema -struct<> --- !query 17639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17640 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17640 schema -struct<> --- !query 17640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17641 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 17641 schema -struct<> --- !query 17641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17642 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 17642 schema -struct<> --- !query 17642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17643 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 17643 schema -struct<> --- !query 17643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17644 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 17644 schema -struct<> --- !query 17644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17645 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 17645 schema -struct<> --- !query 17645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17646 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 17646 schema -struct<> --- !query 17646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17647 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 17647 schema -struct<> --- !query 17647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17648 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 17648 schema -struct<> --- !query 17648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17649 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 17649 schema -struct<> --- !query 17649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17650 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 17650 schema -struct<> --- !query 17650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17651 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17651 schema -struct<> --- !query 17651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17652 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17652 schema -struct<> --- !query 17652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17653 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 17653 schema -struct> --- !query 17653 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17654 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 17654 schema -struct> --- !query 17654 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17655 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 17655 schema -struct> --- !query 17655 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17656 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 17656 schema -struct> --- !query 17656 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17657 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 17657 schema -struct> --- !query 17657 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17658 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 17658 schema -struct> --- !query 17658 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17659 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 17659 schema -struct> --- !query 17659 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17660 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 17660 schema -struct> --- !query 17660 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 17661 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 17661 schema -struct<> --- !query 17661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 17662 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 17662 schema -struct<> --- !query 17662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 17663 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17663 schema -struct<> --- !query 17663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 17664 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17664 schema -struct<> --- !query 17664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 17665 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 17665 schema -struct<> --- !query 17665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17666 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 17666 schema -struct<> --- !query 17666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17667 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 17667 schema -struct<> --- !query 17667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17668 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 17668 schema -struct<> --- !query 17668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17669 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 17669 schema -struct<> --- !query 17669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17670 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 17670 schema -struct<> --- !query 17670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17671 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 17671 schema -struct<> --- !query 17671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17672 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 17672 schema -struct<> --- !query 17672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17673 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 17673 schema -struct<> --- !query 17673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17674 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 17674 schema -struct<> --- !query 17674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17675 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17675 schema -struct<> --- !query 17675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17676 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17676 schema -struct<> --- !query 17676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17677 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 17677 schema -struct<> --- !query 17677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17678 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 17678 schema -struct<> --- !query 17678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17679 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 17679 schema -struct<> --- !query 17679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17680 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 17680 schema -struct<> --- !query 17680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17681 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 17681 schema -struct<> --- !query 17681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17682 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 17682 schema -struct<> --- !query 17682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17683 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 17683 schema -struct<> --- !query 17683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17684 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 17684 schema -struct<> --- !query 17684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17685 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 17685 schema -struct<> --- !query 17685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17686 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 17686 schema -struct<> --- !query 17686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17687 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17687 schema -struct<> --- !query 17687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17688 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17688 schema -struct<> --- !query 17688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17689 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 17689 schema -struct> --- !query 17689 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17690 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 17690 schema -struct> --- !query 17690 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17691 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 17691 schema -struct> --- !query 17691 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17692 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 17692 schema -struct> --- !query 17692 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17693 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 17693 schema -struct> --- !query 17693 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17694 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 17694 schema -struct> --- !query 17694 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17695 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 17695 schema -struct> --- !query 17695 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17696 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 17696 schema -struct> --- !query 17696 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 17697 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 17697 schema -struct<> --- !query 17697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 17698 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 17698 schema -struct<> --- !query 17698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 17699 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17699 schema -struct<> --- !query 17699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 17700 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17700 schema -struct<> --- !query 17700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 17701 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 17701 schema -struct> --- !query 17701 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17702 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 17702 schema -struct> --- !query 17702 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17703 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 17703 schema -struct> --- !query 17703 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17704 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 17704 schema -struct> --- !query 17704 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17705 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 17705 schema -struct> --- !query 17705 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17706 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 17706 schema -struct> --- !query 17706 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17707 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 17707 schema -struct> --- !query 17707 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17708 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 17708 schema -struct> --- !query 17708 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 17709 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 17709 schema -struct<> --- !query 17709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 17710 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 17710 schema -struct<> --- !query 17710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 17711 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17711 schema -struct<> --- !query 17711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 17712 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17712 schema -struct<> --- !query 17712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 17713 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 17713 schema -struct<> --- !query 17713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17714 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 17714 schema -struct<> --- !query 17714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17715 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 17715 schema -struct<> --- !query 17715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17716 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 17716 schema -struct<> --- !query 17716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17717 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 17717 schema -struct<> --- !query 17717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17718 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 17718 schema -struct<> --- !query 17718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17719 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 17719 schema -struct<> --- !query 17719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17720 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 17720 schema -struct<> --- !query 17720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17721 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 17721 schema -struct<> --- !query 17721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17722 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 17722 schema -struct<> --- !query 17722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17723 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17723 schema -struct<> --- !query 17723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17724 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17724 schema -struct<> --- !query 17724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17725 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 17725 schema -struct<> --- !query 17725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17726 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 17726 schema -struct<> --- !query 17726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17727 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 17727 schema -struct<> --- !query 17727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17728 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 17728 schema -struct<> --- !query 17728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17729 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 17729 schema -struct<> --- !query 17729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17730 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 17730 schema -struct<> --- !query 17730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17731 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 17731 schema -struct<> --- !query 17731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17732 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 17732 schema -struct<> --- !query 17732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17733 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 17733 schema -struct<> --- !query 17733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17734 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 17734 schema -struct<> --- !query 17734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17735 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17735 schema -struct<> --- !query 17735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17736 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17736 schema -struct<> --- !query 17736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17737 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 17737 schema -struct<> --- !query 17737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17738 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 17738 schema -struct<> --- !query 17738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17739 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 17739 schema -struct<> --- !query 17739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17740 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 17740 schema -struct<> --- !query 17740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17741 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 17741 schema -struct<> --- !query 17741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17742 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 17742 schema -struct<> --- !query 17742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17743 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 17743 schema -struct<> --- !query 17743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17744 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 17744 schema -struct<> --- !query 17744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17745 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 17745 schema -struct<> --- !query 17745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17746 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 17746 schema -struct<> --- !query 17746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17747 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17747 schema -struct<> --- !query 17747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17748 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17748 schema -struct<> --- !query 17748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17749 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 17749 schema -struct<> --- !query 17749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17750 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 17750 schema -struct<> --- !query 17750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17751 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 17751 schema -struct<> --- !query 17751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17752 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 17752 schema -struct<> --- !query 17752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17753 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 17753 schema -struct<> --- !query 17753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17754 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 17754 schema -struct<> --- !query 17754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17755 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 17755 schema -struct<> --- !query 17755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17756 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 17756 schema -struct<> --- !query 17756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17757 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 17757 schema -struct<> --- !query 17757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17758 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 17758 schema -struct<> --- !query 17758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17759 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17759 schema -struct<> --- !query 17759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17760 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17760 schema -struct<> --- !query 17760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17761 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 17761 schema -struct<> --- !query 17761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17762 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 17762 schema -struct<> --- !query 17762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17763 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 17763 schema -struct<> --- !query 17763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17764 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 17764 schema -struct<> --- !query 17764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17765 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 17765 schema -struct<> --- !query 17765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17766 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 17766 schema -struct<> --- !query 17766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17767 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 17767 schema -struct<> --- !query 17767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17768 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 17768 schema -struct<> --- !query 17768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17769 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 17769 schema -struct<> --- !query 17769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17770 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 17770 schema -struct<> --- !query 17770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17771 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17771 schema -struct<> --- !query 17771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17772 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17772 schema -struct<> --- !query 17772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17773 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 17773 schema -struct<> --- !query 17773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17774 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 17774 schema -struct<> --- !query 17774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17775 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 17775 schema -struct<> --- !query 17775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17776 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 17776 schema -struct<> --- !query 17776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17777 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 17777 schema -struct<> --- !query 17777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17778 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 17778 schema -struct<> --- !query 17778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17779 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 17779 schema -struct<> --- !query 17779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17780 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 17780 schema -struct<> --- !query 17780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17781 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 17781 schema -struct<> --- !query 17781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17782 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 17782 schema -struct<> --- !query 17782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17783 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17783 schema -struct<> --- !query 17783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17784 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17784 schema -struct<> --- !query 17784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17785 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 17785 schema -struct<> --- !query 17785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17786 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 17786 schema -struct<> --- !query 17786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17787 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 17787 schema -struct<> --- !query 17787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17788 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 17788 schema -struct<> --- !query 17788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17789 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 17789 schema -struct<> --- !query 17789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17790 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 17790 schema -struct<> --- !query 17790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17791 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 17791 schema -struct<> --- !query 17791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17792 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 17792 schema -struct<> --- !query 17792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17793 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 17793 schema -struct<> --- !query 17793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17794 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 17794 schema -struct<> --- !query 17794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17795 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17795 schema -struct<> --- !query 17795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17796 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17796 schema -struct<> --- !query 17796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17797 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 17797 schema -struct> --- !query 17797 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17798 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 17798 schema -struct> --- !query 17798 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17799 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 17799 schema -struct> --- !query 17799 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17800 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 17800 schema -struct> --- !query 17800 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17801 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 17801 schema -struct> --- !query 17801 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17802 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 17802 schema -struct> --- !query 17802 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17803 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 17803 schema -struct> --- !query 17803 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17804 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 17804 schema -struct> --- !query 17804 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 17805 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 17805 schema -struct<> --- !query 17805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 17806 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 17806 schema -struct<> --- !query 17806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 17807 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17807 schema -struct<> --- !query 17807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 17808 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17808 schema -struct<> --- !query 17808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 17809 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 17809 schema -struct<> --- !query 17809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17810 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 17810 schema -struct<> --- !query 17810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17811 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 17811 schema -struct<> --- !query 17811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17812 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 17812 schema -struct<> --- !query 17812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17813 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 17813 schema -struct<> --- !query 17813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17814 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 17814 schema -struct<> --- !query 17814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17815 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 17815 schema -struct<> --- !query 17815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17816 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 17816 schema -struct<> --- !query 17816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17817 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 17817 schema -struct<> --- !query 17817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17818 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 17818 schema -struct<> --- !query 17818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17819 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17819 schema -struct<> --- !query 17819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17820 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17820 schema -struct<> --- !query 17820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17821 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 17821 schema -struct<> --- !query 17821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17822 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 17822 schema -struct<> --- !query 17822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17823 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 17823 schema -struct<> --- !query 17823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17824 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 17824 schema -struct<> --- !query 17824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17825 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 17825 schema -struct<> --- !query 17825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17826 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 17826 schema -struct<> --- !query 17826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17827 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 17827 schema -struct<> --- !query 17827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17828 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 17828 schema -struct<> --- !query 17828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17829 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 17829 schema -struct<> --- !query 17829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17830 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 17830 schema -struct<> --- !query 17830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17831 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17831 schema -struct<> --- !query 17831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17832 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17832 schema -struct<> --- !query 17832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17833 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 17833 schema -struct> --- !query 17833 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17834 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 17834 schema -struct> --- !query 17834 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17835 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 17835 schema -struct> --- !query 17835 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17836 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 17836 schema -struct> --- !query 17836 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17837 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 17837 schema -struct> --- !query 17837 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17838 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 17838 schema -struct> --- !query 17838 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17839 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 17839 schema -struct> --- !query 17839 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17840 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 17840 schema -struct> --- !query 17840 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 17841 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 17841 schema -struct<> --- !query 17841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 17842 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 17842 schema -struct<> --- !query 17842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 17843 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17843 schema -struct<> --- !query 17843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 17844 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17844 schema -struct<> --- !query 17844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 17845 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 17845 schema -struct> --- !query 17845 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17846 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 17846 schema -struct> --- !query 17846 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17847 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 17847 schema -struct> --- !query 17847 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17848 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 17848 schema -struct> --- !query 17848 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17849 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 17849 schema -struct> --- !query 17849 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17850 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 17850 schema -struct> --- !query 17850 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17851 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 17851 schema -struct> --- !query 17851 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17852 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 17852 schema -struct> --- !query 17852 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 17853 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 17853 schema -struct<> --- !query 17853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 17854 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 17854 schema -struct<> --- !query 17854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 17855 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17855 schema -struct<> --- !query 17855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 17856 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17856 schema -struct<> --- !query 17856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 17857 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 17857 schema -struct<> --- !query 17857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17858 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 17858 schema -struct<> --- !query 17858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17859 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 17859 schema -struct<> --- !query 17859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17860 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 17860 schema -struct<> --- !query 17860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17861 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 17861 schema -struct<> --- !query 17861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17862 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 17862 schema -struct<> --- !query 17862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17863 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 17863 schema -struct<> --- !query 17863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17864 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 17864 schema -struct<> --- !query 17864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17865 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 17865 schema -struct<> --- !query 17865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17866 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 17866 schema -struct<> --- !query 17866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17867 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17867 schema -struct<> --- !query 17867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17868 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17868 schema -struct<> --- !query 17868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 17869 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 17869 schema -struct<> --- !query 17869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17870 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 17870 schema -struct<> --- !query 17870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17871 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 17871 schema -struct<> --- !query 17871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17872 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 17872 schema -struct<> --- !query 17872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17873 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 17873 schema -struct<> --- !query 17873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17874 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 17874 schema -struct<> --- !query 17874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17875 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 17875 schema -struct<> --- !query 17875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17876 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 17876 schema -struct<> --- !query 17876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17877 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 17877 schema -struct<> --- !query 17877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17878 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 17878 schema -struct<> --- !query 17878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17879 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17879 schema -struct<> --- !query 17879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17880 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17880 schema -struct<> --- !query 17880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 17881 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 17881 schema -struct<> --- !query 17881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17882 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 17882 schema -struct<> --- !query 17882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17883 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 17883 schema -struct<> --- !query 17883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17884 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 17884 schema -struct<> --- !query 17884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17885 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 17885 schema -struct<> --- !query 17885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17886 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 17886 schema -struct<> --- !query 17886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17887 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 17887 schema -struct<> --- !query 17887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17888 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 17888 schema -struct<> --- !query 17888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17889 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 17889 schema -struct<> --- !query 17889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17890 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 17890 schema -struct<> --- !query 17890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17891 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17891 schema -struct<> --- !query 17891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17892 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17892 schema -struct<> --- !query 17892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 17893 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 17893 schema -struct<> --- !query 17893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17894 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 17894 schema -struct<> --- !query 17894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17895 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 17895 schema -struct<> --- !query 17895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17896 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 17896 schema -struct<> --- !query 17896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17897 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 17897 schema -struct<> --- !query 17897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17898 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 17898 schema -struct<> --- !query 17898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17899 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 17899 schema -struct<> --- !query 17899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17900 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 17900 schema -struct<> --- !query 17900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17901 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 17901 schema -struct<> --- !query 17901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17902 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 17902 schema -struct<> --- !query 17902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17903 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17903 schema -struct<> --- !query 17903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17904 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17904 schema -struct<> --- !query 17904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 17905 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 17905 schema -struct<> --- !query 17905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17906 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 17906 schema -struct<> --- !query 17906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17907 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 17907 schema -struct<> --- !query 17907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17908 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 17908 schema -struct<> --- !query 17908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17909 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 17909 schema -struct<> --- !query 17909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17910 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 17910 schema -struct<> --- !query 17910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17911 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 17911 schema -struct<> --- !query 17911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17912 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 17912 schema -struct<> --- !query 17912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17913 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 17913 schema -struct<> --- !query 17913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17914 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 17914 schema -struct<> --- !query 17914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17915 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17915 schema -struct<> --- !query 17915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17916 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17916 schema -struct<> --- !query 17916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 17917 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 17917 schema -struct<> --- !query 17917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17918 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 17918 schema -struct<> --- !query 17918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17919 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 17919 schema -struct<> --- !query 17919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17920 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 17920 schema -struct<> --- !query 17920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17921 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 17921 schema -struct<> --- !query 17921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17922 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 17922 schema -struct<> --- !query 17922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17923 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 17923 schema -struct<> --- !query 17923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17924 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 17924 schema -struct<> --- !query 17924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17925 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 17925 schema -struct<> --- !query 17925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17926 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 17926 schema -struct<> --- !query 17926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17927 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17927 schema -struct<> --- !query 17927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17928 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17928 schema -struct<> --- !query 17928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 17929 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 17929 schema -struct<> --- !query 17929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17930 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 17930 schema -struct<> --- !query 17930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17931 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 17931 schema -struct<> --- !query 17931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17932 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 17932 schema -struct<> --- !query 17932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17933 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 17933 schema -struct<> --- !query 17933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17934 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 17934 schema -struct<> --- !query 17934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17935 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 17935 schema -struct<> --- !query 17935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17936 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 17936 schema -struct<> --- !query 17936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17937 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 17937 schema -struct<> --- !query 17937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17938 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 17938 schema -struct<> --- !query 17938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17939 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17939 schema -struct<> --- !query 17939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17940 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17940 schema -struct<> --- !query 17940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 17941 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 17941 schema -struct> --- !query 17941 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17942 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 17942 schema -struct> --- !query 17942 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17943 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 17943 schema -struct> --- !query 17943 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17944 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 17944 schema -struct> --- !query 17944 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17945 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 17945 schema -struct> --- !query 17945 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17946 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 17946 schema -struct> --- !query 17946 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 17947 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 17947 schema -struct> --- !query 17947 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 17948 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 17948 schema -struct> --- !query 17948 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 17949 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 17949 schema -struct<> --- !query 17949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 17950 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 17950 schema -struct<> --- !query 17950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 17951 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17951 schema -struct<> --- !query 17951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 17952 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17952 schema -struct<> --- !query 17952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 17953 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 17953 schema -struct<> --- !query 17953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17954 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 17954 schema -struct<> --- !query 17954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17955 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 17955 schema -struct<> --- !query 17955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17956 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 17956 schema -struct<> --- !query 17956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17957 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 17957 schema -struct<> --- !query 17957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17958 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 17958 schema -struct<> --- !query 17958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17959 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 17959 schema -struct<> --- !query 17959 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17960 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 17960 schema -struct<> --- !query 17960 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17961 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 17961 schema -struct<> --- !query 17961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17962 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 17962 schema -struct<> --- !query 17962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17963 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17963 schema -struct<> --- !query 17963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17964 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17964 schema -struct<> --- !query 17964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 17965 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 17965 schema -struct<> --- !query 17965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17966 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 17966 schema -struct<> --- !query 17966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17967 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 17967 schema -struct<> --- !query 17967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17968 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 17968 schema -struct<> --- !query 17968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17969 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 17969 schema -struct<> --- !query 17969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17970 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 17970 schema -struct<> --- !query 17970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17971 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 17971 schema -struct<> --- !query 17971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17972 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 17972 schema -struct<> --- !query 17972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17973 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 17973 schema -struct<> --- !query 17973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17974 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 17974 schema -struct<> --- !query 17974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17975 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17975 schema -struct<> --- !query 17975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17976 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17976 schema -struct<> --- !query 17976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 17977 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 17977 schema -struct> --- !query 17977 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17978 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 17978 schema -struct> --- !query 17978 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17979 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 17979 schema -struct> --- !query 17979 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17980 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 17980 schema -struct> --- !query 17980 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17981 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 17981 schema -struct> --- !query 17981 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17982 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 17982 schema -struct> --- !query 17982 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 17983 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 17983 schema -struct> --- !query 17983 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 17984 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 17984 schema -struct> --- !query 17984 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 17985 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 17985 schema -struct<> --- !query 17985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 17986 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 17986 schema -struct<> --- !query 17986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 17987 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17987 schema -struct<> --- !query 17987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 17988 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 17988 schema -struct<> --- !query 17988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 17989 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 17989 schema -struct> --- !query 17989 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17990 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 17990 schema -struct> --- !query 17990 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17991 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 17991 schema -struct> --- !query 17991 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17992 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 17992 schema -struct> --- !query 17992 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17993 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 17993 schema -struct> --- !query 17993 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17994 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 17994 schema -struct> --- !query 17994 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 17995 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 17995 schema -struct> --- !query 17995 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 17996 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 17996 schema -struct> --- !query 17996 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 17997 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 17997 schema -struct<> --- !query 17997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 17998 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 17998 schema -struct<> --- !query 17998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 17999 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 17999 schema -struct<> --- !query 17999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 18000 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18000 schema -struct<> --- !query 18000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 18001 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 18001 schema -struct<> --- !query 18001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18002 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 18002 schema -struct<> --- !query 18002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18003 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 18003 schema -struct<> --- !query 18003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18004 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 18004 schema -struct<> --- !query 18004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18005 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 18005 schema -struct<> --- !query 18005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18006 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 18006 schema -struct<> --- !query 18006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18007 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 18007 schema -struct<> --- !query 18007 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18008 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 18008 schema -struct<> --- !query 18008 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18009 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 18009 schema -struct<> --- !query 18009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18010 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 18010 schema -struct<> --- !query 18010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18011 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18011 schema -struct<> --- !query 18011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18012 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18012 schema -struct<> --- !query 18012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18013 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 18013 schema -struct<> --- !query 18013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18014 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 18014 schema -struct<> --- !query 18014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18015 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 18015 schema -struct<> --- !query 18015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18016 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 18016 schema -struct<> --- !query 18016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18017 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 18017 schema -struct<> --- !query 18017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18018 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 18018 schema -struct<> --- !query 18018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18019 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 18019 schema -struct<> --- !query 18019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18020 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 18020 schema -struct<> --- !query 18020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18021 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 18021 schema -struct<> --- !query 18021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18022 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 18022 schema -struct<> --- !query 18022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18023 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18023 schema -struct<> --- !query 18023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18024 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18024 schema -struct<> --- !query 18024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18025 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 18025 schema -struct<> --- !query 18025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18026 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 18026 schema -struct<> --- !query 18026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18027 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 18027 schema -struct<> --- !query 18027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18028 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 18028 schema -struct<> --- !query 18028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18029 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 18029 schema -struct<> --- !query 18029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18030 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 18030 schema -struct<> --- !query 18030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18031 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 18031 schema -struct<> --- !query 18031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18032 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 18032 schema -struct<> --- !query 18032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18033 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 18033 schema -struct<> --- !query 18033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18034 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 18034 schema -struct<> --- !query 18034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18035 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18035 schema -struct<> --- !query 18035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18036 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18036 schema -struct<> --- !query 18036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18037 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 18037 schema -struct<> --- !query 18037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18038 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 18038 schema -struct<> --- !query 18038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18039 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 18039 schema -struct<> --- !query 18039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18040 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 18040 schema -struct<> --- !query 18040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18041 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 18041 schema -struct<> --- !query 18041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18042 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 18042 schema -struct<> --- !query 18042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18043 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 18043 schema -struct<> --- !query 18043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18044 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 18044 schema -struct<> --- !query 18044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18045 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 18045 schema -struct<> --- !query 18045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18046 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 18046 schema -struct<> --- !query 18046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18047 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18047 schema -struct<> --- !query 18047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18048 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18048 schema -struct<> --- !query 18048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18049 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 18049 schema -struct<> --- !query 18049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18050 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 18050 schema -struct<> --- !query 18050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18051 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 18051 schema -struct<> --- !query 18051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18052 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 18052 schema -struct<> --- !query 18052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18053 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 18053 schema -struct<> --- !query 18053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18054 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 18054 schema -struct<> --- !query 18054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18055 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 18055 schema -struct<> --- !query 18055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18056 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 18056 schema -struct<> --- !query 18056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18057 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 18057 schema -struct<> --- !query 18057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18058 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 18058 schema -struct<> --- !query 18058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18059 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18059 schema -struct<> --- !query 18059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18060 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18060 schema -struct<> --- !query 18060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18061 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 18061 schema -struct<> --- !query 18061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18062 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 18062 schema -struct<> --- !query 18062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18063 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 18063 schema -struct<> --- !query 18063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18064 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 18064 schema -struct<> --- !query 18064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18065 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 18065 schema -struct<> --- !query 18065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18066 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 18066 schema -struct<> --- !query 18066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18067 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 18067 schema -struct<> --- !query 18067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18068 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 18068 schema -struct<> --- !query 18068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18069 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 18069 schema -struct<> --- !query 18069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18070 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 18070 schema -struct<> --- !query 18070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18071 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18071 schema -struct<> --- !query 18071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18072 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18072 schema -struct<> --- !query 18072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18073 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 18073 schema -struct<> --- !query 18073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18074 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 18074 schema -struct<> --- !query 18074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18075 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 18075 schema -struct<> --- !query 18075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18076 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 18076 schema -struct<> --- !query 18076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18077 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 18077 schema -struct<> --- !query 18077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18078 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 18078 schema -struct<> --- !query 18078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18079 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 18079 schema -struct<> --- !query 18079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18080 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 18080 schema -struct<> --- !query 18080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18081 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 18081 schema -struct<> --- !query 18081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18082 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 18082 schema -struct<> --- !query 18082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18083 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18083 schema -struct<> --- !query 18083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18084 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18084 schema -struct<> --- !query 18084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18085 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 18085 schema -struct> --- !query 18085 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18086 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 18086 schema -struct> --- !query 18086 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18087 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 18087 schema -struct> --- !query 18087 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18088 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 18088 schema -struct> --- !query 18088 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18089 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 18089 schema -struct> --- !query 18089 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18090 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 18090 schema -struct> --- !query 18090 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18091 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 18091 schema -struct> --- !query 18091 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18092 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 18092 schema -struct> --- !query 18092 output -{"2":"2","2017-12-11 09:30:00":"1.0"} - - --- !query 18093 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 18093 schema -struct<> --- !query 18093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 18094 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 18094 schema -struct<> --- !query 18094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 18095 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18095 schema -struct<> --- !query 18095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 18096 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18096 schema -struct<> --- !query 18096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 18097 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 18097 schema -struct<> --- !query 18097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18098 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 18098 schema -struct<> --- !query 18098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18099 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 18099 schema -struct<> --- !query 18099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18100 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 18100 schema -struct<> --- !query 18100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18101 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 18101 schema -struct<> --- !query 18101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18102 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 18102 schema -struct<> --- !query 18102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18103 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 18103 schema -struct<> --- !query 18103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18104 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 18104 schema -struct<> --- !query 18104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18105 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 18105 schema -struct<> --- !query 18105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18106 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 18106 schema -struct<> --- !query 18106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18107 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18107 schema -struct<> --- !query 18107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18108 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18108 schema -struct<> --- !query 18108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18109 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 18109 schema -struct<> --- !query 18109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18110 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 18110 schema -struct<> --- !query 18110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18111 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 18111 schema -struct<> --- !query 18111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18112 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 18112 schema -struct<> --- !query 18112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18113 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 18113 schema -struct<> --- !query 18113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18114 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 18114 schema -struct<> --- !query 18114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18115 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 18115 schema -struct<> --- !query 18115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18116 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 18116 schema -struct<> --- !query 18116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18117 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 18117 schema -struct<> --- !query 18117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18118 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 18118 schema -struct<> --- !query 18118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18119 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18119 schema -struct<> --- !query 18119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18120 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18120 schema -struct<> --- !query 18120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18121 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 18121 schema -struct> --- !query 18121 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18122 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 18122 schema -struct> --- !query 18122 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18123 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 18123 schema -struct> --- !query 18123 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18124 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 18124 schema -struct> --- !query 18124 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18125 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 18125 schema -struct> --- !query 18125 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18126 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 18126 schema -struct> --- !query 18126 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18127 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 18127 schema -struct> --- !query 18127 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18128 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 18128 schema -struct> --- !query 18128 output -{2017-12-11 09:30:00.0:"1.0",2017-12-12 09:30:00.0:"2"} - - --- !query 18129 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 18129 schema -struct<> --- !query 18129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 18130 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 18130 schema -struct<> --- !query 18130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 18131 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18131 schema -struct<> --- !query 18131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 18132 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18132 schema -struct<> --- !query 18132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 18133 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 18133 schema -struct> --- !query 18133 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18134 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 18134 schema -struct> --- !query 18134 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18135 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 18135 schema -struct> --- !query 18135 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18136 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 18136 schema -struct> --- !query 18136 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18137 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 18137 schema -struct> --- !query 18137 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18138 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 18138 schema -struct> --- !query 18138 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18139 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 18139 schema -struct> --- !query 18139 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18140 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 18140 schema -struct> --- !query 18140 output -{2017-12-11 09:30:00.0:"1.0",2017-12-12 00:00:00.0:"2"} - - --- !query 18141 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 18141 schema -struct<> --- !query 18141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 18142 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 18142 schema -struct<> --- !query 18142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 18143 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18143 schema -struct<> --- !query 18143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 18144 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18144 schema -struct<> --- !query 18144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 18145 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 18145 schema -struct<> --- !query 18145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18146 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 18146 schema -struct<> --- !query 18146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18147 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 18147 schema -struct<> --- !query 18147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18148 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 18148 schema -struct<> --- !query 18148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18149 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 18149 schema -struct<> --- !query 18149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18150 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 18150 schema -struct<> --- !query 18150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18151 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 18151 schema -struct<> --- !query 18151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18152 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 18152 schema -struct<> --- !query 18152 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18153 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 18153 schema -struct<> --- !query 18153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18154 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 18154 schema -struct<> --- !query 18154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18155 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18155 schema -struct<> --- !query 18155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18156 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18156 schema -struct<> --- !query 18156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18157 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 18157 schema -struct<> --- !query 18157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18158 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 18158 schema -struct<> --- !query 18158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18159 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 18159 schema -struct<> --- !query 18159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18160 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 18160 schema -struct<> --- !query 18160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18161 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 18161 schema -struct<> --- !query 18161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18162 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 18162 schema -struct<> --- !query 18162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18163 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 18163 schema -struct<> --- !query 18163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18164 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 18164 schema -struct<> --- !query 18164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18165 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 18165 schema -struct<> --- !query 18165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18166 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 18166 schema -struct<> --- !query 18166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18167 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18167 schema -struct<> --- !query 18167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18168 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18168 schema -struct<> --- !query 18168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18169 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 18169 schema -struct<> --- !query 18169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18170 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 18170 schema -struct<> --- !query 18170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18171 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 18171 schema -struct<> --- !query 18171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18172 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 18172 schema -struct<> --- !query 18172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18173 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 18173 schema -struct<> --- !query 18173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18174 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 18174 schema -struct<> --- !query 18174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18175 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 18175 schema -struct<> --- !query 18175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18176 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 18176 schema -struct<> --- !query 18176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18177 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 18177 schema -struct<> --- !query 18177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18178 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 18178 schema -struct<> --- !query 18178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18179 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18179 schema -struct<> --- !query 18179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18180 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18180 schema -struct<> --- !query 18180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18181 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 18181 schema -struct<> --- !query 18181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18182 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 18182 schema -struct<> --- !query 18182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18183 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 18183 schema -struct<> --- !query 18183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18184 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 18184 schema -struct<> --- !query 18184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18185 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 18185 schema -struct<> --- !query 18185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18186 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 18186 schema -struct<> --- !query 18186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18187 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 18187 schema -struct<> --- !query 18187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18188 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 18188 schema -struct<> --- !query 18188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18189 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 18189 schema -struct<> --- !query 18189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18190 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 18190 schema -struct<> --- !query 18190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18191 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18191 schema -struct<> --- !query 18191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18192 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18192 schema -struct<> --- !query 18192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18193 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 18193 schema -struct<> --- !query 18193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18194 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 18194 schema -struct<> --- !query 18194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18195 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 18195 schema -struct<> --- !query 18195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18196 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 18196 schema -struct<> --- !query 18196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18197 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 18197 schema -struct<> --- !query 18197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18198 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 18198 schema -struct<> --- !query 18198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18199 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 18199 schema -struct<> --- !query 18199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18200 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 18200 schema -struct<> --- !query 18200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18201 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 18201 schema -struct<> --- !query 18201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18202 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 18202 schema -struct<> --- !query 18202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18203 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18203 schema -struct<> --- !query 18203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18204 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18204 schema -struct<> --- !query 18204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18205 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 18205 schema -struct<> --- !query 18205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18206 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 18206 schema -struct<> --- !query 18206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18207 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 18207 schema -struct<> --- !query 18207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18208 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 18208 schema -struct<> --- !query 18208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18209 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 18209 schema -struct<> --- !query 18209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18210 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 18210 schema -struct<> --- !query 18210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18211 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 18211 schema -struct<> --- !query 18211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18212 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 18212 schema -struct<> --- !query 18212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18213 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 18213 schema -struct<> --- !query 18213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18214 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 18214 schema -struct<> --- !query 18214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18215 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18215 schema -struct<> --- !query 18215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18216 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18216 schema -struct<> --- !query 18216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18217 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 18217 schema -struct<> --- !query 18217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18218 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 18218 schema -struct<> --- !query 18218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18219 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 18219 schema -struct<> --- !query 18219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18220 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 18220 schema -struct<> --- !query 18220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18221 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 18221 schema -struct<> --- !query 18221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18222 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 18222 schema -struct<> --- !query 18222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18223 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 18223 schema -struct<> --- !query 18223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18224 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 18224 schema -struct<> --- !query 18224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18225 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 18225 schema -struct<> --- !query 18225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18226 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 18226 schema -struct<> --- !query 18226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18227 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18227 schema -struct<> --- !query 18227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18228 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18228 schema -struct<> --- !query 18228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18229 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 18229 schema -struct> --- !query 18229 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18230 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 18230 schema -struct> --- !query 18230 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18231 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 18231 schema -struct> --- !query 18231 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18232 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 18232 schema -struct> --- !query 18232 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18233 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 18233 schema -struct> --- !query 18233 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18234 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 18234 schema -struct> --- !query 18234 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18235 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 18235 schema -struct> --- !query 18235 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18236 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 18236 schema -struct> --- !query 18236 output -{"2":"2","2017-12-11 09:30:00":"1.0"} - - --- !query 18237 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 18237 schema -struct<> --- !query 18237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 18238 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 18238 schema -struct<> --- !query 18238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 18239 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18239 schema -struct<> --- !query 18239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 18240 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18240 schema -struct<> --- !query 18240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 18241 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 18241 schema -struct<> --- !query 18241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18242 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 18242 schema -struct<> --- !query 18242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18243 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 18243 schema -struct<> --- !query 18243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18244 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 18244 schema -struct<> --- !query 18244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18245 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 18245 schema -struct<> --- !query 18245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18246 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 18246 schema -struct<> --- !query 18246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18247 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 18247 schema -struct<> --- !query 18247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18248 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 18248 schema -struct<> --- !query 18248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18249 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 18249 schema -struct<> --- !query 18249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18250 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 18250 schema -struct<> --- !query 18250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18251 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18251 schema -struct<> --- !query 18251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18252 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18252 schema -struct<> --- !query 18252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18253 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 18253 schema -struct<> --- !query 18253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18254 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 18254 schema -struct<> --- !query 18254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18255 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 18255 schema -struct<> --- !query 18255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18256 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 18256 schema -struct<> --- !query 18256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18257 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 18257 schema -struct<> --- !query 18257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18258 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 18258 schema -struct<> --- !query 18258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18259 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 18259 schema -struct<> --- !query 18259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18260 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 18260 schema -struct<> --- !query 18260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18261 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 18261 schema -struct<> --- !query 18261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18262 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 18262 schema -struct<> --- !query 18262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18263 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18263 schema -struct<> --- !query 18263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18264 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18264 schema -struct<> --- !query 18264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18265 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 18265 schema -struct> --- !query 18265 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18266 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 18266 schema -struct> --- !query 18266 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18267 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 18267 schema -struct> --- !query 18267 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18268 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 18268 schema -struct> --- !query 18268 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18269 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 18269 schema -struct> --- !query 18269 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18270 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 18270 schema -struct> --- !query 18270 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18271 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 18271 schema -struct> --- !query 18271 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18272 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 18272 schema -struct> --- !query 18272 output -{2017-12-11 09:30:00.0:"1.0",2017-12-12 09:30:00.0:"2"} - - --- !query 18273 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 18273 schema -struct<> --- !query 18273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 18274 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 18274 schema -struct<> --- !query 18274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 18275 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18275 schema -struct<> --- !query 18275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 18276 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18276 schema -struct<> --- !query 18276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 18277 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 18277 schema -struct> --- !query 18277 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18278 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 18278 schema -struct> --- !query 18278 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18279 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 18279 schema -struct> --- !query 18279 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18280 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 18280 schema -struct> --- !query 18280 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18281 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 18281 schema -struct> --- !query 18281 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18282 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 18282 schema -struct> --- !query 18282 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18283 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 18283 schema -struct> --- !query 18283 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18284 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 18284 schema -struct> --- !query 18284 output -{2017-12-11 09:30:00.0:"1.0",2017-12-12 00:00:00.0:"2"} - - --- !query 18285 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 18285 schema -struct<> --- !query 18285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 18286 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 18286 schema -struct<> --- !query 18286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 18287 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18287 schema -struct<> --- !query 18287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 18288 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18288 schema -struct<> --- !query 18288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 18289 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 18289 schema -struct<> --- !query 18289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18290 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 18290 schema -struct<> --- !query 18290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18291 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 18291 schema -struct<> --- !query 18291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18292 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 18292 schema -struct<> --- !query 18292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18293 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 18293 schema -struct<> --- !query 18293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18294 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 18294 schema -struct<> --- !query 18294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18295 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 18295 schema -struct<> --- !query 18295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18296 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 18296 schema -struct<> --- !query 18296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18297 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 18297 schema -struct<> --- !query 18297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18298 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 18298 schema -struct<> --- !query 18298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18299 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18299 schema -struct<> --- !query 18299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18300 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18300 schema -struct<> --- !query 18300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18301 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 18301 schema -struct<> --- !query 18301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18302 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 18302 schema -struct<> --- !query 18302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18303 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 18303 schema -struct<> --- !query 18303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18304 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 18304 schema -struct<> --- !query 18304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18305 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 18305 schema -struct<> --- !query 18305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18306 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 18306 schema -struct<> --- !query 18306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18307 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 18307 schema -struct<> --- !query 18307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18308 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 18308 schema -struct<> --- !query 18308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18309 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 18309 schema -struct<> --- !query 18309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18310 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 18310 schema -struct<> --- !query 18310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18311 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18311 schema -struct<> --- !query 18311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18312 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18312 schema -struct<> --- !query 18312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18313 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 18313 schema -struct<> --- !query 18313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18314 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 18314 schema -struct<> --- !query 18314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18315 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 18315 schema -struct<> --- !query 18315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18316 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 18316 schema -struct<> --- !query 18316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18317 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 18317 schema -struct<> --- !query 18317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18318 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 18318 schema -struct<> --- !query 18318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18319 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 18319 schema -struct<> --- !query 18319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18320 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 18320 schema -struct<> --- !query 18320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18321 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 18321 schema -struct<> --- !query 18321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18322 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 18322 schema -struct<> --- !query 18322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18323 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18323 schema -struct<> --- !query 18323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18324 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18324 schema -struct<> --- !query 18324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18325 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 18325 schema -struct<> --- !query 18325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18326 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 18326 schema -struct<> --- !query 18326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18327 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 18327 schema -struct<> --- !query 18327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18328 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 18328 schema -struct<> --- !query 18328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18329 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 18329 schema -struct<> --- !query 18329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18330 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 18330 schema -struct<> --- !query 18330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18331 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 18331 schema -struct<> --- !query 18331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18332 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 18332 schema -struct<> --- !query 18332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18333 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 18333 schema -struct<> --- !query 18333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18334 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 18334 schema -struct<> --- !query 18334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18335 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18335 schema -struct<> --- !query 18335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18336 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18336 schema -struct<> --- !query 18336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18337 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 18337 schema -struct<> --- !query 18337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18338 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 18338 schema -struct<> --- !query 18338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18339 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 18339 schema -struct<> --- !query 18339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18340 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 18340 schema -struct<> --- !query 18340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18341 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 18341 schema -struct<> --- !query 18341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18342 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 18342 schema -struct<> --- !query 18342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18343 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 18343 schema -struct<> --- !query 18343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18344 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 18344 schema -struct<> --- !query 18344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18345 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 18345 schema -struct<> --- !query 18345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18346 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 18346 schema -struct<> --- !query 18346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18347 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18347 schema -struct<> --- !query 18347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18348 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18348 schema -struct<> --- !query 18348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18349 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 18349 schema -struct<> --- !query 18349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18350 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 18350 schema -struct<> --- !query 18350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18351 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 18351 schema -struct<> --- !query 18351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18352 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 18352 schema -struct<> --- !query 18352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18353 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 18353 schema -struct<> --- !query 18353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18354 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 18354 schema -struct<> --- !query 18354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18355 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 18355 schema -struct<> --- !query 18355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18356 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 18356 schema -struct<> --- !query 18356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18357 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 18357 schema -struct<> --- !query 18357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18358 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 18358 schema -struct<> --- !query 18358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18359 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18359 schema -struct<> --- !query 18359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18360 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18360 schema -struct<> --- !query 18360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18361 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 18361 schema -struct<> --- !query 18361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18362 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 18362 schema -struct<> --- !query 18362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18363 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 18363 schema -struct<> --- !query 18363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18364 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 18364 schema -struct<> --- !query 18364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18365 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 18365 schema -struct<> --- !query 18365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18366 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 18366 schema -struct<> --- !query 18366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18367 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 18367 schema -struct<> --- !query 18367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18368 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 18368 schema -struct<> --- !query 18368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18369 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 18369 schema -struct<> --- !query 18369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18370 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 18370 schema -struct<> --- !query 18370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18371 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18371 schema -struct<> --- !query 18371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18372 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18372 schema -struct<> --- !query 18372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18373 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 18373 schema -struct> --- !query 18373 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 18374 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 18374 schema -struct> --- !query 18374 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 18375 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 18375 schema -struct> --- !query 18375 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 18376 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 18376 schema -struct> --- !query 18376 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 18377 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 18377 schema -struct> --- !query 18377 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18378 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 18378 schema -struct> --- !query 18378 output -{"2":2.0,"2017-12-11 09:30:00":1.0} - - --- !query 18379 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 18379 schema -struct> --- !query 18379 output -{"2":2,"2017-12-11 09:30:00":1} - - --- !query 18380 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 18380 schema -struct> --- !query 18380 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 18381 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 18381 schema -struct<> --- !query 18381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 18382 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 18382 schema -struct<> --- !query 18382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 18383 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18383 schema -struct<> --- !query 18383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 18384 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18384 schema -struct<> --- !query 18384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 18385 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 18385 schema -struct<> --- !query 18385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18386 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 18386 schema -struct<> --- !query 18386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18387 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 18387 schema -struct<> --- !query 18387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18388 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 18388 schema -struct<> --- !query 18388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18389 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 18389 schema -struct<> --- !query 18389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18390 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 18390 schema -struct<> --- !query 18390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18391 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 18391 schema -struct<> --- !query 18391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18392 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 18392 schema -struct<> --- !query 18392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18393 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 18393 schema -struct<> --- !query 18393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18394 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 18394 schema -struct<> --- !query 18394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18395 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18395 schema -struct<> --- !query 18395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18396 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18396 schema -struct<> --- !query 18396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18397 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 18397 schema -struct<> --- !query 18397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18398 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 18398 schema -struct<> --- !query 18398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18399 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 18399 schema -struct<> --- !query 18399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18400 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 18400 schema -struct<> --- !query 18400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18401 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 18401 schema -struct<> --- !query 18401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18402 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 18402 schema -struct<> --- !query 18402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18403 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 18403 schema -struct<> --- !query 18403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18404 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 18404 schema -struct<> --- !query 18404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18405 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 18405 schema -struct<> --- !query 18405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18406 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 18406 schema -struct<> --- !query 18406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18407 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18407 schema -struct<> --- !query 18407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18408 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18408 schema -struct<> --- !query 18408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18409 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 18409 schema -struct> --- !query 18409 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 18410 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 18410 schema -struct> --- !query 18410 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 18411 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 18411 schema -struct> --- !query 18411 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 18412 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 18412 schema -struct> --- !query 18412 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 18413 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 18413 schema -struct> --- !query 18413 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18414 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 18414 schema -struct> --- !query 18414 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 18415 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 18415 schema -struct> --- !query 18415 output -{2017-12-11 09:30:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 18416 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 18416 schema -struct> --- !query 18416 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 18417 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 18417 schema -struct<> --- !query 18417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 18418 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 18418 schema -struct<> --- !query 18418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 18419 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18419 schema -struct<> --- !query 18419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 18420 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18420 schema -struct<> --- !query 18420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 18421 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 18421 schema -struct> --- !query 18421 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 18422 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 18422 schema -struct> --- !query 18422 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 18423 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 18423 schema -struct> --- !query 18423 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 18424 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 18424 schema -struct> --- !query 18424 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 18425 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 18425 schema -struct> --- !query 18425 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18426 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 18426 schema -struct> --- !query 18426 output -{2017-12-11 09:30:00.0:1.0,2017-12-12 00:00:00.0:2.0} - - --- !query 18427 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 18427 schema -struct> --- !query 18427 output -{2017-12-11 09:30:00.0:1,2017-12-12 00:00:00.0:2} - - --- !query 18428 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 18428 schema -struct> --- !query 18428 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 18429 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 18429 schema -struct<> --- !query 18429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 18430 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 18430 schema -struct<> --- !query 18430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 18431 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18431 schema -struct<> --- !query 18431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 18432 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18432 schema -struct<> --- !query 18432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 18433 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 18433 schema -struct<> --- !query 18433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18434 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 18434 schema -struct<> --- !query 18434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18435 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 18435 schema -struct<> --- !query 18435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18436 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 18436 schema -struct<> --- !query 18436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18437 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 18437 schema -struct<> --- !query 18437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18438 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 18438 schema -struct<> --- !query 18438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18439 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 18439 schema -struct<> --- !query 18439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18440 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 18440 schema -struct<> --- !query 18440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18441 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 18441 schema -struct<> --- !query 18441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18442 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 18442 schema -struct<> --- !query 18442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18443 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18443 schema -struct<> --- !query 18443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18444 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18444 schema -struct<> --- !query 18444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18445 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 18445 schema -struct<> --- !query 18445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18446 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 18446 schema -struct<> --- !query 18446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18447 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 18447 schema -struct<> --- !query 18447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18448 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 18448 schema -struct<> --- !query 18448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18449 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 18449 schema -struct<> --- !query 18449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18450 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 18450 schema -struct<> --- !query 18450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18451 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 18451 schema -struct<> --- !query 18451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18452 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 18452 schema -struct<> --- !query 18452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18453 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 18453 schema -struct<> --- !query 18453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18454 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 18454 schema -struct<> --- !query 18454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18455 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18455 schema -struct<> --- !query 18455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18456 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18456 schema -struct<> --- !query 18456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18457 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 18457 schema -struct<> --- !query 18457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18458 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 18458 schema -struct<> --- !query 18458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18459 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 18459 schema -struct<> --- !query 18459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18460 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 18460 schema -struct<> --- !query 18460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18461 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 18461 schema -struct<> --- !query 18461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18462 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 18462 schema -struct<> --- !query 18462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18463 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 18463 schema -struct<> --- !query 18463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18464 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 18464 schema -struct<> --- !query 18464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18465 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 18465 schema -struct<> --- !query 18465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18466 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 18466 schema -struct<> --- !query 18466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18467 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18467 schema -struct<> --- !query 18467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18468 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18468 schema -struct<> --- !query 18468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18469 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 18469 schema -struct<> --- !query 18469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18470 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 18470 schema -struct<> --- !query 18470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18471 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 18471 schema -struct<> --- !query 18471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18472 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 18472 schema -struct<> --- !query 18472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18473 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 18473 schema -struct<> --- !query 18473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18474 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 18474 schema -struct<> --- !query 18474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18475 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 18475 schema -struct<> --- !query 18475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18476 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 18476 schema -struct<> --- !query 18476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18477 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 18477 schema -struct<> --- !query 18477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18478 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 18478 schema -struct<> --- !query 18478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18479 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18479 schema -struct<> --- !query 18479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18480 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18480 schema -struct<> --- !query 18480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18481 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 18481 schema -struct<> --- !query 18481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18482 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 18482 schema -struct<> --- !query 18482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18483 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 18483 schema -struct<> --- !query 18483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18484 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 18484 schema -struct<> --- !query 18484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18485 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 18485 schema -struct<> --- !query 18485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18486 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 18486 schema -struct<> --- !query 18486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18487 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 18487 schema -struct<> --- !query 18487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18488 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 18488 schema -struct<> --- !query 18488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18489 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 18489 schema -struct<> --- !query 18489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18490 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 18490 schema -struct<> --- !query 18490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18491 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18491 schema -struct<> --- !query 18491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18492 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18492 schema -struct<> --- !query 18492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18493 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 18493 schema -struct<> --- !query 18493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18494 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 18494 schema -struct<> --- !query 18494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18495 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 18495 schema -struct<> --- !query 18495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18496 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 18496 schema -struct<> --- !query 18496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18497 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 18497 schema -struct<> --- !query 18497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18498 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 18498 schema -struct<> --- !query 18498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18499 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 18499 schema -struct<> --- !query 18499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18500 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 18500 schema -struct<> --- !query 18500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18501 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 18501 schema -struct<> --- !query 18501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18502 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 18502 schema -struct<> --- !query 18502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18503 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18503 schema -struct<> --- !query 18503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18504 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18504 schema -struct<> --- !query 18504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18505 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 18505 schema -struct<> --- !query 18505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18506 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 18506 schema -struct<> --- !query 18506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18507 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 18507 schema -struct<> --- !query 18507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18508 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 18508 schema -struct<> --- !query 18508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18509 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 18509 schema -struct<> --- !query 18509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18510 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 18510 schema -struct<> --- !query 18510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18511 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 18511 schema -struct<> --- !query 18511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18512 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 18512 schema -struct<> --- !query 18512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18513 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 18513 schema -struct<> --- !query 18513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18514 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 18514 schema -struct<> --- !query 18514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18515 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18515 schema -struct<> --- !query 18515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18516 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18516 schema -struct<> --- !query 18516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18517 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 18517 schema -struct> --- !query 18517 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 18518 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 18518 schema -struct> --- !query 18518 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 18519 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 18519 schema -struct> --- !query 18519 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 18520 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 18520 schema -struct> --- !query 18520 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 18521 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 18521 schema -struct> --- !query 18521 output -{"2":"2.0","2017-12-11 09:30:00":"1"} - - --- !query 18522 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 18522 schema -struct> --- !query 18522 output -{"2":"2.0","2017-12-11 09:30:00":"1"} - - --- !query 18523 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 18523 schema -struct> --- !query 18523 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 18524 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 18524 schema -struct> --- !query 18524 output -{"2":"2","2017-12-11 09:30:00":"1"} - - --- !query 18525 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 18525 schema -struct<> --- !query 18525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 18526 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 18526 schema -struct<> --- !query 18526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 18527 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18527 schema -struct> --- !query 18527 output -{"2":"2017-12-12 09:30:00","2017-12-11 09:30:00":"1"} - - --- !query 18528 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18528 schema -struct> --- !query 18528 output -{"2":"2017-12-12","2017-12-11 09:30:00":"1"} - - --- !query 18529 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 18529 schema -struct<> --- !query 18529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18530 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 18530 schema -struct<> --- !query 18530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18531 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 18531 schema -struct<> --- !query 18531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18532 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 18532 schema -struct<> --- !query 18532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18533 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 18533 schema -struct<> --- !query 18533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18534 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 18534 schema -struct<> --- !query 18534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18535 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 18535 schema -struct<> --- !query 18535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18536 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 18536 schema -struct<> --- !query 18536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18537 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 18537 schema -struct<> --- !query 18537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18538 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 18538 schema -struct<> --- !query 18538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18539 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18539 schema -struct<> --- !query 18539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18540 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18540 schema -struct<> --- !query 18540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18541 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 18541 schema -struct<> --- !query 18541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18542 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 18542 schema -struct<> --- !query 18542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18543 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 18543 schema -struct<> --- !query 18543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18544 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 18544 schema -struct<> --- !query 18544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18545 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 18545 schema -struct<> --- !query 18545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18546 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 18546 schema -struct<> --- !query 18546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18547 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 18547 schema -struct<> --- !query 18547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18548 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 18548 schema -struct<> --- !query 18548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18549 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 18549 schema -struct<> --- !query 18549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18550 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 18550 schema -struct<> --- !query 18550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18551 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18551 schema -struct<> --- !query 18551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18552 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18552 schema -struct<> --- !query 18552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18553 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 18553 schema -struct> --- !query 18553 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 18554 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 18554 schema -struct> --- !query 18554 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 18555 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 18555 schema -struct> --- !query 18555 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 18556 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 18556 schema -struct> --- !query 18556 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 18557 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 18557 schema -struct> --- !query 18557 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2.0"} - - --- !query 18558 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 18558 schema -struct> --- !query 18558 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2.0"} - - --- !query 18559 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 18559 schema -struct> --- !query 18559 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 18560 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 18560 schema -struct> --- !query 18560 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 18561 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 18561 schema -struct<> --- !query 18561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 18562 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 18562 schema -struct<> --- !query 18562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 18563 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18563 schema -struct> --- !query 18563 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12 09:30:00"} - - --- !query 18564 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18564 schema -struct> --- !query 18564 output -{2017-12-11 09:30:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12"} - - --- !query 18565 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 18565 schema -struct> --- !query 18565 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 18566 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 18566 schema -struct> --- !query 18566 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 18567 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 18567 schema -struct> --- !query 18567 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 18568 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 18568 schema -struct> --- !query 18568 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 18569 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 18569 schema -struct> --- !query 18569 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2.0"} - - --- !query 18570 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 18570 schema -struct> --- !query 18570 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2.0"} - - --- !query 18571 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 18571 schema -struct> --- !query 18571 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 18572 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 18572 schema -struct> --- !query 18572 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2"} - - --- !query 18573 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 18573 schema -struct<> --- !query 18573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 18574 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 18574 schema -struct<> --- !query 18574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 18575 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18575 schema -struct> --- !query 18575 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2017-12-12 09:30:00"} - - --- !query 18576 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18576 schema -struct> --- !query 18576 output -{2017-12-11 09:30:00.0:"1",2017-12-12 00:00:00.0:"2017-12-12"} - - --- !query 18577 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 18577 schema -struct<> --- !query 18577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18578 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 18578 schema -struct<> --- !query 18578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18579 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 18579 schema -struct<> --- !query 18579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18580 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 18580 schema -struct<> --- !query 18580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18581 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 18581 schema -struct<> --- !query 18581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18582 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 18582 schema -struct<> --- !query 18582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18583 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 18583 schema -struct<> --- !query 18583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18584 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 18584 schema -struct<> --- !query 18584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18585 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 18585 schema -struct<> --- !query 18585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18586 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 18586 schema -struct<> --- !query 18586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18587 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18587 schema -struct<> --- !query 18587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18588 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18588 schema -struct<> --- !query 18588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18589 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 18589 schema -struct<> --- !query 18589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18590 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 18590 schema -struct<> --- !query 18590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18591 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 18591 schema -struct<> --- !query 18591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18592 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 18592 schema -struct<> --- !query 18592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18593 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 18593 schema -struct<> --- !query 18593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18594 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 18594 schema -struct<> --- !query 18594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18595 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 18595 schema -struct<> --- !query 18595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18596 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 18596 schema -struct<> --- !query 18596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18597 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 18597 schema -struct<> --- !query 18597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18598 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 18598 schema -struct<> --- !query 18598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18599 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18599 schema -struct<> --- !query 18599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18600 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18600 schema -struct<> --- !query 18600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18601 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 18601 schema -struct<> --- !query 18601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18602 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 18602 schema -struct<> --- !query 18602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18603 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 18603 schema -struct<> --- !query 18603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18604 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 18604 schema -struct<> --- !query 18604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18605 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 18605 schema -struct<> --- !query 18605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18606 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 18606 schema -struct<> --- !query 18606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18607 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 18607 schema -struct<> --- !query 18607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18608 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 18608 schema -struct<> --- !query 18608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18609 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 18609 schema -struct<> --- !query 18609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18610 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 18610 schema -struct<> --- !query 18610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18611 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18611 schema -struct<> --- !query 18611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18612 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18612 schema -struct<> --- !query 18612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18613 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 18613 schema -struct<> --- !query 18613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18614 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 18614 schema -struct<> --- !query 18614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18615 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 18615 schema -struct<> --- !query 18615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18616 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 18616 schema -struct<> --- !query 18616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18617 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 18617 schema -struct<> --- !query 18617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18618 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 18618 schema -struct<> --- !query 18618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18619 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 18619 schema -struct<> --- !query 18619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18620 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 18620 schema -struct<> --- !query 18620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18621 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 18621 schema -struct<> --- !query 18621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18622 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 18622 schema -struct<> --- !query 18622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18623 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18623 schema -struct<> --- !query 18623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18624 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18624 schema -struct<> --- !query 18624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18625 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 18625 schema -struct<> --- !query 18625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18626 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 18626 schema -struct<> --- !query 18626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18627 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 18627 schema -struct<> --- !query 18627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18628 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 18628 schema -struct<> --- !query 18628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18629 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 18629 schema -struct<> --- !query 18629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18630 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 18630 schema -struct<> --- !query 18630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18631 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 18631 schema -struct<> --- !query 18631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18632 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 18632 schema -struct<> --- !query 18632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18633 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 18633 schema -struct<> --- !query 18633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18634 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 18634 schema -struct<> --- !query 18634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18635 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18635 schema -struct<> --- !query 18635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18636 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18636 schema -struct<> --- !query 18636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18637 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 18637 schema -struct<> --- !query 18637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18638 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 18638 schema -struct<> --- !query 18638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18639 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 18639 schema -struct<> --- !query 18639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18640 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 18640 schema -struct<> --- !query 18640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18641 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 18641 schema -struct<> --- !query 18641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18642 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 18642 schema -struct<> --- !query 18642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18643 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 18643 schema -struct<> --- !query 18643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18644 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 18644 schema -struct<> --- !query 18644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18645 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 18645 schema -struct<> --- !query 18645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18646 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 18646 schema -struct<> --- !query 18646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18647 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18647 schema -struct<> --- !query 18647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18648 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18648 schema -struct<> --- !query 18648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18649 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 18649 schema -struct<> --- !query 18649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18650 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 18650 schema -struct<> --- !query 18650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18651 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 18651 schema -struct<> --- !query 18651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18652 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 18652 schema -struct<> --- !query 18652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18653 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 18653 schema -struct<> --- !query 18653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18654 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 18654 schema -struct<> --- !query 18654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18655 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 18655 schema -struct<> --- !query 18655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18656 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 18656 schema -struct<> --- !query 18656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18657 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 18657 schema -struct<> --- !query 18657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18658 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 18658 schema -struct<> --- !query 18658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18659 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18659 schema -struct<> --- !query 18659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18660 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18660 schema -struct<> --- !query 18660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18661 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 18661 schema -struct<> --- !query 18661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 18662 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 18662 schema -struct<> --- !query 18662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 18663 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 18663 schema -struct<> --- !query 18663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 18664 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 18664 schema -struct<> --- !query 18664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 18665 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 18665 schema -struct<> --- !query 18665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 18666 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 18666 schema -struct<> --- !query 18666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 18667 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 18667 schema -struct<> --- !query 18667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 18668 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 18668 schema -struct<> --- !query 18668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 18669 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 18669 schema -struct> --- !query 18669 output -{"2":[B@51f62d7c,"2017-12-11 09:30:00":[B@12574f4d} - - --- !query 18670 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 18670 schema -struct<> --- !query 18670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 18671 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18671 schema -struct<> --- !query 18671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 18672 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18672 schema -struct<> --- !query 18672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 18673 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 18673 schema -struct<> --- !query 18673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18674 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 18674 schema -struct<> --- !query 18674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18675 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 18675 schema -struct<> --- !query 18675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18676 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 18676 schema -struct<> --- !query 18676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18677 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 18677 schema -struct<> --- !query 18677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18678 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 18678 schema -struct<> --- !query 18678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18679 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 18679 schema -struct<> --- !query 18679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18680 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 18680 schema -struct<> --- !query 18680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18681 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 18681 schema -struct<> --- !query 18681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18682 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 18682 schema -struct<> --- !query 18682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18683 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18683 schema -struct<> --- !query 18683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18684 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18684 schema -struct<> --- !query 18684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18685 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 18685 schema -struct<> --- !query 18685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18686 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 18686 schema -struct<> --- !query 18686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18687 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 18687 schema -struct<> --- !query 18687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18688 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 18688 schema -struct<> --- !query 18688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18689 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 18689 schema -struct<> --- !query 18689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18690 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 18690 schema -struct<> --- !query 18690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18691 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 18691 schema -struct<> --- !query 18691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18692 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 18692 schema -struct<> --- !query 18692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18693 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 18693 schema -struct<> --- !query 18693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18694 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 18694 schema -struct<> --- !query 18694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18695 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18695 schema -struct<> --- !query 18695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18696 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18696 schema -struct<> --- !query 18696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18697 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 18697 schema -struct<> --- !query 18697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 18698 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 18698 schema -struct<> --- !query 18698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 18699 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 18699 schema -struct<> --- !query 18699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 18700 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 18700 schema -struct<> --- !query 18700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 18701 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 18701 schema -struct<> --- !query 18701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 18702 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 18702 schema -struct<> --- !query 18702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 18703 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 18703 schema -struct<> --- !query 18703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 18704 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 18704 schema -struct<> --- !query 18704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 18705 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 18705 schema -struct> --- !query 18705 output -{2017-12-11 09:30:00.0:[B@1af33ab2,2017-12-12 09:30:00.0:[B@4de132c} - - --- !query 18706 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 18706 schema -struct<> --- !query 18706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 18707 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18707 schema -struct<> --- !query 18707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 18708 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18708 schema -struct<> --- !query 18708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 18709 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 18709 schema -struct<> --- !query 18709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 18710 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 18710 schema -struct<> --- !query 18710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 18711 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 18711 schema -struct<> --- !query 18711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 18712 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 18712 schema -struct<> --- !query 18712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 18713 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 18713 schema -struct<> --- !query 18713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 18714 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 18714 schema -struct<> --- !query 18714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 18715 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 18715 schema -struct<> --- !query 18715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 18716 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 18716 schema -struct<> --- !query 18716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 18717 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 18717 schema -struct> --- !query 18717 output -{2017-12-11 09:30:00.0:[B@570b083a,2017-12-12 00:00:00.0:[B@56d605c3} - - --- !query 18718 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 18718 schema -struct<> --- !query 18718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 18719 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18719 schema -struct<> --- !query 18719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 18720 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18720 schema -struct<> --- !query 18720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 18721 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 18721 schema -struct<> --- !query 18721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18722 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 18722 schema -struct<> --- !query 18722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18723 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 18723 schema -struct<> --- !query 18723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18724 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 18724 schema -struct<> --- !query 18724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18725 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 18725 schema -struct<> --- !query 18725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18726 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 18726 schema -struct<> --- !query 18726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18727 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 18727 schema -struct<> --- !query 18727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18728 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 18728 schema -struct<> --- !query 18728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18729 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 18729 schema -struct<> --- !query 18729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18730 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 18730 schema -struct<> --- !query 18730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18731 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18731 schema -struct<> --- !query 18731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18732 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18732 schema -struct<> --- !query 18732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18733 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 18733 schema -struct<> --- !query 18733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18734 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 18734 schema -struct<> --- !query 18734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18735 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 18735 schema -struct<> --- !query 18735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18736 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 18736 schema -struct<> --- !query 18736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18737 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 18737 schema -struct<> --- !query 18737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18738 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 18738 schema -struct<> --- !query 18738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18739 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 18739 schema -struct<> --- !query 18739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18740 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 18740 schema -struct<> --- !query 18740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18741 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 18741 schema -struct<> --- !query 18741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18742 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 18742 schema -struct<> --- !query 18742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18743 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18743 schema -struct<> --- !query 18743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18744 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18744 schema -struct<> --- !query 18744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18745 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 18745 schema -struct<> --- !query 18745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18746 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 18746 schema -struct<> --- !query 18746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18747 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 18747 schema -struct<> --- !query 18747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18748 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 18748 schema -struct<> --- !query 18748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18749 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 18749 schema -struct<> --- !query 18749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18750 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 18750 schema -struct<> --- !query 18750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18751 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 18751 schema -struct<> --- !query 18751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18752 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 18752 schema -struct<> --- !query 18752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18753 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 18753 schema -struct<> --- !query 18753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18754 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 18754 schema -struct<> --- !query 18754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18755 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18755 schema -struct<> --- !query 18755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18756 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18756 schema -struct<> --- !query 18756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18757 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 18757 schema -struct<> --- !query 18757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18758 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 18758 schema -struct<> --- !query 18758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18759 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 18759 schema -struct<> --- !query 18759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18760 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 18760 schema -struct<> --- !query 18760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18761 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 18761 schema -struct<> --- !query 18761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18762 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 18762 schema -struct<> --- !query 18762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18763 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 18763 schema -struct<> --- !query 18763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18764 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 18764 schema -struct<> --- !query 18764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18765 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 18765 schema -struct<> --- !query 18765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18766 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 18766 schema -struct<> --- !query 18766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18767 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18767 schema -struct<> --- !query 18767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18768 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18768 schema -struct<> --- !query 18768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18769 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 18769 schema -struct<> --- !query 18769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18770 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 18770 schema -struct<> --- !query 18770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18771 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 18771 schema -struct<> --- !query 18771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18772 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 18772 schema -struct<> --- !query 18772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18773 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 18773 schema -struct<> --- !query 18773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18774 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 18774 schema -struct<> --- !query 18774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18775 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 18775 schema -struct<> --- !query 18775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18776 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 18776 schema -struct<> --- !query 18776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18777 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 18777 schema -struct<> --- !query 18777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18778 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 18778 schema -struct<> --- !query 18778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18779 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18779 schema -struct<> --- !query 18779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18780 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18780 schema -struct<> --- !query 18780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18781 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 18781 schema -struct<> --- !query 18781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18782 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 18782 schema -struct<> --- !query 18782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18783 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 18783 schema -struct<> --- !query 18783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18784 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 18784 schema -struct<> --- !query 18784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18785 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 18785 schema -struct<> --- !query 18785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18786 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 18786 schema -struct<> --- !query 18786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18787 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 18787 schema -struct<> --- !query 18787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18788 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 18788 schema -struct<> --- !query 18788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18789 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 18789 schema -struct<> --- !query 18789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18790 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 18790 schema -struct<> --- !query 18790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18791 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18791 schema -struct<> --- !query 18791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18792 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18792 schema -struct<> --- !query 18792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18793 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 18793 schema -struct<> --- !query 18793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18794 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 18794 schema -struct<> --- !query 18794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18795 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 18795 schema -struct<> --- !query 18795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18796 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 18796 schema -struct<> --- !query 18796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18797 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 18797 schema -struct<> --- !query 18797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18798 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 18798 schema -struct<> --- !query 18798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18799 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 18799 schema -struct<> --- !query 18799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18800 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 18800 schema -struct<> --- !query 18800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18801 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 18801 schema -struct<> --- !query 18801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18802 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 18802 schema -struct<> --- !query 18802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18803 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18803 schema -struct<> --- !query 18803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18804 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18804 schema -struct<> --- !query 18804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18805 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 18805 schema -struct<> --- !query 18805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 18806 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 18806 schema -struct<> --- !query 18806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 18807 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 18807 schema -struct<> --- !query 18807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 18808 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 18808 schema -struct<> --- !query 18808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 18809 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 18809 schema -struct<> --- !query 18809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 18810 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 18810 schema -struct<> --- !query 18810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 18811 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 18811 schema -struct<> --- !query 18811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 18812 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 18812 schema -struct<> --- !query 18812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 18813 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 18813 schema -struct<> --- !query 18813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 18814 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 18814 schema -struct> --- !query 18814 output -{"2":true,"2017-12-11 09:30:00":true} - - --- !query 18815 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18815 schema -struct<> --- !query 18815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 18816 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18816 schema -struct<> --- !query 18816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 18817 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 18817 schema -struct<> --- !query 18817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18818 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 18818 schema -struct<> --- !query 18818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18819 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 18819 schema -struct<> --- !query 18819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18820 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 18820 schema -struct<> --- !query 18820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18821 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 18821 schema -struct<> --- !query 18821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18822 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 18822 schema -struct<> --- !query 18822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18823 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 18823 schema -struct<> --- !query 18823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18824 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 18824 schema -struct<> --- !query 18824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18825 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 18825 schema -struct<> --- !query 18825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18826 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 18826 schema -struct<> --- !query 18826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18827 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18827 schema -struct<> --- !query 18827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18828 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18828 schema -struct<> --- !query 18828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18829 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 18829 schema -struct<> --- !query 18829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18830 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 18830 schema -struct<> --- !query 18830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18831 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 18831 schema -struct<> --- !query 18831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18832 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 18832 schema -struct<> --- !query 18832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18833 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 18833 schema -struct<> --- !query 18833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18834 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 18834 schema -struct<> --- !query 18834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18835 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 18835 schema -struct<> --- !query 18835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18836 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 18836 schema -struct<> --- !query 18836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18837 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 18837 schema -struct<> --- !query 18837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18838 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 18838 schema -struct<> --- !query 18838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18839 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18839 schema -struct<> --- !query 18839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18840 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18840 schema -struct<> --- !query 18840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18841 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 18841 schema -struct<> --- !query 18841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 18842 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 18842 schema -struct<> --- !query 18842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 18843 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 18843 schema -struct<> --- !query 18843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 18844 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 18844 schema -struct<> --- !query 18844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 18845 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 18845 schema -struct<> --- !query 18845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 18846 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 18846 schema -struct<> --- !query 18846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 18847 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 18847 schema -struct<> --- !query 18847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 18848 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 18848 schema -struct<> --- !query 18848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 18849 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 18849 schema -struct<> --- !query 18849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 18850 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 18850 schema -struct> --- !query 18850 output -{2017-12-11 09:30:00.0:true,2017-12-12 09:30:00.0:true} - - --- !query 18851 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18851 schema -struct<> --- !query 18851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 18852 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18852 schema -struct<> --- !query 18852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 18853 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 18853 schema -struct<> --- !query 18853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 18854 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 18854 schema -struct<> --- !query 18854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 18855 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 18855 schema -struct<> --- !query 18855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 18856 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 18856 schema -struct<> --- !query 18856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 18857 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 18857 schema -struct<> --- !query 18857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 18858 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 18858 schema -struct<> --- !query 18858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 18859 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 18859 schema -struct<> --- !query 18859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 18860 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 18860 schema -struct<> --- !query 18860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 18861 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 18861 schema -struct<> --- !query 18861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 18862 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 18862 schema -struct> --- !query 18862 output -{2017-12-11 09:30:00.0:true,2017-12-12 00:00:00.0:true} - - --- !query 18863 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18863 schema -struct<> --- !query 18863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 18864 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18864 schema -struct<> --- !query 18864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 18865 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 18865 schema -struct<> --- !query 18865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18866 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 18866 schema -struct<> --- !query 18866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18867 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 18867 schema -struct<> --- !query 18867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18868 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 18868 schema -struct<> --- !query 18868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18869 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 18869 schema -struct<> --- !query 18869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18870 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 18870 schema -struct<> --- !query 18870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18871 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 18871 schema -struct<> --- !query 18871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18872 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 18872 schema -struct<> --- !query 18872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18873 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 18873 schema -struct<> --- !query 18873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18874 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 18874 schema -struct<> --- !query 18874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18875 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18875 schema -struct<> --- !query 18875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18876 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18876 schema -struct<> --- !query 18876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18877 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 18877 schema -struct<> --- !query 18877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18878 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 18878 schema -struct<> --- !query 18878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18879 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 18879 schema -struct<> --- !query 18879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18880 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 18880 schema -struct<> --- !query 18880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18881 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 18881 schema -struct<> --- !query 18881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18882 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 18882 schema -struct<> --- !query 18882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18883 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 18883 schema -struct<> --- !query 18883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18884 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 18884 schema -struct<> --- !query 18884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18885 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 18885 schema -struct<> --- !query 18885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18886 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 18886 schema -struct<> --- !query 18886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18887 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18887 schema -struct<> --- !query 18887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18888 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18888 schema -struct<> --- !query 18888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18889 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 18889 schema -struct<> --- !query 18889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18890 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 18890 schema -struct<> --- !query 18890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18891 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 18891 schema -struct<> --- !query 18891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18892 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 18892 schema -struct<> --- !query 18892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18893 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 18893 schema -struct<> --- !query 18893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18894 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 18894 schema -struct<> --- !query 18894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18895 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 18895 schema -struct<> --- !query 18895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18896 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 18896 schema -struct<> --- !query 18896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18897 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 18897 schema -struct<> --- !query 18897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18898 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 18898 schema -struct<> --- !query 18898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18899 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18899 schema -struct<> --- !query 18899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18900 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18900 schema -struct<> --- !query 18900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18901 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 18901 schema -struct<> --- !query 18901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18902 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 18902 schema -struct<> --- !query 18902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18903 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 18903 schema -struct<> --- !query 18903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18904 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 18904 schema -struct<> --- !query 18904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18905 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 18905 schema -struct<> --- !query 18905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18906 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 18906 schema -struct<> --- !query 18906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18907 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 18907 schema -struct<> --- !query 18907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18908 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 18908 schema -struct<> --- !query 18908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18909 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 18909 schema -struct<> --- !query 18909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18910 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 18910 schema -struct<> --- !query 18910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18911 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18911 schema -struct<> --- !query 18911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18912 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18912 schema -struct<> --- !query 18912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18913 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 18913 schema -struct<> --- !query 18913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18914 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 18914 schema -struct<> --- !query 18914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18915 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 18915 schema -struct<> --- !query 18915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18916 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 18916 schema -struct<> --- !query 18916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18917 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 18917 schema -struct<> --- !query 18917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18918 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 18918 schema -struct<> --- !query 18918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18919 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 18919 schema -struct<> --- !query 18919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18920 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 18920 schema -struct<> --- !query 18920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18921 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 18921 schema -struct<> --- !query 18921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18922 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 18922 schema -struct<> --- !query 18922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18923 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18923 schema -struct<> --- !query 18923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18924 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18924 schema -struct<> --- !query 18924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18925 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 18925 schema -struct<> --- !query 18925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18926 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 18926 schema -struct<> --- !query 18926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18927 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 18927 schema -struct<> --- !query 18927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18928 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 18928 schema -struct<> --- !query 18928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18929 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 18929 schema -struct<> --- !query 18929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18930 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 18930 schema -struct<> --- !query 18930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18931 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 18931 schema -struct<> --- !query 18931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18932 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 18932 schema -struct<> --- !query 18932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18933 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 18933 schema -struct<> --- !query 18933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18934 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 18934 schema -struct<> --- !query 18934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18935 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18935 schema -struct<> --- !query 18935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18936 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18936 schema -struct<> --- !query 18936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18937 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 18937 schema -struct<> --- !query 18937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18938 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 18938 schema -struct<> --- !query 18938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18939 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 18939 schema -struct<> --- !query 18939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18940 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 18940 schema -struct<> --- !query 18940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18941 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 18941 schema -struct<> --- !query 18941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18942 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 18942 schema -struct<> --- !query 18942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18943 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 18943 schema -struct<> --- !query 18943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18944 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 18944 schema -struct<> --- !query 18944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18945 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 18945 schema -struct<> --- !query 18945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18946 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 18946 schema -struct<> --- !query 18946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18947 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18947 schema -struct<> --- !query 18947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18948 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18948 schema -struct<> --- !query 18948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18949 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 18949 schema -struct<> --- !query 18949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18950 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 18950 schema -struct<> --- !query 18950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18951 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 18951 schema -struct<> --- !query 18951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18952 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 18952 schema -struct<> --- !query 18952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18953 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 18953 schema -struct<> --- !query 18953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18954 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 18954 schema -struct<> --- !query 18954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18955 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 18955 schema -struct<> --- !query 18955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18956 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 18956 schema -struct> --- !query 18956 output -{"2":"2","2017-12-11 09:30:00":"2017-12-11 09:30:00"} - - --- !query 18957 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 18957 schema -struct<> --- !query 18957 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18958 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 18958 schema -struct<> --- !query 18958 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18959 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18959 schema -struct> --- !query 18959 output -{"2":2017-12-12 09:30:00.0,"2017-12-11 09:30:00":2017-12-11 09:30:00.0} - - --- !query 18960 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18960 schema -struct> --- !query 18960 output -{"2":2017-12-12 00:00:00.0,"2017-12-11 09:30:00":2017-12-11 09:30:00.0} - - --- !query 18961 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 18961 schema -struct<> --- !query 18961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18962 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 18962 schema -struct<> --- !query 18962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18963 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 18963 schema -struct<> --- !query 18963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18964 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 18964 schema -struct<> --- !query 18964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18965 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 18965 schema -struct<> --- !query 18965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18966 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 18966 schema -struct<> --- !query 18966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18967 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 18967 schema -struct<> --- !query 18967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18968 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 18968 schema -struct<> --- !query 18968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18969 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 18969 schema -struct<> --- !query 18969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18970 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 18970 schema -struct<> --- !query 18970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18971 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18971 schema -struct<> --- !query 18971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18972 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18972 schema -struct<> --- !query 18972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18973 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 18973 schema -struct<> --- !query 18973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18974 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 18974 schema -struct<> --- !query 18974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18975 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 18975 schema -struct<> --- !query 18975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18976 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 18976 schema -struct<> --- !query 18976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18977 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 18977 schema -struct<> --- !query 18977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18978 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 18978 schema -struct<> --- !query 18978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18979 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 18979 schema -struct<> --- !query 18979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18980 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 18980 schema -struct<> --- !query 18980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18981 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 18981 schema -struct<> --- !query 18981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18982 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 18982 schema -struct<> --- !query 18982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18983 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18983 schema -struct<> --- !query 18983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18984 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18984 schema -struct<> --- !query 18984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18985 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 18985 schema -struct<> --- !query 18985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18986 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 18986 schema -struct<> --- !query 18986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18987 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 18987 schema -struct<> --- !query 18987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 18988 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 18988 schema -struct<> --- !query 18988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 18989 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 18989 schema -struct<> --- !query 18989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 18990 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 18990 schema -struct<> --- !query 18990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 18991 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 18991 schema -struct<> --- !query 18991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 18992 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 18992 schema -struct> --- !query 18992 output -{2017-12-11 09:30:00.0:"2017-12-11 09:30:00",2017-12-12 09:30:00.0:"2"} - - --- !query 18993 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 18993 schema -struct<> --- !query 18993 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 18994 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 18994 schema -struct<> --- !query 18994 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 18995 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 18995 schema -struct> --- !query 18995 output -{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} - - --- !query 18996 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 18996 schema -struct> --- !query 18996 output -{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 00:00:00.0} - - --- !query 18997 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 18997 schema -struct<> --- !query 18997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 18998 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 18998 schema -struct<> --- !query 18998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 18999 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 18999 schema -struct<> --- !query 18999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19000 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 19000 schema -struct<> --- !query 19000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19001 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 19001 schema -struct<> --- !query 19001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19002 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 19002 schema -struct<> --- !query 19002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19003 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 19003 schema -struct<> --- !query 19003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19004 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 19004 schema -struct> --- !query 19004 output -{2017-12-11 09:30:00.0:"2017-12-11 09:30:00",2017-12-12 00:00:00.0:"2"} - - --- !query 19005 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 19005 schema -struct<> --- !query 19005 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19006 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 19006 schema -struct<> --- !query 19006 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19007 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19007 schema -struct> --- !query 19007 output -{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 00:00:00.0:2017-12-12 09:30:00.0} - - --- !query 19008 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19008 schema -struct> --- !query 19008 output -{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0,2017-12-12 00:00:00.0:2017-12-12 00:00:00.0} - - --- !query 19009 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 19009 schema -struct<> --- !query 19009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19010 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 19010 schema -struct<> --- !query 19010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19011 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 19011 schema -struct<> --- !query 19011 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19012 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 19012 schema -struct<> --- !query 19012 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19013 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 19013 schema -struct<> --- !query 19013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19014 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 19014 schema -struct<> --- !query 19014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19015 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 19015 schema -struct<> --- !query 19015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19016 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 19016 schema -struct<> --- !query 19016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19017 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 19017 schema -struct<> --- !query 19017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19018 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 19018 schema -struct<> --- !query 19018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19019 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19019 schema -struct<> --- !query 19019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19020 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19020 schema -struct<> --- !query 19020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 19021 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 19021 schema -struct<> --- !query 19021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19022 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 19022 schema -struct<> --- !query 19022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19023 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 19023 schema -struct<> --- !query 19023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19024 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 19024 schema -struct<> --- !query 19024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19025 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 19025 schema -struct<> --- !query 19025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19026 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 19026 schema -struct<> --- !query 19026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19027 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 19027 schema -struct<> --- !query 19027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19028 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 19028 schema -struct<> --- !query 19028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19029 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 19029 schema -struct<> --- !query 19029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19030 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 19030 schema -struct<> --- !query 19030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19031 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19031 schema -struct<> --- !query 19031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19032 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19032 schema -struct<> --- !query 19032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 19033 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 19033 schema -struct<> --- !query 19033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19034 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 19034 schema -struct<> --- !query 19034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19035 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 19035 schema -struct<> --- !query 19035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19036 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 19036 schema -struct<> --- !query 19036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19037 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 19037 schema -struct<> --- !query 19037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19038 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 19038 schema -struct<> --- !query 19038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19039 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 19039 schema -struct<> --- !query 19039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19040 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 19040 schema -struct<> --- !query 19040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19041 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 19041 schema -struct<> --- !query 19041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19042 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 19042 schema -struct<> --- !query 19042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19043 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19043 schema -struct<> --- !query 19043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19044 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19044 schema -struct<> --- !query 19044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 19045 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 19045 schema -struct<> --- !query 19045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19046 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 19046 schema -struct<> --- !query 19046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19047 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 19047 schema -struct<> --- !query 19047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19048 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 19048 schema -struct<> --- !query 19048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19049 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 19049 schema -struct<> --- !query 19049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19050 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 19050 schema -struct<> --- !query 19050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19051 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 19051 schema -struct<> --- !query 19051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19052 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 19052 schema -struct<> --- !query 19052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19053 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 19053 schema -struct<> --- !query 19053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19054 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 19054 schema -struct<> --- !query 19054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19055 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19055 schema -struct<> --- !query 19055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19056 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19056 schema -struct<> --- !query 19056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 19057 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 19057 schema -struct<> --- !query 19057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19058 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 19058 schema -struct<> --- !query 19058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19059 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 19059 schema -struct<> --- !query 19059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19060 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 19060 schema -struct<> --- !query 19060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19061 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 19061 schema -struct<> --- !query 19061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19062 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 19062 schema -struct<> --- !query 19062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19063 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 19063 schema -struct<> --- !query 19063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19064 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 19064 schema -struct<> --- !query 19064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19065 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 19065 schema -struct<> --- !query 19065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19066 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 19066 schema -struct<> --- !query 19066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19067 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19067 schema -struct<> --- !query 19067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19068 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19068 schema -struct<> --- !query 19068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 19069 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 19069 schema -struct<> --- !query 19069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19070 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 19070 schema -struct<> --- !query 19070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19071 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 19071 schema -struct<> --- !query 19071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19072 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 19072 schema -struct<> --- !query 19072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19073 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 19073 schema -struct<> --- !query 19073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19074 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 19074 schema -struct<> --- !query 19074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19075 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 19075 schema -struct<> --- !query 19075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19076 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 19076 schema -struct<> --- !query 19076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19077 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 19077 schema -struct<> --- !query 19077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19078 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 19078 schema -struct<> --- !query 19078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19079 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19079 schema -struct<> --- !query 19079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19080 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19080 schema -struct<> --- !query 19080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 19081 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 19081 schema -struct<> --- !query 19081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19082 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 19082 schema -struct<> --- !query 19082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19083 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 19083 schema -struct<> --- !query 19083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19084 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 19084 schema -struct<> --- !query 19084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19085 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 19085 schema -struct<> --- !query 19085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19086 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 19086 schema -struct<> --- !query 19086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19087 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 19087 schema -struct<> --- !query 19087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19088 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 19088 schema -struct<> --- !query 19088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19089 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 19089 schema -struct<> --- !query 19089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19090 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 19090 schema -struct<> --- !query 19090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19091 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19091 schema -struct<> --- !query 19091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19092 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19092 schema -struct<> --- !query 19092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 19093 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 19093 schema -struct<> --- !query 19093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19094 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 19094 schema -struct<> --- !query 19094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19095 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 19095 schema -struct<> --- !query 19095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19096 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 19096 schema -struct<> --- !query 19096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19097 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 19097 schema -struct<> --- !query 19097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19098 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 19098 schema -struct<> --- !query 19098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19099 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 19099 schema -struct<> --- !query 19099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19100 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 19100 schema -struct> --- !query 19100 output -{"2":"2","2017-12-11 09:30:00":"2017-12-11"} - - --- !query 19101 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 19101 schema -struct<> --- !query 19101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19102 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 19102 schema -struct<> --- !query 19102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19103 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19103 schema -struct> --- !query 19103 output -{"2":2017-12-12 09:30:00.0,"2017-12-11 09:30:00":2017-12-11 00:00:00.0} - - --- !query 19104 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19104 schema -struct> --- !query 19104 output -{"2":2017-12-12,"2017-12-11 09:30:00":2017-12-11} - - --- !query 19105 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 19105 schema -struct<> --- !query 19105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19106 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 19106 schema -struct<> --- !query 19106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19107 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 19107 schema -struct<> --- !query 19107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19108 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 19108 schema -struct<> --- !query 19108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19109 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 19109 schema -struct<> --- !query 19109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19110 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 19110 schema -struct<> --- !query 19110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19111 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 19111 schema -struct<> --- !query 19111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19112 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 19112 schema -struct<> --- !query 19112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19113 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 19113 schema -struct<> --- !query 19113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19114 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 19114 schema -struct<> --- !query 19114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19115 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19115 schema -struct<> --- !query 19115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19116 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19116 schema -struct<> --- !query 19116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 19117 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 19117 schema -struct<> --- !query 19117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19118 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 19118 schema -struct<> --- !query 19118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19119 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 19119 schema -struct<> --- !query 19119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19120 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 19120 schema -struct<> --- !query 19120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19121 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 19121 schema -struct<> --- !query 19121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19122 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 19122 schema -struct<> --- !query 19122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19123 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 19123 schema -struct<> --- !query 19123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19124 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 19124 schema -struct<> --- !query 19124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19125 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 19125 schema -struct<> --- !query 19125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19126 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 19126 schema -struct<> --- !query 19126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19127 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19127 schema -struct<> --- !query 19127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19128 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19128 schema -struct<> --- !query 19128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 19129 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 19129 schema -struct<> --- !query 19129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19130 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 19130 schema -struct<> --- !query 19130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19131 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 19131 schema -struct<> --- !query 19131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19132 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 19132 schema -struct<> --- !query 19132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19133 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 19133 schema -struct<> --- !query 19133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19134 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 19134 schema -struct<> --- !query 19134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19135 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 19135 schema -struct<> --- !query 19135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19136 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 19136 schema -struct> --- !query 19136 output -{2017-12-11 09:30:00.0:"2017-12-11",2017-12-12 09:30:00.0:"2"} - - --- !query 19137 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 19137 schema -struct<> --- !query 19137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19138 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 19138 schema -struct<> --- !query 19138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19139 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19139 schema -struct> --- !query 19139 output -{2017-12-11 09:30:00.0:2017-12-11 00:00:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} - - --- !query 19140 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19140 schema -struct> --- !query 19140 output -{2017-12-11 09:30:00.0:2017-12-11,2017-12-12 09:30:00.0:2017-12-12} - - --- !query 19141 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 19141 schema -struct<> --- !query 19141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19142 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 19142 schema -struct<> --- !query 19142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19143 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 19143 schema -struct<> --- !query 19143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19144 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 19144 schema -struct<> --- !query 19144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19145 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 19145 schema -struct<> --- !query 19145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19146 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 19146 schema -struct<> --- !query 19146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19147 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 19147 schema -struct<> --- !query 19147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19148 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 19148 schema -struct> --- !query 19148 output -{2017-12-11 09:30:00.0:"2017-12-11",2017-12-12 00:00:00.0:"2"} - - --- !query 19149 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 19149 schema -struct<> --- !query 19149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19150 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 19150 schema -struct<> --- !query 19150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19151 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19151 schema -struct> --- !query 19151 output -{2017-12-11 09:30:00.0:2017-12-11 00:00:00.0,2017-12-12 00:00:00.0:2017-12-12 09:30:00.0} - - --- !query 19152 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19152 schema -struct> --- !query 19152 output -{2017-12-11 09:30:00.0:2017-12-11,2017-12-12 00:00:00.0:2017-12-12} - - --- !query 19153 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 19153 schema -struct<> --- !query 19153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19154 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 19154 schema -struct<> --- !query 19154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19155 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 19155 schema -struct<> --- !query 19155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19156 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 19156 schema -struct<> --- !query 19156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19157 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 19157 schema -struct<> --- !query 19157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19158 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 19158 schema -struct<> --- !query 19158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19159 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 19159 schema -struct<> --- !query 19159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19160 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 19160 schema -struct<> --- !query 19160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19161 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 19161 schema -struct<> --- !query 19161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19162 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 19162 schema -struct<> --- !query 19162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19163 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19163 schema -struct<> --- !query 19163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19164 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19164 schema -struct<> --- !query 19164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19165 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 19165 schema -struct<> --- !query 19165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19166 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 19166 schema -struct<> --- !query 19166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19167 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 19167 schema -struct<> --- !query 19167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19168 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 19168 schema -struct<> --- !query 19168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19169 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 19169 schema -struct<> --- !query 19169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19170 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 19170 schema -struct<> --- !query 19170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19171 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 19171 schema -struct<> --- !query 19171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19172 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 19172 schema -struct<> --- !query 19172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19173 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 19173 schema -struct<> --- !query 19173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19174 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 19174 schema -struct<> --- !query 19174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19175 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19175 schema -struct<> --- !query 19175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19176 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19176 schema -struct<> --- !query 19176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19177 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 19177 schema -struct<> --- !query 19177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19178 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 19178 schema -struct<> --- !query 19178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19179 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as int)) FROM t --- !query 19179 schema -struct<> --- !query 19179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19180 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 19180 schema -struct<> --- !query 19180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19181 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as float)) FROM t --- !query 19181 schema -struct<> --- !query 19181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19182 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as double)) FROM t --- !query 19182 schema -struct<> --- !query 19182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19183 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 19183 schema -struct<> --- !query 19183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19184 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as string)) FROM t --- !query 19184 schema -struct<> --- !query 19184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19185 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2' as binary)) FROM t --- !query 19185 schema -struct<> --- !query 19185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19186 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 19186 schema -struct<> --- !query 19186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19187 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19187 schema -struct<> --- !query 19187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19188 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19188 schema -struct<> --- !query 19188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19189 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 19189 schema -struct<> --- !query 19189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19190 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 19190 schema -struct<> --- !query 19190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19191 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 19191 schema -struct<> --- !query 19191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19192 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 19192 schema -struct<> --- !query 19192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19193 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 19193 schema -struct<> --- !query 19193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19194 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 19194 schema -struct<> --- !query 19194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19195 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 19195 schema -struct<> --- !query 19195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19196 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 19196 schema -struct<> --- !query 19196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19197 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 19197 schema -struct<> --- !query 19197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19198 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 19198 schema -struct<> --- !query 19198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19199 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19199 schema -struct<> --- !query 19199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19200 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19200 schema -struct<> --- !query 19200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19201 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 19201 schema -struct<> --- !query 19201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19202 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 19202 schema -struct<> --- !query 19202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19203 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as int)) FROM t --- !query 19203 schema -struct<> --- !query 19203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19204 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 19204 schema -struct<> --- !query 19204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19205 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as float)) FROM t --- !query 19205 schema -struct<> --- !query 19205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19206 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as double)) FROM t --- !query 19206 schema -struct<> --- !query 19206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19207 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 19207 schema -struct<> --- !query 19207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19208 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as string)) FROM t --- !query 19208 schema -struct<> --- !query 19208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19209 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2' as binary)) FROM t --- !query 19209 schema -struct<> --- !query 19209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19210 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 19210 schema -struct<> --- !query 19210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19211 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19211 schema -struct<> --- !query 19211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19212 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19212 schema -struct<> --- !query 19212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19213 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 19213 schema -struct<> --- !query 19213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19214 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 19214 schema -struct<> --- !query 19214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19215 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as int)) FROM t --- !query 19215 schema -struct<> --- !query 19215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19216 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 19216 schema -struct<> --- !query 19216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19217 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as float)) FROM t --- !query 19217 schema -struct<> --- !query 19217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19218 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as double)) FROM t --- !query 19218 schema -struct<> --- !query 19218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19219 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 19219 schema -struct<> --- !query 19219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19220 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as string)) FROM t --- !query 19220 schema -struct<> --- !query 19220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19221 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2' as binary)) FROM t --- !query 19221 schema -struct<> --- !query 19221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19222 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 19222 schema -struct<> --- !query 19222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19223 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19223 schema -struct<> --- !query 19223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19224 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19224 schema -struct<> --- !query 19224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19225 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 19225 schema -struct<> --- !query 19225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19226 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 19226 schema -struct<> --- !query 19226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19227 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 19227 schema -struct<> --- !query 19227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19228 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 19228 schema -struct<> --- !query 19228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19229 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 19229 schema -struct<> --- !query 19229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19230 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 19230 schema -struct<> --- !query 19230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19231 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 19231 schema -struct<> --- !query 19231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19232 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 19232 schema -struct<> --- !query 19232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19233 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 19233 schema -struct<> --- !query 19233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19234 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 19234 schema -struct<> --- !query 19234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19235 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19235 schema -struct<> --- !query 19235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19236 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19236 schema -struct<> --- !query 19236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19237 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 19237 schema -struct> --- !query 19237 output -{"2":2,"2017-12-11":1} - - --- !query 19238 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 19238 schema -struct> --- !query 19238 output -{"2":2,"2017-12-11":1} - - --- !query 19239 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as int)) FROM t --- !query 19239 schema -struct> --- !query 19239 output -{"2":2,"2017-12-11":1} - - --- !query 19240 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 19240 schema -struct> --- !query 19240 output -{"2":2,"2017-12-11":1} - - --- !query 19241 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as float)) FROM t --- !query 19241 schema -struct> --- !query 19241 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19242 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as double)) FROM t --- !query 19242 schema -struct> --- !query 19242 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19243 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 19243 schema -struct> --- !query 19243 output -{"2":2,"2017-12-11":1} - - --- !query 19244 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as string)) FROM t --- !query 19244 schema -struct> --- !query 19244 output -{"2":"2","2017-12-11":"1"} - - --- !query 19245 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2' as binary)) FROM t --- !query 19245 schema -struct<> --- !query 19245 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 19246 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 19246 schema -struct<> --- !query 19246 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 19247 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19247 schema -struct<> --- !query 19247 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 19248 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19248 schema -struct<> --- !query 19248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 19249 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 19249 schema -struct<> --- !query 19249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19250 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 19250 schema -struct<> --- !query 19250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19251 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as int)) FROM t --- !query 19251 schema -struct<> --- !query 19251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19252 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 19252 schema -struct<> --- !query 19252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19253 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as float)) FROM t --- !query 19253 schema -struct<> --- !query 19253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19254 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as double)) FROM t --- !query 19254 schema -struct<> --- !query 19254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19255 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 19255 schema -struct<> --- !query 19255 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19256 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as string)) FROM t --- !query 19256 schema -struct<> --- !query 19256 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19257 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 19257 schema -struct<> --- !query 19257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19258 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 19258 schema -struct<> --- !query 19258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19259 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19259 schema -struct<> --- !query 19259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19260 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19260 schema -struct<> --- !query 19260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19261 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 19261 schema -struct<> --- !query 19261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19262 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 19262 schema -struct<> --- !query 19262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19263 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 19263 schema -struct<> --- !query 19263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19264 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 19264 schema -struct<> --- !query 19264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19265 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 19265 schema -struct<> --- !query 19265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19266 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 19266 schema -struct<> --- !query 19266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19267 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 19267 schema -struct<> --- !query 19267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19268 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 19268 schema -struct<> --- !query 19268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS TINYINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19269 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 19269 schema -struct<> --- !query 19269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19270 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 19270 schema -struct<> --- !query 19270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19271 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19271 schema -struct<> --- !query 19271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19272 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19272 schema -struct<> --- !query 19272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19273 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 19273 schema -struct> --- !query 19273 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19274 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 19274 schema -struct> --- !query 19274 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19275 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 19275 schema -struct> --- !query 19275 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19276 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 19276 schema -struct> --- !query 19276 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19277 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 19277 schema -struct> --- !query 19277 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19278 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 19278 schema -struct> --- !query 19278 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19279 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 19279 schema -struct> --- !query 19279 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19280 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 19280 schema -struct> --- !query 19280 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 19281 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 19281 schema -struct<> --- !query 19281 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 19282 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 19282 schema -struct<> --- !query 19282 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 19283 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19283 schema -struct<> --- !query 19283 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 19284 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19284 schema -struct<> --- !query 19284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 19285 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 19285 schema -struct> --- !query 19285 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19286 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 19286 schema -struct> --- !query 19286 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19287 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 19287 schema -struct> --- !query 19287 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19288 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 19288 schema -struct> --- !query 19288 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19289 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 19289 schema -struct> --- !query 19289 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19290 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 19290 schema -struct> --- !query 19290 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19291 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 19291 schema -struct> --- !query 19291 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19292 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 19292 schema -struct> --- !query 19292 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 19293 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 19293 schema -struct<> --- !query 19293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, binary]; line 1 pos 7 - - --- !query 19294 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 19294 schema -struct<> --- !query 19294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, boolean]; line 1 pos 7 - - --- !query 19295 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19295 schema -struct<> --- !query 19295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, timestamp]; line 1 pos 7 - - --- !query 19296 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19296 schema -struct<> --- !query 19296 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [tinyint, date]; line 1 pos 7 - - --- !query 19297 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 19297 schema -struct<> --- !query 19297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19298 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 19298 schema -struct<> --- !query 19298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19299 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 19299 schema -struct<> --- !query 19299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19300 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 19300 schema -struct<> --- !query 19300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19301 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 19301 schema -struct<> --- !query 19301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19302 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 19302 schema -struct<> --- !query 19302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19303 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 19303 schema -struct<> --- !query 19303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19304 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 19304 schema -struct<> --- !query 19304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19305 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 19305 schema -struct<> --- !query 19305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19306 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 19306 schema -struct<> --- !query 19306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19307 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19307 schema -struct<> --- !query 19307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19308 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19308 schema -struct<> --- !query 19308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19309 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 19309 schema -struct<> --- !query 19309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19310 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 19310 schema -struct<> --- !query 19310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19311 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 19311 schema -struct<> --- !query 19311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19312 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 19312 schema -struct<> --- !query 19312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19313 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 19313 schema -struct<> --- !query 19313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19314 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 19314 schema -struct<> --- !query 19314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19315 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 19315 schema -struct<> --- !query 19315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19316 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 19316 schema -struct<> --- !query 19316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19317 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 19317 schema -struct<> --- !query 19317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19318 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 19318 schema -struct<> --- !query 19318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19319 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19319 schema -struct<> --- !query 19319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19320 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19320 schema -struct<> --- !query 19320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19321 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 19321 schema -struct<> --- !query 19321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19322 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 19322 schema -struct<> --- !query 19322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19323 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as int)) FROM t --- !query 19323 schema -struct<> --- !query 19323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19324 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 19324 schema -struct<> --- !query 19324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19325 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as float)) FROM t --- !query 19325 schema -struct<> --- !query 19325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19326 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as double)) FROM t --- !query 19326 schema -struct<> --- !query 19326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19327 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 19327 schema -struct<> --- !query 19327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19328 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as string)) FROM t --- !query 19328 schema -struct<> --- !query 19328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19329 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2' as binary)) FROM t --- !query 19329 schema -struct<> --- !query 19329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19330 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 19330 schema -struct<> --- !query 19330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19331 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19331 schema -struct<> --- !query 19331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19332 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19332 schema -struct<> --- !query 19332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19333 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 19333 schema -struct<> --- !query 19333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19334 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 19334 schema -struct<> --- !query 19334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19335 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 19335 schema -struct<> --- !query 19335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19336 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 19336 schema -struct<> --- !query 19336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19337 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 19337 schema -struct<> --- !query 19337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19338 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 19338 schema -struct<> --- !query 19338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19339 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 19339 schema -struct<> --- !query 19339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19340 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 19340 schema -struct<> --- !query 19340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19341 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 19341 schema -struct<> --- !query 19341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19342 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 19342 schema -struct<> --- !query 19342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19343 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19343 schema -struct<> --- !query 19343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19344 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19344 schema -struct<> --- !query 19344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19345 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 19345 schema -struct<> --- !query 19345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19346 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 19346 schema -struct<> --- !query 19346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19347 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as int)) FROM t --- !query 19347 schema -struct<> --- !query 19347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19348 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 19348 schema -struct<> --- !query 19348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19349 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as float)) FROM t --- !query 19349 schema -struct<> --- !query 19349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19350 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as double)) FROM t --- !query 19350 schema -struct<> --- !query 19350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19351 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 19351 schema -struct<> --- !query 19351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19352 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as string)) FROM t --- !query 19352 schema -struct<> --- !query 19352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19353 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2' as binary)) FROM t --- !query 19353 schema -struct<> --- !query 19353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19354 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 19354 schema -struct<> --- !query 19354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19355 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19355 schema -struct<> --- !query 19355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19356 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19356 schema -struct<> --- !query 19356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19357 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 19357 schema -struct<> --- !query 19357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19358 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 19358 schema -struct<> --- !query 19358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19359 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as int)) FROM t --- !query 19359 schema -struct<> --- !query 19359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19360 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 19360 schema -struct<> --- !query 19360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19361 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as float)) FROM t --- !query 19361 schema -struct<> --- !query 19361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19362 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as double)) FROM t --- !query 19362 schema -struct<> --- !query 19362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19363 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 19363 schema -struct<> --- !query 19363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19364 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as string)) FROM t --- !query 19364 schema -struct<> --- !query 19364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19365 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2' as binary)) FROM t --- !query 19365 schema -struct<> --- !query 19365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19366 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 19366 schema -struct<> --- !query 19366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19367 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19367 schema -struct<> --- !query 19367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19368 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19368 schema -struct<> --- !query 19368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19369 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 19369 schema -struct<> --- !query 19369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19370 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 19370 schema -struct<> --- !query 19370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19371 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 19371 schema -struct<> --- !query 19371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19372 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 19372 schema -struct<> --- !query 19372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19373 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 19373 schema -struct<> --- !query 19373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19374 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 19374 schema -struct<> --- !query 19374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19375 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 19375 schema -struct<> --- !query 19375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19376 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 19376 schema -struct<> --- !query 19376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19377 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 19377 schema -struct<> --- !query 19377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19378 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 19378 schema -struct<> --- !query 19378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19379 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19379 schema -struct<> --- !query 19379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19380 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19380 schema -struct<> --- !query 19380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19381 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 19381 schema -struct> --- !query 19381 output -{"2":2,"2017-12-11":1} - - --- !query 19382 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 19382 schema -struct> --- !query 19382 output -{"2":2,"2017-12-11":1} - - --- !query 19383 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as int)) FROM t --- !query 19383 schema -struct> --- !query 19383 output -{"2":2,"2017-12-11":1} - - --- !query 19384 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 19384 schema -struct> --- !query 19384 output -{"2":2,"2017-12-11":1} - - --- !query 19385 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as float)) FROM t --- !query 19385 schema -struct> --- !query 19385 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19386 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as double)) FROM t --- !query 19386 schema -struct> --- !query 19386 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19387 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 19387 schema -struct> --- !query 19387 output -{"2":2,"2017-12-11":1} - - --- !query 19388 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as string)) FROM t --- !query 19388 schema -struct> --- !query 19388 output -{"2":"2","2017-12-11":"1"} - - --- !query 19389 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2' as binary)) FROM t --- !query 19389 schema -struct<> --- !query 19389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 19390 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 19390 schema -struct<> --- !query 19390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 19391 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19391 schema -struct<> --- !query 19391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 19392 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19392 schema -struct<> --- !query 19392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 19393 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 19393 schema -struct<> --- !query 19393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19394 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 19394 schema -struct<> --- !query 19394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19395 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as int)) FROM t --- !query 19395 schema -struct<> --- !query 19395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19396 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 19396 schema -struct<> --- !query 19396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19397 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as float)) FROM t --- !query 19397 schema -struct<> --- !query 19397 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19398 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as double)) FROM t --- !query 19398 schema -struct<> --- !query 19398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19399 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 19399 schema -struct<> --- !query 19399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19400 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as string)) FROM t --- !query 19400 schema -struct<> --- !query 19400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19401 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 19401 schema -struct<> --- !query 19401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19402 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 19402 schema -struct<> --- !query 19402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19403 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19403 schema -struct<> --- !query 19403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19404 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19404 schema -struct<> --- !query 19404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19405 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 19405 schema -struct<> --- !query 19405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS SMALLINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19406 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 19406 schema -struct<> --- !query 19406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19407 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 19407 schema -struct<> --- !query 19407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19408 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 19408 schema -struct<> --- !query 19408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19409 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 19409 schema -struct<> --- !query 19409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19410 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 19410 schema -struct<> --- !query 19410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19411 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 19411 schema -struct<> --- !query 19411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19412 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 19412 schema -struct<> --- !query 19412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS SMALLINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19413 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 19413 schema -struct<> --- !query 19413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19414 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 19414 schema -struct<> --- !query 19414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19415 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19415 schema -struct<> --- !query 19415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19416 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19416 schema -struct<> --- !query 19416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19417 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 19417 schema -struct> --- !query 19417 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19418 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 19418 schema -struct> --- !query 19418 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19419 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 19419 schema -struct> --- !query 19419 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19420 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 19420 schema -struct> --- !query 19420 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19421 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 19421 schema -struct> --- !query 19421 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19422 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 19422 schema -struct> --- !query 19422 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19423 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 19423 schema -struct> --- !query 19423 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19424 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 19424 schema -struct> --- !query 19424 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 19425 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 19425 schema -struct<> --- !query 19425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 19426 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 19426 schema -struct<> --- !query 19426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 19427 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19427 schema -struct<> --- !query 19427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 19428 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19428 schema -struct<> --- !query 19428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 19429 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 19429 schema -struct> --- !query 19429 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19430 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 19430 schema -struct> --- !query 19430 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19431 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 19431 schema -struct> --- !query 19431 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19432 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 19432 schema -struct> --- !query 19432 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19433 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 19433 schema -struct> --- !query 19433 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19434 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 19434 schema -struct> --- !query 19434 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19435 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 19435 schema -struct> --- !query 19435 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19436 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 19436 schema -struct> --- !query 19436 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 19437 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 19437 schema -struct<> --- !query 19437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, binary]; line 1 pos 7 - - --- !query 19438 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 19438 schema -struct<> --- !query 19438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, boolean]; line 1 pos 7 - - --- !query 19439 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19439 schema -struct<> --- !query 19439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, timestamp]; line 1 pos 7 - - --- !query 19440 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19440 schema -struct<> --- !query 19440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [smallint, date]; line 1 pos 7 - - --- !query 19441 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 19441 schema -struct<> --- !query 19441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19442 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 19442 schema -struct<> --- !query 19442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19443 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 19443 schema -struct<> --- !query 19443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19444 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 19444 schema -struct<> --- !query 19444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19445 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 19445 schema -struct<> --- !query 19445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19446 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 19446 schema -struct<> --- !query 19446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19447 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 19447 schema -struct<> --- !query 19447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19448 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 19448 schema -struct<> --- !query 19448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19449 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 19449 schema -struct<> --- !query 19449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19450 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 19450 schema -struct<> --- !query 19450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19451 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19451 schema -struct<> --- !query 19451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19452 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19452 schema -struct<> --- !query 19452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19453 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 19453 schema -struct<> --- !query 19453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19454 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 19454 schema -struct<> --- !query 19454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19455 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as int)) FROM t --- !query 19455 schema -struct<> --- !query 19455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19456 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 19456 schema -struct<> --- !query 19456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19457 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as float)) FROM t --- !query 19457 schema -struct<> --- !query 19457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19458 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as double)) FROM t --- !query 19458 schema -struct<> --- !query 19458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19459 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 19459 schema -struct<> --- !query 19459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19460 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as string)) FROM t --- !query 19460 schema -struct<> --- !query 19460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19461 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 19461 schema -struct<> --- !query 19461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19462 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 19462 schema -struct<> --- !query 19462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19463 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19463 schema -struct<> --- !query 19463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19464 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19464 schema -struct<> --- !query 19464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19465 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 19465 schema -struct<> --- !query 19465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19466 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as smallint)) FROM t --- !query 19466 schema -struct<> --- !query 19466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19467 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as int)) FROM t --- !query 19467 schema -struct<> --- !query 19467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19468 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as bigint)) FROM t --- !query 19468 schema -struct<> --- !query 19468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19469 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as float)) FROM t --- !query 19469 schema -struct<> --- !query 19469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19470 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as double)) FROM t --- !query 19470 schema -struct<> --- !query 19470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19471 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 19471 schema -struct<> --- !query 19471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19472 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as string)) FROM t --- !query 19472 schema -struct<> --- !query 19472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19473 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2' as binary)) FROM t --- !query 19473 schema -struct<> --- !query 19473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19474 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast(2 as boolean)) FROM t --- !query 19474 schema -struct<> --- !query 19474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19475 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19475 schema -struct<> --- !query 19475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19476 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19476 schema -struct<> --- !query 19476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19477 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 19477 schema -struct<> --- !query 19477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19478 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 19478 schema -struct<> --- !query 19478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19479 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as int)) FROM t --- !query 19479 schema -struct<> --- !query 19479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19480 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 19480 schema -struct<> --- !query 19480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19481 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as float)) FROM t --- !query 19481 schema -struct<> --- !query 19481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19482 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as double)) FROM t --- !query 19482 schema -struct<> --- !query 19482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19483 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 19483 schema -struct<> --- !query 19483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19484 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as string)) FROM t --- !query 19484 schema -struct<> --- !query 19484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19485 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 19485 schema -struct<> --- !query 19485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19486 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 19486 schema -struct<> --- !query 19486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19487 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19487 schema -struct<> --- !query 19487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19488 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19488 schema -struct<> --- !query 19488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19489 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 19489 schema -struct<> --- !query 19489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19490 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as smallint)) FROM t --- !query 19490 schema -struct<> --- !query 19490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19491 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as int)) FROM t --- !query 19491 schema -struct<> --- !query 19491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19492 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as bigint)) FROM t --- !query 19492 schema -struct<> --- !query 19492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19493 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as float)) FROM t --- !query 19493 schema -struct<> --- !query 19493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19494 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as double)) FROM t --- !query 19494 schema -struct<> --- !query 19494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19495 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 19495 schema -struct<> --- !query 19495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19496 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as string)) FROM t --- !query 19496 schema -struct<> --- !query 19496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19497 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2' as binary)) FROM t --- !query 19497 schema -struct<> --- !query 19497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19498 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast(2 as boolean)) FROM t --- !query 19498 schema -struct<> --- !query 19498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19499 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19499 schema -struct<> --- !query 19499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19500 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19500 schema -struct<> --- !query 19500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19501 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 19501 schema -struct<> --- !query 19501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19502 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as smallint)) FROM t --- !query 19502 schema -struct<> --- !query 19502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19503 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as int)) FROM t --- !query 19503 schema -struct<> --- !query 19503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19504 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as bigint)) FROM t --- !query 19504 schema -struct<> --- !query 19504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19505 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as float)) FROM t --- !query 19505 schema -struct<> --- !query 19505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19506 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as double)) FROM t --- !query 19506 schema -struct<> --- !query 19506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19507 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 19507 schema -struct<> --- !query 19507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19508 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as string)) FROM t --- !query 19508 schema -struct<> --- !query 19508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19509 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2' as binary)) FROM t --- !query 19509 schema -struct<> --- !query 19509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19510 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast(2 as boolean)) FROM t --- !query 19510 schema -struct<> --- !query 19510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19511 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19511 schema -struct<> --- !query 19511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19512 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19512 schema -struct<> --- !query 19512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19513 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 19513 schema -struct<> --- !query 19513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19514 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 19514 schema -struct<> --- !query 19514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19515 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 19515 schema -struct<> --- !query 19515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19516 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 19516 schema -struct<> --- !query 19516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19517 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 19517 schema -struct<> --- !query 19517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19518 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 19518 schema -struct<> --- !query 19518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19519 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 19519 schema -struct<> --- !query 19519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19520 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 19520 schema -struct<> --- !query 19520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19521 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 19521 schema -struct<> --- !query 19521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19522 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 19522 schema -struct<> --- !query 19522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19523 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19523 schema -struct<> --- !query 19523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19524 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19524 schema -struct<> --- !query 19524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19525 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 19525 schema -struct> --- !query 19525 output -{"2":2,"2017-12-11":1} - - --- !query 19526 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as smallint)) FROM t --- !query 19526 schema -struct> --- !query 19526 output -{"2":2,"2017-12-11":1} - - --- !query 19527 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as int)) FROM t --- !query 19527 schema -struct> --- !query 19527 output -{"2":2,"2017-12-11":1} - - --- !query 19528 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as bigint)) FROM t --- !query 19528 schema -struct> --- !query 19528 output -{"2":2,"2017-12-11":1} - - --- !query 19529 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as float)) FROM t --- !query 19529 schema -struct> --- !query 19529 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19530 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as double)) FROM t --- !query 19530 schema -struct> --- !query 19530 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19531 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 19531 schema -struct> --- !query 19531 output -{"2":2,"2017-12-11":1} - - --- !query 19532 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as string)) FROM t --- !query 19532 schema -struct> --- !query 19532 output -{"2":"2","2017-12-11":"1"} - - --- !query 19533 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2' as binary)) FROM t --- !query 19533 schema -struct<> --- !query 19533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 19534 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast(2 as boolean)) FROM t --- !query 19534 schema -struct<> --- !query 19534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 19535 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19535 schema -struct<> --- !query 19535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 19536 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19536 schema -struct<> --- !query 19536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS INT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 19537 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 19537 schema -struct<> --- !query 19537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19538 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 19538 schema -struct<> --- !query 19538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19539 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as int)) FROM t --- !query 19539 schema -struct<> --- !query 19539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19540 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 19540 schema -struct<> --- !query 19540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19541 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as float)) FROM t --- !query 19541 schema -struct<> --- !query 19541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19542 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as double)) FROM t --- !query 19542 schema -struct<> --- !query 19542 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19543 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 19543 schema -struct<> --- !query 19543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19544 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as string)) FROM t --- !query 19544 schema -struct<> --- !query 19544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19545 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2' as binary)) FROM t --- !query 19545 schema -struct<> --- !query 19545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19546 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 19546 schema -struct<> --- !query 19546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19547 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19547 schema -struct<> --- !query 19547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19548 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19548 schema -struct<> --- !query 19548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19549 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 19549 schema -struct<> --- !query 19549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19550 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 19550 schema -struct<> --- !query 19550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS INT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19551 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as int)) FROM t --- !query 19551 schema -struct<> --- !query 19551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19552 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 19552 schema -struct<> --- !query 19552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19553 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as float)) FROM t --- !query 19553 schema -struct<> --- !query 19553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19554 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as double)) FROM t --- !query 19554 schema -struct<> --- !query 19554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19555 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 19555 schema -struct<> --- !query 19555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19556 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as string)) FROM t --- !query 19556 schema -struct<> --- !query 19556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS INT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19557 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 19557 schema -struct<> --- !query 19557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19558 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 19558 schema -struct<> --- !query 19558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19559 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19559 schema -struct<> --- !query 19559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19560 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19560 schema -struct<> --- !query 19560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19561 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 19561 schema -struct> --- !query 19561 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19562 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 19562 schema -struct> --- !query 19562 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19563 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 19563 schema -struct> --- !query 19563 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19564 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 19564 schema -struct> --- !query 19564 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19565 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 19565 schema -struct> --- !query 19565 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19566 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 19566 schema -struct> --- !query 19566 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19567 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 19567 schema -struct> --- !query 19567 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19568 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 19568 schema -struct> --- !query 19568 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 19569 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 19569 schema -struct<> --- !query 19569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 19570 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 19570 schema -struct<> --- !query 19570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 19571 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19571 schema -struct<> --- !query 19571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 19572 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19572 schema -struct<> --- !query 19572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 19573 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 19573 schema -struct> --- !query 19573 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19574 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 19574 schema -struct> --- !query 19574 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19575 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 19575 schema -struct> --- !query 19575 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19576 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 19576 schema -struct> --- !query 19576 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19577 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 19577 schema -struct> --- !query 19577 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19578 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 19578 schema -struct> --- !query 19578 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19579 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 19579 schema -struct> --- !query 19579 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19580 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 19580 schema -struct> --- !query 19580 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 19581 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 19581 schema -struct<> --- !query 19581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, binary]; line 1 pos 7 - - --- !query 19582 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 19582 schema -struct<> --- !query 19582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, boolean]; line 1 pos 7 - - --- !query 19583 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19583 schema -struct<> --- !query 19583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, timestamp]; line 1 pos 7 - - --- !query 19584 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19584 schema -struct<> --- !query 19584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [int, date]; line 1 pos 7 - - --- !query 19585 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 19585 schema -struct<> --- !query 19585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19586 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 19586 schema -struct<> --- !query 19586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19587 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 19587 schema -struct<> --- !query 19587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19588 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 19588 schema -struct<> --- !query 19588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19589 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 19589 schema -struct<> --- !query 19589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19590 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 19590 schema -struct<> --- !query 19590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19591 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 19591 schema -struct<> --- !query 19591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19592 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 19592 schema -struct<> --- !query 19592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19593 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 19593 schema -struct<> --- !query 19593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19594 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 19594 schema -struct<> --- !query 19594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19595 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19595 schema -struct<> --- !query 19595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19596 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19596 schema -struct<> --- !query 19596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19597 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 19597 schema -struct<> --- !query 19597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19598 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 19598 schema -struct<> --- !query 19598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19599 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as int)) FROM t --- !query 19599 schema -struct<> --- !query 19599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19600 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 19600 schema -struct<> --- !query 19600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19601 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as float)) FROM t --- !query 19601 schema -struct<> --- !query 19601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19602 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as double)) FROM t --- !query 19602 schema -struct<> --- !query 19602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19603 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 19603 schema -struct<> --- !query 19603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19604 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as string)) FROM t --- !query 19604 schema -struct<> --- !query 19604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19605 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 19605 schema -struct<> --- !query 19605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19606 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 19606 schema -struct<> --- !query 19606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19607 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19607 schema -struct<> --- !query 19607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19608 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19608 schema -struct<> --- !query 19608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19609 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 19609 schema -struct<> --- !query 19609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19610 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as smallint)) FROM t --- !query 19610 schema -struct<> --- !query 19610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19611 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as int)) FROM t --- !query 19611 schema -struct<> --- !query 19611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19612 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as bigint)) FROM t --- !query 19612 schema -struct<> --- !query 19612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19613 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as float)) FROM t --- !query 19613 schema -struct<> --- !query 19613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19614 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as double)) FROM t --- !query 19614 schema -struct<> --- !query 19614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19615 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 19615 schema -struct<> --- !query 19615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19616 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as string)) FROM t --- !query 19616 schema -struct<> --- !query 19616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19617 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2' as binary)) FROM t --- !query 19617 schema -struct<> --- !query 19617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19618 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast(2 as boolean)) FROM t --- !query 19618 schema -struct<> --- !query 19618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19619 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19619 schema -struct<> --- !query 19619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19620 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19620 schema -struct<> --- !query 19620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19621 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 19621 schema -struct<> --- !query 19621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19622 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 19622 schema -struct<> --- !query 19622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19623 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as int)) FROM t --- !query 19623 schema -struct<> --- !query 19623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19624 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 19624 schema -struct<> --- !query 19624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19625 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as float)) FROM t --- !query 19625 schema -struct<> --- !query 19625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19626 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as double)) FROM t --- !query 19626 schema -struct<> --- !query 19626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19627 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 19627 schema -struct<> --- !query 19627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19628 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as string)) FROM t --- !query 19628 schema -struct<> --- !query 19628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19629 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 19629 schema -struct<> --- !query 19629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19630 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 19630 schema -struct<> --- !query 19630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19631 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19631 schema -struct<> --- !query 19631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19632 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19632 schema -struct<> --- !query 19632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19633 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 19633 schema -struct<> --- !query 19633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19634 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as smallint)) FROM t --- !query 19634 schema -struct<> --- !query 19634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19635 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as int)) FROM t --- !query 19635 schema -struct<> --- !query 19635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19636 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as bigint)) FROM t --- !query 19636 schema -struct<> --- !query 19636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19637 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as float)) FROM t --- !query 19637 schema -struct<> --- !query 19637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19638 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as double)) FROM t --- !query 19638 schema -struct<> --- !query 19638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19639 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 19639 schema -struct<> --- !query 19639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19640 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as string)) FROM t --- !query 19640 schema -struct<> --- !query 19640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19641 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2' as binary)) FROM t --- !query 19641 schema -struct<> --- !query 19641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19642 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast(2 as boolean)) FROM t --- !query 19642 schema -struct<> --- !query 19642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19643 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19643 schema -struct<> --- !query 19643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19644 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19644 schema -struct<> --- !query 19644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19645 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 19645 schema -struct<> --- !query 19645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19646 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as smallint)) FROM t --- !query 19646 schema -struct<> --- !query 19646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19647 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as int)) FROM t --- !query 19647 schema -struct<> --- !query 19647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19648 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as bigint)) FROM t --- !query 19648 schema -struct<> --- !query 19648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19649 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as float)) FROM t --- !query 19649 schema -struct<> --- !query 19649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19650 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as double)) FROM t --- !query 19650 schema -struct<> --- !query 19650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19651 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 19651 schema -struct<> --- !query 19651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19652 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as string)) FROM t --- !query 19652 schema -struct<> --- !query 19652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19653 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2' as binary)) FROM t --- !query 19653 schema -struct<> --- !query 19653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19654 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast(2 as boolean)) FROM t --- !query 19654 schema -struct<> --- !query 19654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19655 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19655 schema -struct<> --- !query 19655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19656 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19656 schema -struct<> --- !query 19656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19657 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 19657 schema -struct<> --- !query 19657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19658 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 19658 schema -struct<> --- !query 19658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19659 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 19659 schema -struct<> --- !query 19659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19660 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 19660 schema -struct<> --- !query 19660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19661 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 19661 schema -struct<> --- !query 19661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19662 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 19662 schema -struct<> --- !query 19662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19663 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 19663 schema -struct<> --- !query 19663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19664 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 19664 schema -struct<> --- !query 19664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19665 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 19665 schema -struct<> --- !query 19665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19666 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 19666 schema -struct<> --- !query 19666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19667 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19667 schema -struct<> --- !query 19667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19668 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19668 schema -struct<> --- !query 19668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19669 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 19669 schema -struct> --- !query 19669 output -{"2":2,"2017-12-11":1} - - --- !query 19670 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as smallint)) FROM t --- !query 19670 schema -struct> --- !query 19670 output -{"2":2,"2017-12-11":1} - - --- !query 19671 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as int)) FROM t --- !query 19671 schema -struct> --- !query 19671 output -{"2":2,"2017-12-11":1} - - --- !query 19672 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as bigint)) FROM t --- !query 19672 schema -struct> --- !query 19672 output -{"2":2,"2017-12-11":1} - - --- !query 19673 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as float)) FROM t --- !query 19673 schema -struct> --- !query 19673 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19674 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as double)) FROM t --- !query 19674 schema -struct> --- !query 19674 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19675 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 19675 schema -struct> --- !query 19675 output -{"2":2,"2017-12-11":1} - - --- !query 19676 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as string)) FROM t --- !query 19676 schema -struct> --- !query 19676 output -{"2":"2","2017-12-11":"1"} - - --- !query 19677 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2' as binary)) FROM t --- !query 19677 schema -struct<> --- !query 19677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 19678 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast(2 as boolean)) FROM t --- !query 19678 schema -struct<> --- !query 19678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 19679 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19679 schema -struct<> --- !query 19679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 19680 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19680 schema -struct<> --- !query 19680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 19681 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 19681 schema -struct<> --- !query 19681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19682 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 19682 schema -struct<> --- !query 19682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19683 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as int)) FROM t --- !query 19683 schema -struct<> --- !query 19683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19684 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 19684 schema -struct<> --- !query 19684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19685 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as float)) FROM t --- !query 19685 schema -struct<> --- !query 19685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19686 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as double)) FROM t --- !query 19686 schema -struct<> --- !query 19686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19687 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 19687 schema -struct<> --- !query 19687 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19688 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as string)) FROM t --- !query 19688 schema -struct<> --- !query 19688 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19689 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2' as binary)) FROM t --- !query 19689 schema -struct<> --- !query 19689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19690 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 19690 schema -struct<> --- !query 19690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19691 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19691 schema -struct<> --- !query 19691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19692 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19692 schema -struct<> --- !query 19692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19693 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 19693 schema -struct<> --- !query 19693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19694 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 19694 schema -struct<> --- !query 19694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19695 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as int)) FROM t --- !query 19695 schema -struct<> --- !query 19695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS BIGINT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19696 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 19696 schema -struct<> --- !query 19696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19697 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as float)) FROM t --- !query 19697 schema -struct<> --- !query 19697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19698 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as double)) FROM t --- !query 19698 schema -struct<> --- !query 19698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19699 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 19699 schema -struct<> --- !query 19699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19700 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as string)) FROM t --- !query 19700 schema -struct<> --- !query 19700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS BIGINT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19701 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 19701 schema -struct<> --- !query 19701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19702 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 19702 schema -struct<> --- !query 19702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19703 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19703 schema -struct<> --- !query 19703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19704 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19704 schema -struct<> --- !query 19704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19705 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 19705 schema -struct> --- !query 19705 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19706 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 19706 schema -struct> --- !query 19706 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19707 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 19707 schema -struct> --- !query 19707 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19708 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 19708 schema -struct> --- !query 19708 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19709 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 19709 schema -struct> --- !query 19709 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19710 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 19710 schema -struct> --- !query 19710 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19711 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 19711 schema -struct> --- !query 19711 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 19712 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 19712 schema -struct> --- !query 19712 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 19713 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 19713 schema -struct<> --- !query 19713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 19714 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 19714 schema -struct<> --- !query 19714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 19715 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19715 schema -struct<> --- !query 19715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 19716 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19716 schema -struct<> --- !query 19716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 19717 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 19717 schema -struct> --- !query 19717 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19718 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 19718 schema -struct> --- !query 19718 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19719 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 19719 schema -struct> --- !query 19719 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19720 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 19720 schema -struct> --- !query 19720 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19721 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 19721 schema -struct> --- !query 19721 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19722 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 19722 schema -struct> --- !query 19722 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19723 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 19723 schema -struct> --- !query 19723 output -{2017-12-11:1,2017-12-12:2} - - --- !query 19724 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 19724 schema -struct> --- !query 19724 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 19725 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 19725 schema -struct<> --- !query 19725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, binary]; line 1 pos 7 - - --- !query 19726 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 19726 schema -struct<> --- !query 19726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, boolean]; line 1 pos 7 - - --- !query 19727 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19727 schema -struct<> --- !query 19727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, timestamp]; line 1 pos 7 - - --- !query 19728 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19728 schema -struct<> --- !query 19728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [bigint, date]; line 1 pos 7 - - --- !query 19729 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 19729 schema -struct<> --- !query 19729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19730 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 19730 schema -struct<> --- !query 19730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19731 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 19731 schema -struct<> --- !query 19731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19732 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 19732 schema -struct<> --- !query 19732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19733 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 19733 schema -struct<> --- !query 19733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19734 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 19734 schema -struct<> --- !query 19734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19735 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 19735 schema -struct<> --- !query 19735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19736 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 19736 schema -struct<> --- !query 19736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19737 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 19737 schema -struct<> --- !query 19737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19738 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 19738 schema -struct<> --- !query 19738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19739 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19739 schema -struct<> --- !query 19739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19740 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19740 schema -struct<> --- !query 19740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19741 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 19741 schema -struct<> --- !query 19741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19742 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 19742 schema -struct<> --- !query 19742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19743 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as int)) FROM t --- !query 19743 schema -struct<> --- !query 19743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19744 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 19744 schema -struct<> --- !query 19744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19745 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as float)) FROM t --- !query 19745 schema -struct<> --- !query 19745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19746 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as double)) FROM t --- !query 19746 schema -struct<> --- !query 19746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19747 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 19747 schema -struct<> --- !query 19747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19748 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as string)) FROM t --- !query 19748 schema -struct<> --- !query 19748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19749 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 19749 schema -struct<> --- !query 19749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19750 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 19750 schema -struct<> --- !query 19750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19751 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19751 schema -struct<> --- !query 19751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19752 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19752 schema -struct<> --- !query 19752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19753 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 19753 schema -struct<> --- !query 19753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19754 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as smallint)) FROM t --- !query 19754 schema -struct<> --- !query 19754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19755 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as int)) FROM t --- !query 19755 schema -struct<> --- !query 19755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19756 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as bigint)) FROM t --- !query 19756 schema -struct<> --- !query 19756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19757 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as float)) FROM t --- !query 19757 schema -struct<> --- !query 19757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19758 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as double)) FROM t --- !query 19758 schema -struct<> --- !query 19758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19759 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 19759 schema -struct<> --- !query 19759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19760 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as string)) FROM t --- !query 19760 schema -struct<> --- !query 19760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19761 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2' as binary)) FROM t --- !query 19761 schema -struct<> --- !query 19761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19762 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast(2 as boolean)) FROM t --- !query 19762 schema -struct<> --- !query 19762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19763 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19763 schema -struct<> --- !query 19763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19764 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19764 schema -struct<> --- !query 19764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19765 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 19765 schema -struct<> --- !query 19765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19766 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 19766 schema -struct<> --- !query 19766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19767 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as int)) FROM t --- !query 19767 schema -struct<> --- !query 19767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19768 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 19768 schema -struct<> --- !query 19768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19769 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as float)) FROM t --- !query 19769 schema -struct<> --- !query 19769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19770 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as double)) FROM t --- !query 19770 schema -struct<> --- !query 19770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19771 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 19771 schema -struct<> --- !query 19771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19772 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as string)) FROM t --- !query 19772 schema -struct<> --- !query 19772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19773 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 19773 schema -struct<> --- !query 19773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19774 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 19774 schema -struct<> --- !query 19774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19775 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19775 schema -struct<> --- !query 19775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19776 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19776 schema -struct<> --- !query 19776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19777 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 19777 schema -struct<> --- !query 19777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19778 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as smallint)) FROM t --- !query 19778 schema -struct<> --- !query 19778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19779 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as int)) FROM t --- !query 19779 schema -struct<> --- !query 19779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19780 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as bigint)) FROM t --- !query 19780 schema -struct<> --- !query 19780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19781 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as float)) FROM t --- !query 19781 schema -struct<> --- !query 19781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19782 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as double)) FROM t --- !query 19782 schema -struct<> --- !query 19782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19783 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 19783 schema -struct<> --- !query 19783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19784 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as string)) FROM t --- !query 19784 schema -struct<> --- !query 19784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19785 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2' as binary)) FROM t --- !query 19785 schema -struct<> --- !query 19785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19786 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast(2 as boolean)) FROM t --- !query 19786 schema -struct<> --- !query 19786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19787 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19787 schema -struct<> --- !query 19787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19788 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19788 schema -struct<> --- !query 19788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19789 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 19789 schema -struct<> --- !query 19789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19790 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as smallint)) FROM t --- !query 19790 schema -struct<> --- !query 19790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19791 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as int)) FROM t --- !query 19791 schema -struct<> --- !query 19791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19792 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as bigint)) FROM t --- !query 19792 schema -struct<> --- !query 19792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19793 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as float)) FROM t --- !query 19793 schema -struct<> --- !query 19793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19794 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as double)) FROM t --- !query 19794 schema -struct<> --- !query 19794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19795 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 19795 schema -struct<> --- !query 19795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19796 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as string)) FROM t --- !query 19796 schema -struct<> --- !query 19796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19797 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2' as binary)) FROM t --- !query 19797 schema -struct<> --- !query 19797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19798 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast(2 as boolean)) FROM t --- !query 19798 schema -struct<> --- !query 19798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19799 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19799 schema -struct<> --- !query 19799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19800 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19800 schema -struct<> --- !query 19800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19801 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 19801 schema -struct<> --- !query 19801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19802 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 19802 schema -struct<> --- !query 19802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19803 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 19803 schema -struct<> --- !query 19803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19804 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 19804 schema -struct<> --- !query 19804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19805 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 19805 schema -struct<> --- !query 19805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19806 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 19806 schema -struct<> --- !query 19806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19807 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 19807 schema -struct<> --- !query 19807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19808 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 19808 schema -struct<> --- !query 19808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19809 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 19809 schema -struct<> --- !query 19809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19810 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 19810 schema -struct<> --- !query 19810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19811 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19811 schema -struct<> --- !query 19811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19812 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19812 schema -struct<> --- !query 19812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19813 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 19813 schema -struct> --- !query 19813 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19814 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as smallint)) FROM t --- !query 19814 schema -struct> --- !query 19814 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19815 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as int)) FROM t --- !query 19815 schema -struct> --- !query 19815 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19816 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as bigint)) FROM t --- !query 19816 schema -struct> --- !query 19816 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19817 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as float)) FROM t --- !query 19817 schema -struct> --- !query 19817 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19818 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as double)) FROM t --- !query 19818 schema -struct> --- !query 19818 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19819 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 19819 schema -struct> --- !query 19819 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19820 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as string)) FROM t --- !query 19820 schema -struct> --- !query 19820 output -{"2":"2","2017-12-11":"1.0"} - - --- !query 19821 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2' as binary)) FROM t --- !query 19821 schema -struct<> --- !query 19821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 19822 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast(2 as boolean)) FROM t --- !query 19822 schema -struct<> --- !query 19822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 19823 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19823 schema -struct<> --- !query 19823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 19824 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19824 schema -struct<> --- !query 19824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 19825 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 19825 schema -struct<> --- !query 19825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19826 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 19826 schema -struct<> --- !query 19826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19827 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as int)) FROM t --- !query 19827 schema -struct<> --- !query 19827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19828 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 19828 schema -struct<> --- !query 19828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19829 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as float)) FROM t --- !query 19829 schema -struct<> --- !query 19829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19830 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as double)) FROM t --- !query 19830 schema -struct<> --- !query 19830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19831 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 19831 schema -struct<> --- !query 19831 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19832 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as string)) FROM t --- !query 19832 schema -struct<> --- !query 19832 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19833 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2' as binary)) FROM t --- !query 19833 schema -struct<> --- !query 19833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19834 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 19834 schema -struct<> --- !query 19834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19835 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19835 schema -struct<> --- !query 19835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19836 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19836 schema -struct<> --- !query 19836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19837 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 19837 schema -struct<> --- !query 19837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19838 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 19838 schema -struct<> --- !query 19838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19839 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as int)) FROM t --- !query 19839 schema -struct<> --- !query 19839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19840 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 19840 schema -struct<> --- !query 19840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS FLOAT), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19841 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as float)) FROM t --- !query 19841 schema -struct<> --- !query 19841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19842 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as double)) FROM t --- !query 19842 schema -struct<> --- !query 19842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19843 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 19843 schema -struct<> --- !query 19843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19844 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as string)) FROM t --- !query 19844 schema -struct<> --- !query 19844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS FLOAT) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19845 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 19845 schema -struct<> --- !query 19845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19846 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 19846 schema -struct<> --- !query 19846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19847 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19847 schema -struct<> --- !query 19847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19848 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19848 schema -struct<> --- !query 19848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19849 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 19849 schema -struct> --- !query 19849 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19850 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 19850 schema -struct> --- !query 19850 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19851 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 19851 schema -struct> --- !query 19851 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19852 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 19852 schema -struct> --- !query 19852 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19853 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 19853 schema -struct> --- !query 19853 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19854 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 19854 schema -struct> --- !query 19854 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19855 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 19855 schema -struct> --- !query 19855 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19856 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 19856 schema -struct> --- !query 19856 output -{2017-12-11 00:00:00.0:"1.0",2017-12-12 09:30:00.0:"2"} - - --- !query 19857 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 19857 schema -struct<> --- !query 19857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 19858 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 19858 schema -struct<> --- !query 19858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 19859 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19859 schema -struct<> --- !query 19859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 19860 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19860 schema -struct<> --- !query 19860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 19861 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 19861 schema -struct> --- !query 19861 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19862 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 19862 schema -struct> --- !query 19862 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19863 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 19863 schema -struct> --- !query 19863 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19864 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 19864 schema -struct> --- !query 19864 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19865 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 19865 schema -struct> --- !query 19865 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19866 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 19866 schema -struct> --- !query 19866 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19867 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 19867 schema -struct> --- !query 19867 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 19868 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 19868 schema -struct> --- !query 19868 output -{2017-12-11:"1.0",2017-12-12:"2"} - - --- !query 19869 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 19869 schema -struct<> --- !query 19869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, binary]; line 1 pos 7 - - --- !query 19870 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 19870 schema -struct<> --- !query 19870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, boolean]; line 1 pos 7 - - --- !query 19871 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19871 schema -struct<> --- !query 19871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, timestamp]; line 1 pos 7 - - --- !query 19872 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19872 schema -struct<> --- !query 19872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [float, date]; line 1 pos 7 - - --- !query 19873 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 19873 schema -struct<> --- !query 19873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19874 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 19874 schema -struct<> --- !query 19874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19875 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 19875 schema -struct<> --- !query 19875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19876 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 19876 schema -struct<> --- !query 19876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19877 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 19877 schema -struct<> --- !query 19877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19878 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 19878 schema -struct<> --- !query 19878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19879 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 19879 schema -struct<> --- !query 19879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19880 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 19880 schema -struct<> --- !query 19880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19881 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 19881 schema -struct<> --- !query 19881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19882 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 19882 schema -struct<> --- !query 19882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19883 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19883 schema -struct<> --- !query 19883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19884 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19884 schema -struct<> --- !query 19884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 19885 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 19885 schema -struct<> --- !query 19885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19886 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 19886 schema -struct<> --- !query 19886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19887 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as int)) FROM t --- !query 19887 schema -struct<> --- !query 19887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19888 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 19888 schema -struct<> --- !query 19888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19889 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as float)) FROM t --- !query 19889 schema -struct<> --- !query 19889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19890 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as double)) FROM t --- !query 19890 schema -struct<> --- !query 19890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19891 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 19891 schema -struct<> --- !query 19891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19892 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as string)) FROM t --- !query 19892 schema -struct<> --- !query 19892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19893 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 19893 schema -struct<> --- !query 19893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19894 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 19894 schema -struct<> --- !query 19894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19895 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19895 schema -struct<> --- !query 19895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19896 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19896 schema -struct<> --- !query 19896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 19897 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 19897 schema -struct<> --- !query 19897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19898 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as smallint)) FROM t --- !query 19898 schema -struct<> --- !query 19898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19899 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as int)) FROM t --- !query 19899 schema -struct<> --- !query 19899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19900 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as bigint)) FROM t --- !query 19900 schema -struct<> --- !query 19900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19901 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as float)) FROM t --- !query 19901 schema -struct<> --- !query 19901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19902 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as double)) FROM t --- !query 19902 schema -struct<> --- !query 19902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19903 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 19903 schema -struct<> --- !query 19903 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19904 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as string)) FROM t --- !query 19904 schema -struct<> --- !query 19904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19905 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2' as binary)) FROM t --- !query 19905 schema -struct<> --- !query 19905 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19906 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast(2 as boolean)) FROM t --- !query 19906 schema -struct<> --- !query 19906 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19907 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19907 schema -struct<> --- !query 19907 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19908 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19908 schema -struct<> --- !query 19908 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 19909 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 19909 schema -struct<> --- !query 19909 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19910 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 19910 schema -struct<> --- !query 19910 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19911 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as int)) FROM t --- !query 19911 schema -struct<> --- !query 19911 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19912 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 19912 schema -struct<> --- !query 19912 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19913 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as float)) FROM t --- !query 19913 schema -struct<> --- !query 19913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19914 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as double)) FROM t --- !query 19914 schema -struct<> --- !query 19914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19915 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 19915 schema -struct<> --- !query 19915 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19916 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as string)) FROM t --- !query 19916 schema -struct<> --- !query 19916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19917 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 19917 schema -struct<> --- !query 19917 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19918 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 19918 schema -struct<> --- !query 19918 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19919 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19919 schema -struct<> --- !query 19919 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19920 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19920 schema -struct<> --- !query 19920 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 19921 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 19921 schema -struct<> --- !query 19921 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19922 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as smallint)) FROM t --- !query 19922 schema -struct<> --- !query 19922 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19923 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as int)) FROM t --- !query 19923 schema -struct<> --- !query 19923 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19924 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as bigint)) FROM t --- !query 19924 schema -struct<> --- !query 19924 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19925 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as float)) FROM t --- !query 19925 schema -struct<> --- !query 19925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19926 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as double)) FROM t --- !query 19926 schema -struct<> --- !query 19926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19927 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 19927 schema -struct<> --- !query 19927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19928 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as string)) FROM t --- !query 19928 schema -struct<> --- !query 19928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19929 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2' as binary)) FROM t --- !query 19929 schema -struct<> --- !query 19929 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19930 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast(2 as boolean)) FROM t --- !query 19930 schema -struct<> --- !query 19930 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19931 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19931 schema -struct<> --- !query 19931 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19932 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19932 schema -struct<> --- !query 19932 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 19933 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 19933 schema -struct<> --- !query 19933 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19934 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as smallint)) FROM t --- !query 19934 schema -struct<> --- !query 19934 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19935 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as int)) FROM t --- !query 19935 schema -struct<> --- !query 19935 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19936 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as bigint)) FROM t --- !query 19936 schema -struct<> --- !query 19936 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19937 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as float)) FROM t --- !query 19937 schema -struct<> --- !query 19937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19938 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as double)) FROM t --- !query 19938 schema -struct<> --- !query 19938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19939 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 19939 schema -struct<> --- !query 19939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19940 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as string)) FROM t --- !query 19940 schema -struct<> --- !query 19940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19941 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2' as binary)) FROM t --- !query 19941 schema -struct<> --- !query 19941 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19942 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast(2 as boolean)) FROM t --- !query 19942 schema -struct<> --- !query 19942 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19943 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19943 schema -struct<> --- !query 19943 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19944 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19944 schema -struct<> --- !query 19944 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 19945 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 19945 schema -struct<> --- !query 19945 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19946 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 19946 schema -struct<> --- !query 19946 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19947 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 19947 schema -struct<> --- !query 19947 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19948 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 19948 schema -struct<> --- !query 19948 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19949 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 19949 schema -struct<> --- !query 19949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19950 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 19950 schema -struct<> --- !query 19950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19951 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 19951 schema -struct<> --- !query 19951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19952 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 19952 schema -struct<> --- !query 19952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19953 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 19953 schema -struct<> --- !query 19953 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19954 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 19954 schema -struct<> --- !query 19954 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19955 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19955 schema -struct<> --- !query 19955 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19956 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19956 schema -struct<> --- !query 19956 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 19957 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 19957 schema -struct> --- !query 19957 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19958 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as smallint)) FROM t --- !query 19958 schema -struct> --- !query 19958 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19959 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as int)) FROM t --- !query 19959 schema -struct> --- !query 19959 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19960 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as bigint)) FROM t --- !query 19960 schema -struct> --- !query 19960 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19961 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as float)) FROM t --- !query 19961 schema -struct> --- !query 19961 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19962 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as double)) FROM t --- !query 19962 schema -struct> --- !query 19962 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19963 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 19963 schema -struct> --- !query 19963 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 19964 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as string)) FROM t --- !query 19964 schema -struct> --- !query 19964 output -{"2":"2","2017-12-11":"1.0"} - - --- !query 19965 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2' as binary)) FROM t --- !query 19965 schema -struct<> --- !query 19965 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 19966 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast(2 as boolean)) FROM t --- !query 19966 schema -struct<> --- !query 19966 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 19967 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19967 schema -struct<> --- !query 19967 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 19968 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19968 schema -struct<> --- !query 19968 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 19969 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 19969 schema -struct<> --- !query 19969 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19970 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 19970 schema -struct<> --- !query 19970 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19971 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as int)) FROM t --- !query 19971 schema -struct<> --- !query 19971 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19972 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 19972 schema -struct<> --- !query 19972 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19973 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as float)) FROM t --- !query 19973 schema -struct<> --- !query 19973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19974 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as double)) FROM t --- !query 19974 schema -struct<> --- !query 19974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19975 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 19975 schema -struct<> --- !query 19975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19976 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as string)) FROM t --- !query 19976 schema -struct<> --- !query 19976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19977 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2' as binary)) FROM t --- !query 19977 schema -struct<> --- !query 19977 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19978 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 19978 schema -struct<> --- !query 19978 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19979 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19979 schema -struct<> --- !query 19979 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19980 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19980 schema -struct<> --- !query 19980 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 19981 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 19981 schema -struct<> --- !query 19981 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19982 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 19982 schema -struct<> --- !query 19982 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19983 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as int)) FROM t --- !query 19983 schema -struct<> --- !query 19983 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19984 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 19984 schema -struct<> --- !query 19984 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19985 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as float)) FROM t --- !query 19985 schema -struct<> --- !query 19985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19986 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as double)) FROM t --- !query 19986 schema -struct<> --- !query 19986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19987 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 19987 schema -struct<> --- !query 19987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19988 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as string)) FROM t --- !query 19988 schema -struct<> --- !query 19988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DOUBLE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19989 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 19989 schema -struct<> --- !query 19989 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19990 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 19990 schema -struct<> --- !query 19990 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19991 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 19991 schema -struct<> --- !query 19991 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19992 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 19992 schema -struct<> --- !query 19992 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 19993 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 19993 schema -struct> --- !query 19993 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19994 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 19994 schema -struct> --- !query 19994 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19995 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 19995 schema -struct> --- !query 19995 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19996 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 19996 schema -struct> --- !query 19996 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19997 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 19997 schema -struct> --- !query 19997 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19998 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 19998 schema -struct> --- !query 19998 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 19999 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 19999 schema -struct> --- !query 19999 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 20000 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 20000 schema -struct> --- !query 20000 output -{2017-12-11 00:00:00.0:"1.0",2017-12-12 09:30:00.0:"2"} - - --- !query 20001 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 20001 schema -struct<> --- !query 20001 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 20002 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 20002 schema -struct<> --- !query 20002 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 20003 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20003 schema -struct<> --- !query 20003 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 20004 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20004 schema -struct<> --- !query 20004 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 20005 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 20005 schema -struct> --- !query 20005 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20006 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 20006 schema -struct> --- !query 20006 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20007 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 20007 schema -struct> --- !query 20007 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20008 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 20008 schema -struct> --- !query 20008 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20009 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 20009 schema -struct> --- !query 20009 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20010 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 20010 schema -struct> --- !query 20010 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20011 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 20011 schema -struct> --- !query 20011 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20012 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 20012 schema -struct> --- !query 20012 output -{2017-12-11:"1.0",2017-12-12:"2"} - - --- !query 20013 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 20013 schema -struct<> --- !query 20013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, binary]; line 1 pos 7 - - --- !query 20014 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 20014 schema -struct<> --- !query 20014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, boolean]; line 1 pos 7 - - --- !query 20015 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20015 schema -struct<> --- !query 20015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, timestamp]; line 1 pos 7 - - --- !query 20016 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20016 schema -struct<> --- !query 20016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [double, date]; line 1 pos 7 - - --- !query 20017 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 20017 schema -struct<> --- !query 20017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20018 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 20018 schema -struct<> --- !query 20018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20019 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 20019 schema -struct<> --- !query 20019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20020 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 20020 schema -struct<> --- !query 20020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20021 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 20021 schema -struct<> --- !query 20021 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20022 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 20022 schema -struct<> --- !query 20022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20023 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 20023 schema -struct<> --- !query 20023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20024 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 20024 schema -struct<> --- !query 20024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20025 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 20025 schema -struct<> --- !query 20025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20026 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 20026 schema -struct<> --- !query 20026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20027 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20027 schema -struct<> --- !query 20027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20028 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20028 schema -struct<> --- !query 20028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20029 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 20029 schema -struct<> --- !query 20029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20030 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 20030 schema -struct<> --- !query 20030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20031 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as int)) FROM t --- !query 20031 schema -struct<> --- !query 20031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20032 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 20032 schema -struct<> --- !query 20032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20033 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as float)) FROM t --- !query 20033 schema -struct<> --- !query 20033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20034 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as double)) FROM t --- !query 20034 schema -struct<> --- !query 20034 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20035 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 20035 schema -struct<> --- !query 20035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20036 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as string)) FROM t --- !query 20036 schema -struct<> --- !query 20036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20037 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 20037 schema -struct<> --- !query 20037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20038 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 20038 schema -struct<> --- !query 20038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20039 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20039 schema -struct<> --- !query 20039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20040 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20040 schema -struct<> --- !query 20040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20041 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 20041 schema -struct<> --- !query 20041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20042 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as smallint)) FROM t --- !query 20042 schema -struct<> --- !query 20042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20043 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as int)) FROM t --- !query 20043 schema -struct<> --- !query 20043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS INT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20044 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as bigint)) FROM t --- !query 20044 schema -struct<> --- !query 20044 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20045 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as float)) FROM t --- !query 20045 schema -struct<> --- !query 20045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20046 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as double)) FROM t --- !query 20046 schema -struct<> --- !query 20046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20047 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 20047 schema -struct<> --- !query 20047 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20048 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as string)) FROM t --- !query 20048 schema -struct<> --- !query 20048 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20049 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2' as binary)) FROM t --- !query 20049 schema -struct<> --- !query 20049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20050 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast(2 as boolean)) FROM t --- !query 20050 schema -struct<> --- !query 20050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20051 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20051 schema -struct<> --- !query 20051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20052 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20052 schema -struct<> --- !query 20052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20053 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 20053 schema -struct<> --- !query 20053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20054 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 20054 schema -struct<> --- !query 20054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20055 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as int)) FROM t --- !query 20055 schema -struct<> --- !query 20055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20056 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 20056 schema -struct<> --- !query 20056 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20057 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as float)) FROM t --- !query 20057 schema -struct<> --- !query 20057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20058 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as double)) FROM t --- !query 20058 schema -struct<> --- !query 20058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20059 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 20059 schema -struct<> --- !query 20059 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20060 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as string)) FROM t --- !query 20060 schema -struct<> --- !query 20060 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20061 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 20061 schema -struct<> --- !query 20061 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20062 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 20062 schema -struct<> --- !query 20062 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20063 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20063 schema -struct<> --- !query 20063 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20064 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20064 schema -struct<> --- !query 20064 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20065 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 20065 schema -struct<> --- !query 20065 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20066 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as smallint)) FROM t --- !query 20066 schema -struct<> --- !query 20066 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20067 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as int)) FROM t --- !query 20067 schema -struct<> --- !query 20067 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20068 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as bigint)) FROM t --- !query 20068 schema -struct<> --- !query 20068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20069 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as float)) FROM t --- !query 20069 schema -struct<> --- !query 20069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20070 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as double)) FROM t --- !query 20070 schema -struct<> --- !query 20070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20071 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 20071 schema -struct<> --- !query 20071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20072 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as string)) FROM t --- !query 20072 schema -struct<> --- !query 20072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20073 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2' as binary)) FROM t --- !query 20073 schema -struct<> --- !query 20073 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20074 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast(2 as boolean)) FROM t --- !query 20074 schema -struct<> --- !query 20074 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20075 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20075 schema -struct<> --- !query 20075 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20076 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20076 schema -struct<> --- !query 20076 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20077 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 20077 schema -struct<> --- !query 20077 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20078 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as smallint)) FROM t --- !query 20078 schema -struct<> --- !query 20078 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20079 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as int)) FROM t --- !query 20079 schema -struct<> --- !query 20079 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20080 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as bigint)) FROM t --- !query 20080 schema -struct<> --- !query 20080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20081 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as float)) FROM t --- !query 20081 schema -struct<> --- !query 20081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20082 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as double)) FROM t --- !query 20082 schema -struct<> --- !query 20082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20083 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 20083 schema -struct<> --- !query 20083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20084 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as string)) FROM t --- !query 20084 schema -struct<> --- !query 20084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20085 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2' as binary)) FROM t --- !query 20085 schema -struct<> --- !query 20085 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20086 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast(2 as boolean)) FROM t --- !query 20086 schema -struct<> --- !query 20086 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20087 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20087 schema -struct<> --- !query 20087 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20088 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20088 schema -struct<> --- !query 20088 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20089 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 20089 schema -struct<> --- !query 20089 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20090 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 20090 schema -struct<> --- !query 20090 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20091 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 20091 schema -struct<> --- !query 20091 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20092 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 20092 schema -struct<> --- !query 20092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20093 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 20093 schema -struct<> --- !query 20093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20094 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 20094 schema -struct<> --- !query 20094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20095 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 20095 schema -struct<> --- !query 20095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20096 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 20096 schema -struct<> --- !query 20096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20097 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 20097 schema -struct<> --- !query 20097 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20098 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 20098 schema -struct<> --- !query 20098 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20099 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20099 schema -struct<> --- !query 20099 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20100 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20100 schema -struct<> --- !query 20100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20101 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 20101 schema -struct> --- !query 20101 output -{"2":2,"2017-12-11":1} - - --- !query 20102 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as smallint)) FROM t --- !query 20102 schema -struct> --- !query 20102 output -{"2":2,"2017-12-11":1} - - --- !query 20103 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as int)) FROM t --- !query 20103 schema -struct> --- !query 20103 output -{"2":2,"2017-12-11":1} - - --- !query 20104 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as bigint)) FROM t --- !query 20104 schema -struct> --- !query 20104 output -{"2":2,"2017-12-11":1} - - --- !query 20105 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as float)) FROM t --- !query 20105 schema -struct> --- !query 20105 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 20106 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as double)) FROM t --- !query 20106 schema -struct> --- !query 20106 output -{"2":2.0,"2017-12-11":1.0} - - --- !query 20107 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 20107 schema -struct> --- !query 20107 output -{"2":2,"2017-12-11":1} - - --- !query 20108 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as string)) FROM t --- !query 20108 schema -struct> --- !query 20108 output -{"2":"2","2017-12-11":"1"} - - --- !query 20109 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2' as binary)) FROM t --- !query 20109 schema -struct<> --- !query 20109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 20110 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast(2 as boolean)) FROM t --- !query 20110 schema -struct<> --- !query 20110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 20111 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20111 schema -struct<> --- !query 20111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 20112 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20112 schema -struct<> --- !query 20112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 20113 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 20113 schema -struct<> --- !query 20113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20114 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 20114 schema -struct<> --- !query 20114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20115 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as int)) FROM t --- !query 20115 schema -struct<> --- !query 20115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20116 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 20116 schema -struct<> --- !query 20116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20117 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as float)) FROM t --- !query 20117 schema -struct<> --- !query 20117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20118 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as double)) FROM t --- !query 20118 schema -struct<> --- !query 20118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20119 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 20119 schema -struct<> --- !query 20119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20120 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as string)) FROM t --- !query 20120 schema -struct<> --- !query 20120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20121 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2' as binary)) FROM t --- !query 20121 schema -struct<> --- !query 20121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20122 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 20122 schema -struct<> --- !query 20122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20123 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20123 schema -struct<> --- !query 20123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20124 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20124 schema -struct<> --- !query 20124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20125 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 20125 schema -struct<> --- !query 20125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20126 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 20126 schema -struct<> --- !query 20126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20127 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as int)) FROM t --- !query 20127 schema -struct<> --- !query 20127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20128 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 20128 schema -struct<> --- !query 20128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DECIMAL(20,0)), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DECIMAL(20,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20129 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as float)) FROM t --- !query 20129 schema -struct<> --- !query 20129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20130 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as double)) FROM t --- !query 20130 schema -struct<> --- !query 20130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20131 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 20131 schema -struct<> --- !query 20131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20132 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as string)) FROM t --- !query 20132 schema -struct<> --- !query 20132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS DECIMAL(10,0)) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20133 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 20133 schema -struct<> --- !query 20133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20134 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 20134 schema -struct<> --- !query 20134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20135 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20135 schema -struct<> --- !query 20135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20136 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20136 schema -struct<> --- !query 20136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20137 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 20137 schema -struct> --- !query 20137 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 20138 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 20138 schema -struct> --- !query 20138 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 20139 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 20139 schema -struct> --- !query 20139 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 20140 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 20140 schema -struct> --- !query 20140 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 20141 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 20141 schema -struct> --- !query 20141 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 20142 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 20142 schema -struct> --- !query 20142 output -{2017-12-11 00:00:00.0:1.0,2017-12-12 09:30:00.0:2.0} - - --- !query 20143 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 20143 schema -struct> --- !query 20143 output -{2017-12-11 00:00:00.0:1,2017-12-12 09:30:00.0:2} - - --- !query 20144 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 20144 schema -struct> --- !query 20144 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 20145 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 20145 schema -struct<> --- !query 20145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 20146 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 20146 schema -struct<> --- !query 20146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 20147 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20147 schema -struct<> --- !query 20147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 20148 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20148 schema -struct<> --- !query 20148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 20149 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 20149 schema -struct> --- !query 20149 output -{2017-12-11:1,2017-12-12:2} - - --- !query 20150 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 20150 schema -struct> --- !query 20150 output -{2017-12-11:1,2017-12-12:2} - - --- !query 20151 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 20151 schema -struct> --- !query 20151 output -{2017-12-11:1,2017-12-12:2} - - --- !query 20152 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 20152 schema -struct> --- !query 20152 output -{2017-12-11:1,2017-12-12:2} - - --- !query 20153 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 20153 schema -struct> --- !query 20153 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20154 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 20154 schema -struct> --- !query 20154 output -{2017-12-11:1.0,2017-12-12:2.0} - - --- !query 20155 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 20155 schema -struct> --- !query 20155 output -{2017-12-11:1,2017-12-12:2} - - --- !query 20156 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 20156 schema -struct> --- !query 20156 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 20157 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 20157 schema -struct<> --- !query 20157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), binary]; line 1 pos 7 - - --- !query 20158 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 20158 schema -struct<> --- !query 20158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 20159 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20159 schema -struct<> --- !query 20159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 20160 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20160 schema -struct<> --- !query 20160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [decimal(10,0), date]; line 1 pos 7 - - --- !query 20161 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 20161 schema -struct<> --- !query 20161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20162 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 20162 schema -struct<> --- !query 20162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20163 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 20163 schema -struct<> --- !query 20163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20164 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 20164 schema -struct<> --- !query 20164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20165 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 20165 schema -struct<> --- !query 20165 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20166 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 20166 schema -struct<> --- !query 20166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20167 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 20167 schema -struct<> --- !query 20167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20168 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 20168 schema -struct<> --- !query 20168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20169 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 20169 schema -struct<> --- !query 20169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20170 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 20170 schema -struct<> --- !query 20170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20171 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20171 schema -struct<> --- !query 20171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20172 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20172 schema -struct<> --- !query 20172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20173 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 20173 schema -struct<> --- !query 20173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20174 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 20174 schema -struct<> --- !query 20174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20175 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as int)) FROM t --- !query 20175 schema -struct<> --- !query 20175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20176 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 20176 schema -struct<> --- !query 20176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20177 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as float)) FROM t --- !query 20177 schema -struct<> --- !query 20177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20178 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as double)) FROM t --- !query 20178 schema -struct<> --- !query 20178 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20179 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 20179 schema -struct<> --- !query 20179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20180 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as string)) FROM t --- !query 20180 schema -struct<> --- !query 20180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20181 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 20181 schema -struct<> --- !query 20181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20182 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 20182 schema -struct<> --- !query 20182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20183 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20183 schema -struct<> --- !query 20183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20184 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20184 schema -struct<> --- !query 20184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20185 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 20185 schema -struct<> --- !query 20185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20186 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as smallint)) FROM t --- !query 20186 schema -struct<> --- !query 20186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20187 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as int)) FROM t --- !query 20187 schema -struct<> --- !query 20187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20188 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as bigint)) FROM t --- !query 20188 schema -struct<> --- !query 20188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20189 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as float)) FROM t --- !query 20189 schema -struct<> --- !query 20189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20190 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as double)) FROM t --- !query 20190 schema -struct<> --- !query 20190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20191 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 20191 schema -struct<> --- !query 20191 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20192 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as string)) FROM t --- !query 20192 schema -struct<> --- !query 20192 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20193 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2' as binary)) FROM t --- !query 20193 schema -struct<> --- !query 20193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20194 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast(2 as boolean)) FROM t --- !query 20194 schema -struct<> --- !query 20194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20195 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20195 schema -struct<> --- !query 20195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20196 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20196 schema -struct<> --- !query 20196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20197 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 20197 schema -struct<> --- !query 20197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20198 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 20198 schema -struct<> --- !query 20198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20199 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as int)) FROM t --- !query 20199 schema -struct<> --- !query 20199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20200 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 20200 schema -struct<> --- !query 20200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20201 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as float)) FROM t --- !query 20201 schema -struct<> --- !query 20201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20202 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as double)) FROM t --- !query 20202 schema -struct<> --- !query 20202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20203 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 20203 schema -struct<> --- !query 20203 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20204 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as string)) FROM t --- !query 20204 schema -struct<> --- !query 20204 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20205 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 20205 schema -struct<> --- !query 20205 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20206 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 20206 schema -struct<> --- !query 20206 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20207 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20207 schema -struct<> --- !query 20207 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20208 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20208 schema -struct<> --- !query 20208 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20209 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 20209 schema -struct<> --- !query 20209 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20210 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as smallint)) FROM t --- !query 20210 schema -struct<> --- !query 20210 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20211 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as int)) FROM t --- !query 20211 schema -struct<> --- !query 20211 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20212 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as bigint)) FROM t --- !query 20212 schema -struct<> --- !query 20212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20213 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as float)) FROM t --- !query 20213 schema -struct<> --- !query 20213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20214 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as double)) FROM t --- !query 20214 schema -struct<> --- !query 20214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20215 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 20215 schema -struct<> --- !query 20215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20216 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as string)) FROM t --- !query 20216 schema -struct<> --- !query 20216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20217 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2' as binary)) FROM t --- !query 20217 schema -struct<> --- !query 20217 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20218 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast(2 as boolean)) FROM t --- !query 20218 schema -struct<> --- !query 20218 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20219 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20219 schema -struct<> --- !query 20219 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20220 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20220 schema -struct<> --- !query 20220 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20221 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 20221 schema -struct<> --- !query 20221 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20222 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as smallint)) FROM t --- !query 20222 schema -struct<> --- !query 20222 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20223 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as int)) FROM t --- !query 20223 schema -struct<> --- !query 20223 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20224 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as bigint)) FROM t --- !query 20224 schema -struct<> --- !query 20224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20225 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as float)) FROM t --- !query 20225 schema -struct<> --- !query 20225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20226 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as double)) FROM t --- !query 20226 schema -struct<> --- !query 20226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20227 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 20227 schema -struct<> --- !query 20227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20228 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as string)) FROM t --- !query 20228 schema -struct<> --- !query 20228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20229 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2' as binary)) FROM t --- !query 20229 schema -struct<> --- !query 20229 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20230 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast(2 as boolean)) FROM t --- !query 20230 schema -struct<> --- !query 20230 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20231 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20231 schema -struct<> --- !query 20231 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20232 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20232 schema -struct<> --- !query 20232 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20233 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 20233 schema -struct<> --- !query 20233 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20234 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 20234 schema -struct<> --- !query 20234 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20235 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 20235 schema -struct<> --- !query 20235 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20236 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 20236 schema -struct<> --- !query 20236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20237 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 20237 schema -struct<> --- !query 20237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20238 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 20238 schema -struct<> --- !query 20238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20239 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 20239 schema -struct<> --- !query 20239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20240 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 20240 schema -struct<> --- !query 20240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20241 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 20241 schema -struct<> --- !query 20241 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20242 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 20242 schema -struct<> --- !query 20242 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20243 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20243 schema -struct<> --- !query 20243 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20244 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20244 schema -struct<> --- !query 20244 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20245 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 20245 schema -struct> --- !query 20245 output -{"2":"2","2017-12-11":"1"} - - --- !query 20246 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as smallint)) FROM t --- !query 20246 schema -struct> --- !query 20246 output -{"2":"2","2017-12-11":"1"} - - --- !query 20247 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as int)) FROM t --- !query 20247 schema -struct> --- !query 20247 output -{"2":"2","2017-12-11":"1"} - - --- !query 20248 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as bigint)) FROM t --- !query 20248 schema -struct> --- !query 20248 output -{"2":"2","2017-12-11":"1"} - - --- !query 20249 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as float)) FROM t --- !query 20249 schema -struct> --- !query 20249 output -{"2":"2.0","2017-12-11":"1"} - - --- !query 20250 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as double)) FROM t --- !query 20250 schema -struct> --- !query 20250 output -{"2":"2.0","2017-12-11":"1"} - - --- !query 20251 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 20251 schema -struct> --- !query 20251 output -{"2":"2","2017-12-11":"1"} - - --- !query 20252 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as string)) FROM t --- !query 20252 schema -struct> --- !query 20252 output -{"2":"2","2017-12-11":"1"} - - --- !query 20253 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2' as binary)) FROM t --- !query 20253 schema -struct<> --- !query 20253 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 20254 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast(2 as boolean)) FROM t --- !query 20254 schema -struct<> --- !query 20254 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS STRING), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 20255 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20255 schema -struct> --- !query 20255 output -{"2":"2017-12-12 09:30:00","2017-12-11":"1"} - - --- !query 20256 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20256 schema -struct> --- !query 20256 output -{"2":"2017-12-12","2017-12-11":"1"} - - --- !query 20257 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 20257 schema -struct<> --- !query 20257 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20258 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 20258 schema -struct<> --- !query 20258 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20259 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as int)) FROM t --- !query 20259 schema -struct<> --- !query 20259 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20260 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 20260 schema -struct<> --- !query 20260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20261 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as float)) FROM t --- !query 20261 schema -struct<> --- !query 20261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20262 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as double)) FROM t --- !query 20262 schema -struct<> --- !query 20262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20263 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 20263 schema -struct<> --- !query 20263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20264 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as string)) FROM t --- !query 20264 schema -struct<> --- !query 20264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20265 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2' as binary)) FROM t --- !query 20265 schema -struct<> --- !query 20265 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20266 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 20266 schema -struct<> --- !query 20266 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20267 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20267 schema -struct<> --- !query 20267 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20268 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20268 schema -struct<> --- !query 20268 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20269 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 20269 schema -struct<> --- !query 20269 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20270 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 20270 schema -struct<> --- !query 20270 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20271 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as int)) FROM t --- !query 20271 schema -struct<> --- !query 20271 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS INT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20272 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 20272 schema -struct<> --- !query 20272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20273 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as float)) FROM t --- !query 20273 schema -struct<> --- !query 20273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS FLOAT) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20274 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as double)) FROM t --- !query 20274 schema -struct<> --- !query 20274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DOUBLE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20275 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 20275 schema -struct<> --- !query 20275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20276 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as string)) FROM t --- !query 20276 schema -struct<> --- !query 20276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20277 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 20277 schema -struct<> --- !query 20277 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20278 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 20278 schema -struct<> --- !query 20278 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20279 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20279 schema -struct<> --- !query 20279 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20280 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20280 schema -struct<> --- !query 20280 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(1 AS STRING) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20281 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 20281 schema -struct> --- !query 20281 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 20282 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 20282 schema -struct> --- !query 20282 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 20283 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 20283 schema -struct> --- !query 20283 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 20284 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 20284 schema -struct> --- !query 20284 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 20285 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 20285 schema -struct> --- !query 20285 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2.0"} - - --- !query 20286 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 20286 schema -struct> --- !query 20286 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2.0"} - - --- !query 20287 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 20287 schema -struct> --- !query 20287 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 20288 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 20288 schema -struct> --- !query 20288 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2"} - - --- !query 20289 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 20289 schema -struct<> --- !query 20289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 20290 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 20290 schema -struct<> --- !query 20290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS STRING), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 20291 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20291 schema -struct> --- !query 20291 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12 09:30:00"} - - --- !query 20292 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20292 schema -struct> --- !query 20292 output -{2017-12-11 00:00:00.0:"1",2017-12-12 09:30:00.0:"2017-12-12"} - - --- !query 20293 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 20293 schema -struct> --- !query 20293 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 20294 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 20294 schema -struct> --- !query 20294 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 20295 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 20295 schema -struct> --- !query 20295 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 20296 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 20296 schema -struct> --- !query 20296 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 20297 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 20297 schema -struct> --- !query 20297 output -{2017-12-11:"1",2017-12-12:"2.0"} - - --- !query 20298 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 20298 schema -struct> --- !query 20298 output -{2017-12-11:"1",2017-12-12:"2.0"} - - --- !query 20299 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 20299 schema -struct> --- !query 20299 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 20300 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 20300 schema -struct> --- !query 20300 output -{2017-12-11:"1",2017-12-12:"2"} - - --- !query 20301 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 20301 schema -struct<> --- !query 20301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, binary]; line 1 pos 7 - - --- !query 20302 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 20302 schema -struct<> --- !query 20302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [string, boolean]; line 1 pos 7 - - --- !query 20303 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20303 schema -struct> --- !query 20303 output -{2017-12-11:"1",2017-12-12:"2017-12-12 09:30:00"} - - --- !query 20304 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20304 schema -struct> --- !query 20304 output -{2017-12-11:"1",2017-12-12:"2017-12-12"} - - --- !query 20305 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 20305 schema -struct<> --- !query 20305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20306 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 20306 schema -struct<> --- !query 20306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20307 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 20307 schema -struct<> --- !query 20307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20308 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 20308 schema -struct<> --- !query 20308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20309 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 20309 schema -struct<> --- !query 20309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20310 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 20310 schema -struct<> --- !query 20310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20311 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 20311 schema -struct<> --- !query 20311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20312 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 20312 schema -struct<> --- !query 20312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20313 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 20313 schema -struct<> --- !query 20313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20314 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 20314 schema -struct<> --- !query 20314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20315 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20315 schema -struct<> --- !query 20315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20316 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20316 schema -struct<> --- !query 20316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20317 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 20317 schema -struct<> --- !query 20317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20318 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 20318 schema -struct<> --- !query 20318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20319 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as int)) FROM t --- !query 20319 schema -struct<> --- !query 20319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20320 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 20320 schema -struct<> --- !query 20320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20321 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as float)) FROM t --- !query 20321 schema -struct<> --- !query 20321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20322 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as double)) FROM t --- !query 20322 schema -struct<> --- !query 20322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20323 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 20323 schema -struct<> --- !query 20323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20324 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as string)) FROM t --- !query 20324 schema -struct<> --- !query 20324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20325 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 20325 schema -struct<> --- !query 20325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20326 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 20326 schema -struct<> --- !query 20326 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20327 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20327 schema -struct<> --- !query 20327 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20328 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20328 schema -struct<> --- !query 20328 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20329 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 20329 schema -struct<> --- !query 20329 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20330 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as smallint)) FROM t --- !query 20330 schema -struct<> --- !query 20330 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20331 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as int)) FROM t --- !query 20331 schema -struct<> --- !query 20331 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20332 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as bigint)) FROM t --- !query 20332 schema -struct<> --- !query 20332 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20333 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as float)) FROM t --- !query 20333 schema -struct<> --- !query 20333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20334 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as double)) FROM t --- !query 20334 schema -struct<> --- !query 20334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20335 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 20335 schema -struct<> --- !query 20335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20336 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as string)) FROM t --- !query 20336 schema -struct<> --- !query 20336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20337 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2' as binary)) FROM t --- !query 20337 schema -struct<> --- !query 20337 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20338 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast(2 as boolean)) FROM t --- !query 20338 schema -struct<> --- !query 20338 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20339 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20339 schema -struct<> --- !query 20339 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20340 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20340 schema -struct<> --- !query 20340 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20341 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 20341 schema -struct<> --- !query 20341 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20342 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 20342 schema -struct<> --- !query 20342 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20343 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as int)) FROM t --- !query 20343 schema -struct<> --- !query 20343 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20344 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 20344 schema -struct<> --- !query 20344 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20345 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as float)) FROM t --- !query 20345 schema -struct<> --- !query 20345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20346 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as double)) FROM t --- !query 20346 schema -struct<> --- !query 20346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20347 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 20347 schema -struct<> --- !query 20347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20348 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as string)) FROM t --- !query 20348 schema -struct<> --- !query 20348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20349 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 20349 schema -struct<> --- !query 20349 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20350 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 20350 schema -struct<> --- !query 20350 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20351 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20351 schema -struct<> --- !query 20351 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20352 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20352 schema -struct<> --- !query 20352 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20353 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 20353 schema -struct<> --- !query 20353 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20354 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as smallint)) FROM t --- !query 20354 schema -struct<> --- !query 20354 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20355 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as int)) FROM t --- !query 20355 schema -struct<> --- !query 20355 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20356 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as bigint)) FROM t --- !query 20356 schema -struct<> --- !query 20356 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20357 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as float)) FROM t --- !query 20357 schema -struct<> --- !query 20357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20358 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as double)) FROM t --- !query 20358 schema -struct<> --- !query 20358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20359 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 20359 schema -struct<> --- !query 20359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20360 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as string)) FROM t --- !query 20360 schema -struct<> --- !query 20360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20361 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2' as binary)) FROM t --- !query 20361 schema -struct<> --- !query 20361 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20362 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast(2 as boolean)) FROM t --- !query 20362 schema -struct<> --- !query 20362 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20363 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20363 schema -struct<> --- !query 20363 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20364 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20364 schema -struct<> --- !query 20364 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20365 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 20365 schema -struct<> --- !query 20365 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20366 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as smallint)) FROM t --- !query 20366 schema -struct<> --- !query 20366 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20367 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as int)) FROM t --- !query 20367 schema -struct<> --- !query 20367 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20368 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as bigint)) FROM t --- !query 20368 schema -struct<> --- !query 20368 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20369 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as float)) FROM t --- !query 20369 schema -struct<> --- !query 20369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20370 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as double)) FROM t --- !query 20370 schema -struct<> --- !query 20370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20371 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 20371 schema -struct<> --- !query 20371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20372 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as string)) FROM t --- !query 20372 schema -struct<> --- !query 20372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20373 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2' as binary)) FROM t --- !query 20373 schema -struct<> --- !query 20373 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20374 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast(2 as boolean)) FROM t --- !query 20374 schema -struct<> --- !query 20374 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20375 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20375 schema -struct<> --- !query 20375 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20376 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20376 schema -struct<> --- !query 20376 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20377 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 20377 schema -struct<> --- !query 20377 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20378 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 20378 schema -struct<> --- !query 20378 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20379 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 20379 schema -struct<> --- !query 20379 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20380 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 20380 schema -struct<> --- !query 20380 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20381 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 20381 schema -struct<> --- !query 20381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20382 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 20382 schema -struct<> --- !query 20382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20383 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 20383 schema -struct<> --- !query 20383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20384 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 20384 schema -struct<> --- !query 20384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20385 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 20385 schema -struct<> --- !query 20385 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20386 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 20386 schema -struct<> --- !query 20386 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20387 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20387 schema -struct<> --- !query 20387 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20388 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20388 schema -struct<> --- !query 20388 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20389 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 20389 schema -struct<> --- !query 20389 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 20390 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as smallint)) FROM t --- !query 20390 schema -struct<> --- !query 20390 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 20391 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as int)) FROM t --- !query 20391 schema -struct<> --- !query 20391 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 20392 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as bigint)) FROM t --- !query 20392 schema -struct<> --- !query 20392 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 20393 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as float)) FROM t --- !query 20393 schema -struct<> --- !query 20393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 20394 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as double)) FROM t --- !query 20394 schema -struct<> --- !query 20394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 20395 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 20395 schema -struct<> --- !query 20395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 20396 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as string)) FROM t --- !query 20396 schema -struct<> --- !query 20396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 20397 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2' as binary)) FROM t --- !query 20397 schema -struct> --- !query 20397 output -{"2":[B@3a1c9c3f,"2017-12-11":[B@df3b099} - - --- !query 20398 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast(2 as boolean)) FROM t --- !query 20398 schema -struct<> --- !query 20398 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 20399 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20399 schema -struct<> --- !query 20399 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 20400 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20400 schema -struct<> --- !query 20400 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 20401 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 20401 schema -struct<> --- !query 20401 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20402 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 20402 schema -struct<> --- !query 20402 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20403 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as int)) FROM t --- !query 20403 schema -struct<> --- !query 20403 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20404 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 20404 schema -struct<> --- !query 20404 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20405 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as float)) FROM t --- !query 20405 schema -struct<> --- !query 20405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20406 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as double)) FROM t --- !query 20406 schema -struct<> --- !query 20406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20407 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 20407 schema -struct<> --- !query 20407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20408 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as string)) FROM t --- !query 20408 schema -struct<> --- !query 20408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20409 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2' as binary)) FROM t --- !query 20409 schema -struct<> --- !query 20409 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20410 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 20410 schema -struct<> --- !query 20410 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20411 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20411 schema -struct<> --- !query 20411 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20412 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20412 schema -struct<> --- !query 20412 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20413 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 20413 schema -struct<> --- !query 20413 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20414 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 20414 schema -struct<> --- !query 20414 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20415 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as int)) FROM t --- !query 20415 schema -struct<> --- !query 20415 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20416 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 20416 schema -struct<> --- !query 20416 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20417 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as float)) FROM t --- !query 20417 schema -struct<> --- !query 20417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20418 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as double)) FROM t --- !query 20418 schema -struct<> --- !query 20418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20419 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 20419 schema -struct<> --- !query 20419 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20420 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as string)) FROM t --- !query 20420 schema -struct<> --- !query 20420 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20421 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 20421 schema -struct<> --- !query 20421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20422 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 20422 schema -struct<> --- !query 20422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20423 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20423 schema -struct<> --- !query 20423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20424 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20424 schema -struct<> --- !query 20424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20425 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 20425 schema -struct<> --- !query 20425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 20426 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 20426 schema -struct<> --- !query 20426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 20427 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 20427 schema -struct<> --- !query 20427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 20428 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 20428 schema -struct<> --- !query 20428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 20429 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 20429 schema -struct<> --- !query 20429 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 20430 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 20430 schema -struct<> --- !query 20430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 20431 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 20431 schema -struct<> --- !query 20431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 20432 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 20432 schema -struct<> --- !query 20432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 20433 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 20433 schema -struct> --- !query 20433 output -{2017-12-11 00:00:00.0:[B@4cec3a23,2017-12-12 09:30:00.0:[B@7dd161ca} - - --- !query 20434 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 20434 schema -struct<> --- !query 20434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 20435 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20435 schema -struct<> --- !query 20435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 20436 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20436 schema -struct<> --- !query 20436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('1' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 20437 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 20437 schema -struct<> --- !query 20437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, tinyint]; line 1 pos 7 - - --- !query 20438 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 20438 schema -struct<> --- !query 20438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, smallint]; line 1 pos 7 - - --- !query 20439 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 20439 schema -struct<> --- !query 20439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, int]; line 1 pos 7 - - --- !query 20440 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 20440 schema -struct<> --- !query 20440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, bigint]; line 1 pos 7 - - --- !query 20441 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 20441 schema -struct<> --- !query 20441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, float]; line 1 pos 7 - - --- !query 20442 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 20442 schema -struct<> --- !query 20442 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, double]; line 1 pos 7 - - --- !query 20443 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 20443 schema -struct<> --- !query 20443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 20444 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 20444 schema -struct<> --- !query 20444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, string]; line 1 pos 7 - - --- !query 20445 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 20445 schema -struct> --- !query 20445 output -{2017-12-11:[B@5d2ca84e,2017-12-12:[B@6ac9f603} - - --- !query 20446 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 20446 schema -struct<> --- !query 20446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, boolean]; line 1 pos 7 - - --- !query 20447 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20447 schema -struct<> --- !query 20447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, timestamp]; line 1 pos 7 - - --- !query 20448 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20448 schema -struct<> --- !query 20448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [binary, date]; line 1 pos 7 - - --- !query 20449 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 20449 schema -struct<> --- !query 20449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20450 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 20450 schema -struct<> --- !query 20450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20451 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 20451 schema -struct<> --- !query 20451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20452 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 20452 schema -struct<> --- !query 20452 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20453 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 20453 schema -struct<> --- !query 20453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20454 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 20454 schema -struct<> --- !query 20454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20455 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 20455 schema -struct<> --- !query 20455 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20456 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 20456 schema -struct<> --- !query 20456 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20457 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 20457 schema -struct<> --- !query 20457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20458 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 20458 schema -struct<> --- !query 20458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20459 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20459 schema -struct<> --- !query 20459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20460 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20460 schema -struct<> --- !query 20460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20461 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 20461 schema -struct<> --- !query 20461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20462 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 20462 schema -struct<> --- !query 20462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20463 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as int)) FROM t --- !query 20463 schema -struct<> --- !query 20463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20464 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 20464 schema -struct<> --- !query 20464 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20465 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as float)) FROM t --- !query 20465 schema -struct<> --- !query 20465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20466 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as double)) FROM t --- !query 20466 schema -struct<> --- !query 20466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20467 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 20467 schema -struct<> --- !query 20467 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20468 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as string)) FROM t --- !query 20468 schema -struct<> --- !query 20468 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20469 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 20469 schema -struct<> --- !query 20469 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20470 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 20470 schema -struct<> --- !query 20470 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20471 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20471 schema -struct<> --- !query 20471 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20472 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20472 schema -struct<> --- !query 20472 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20473 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 20473 schema -struct<> --- !query 20473 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20474 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as smallint)) FROM t --- !query 20474 schema -struct<> --- !query 20474 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20475 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as int)) FROM t --- !query 20475 schema -struct<> --- !query 20475 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20476 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as bigint)) FROM t --- !query 20476 schema -struct<> --- !query 20476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20477 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as float)) FROM t --- !query 20477 schema -struct<> --- !query 20477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20478 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as double)) FROM t --- !query 20478 schema -struct<> --- !query 20478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20479 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 20479 schema -struct<> --- !query 20479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20480 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as string)) FROM t --- !query 20480 schema -struct<> --- !query 20480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20481 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2' as binary)) FROM t --- !query 20481 schema -struct<> --- !query 20481 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20482 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast(2 as boolean)) FROM t --- !query 20482 schema -struct<> --- !query 20482 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20483 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20483 schema -struct<> --- !query 20483 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20484 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20484 schema -struct<> --- !query 20484 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20485 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 20485 schema -struct<> --- !query 20485 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20486 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 20486 schema -struct<> --- !query 20486 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20487 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as int)) FROM t --- !query 20487 schema -struct<> --- !query 20487 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20488 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 20488 schema -struct<> --- !query 20488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20489 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as float)) FROM t --- !query 20489 schema -struct<> --- !query 20489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20490 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as double)) FROM t --- !query 20490 schema -struct<> --- !query 20490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20491 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 20491 schema -struct<> --- !query 20491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20492 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as string)) FROM t --- !query 20492 schema -struct<> --- !query 20492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20493 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 20493 schema -struct<> --- !query 20493 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20494 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 20494 schema -struct<> --- !query 20494 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20495 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20495 schema -struct<> --- !query 20495 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20496 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20496 schema -struct<> --- !query 20496 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20497 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 20497 schema -struct<> --- !query 20497 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20498 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as smallint)) FROM t --- !query 20498 schema -struct<> --- !query 20498 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20499 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as int)) FROM t --- !query 20499 schema -struct<> --- !query 20499 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20500 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as bigint)) FROM t --- !query 20500 schema -struct<> --- !query 20500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20501 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as float)) FROM t --- !query 20501 schema -struct<> --- !query 20501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20502 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as double)) FROM t --- !query 20502 schema -struct<> --- !query 20502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20503 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 20503 schema -struct<> --- !query 20503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20504 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as string)) FROM t --- !query 20504 schema -struct<> --- !query 20504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20505 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2' as binary)) FROM t --- !query 20505 schema -struct<> --- !query 20505 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20506 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast(2 as boolean)) FROM t --- !query 20506 schema -struct<> --- !query 20506 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20507 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20507 schema -struct<> --- !query 20507 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20508 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20508 schema -struct<> --- !query 20508 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20509 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 20509 schema -struct<> --- !query 20509 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20510 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as smallint)) FROM t --- !query 20510 schema -struct<> --- !query 20510 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20511 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as int)) FROM t --- !query 20511 schema -struct<> --- !query 20511 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20512 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as bigint)) FROM t --- !query 20512 schema -struct<> --- !query 20512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20513 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as float)) FROM t --- !query 20513 schema -struct<> --- !query 20513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20514 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as double)) FROM t --- !query 20514 schema -struct<> --- !query 20514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20515 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 20515 schema -struct<> --- !query 20515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20516 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as string)) FROM t --- !query 20516 schema -struct<> --- !query 20516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20517 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2' as binary)) FROM t --- !query 20517 schema -struct<> --- !query 20517 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20518 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast(2 as boolean)) FROM t --- !query 20518 schema -struct<> --- !query 20518 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20519 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20519 schema -struct<> --- !query 20519 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20520 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20520 schema -struct<> --- !query 20520 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20521 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 20521 schema -struct<> --- !query 20521 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20522 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 20522 schema -struct<> --- !query 20522 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20523 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 20523 schema -struct<> --- !query 20523 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20524 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 20524 schema -struct<> --- !query 20524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20525 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 20525 schema -struct<> --- !query 20525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20526 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 20526 schema -struct<> --- !query 20526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20527 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 20527 schema -struct<> --- !query 20527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20528 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 20528 schema -struct<> --- !query 20528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20529 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 20529 schema -struct<> --- !query 20529 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20530 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 20530 schema -struct<> --- !query 20530 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20531 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20531 schema -struct<> --- !query 20531 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20532 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20532 schema -struct<> --- !query 20532 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20533 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 20533 schema -struct<> --- !query 20533 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 20534 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as smallint)) FROM t --- !query 20534 schema -struct<> --- !query 20534 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 20535 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as int)) FROM t --- !query 20535 schema -struct<> --- !query 20535 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 20536 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as bigint)) FROM t --- !query 20536 schema -struct<> --- !query 20536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 20537 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as float)) FROM t --- !query 20537 schema -struct<> --- !query 20537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 20538 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as double)) FROM t --- !query 20538 schema -struct<> --- !query 20538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 20539 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 20539 schema -struct<> --- !query 20539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 20540 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as string)) FROM t --- !query 20540 schema -struct<> --- !query 20540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 20541 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2' as binary)) FROM t --- !query 20541 schema -struct<> --- !query 20541 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 20542 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast(2 as boolean)) FROM t --- !query 20542 schema -struct> --- !query 20542 output -{"2":true,"2017-12-11":true} - - --- !query 20543 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20543 schema -struct<> --- !query 20543 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 20544 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20544 schema -struct<> --- !query 20544 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 20545 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 20545 schema -struct<> --- !query 20545 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20546 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 20546 schema -struct<> --- !query 20546 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20547 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as int)) FROM t --- !query 20547 schema -struct<> --- !query 20547 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20548 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 20548 schema -struct<> --- !query 20548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20549 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as float)) FROM t --- !query 20549 schema -struct<> --- !query 20549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20550 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as double)) FROM t --- !query 20550 schema -struct<> --- !query 20550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20551 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 20551 schema -struct<> --- !query 20551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20552 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as string)) FROM t --- !query 20552 schema -struct<> --- !query 20552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20553 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2' as binary)) FROM t --- !query 20553 schema -struct<> --- !query 20553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20554 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 20554 schema -struct<> --- !query 20554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20555 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20555 schema -struct<> --- !query 20555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20556 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20556 schema -struct<> --- !query 20556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20557 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 20557 schema -struct<> --- !query 20557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20558 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 20558 schema -struct<> --- !query 20558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20559 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as int)) FROM t --- !query 20559 schema -struct<> --- !query 20559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20560 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 20560 schema -struct<> --- !query 20560 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20561 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as float)) FROM t --- !query 20561 schema -struct<> --- !query 20561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20562 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as double)) FROM t --- !query 20562 schema -struct<> --- !query 20562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20563 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 20563 schema -struct<> --- !query 20563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20564 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as string)) FROM t --- !query 20564 schema -struct<> --- !query 20564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20565 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 20565 schema -struct<> --- !query 20565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20566 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 20566 schema -struct<> --- !query 20566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20567 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20567 schema -struct<> --- !query 20567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20568 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20568 schema -struct<> --- !query 20568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20569 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 20569 schema -struct<> --- !query 20569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 20570 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 20570 schema -struct<> --- !query 20570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 20571 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 20571 schema -struct<> --- !query 20571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 20572 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 20572 schema -struct<> --- !query 20572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 20573 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 20573 schema -struct<> --- !query 20573 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 20574 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 20574 schema -struct<> --- !query 20574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 20575 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 20575 schema -struct<> --- !query 20575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 20576 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 20576 schema -struct<> --- !query 20576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 20577 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 20577 schema -struct<> --- !query 20577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 20578 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 20578 schema -struct> --- !query 20578 output -{2017-12-11 00:00:00.0:true,2017-12-12 09:30:00.0:true} - - --- !query 20579 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20579 schema -struct<> --- !query 20579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 20580 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20580 schema -struct<> --- !query 20580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(1 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 20581 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 20581 schema -struct<> --- !query 20581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, tinyint]; line 1 pos 7 - - --- !query 20582 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 20582 schema -struct<> --- !query 20582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, smallint]; line 1 pos 7 - - --- !query 20583 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 20583 schema -struct<> --- !query 20583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, int]; line 1 pos 7 - - --- !query 20584 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 20584 schema -struct<> --- !query 20584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, bigint]; line 1 pos 7 - - --- !query 20585 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 20585 schema -struct<> --- !query 20585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, float]; line 1 pos 7 - - --- !query 20586 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 20586 schema -struct<> --- !query 20586 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, double]; line 1 pos 7 - - --- !query 20587 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 20587 schema -struct<> --- !query 20587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 20588 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 20588 schema -struct<> --- !query 20588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, string]; line 1 pos 7 - - --- !query 20589 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 20589 schema -struct<> --- !query 20589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, binary]; line 1 pos 7 - - --- !query 20590 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 20590 schema -struct> --- !query 20590 output -{2017-12-11:true,2017-12-12:true} - - --- !query 20591 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20591 schema -struct<> --- !query 20591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, timestamp]; line 1 pos 7 - - --- !query 20592 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20592 schema -struct<> --- !query 20592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given values of function map should all be the same type, but they are [boolean, date]; line 1 pos 7 - - --- !query 20593 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 20593 schema -struct<> --- !query 20593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20594 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 20594 schema -struct<> --- !query 20594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20595 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 20595 schema -struct<> --- !query 20595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20596 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 20596 schema -struct<> --- !query 20596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20597 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 20597 schema -struct<> --- !query 20597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20598 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 20598 schema -struct<> --- !query 20598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20599 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 20599 schema -struct<> --- !query 20599 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20600 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 20600 schema -struct<> --- !query 20600 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20601 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 20601 schema -struct<> --- !query 20601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20602 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 20602 schema -struct<> --- !query 20602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20603 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20603 schema -struct<> --- !query 20603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20604 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20604 schema -struct<> --- !query 20604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20605 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 20605 schema -struct<> --- !query 20605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20606 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 20606 schema -struct<> --- !query 20606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20607 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as int)) FROM t --- !query 20607 schema -struct<> --- !query 20607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20608 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 20608 schema -struct<> --- !query 20608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20609 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as float)) FROM t --- !query 20609 schema -struct<> --- !query 20609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20610 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as double)) FROM t --- !query 20610 schema -struct<> --- !query 20610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20611 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 20611 schema -struct<> --- !query 20611 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20612 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as string)) FROM t --- !query 20612 schema -struct<> --- !query 20612 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20613 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 20613 schema -struct<> --- !query 20613 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20614 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 20614 schema -struct<> --- !query 20614 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20615 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20615 schema -struct<> --- !query 20615 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20616 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20616 schema -struct<> --- !query 20616 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20617 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 20617 schema -struct<> --- !query 20617 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20618 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as smallint)) FROM t --- !query 20618 schema -struct<> --- !query 20618 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20619 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as int)) FROM t --- !query 20619 schema -struct<> --- !query 20619 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20620 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as bigint)) FROM t --- !query 20620 schema -struct<> --- !query 20620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20621 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as float)) FROM t --- !query 20621 schema -struct<> --- !query 20621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20622 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as double)) FROM t --- !query 20622 schema -struct<> --- !query 20622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20623 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 20623 schema -struct<> --- !query 20623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20624 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as string)) FROM t --- !query 20624 schema -struct<> --- !query 20624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20625 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2' as binary)) FROM t --- !query 20625 schema -struct<> --- !query 20625 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20626 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast(2 as boolean)) FROM t --- !query 20626 schema -struct<> --- !query 20626 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20627 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20627 schema -struct<> --- !query 20627 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20628 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20628 schema -struct<> --- !query 20628 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20629 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 20629 schema -struct<> --- !query 20629 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20630 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 20630 schema -struct<> --- !query 20630 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20631 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as int)) FROM t --- !query 20631 schema -struct<> --- !query 20631 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20632 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 20632 schema -struct<> --- !query 20632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20633 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as float)) FROM t --- !query 20633 schema -struct<> --- !query 20633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20634 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as double)) FROM t --- !query 20634 schema -struct<> --- !query 20634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20635 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 20635 schema -struct<> --- !query 20635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20636 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as string)) FROM t --- !query 20636 schema -struct<> --- !query 20636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20637 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 20637 schema -struct<> --- !query 20637 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20638 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 20638 schema -struct<> --- !query 20638 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20639 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20639 schema -struct<> --- !query 20639 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20640 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20640 schema -struct<> --- !query 20640 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20641 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 20641 schema -struct<> --- !query 20641 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20642 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as smallint)) FROM t --- !query 20642 schema -struct<> --- !query 20642 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20643 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as int)) FROM t --- !query 20643 schema -struct<> --- !query 20643 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20644 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as bigint)) FROM t --- !query 20644 schema -struct<> --- !query 20644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20645 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as float)) FROM t --- !query 20645 schema -struct<> --- !query 20645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20646 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as double)) FROM t --- !query 20646 schema -struct<> --- !query 20646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20647 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 20647 schema -struct<> --- !query 20647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20648 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as string)) FROM t --- !query 20648 schema -struct<> --- !query 20648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20649 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2' as binary)) FROM t --- !query 20649 schema -struct<> --- !query 20649 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20650 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast(2 as boolean)) FROM t --- !query 20650 schema -struct<> --- !query 20650 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20651 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20651 schema -struct<> --- !query 20651 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20652 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20652 schema -struct<> --- !query 20652 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20653 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 20653 schema -struct<> --- !query 20653 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20654 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as smallint)) FROM t --- !query 20654 schema -struct<> --- !query 20654 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20655 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as int)) FROM t --- !query 20655 schema -struct<> --- !query 20655 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20656 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as bigint)) FROM t --- !query 20656 schema -struct<> --- !query 20656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20657 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as float)) FROM t --- !query 20657 schema -struct<> --- !query 20657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20658 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as double)) FROM t --- !query 20658 schema -struct<> --- !query 20658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20659 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 20659 schema -struct<> --- !query 20659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20660 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as string)) FROM t --- !query 20660 schema -struct<> --- !query 20660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20661 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2' as binary)) FROM t --- !query 20661 schema -struct<> --- !query 20661 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20662 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast(2 as boolean)) FROM t --- !query 20662 schema -struct<> --- !query 20662 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20663 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20663 schema -struct<> --- !query 20663 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20664 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20664 schema -struct<> --- !query 20664 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20665 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 20665 schema -struct<> --- !query 20665 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20666 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 20666 schema -struct<> --- !query 20666 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20667 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 20667 schema -struct<> --- !query 20667 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20668 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 20668 schema -struct<> --- !query 20668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20669 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 20669 schema -struct<> --- !query 20669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20670 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 20670 schema -struct<> --- !query 20670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20671 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 20671 schema -struct<> --- !query 20671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20672 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 20672 schema -struct<> --- !query 20672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20673 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 20673 schema -struct<> --- !query 20673 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20674 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 20674 schema -struct<> --- !query 20674 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20675 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20675 schema -struct<> --- !query 20675 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20676 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20676 schema -struct<> --- !query 20676 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20677 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 20677 schema -struct<> --- !query 20677 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 20678 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as smallint)) FROM t --- !query 20678 schema -struct<> --- !query 20678 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 20679 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as int)) FROM t --- !query 20679 schema -struct<> --- !query 20679 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 20680 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as bigint)) FROM t --- !query 20680 schema -struct<> --- !query 20680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 20681 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as float)) FROM t --- !query 20681 schema -struct<> --- !query 20681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 20682 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as double)) FROM t --- !query 20682 schema -struct<> --- !query 20682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 20683 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 20683 schema -struct<> --- !query 20683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 20684 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as string)) FROM t --- !query 20684 schema -struct> --- !query 20684 output -{"2":"2","2017-12-11":"2017-12-11 09:30:00"} - - --- !query 20685 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2' as binary)) FROM t --- !query 20685 schema -struct<> --- !query 20685 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 20686 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast(2 as boolean)) FROM t --- !query 20686 schema -struct<> --- !query 20686 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 20687 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20687 schema -struct> --- !query 20687 output -{"2":2017-12-12 09:30:00.0,"2017-12-11":2017-12-11 09:30:00.0} - - --- !query 20688 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20688 schema -struct> --- !query 20688 output -{"2":2017-12-12 00:00:00.0,"2017-12-11":2017-12-11 09:30:00.0} - - --- !query 20689 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 20689 schema -struct<> --- !query 20689 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20690 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 20690 schema -struct<> --- !query 20690 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20691 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as int)) FROM t --- !query 20691 schema -struct<> --- !query 20691 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20692 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 20692 schema -struct<> --- !query 20692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20693 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as float)) FROM t --- !query 20693 schema -struct<> --- !query 20693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20694 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as double)) FROM t --- !query 20694 schema -struct<> --- !query 20694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20695 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 20695 schema -struct<> --- !query 20695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20696 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as string)) FROM t --- !query 20696 schema -struct<> --- !query 20696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20697 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2' as binary)) FROM t --- !query 20697 schema -struct<> --- !query 20697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20698 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 20698 schema -struct<> --- !query 20698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20699 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20699 schema -struct<> --- !query 20699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20700 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20700 schema -struct<> --- !query 20700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20701 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 20701 schema -struct<> --- !query 20701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20702 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 20702 schema -struct<> --- !query 20702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20703 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as int)) FROM t --- !query 20703 schema -struct<> --- !query 20703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20704 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 20704 schema -struct<> --- !query 20704 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20705 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as float)) FROM t --- !query 20705 schema -struct<> --- !query 20705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20706 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as double)) FROM t --- !query 20706 schema -struct<> --- !query 20706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20707 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 20707 schema -struct<> --- !query 20707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20708 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as string)) FROM t --- !query 20708 schema -struct<> --- !query 20708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20709 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 20709 schema -struct<> --- !query 20709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20710 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 20710 schema -struct<> --- !query 20710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20711 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20711 schema -struct<> --- !query 20711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20712 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20712 schema -struct<> --- !query 20712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00' AS DATE) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20713 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 20713 schema -struct<> --- !query 20713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 20714 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 20714 schema -struct<> --- !query 20714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 20715 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 20715 schema -struct<> --- !query 20715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 20716 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 20716 schema -struct<> --- !query 20716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 20717 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 20717 schema -struct<> --- !query 20717 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 20718 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 20718 schema -struct<> --- !query 20718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 20719 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 20719 schema -struct<> --- !query 20719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 20720 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 20720 schema -struct> --- !query 20720 output -{2017-12-11 00:00:00.0:"2017-12-11 09:30:00",2017-12-12 09:30:00.0:"2"} - - --- !query 20721 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 20721 schema -struct<> --- !query 20721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 20722 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 20722 schema -struct<> --- !query 20722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 20723 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20723 schema -struct> --- !query 20723 output -{2017-12-11 00:00:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} - - --- !query 20724 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20724 schema -struct> --- !query 20724 output -{2017-12-11 00:00:00.0:2017-12-11 09:30:00.0,2017-12-12 09:30:00.0:2017-12-12 00:00:00.0} - - --- !query 20725 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 20725 schema -struct<> --- !query 20725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, tinyint]; line 1 pos 7 - - --- !query 20726 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 20726 schema -struct<> --- !query 20726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, smallint]; line 1 pos 7 - - --- !query 20727 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 20727 schema -struct<> --- !query 20727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, int]; line 1 pos 7 - - --- !query 20728 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 20728 schema -struct<> --- !query 20728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, bigint]; line 1 pos 7 - - --- !query 20729 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 20729 schema -struct<> --- !query 20729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, float]; line 1 pos 7 - - --- !query 20730 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 20730 schema -struct<> --- !query 20730 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, double]; line 1 pos 7 - - --- !query 20731 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 20731 schema -struct<> --- !query 20731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 20732 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 20732 schema -struct> --- !query 20732 output -{2017-12-11:"2017-12-11 09:30:00",2017-12-12:"2"} - - --- !query 20733 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 20733 schema -struct<> --- !query 20733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, binary]; line 1 pos 7 - - --- !query 20734 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 20734 schema -struct<> --- !query 20734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [timestamp, boolean]; line 1 pos 7 - - --- !query 20735 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20735 schema -struct> --- !query 20735 output -{2017-12-11:2017-12-11 09:30:00.0,2017-12-12:2017-12-12 09:30:00.0} - - --- !query 20736 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20736 schema -struct> --- !query 20736 output -{2017-12-11:2017-12-11 09:30:00.0,2017-12-12:2017-12-12 00:00:00.0} - - --- !query 20737 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as tinyint)) FROM t --- !query 20737 schema -struct<> --- !query 20737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20738 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as smallint)) FROM t --- !query 20738 schema -struct<> --- !query 20738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20739 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as int)) FROM t --- !query 20739 schema -struct<> --- !query 20739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20740 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as bigint)) FROM t --- !query 20740 schema -struct<> --- !query 20740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20741 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as float)) FROM t --- !query 20741 schema -struct<> --- !query 20741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20742 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as double)) FROM t --- !query 20742 schema -struct<> --- !query 20742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20743 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 20743 schema -struct<> --- !query 20743 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20744 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as string)) FROM t --- !query 20744 schema -struct<> --- !query 20744 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS TINYINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20745 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2' as binary)) FROM t --- !query 20745 schema -struct<> --- !query 20745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20746 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast(2 as boolean)) FROM t --- !query 20746 schema -struct<> --- !query 20746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20747 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20747 schema -struct<> --- !query 20747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS TINYINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20748 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20748 schema -struct<> --- !query 20748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20749 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as tinyint)) FROM t --- !query 20749 schema -struct<> --- !query 20749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20750 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as smallint)) FROM t --- !query 20750 schema -struct<> --- !query 20750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20751 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as int)) FROM t --- !query 20751 schema -struct<> --- !query 20751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20752 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as bigint)) FROM t --- !query 20752 schema -struct<> --- !query 20752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20753 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as float)) FROM t --- !query 20753 schema -struct<> --- !query 20753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20754 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as double)) FROM t --- !query 20754 schema -struct<> --- !query 20754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20755 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 20755 schema -struct<> --- !query 20755 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20756 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as string)) FROM t --- !query 20756 schema -struct<> --- !query 20756 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS SMALLINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20757 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2' as binary)) FROM t --- !query 20757 schema -struct<> --- !query 20757 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20758 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast(2 as boolean)) FROM t --- !query 20758 schema -struct<> --- !query 20758 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20759 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20759 schema -struct<> --- !query 20759 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS SMALLINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20760 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20760 schema -struct<> --- !query 20760 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20761 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as tinyint)) FROM t --- !query 20761 schema -struct<> --- !query 20761 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20762 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as smallint)) FROM t --- !query 20762 schema -struct<> --- !query 20762 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20763 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as int)) FROM t --- !query 20763 schema -struct<> --- !query 20763 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20764 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as bigint)) FROM t --- !query 20764 schema -struct<> --- !query 20764 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20765 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as float)) FROM t --- !query 20765 schema -struct<> --- !query 20765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20766 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as double)) FROM t --- !query 20766 schema -struct<> --- !query 20766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20767 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as decimal(10, 0))) FROM t --- !query 20767 schema -struct<> --- !query 20767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20768 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as string)) FROM t --- !query 20768 schema -struct<> --- !query 20768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS INT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20769 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2' as binary)) FROM t --- !query 20769 schema -struct<> --- !query 20769 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20770 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast(2 as boolean)) FROM t --- !query 20770 schema -struct<> --- !query 20770 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20771 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20771 schema -struct<> --- !query 20771 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS INT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20772 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20772 schema -struct<> --- !query 20772 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20773 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as tinyint)) FROM t --- !query 20773 schema -struct<> --- !query 20773 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20774 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as smallint)) FROM t --- !query 20774 schema -struct<> --- !query 20774 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20775 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as int)) FROM t --- !query 20775 schema -struct<> --- !query 20775 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20776 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as bigint)) FROM t --- !query 20776 schema -struct<> --- !query 20776 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20777 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as float)) FROM t --- !query 20777 schema -struct<> --- !query 20777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20778 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as double)) FROM t --- !query 20778 schema -struct<> --- !query 20778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20779 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 20779 schema -struct<> --- !query 20779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20780 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as string)) FROM t --- !query 20780 schema -struct<> --- !query 20780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BIGINT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20781 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2' as binary)) FROM t --- !query 20781 schema -struct<> --- !query 20781 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20782 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast(2 as boolean)) FROM t --- !query 20782 schema -struct<> --- !query 20782 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20783 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20783 schema -struct<> --- !query 20783 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BIGINT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20784 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20784 schema -struct<> --- !query 20784 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20785 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as tinyint)) FROM t --- !query 20785 schema -struct<> --- !query 20785 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20786 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as smallint)) FROM t --- !query 20786 schema -struct<> --- !query 20786 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20787 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as int)) FROM t --- !query 20787 schema -struct<> --- !query 20787 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20788 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as bigint)) FROM t --- !query 20788 schema -struct<> --- !query 20788 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20789 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as float)) FROM t --- !query 20789 schema -struct<> --- !query 20789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20790 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as double)) FROM t --- !query 20790 schema -struct<> --- !query 20790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20791 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as decimal(10, 0))) FROM t --- !query 20791 schema -struct<> --- !query 20791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20792 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as string)) FROM t --- !query 20792 schema -struct<> --- !query 20792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS FLOAT), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20793 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2' as binary)) FROM t --- !query 20793 schema -struct<> --- !query 20793 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20794 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast(2 as boolean)) FROM t --- !query 20794 schema -struct<> --- !query 20794 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20795 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20795 schema -struct<> --- !query 20795 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS FLOAT), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20796 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20796 schema -struct<> --- !query 20796 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20797 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as tinyint)) FROM t --- !query 20797 schema -struct<> --- !query 20797 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20798 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as smallint)) FROM t --- !query 20798 schema -struct<> --- !query 20798 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20799 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as int)) FROM t --- !query 20799 schema -struct<> --- !query 20799 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20800 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as bigint)) FROM t --- !query 20800 schema -struct<> --- !query 20800 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20801 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as float)) FROM t --- !query 20801 schema -struct<> --- !query 20801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20802 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as double)) FROM t --- !query 20802 schema -struct<> --- !query 20802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20803 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as decimal(10, 0))) FROM t --- !query 20803 schema -struct<> --- !query 20803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20804 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as string)) FROM t --- !query 20804 schema -struct<> --- !query 20804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DOUBLE), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20805 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2' as binary)) FROM t --- !query 20805 schema -struct<> --- !query 20805 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20806 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast(2 as boolean)) FROM t --- !query 20806 schema -struct<> --- !query 20806 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20807 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20807 schema -struct<> --- !query 20807 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DOUBLE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20808 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20808 schema -struct<> --- !query 20808 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20809 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 20809 schema -struct<> --- !query 20809 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20810 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 20810 schema -struct<> --- !query 20810 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20811 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 20811 schema -struct<> --- !query 20811 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20812 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 20812 schema -struct<> --- !query 20812 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20813 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 20813 schema -struct<> --- !query 20813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20814 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 20814 schema -struct<> --- !query 20814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20815 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 20815 schema -struct<> --- !query 20815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20816 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 20816 schema -struct<> --- !query 20816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS DECIMAL(10,0)), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20817 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 20817 schema -struct<> --- !query 20817 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20818 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 20818 schema -struct<> --- !query 20818 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20819 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20819 schema -struct<> --- !query 20819 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20820 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20820 schema -struct<> --- !query 20820 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20821 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as tinyint)) FROM t --- !query 20821 schema -struct<> --- !query 20821 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20822 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as smallint)) FROM t --- !query 20822 schema -struct<> --- !query 20822 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20823 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as int)) FROM t --- !query 20823 schema -struct<> --- !query 20823 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20824 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as bigint)) FROM t --- !query 20824 schema -struct<> --- !query 20824 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20825 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as float)) FROM t --- !query 20825 schema -struct<> --- !query 20825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20826 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as double)) FROM t --- !query 20826 schema -struct<> --- !query 20826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20827 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as decimal(10, 0))) FROM t --- !query 20827 schema -struct<> --- !query 20827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20828 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as string)) FROM t --- !query 20828 schema -struct> --- !query 20828 output -{"2":"2","2017-12-11":"2017-12-11"} - - --- !query 20829 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2' as binary)) FROM t --- !query 20829 schema -struct<> --- !query 20829 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20830 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast(2 as boolean)) FROM t --- !query 20830 schema -struct<> --- !query 20830 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20831 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20831 schema -struct> --- !query 20831 output -{"2":2017-12-12 09:30:00.0,"2017-12-11":2017-12-11 00:00:00.0} - - --- !query 20832 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20832 schema -struct> --- !query 20832 output -{"2":2017-12-12,"2017-12-11":2017-12-11} - - --- !query 20833 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as tinyint)) FROM t --- !query 20833 schema -struct<> --- !query 20833 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20834 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as smallint)) FROM t --- !query 20834 schema -struct<> --- !query 20834 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20835 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as int)) FROM t --- !query 20835 schema -struct<> --- !query 20835 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20836 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as bigint)) FROM t --- !query 20836 schema -struct<> --- !query 20836 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20837 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as float)) FROM t --- !query 20837 schema -struct<> --- !query 20837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20838 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as double)) FROM t --- !query 20838 schema -struct<> --- !query 20838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20839 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 20839 schema -struct<> --- !query 20839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20840 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as string)) FROM t --- !query 20840 schema -struct<> --- !query 20840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST('2' AS BINARY), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20841 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2' as binary)) FROM t --- !query 20841 schema -struct<> --- !query 20841 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20842 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast(2 as boolean)) FROM t --- !query 20842 schema -struct<> --- !query 20842 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20843 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20843 schema -struct<> --- !query 20843 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2' AS BINARY), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20844 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20844 schema -struct<> --- !query 20844 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20845 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as tinyint)) FROM t --- !query 20845 schema -struct<> --- !query 20845 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20846 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as smallint)) FROM t --- !query 20846 schema -struct<> --- !query 20846 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20847 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as int)) FROM t --- !query 20847 schema -struct<> --- !query 20847 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20848 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as bigint)) FROM t --- !query 20848 schema -struct<> --- !query 20848 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20849 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as float)) FROM t --- !query 20849 schema -struct<> --- !query 20849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20850 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as double)) FROM t --- !query 20850 schema -struct<> --- !query 20850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20851 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 20851 schema -struct<> --- !query 20851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20852 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as string)) FROM t --- !query 20852 schema -struct<> --- !query 20852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS STRING), CAST(2 AS BOOLEAN), CAST(CAST(2 AS STRING) AS STRING))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20853 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2' as binary)) FROM t --- !query 20853 schema -struct<> --- !query 20853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20854 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast(2 as boolean)) FROM t --- !query 20854 schema -struct<> --- !query 20854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20855 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20855 schema -struct<> --- !query 20855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST(2 AS BOOLEAN), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20856 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast(2 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20856 schema -struct<> --- !query 20856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The given keys of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20857 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 20857 schema -struct<> --- !query 20857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20858 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 20858 schema -struct<> --- !query 20858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20859 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 20859 schema -struct<> --- !query 20859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20860 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 20860 schema -struct<> --- !query 20860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20861 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 20861 schema -struct<> --- !query 20861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20862 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 20862 schema -struct<> --- !query 20862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20863 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 20863 schema -struct<> --- !query 20863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20864 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 20864 schema -struct> --- !query 20864 output -{2017-12-11 00:00:00.0:"2017-12-11",2017-12-12 09:30:00.0:"2"} - - --- !query 20865 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 20865 schema -struct<> --- !query 20865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20866 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 20866 schema -struct<> --- !query 20866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST(CAST('2017-12-11 09:30:00' AS DATE) AS TIMESTAMP), CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST('2017-12-12 09:30:00.0' AS TIMESTAMP) AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20867 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20867 schema -struct> --- !query 20867 output -{2017-12-11 00:00:00.0:2017-12-11 00:00:00.0,2017-12-12 09:30:00.0:2017-12-12 09:30:00.0} - - --- !query 20868 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20868 schema -struct> --- !query 20868 output -{2017-12-11 00:00:00.0:2017-12-11,2017-12-12 09:30:00.0:2017-12-12} - - --- !query 20869 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 20869 schema -struct<> --- !query 20869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, tinyint]; line 1 pos 7 - - --- !query 20870 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 20870 schema -struct<> --- !query 20870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, smallint]; line 1 pos 7 - - --- !query 20871 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t --- !query 20871 schema -struct<> --- !query 20871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, int]; line 1 pos 7 - - --- !query 20872 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 20872 schema -struct<> --- !query 20872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, bigint]; line 1 pos 7 - - --- !query 20873 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t --- !query 20873 schema -struct<> --- !query 20873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, float]; line 1 pos 7 - - --- !query 20874 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t --- !query 20874 schema -struct<> --- !query 20874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, double]; line 1 pos 7 - - --- !query 20875 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 20875 schema -struct<> --- !query 20875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, decimal(10,0)]; line 1 pos 7 - - --- !query 20876 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t --- !query 20876 schema -struct> --- !query 20876 output -{2017-12-11:"2017-12-11",2017-12-12:"2"} - - --- !query 20877 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t --- !query 20877 schema -struct<> --- !query 20877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, binary]; line 1 pos 7 - - --- !query 20878 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 20878 schema -struct<> --- !query 20878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'map(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The given values of function map should all be the same type, but they are [date, boolean]; line 1 pos 7 - - --- !query 20879 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20879 schema -struct> --- !query 20879 output -{2017-12-11:2017-12-11 00:00:00.0,2017-12-12:2017-12-12 09:30:00.0} - - --- !query 20880 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20880 schema -struct> --- !query 20880 output -{2017-12-11:2017-12-11,2017-12-12:2017-12-12} - - --- !query 20881 -SELECT sum(cast(1 as tinyint)) FROM t --- !query 20881 schema -struct --- !query 20881 output -1 - - --- !query 20882 -SELECT sum(cast(1 as smallint)) FROM t --- !query 20882 schema -struct --- !query 20882 output -1 - - --- !query 20883 -SELECT sum(cast(1 as int)) FROM t --- !query 20883 schema -struct --- !query 20883 output -1 - - --- !query 20884 -SELECT sum(cast(1 as bigint)) FROM t --- !query 20884 schema -struct --- !query 20884 output -1 - - --- !query 20885 -SELECT sum(cast(1 as float)) FROM t --- !query 20885 schema -struct --- !query 20885 output -1.0 - - --- !query 20886 -SELECT sum(cast(1 as double)) FROM t --- !query 20886 schema -struct --- !query 20886 output -1.0 - - --- !query 20887 -SELECT sum(cast(1 as decimal(10, 0))) FROM t --- !query 20887 schema -struct --- !query 20887 output -1 - - --- !query 20888 -SELECT sum(cast(1 as string)) FROM t --- !query 20888 schema -struct --- !query 20888 output -1.0 - - --- !query 20889 -SELECT sum(cast('1' as binary)) FROM t --- !query 20889 schema -struct<> --- !query 20889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'sum(CAST('1' AS BINARY))' due to data type mismatch: function sum requires numeric types, not BinaryType; line 1 pos 7 - - --- !query 20890 -SELECT sum(cast(1 as boolean)) FROM t --- !query 20890 schema -struct<> --- !query 20890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'sum(CAST(1 AS BOOLEAN))' due to data type mismatch: function sum requires numeric types, not BooleanType; line 1 pos 7 - - --- !query 20891 -SELECT sum(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20891 schema -struct --- !query 20891 output -1.5130998E9 - - --- !query 20892 -SELECT sum(cast('2017-12-11 09:30:00' as date)) FROM t --- !query 20892 schema -struct<> --- !query 20892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'sum(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function sum requires numeric types, not DateType; line 1 pos 7 - - --- !query 20893 -SELECT avg(cast(1 as tinyint)) FROM t --- !query 20893 schema -struct --- !query 20893 output -1.0 - - --- !query 20894 -SELECT avg(cast(1 as smallint)) FROM t --- !query 20894 schema -struct --- !query 20894 output -1.0 - - --- !query 20895 -SELECT avg(cast(1 as int)) FROM t --- !query 20895 schema -struct --- !query 20895 output -1.0 - - --- !query 20896 -SELECT avg(cast(1 as bigint)) FROM t --- !query 20896 schema -struct --- !query 20896 output -1.0 - - --- !query 20897 -SELECT avg(cast(1 as float)) FROM t --- !query 20897 schema -struct --- !query 20897 output -1.0 - - --- !query 20898 -SELECT avg(cast(1 as double)) FROM t --- !query 20898 schema -struct --- !query 20898 output -1.0 - - --- !query 20899 -SELECT avg(cast(1 as decimal(10, 0))) FROM t --- !query 20899 schema -struct --- !query 20899 output -1 - - --- !query 20900 -SELECT avg(cast(1 as string)) FROM t --- !query 20900 schema -struct --- !query 20900 output -1.0 - - --- !query 20901 -SELECT avg(cast('1' as binary)) FROM t --- !query 20901 schema -struct<> --- !query 20901 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 - - --- !query 20902 -SELECT avg(cast(1 as boolean)) FROM t --- !query 20902 schema -struct<> --- !query 20902 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 - - --- !query 20903 -SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20903 schema -struct --- !query 20903 output -1.5130998E9 - - --- !query 20904 -SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t --- !query 20904 schema -struct<> --- !query 20904 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 - - --- !query 20905 -SELECT avg(cast(1 as tinyint)) FROM t --- !query 20905 schema -struct --- !query 20905 output -1.0 - - --- !query 20906 -SELECT avg(cast(1 as smallint)) FROM t --- !query 20906 schema -struct --- !query 20906 output -1.0 - - --- !query 20907 -SELECT avg(cast(1 as int)) FROM t --- !query 20907 schema -struct --- !query 20907 output -1.0 - - --- !query 20908 -SELECT avg(cast(1 as bigint)) FROM t --- !query 20908 schema -struct --- !query 20908 output -1.0 - - --- !query 20909 -SELECT avg(cast(1 as float)) FROM t --- !query 20909 schema -struct --- !query 20909 output -1.0 - - --- !query 20910 -SELECT avg(cast(1 as double)) FROM t --- !query 20910 schema -struct --- !query 20910 output -1.0 - - --- !query 20911 -SELECT avg(cast(1 as decimal(10, 0))) FROM t --- !query 20911 schema -struct --- !query 20911 output -1 - - --- !query 20912 -SELECT avg(cast(1 as string)) FROM t --- !query 20912 schema -struct --- !query 20912 output -1.0 - - --- !query 20913 -SELECT avg(cast('1' as binary)) FROM t --- !query 20913 schema -struct<> --- !query 20913 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 - - --- !query 20914 -SELECT avg(cast(1 as boolean)) FROM t --- !query 20914 schema -struct<> --- !query 20914 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 - - --- !query 20915 -SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20915 schema -struct --- !query 20915 output -1.5130998E9 - - --- !query 20916 -SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t --- !query 20916 schema -struct<> --- !query 20916 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 - - --- !query 20917 -SELECT coalesce(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 20917 schema -struct --- !query 20917 output -1 - - --- !query 20918 -SELECT coalesce(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 20918 schema -struct --- !query 20918 output -1 - - --- !query 20919 -SELECT coalesce(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 20919 schema -struct --- !query 20919 output -1 - - --- !query 20920 -SELECT coalesce(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 20920 schema -struct --- !query 20920 output -1 - - --- !query 20921 -SELECT coalesce(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 20921 schema -struct --- !query 20921 output -1.0 - - --- !query 20922 -SELECT coalesce(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 20922 schema -struct --- !query 20922 output -1.0 - - --- !query 20923 -SELECT coalesce(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 20923 schema -struct --- !query 20923 output -1 - - --- !query 20924 -SELECT coalesce(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 20924 schema -struct --- !query 20924 output -1 - - --- !query 20925 -SELECT coalesce(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 20925 schema -struct<> --- !query 20925 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, binary]; line 1 pos 7 - - --- !query 20926 -SELECT coalesce(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 20926 schema -struct<> --- !query 20926 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, boolean]; line 1 pos 7 - - --- !query 20927 -SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20927 schema -struct<> --- !query 20927 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, timestamp]; line 1 pos 7 - - --- !query 20928 -SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20928 schema -struct<> --- !query 20928 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, date]; line 1 pos 7 - - --- !query 20929 -SELECT coalesce(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 20929 schema -struct --- !query 20929 output -1 - - --- !query 20930 -SELECT coalesce(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 20930 schema -struct --- !query 20930 output -1 - - --- !query 20931 -SELECT coalesce(cast(1 as smallint), cast(2 as int)) FROM t --- !query 20931 schema -struct --- !query 20931 output -1 - - --- !query 20932 -SELECT coalesce(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 20932 schema -struct --- !query 20932 output -1 - - --- !query 20933 -SELECT coalesce(cast(1 as smallint), cast(2 as float)) FROM t --- !query 20933 schema -struct --- !query 20933 output -1.0 - - --- !query 20934 -SELECT coalesce(cast(1 as smallint), cast(2 as double)) FROM t --- !query 20934 schema -struct --- !query 20934 output -1.0 - - --- !query 20935 -SELECT coalesce(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 20935 schema -struct --- !query 20935 output -1 - - --- !query 20936 -SELECT coalesce(cast(1 as smallint), cast(2 as string)) FROM t --- !query 20936 schema -struct --- !query 20936 output -1 - - --- !query 20937 -SELECT coalesce(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 20937 schema -struct<> --- !query 20937 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, binary]; line 1 pos 7 - - --- !query 20938 -SELECT coalesce(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 20938 schema -struct<> --- !query 20938 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, boolean]; line 1 pos 7 - - --- !query 20939 -SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20939 schema -struct<> --- !query 20939 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, timestamp]; line 1 pos 7 - - --- !query 20940 -SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20940 schema -struct<> --- !query 20940 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, date]; line 1 pos 7 - - --- !query 20941 -SELECT coalesce(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 20941 schema -struct --- !query 20941 output -1 - - --- !query 20942 -SELECT coalesce(cast(1 as int), cast(2 as smallint)) FROM t --- !query 20942 schema -struct --- !query 20942 output -1 - - --- !query 20943 -SELECT coalesce(cast(1 as int), cast(2 as int)) FROM t --- !query 20943 schema -struct --- !query 20943 output -1 - - --- !query 20944 -SELECT coalesce(cast(1 as int), cast(2 as bigint)) FROM t --- !query 20944 schema -struct --- !query 20944 output -1 - - --- !query 20945 -SELECT coalesce(cast(1 as int), cast(2 as float)) FROM t --- !query 20945 schema -struct --- !query 20945 output -1.0 - - --- !query 20946 -SELECT coalesce(cast(1 as int), cast(2 as double)) FROM t --- !query 20946 schema -struct --- !query 20946 output -1.0 - - --- !query 20947 -SELECT coalesce(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 20947 schema -struct --- !query 20947 output -1 - - --- !query 20948 -SELECT coalesce(cast(1 as int), cast(2 as string)) FROM t --- !query 20948 schema -struct --- !query 20948 output -1 - - --- !query 20949 -SELECT coalesce(cast(1 as int), cast('2' as binary)) FROM t --- !query 20949 schema -struct<> --- !query 20949 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, binary]; line 1 pos 7 - - --- !query 20950 -SELECT coalesce(cast(1 as int), cast(2 as boolean)) FROM t --- !query 20950 schema -struct<> --- !query 20950 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, boolean]; line 1 pos 7 - - --- !query 20951 -SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20951 schema -struct<> --- !query 20951 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, timestamp]; line 1 pos 7 - - --- !query 20952 -SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20952 schema -struct<> --- !query 20952 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, date]; line 1 pos 7 - - --- !query 20953 -SELECT coalesce(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 20953 schema -struct --- !query 20953 output -1 - - --- !query 20954 -SELECT coalesce(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 20954 schema -struct --- !query 20954 output -1 - - --- !query 20955 -SELECT coalesce(cast(1 as bigint), cast(2 as int)) FROM t --- !query 20955 schema -struct --- !query 20955 output -1 - - --- !query 20956 -SELECT coalesce(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 20956 schema -struct --- !query 20956 output -1 - - --- !query 20957 -SELECT coalesce(cast(1 as bigint), cast(2 as float)) FROM t --- !query 20957 schema -struct --- !query 20957 output -1.0 - - --- !query 20958 -SELECT coalesce(cast(1 as bigint), cast(2 as double)) FROM t --- !query 20958 schema -struct --- !query 20958 output -1.0 - - --- !query 20959 -SELECT coalesce(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 20959 schema -struct --- !query 20959 output -1 - - --- !query 20960 -SELECT coalesce(cast(1 as bigint), cast(2 as string)) FROM t --- !query 20960 schema -struct --- !query 20960 output -1 - - --- !query 20961 -SELECT coalesce(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 20961 schema -struct<> --- !query 20961 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, binary]; line 1 pos 7 - - --- !query 20962 -SELECT coalesce(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 20962 schema -struct<> --- !query 20962 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, boolean]; line 1 pos 7 - - --- !query 20963 -SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20963 schema -struct<> --- !query 20963 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, timestamp]; line 1 pos 7 - - --- !query 20964 -SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20964 schema -struct<> --- !query 20964 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, date]; line 1 pos 7 - - --- !query 20965 -SELECT coalesce(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 20965 schema -struct --- !query 20965 output -1.0 - - --- !query 20966 -SELECT coalesce(cast(1 as float), cast(2 as smallint)) FROM t --- !query 20966 schema -struct --- !query 20966 output -1.0 - - --- !query 20967 -SELECT coalesce(cast(1 as float), cast(2 as int)) FROM t --- !query 20967 schema -struct --- !query 20967 output -1.0 - - --- !query 20968 -SELECT coalesce(cast(1 as float), cast(2 as bigint)) FROM t --- !query 20968 schema -struct --- !query 20968 output -1.0 - - --- !query 20969 -SELECT coalesce(cast(1 as float), cast(2 as float)) FROM t --- !query 20969 schema -struct --- !query 20969 output -1.0 - - --- !query 20970 -SELECT coalesce(cast(1 as float), cast(2 as double)) FROM t --- !query 20970 schema -struct --- !query 20970 output -1.0 - - --- !query 20971 -SELECT coalesce(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 20971 schema -struct --- !query 20971 output -1.0 - - --- !query 20972 -SELECT coalesce(cast(1 as float), cast(2 as string)) FROM t --- !query 20972 schema -struct --- !query 20972 output -1.0 - - --- !query 20973 -SELECT coalesce(cast(1 as float), cast('2' as binary)) FROM t --- !query 20973 schema -struct<> --- !query 20973 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, binary]; line 1 pos 7 - - --- !query 20974 -SELECT coalesce(cast(1 as float), cast(2 as boolean)) FROM t --- !query 20974 schema -struct<> --- !query 20974 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, boolean]; line 1 pos 7 - - --- !query 20975 -SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20975 schema -struct<> --- !query 20975 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, timestamp]; line 1 pos 7 - - --- !query 20976 -SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20976 schema -struct<> --- !query 20976 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, date]; line 1 pos 7 - - --- !query 20977 -SELECT coalesce(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 20977 schema -struct --- !query 20977 output -1.0 - - --- !query 20978 -SELECT coalesce(cast(1 as double), cast(2 as smallint)) FROM t --- !query 20978 schema -struct --- !query 20978 output -1.0 - - --- !query 20979 -SELECT coalesce(cast(1 as double), cast(2 as int)) FROM t --- !query 20979 schema -struct --- !query 20979 output -1.0 - - --- !query 20980 -SELECT coalesce(cast(1 as double), cast(2 as bigint)) FROM t --- !query 20980 schema -struct --- !query 20980 output -1.0 - - --- !query 20981 -SELECT coalesce(cast(1 as double), cast(2 as float)) FROM t --- !query 20981 schema -struct --- !query 20981 output -1.0 - - --- !query 20982 -SELECT coalesce(cast(1 as double), cast(2 as double)) FROM t --- !query 20982 schema -struct --- !query 20982 output -1.0 - - --- !query 20983 -SELECT coalesce(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 20983 schema -struct --- !query 20983 output -1.0 - - --- !query 20984 -SELECT coalesce(cast(1 as double), cast(2 as string)) FROM t --- !query 20984 schema -struct --- !query 20984 output -1.0 - - --- !query 20985 -SELECT coalesce(cast(1 as double), cast('2' as binary)) FROM t --- !query 20985 schema -struct<> --- !query 20985 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, binary]; line 1 pos 7 - - --- !query 20986 -SELECT coalesce(cast(1 as double), cast(2 as boolean)) FROM t --- !query 20986 schema -struct<> --- !query 20986 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, boolean]; line 1 pos 7 - - --- !query 20987 -SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20987 schema -struct<> --- !query 20987 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, timestamp]; line 1 pos 7 - - --- !query 20988 -SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 20988 schema -struct<> --- !query 20988 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, date]; line 1 pos 7 - - --- !query 20989 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 20989 schema -struct --- !query 20989 output -1 - - --- !query 20990 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 20990 schema -struct --- !query 20990 output -1 - - --- !query 20991 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 20991 schema -struct --- !query 20991 output -1 - - --- !query 20992 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 20992 schema -struct --- !query 20992 output -1 - - --- !query 20993 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 20993 schema -struct --- !query 20993 output -1.0 - - --- !query 20994 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 20994 schema -struct --- !query 20994 output -1.0 - - --- !query 20995 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 20995 schema -struct --- !query 20995 output -1 - - --- !query 20996 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 20996 schema -struct --- !query 20996 output -1 - - --- !query 20997 -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 20997 schema -struct<> --- !query 20997 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 7 - - --- !query 20998 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 20998 schema -struct<> --- !query 20998 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 20999 -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 20999 schema -struct<> --- !query 20999 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 21000 -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21000 schema -struct<> --- !query 21000 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), date]; line 1 pos 7 - - --- !query 21001 -SELECT coalesce(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 21001 schema -struct --- !query 21001 output -1 - - --- !query 21002 -SELECT coalesce(cast(1 as string), cast(2 as smallint)) FROM t --- !query 21002 schema -struct --- !query 21002 output -1 - - --- !query 21003 -SELECT coalesce(cast(1 as string), cast(2 as int)) FROM t --- !query 21003 schema -struct --- !query 21003 output -1 - - --- !query 21004 -SELECT coalesce(cast(1 as string), cast(2 as bigint)) FROM t --- !query 21004 schema -struct --- !query 21004 output -1 - - --- !query 21005 -SELECT coalesce(cast(1 as string), cast(2 as float)) FROM t --- !query 21005 schema -struct --- !query 21005 output -1 - - --- !query 21006 -SELECT coalesce(cast(1 as string), cast(2 as double)) FROM t --- !query 21006 schema -struct --- !query 21006 output -1 - - --- !query 21007 -SELECT coalesce(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 21007 schema -struct --- !query 21007 output -1 - - --- !query 21008 -SELECT coalesce(cast(1 as string), cast(2 as string)) FROM t --- !query 21008 schema -struct --- !query 21008 output -1 - - --- !query 21009 -SELECT coalesce(cast(1 as string), cast('2' as binary)) FROM t --- !query 21009 schema -struct<> --- !query 21009 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, binary]; line 1 pos 7 - - --- !query 21010 -SELECT coalesce(cast(1 as string), cast(2 as boolean)) FROM t --- !query 21010 schema -struct<> --- !query 21010 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, boolean]; line 1 pos 7 - - --- !query 21011 -SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21011 schema -struct --- !query 21011 output -1 - - --- !query 21012 -SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21012 schema -struct --- !query 21012 output -1 - - --- !query 21013 -SELECT coalesce(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 21013 schema -struct<> --- !query 21013 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, tinyint]; line 1 pos 7 - - --- !query 21014 -SELECT coalesce(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 21014 schema -struct<> --- !query 21014 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, smallint]; line 1 pos 7 - - --- !query 21015 -SELECT coalesce(cast('1' as binary), cast(2 as int)) FROM t --- !query 21015 schema -struct<> --- !query 21015 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, int]; line 1 pos 7 - - --- !query 21016 -SELECT coalesce(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 21016 schema -struct<> --- !query 21016 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, bigint]; line 1 pos 7 - - --- !query 21017 -SELECT coalesce(cast('1' as binary), cast(2 as float)) FROM t --- !query 21017 schema -struct<> --- !query 21017 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, float]; line 1 pos 7 - - --- !query 21018 -SELECT coalesce(cast('1' as binary), cast(2 as double)) FROM t --- !query 21018 schema -struct<> --- !query 21018 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, double]; line 1 pos 7 - - --- !query 21019 -SELECT coalesce(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 21019 schema -struct<> --- !query 21019 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 21020 -SELECT coalesce(cast('1' as binary), cast(2 as string)) FROM t --- !query 21020 schema -struct<> --- !query 21020 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, string]; line 1 pos 7 - - --- !query 21021 -SELECT coalesce(cast('1' as binary), cast('2' as binary)) FROM t --- !query 21021 schema -struct --- !query 21021 output -1 - - --- !query 21022 -SELECT coalesce(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 21022 schema -struct<> --- !query 21022 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, boolean]; line 1 pos 7 - - --- !query 21023 -SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21023 schema -struct<> --- !query 21023 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, timestamp]; line 1 pos 7 - - --- !query 21024 -SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21024 schema -struct<> --- !query 21024 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, date]; line 1 pos 7 - - --- !query 21025 -SELECT coalesce(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 21025 schema -struct<> --- !query 21025 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, tinyint]; line 1 pos 7 - - --- !query 21026 -SELECT coalesce(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 21026 schema -struct<> --- !query 21026 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, smallint]; line 1 pos 7 - - --- !query 21027 -SELECT coalesce(cast(1 as boolean), cast(2 as int)) FROM t --- !query 21027 schema -struct<> --- !query 21027 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, int]; line 1 pos 7 - - --- !query 21028 -SELECT coalesce(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 21028 schema -struct<> --- !query 21028 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, bigint]; line 1 pos 7 - - --- !query 21029 -SELECT coalesce(cast(1 as boolean), cast(2 as float)) FROM t --- !query 21029 schema -struct<> --- !query 21029 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, float]; line 1 pos 7 - - --- !query 21030 -SELECT coalesce(cast(1 as boolean), cast(2 as double)) FROM t --- !query 21030 schema -struct<> --- !query 21030 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, double]; line 1 pos 7 - - --- !query 21031 -SELECT coalesce(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 21031 schema -struct<> --- !query 21031 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 21032 -SELECT coalesce(cast(1 as boolean), cast(2 as string)) FROM t --- !query 21032 schema -struct<> --- !query 21032 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, string]; line 1 pos 7 - - --- !query 21033 -SELECT coalesce(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 21033 schema -struct<> --- !query 21033 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, binary]; line 1 pos 7 - - --- !query 21034 -SELECT coalesce(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 21034 schema -struct --- !query 21034 output -true - - --- !query 21035 -SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21035 schema -struct<> --- !query 21035 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, timestamp]; line 1 pos 7 - - --- !query 21036 -SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21036 schema -struct<> --- !query 21036 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, date]; line 1 pos 7 - - --- !query 21037 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 21037 schema -struct<> --- !query 21037 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, tinyint]; line 1 pos 7 - - --- !query 21038 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 21038 schema -struct<> --- !query 21038 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, smallint]; line 1 pos 7 - - --- !query 21039 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 21039 schema -struct<> --- !query 21039 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, int]; line 1 pos 7 - - --- !query 21040 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 21040 schema -struct<> --- !query 21040 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, bigint]; line 1 pos 7 - - --- !query 21041 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 21041 schema -struct<> --- !query 21041 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, float]; line 1 pos 7 - - --- !query 21042 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 21042 schema -struct<> --- !query 21042 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, double]; line 1 pos 7 - - --- !query 21043 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 21043 schema -struct<> --- !query 21043 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 21044 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 21044 schema -struct --- !query 21044 output -2017-12-11 09:30:00 - - --- !query 21045 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 21045 schema -struct<> --- !query 21045 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, binary]; line 1 pos 7 - - --- !query 21046 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 21046 schema -struct<> --- !query 21046 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, boolean]; line 1 pos 7 - - --- !query 21047 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21047 schema -struct --- !query 21047 output -2017-12-11 09:30:00 - - --- !query 21048 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21048 schema -struct --- !query 21048 output -2017-12-11 09:30:00 - - --- !query 21049 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 21049 schema -struct<> --- !query 21049 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, tinyint]; line 1 pos 7 - - --- !query 21050 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 21050 schema -struct<> --- !query 21050 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, smallint]; line 1 pos 7 - - --- !query 21051 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 21051 schema -struct<> --- !query 21051 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, int]; line 1 pos 7 - - --- !query 21052 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 21052 schema -struct<> --- !query 21052 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, bigint]; line 1 pos 7 - - --- !query 21053 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 21053 schema -struct<> --- !query 21053 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, float]; line 1 pos 7 - - --- !query 21054 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 21054 schema -struct<> --- !query 21054 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, double]; line 1 pos 7 - - --- !query 21055 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 21055 schema -struct<> --- !query 21055 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, decimal(10,0)]; line 1 pos 7 - - --- !query 21056 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 21056 schema -struct --- !query 21056 output -2017-12-11 - - --- !query 21057 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 21057 schema -struct<> --- !query 21057 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, binary]; line 1 pos 7 - - --- !query 21058 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 21058 schema -struct<> --- !query 21058 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, boolean]; line 1 pos 7 - - --- !query 21059 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21059 schema -struct --- !query 21059 output -2017-12-11 00:00:00 - - --- !query 21060 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21060 schema -struct --- !query 21060 output -2017-12-11 - - --- !query 21061 -SELECT greatest(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 21061 schema -struct --- !query 21061 output -2 - - --- !query 21062 -SELECT greatest(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 21062 schema -struct --- !query 21062 output -2 - - --- !query 21063 -SELECT greatest(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 21063 schema -struct --- !query 21063 output -2 - - --- !query 21064 -SELECT greatest(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 21064 schema -struct --- !query 21064 output -2 - - --- !query 21065 -SELECT greatest(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 21065 schema -struct --- !query 21065 output -2.0 - - --- !query 21066 -SELECT greatest(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 21066 schema -struct --- !query 21066 output -2.0 - - --- !query 21067 -SELECT greatest(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 21067 schema -struct --- !query 21067 output -2 - - --- !query 21068 -SELECT greatest(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 21068 schema -struct<> --- !query 21068 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, string).; line 1 pos 7 - - --- !query 21069 -SELECT greatest(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 21069 schema -struct<> --- !query 21069 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, binary).; line 1 pos 7 - - --- !query 21070 -SELECT greatest(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 21070 schema -struct<> --- !query 21070 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, boolean).; line 1 pos 7 - - --- !query 21071 -SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21071 schema -struct<> --- !query 21071 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, timestamp).; line 1 pos 7 - - --- !query 21072 -SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21072 schema -struct<> --- !query 21072 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, date).; line 1 pos 7 - - --- !query 21073 -SELECT greatest(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 21073 schema -struct --- !query 21073 output -2 - - --- !query 21074 -SELECT greatest(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 21074 schema -struct --- !query 21074 output -2 - - --- !query 21075 -SELECT greatest(cast(1 as smallint), cast(2 as int)) FROM t --- !query 21075 schema -struct --- !query 21075 output -2 - - --- !query 21076 -SELECT greatest(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 21076 schema -struct --- !query 21076 output -2 - - --- !query 21077 -SELECT greatest(cast(1 as smallint), cast(2 as float)) FROM t --- !query 21077 schema -struct --- !query 21077 output -2.0 - - --- !query 21078 -SELECT greatest(cast(1 as smallint), cast(2 as double)) FROM t --- !query 21078 schema -struct --- !query 21078 output -2.0 - - --- !query 21079 -SELECT greatest(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 21079 schema -struct --- !query 21079 output -2 - - --- !query 21080 -SELECT greatest(cast(1 as smallint), cast(2 as string)) FROM t --- !query 21080 schema -struct<> --- !query 21080 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, string).; line 1 pos 7 - - --- !query 21081 -SELECT greatest(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 21081 schema -struct<> --- !query 21081 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, binary).; line 1 pos 7 - - --- !query 21082 -SELECT greatest(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 21082 schema -struct<> --- !query 21082 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, boolean).; line 1 pos 7 - - --- !query 21083 -SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21083 schema -struct<> --- !query 21083 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, timestamp).; line 1 pos 7 - - --- !query 21084 -SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21084 schema -struct<> --- !query 21084 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, date).; line 1 pos 7 - - --- !query 21085 -SELECT greatest(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 21085 schema -struct --- !query 21085 output -2 - - --- !query 21086 -SELECT greatest(cast(1 as int), cast(2 as smallint)) FROM t --- !query 21086 schema -struct --- !query 21086 output -2 - - --- !query 21087 -SELECT greatest(cast(1 as int), cast(2 as int)) FROM t --- !query 21087 schema -struct --- !query 21087 output -2 - - --- !query 21088 -SELECT greatest(cast(1 as int), cast(2 as bigint)) FROM t --- !query 21088 schema -struct --- !query 21088 output -2 - - --- !query 21089 -SELECT greatest(cast(1 as int), cast(2 as float)) FROM t --- !query 21089 schema -struct --- !query 21089 output -2.0 - - --- !query 21090 -SELECT greatest(cast(1 as int), cast(2 as double)) FROM t --- !query 21090 schema -struct --- !query 21090 output -2.0 - - --- !query 21091 -SELECT greatest(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 21091 schema -struct --- !query 21091 output -2 - - --- !query 21092 -SELECT greatest(cast(1 as int), cast(2 as string)) FROM t --- !query 21092 schema -struct<> --- !query 21092 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, string).; line 1 pos 7 - - --- !query 21093 -SELECT greatest(cast(1 as int), cast('2' as binary)) FROM t --- !query 21093 schema -struct<> --- !query 21093 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, binary).; line 1 pos 7 - - --- !query 21094 -SELECT greatest(cast(1 as int), cast(2 as boolean)) FROM t --- !query 21094 schema -struct<> --- !query 21094 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, boolean).; line 1 pos 7 - - --- !query 21095 -SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21095 schema -struct<> --- !query 21095 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, timestamp).; line 1 pos 7 - - --- !query 21096 -SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21096 schema -struct<> --- !query 21096 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, date).; line 1 pos 7 - - --- !query 21097 -SELECT greatest(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 21097 schema -struct --- !query 21097 output -2 - - --- !query 21098 -SELECT greatest(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 21098 schema -struct --- !query 21098 output -2 - - --- !query 21099 -SELECT greatest(cast(1 as bigint), cast(2 as int)) FROM t --- !query 21099 schema -struct --- !query 21099 output -2 - - --- !query 21100 -SELECT greatest(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 21100 schema -struct --- !query 21100 output -2 - - --- !query 21101 -SELECT greatest(cast(1 as bigint), cast(2 as float)) FROM t --- !query 21101 schema -struct --- !query 21101 output -2.0 - - --- !query 21102 -SELECT greatest(cast(1 as bigint), cast(2 as double)) FROM t --- !query 21102 schema -struct --- !query 21102 output -2.0 - - --- !query 21103 -SELECT greatest(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 21103 schema -struct --- !query 21103 output -2 - - --- !query 21104 -SELECT greatest(cast(1 as bigint), cast(2 as string)) FROM t --- !query 21104 schema -struct<> --- !query 21104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, string).; line 1 pos 7 - - --- !query 21105 -SELECT greatest(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 21105 schema -struct<> --- !query 21105 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, binary).; line 1 pos 7 - - --- !query 21106 -SELECT greatest(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 21106 schema -struct<> --- !query 21106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, boolean).; line 1 pos 7 - - --- !query 21107 -SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21107 schema -struct<> --- !query 21107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, timestamp).; line 1 pos 7 - - --- !query 21108 -SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21108 schema -struct<> --- !query 21108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, date).; line 1 pos 7 - - --- !query 21109 -SELECT greatest(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 21109 schema -struct --- !query 21109 output -2.0 - - --- !query 21110 -SELECT greatest(cast(1 as float), cast(2 as smallint)) FROM t --- !query 21110 schema -struct --- !query 21110 output -2.0 - - --- !query 21111 -SELECT greatest(cast(1 as float), cast(2 as int)) FROM t --- !query 21111 schema -struct --- !query 21111 output -2.0 - - --- !query 21112 -SELECT greatest(cast(1 as float), cast(2 as bigint)) FROM t --- !query 21112 schema -struct --- !query 21112 output -2.0 - - --- !query 21113 -SELECT greatest(cast(1 as float), cast(2 as float)) FROM t --- !query 21113 schema -struct --- !query 21113 output -2.0 - - --- !query 21114 -SELECT greatest(cast(1 as float), cast(2 as double)) FROM t --- !query 21114 schema -struct --- !query 21114 output -2.0 - - --- !query 21115 -SELECT greatest(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 21115 schema -struct --- !query 21115 output -2.0 - - --- !query 21116 -SELECT greatest(cast(1 as float), cast(2 as string)) FROM t --- !query 21116 schema -struct<> --- !query 21116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, string).; line 1 pos 7 - - --- !query 21117 -SELECT greatest(cast(1 as float), cast('2' as binary)) FROM t --- !query 21117 schema -struct<> --- !query 21117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, binary).; line 1 pos 7 - - --- !query 21118 -SELECT greatest(cast(1 as float), cast(2 as boolean)) FROM t --- !query 21118 schema -struct<> --- !query 21118 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, boolean).; line 1 pos 7 - - --- !query 21119 -SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21119 schema -struct<> --- !query 21119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, timestamp).; line 1 pos 7 - - --- !query 21120 -SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21120 schema -struct<> --- !query 21120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, date).; line 1 pos 7 - - --- !query 21121 -SELECT greatest(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 21121 schema -struct --- !query 21121 output -2.0 - - --- !query 21122 -SELECT greatest(cast(1 as double), cast(2 as smallint)) FROM t --- !query 21122 schema -struct --- !query 21122 output -2.0 - - --- !query 21123 -SELECT greatest(cast(1 as double), cast(2 as int)) FROM t --- !query 21123 schema -struct --- !query 21123 output -2.0 - - --- !query 21124 -SELECT greatest(cast(1 as double), cast(2 as bigint)) FROM t --- !query 21124 schema -struct --- !query 21124 output -2.0 - - --- !query 21125 -SELECT greatest(cast(1 as double), cast(2 as float)) FROM t --- !query 21125 schema -struct --- !query 21125 output -2.0 - - --- !query 21126 -SELECT greatest(cast(1 as double), cast(2 as double)) FROM t --- !query 21126 schema -struct --- !query 21126 output -2.0 - - --- !query 21127 -SELECT greatest(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 21127 schema -struct --- !query 21127 output -2.0 - - --- !query 21128 -SELECT greatest(cast(1 as double), cast(2 as string)) FROM t --- !query 21128 schema -struct<> --- !query 21128 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, string).; line 1 pos 7 - - --- !query 21129 -SELECT greatest(cast(1 as double), cast('2' as binary)) FROM t --- !query 21129 schema -struct<> --- !query 21129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, binary).; line 1 pos 7 - - --- !query 21130 -SELECT greatest(cast(1 as double), cast(2 as boolean)) FROM t --- !query 21130 schema -struct<> --- !query 21130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, boolean).; line 1 pos 7 - - --- !query 21131 -SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21131 schema -struct<> --- !query 21131 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, timestamp).; line 1 pos 7 - - --- !query 21132 -SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21132 schema -struct<> --- !query 21132 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, date).; line 1 pos 7 - - --- !query 21133 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 21133 schema -struct --- !query 21133 output -2 - - --- !query 21134 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 21134 schema -struct --- !query 21134 output -2 - - --- !query 21135 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 21135 schema -struct --- !query 21135 output -2 - - --- !query 21136 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 21136 schema -struct --- !query 21136 output -2 - - --- !query 21137 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 21137 schema -struct --- !query 21137 output -2.0 - - --- !query 21138 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 21138 schema -struct --- !query 21138 output -2.0 - - --- !query 21139 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 21139 schema -struct --- !query 21139 output -2 - - --- !query 21140 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 21140 schema -struct<> --- !query 21140 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), string).; line 1 pos 7 - - --- !query 21141 -SELECT greatest(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 21141 schema -struct<> --- !query 21141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), binary).; line 1 pos 7 - - --- !query 21142 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 21142 schema -struct<> --- !query 21142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), boolean).; line 1 pos 7 - - --- !query 21143 -SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21143 schema -struct<> --- !query 21143 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), timestamp).; line 1 pos 7 - - --- !query 21144 -SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21144 schema -struct<> --- !query 21144 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), date).; line 1 pos 7 - - --- !query 21145 -SELECT greatest(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 21145 schema -struct<> --- !query 21145 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, tinyint).; line 1 pos 7 - - --- !query 21146 -SELECT greatest(cast(1 as string), cast(2 as smallint)) FROM t --- !query 21146 schema -struct<> --- !query 21146 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, smallint).; line 1 pos 7 - - --- !query 21147 -SELECT greatest(cast(1 as string), cast(2 as int)) FROM t --- !query 21147 schema -struct<> --- !query 21147 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, int).; line 1 pos 7 - - --- !query 21148 -SELECT greatest(cast(1 as string), cast(2 as bigint)) FROM t --- !query 21148 schema -struct<> --- !query 21148 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, bigint).; line 1 pos 7 - - --- !query 21149 -SELECT greatest(cast(1 as string), cast(2 as float)) FROM t --- !query 21149 schema -struct<> --- !query 21149 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, float).; line 1 pos 7 - - --- !query 21150 -SELECT greatest(cast(1 as string), cast(2 as double)) FROM t --- !query 21150 schema -struct<> --- !query 21150 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, double).; line 1 pos 7 - - --- !query 21151 -SELECT greatest(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 21151 schema -struct<> --- !query 21151 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, decimal(10,0)).; line 1 pos 7 - - --- !query 21152 -SELECT greatest(cast(1 as string), cast(2 as string)) FROM t --- !query 21152 schema -struct --- !query 21152 output -2 - - --- !query 21153 -SELECT greatest(cast(1 as string), cast('2' as binary)) FROM t --- !query 21153 schema -struct<> --- !query 21153 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, binary).; line 1 pos 7 - - --- !query 21154 -SELECT greatest(cast(1 as string), cast(2 as boolean)) FROM t --- !query 21154 schema -struct<> --- !query 21154 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, boolean).; line 1 pos 7 - - --- !query 21155 -SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21155 schema -struct<> --- !query 21155 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, timestamp).; line 1 pos 7 - - --- !query 21156 -SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21156 schema -struct<> --- !query 21156 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, date).; line 1 pos 7 - - --- !query 21157 -SELECT greatest(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 21157 schema -struct<> --- !query 21157 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, tinyint).; line 1 pos 7 - - --- !query 21158 -SELECT greatest(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 21158 schema -struct<> --- !query 21158 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, smallint).; line 1 pos 7 - - --- !query 21159 -SELECT greatest(cast('1' as binary), cast(2 as int)) FROM t --- !query 21159 schema -struct<> --- !query 21159 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, int).; line 1 pos 7 - - --- !query 21160 -SELECT greatest(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 21160 schema -struct<> --- !query 21160 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, bigint).; line 1 pos 7 - - --- !query 21161 -SELECT greatest(cast('1' as binary), cast(2 as float)) FROM t --- !query 21161 schema -struct<> --- !query 21161 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, float).; line 1 pos 7 - - --- !query 21162 -SELECT greatest(cast('1' as binary), cast(2 as double)) FROM t --- !query 21162 schema -struct<> --- !query 21162 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, double).; line 1 pos 7 - - --- !query 21163 -SELECT greatest(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 21163 schema -struct<> --- !query 21163 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, decimal(10,0)).; line 1 pos 7 - - --- !query 21164 -SELECT greatest(cast('1' as binary), cast(2 as string)) FROM t --- !query 21164 schema -struct<> --- !query 21164 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, string).; line 1 pos 7 - - --- !query 21165 -SELECT greatest(cast('1' as binary), cast('2' as binary)) FROM t --- !query 21165 schema -struct --- !query 21165 output -2 - - --- !query 21166 -SELECT greatest(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 21166 schema -struct<> --- !query 21166 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, boolean).; line 1 pos 7 - - --- !query 21167 -SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21167 schema -struct<> --- !query 21167 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, timestamp).; line 1 pos 7 - - --- !query 21168 -SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21168 schema -struct<> --- !query 21168 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, date).; line 1 pos 7 - - --- !query 21169 -SELECT greatest(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 21169 schema -struct<> --- !query 21169 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, tinyint).; line 1 pos 7 - - --- !query 21170 -SELECT greatest(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 21170 schema -struct<> --- !query 21170 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, smallint).; line 1 pos 7 - - --- !query 21171 -SELECT greatest(cast(1 as boolean), cast(2 as int)) FROM t --- !query 21171 schema -struct<> --- !query 21171 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, int).; line 1 pos 7 - - --- !query 21172 -SELECT greatest(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 21172 schema -struct<> --- !query 21172 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, bigint).; line 1 pos 7 - - --- !query 21173 -SELECT greatest(cast(1 as boolean), cast(2 as float)) FROM t --- !query 21173 schema -struct<> --- !query 21173 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, float).; line 1 pos 7 - - --- !query 21174 -SELECT greatest(cast(1 as boolean), cast(2 as double)) FROM t --- !query 21174 schema -struct<> --- !query 21174 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, double).; line 1 pos 7 - - --- !query 21175 -SELECT greatest(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 21175 schema -struct<> --- !query 21175 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, decimal(10,0)).; line 1 pos 7 - - --- !query 21176 -SELECT greatest(cast(1 as boolean), cast(2 as string)) FROM t --- !query 21176 schema -struct<> --- !query 21176 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, string).; line 1 pos 7 - - --- !query 21177 -SELECT greatest(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 21177 schema -struct<> --- !query 21177 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, binary).; line 1 pos 7 - - --- !query 21178 -SELECT greatest(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 21178 schema -struct --- !query 21178 output -true - - --- !query 21179 -SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21179 schema -struct<> --- !query 21179 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, timestamp).; line 1 pos 7 - - --- !query 21180 -SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21180 schema -struct<> --- !query 21180 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, date).; line 1 pos 7 - - --- !query 21181 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 21181 schema -struct<> --- !query 21181 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, tinyint).; line 1 pos 7 - - --- !query 21182 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 21182 schema -struct<> --- !query 21182 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, smallint).; line 1 pos 7 - - --- !query 21183 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 21183 schema -struct<> --- !query 21183 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, int).; line 1 pos 7 - - --- !query 21184 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 21184 schema -struct<> --- !query 21184 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, bigint).; line 1 pos 7 - - --- !query 21185 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 21185 schema -struct<> --- !query 21185 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, float).; line 1 pos 7 - - --- !query 21186 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 21186 schema -struct<> --- !query 21186 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, double).; line 1 pos 7 - - --- !query 21187 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 21187 schema -struct<> --- !query 21187 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, decimal(10,0)).; line 1 pos 7 - - --- !query 21188 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 21188 schema -struct<> --- !query 21188 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, string).; line 1 pos 7 - - --- !query 21189 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 21189 schema -struct<> --- !query 21189 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, binary).; line 1 pos 7 - - --- !query 21190 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 21190 schema -struct<> --- !query 21190 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, boolean).; line 1 pos 7 - - --- !query 21191 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21191 schema -struct --- !query 21191 output -2017-12-12 09:30:00 - - --- !query 21192 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21192 schema -struct --- !query 21192 output -2017-12-12 00:00:00 - - --- !query 21193 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 21193 schema -struct<> --- !query 21193 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, tinyint).; line 1 pos 7 - - --- !query 21194 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 21194 schema -struct<> --- !query 21194 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, smallint).; line 1 pos 7 - - --- !query 21195 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 21195 schema -struct<> --- !query 21195 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, int).; line 1 pos 7 - - --- !query 21196 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 21196 schema -struct<> --- !query 21196 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, bigint).; line 1 pos 7 - - --- !query 21197 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 21197 schema -struct<> --- !query 21197 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, float).; line 1 pos 7 - - --- !query 21198 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 21198 schema -struct<> --- !query 21198 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, double).; line 1 pos 7 - - --- !query 21199 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 21199 schema -struct<> --- !query 21199 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, decimal(10,0)).; line 1 pos 7 - - --- !query 21200 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 21200 schema -struct<> --- !query 21200 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, string).; line 1 pos 7 - - --- !query 21201 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 21201 schema -struct<> --- !query 21201 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, binary).; line 1 pos 7 - - --- !query 21202 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 21202 schema -struct<> --- !query 21202 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, boolean).; line 1 pos 7 - - --- !query 21203 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21203 schema -struct --- !query 21203 output -2017-12-12 09:30:00 - - --- !query 21204 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21204 schema -struct --- !query 21204 output -2017-12-12 - - --- !query 21205 -SELECT least(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 21205 schema -struct --- !query 21205 output -1 - - --- !query 21206 -SELECT least(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 21206 schema -struct --- !query 21206 output -1 - - --- !query 21207 -SELECT least(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 21207 schema -struct --- !query 21207 output -1 - - --- !query 21208 -SELECT least(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 21208 schema -struct --- !query 21208 output -1 - - --- !query 21209 -SELECT least(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 21209 schema -struct --- !query 21209 output -1.0 - - --- !query 21210 -SELECT least(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 21210 schema -struct --- !query 21210 output -1.0 - - --- !query 21211 -SELECT least(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 21211 schema -struct --- !query 21211 output -1 - - --- !query 21212 -SELECT least(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 21212 schema -struct<> --- !query 21212 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, string).; line 1 pos 7 - - --- !query 21213 -SELECT least(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 21213 schema -struct<> --- !query 21213 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, binary).; line 1 pos 7 - - --- !query 21214 -SELECT least(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 21214 schema -struct<> --- !query 21214 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, boolean).; line 1 pos 7 - - --- !query 21215 -SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21215 schema -struct<> --- !query 21215 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, timestamp).; line 1 pos 7 - - --- !query 21216 -SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21216 schema -struct<> --- !query 21216 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, date).; line 1 pos 7 - - --- !query 21217 -SELECT least(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 21217 schema -struct --- !query 21217 output -1 - - --- !query 21218 -SELECT least(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 21218 schema -struct --- !query 21218 output -1 - - --- !query 21219 -SELECT least(cast(1 as smallint), cast(2 as int)) FROM t --- !query 21219 schema -struct --- !query 21219 output -1 - - --- !query 21220 -SELECT least(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 21220 schema -struct --- !query 21220 output -1 - - --- !query 21221 -SELECT least(cast(1 as smallint), cast(2 as float)) FROM t --- !query 21221 schema -struct --- !query 21221 output -1.0 - - --- !query 21222 -SELECT least(cast(1 as smallint), cast(2 as double)) FROM t --- !query 21222 schema -struct --- !query 21222 output -1.0 - - --- !query 21223 -SELECT least(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 21223 schema -struct --- !query 21223 output -1 - - --- !query 21224 -SELECT least(cast(1 as smallint), cast(2 as string)) FROM t --- !query 21224 schema -struct<> --- !query 21224 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, string).; line 1 pos 7 - - --- !query 21225 -SELECT least(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 21225 schema -struct<> --- !query 21225 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, binary).; line 1 pos 7 - - --- !query 21226 -SELECT least(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 21226 schema -struct<> --- !query 21226 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, boolean).; line 1 pos 7 - - --- !query 21227 -SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21227 schema -struct<> --- !query 21227 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, timestamp).; line 1 pos 7 - - --- !query 21228 -SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21228 schema -struct<> --- !query 21228 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, date).; line 1 pos 7 - - --- !query 21229 -SELECT least(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 21229 schema -struct --- !query 21229 output -1 - - --- !query 21230 -SELECT least(cast(1 as int), cast(2 as smallint)) FROM t --- !query 21230 schema -struct --- !query 21230 output -1 - - --- !query 21231 -SELECT least(cast(1 as int), cast(2 as int)) FROM t --- !query 21231 schema -struct --- !query 21231 output -1 - - --- !query 21232 -SELECT least(cast(1 as int), cast(2 as bigint)) FROM t --- !query 21232 schema -struct --- !query 21232 output -1 - - --- !query 21233 -SELECT least(cast(1 as int), cast(2 as float)) FROM t --- !query 21233 schema -struct --- !query 21233 output -1.0 - - --- !query 21234 -SELECT least(cast(1 as int), cast(2 as double)) FROM t --- !query 21234 schema -struct --- !query 21234 output -1.0 - - --- !query 21235 -SELECT least(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 21235 schema -struct --- !query 21235 output -1 - - --- !query 21236 -SELECT least(cast(1 as int), cast(2 as string)) FROM t --- !query 21236 schema -struct<> --- !query 21236 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, string).; line 1 pos 7 - - --- !query 21237 -SELECT least(cast(1 as int), cast('2' as binary)) FROM t --- !query 21237 schema -struct<> --- !query 21237 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, binary).; line 1 pos 7 - - --- !query 21238 -SELECT least(cast(1 as int), cast(2 as boolean)) FROM t --- !query 21238 schema -struct<> --- !query 21238 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, boolean).; line 1 pos 7 - - --- !query 21239 -SELECT least(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21239 schema -struct<> --- !query 21239 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, timestamp).; line 1 pos 7 - - --- !query 21240 -SELECT least(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21240 schema -struct<> --- !query 21240 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, date).; line 1 pos 7 - - --- !query 21241 -SELECT least(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 21241 schema -struct --- !query 21241 output -1 - - --- !query 21242 -SELECT least(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 21242 schema -struct --- !query 21242 output -1 - - --- !query 21243 -SELECT least(cast(1 as bigint), cast(2 as int)) FROM t --- !query 21243 schema -struct --- !query 21243 output -1 - - --- !query 21244 -SELECT least(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 21244 schema -struct --- !query 21244 output -1 - - --- !query 21245 -SELECT least(cast(1 as bigint), cast(2 as float)) FROM t --- !query 21245 schema -struct --- !query 21245 output -1.0 - - --- !query 21246 -SELECT least(cast(1 as bigint), cast(2 as double)) FROM t --- !query 21246 schema -struct --- !query 21246 output -1.0 - - --- !query 21247 -SELECT least(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 21247 schema -struct --- !query 21247 output -1 - - --- !query 21248 -SELECT least(cast(1 as bigint), cast(2 as string)) FROM t --- !query 21248 schema -struct<> --- !query 21248 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, string).; line 1 pos 7 - - --- !query 21249 -SELECT least(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 21249 schema -struct<> --- !query 21249 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, binary).; line 1 pos 7 - - --- !query 21250 -SELECT least(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 21250 schema -struct<> --- !query 21250 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, boolean).; line 1 pos 7 - - --- !query 21251 -SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21251 schema -struct<> --- !query 21251 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, timestamp).; line 1 pos 7 - - --- !query 21252 -SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21252 schema -struct<> --- !query 21252 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, date).; line 1 pos 7 - - --- !query 21253 -SELECT least(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 21253 schema -struct --- !query 21253 output -1.0 - - --- !query 21254 -SELECT least(cast(1 as float), cast(2 as smallint)) FROM t --- !query 21254 schema -struct --- !query 21254 output -1.0 - - --- !query 21255 -SELECT least(cast(1 as float), cast(2 as int)) FROM t --- !query 21255 schema -struct --- !query 21255 output -1.0 - - --- !query 21256 -SELECT least(cast(1 as float), cast(2 as bigint)) FROM t --- !query 21256 schema -struct --- !query 21256 output -1.0 - - --- !query 21257 -SELECT least(cast(1 as float), cast(2 as float)) FROM t --- !query 21257 schema -struct --- !query 21257 output -1.0 - - --- !query 21258 -SELECT least(cast(1 as float), cast(2 as double)) FROM t --- !query 21258 schema -struct --- !query 21258 output -1.0 - - --- !query 21259 -SELECT least(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 21259 schema -struct --- !query 21259 output -1.0 - - --- !query 21260 -SELECT least(cast(1 as float), cast(2 as string)) FROM t --- !query 21260 schema -struct<> --- !query 21260 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, string).; line 1 pos 7 - - --- !query 21261 -SELECT least(cast(1 as float), cast('2' as binary)) FROM t --- !query 21261 schema -struct<> --- !query 21261 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, binary).; line 1 pos 7 - - --- !query 21262 -SELECT least(cast(1 as float), cast(2 as boolean)) FROM t --- !query 21262 schema -struct<> --- !query 21262 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, boolean).; line 1 pos 7 - - --- !query 21263 -SELECT least(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21263 schema -struct<> --- !query 21263 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, timestamp).; line 1 pos 7 - - --- !query 21264 -SELECT least(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21264 schema -struct<> --- !query 21264 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, date).; line 1 pos 7 - - --- !query 21265 -SELECT least(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 21265 schema -struct --- !query 21265 output -1.0 - - --- !query 21266 -SELECT least(cast(1 as double), cast(2 as smallint)) FROM t --- !query 21266 schema -struct --- !query 21266 output -1.0 - - --- !query 21267 -SELECT least(cast(1 as double), cast(2 as int)) FROM t --- !query 21267 schema -struct --- !query 21267 output -1.0 - - --- !query 21268 -SELECT least(cast(1 as double), cast(2 as bigint)) FROM t --- !query 21268 schema -struct --- !query 21268 output -1.0 - - --- !query 21269 -SELECT least(cast(1 as double), cast(2 as float)) FROM t --- !query 21269 schema -struct --- !query 21269 output -1.0 - - --- !query 21270 -SELECT least(cast(1 as double), cast(2 as double)) FROM t --- !query 21270 schema -struct --- !query 21270 output -1.0 - - --- !query 21271 -SELECT least(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 21271 schema -struct --- !query 21271 output -1.0 - - --- !query 21272 -SELECT least(cast(1 as double), cast(2 as string)) FROM t --- !query 21272 schema -struct<> --- !query 21272 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, string).; line 1 pos 7 - - --- !query 21273 -SELECT least(cast(1 as double), cast('2' as binary)) FROM t --- !query 21273 schema -struct<> --- !query 21273 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, binary).; line 1 pos 7 - - --- !query 21274 -SELECT least(cast(1 as double), cast(2 as boolean)) FROM t --- !query 21274 schema -struct<> --- !query 21274 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, boolean).; line 1 pos 7 - - --- !query 21275 -SELECT least(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21275 schema -struct<> --- !query 21275 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, timestamp).; line 1 pos 7 - - --- !query 21276 -SELECT least(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21276 schema -struct<> --- !query 21276 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, date).; line 1 pos 7 - - --- !query 21277 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 21277 schema -struct --- !query 21277 output -1 - - --- !query 21278 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 21278 schema -struct --- !query 21278 output -1 - - --- !query 21279 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 21279 schema -struct --- !query 21279 output -1 - - --- !query 21280 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 21280 schema -struct --- !query 21280 output -1 - - --- !query 21281 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 21281 schema -struct --- !query 21281 output -1.0 - - --- !query 21282 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 21282 schema -struct --- !query 21282 output -1.0 - - --- !query 21283 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 21283 schema -struct --- !query 21283 output -1 - - --- !query 21284 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 21284 schema -struct<> --- !query 21284 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), string).; line 1 pos 7 - - --- !query 21285 -SELECT least(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 21285 schema -struct<> --- !query 21285 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), binary).; line 1 pos 7 - - --- !query 21286 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 21286 schema -struct<> --- !query 21286 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), boolean).; line 1 pos 7 - - --- !query 21287 -SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21287 schema -struct<> --- !query 21287 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), timestamp).; line 1 pos 7 - - --- !query 21288 -SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21288 schema -struct<> --- !query 21288 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), date).; line 1 pos 7 - - --- !query 21289 -SELECT least(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 21289 schema -struct<> --- !query 21289 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, tinyint).; line 1 pos 7 - - --- !query 21290 -SELECT least(cast(1 as string), cast(2 as smallint)) FROM t --- !query 21290 schema -struct<> --- !query 21290 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, smallint).; line 1 pos 7 - - --- !query 21291 -SELECT least(cast(1 as string), cast(2 as int)) FROM t --- !query 21291 schema -struct<> --- !query 21291 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, int).; line 1 pos 7 - - --- !query 21292 -SELECT least(cast(1 as string), cast(2 as bigint)) FROM t --- !query 21292 schema -struct<> --- !query 21292 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, bigint).; line 1 pos 7 - - --- !query 21293 -SELECT least(cast(1 as string), cast(2 as float)) FROM t --- !query 21293 schema -struct<> --- !query 21293 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, float).; line 1 pos 7 - - --- !query 21294 -SELECT least(cast(1 as string), cast(2 as double)) FROM t --- !query 21294 schema -struct<> --- !query 21294 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, double).; line 1 pos 7 - - --- !query 21295 -SELECT least(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 21295 schema -struct<> --- !query 21295 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, decimal(10,0)).; line 1 pos 7 - - --- !query 21296 -SELECT least(cast(1 as string), cast(2 as string)) FROM t --- !query 21296 schema -struct --- !query 21296 output -1 - - --- !query 21297 -SELECT least(cast(1 as string), cast('2' as binary)) FROM t --- !query 21297 schema -struct<> --- !query 21297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, binary).; line 1 pos 7 - - --- !query 21298 -SELECT least(cast(1 as string), cast(2 as boolean)) FROM t --- !query 21298 schema -struct<> --- !query 21298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, boolean).; line 1 pos 7 - - --- !query 21299 -SELECT least(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21299 schema -struct<> --- !query 21299 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, timestamp).; line 1 pos 7 - - --- !query 21300 -SELECT least(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21300 schema -struct<> --- !query 21300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, date).; line 1 pos 7 - - --- !query 21301 -SELECT least(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 21301 schema -struct<> --- !query 21301 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, tinyint).; line 1 pos 7 - - --- !query 21302 -SELECT least(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 21302 schema -struct<> --- !query 21302 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, smallint).; line 1 pos 7 - - --- !query 21303 -SELECT least(cast('1' as binary), cast(2 as int)) FROM t --- !query 21303 schema -struct<> --- !query 21303 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, int).; line 1 pos 7 - - --- !query 21304 -SELECT least(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 21304 schema -struct<> --- !query 21304 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, bigint).; line 1 pos 7 - - --- !query 21305 -SELECT least(cast('1' as binary), cast(2 as float)) FROM t --- !query 21305 schema -struct<> --- !query 21305 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, float).; line 1 pos 7 - - --- !query 21306 -SELECT least(cast('1' as binary), cast(2 as double)) FROM t --- !query 21306 schema -struct<> --- !query 21306 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, double).; line 1 pos 7 - - --- !query 21307 -SELECT least(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 21307 schema -struct<> --- !query 21307 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, decimal(10,0)).; line 1 pos 7 - - --- !query 21308 -SELECT least(cast('1' as binary), cast(2 as string)) FROM t --- !query 21308 schema -struct<> --- !query 21308 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, string).; line 1 pos 7 - - --- !query 21309 -SELECT least(cast('1' as binary), cast('2' as binary)) FROM t --- !query 21309 schema -struct --- !query 21309 output -1 - - --- !query 21310 -SELECT least(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 21310 schema -struct<> --- !query 21310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, boolean).; line 1 pos 7 - - --- !query 21311 -SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21311 schema -struct<> --- !query 21311 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, timestamp).; line 1 pos 7 - - --- !query 21312 -SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21312 schema -struct<> --- !query 21312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, date).; line 1 pos 7 - - --- !query 21313 -SELECT least(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 21313 schema -struct<> --- !query 21313 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, tinyint).; line 1 pos 7 - - --- !query 21314 -SELECT least(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 21314 schema -struct<> --- !query 21314 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, smallint).; line 1 pos 7 - - --- !query 21315 -SELECT least(cast(1 as boolean), cast(2 as int)) FROM t --- !query 21315 schema -struct<> --- !query 21315 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, int).; line 1 pos 7 - - --- !query 21316 -SELECT least(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 21316 schema -struct<> --- !query 21316 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, bigint).; line 1 pos 7 - - --- !query 21317 -SELECT least(cast(1 as boolean), cast(2 as float)) FROM t --- !query 21317 schema -struct<> --- !query 21317 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, float).; line 1 pos 7 - - --- !query 21318 -SELECT least(cast(1 as boolean), cast(2 as double)) FROM t --- !query 21318 schema -struct<> --- !query 21318 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, double).; line 1 pos 7 - - --- !query 21319 -SELECT least(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 21319 schema -struct<> --- !query 21319 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, decimal(10,0)).; line 1 pos 7 - - --- !query 21320 -SELECT least(cast(1 as boolean), cast(2 as string)) FROM t --- !query 21320 schema -struct<> --- !query 21320 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, string).; line 1 pos 7 - - --- !query 21321 -SELECT least(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 21321 schema -struct<> --- !query 21321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, binary).; line 1 pos 7 - - --- !query 21322 -SELECT least(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 21322 schema -struct --- !query 21322 output -true - - --- !query 21323 -SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21323 schema -struct<> --- !query 21323 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, timestamp).; line 1 pos 7 - - --- !query 21324 -SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21324 schema -struct<> --- !query 21324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, date).; line 1 pos 7 - - --- !query 21325 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 21325 schema -struct<> --- !query 21325 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, tinyint).; line 1 pos 7 - - --- !query 21326 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 21326 schema +-- !query 734 schema struct<> --- !query 21326 output +-- !query 734 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, smallint).; line 1 pos 7 --- !query 21327 +-- !query 735 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 21327 schema +-- !query 735 schema struct<> --- !query 21327 output +-- !query 735 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, int).; line 1 pos 7 --- !query 21328 +-- !query 736 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 21328 schema +-- !query 736 schema struct<> --- !query 21328 output +-- !query 736 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, bigint).; line 1 pos 7 --- !query 21329 +-- !query 737 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 21329 schema +-- !query 737 schema struct<> --- !query 21329 output +-- !query 737 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, float).; line 1 pos 7 --- !query 21330 +-- !query 738 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 21330 schema +-- !query 738 schema struct<> --- !query 21330 output +-- !query 738 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, double).; line 1 pos 7 --- !query 21331 +-- !query 739 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 21331 schema +-- !query 739 schema struct<> --- !query 21331 output +-- !query 739 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, decimal(10,0)).; line 1 pos 7 --- !query 21332 +-- !query 740 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 21332 schema +-- !query 740 schema struct<> --- !query 21332 output +-- !query 740 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, string).; line 1 pos 7 --- !query 21333 +-- !query 741 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 21333 schema +-- !query 741 schema struct<> --- !query 21333 output +-- !query 741 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, binary).; line 1 pos 7 --- !query 21334 +-- !query 742 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 21334 schema +-- !query 742 schema struct<> --- !query 21334 output +-- !query 742 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, boolean).; line 1 pos 7 --- !query 21335 +-- !query 743 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21335 schema +-- !query 743 schema struct --- !query 21335 output +-- !query 743 output 2017-12-11 09:30:00 --- !query 21336 +-- !query 744 SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21336 schema +-- !query 744 schema struct --- !query 21336 output +-- !query 744 output 2017-12-11 09:30:00 --- !query 21337 +-- !query 745 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 21337 schema +-- !query 745 schema struct<> --- !query 21337 output +-- !query 745 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, tinyint).; line 1 pos 7 --- !query 21338 +-- !query 746 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 21338 schema +-- !query 746 schema struct<> --- !query 21338 output +-- !query 746 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, smallint).; line 1 pos 7 --- !query 21339 +-- !query 747 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 21339 schema +-- !query 747 schema struct<> --- !query 21339 output +-- !query 747 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, int).; line 1 pos 7 --- !query 21340 +-- !query 748 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 21340 schema +-- !query 748 schema struct<> --- !query 21340 output +-- !query 748 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, bigint).; line 1 pos 7 --- !query 21341 +-- !query 749 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 21341 schema +-- !query 749 schema struct<> --- !query 21341 output +-- !query 749 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, float).; line 1 pos 7 --- !query 21342 +-- !query 750 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 21342 schema +-- !query 750 schema struct<> --- !query 21342 output +-- !query 750 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, double).; line 1 pos 7 --- !query 21343 +-- !query 751 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 21343 schema +-- !query 751 schema struct<> --- !query 21343 output +-- !query 751 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, decimal(10,0)).; line 1 pos 7 --- !query 21344 +-- !query 752 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 21344 schema +-- !query 752 schema struct<> --- !query 21344 output +-- !query 752 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, string).; line 1 pos 7 --- !query 21345 +-- !query 753 SELECT least(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 21345 schema +-- !query 753 schema struct<> --- !query 21345 output +-- !query 753 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, binary).; line 1 pos 7 --- !query 21346 +-- !query 754 SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 21346 schema +-- !query 754 schema struct<> --- !query 21346 output +-- !query 754 output org.apache.spark.sql.AnalysisException cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, boolean).; line 1 pos 7 --- !query 21347 +-- !query 755 SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21347 schema +-- !query 755 schema struct --- !query 21347 output +-- !query 755 output 2017-12-11 00:00:00 --- !query 21348 +-- !query 756 SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21348 schema +-- !query 756 schema struct --- !query 21348 output +-- !query 756 output 2017-12-11 --- !query 21349 +-- !query 757 SELECT nanvl(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 21349 schema +-- !query 757 schema struct --- !query 21349 output +-- !query 757 output 1.0 --- !query 21350 +-- !query 758 SELECT nanvl(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 21350 schema +-- !query 758 schema struct --- !query 21350 output +-- !query 758 output 1.0 --- !query 21351 +-- !query 759 SELECT nanvl(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 21351 schema +-- !query 759 schema struct --- !query 21351 output +-- !query 759 output 1.0 --- !query 21352 +-- !query 760 SELECT nanvl(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 21352 schema +-- !query 760 schema struct --- !query 21352 output +-- !query 760 output 1.0 --- !query 21353 +-- !query 761 SELECT nanvl(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 21353 schema +-- !query 761 schema struct --- !query 21353 output +-- !query 761 output 1.0 --- !query 21354 +-- !query 762 SELECT nanvl(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 21354 schema +-- !query 762 schema struct --- !query 21354 output +-- !query 762 output 1.0 --- !query 21355 +-- !query 763 SELECT nanvl(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 21355 schema +-- !query 763 schema struct --- !query 21355 output +-- !query 763 output 1.0 --- !query 21356 +-- !query 764 SELECT nanvl(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 21356 schema +-- !query 764 schema struct --- !query 21356 output +-- !query 764 output 1.0 --- !query 21357 +-- !query 765 SELECT nanvl(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 21357 schema +-- !query 765 schema struct<> --- !query 21357 output +-- !query 765 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21358 +-- !query 766 SELECT nanvl(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 21358 schema +-- !query 766 schema struct<> --- !query 21358 output +-- !query 766 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21359 +-- !query 767 SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21359 schema +-- !query 767 schema struct<> --- !query 21359 output +-- !query 767 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21360 +-- !query 768 SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21360 schema +-- !query 768 schema struct<> --- !query 21360 output +-- !query 768 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21361 +-- !query 769 SELECT nanvl(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 21361 schema +-- !query 769 schema struct --- !query 21361 output +-- !query 769 output 1.0 --- !query 21362 +-- !query 770 SELECT nanvl(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 21362 schema +-- !query 770 schema struct --- !query 21362 output +-- !query 770 output 1.0 --- !query 21363 +-- !query 771 SELECT nanvl(cast(1 as smallint), cast(2 as int)) FROM t --- !query 21363 schema +-- !query 771 schema struct --- !query 21363 output +-- !query 771 output 1.0 --- !query 21364 +-- !query 772 SELECT nanvl(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 21364 schema +-- !query 772 schema struct --- !query 21364 output +-- !query 772 output 1.0 --- !query 21365 +-- !query 773 SELECT nanvl(cast(1 as smallint), cast(2 as float)) FROM t --- !query 21365 schema +-- !query 773 schema struct --- !query 21365 output +-- !query 773 output 1.0 --- !query 21366 +-- !query 774 SELECT nanvl(cast(1 as smallint), cast(2 as double)) FROM t --- !query 21366 schema +-- !query 774 schema struct --- !query 21366 output +-- !query 774 output 1.0 --- !query 21367 +-- !query 775 SELECT nanvl(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 21367 schema +-- !query 775 schema struct --- !query 21367 output +-- !query 775 output 1.0 --- !query 21368 +-- !query 776 SELECT nanvl(cast(1 as smallint), cast(2 as string)) FROM t --- !query 21368 schema +-- !query 776 schema struct --- !query 21368 output +-- !query 776 output 1.0 --- !query 21369 +-- !query 777 SELECT nanvl(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 21369 schema +-- !query 777 schema struct<> --- !query 21369 output +-- !query 777 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21370 +-- !query 778 SELECT nanvl(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 21370 schema +-- !query 778 schema struct<> --- !query 21370 output +-- !query 778 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21371 +-- !query 779 SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21371 schema +-- !query 779 schema struct<> --- !query 21371 output +-- !query 779 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21372 +-- !query 780 SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21372 schema +-- !query 780 schema struct<> --- !query 21372 output +-- !query 780 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21373 +-- !query 781 SELECT nanvl(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 21373 schema +-- !query 781 schema struct --- !query 21373 output +-- !query 781 output 1.0 --- !query 21374 +-- !query 782 SELECT nanvl(cast(1 as int), cast(2 as smallint)) FROM t --- !query 21374 schema +-- !query 782 schema struct --- !query 21374 output +-- !query 782 output 1.0 --- !query 21375 +-- !query 783 SELECT nanvl(cast(1 as int), cast(2 as int)) FROM t --- !query 21375 schema +-- !query 783 schema struct --- !query 21375 output +-- !query 783 output 1.0 --- !query 21376 +-- !query 784 SELECT nanvl(cast(1 as int), cast(2 as bigint)) FROM t --- !query 21376 schema +-- !query 784 schema struct --- !query 21376 output +-- !query 784 output 1.0 --- !query 21377 +-- !query 785 SELECT nanvl(cast(1 as int), cast(2 as float)) FROM t --- !query 21377 schema +-- !query 785 schema struct --- !query 21377 output +-- !query 785 output 1.0 --- !query 21378 +-- !query 786 SELECT nanvl(cast(1 as int), cast(2 as double)) FROM t --- !query 21378 schema +-- !query 786 schema struct --- !query 21378 output +-- !query 786 output 1.0 --- !query 21379 +-- !query 787 SELECT nanvl(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 21379 schema +-- !query 787 schema struct --- !query 21379 output +-- !query 787 output 1.0 --- !query 21380 +-- !query 788 SELECT nanvl(cast(1 as int), cast(2 as string)) FROM t --- !query 21380 schema +-- !query 788 schema struct --- !query 21380 output +-- !query 788 output 1.0 --- !query 21381 +-- !query 789 SELECT nanvl(cast(1 as int), cast('2' as binary)) FROM t --- !query 21381 schema +-- !query 789 schema struct<> --- !query 21381 output +-- !query 789 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21382 +-- !query 790 SELECT nanvl(cast(1 as int), cast(2 as boolean)) FROM t --- !query 21382 schema +-- !query 790 schema struct<> --- !query 21382 output +-- !query 790 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21383 +-- !query 791 SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21383 schema +-- !query 791 schema struct<> --- !query 21383 output +-- !query 791 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21384 +-- !query 792 SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21384 schema +-- !query 792 schema struct<> --- !query 21384 output +-- !query 792 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21385 +-- !query 793 SELECT nanvl(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 21385 schema +-- !query 793 schema struct --- !query 21385 output +-- !query 793 output 1.0 --- !query 21386 +-- !query 794 SELECT nanvl(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 21386 schema +-- !query 794 schema struct --- !query 21386 output +-- !query 794 output 1.0 --- !query 21387 +-- !query 795 SELECT nanvl(cast(1 as bigint), cast(2 as int)) FROM t --- !query 21387 schema +-- !query 795 schema struct --- !query 21387 output +-- !query 795 output 1.0 --- !query 21388 +-- !query 796 SELECT nanvl(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 21388 schema +-- !query 796 schema struct --- !query 21388 output +-- !query 796 output 1.0 --- !query 21389 +-- !query 797 SELECT nanvl(cast(1 as bigint), cast(2 as float)) FROM t --- !query 21389 schema +-- !query 797 schema struct --- !query 21389 output +-- !query 797 output 1.0 --- !query 21390 +-- !query 798 SELECT nanvl(cast(1 as bigint), cast(2 as double)) FROM t --- !query 21390 schema +-- !query 798 schema struct --- !query 21390 output +-- !query 798 output 1.0 --- !query 21391 +-- !query 799 SELECT nanvl(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 21391 schema +-- !query 799 schema struct --- !query 21391 output +-- !query 799 output 1.0 --- !query 21392 +-- !query 800 SELECT nanvl(cast(1 as bigint), cast(2 as string)) FROM t --- !query 21392 schema +-- !query 800 schema struct --- !query 21392 output +-- !query 800 output 1.0 --- !query 21393 +-- !query 801 SELECT nanvl(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 21393 schema +-- !query 801 schema struct<> --- !query 21393 output +-- !query 801 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21394 +-- !query 802 SELECT nanvl(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 21394 schema +-- !query 802 schema struct<> --- !query 21394 output +-- !query 802 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21395 +-- !query 803 SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21395 schema +-- !query 803 schema struct<> --- !query 21395 output +-- !query 803 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21396 +-- !query 804 SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21396 schema +-- !query 804 schema struct<> --- !query 21396 output +-- !query 804 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21397 +-- !query 805 SELECT nanvl(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 21397 schema +-- !query 805 schema struct --- !query 21397 output +-- !query 805 output 1.0 --- !query 21398 +-- !query 806 SELECT nanvl(cast(1 as float), cast(2 as smallint)) FROM t --- !query 21398 schema +-- !query 806 schema struct --- !query 21398 output +-- !query 806 output 1.0 --- !query 21399 +-- !query 807 SELECT nanvl(cast(1 as float), cast(2 as int)) FROM t --- !query 21399 schema +-- !query 807 schema struct --- !query 21399 output +-- !query 807 output 1.0 --- !query 21400 +-- !query 808 SELECT nanvl(cast(1 as float), cast(2 as bigint)) FROM t --- !query 21400 schema +-- !query 808 schema struct --- !query 21400 output +-- !query 808 output 1.0 --- !query 21401 +-- !query 809 SELECT nanvl(cast(1 as float), cast(2 as float)) FROM t --- !query 21401 schema +-- !query 809 schema struct --- !query 21401 output +-- !query 809 output 1.0 --- !query 21402 +-- !query 810 SELECT nanvl(cast(1 as float), cast(2 as double)) FROM t --- !query 21402 schema +-- !query 810 schema struct --- !query 21402 output +-- !query 810 output 1.0 --- !query 21403 +-- !query 811 SELECT nanvl(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 21403 schema +-- !query 811 schema struct --- !query 21403 output +-- !query 811 output 1.0 --- !query 21404 +-- !query 812 SELECT nanvl(cast(1 as float), cast(2 as string)) FROM t --- !query 21404 schema +-- !query 812 schema struct --- !query 21404 output +-- !query 812 output 1.0 --- !query 21405 +-- !query 813 SELECT nanvl(cast(1 as float), cast('2' as binary)) FROM t --- !query 21405 schema +-- !query 813 schema struct<> --- !query 21405 output +-- !query 813 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21406 +-- !query 814 SELECT nanvl(cast(1 as float), cast(2 as boolean)) FROM t --- !query 21406 schema +-- !query 814 schema struct<> --- !query 21406 output +-- !query 814 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21407 +-- !query 815 SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21407 schema +-- !query 815 schema struct<> --- !query 21407 output +-- !query 815 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21408 +-- !query 816 SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21408 schema +-- !query 816 schema struct<> --- !query 21408 output +-- !query 816 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21409 +-- !query 817 SELECT nanvl(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 21409 schema +-- !query 817 schema struct --- !query 21409 output +-- !query 817 output 1.0 --- !query 21410 +-- !query 818 SELECT nanvl(cast(1 as double), cast(2 as smallint)) FROM t --- !query 21410 schema +-- !query 818 schema struct --- !query 21410 output +-- !query 818 output 1.0 --- !query 21411 +-- !query 819 SELECT nanvl(cast(1 as double), cast(2 as int)) FROM t --- !query 21411 schema +-- !query 819 schema struct --- !query 21411 output +-- !query 819 output 1.0 --- !query 21412 +-- !query 820 SELECT nanvl(cast(1 as double), cast(2 as bigint)) FROM t --- !query 21412 schema +-- !query 820 schema struct --- !query 21412 output +-- !query 820 output 1.0 --- !query 21413 +-- !query 821 SELECT nanvl(cast(1 as double), cast(2 as float)) FROM t --- !query 21413 schema +-- !query 821 schema struct --- !query 21413 output +-- !query 821 output 1.0 --- !query 21414 +-- !query 822 SELECT nanvl(cast(1 as double), cast(2 as double)) FROM t --- !query 21414 schema +-- !query 822 schema struct --- !query 21414 output +-- !query 822 output 1.0 --- !query 21415 +-- !query 823 SELECT nanvl(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 21415 schema +-- !query 823 schema struct --- !query 21415 output +-- !query 823 output 1.0 --- !query 21416 +-- !query 824 SELECT nanvl(cast(1 as double), cast(2 as string)) FROM t --- !query 21416 schema +-- !query 824 schema struct --- !query 21416 output +-- !query 824 output 1.0 --- !query 21417 +-- !query 825 SELECT nanvl(cast(1 as double), cast('2' as binary)) FROM t --- !query 21417 schema +-- !query 825 schema struct<> --- !query 21417 output +-- !query 825 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21418 +-- !query 826 SELECT nanvl(cast(1 as double), cast(2 as boolean)) FROM t --- !query 21418 schema +-- !query 826 schema struct<> --- !query 21418 output +-- !query 826 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21419 +-- !query 827 SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21419 schema +-- !query 827 schema struct<> --- !query 21419 output +-- !query 827 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21420 +-- !query 828 SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21420 schema +-- !query 828 schema struct<> --- !query 21420 output +-- !query 828 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21421 +-- !query 829 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 21421 schema +-- !query 829 schema struct --- !query 21421 output +-- !query 829 output 1.0 --- !query 21422 +-- !query 830 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 21422 schema +-- !query 830 schema struct --- !query 21422 output +-- !query 830 output 1.0 --- !query 21423 +-- !query 831 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 21423 schema +-- !query 831 schema struct --- !query 21423 output +-- !query 831 output 1.0 --- !query 21424 +-- !query 832 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 21424 schema +-- !query 832 schema struct --- !query 21424 output +-- !query 832 output 1.0 --- !query 21425 +-- !query 833 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 21425 schema +-- !query 833 schema struct --- !query 21425 output +-- !query 833 output 1.0 --- !query 21426 +-- !query 834 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 21426 schema +-- !query 834 schema struct --- !query 21426 output +-- !query 834 output 1.0 --- !query 21427 +-- !query 835 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 21427 schema +-- !query 835 schema struct --- !query 21427 output +-- !query 835 output 1.0 --- !query 21428 +-- !query 836 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 21428 schema +-- !query 836 schema struct --- !query 21428 output +-- !query 836 output 1.0 --- !query 21429 +-- !query 837 SELECT nanvl(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 21429 schema +-- !query 837 schema struct<> --- !query 21429 output +-- !query 837 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21430 +-- !query 838 SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 21430 schema +-- !query 838 schema struct<> --- !query 21430 output +-- !query 838 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21431 +-- !query 839 SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21431 schema +-- !query 839 schema struct<> --- !query 21431 output +-- !query 839 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21432 +-- !query 840 SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21432 schema +-- !query 840 schema struct<> --- !query 21432 output +-- !query 840 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21433 +-- !query 841 SELECT nanvl(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 21433 schema +-- !query 841 schema struct --- !query 21433 output +-- !query 841 output 1.0 --- !query 21434 +-- !query 842 SELECT nanvl(cast(1 as string), cast(2 as smallint)) FROM t --- !query 21434 schema +-- !query 842 schema struct --- !query 21434 output +-- !query 842 output 1.0 --- !query 21435 +-- !query 843 SELECT nanvl(cast(1 as string), cast(2 as int)) FROM t --- !query 21435 schema +-- !query 843 schema struct --- !query 21435 output +-- !query 843 output 1.0 --- !query 21436 +-- !query 844 SELECT nanvl(cast(1 as string), cast(2 as bigint)) FROM t --- !query 21436 schema +-- !query 844 schema struct --- !query 21436 output +-- !query 844 output 1.0 --- !query 21437 +-- !query 845 SELECT nanvl(cast(1 as string), cast(2 as float)) FROM t --- !query 21437 schema +-- !query 845 schema struct --- !query 21437 output +-- !query 845 output 1.0 --- !query 21438 +-- !query 846 SELECT nanvl(cast(1 as string), cast(2 as double)) FROM t --- !query 21438 schema +-- !query 846 schema struct --- !query 21438 output +-- !query 846 output 1.0 --- !query 21439 +-- !query 847 SELECT nanvl(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 21439 schema +-- !query 847 schema struct --- !query 21439 output +-- !query 847 output 1.0 --- !query 21440 +-- !query 848 SELECT nanvl(cast(1 as string), cast(2 as string)) FROM t --- !query 21440 schema +-- !query 848 schema struct --- !query 21440 output +-- !query 848 output 1.0 --- !query 21441 +-- !query 849 SELECT nanvl(cast(1 as string), cast('2' as binary)) FROM t --- !query 21441 schema +-- !query 849 schema struct<> --- !query 21441 output +-- !query 849 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21442 +-- !query 850 SELECT nanvl(cast(1 as string), cast(2 as boolean)) FROM t --- !query 21442 schema +-- !query 850 schema struct<> --- !query 21442 output +-- !query 850 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21443 +-- !query 851 SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21443 schema +-- !query 851 schema struct<> --- !query 21443 output +-- !query 851 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21444 +-- !query 852 SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21444 schema +-- !query 852 schema struct<> --- !query 21444 output +-- !query 852 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21445 +-- !query 853 SELECT nanvl(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 21445 schema +-- !query 853 schema struct<> --- !query 21445 output +-- !query 853 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21446 +-- !query 854 SELECT nanvl(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 21446 schema +-- !query 854 schema struct<> --- !query 21446 output +-- !query 854 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21447 +-- !query 855 SELECT nanvl(cast('1' as binary), cast(2 as int)) FROM t --- !query 21447 schema +-- !query 855 schema struct<> --- !query 21447 output +-- !query 855 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21448 +-- !query 856 SELECT nanvl(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 21448 schema +-- !query 856 schema struct<> --- !query 21448 output +-- !query 856 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21449 +-- !query 857 SELECT nanvl(cast('1' as binary), cast(2 as float)) FROM t --- !query 21449 schema +-- !query 857 schema struct<> --- !query 21449 output +-- !query 857 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21450 +-- !query 858 SELECT nanvl(cast('1' as binary), cast(2 as double)) FROM t --- !query 21450 schema +-- !query 858 schema struct<> --- !query 21450 output +-- !query 858 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21451 +-- !query 859 SELECT nanvl(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 21451 schema +-- !query 859 schema struct<> --- !query 21451 output +-- !query 859 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21452 +-- !query 860 SELECT nanvl(cast('1' as binary), cast(2 as string)) FROM t --- !query 21452 schema +-- !query 860 schema struct<> --- !query 21452 output +-- !query 860 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21453 +-- !query 861 SELECT nanvl(cast('1' as binary), cast('2' as binary)) FROM t --- !query 21453 schema +-- !query 861 schema struct<> --- !query 21453 output +-- !query 861 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21454 +-- !query 862 SELECT nanvl(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 21454 schema +-- !query 862 schema struct<> --- !query 21454 output +-- !query 862 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21455 +-- !query 863 SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21455 schema +-- !query 863 schema struct<> --- !query 21455 output +-- !query 863 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21456 +-- !query 864 SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21456 schema +-- !query 864 schema struct<> --- !query 21456 output +-- !query 864 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21457 +-- !query 865 SELECT nanvl(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 21457 schema +-- !query 865 schema struct<> --- !query 21457 output +-- !query 865 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21458 +-- !query 866 SELECT nanvl(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 21458 schema +-- !query 866 schema struct<> --- !query 21458 output +-- !query 866 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21459 +-- !query 867 SELECT nanvl(cast(1 as boolean), cast(2 as int)) FROM t --- !query 21459 schema +-- !query 867 schema struct<> --- !query 21459 output +-- !query 867 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21460 +-- !query 868 SELECT nanvl(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 21460 schema +-- !query 868 schema struct<> --- !query 21460 output +-- !query 868 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21461 +-- !query 869 SELECT nanvl(cast(1 as boolean), cast(2 as float)) FROM t --- !query 21461 schema +-- !query 869 schema struct<> --- !query 21461 output +-- !query 869 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21462 +-- !query 870 SELECT nanvl(cast(1 as boolean), cast(2 as double)) FROM t --- !query 21462 schema +-- !query 870 schema struct<> --- !query 21462 output +-- !query 870 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21463 +-- !query 871 SELECT nanvl(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 21463 schema +-- !query 871 schema struct<> --- !query 21463 output +-- !query 871 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21464 +-- !query 872 SELECT nanvl(cast(1 as boolean), cast(2 as string)) FROM t --- !query 21464 schema +-- !query 872 schema struct<> --- !query 21464 output +-- !query 872 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21465 +-- !query 873 SELECT nanvl(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 21465 schema +-- !query 873 schema struct<> --- !query 21465 output +-- !query 873 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21466 +-- !query 874 SELECT nanvl(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 21466 schema +-- !query 874 schema struct<> --- !query 21466 output +-- !query 874 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21467 +-- !query 875 SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21467 schema +-- !query 875 schema struct<> --- !query 21467 output +-- !query 875 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21468 +-- !query 876 SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21468 schema +-- !query 876 schema struct<> --- !query 21468 output +-- !query 876 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21469 +-- !query 877 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 21469 schema +-- !query 877 schema struct<> --- !query 21469 output +-- !query 877 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21470 +-- !query 878 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 21470 schema +-- !query 878 schema struct<> --- !query 21470 output +-- !query 878 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21471 +-- !query 879 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 21471 schema +-- !query 879 schema struct<> --- !query 21471 output +-- !query 879 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21472 +-- !query 880 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 21472 schema +-- !query 880 schema struct<> --- !query 21472 output +-- !query 880 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21473 +-- !query 881 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 21473 schema +-- !query 881 schema struct<> --- !query 21473 output +-- !query 881 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21474 +-- !query 882 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 21474 schema +-- !query 882 schema struct<> --- !query 21474 output +-- !query 882 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21475 +-- !query 883 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 21475 schema +-- !query 883 schema struct<> --- !query 21475 output +-- !query 883 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21476 +-- !query 884 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 21476 schema +-- !query 884 schema struct<> --- !query 21476 output +-- !query 884 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21477 +-- !query 885 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 21477 schema +-- !query 885 schema struct<> --- !query 21477 output +-- !query 885 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21478 +-- !query 886 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 21478 schema +-- !query 886 schema struct<> --- !query 21478 output +-- !query 886 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21479 +-- !query 887 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21479 schema +-- !query 887 schema struct<> --- !query 21479 output +-- !query 887 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21480 +-- !query 888 SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21480 schema +-- !query 888 schema struct<> --- !query 21480 output +-- !query 888 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21481 +-- !query 889 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 21481 schema +-- !query 889 schema struct<> --- !query 21481 output +-- !query 889 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21482 +-- !query 890 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 21482 schema +-- !query 890 schema struct<> --- !query 21482 output +-- !query 890 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21483 +-- !query 891 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 21483 schema +-- !query 891 schema struct<> --- !query 21483 output +-- !query 891 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21484 +-- !query 892 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 21484 schema +-- !query 892 schema struct<> --- !query 21484 output +-- !query 892 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21485 +-- !query 893 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 21485 schema +-- !query 893 schema struct<> --- !query 21485 output +-- !query 893 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21486 +-- !query 894 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 21486 schema +-- !query 894 schema struct<> --- !query 21486 output +-- !query 894 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21487 +-- !query 895 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 21487 schema +-- !query 895 schema struct<> --- !query 21487 output +-- !query 895 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21488 +-- !query 896 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 21488 schema +-- !query 896 schema struct<> --- !query 21488 output +-- !query 896 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 --- !query 21489 +-- !query 897 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 21489 schema +-- !query 897 schema struct<> --- !query 21489 output +-- !query 897 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 --- !query 21490 +-- !query 898 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 21490 schema +-- !query 898 schema struct<> --- !query 21490 output +-- !query 898 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 --- !query 21491 +-- !query 899 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 21491 schema +-- !query 899 schema struct<> --- !query 21491 output +-- !query 899 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 --- !query 21492 +-- !query 900 SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 21492 schema +-- !query 900 schema struct<> --- !query 21492 output +-- !query 900 output org.apache.spark.sql.AnalysisException cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 From 16f0a996c694151bbc743bb49b8f1e2439c69a57 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Wed, 20 Dec 2017 09:29:54 +0800 Subject: [PATCH 3/8] Fix binary error --- .../native/functionArgumentConversion.sql | 92 +++---- .../native/functionArgumentConversion.sql.out | 232 +++++++++--------- 2 files changed, 162 insertions(+), 162 deletions(-) diff --git a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql index b18547148eb36..3601d762b2784 100644 --- a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql +++ b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql @@ -25,7 +25,7 @@ SELECT array(cast(1 as tinyint), cast(1 as float)) FROM t; SELECT array(cast(1 as tinyint), cast(1 as double)) FROM t; SELECT array(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as tinyint), cast(1 as string)) FROM t; -SELECT array(cast(1 as tinyint), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as tinyint), cast('1' as binary))) FROM t; SELECT array(cast(1 as tinyint), cast(1 as boolean)) FROM t; SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -38,7 +38,7 @@ SELECT array(cast(1 as smallint), cast(1 as float)) FROM t; SELECT array(cast(1 as smallint), cast(1 as double)) FROM t; SELECT array(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as smallint), cast(1 as string)) FROM t; -SELECT array(cast(1 as smallint), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as smallint), cast('1' as binary))) FROM t; SELECT array(cast(1 as smallint), cast(1 as boolean)) FROM t; SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -51,7 +51,7 @@ SELECT array(cast(1 as int), cast(1 as float)) FROM t; SELECT array(cast(1 as int), cast(1 as double)) FROM t; SELECT array(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as int), cast(1 as string)) FROM t; -SELECT array(cast(1 as int), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as int), cast('1' as binary))) FROM t; SELECT array(cast(1 as int), cast(1 as boolean)) FROM t; SELECT array(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -64,7 +64,7 @@ SELECT array(cast(1 as bigint), cast(1 as float)) FROM t; SELECT array(cast(1 as bigint), cast(1 as double)) FROM t; SELECT array(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as bigint), cast(1 as string)) FROM t; -SELECT array(cast(1 as bigint), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as bigint), cast('1' as binary))) FROM t; SELECT array(cast(1 as bigint), cast(1 as boolean)) FROM t; SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -77,7 +77,7 @@ SELECT array(cast(1 as float), cast(1 as float)) FROM t; SELECT array(cast(1 as float), cast(1 as double)) FROM t; SELECT array(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as float), cast(1 as string)) FROM t; -SELECT array(cast(1 as float), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as float), cast('1' as binary))) FROM t; SELECT array(cast(1 as float), cast(1 as boolean)) FROM t; SELECT array(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -90,7 +90,7 @@ SELECT array(cast(1 as double), cast(1 as float)) FROM t; SELECT array(cast(1 as double), cast(1 as double)) FROM t; SELECT array(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as double), cast(1 as string)) FROM t; -SELECT array(cast(1 as double), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as double), cast('1' as binary))) FROM t; SELECT array(cast(1 as double), cast(1 as boolean)) FROM t; SELECT array(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -103,7 +103,7 @@ SELECT array(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; SELECT array(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; SELECT array(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as decimal(10, 0)), cast('1' as binary))) FROM t; SELECT array(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -116,23 +116,23 @@ SELECT array(cast(1 as string), cast(1 as float)) FROM t; SELECT array(cast(1 as string), cast(1 as double)) FROM t; SELECT array(cast(1 as string), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as string), cast(1 as string)) FROM t; -SELECT array(cast(1 as string), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as string), cast('1' as binary))) FROM t; SELECT array(cast(1 as string), cast(1 as boolean)) FROM t; SELECT array(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT array(cast('1' as binary), cast(1 as tinyint)) FROM t; -SELECT array(cast('1' as binary), cast(1 as smallint)) FROM t; -SELECT array(cast('1' as binary), cast(1 as int)) FROM t; -SELECT array(cast('1' as binary), cast(1 as bigint)) FROM t; -SELECT array(cast('1' as binary), cast(1 as float)) FROM t; -SELECT array(cast('1' as binary), cast(1 as double)) FROM t; -SELECT array(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast('1' as binary), cast(1 as string)) FROM t; -SELECT array(cast('1' as binary), cast('1' as binary)) FROM t; -SELECT array(cast('1' as binary), cast(1 as boolean)) FROM t; -SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as tinyint))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as smallint))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as int))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as bigint))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as float))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as double))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as string))) FROM t; +SELECT size(array(cast('1' as binary), cast('1' as binary))) FROM t; +SELECT size(array(cast('1' as binary), cast(1 as boolean))) FROM t; +SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t; +SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t; SELECT array(cast(1 as boolean), cast(1 as tinyint)) FROM t; SELECT array(cast(1 as boolean), cast(1 as smallint)) FROM t; @@ -142,7 +142,7 @@ SELECT array(cast(1 as boolean), cast(1 as float)) FROM t; SELECT array(cast(1 as boolean), cast(1 as double)) FROM t; SELECT array(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast(1 as boolean), cast(1 as string)) FROM t; -SELECT array(cast(1 as boolean), cast('1' as binary)) FROM t; +SELECT size(array(cast(1 as boolean), cast('1' as binary))) FROM t; SELECT array(cast(1 as boolean), cast(1 as boolean)) FROM t; SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -155,7 +155,7 @@ SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t; SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary)) FROM t; +SELECT size(array(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary))) FROM t; SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t; SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -168,7 +168,7 @@ SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast('1' as binary)) FROM t; +SELECT size(array(cast('2017-12-11 09:30:00' as date), cast('1' as binary))) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -181,7 +181,7 @@ SELECT map(cast(1 as tinyint), cast(1 as float)) FROM t; SELECT map(cast(1 as tinyint), cast(1 as double)) FROM t; SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as tinyint), cast(1 as string)) FROM t; -SELECT map(cast(1 as tinyint), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as tinyint), cast('1' as binary))) FROM t; SELECT map(cast(1 as tinyint), cast(1 as boolean)) FROM t; SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -194,7 +194,7 @@ SELECT map(cast(1 as smallint), cast(1 as float)) FROM t; SELECT map(cast(1 as smallint), cast(1 as double)) FROM t; SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as smallint), cast(1 as string)) FROM t; -SELECT map(cast(1 as smallint), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as smallint), cast('1' as binary))) FROM t; SELECT map(cast(1 as smallint), cast(1 as boolean)) FROM t; SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -207,7 +207,7 @@ SELECT map(cast(1 as int), cast(1 as float)) FROM t; SELECT map(cast(1 as int), cast(1 as double)) FROM t; SELECT map(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as int), cast(1 as string)) FROM t; -SELECT map(cast(1 as int), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as int), cast('1' as binary))) FROM t; SELECT map(cast(1 as int), cast(1 as boolean)) FROM t; SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -220,7 +220,7 @@ SELECT map(cast(1 as bigint), cast(1 as float)) FROM t; SELECT map(cast(1 as bigint), cast(1 as double)) FROM t; SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as bigint), cast(1 as string)) FROM t; -SELECT map(cast(1 as bigint), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as bigint), cast('1' as binary))) FROM t; SELECT map(cast(1 as bigint), cast(1 as boolean)) FROM t; SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -233,7 +233,7 @@ SELECT map(cast(1 as float), cast(1 as float)) FROM t; SELECT map(cast(1 as float), cast(1 as double)) FROM t; SELECT map(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as float), cast(1 as string)) FROM t; -SELECT map(cast(1 as float), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as float), cast('1' as binary))) FROM t; SELECT map(cast(1 as float), cast(1 as boolean)) FROM t; SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -246,7 +246,7 @@ SELECT map(cast(1 as double), cast(1 as float)) FROM t; SELECT map(cast(1 as double), cast(1 as double)) FROM t; SELECT map(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as double), cast(1 as string)) FROM t; -SELECT map(cast(1 as double), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as double), cast('1' as binary))) FROM t; SELECT map(cast(1 as double), cast(1 as boolean)) FROM t; SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -259,7 +259,7 @@ SELECT map(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; SELECT map(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as decimal(10, 0)), cast('1' as binary))) FROM t; SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -272,23 +272,23 @@ SELECT map(cast(1 as string), cast(1 as float)) FROM t; SELECT map(cast(1 as string), cast(1 as double)) FROM t; SELECT map(cast(1 as string), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as string), cast(1 as string)) FROM t; -SELECT map(cast(1 as string), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as string), cast('1' as binary))) FROM t; SELECT map(cast(1 as string), cast(1 as boolean)) FROM t; SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; -SELECT map(cast('1' as binary), cast(1 as tinyint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as smallint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as int)) FROM t; -SELECT map(cast('1' as binary), cast(1 as bigint)) FROM t; -SELECT map(cast('1' as binary), cast(1 as float)) FROM t; -SELECT map(cast('1' as binary), cast(1 as double)) FROM t; -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast('1' as binary), cast(1 as string)) FROM t; -SELECT map(cast('1' as binary), cast('1' as binary)) FROM t; -SELECT map(cast('1' as binary), cast(1 as boolean)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as tinyint))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as smallint))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as int))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as bigint))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as float))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as double))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as string))) FROM t; +SELECT size(map(cast('1' as binary), cast('1' as binary))) FROM t; +SELECT size(map(cast('1' as binary), cast(1 as boolean))) FROM t; +SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t; +SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t; SELECT map(cast(1 as boolean), cast(1 as tinyint)) FROM t; SELECT map(cast(1 as boolean), cast(1 as smallint)) FROM t; @@ -298,7 +298,7 @@ SELECT map(cast(1 as boolean), cast(1 as float)) FROM t; SELECT map(cast(1 as boolean), cast(1 as double)) FROM t; SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast(1 as boolean), cast(1 as string)) FROM t; -SELECT map(cast(1 as boolean), cast('1' as binary)) FROM t; +SELECT size(map(cast(1 as boolean), cast('1' as binary))) FROM t; SELECT map(cast(1 as boolean), cast(1 as boolean)) FROM t; SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -311,7 +311,7 @@ SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t; SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t; SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary)) FROM t; +SELECT size(map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary))) FROM t; SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t; SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; @@ -324,7 +324,7 @@ SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t; SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t; SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('1' as binary)) FROM t; +SELECT size(map(cast('2017-12-11 09:30:00' as date), cast('1' as binary))) FROM t; SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t; SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out index 37590e8d51791..3cfdefcf35929 100644 --- a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out @@ -75,12 +75,12 @@ struct -- !query 9 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS TINYINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS TINYINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, binary]; line 1 pos 12 -- !query 10 @@ -175,12 +175,12 @@ struct -- !query 21 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS SMALLINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS SMALLINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, binary]; line 1 pos 12 -- !query 22 @@ -275,12 +275,12 @@ struct -- !query 33 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS INT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [int, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS INT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [int, binary]; line 1 pos 12 -- !query 34 @@ -375,12 +375,12 @@ struct -- !query 45 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BIGINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS BIGINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, binary]; line 1 pos 12 -- !query 46 @@ -475,12 +475,12 @@ struct -- !query 57 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS FLOAT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [float, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS FLOAT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [float, binary]; line 1 pos 12 -- !query 58 @@ -575,12 +575,12 @@ struct -- !query 69 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DOUBLE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [double, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS DOUBLE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [double, binary]; line 1 pos 12 -- !query 70 @@ -675,12 +675,12 @@ struct -- !query 81 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 12 -- !query 82 @@ -775,12 +775,12 @@ struct> -- !query 93 -SELECT array(cast(1 as string), cast('1' as binary)) FROM t +SELECT size(array(cast(1 as string), cast('1' as binary))) FROM t -- !query 93 schema struct<> -- !query 93 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS STRING), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [string, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS STRING), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [string, binary]; line 1 pos 12 -- !query 94 @@ -809,110 +809,110 @@ struct -- !query 97 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, tinyint]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, tinyint]; line 1 pos 12 -- !query 98 -SELECT array(cast('1' as binary), cast(1 as smallint)) FROM t +SELECT size(array(cast('1' as binary), cast(1 as smallint))) FROM t -- !query 98 schema struct<> -- !query 98 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, smallint]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, smallint]; line 1 pos 12 -- !query 99 -SELECT array(cast('1' as binary), cast(1 as int)) FROM t +SELECT size(array(cast('1' as binary), cast(1 as int))) FROM t -- !query 99 schema struct<> -- !query 99 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, int]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, int]; line 1 pos 12 -- !query 100 -SELECT array(cast('1' as binary), cast(1 as bigint)) FROM t +SELECT size(array(cast('1' as binary), cast(1 as bigint))) FROM t -- !query 100 schema struct<> -- !query 100 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, bigint]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, bigint]; line 1 pos 12 -- !query 101 -SELECT array(cast('1' as binary), cast(1 as float)) FROM t +SELECT size(array(cast('1' as binary), cast(1 as float))) FROM t -- !query 101 schema struct<> -- !query 101 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, float]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, float]; line 1 pos 12 -- !query 102 -SELECT array(cast('1' as binary), cast(1 as double)) FROM t +SELECT size(array(cast('1' as binary), cast(1 as double))) FROM t -- !query 102 schema struct<> -- !query 102 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, double]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, double]; line 1 pos 12 -- !query 103 -SELECT array(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t +SELECT size(array(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t -- !query 103 schema struct<> -- !query 103 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 12 -- !query 104 -SELECT array(cast('1' as binary), cast(1 as string)) FROM t +SELECT size(array(cast('1' as binary), cast(1 as string))) FROM t -- !query 104 schema struct<> -- !query 104 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS STRING))' due to data type mismatch: input to function array should all be the same type, but it's [binary, string]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS STRING))' due to data type mismatch: input to function array should all be the same type, but it's [binary, string]; line 1 pos 12 -- !query 105 -SELECT array(cast('1' as binary), cast('1' as binary)) FROM t +SELECT size(array(cast('1' as binary), cast('1' as binary))) FROM t -- !query 105 schema -struct> +struct -- !query 105 output -[[B@d43b792,[B@141388e5] +2 -- !query 106 -SELECT array(cast('1' as binary), cast(1 as boolean)) FROM t +SELECT size(array(cast('1' as binary), cast(1 as boolean))) FROM t -- !query 106 schema struct<> -- !query 106 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [binary, boolean]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [binary, boolean]; line 1 pos 12 -- !query 107 -SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t -- !query 107 schema struct<> -- !query 107 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [binary, timestamp]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [binary, timestamp]; line 1 pos 12 -- !query 108 -SELECT array(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t +SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t -- !query 108 schema struct<> -- !query 108 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, date]; line 1 pos 7 +cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, date]; line 1 pos 12 -- !query 109 @@ -988,12 +988,12 @@ cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS STRING))' due to data type m -- !query 117 -SELECT array(cast(1 as boolean), cast('1' as binary)) FROM t +SELECT size(array(cast(1 as boolean), cast('1' as binary))) FROM t -- !query 117 schema struct<> -- !query 117 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, binary]; line 1 pos 7 +cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, binary]; line 1 pos 12 -- !query 118 @@ -1094,12 +1094,12 @@ struct -- !query 129 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, binary]; line 1 pos 7 +cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, binary]; line 1 pos 12 -- !query 130 @@ -1199,12 +1199,12 @@ struct -- !query 141 output org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [date, binary]; line 1 pos 7 +cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [date, binary]; line 1 pos 12 -- !query 142 @@ -1297,11 +1297,11 @@ struct> -- !query 153 -SELECT map(cast(1 as tinyint), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as tinyint), cast('1' as binary))) FROM t -- !query 153 schema -struct> +struct -- !query 153 output -{1:[B@2d197a9f} +1 -- !query 154 @@ -1393,11 +1393,11 @@ struct> -- !query 165 -SELECT map(cast(1 as smallint), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as smallint), cast('1' as binary))) FROM t -- !query 165 schema -struct> +struct -- !query 165 output -{1:[B@2e42da42} +1 -- !query 166 @@ -1489,11 +1489,11 @@ struct> -- !query 177 -SELECT map(cast(1 as int), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as int), cast('1' as binary))) FROM t -- !query 177 schema -struct> +struct -- !query 177 output -{1:[B@29c4b0eb} +1 -- !query 178 @@ -1585,11 +1585,11 @@ struct> -- !query 189 -SELECT map(cast(1 as bigint), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as bigint), cast('1' as binary))) FROM t -- !query 189 schema -struct> +struct -- !query 189 output -{1:[B@77a3cfae} +1 -- !query 190 @@ -1681,11 +1681,11 @@ struct> -- !query 201 -SELECT map(cast(1 as float), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as float), cast('1' as binary))) FROM t -- !query 201 schema -struct> +struct -- !query 201 output -{1.0:[B@70353cf8} +1 -- !query 202 @@ -1777,11 +1777,11 @@ struct> -- !query 213 -SELECT map(cast(1 as double), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as double), cast('1' as binary))) FROM t -- !query 213 schema -struct> +struct -- !query 213 output -{1.0:[B@47c391c4} +1 -- !query 214 @@ -1873,11 +1873,11 @@ struct> +struct -- !query 225 output -{1:[B@20bf2928} +1 -- !query 226 @@ -1969,11 +1969,11 @@ struct> -- !query 237 -SELECT map(cast(1 as string), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as string), cast('1' as binary))) FROM t -- !query 237 schema -struct> +struct -- !query 237 output -{"1":[B@51eb383e} +1 -- !query 238 @@ -2001,99 +2001,99 @@ struct> +struct -- !query 241 output -{[B@21a97a70:1} +1 -- !query 242 -SELECT map(cast('1' as binary), cast(1 as smallint)) FROM t +SELECT size(map(cast('1' as binary), cast(1 as smallint))) FROM t -- !query 242 schema -struct> +struct -- !query 242 output -{[B@56f140bd:1} +1 -- !query 243 -SELECT map(cast('1' as binary), cast(1 as int)) FROM t +SELECT size(map(cast('1' as binary), cast(1 as int))) FROM t -- !query 243 schema -struct> +struct -- !query 243 output -{[B@3f66734d:1} +1 -- !query 244 -SELECT map(cast('1' as binary), cast(1 as bigint)) FROM t +SELECT size(map(cast('1' as binary), cast(1 as bigint))) FROM t -- !query 244 schema -struct> +struct -- !query 244 output -{[B@21077650:1} +1 -- !query 245 -SELECT map(cast('1' as binary), cast(1 as float)) FROM t +SELECT size(map(cast('1' as binary), cast(1 as float))) FROM t -- !query 245 schema -struct> +struct -- !query 245 output -{[B@5ad51f6:1.0} +1 -- !query 246 -SELECT map(cast('1' as binary), cast(1 as double)) FROM t +SELECT size(map(cast('1' as binary), cast(1 as double))) FROM t -- !query 246 schema -struct> +struct -- !query 246 output -{[B@1bba2c36:1.0} +1 -- !query 247 -SELECT map(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t +SELECT size(map(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t -- !query 247 schema -struct> +struct -- !query 247 output -{[B@11e99e17:1} +1 -- !query 248 -SELECT map(cast('1' as binary), cast(1 as string)) FROM t +SELECT size(map(cast('1' as binary), cast(1 as string))) FROM t -- !query 248 schema -struct> +struct -- !query 248 output -{[B@dc82ecd:"1"} +1 -- !query 249 -SELECT map(cast('1' as binary), cast('1' as binary)) FROM t +SELECT size(map(cast('1' as binary), cast('1' as binary))) FROM t -- !query 249 schema -struct> +struct -- !query 249 output -{[B@567a6c1b:[B@3853921f} +1 -- !query 250 -SELECT map(cast('1' as binary), cast(1 as boolean)) FROM t +SELECT size(map(cast('1' as binary), cast(1 as boolean))) FROM t -- !query 250 schema -struct> +struct -- !query 250 output -{[B@162395d7:true} +1 -- !query 251 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t -- !query 251 schema -struct> +struct -- !query 251 output -{[B@414d08e9:2017-12-11 09:30:00.0} +1 -- !query 252 -SELECT map(cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t +SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t -- !query 252 schema -struct> +struct -- !query 252 output -{[B@53083c0b:2017-12-11} +1 -- !query 253 @@ -2161,11 +2161,11 @@ struct> -- !query 261 -SELECT map(cast(1 as boolean), cast('1' as binary)) FROM t +SELECT size(map(cast(1 as boolean), cast('1' as binary))) FROM t -- !query 261 schema -struct> +struct -- !query 261 output -{true:[B@3631ae9e} +1 -- !query 262 @@ -2257,11 +2257,11 @@ struct> +struct -- !query 273 output -{2017-12-11 09:30:00.0:[B@24a0f930} +1 -- !query 274 @@ -2353,11 +2353,11 @@ struct> +struct -- !query 285 output -{2017-12-11:[B@821e08} +1 -- !query 286 From b4c5339cc44eeed7e75aac30ba6b6aaf06316305 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Wed, 20 Dec 2017 14:19:56 +0800 Subject: [PATCH 4/8] remove functionArgumentConversion.sql and add windowFrameCoercion.sql --- .../native/functionArgumentConversion.sql | 949 -- .../native/windowFrameCoercion.sql | 44 + .../native/functionArgumentConversion.sql.out | 7615 ----------------- .../native/windowFrameCoercion.sql.out | 206 + 4 files changed, 250 insertions(+), 8564 deletions(-) delete mode 100644 sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql create mode 100644 sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/windowFrameCoercion.sql delete mode 100644 sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out create mode 100644 sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out diff --git a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql deleted file mode 100644 index 3601d762b2784..0000000000000 --- a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/functionArgumentConversion.sql +++ /dev/null @@ -1,949 +0,0 @@ --- --- Licensed to the Apache Software Foundation (ASF) under one or more --- contributor license agreements. See the NOTICE file distributed with --- this work for additional information regarding copyright ownership. --- The ASF licenses this file to You under the Apache License, Version 2.0 --- (the "License"); you may not use this file except in compliance with --- the License. You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --- See the License for the specific language governing permissions and --- limitations under the License. --- - -CREATE TEMPORARY VIEW t AS SELECT 1; - -SELECT array(cast(1 as tinyint), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as int)) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as float)) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as double)) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as tinyint), cast('1' as binary))) FROM t; -SELECT array(cast(1 as tinyint), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast(1 as smallint), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as smallint), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as smallint), cast(1 as int)) FROM t; -SELECT array(cast(1 as smallint), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as smallint), cast(1 as float)) FROM t; -SELECT array(cast(1 as smallint), cast(1 as double)) FROM t; -SELECT array(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as smallint), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as smallint), cast('1' as binary))) FROM t; -SELECT array(cast(1 as smallint), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast(1 as int), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as int), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as int), cast(1 as int)) FROM t; -SELECT array(cast(1 as int), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as int), cast(1 as float)) FROM t; -SELECT array(cast(1 as int), cast(1 as double)) FROM t; -SELECT array(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as int), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as int), cast('1' as binary))) FROM t; -SELECT array(cast(1 as int), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast(1 as bigint), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as bigint), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as bigint), cast(1 as int)) FROM t; -SELECT array(cast(1 as bigint), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as bigint), cast(1 as float)) FROM t; -SELECT array(cast(1 as bigint), cast(1 as double)) FROM t; -SELECT array(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as bigint), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as bigint), cast('1' as binary))) FROM t; -SELECT array(cast(1 as bigint), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast(1 as float), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as float), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as float), cast(1 as int)) FROM t; -SELECT array(cast(1 as float), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as float), cast(1 as float)) FROM t; -SELECT array(cast(1 as float), cast(1 as double)) FROM t; -SELECT array(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as float), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as float), cast('1' as binary))) FROM t; -SELECT array(cast(1 as float), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast(1 as double), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as double), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as double), cast(1 as int)) FROM t; -SELECT array(cast(1 as double), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as double), cast(1 as float)) FROM t; -SELECT array(cast(1 as double), cast(1 as double)) FROM t; -SELECT array(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as double), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as double), cast('1' as binary))) FROM t; -SELECT array(cast(1 as double), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as decimal(10, 0)), cast('1' as binary))) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast(1 as string), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as string), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as string), cast(1 as int)) FROM t; -SELECT array(cast(1 as string), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as string), cast(1 as float)) FROM t; -SELECT array(cast(1 as string), cast(1 as double)) FROM t; -SELECT array(cast(1 as string), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as string), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as string), cast('1' as binary))) FROM t; -SELECT array(cast(1 as string), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT size(array(cast('1' as binary), cast(1 as tinyint))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as smallint))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as int))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as bigint))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as float))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as double))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as string))) FROM t; -SELECT size(array(cast('1' as binary), cast('1' as binary))) FROM t; -SELECT size(array(cast('1' as binary), cast(1 as boolean))) FROM t; -SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t; -SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t; - -SELECT array(cast(1 as boolean), cast(1 as tinyint)) FROM t; -SELECT array(cast(1 as boolean), cast(1 as smallint)) FROM t; -SELECT array(cast(1 as boolean), cast(1 as int)) FROM t; -SELECT array(cast(1 as boolean), cast(1 as bigint)) FROM t; -SELECT array(cast(1 as boolean), cast(1 as float)) FROM t; -SELECT array(cast(1 as boolean), cast(1 as double)) FROM t; -SELECT array(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast(1 as boolean), cast(1 as string)) FROM t; -SELECT size(array(cast(1 as boolean), cast('1' as binary))) FROM t; -SELECT array(cast(1 as boolean), cast(1 as boolean)) FROM t; -SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t; -SELECT size(array(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary))) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t; -SELECT size(array(cast('2017-12-11 09:30:00' as date), cast('1' as binary))) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as tinyint), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as int)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as float)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as double)) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as tinyint), cast('1' as binary))) FROM t; -SELECT map(cast(1 as tinyint), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as smallint), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as int)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as float)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as double)) FROM t; -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as smallint), cast('1' as binary))) FROM t; -SELECT map(cast(1 as smallint), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as int), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as int), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as int), cast(1 as int)) FROM t; -SELECT map(cast(1 as int), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as int), cast(1 as float)) FROM t; -SELECT map(cast(1 as int), cast(1 as double)) FROM t; -SELECT map(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as int), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as int), cast('1' as binary))) FROM t; -SELECT map(cast(1 as int), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as bigint), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as int)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as float)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as double)) FROM t; -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as bigint), cast('1' as binary))) FROM t; -SELECT map(cast(1 as bigint), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as float), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as float), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as float), cast(1 as int)) FROM t; -SELECT map(cast(1 as float), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as float), cast(1 as float)) FROM t; -SELECT map(cast(1 as float), cast(1 as double)) FROM t; -SELECT map(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as float), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as float), cast('1' as binary))) FROM t; -SELECT map(cast(1 as float), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as double), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as double), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as double), cast(1 as int)) FROM t; -SELECT map(cast(1 as double), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as double), cast(1 as float)) FROM t; -SELECT map(cast(1 as double), cast(1 as double)) FROM t; -SELECT map(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as double), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as double), cast('1' as binary))) FROM t; -SELECT map(cast(1 as double), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as decimal(10, 0)), cast('1' as binary))) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast(1 as string), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as string), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as string), cast(1 as int)) FROM t; -SELECT map(cast(1 as string), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as string), cast(1 as float)) FROM t; -SELECT map(cast(1 as string), cast(1 as double)) FROM t; -SELECT map(cast(1 as string), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as string), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as string), cast('1' as binary))) FROM t; -SELECT map(cast(1 as string), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT size(map(cast('1' as binary), cast(1 as tinyint))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as smallint))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as int))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as bigint))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as float))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as double))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as string))) FROM t; -SELECT size(map(cast('1' as binary), cast('1' as binary))) FROM t; -SELECT size(map(cast('1' as binary), cast(1 as boolean))) FROM t; -SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t; -SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t; - -SELECT map(cast(1 as boolean), cast(1 as tinyint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as smallint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as int)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as bigint)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as float)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as double)) FROM t; -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as string)) FROM t; -SELECT size(map(cast(1 as boolean), cast('1' as binary))) FROM t; -SELECT map(cast(1 as boolean), cast(1 as boolean)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t; -SELECT size(map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary))) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t; -SELECT size(map(cast('2017-12-11 09:30:00' as date), cast('1' as binary))) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT sum(cast(1 as tinyint)) FROM t; -SELECT sum(cast(1 as smallint)) FROM t; -SELECT sum(cast(1 as int)) FROM t; -SELECT sum(cast(1 as bigint)) FROM t; -SELECT sum(cast(1 as float)) FROM t; -SELECT sum(cast(1 as double)) FROM t; -SELECT sum(cast(1 as decimal(10, 0))) FROM t; -SELECT sum(cast(1 as string)) FROM t; -SELECT sum(cast('1' as binary)) FROM t; -SELECT sum(cast(1 as boolean)) FROM t; -SELECT sum(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT sum(cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT avg(cast(1 as tinyint)) FROM t; -SELECT avg(cast(1 as smallint)) FROM t; -SELECT avg(cast(1 as int)) FROM t; -SELECT avg(cast(1 as bigint)) FROM t; -SELECT avg(cast(1 as float)) FROM t; -SELECT avg(cast(1 as double)) FROM t; -SELECT avg(cast(1 as decimal(10, 0))) FROM t; -SELECT avg(cast(1 as string)) FROM t; -SELECT avg(cast('1' as binary)) FROM t; -SELECT avg(cast(1 as boolean)) FROM t; -SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT avg(cast(1 as tinyint)) FROM t; -SELECT avg(cast(1 as smallint)) FROM t; -SELECT avg(cast(1 as int)) FROM t; -SELECT avg(cast(1 as bigint)) FROM t; -SELECT avg(cast(1 as float)) FROM t; -SELECT avg(cast(1 as double)) FROM t; -SELECT avg(cast(1 as decimal(10, 0))) FROM t; -SELECT avg(cast(1 as string)) FROM t; -SELECT avg(cast('1' as binary)) FROM t; -SELECT avg(cast(1 as boolean)) FROM t; -SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t; - -SELECT coalesce(cast(1 as tinyint), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as smallint), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as smallint), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as int), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as int), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as bigint), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as bigint), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as float), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as float), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as double), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as double), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as string), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as string), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as smallint)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as int)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as bigint)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as float)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as double)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as string)) FROM t; -SELECT coalesce(cast('1' as binary), cast('2' as binary)) FROM t; -SELECT coalesce(cast('1' as binary), cast(2 as boolean)) FROM t; -SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as smallint)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as int)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as bigint)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as float)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as double)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as string)) FROM t; -SELECT coalesce(cast(1 as boolean), cast('2' as binary)) FROM t; -SELECT coalesce(cast(1 as boolean), cast(2 as boolean)) FROM t; -SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; - -SELECT greatest(cast(1 as tinyint), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as tinyint), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as tinyint), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as smallint), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as smallint), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as int), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as int), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as int), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as bigint), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as bigint), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as float), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as float), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as float), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as double), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as double), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as double), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as string), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as string), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as string), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as tinyint)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as smallint)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as int)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as bigint)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as float)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as double)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as string)) FROM t; -SELECT greatest(cast('1' as binary), cast('2' as binary)) FROM t; -SELECT greatest(cast('1' as binary), cast(2 as boolean)) FROM t; -SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as tinyint)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as smallint)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as int)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as bigint)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as float)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as double)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as string)) FROM t; -SELECT greatest(cast(1 as boolean), cast('2' as binary)) FROM t; -SELECT greatest(cast(1 as boolean), cast(2 as boolean)) FROM t; -SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; - -SELECT least(cast(1 as tinyint), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as int)) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as float)) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as double)) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as string)) FROM t; -SELECT least(cast(1 as tinyint), cast('2' as binary)) FROM t; -SELECT least(cast(1 as tinyint), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as int)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as float)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as double)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as smallint), cast(2 as string)) FROM t; -SELECT least(cast(1 as smallint), cast('2' as binary)) FROM t; -SELECT least(cast(1 as smallint), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as int), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as int), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as int), cast(2 as int)) FROM t; -SELECT least(cast(1 as int), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as int), cast(2 as float)) FROM t; -SELECT least(cast(1 as int), cast(2 as double)) FROM t; -SELECT least(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as int), cast(2 as string)) FROM t; -SELECT least(cast(1 as int), cast('2' as binary)) FROM t; -SELECT least(cast(1 as int), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as int)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as float)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as double)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as bigint), cast(2 as string)) FROM t; -SELECT least(cast(1 as bigint), cast('2' as binary)) FROM t; -SELECT least(cast(1 as bigint), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as float), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as float), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as float), cast(2 as int)) FROM t; -SELECT least(cast(1 as float), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as float), cast(2 as float)) FROM t; -SELECT least(cast(1 as float), cast(2 as double)) FROM t; -SELECT least(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as float), cast(2 as string)) FROM t; -SELECT least(cast(1 as float), cast('2' as binary)) FROM t; -SELECT least(cast(1 as float), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as double), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as double), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as double), cast(2 as int)) FROM t; -SELECT least(cast(1 as double), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as double), cast(2 as float)) FROM t; -SELECT least(cast(1 as double), cast(2 as double)) FROM t; -SELECT least(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as double), cast(2 as string)) FROM t; -SELECT least(cast(1 as double), cast('2' as binary)) FROM t; -SELECT least(cast(1 as double), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as string), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as string), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as string), cast(2 as int)) FROM t; -SELECT least(cast(1 as string), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as string), cast(2 as float)) FROM t; -SELECT least(cast(1 as string), cast(2 as double)) FROM t; -SELECT least(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as string), cast(2 as string)) FROM t; -SELECT least(cast(1 as string), cast('2' as binary)) FROM t; -SELECT least(cast(1 as string), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast('1' as binary), cast(2 as tinyint)) FROM t; -SELECT least(cast('1' as binary), cast(2 as smallint)) FROM t; -SELECT least(cast('1' as binary), cast(2 as int)) FROM t; -SELECT least(cast('1' as binary), cast(2 as bigint)) FROM t; -SELECT least(cast('1' as binary), cast(2 as float)) FROM t; -SELECT least(cast('1' as binary), cast(2 as double)) FROM t; -SELECT least(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast('1' as binary), cast(2 as string)) FROM t; -SELECT least(cast('1' as binary), cast('2' as binary)) FROM t; -SELECT least(cast('1' as binary), cast(2 as boolean)) FROM t; -SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as tinyint)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as smallint)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as int)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as bigint)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as float)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as double)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast(1 as boolean), cast(2 as string)) FROM t; -SELECT least(cast(1 as boolean), cast('2' as binary)) FROM t; -SELECT least(cast(1 as boolean), cast(2 as boolean)) FROM t; -SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; - -SELECT nanvl(cast(1 as tinyint), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as smallint), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as smallint), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as int), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as int), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as bigint), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as bigint), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as float), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as float), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as double), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as double), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as string), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as string), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as smallint)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as int)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as bigint)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as float)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as double)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as string)) FROM t; -SELECT nanvl(cast('1' as binary), cast('2' as binary)) FROM t; -SELECT nanvl(cast('1' as binary), cast(2 as boolean)) FROM t; -SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as smallint)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as int)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as bigint)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as float)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as double)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as string)) FROM t; -SELECT nanvl(cast(1 as boolean), cast('2' as binary)) FROM t; -SELECT nanvl(cast(1 as boolean), cast(2 as boolean)) FROM t; -SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t; -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t; diff --git a/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/windowFrameCoercion.sql b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/windowFrameCoercion.sql new file mode 100644 index 0000000000000..5cd3538757499 --- /dev/null +++ b/sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/windowFrameCoercion.sql @@ -0,0 +1,44 @@ +-- +-- Licensed to the Apache Software Foundation (ASF) under one or more +-- contributor license agreements. See the NOTICE file distributed with +-- this work for additional information regarding copyright ownership. +-- The ASF licenses this file to You under the Apache License, Version 2.0 +-- (the "License"); you may not use this file except in compliance with +-- the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- + +CREATE TEMPORARY VIEW t AS SELECT 1; + +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as tinyint)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as smallint)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as int)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as bigint)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as float)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as double)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as decimal(10, 0))) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('1' as binary)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00' as date)) FROM t; + +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as tinyint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as smallint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as int) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as bigint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as float) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as double) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as decimal(10, 0)) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('1' as binary) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00.0' as timestamp) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00' as date) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out deleted file mode 100644 index 3cfdefcf35929..0000000000000 --- a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/functionArgumentConversion.sql.out +++ /dev/null @@ -1,7615 +0,0 @@ --- Automatically generated by SQLQueryTestSuite --- Number of queries: 901 - - --- !query 0 -CREATE TEMPORARY VIEW t AS SELECT 1 --- !query 0 schema -struct<> --- !query 0 output - - - --- !query 1 -SELECT array(cast(1 as tinyint), cast(1 as tinyint)) FROM t --- !query 1 schema -struct> --- !query 1 output -[1,1] - - --- !query 2 -SELECT array(cast(1 as tinyint), cast(1 as smallint)) FROM t --- !query 2 schema -struct> --- !query 2 output -[1,1] - - --- !query 3 -SELECT array(cast(1 as tinyint), cast(1 as int)) FROM t --- !query 3 schema -struct> --- !query 3 output -[1,1] - - --- !query 4 -SELECT array(cast(1 as tinyint), cast(1 as bigint)) FROM t --- !query 4 schema -struct> --- !query 4 output -[1,1] - - --- !query 5 -SELECT array(cast(1 as tinyint), cast(1 as float)) FROM t --- !query 5 schema -struct> --- !query 5 output -[1.0,1.0] - - --- !query 6 -SELECT array(cast(1 as tinyint), cast(1 as double)) FROM t --- !query 6 schema -struct> --- !query 6 output -[1.0,1.0] - - --- !query 7 -SELECT array(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t --- !query 7 schema -struct> --- !query 7 output -[1,1] - - --- !query 8 -SELECT array(cast(1 as tinyint), cast(1 as string)) FROM t --- !query 8 schema -struct> --- !query 8 output -["1","1"] - - --- !query 9 -SELECT size(array(cast(1 as tinyint), cast('1' as binary))) FROM t --- !query 9 schema -struct<> --- !query 9 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS TINYINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, binary]; line 1 pos 12 - - --- !query 10 -SELECT array(cast(1 as tinyint), cast(1 as boolean)) FROM t --- !query 10 schema -struct<> --- !query 10 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS TINYINT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, boolean]; line 1 pos 7 - - --- !query 11 -SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 11 schema -struct<> --- !query 11 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, timestamp]; line 1 pos 7 - - --- !query 12 -SELECT array(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 12 schema -struct<> --- !query 12 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS TINYINT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [tinyint, date]; line 1 pos 7 - - --- !query 13 -SELECT array(cast(1 as smallint), cast(1 as tinyint)) FROM t --- !query 13 schema -struct> --- !query 13 output -[1,1] - - --- !query 14 -SELECT array(cast(1 as smallint), cast(1 as smallint)) FROM t --- !query 14 schema -struct> --- !query 14 output -[1,1] - - --- !query 15 -SELECT array(cast(1 as smallint), cast(1 as int)) FROM t --- !query 15 schema -struct> --- !query 15 output -[1,1] - - --- !query 16 -SELECT array(cast(1 as smallint), cast(1 as bigint)) FROM t --- !query 16 schema -struct> --- !query 16 output -[1,1] - - --- !query 17 -SELECT array(cast(1 as smallint), cast(1 as float)) FROM t --- !query 17 schema -struct> --- !query 17 output -[1.0,1.0] - - --- !query 18 -SELECT array(cast(1 as smallint), cast(1 as double)) FROM t --- !query 18 schema -struct> --- !query 18 output -[1.0,1.0] - - --- !query 19 -SELECT array(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t --- !query 19 schema -struct> --- !query 19 output -[1,1] - - --- !query 20 -SELECT array(cast(1 as smallint), cast(1 as string)) FROM t --- !query 20 schema -struct> --- !query 20 output -["1","1"] - - --- !query 21 -SELECT size(array(cast(1 as smallint), cast('1' as binary))) FROM t --- !query 21 schema -struct<> --- !query 21 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS SMALLINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, binary]; line 1 pos 12 - - --- !query 22 -SELECT array(cast(1 as smallint), cast(1 as boolean)) FROM t --- !query 22 schema -struct<> --- !query 22 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS SMALLINT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, boolean]; line 1 pos 7 - - --- !query 23 -SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 23 schema -struct<> --- !query 23 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, timestamp]; line 1 pos 7 - - --- !query 24 -SELECT array(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 24 schema -struct<> --- !query 24 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS SMALLINT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [smallint, date]; line 1 pos 7 - - --- !query 25 -SELECT array(cast(1 as int), cast(1 as tinyint)) FROM t --- !query 25 schema -struct> --- !query 25 output -[1,1] - - --- !query 26 -SELECT array(cast(1 as int), cast(1 as smallint)) FROM t --- !query 26 schema -struct> --- !query 26 output -[1,1] - - --- !query 27 -SELECT array(cast(1 as int), cast(1 as int)) FROM t --- !query 27 schema -struct> --- !query 27 output -[1,1] - - --- !query 28 -SELECT array(cast(1 as int), cast(1 as bigint)) FROM t --- !query 28 schema -struct> --- !query 28 output -[1,1] - - --- !query 29 -SELECT array(cast(1 as int), cast(1 as float)) FROM t --- !query 29 schema -struct> --- !query 29 output -[1.0,1.0] - - --- !query 30 -SELECT array(cast(1 as int), cast(1 as double)) FROM t --- !query 30 schema -struct> --- !query 30 output -[1.0,1.0] - - --- !query 31 -SELECT array(cast(1 as int), cast(1 as decimal(10, 0))) FROM t --- !query 31 schema -struct> --- !query 31 output -[1,1] - - --- !query 32 -SELECT array(cast(1 as int), cast(1 as string)) FROM t --- !query 32 schema -struct> --- !query 32 output -["1","1"] - - --- !query 33 -SELECT size(array(cast(1 as int), cast('1' as binary))) FROM t --- !query 33 schema -struct<> --- !query 33 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS INT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [int, binary]; line 1 pos 12 - - --- !query 34 -SELECT array(cast(1 as int), cast(1 as boolean)) FROM t --- !query 34 schema -struct<> --- !query 34 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS INT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [int, boolean]; line 1 pos 7 - - --- !query 35 -SELECT array(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 35 schema -struct<> --- !query 35 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS INT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [int, timestamp]; line 1 pos 7 - - --- !query 36 -SELECT array(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 36 schema -struct<> --- !query 36 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS INT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [int, date]; line 1 pos 7 - - --- !query 37 -SELECT array(cast(1 as bigint), cast(1 as tinyint)) FROM t --- !query 37 schema -struct> --- !query 37 output -[1,1] - - --- !query 38 -SELECT array(cast(1 as bigint), cast(1 as smallint)) FROM t --- !query 38 schema -struct> --- !query 38 output -[1,1] - - --- !query 39 -SELECT array(cast(1 as bigint), cast(1 as int)) FROM t --- !query 39 schema -struct> --- !query 39 output -[1,1] - - --- !query 40 -SELECT array(cast(1 as bigint), cast(1 as bigint)) FROM t --- !query 40 schema -struct> --- !query 40 output -[1,1] - - --- !query 41 -SELECT array(cast(1 as bigint), cast(1 as float)) FROM t --- !query 41 schema -struct> --- !query 41 output -[1.0,1.0] - - --- !query 42 -SELECT array(cast(1 as bigint), cast(1 as double)) FROM t --- !query 42 schema -struct> --- !query 42 output -[1.0,1.0] - - --- !query 43 -SELECT array(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t --- !query 43 schema -struct> --- !query 43 output -[1,1] - - --- !query 44 -SELECT array(cast(1 as bigint), cast(1 as string)) FROM t --- !query 44 schema -struct> --- !query 44 output -["1","1"] - - --- !query 45 -SELECT size(array(cast(1 as bigint), cast('1' as binary))) FROM t --- !query 45 schema -struct<> --- !query 45 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BIGINT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, binary]; line 1 pos 12 - - --- !query 46 -SELECT array(cast(1 as bigint), cast(1 as boolean)) FROM t --- !query 46 schema -struct<> --- !query 46 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BIGINT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, boolean]; line 1 pos 7 - - --- !query 47 -SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 47 schema -struct<> --- !query 47 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, timestamp]; line 1 pos 7 - - --- !query 48 -SELECT array(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 48 schema -struct<> --- !query 48 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BIGINT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [bigint, date]; line 1 pos 7 - - --- !query 49 -SELECT array(cast(1 as float), cast(1 as tinyint)) FROM t --- !query 49 schema -struct> --- !query 49 output -[1.0,1.0] - - --- !query 50 -SELECT array(cast(1 as float), cast(1 as smallint)) FROM t --- !query 50 schema -struct> --- !query 50 output -[1.0,1.0] - - --- !query 51 -SELECT array(cast(1 as float), cast(1 as int)) FROM t --- !query 51 schema -struct> --- !query 51 output -[1.0,1.0] - - --- !query 52 -SELECT array(cast(1 as float), cast(1 as bigint)) FROM t --- !query 52 schema -struct> --- !query 52 output -[1.0,1.0] - - --- !query 53 -SELECT array(cast(1 as float), cast(1 as float)) FROM t --- !query 53 schema -struct> --- !query 53 output -[1.0,1.0] - - --- !query 54 -SELECT array(cast(1 as float), cast(1 as double)) FROM t --- !query 54 schema -struct> --- !query 54 output -[1.0,1.0] - - --- !query 55 -SELECT array(cast(1 as float), cast(1 as decimal(10, 0))) FROM t --- !query 55 schema -struct> --- !query 55 output -[1.0,1.0] - - --- !query 56 -SELECT array(cast(1 as float), cast(1 as string)) FROM t --- !query 56 schema -struct> --- !query 56 output -["1.0","1"] - - --- !query 57 -SELECT size(array(cast(1 as float), cast('1' as binary))) FROM t --- !query 57 schema -struct<> --- !query 57 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS FLOAT), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [float, binary]; line 1 pos 12 - - --- !query 58 -SELECT array(cast(1 as float), cast(1 as boolean)) FROM t --- !query 58 schema -struct<> --- !query 58 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS FLOAT), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [float, boolean]; line 1 pos 7 - - --- !query 59 -SELECT array(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 59 schema -struct<> --- !query 59 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [float, timestamp]; line 1 pos 7 - - --- !query 60 -SELECT array(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 60 schema -struct<> --- !query 60 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS FLOAT), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [float, date]; line 1 pos 7 - - --- !query 61 -SELECT array(cast(1 as double), cast(1 as tinyint)) FROM t --- !query 61 schema -struct> --- !query 61 output -[1.0,1.0] - - --- !query 62 -SELECT array(cast(1 as double), cast(1 as smallint)) FROM t --- !query 62 schema -struct> --- !query 62 output -[1.0,1.0] - - --- !query 63 -SELECT array(cast(1 as double), cast(1 as int)) FROM t --- !query 63 schema -struct> --- !query 63 output -[1.0,1.0] - - --- !query 64 -SELECT array(cast(1 as double), cast(1 as bigint)) FROM t --- !query 64 schema -struct> --- !query 64 output -[1.0,1.0] - - --- !query 65 -SELECT array(cast(1 as double), cast(1 as float)) FROM t --- !query 65 schema -struct> --- !query 65 output -[1.0,1.0] - - --- !query 66 -SELECT array(cast(1 as double), cast(1 as double)) FROM t --- !query 66 schema -struct> --- !query 66 output -[1.0,1.0] - - --- !query 67 -SELECT array(cast(1 as double), cast(1 as decimal(10, 0))) FROM t --- !query 67 schema -struct> --- !query 67 output -[1.0,1.0] - - --- !query 68 -SELECT array(cast(1 as double), cast(1 as string)) FROM t --- !query 68 schema -struct> --- !query 68 output -["1.0","1"] - - --- !query 69 -SELECT size(array(cast(1 as double), cast('1' as binary))) FROM t --- !query 69 schema -struct<> --- !query 69 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DOUBLE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [double, binary]; line 1 pos 12 - - --- !query 70 -SELECT array(cast(1 as double), cast(1 as boolean)) FROM t --- !query 70 schema -struct<> --- !query 70 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DOUBLE), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [double, boolean]; line 1 pos 7 - - --- !query 71 -SELECT array(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 71 schema -struct<> --- !query 71 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [double, timestamp]; line 1 pos 7 - - --- !query 72 -SELECT array(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 72 schema -struct<> --- !query 72 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DOUBLE), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [double, date]; line 1 pos 7 - - --- !query 73 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t --- !query 73 schema -struct> --- !query 73 output -[1,1] - - --- !query 74 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t --- !query 74 schema -struct> --- !query 74 output -[1,1] - - --- !query 75 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t --- !query 75 schema -struct> --- !query 75 output -[1,1] - - --- !query 76 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t --- !query 76 schema -struct> --- !query 76 output -[1,1] - - --- !query 77 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t --- !query 77 schema -struct> --- !query 77 output -[1.0,1.0] - - --- !query 78 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t --- !query 78 schema -struct> --- !query 78 output -[1.0,1.0] - - --- !query 79 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 79 schema -struct> --- !query 79 output -[1,1] - - --- !query 80 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t --- !query 80 schema -struct> --- !query 80 output -["1","1"] - - --- !query 81 -SELECT size(array(cast(1 as decimal(10, 0)), cast('1' as binary))) FROM t --- !query 81 schema -struct<> --- !query 81 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 12 - - --- !query 82 -SELECT array(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t --- !query 82 schema -struct<> --- !query 82 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 83 -SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 83 schema -struct<> --- !query 83 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 84 -SELECT array(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 84 schema -struct<> --- !query 84 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [decimal(10,0), date]; line 1 pos 7 - - --- !query 85 -SELECT array(cast(1 as string), cast(1 as tinyint)) FROM t --- !query 85 schema -struct> --- !query 85 output -["1","1"] - - --- !query 86 -SELECT array(cast(1 as string), cast(1 as smallint)) FROM t --- !query 86 schema -struct> --- !query 86 output -["1","1"] - - --- !query 87 -SELECT array(cast(1 as string), cast(1 as int)) FROM t --- !query 87 schema -struct> --- !query 87 output -["1","1"] - - --- !query 88 -SELECT array(cast(1 as string), cast(1 as bigint)) FROM t --- !query 88 schema -struct> --- !query 88 output -["1","1"] - - --- !query 89 -SELECT array(cast(1 as string), cast(1 as float)) FROM t --- !query 89 schema -struct> --- !query 89 output -["1","1.0"] - - --- !query 90 -SELECT array(cast(1 as string), cast(1 as double)) FROM t --- !query 90 schema -struct> --- !query 90 output -["1","1.0"] - - --- !query 91 -SELECT array(cast(1 as string), cast(1 as decimal(10, 0))) FROM t --- !query 91 schema -struct> --- !query 91 output -["1","1"] - - --- !query 92 -SELECT array(cast(1 as string), cast(1 as string)) FROM t --- !query 92 schema -struct> --- !query 92 output -["1","1"] - - --- !query 93 -SELECT size(array(cast(1 as string), cast('1' as binary))) FROM t --- !query 93 schema -struct<> --- !query 93 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS STRING), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [string, binary]; line 1 pos 12 - - --- !query 94 -SELECT array(cast(1 as string), cast(1 as boolean)) FROM t --- !query 94 schema -struct<> --- !query 94 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS STRING), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [string, boolean]; line 1 pos 7 - - --- !query 95 -SELECT array(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 95 schema -struct> --- !query 95 output -["1","2017-12-11 09:30:00"] - - --- !query 96 -SELECT array(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 96 schema -struct> --- !query 96 output -["1","2017-12-11"] - - --- !query 97 -SELECT size(array(cast('1' as binary), cast(1 as tinyint))) FROM t --- !query 97 schema -struct<> --- !query 97 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, tinyint]; line 1 pos 12 - - --- !query 98 -SELECT size(array(cast('1' as binary), cast(1 as smallint))) FROM t --- !query 98 schema -struct<> --- !query 98 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, smallint]; line 1 pos 12 - - --- !query 99 -SELECT size(array(cast('1' as binary), cast(1 as int))) FROM t --- !query 99 schema -struct<> --- !query 99 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, int]; line 1 pos 12 - - --- !query 100 -SELECT size(array(cast('1' as binary), cast(1 as bigint))) FROM t --- !query 100 schema -struct<> --- !query 100 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, bigint]; line 1 pos 12 - - --- !query 101 -SELECT size(array(cast('1' as binary), cast(1 as float))) FROM t --- !query 101 schema -struct<> --- !query 101 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [binary, float]; line 1 pos 12 - - --- !query 102 -SELECT size(array(cast('1' as binary), cast(1 as double))) FROM t --- !query 102 schema -struct<> --- !query 102 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, double]; line 1 pos 12 - - --- !query 103 -SELECT size(array(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t --- !query 103 schema -struct<> --- !query 103 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 12 - - --- !query 104 -SELECT size(array(cast('1' as binary), cast(1 as string))) FROM t --- !query 104 schema -struct<> --- !query 104 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS STRING))' due to data type mismatch: input to function array should all be the same type, but it's [binary, string]; line 1 pos 12 - - --- !query 105 -SELECT size(array(cast('1' as binary), cast('1' as binary))) FROM t --- !query 105 schema -struct --- !query 105 output -2 - - --- !query 106 -SELECT size(array(cast('1' as binary), cast(1 as boolean))) FROM t --- !query 106 schema -struct<> --- !query 106 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [binary, boolean]; line 1 pos 12 - - --- !query 107 -SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t --- !query 107 schema -struct<> --- !query 107 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [binary, timestamp]; line 1 pos 12 - - --- !query 108 -SELECT size(array(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t --- !query 108 schema -struct<> --- !query 108 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('1' AS BINARY), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [binary, date]; line 1 pos 12 - - --- !query 109 -SELECT array(cast(1 as boolean), cast(1 as tinyint)) FROM t --- !query 109 schema -struct<> --- !query 109 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, tinyint]; line 1 pos 7 - - --- !query 110 -SELECT array(cast(1 as boolean), cast(1 as smallint)) FROM t --- !query 110 schema -struct<> --- !query 110 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, smallint]; line 1 pos 7 - - --- !query 111 -SELECT array(cast(1 as boolean), cast(1 as int)) FROM t --- !query 111 schema -struct<> --- !query 111 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, int]; line 1 pos 7 - - --- !query 112 -SELECT array(cast(1 as boolean), cast(1 as bigint)) FROM t --- !query 112 schema -struct<> --- !query 112 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, bigint]; line 1 pos 7 - - --- !query 113 -SELECT array(cast(1 as boolean), cast(1 as float)) FROM t --- !query 113 schema -struct<> --- !query 113 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, float]; line 1 pos 7 - - --- !query 114 -SELECT array(cast(1 as boolean), cast(1 as double)) FROM t --- !query 114 schema -struct<> --- !query 114 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, double]; line 1 pos 7 - - --- !query 115 -SELECT array(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t --- !query 115 schema -struct<> --- !query 115 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 116 -SELECT array(cast(1 as boolean), cast(1 as string)) FROM t --- !query 116 schema -struct<> --- !query 116 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST(1 AS STRING))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, string]; line 1 pos 7 - - --- !query 117 -SELECT size(array(cast(1 as boolean), cast('1' as binary))) FROM t --- !query 117 schema -struct<> --- !query 117 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, binary]; line 1 pos 12 - - --- !query 118 -SELECT array(cast(1 as boolean), cast(1 as boolean)) FROM t --- !query 118 schema -struct> --- !query 118 output -[true,true] - - --- !query 119 -SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 119 schema -struct<> --- !query 119 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, timestamp]; line 1 pos 7 - - --- !query 120 -SELECT array(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 120 schema -struct<> --- !query 120 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST(1 AS BOOLEAN), CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: input to function array should all be the same type, but it's [boolean, date]; line 1 pos 7 - - --- !query 121 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t --- !query 121 schema -struct<> --- !query 121 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, tinyint]; line 1 pos 7 - - --- !query 122 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t --- !query 122 schema -struct<> --- !query 122 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, smallint]; line 1 pos 7 - - --- !query 123 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t --- !query 123 schema -struct<> --- !query 123 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, int]; line 1 pos 7 - - --- !query 124 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t --- !query 124 schema -struct<> --- !query 124 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, bigint]; line 1 pos 7 - - --- !query 125 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t --- !query 125 schema -struct<> --- !query 125 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, float]; line 1 pos 7 - - --- !query 126 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t --- !query 126 schema -struct<> --- !query 126 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, double]; line 1 pos 7 - - --- !query 127 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t --- !query 127 schema -struct<> --- !query 127 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 128 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t --- !query 128 schema -struct> --- !query 128 output -["2017-12-11 09:30:00","1"] - - --- !query 129 -SELECT size(array(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary))) FROM t --- !query 129 schema -struct<> --- !query 129 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, binary]; line 1 pos 12 - - --- !query 130 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t --- !query 130 schema -struct<> --- !query 130 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [timestamp, boolean]; line 1 pos 7 - - --- !query 131 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 131 schema -struct> --- !query 131 output -[2017-12-11 09:30:00.0,2017-12-11 09:30:00.0] - - --- !query 132 -SELECT array(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 132 schema -struct> --- !query 132 output -[2017-12-11 09:30:00.0,2017-12-11 00:00:00.0] - - --- !query 133 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t --- !query 133 schema -struct<> --- !query 133 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS TINYINT))' due to data type mismatch: input to function array should all be the same type, but it's [date, tinyint]; line 1 pos 7 - - --- !query 134 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t --- !query 134 schema -struct<> --- !query 134 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS SMALLINT))' due to data type mismatch: input to function array should all be the same type, but it's [date, smallint]; line 1 pos 7 - - --- !query 135 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t --- !query 135 schema -struct<> --- !query 135 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS INT))' due to data type mismatch: input to function array should all be the same type, but it's [date, int]; line 1 pos 7 - - --- !query 136 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t --- !query 136 schema -struct<> --- !query 136 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BIGINT))' due to data type mismatch: input to function array should all be the same type, but it's [date, bigint]; line 1 pos 7 - - --- !query 137 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t --- !query 137 schema -struct<> --- !query 137 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS FLOAT))' due to data type mismatch: input to function array should all be the same type, but it's [date, float]; line 1 pos 7 - - --- !query 138 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t --- !query 138 schema -struct<> --- !query 138 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DOUBLE))' due to data type mismatch: input to function array should all be the same type, but it's [date, double]; line 1 pos 7 - - --- !query 139 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t --- !query 139 schema -struct<> --- !query 139 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS DECIMAL(10,0)))' due to data type mismatch: input to function array should all be the same type, but it's [date, decimal(10,0)]; line 1 pos 7 - - --- !query 140 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t --- !query 140 schema -struct> --- !query 140 output -["2017-12-11","1"] - - --- !query 141 -SELECT size(array(cast('2017-12-11 09:30:00' as date), cast('1' as binary))) FROM t --- !query 141 schema -struct<> --- !query 141 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST('1' AS BINARY))' due to data type mismatch: input to function array should all be the same type, but it's [date, binary]; line 1 pos 12 - - --- !query 142 -SELECT array(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t --- !query 142 schema -struct<> --- !query 142 output -org.apache.spark.sql.AnalysisException -cannot resolve 'array(CAST('2017-12-11 09:30:00' AS DATE), CAST(1 AS BOOLEAN))' due to data type mismatch: input to function array should all be the same type, but it's [date, boolean]; line 1 pos 7 - - --- !query 143 -SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 143 schema -struct> --- !query 143 output -[2017-12-11 00:00:00.0,2017-12-11 09:30:00.0] - - --- !query 144 -SELECT array(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 144 schema -struct> --- !query 144 output -[2017-12-11,2017-12-11] - - --- !query 145 -SELECT map(cast(1 as tinyint), cast(1 as tinyint)) FROM t --- !query 145 schema -struct> --- !query 145 output -{1:1} - - --- !query 146 -SELECT map(cast(1 as tinyint), cast(1 as smallint)) FROM t --- !query 146 schema -struct> --- !query 146 output -{1:1} - - --- !query 147 -SELECT map(cast(1 as tinyint), cast(1 as int)) FROM t --- !query 147 schema -struct> --- !query 147 output -{1:1} - - --- !query 148 -SELECT map(cast(1 as tinyint), cast(1 as bigint)) FROM t --- !query 148 schema -struct> --- !query 148 output -{1:1} - - --- !query 149 -SELECT map(cast(1 as tinyint), cast(1 as float)) FROM t --- !query 149 schema -struct> --- !query 149 output -{1:1.0} - - --- !query 150 -SELECT map(cast(1 as tinyint), cast(1 as double)) FROM t --- !query 150 schema -struct> --- !query 150 output -{1:1.0} - - --- !query 151 -SELECT map(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t --- !query 151 schema -struct> --- !query 151 output -{1:1} - - --- !query 152 -SELECT map(cast(1 as tinyint), cast(1 as string)) FROM t --- !query 152 schema -struct> --- !query 152 output -{1:"1"} - - --- !query 153 -SELECT size(map(cast(1 as tinyint), cast('1' as binary))) FROM t --- !query 153 schema -struct --- !query 153 output -1 - - --- !query 154 -SELECT map(cast(1 as tinyint), cast(1 as boolean)) FROM t --- !query 154 schema -struct> --- !query 154 output -{1:true} - - --- !query 155 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 155 schema -struct> --- !query 155 output -{1:2017-12-11 09:30:00.0} - - --- !query 156 -SELECT map(cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 156 schema -struct> --- !query 156 output -{1:2017-12-11} - - --- !query 157 -SELECT map(cast(1 as smallint), cast(1 as tinyint)) FROM t --- !query 157 schema -struct> --- !query 157 output -{1:1} - - --- !query 158 -SELECT map(cast(1 as smallint), cast(1 as smallint)) FROM t --- !query 158 schema -struct> --- !query 158 output -{1:1} - - --- !query 159 -SELECT map(cast(1 as smallint), cast(1 as int)) FROM t --- !query 159 schema -struct> --- !query 159 output -{1:1} - - --- !query 160 -SELECT map(cast(1 as smallint), cast(1 as bigint)) FROM t --- !query 160 schema -struct> --- !query 160 output -{1:1} - - --- !query 161 -SELECT map(cast(1 as smallint), cast(1 as float)) FROM t --- !query 161 schema -struct> --- !query 161 output -{1:1.0} - - --- !query 162 -SELECT map(cast(1 as smallint), cast(1 as double)) FROM t --- !query 162 schema -struct> --- !query 162 output -{1:1.0} - - --- !query 163 -SELECT map(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t --- !query 163 schema -struct> --- !query 163 output -{1:1} - - --- !query 164 -SELECT map(cast(1 as smallint), cast(1 as string)) FROM t --- !query 164 schema -struct> --- !query 164 output -{1:"1"} - - --- !query 165 -SELECT size(map(cast(1 as smallint), cast('1' as binary))) FROM t --- !query 165 schema -struct --- !query 165 output -1 - - --- !query 166 -SELECT map(cast(1 as smallint), cast(1 as boolean)) FROM t --- !query 166 schema -struct> --- !query 166 output -{1:true} - - --- !query 167 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 167 schema -struct> --- !query 167 output -{1:2017-12-11 09:30:00.0} - - --- !query 168 -SELECT map(cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 168 schema -struct> --- !query 168 output -{1:2017-12-11} - - --- !query 169 -SELECT map(cast(1 as int), cast(1 as tinyint)) FROM t --- !query 169 schema -struct> --- !query 169 output -{1:1} - - --- !query 170 -SELECT map(cast(1 as int), cast(1 as smallint)) FROM t --- !query 170 schema -struct> --- !query 170 output -{1:1} - - --- !query 171 -SELECT map(cast(1 as int), cast(1 as int)) FROM t --- !query 171 schema -struct> --- !query 171 output -{1:1} - - --- !query 172 -SELECT map(cast(1 as int), cast(1 as bigint)) FROM t --- !query 172 schema -struct> --- !query 172 output -{1:1} - - --- !query 173 -SELECT map(cast(1 as int), cast(1 as float)) FROM t --- !query 173 schema -struct> --- !query 173 output -{1:1.0} - - --- !query 174 -SELECT map(cast(1 as int), cast(1 as double)) FROM t --- !query 174 schema -struct> --- !query 174 output -{1:1.0} - - --- !query 175 -SELECT map(cast(1 as int), cast(1 as decimal(10, 0))) FROM t --- !query 175 schema -struct> --- !query 175 output -{1:1} - - --- !query 176 -SELECT map(cast(1 as int), cast(1 as string)) FROM t --- !query 176 schema -struct> --- !query 176 output -{1:"1"} - - --- !query 177 -SELECT size(map(cast(1 as int), cast('1' as binary))) FROM t --- !query 177 schema -struct --- !query 177 output -1 - - --- !query 178 -SELECT map(cast(1 as int), cast(1 as boolean)) FROM t --- !query 178 schema -struct> --- !query 178 output -{1:true} - - --- !query 179 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 179 schema -struct> --- !query 179 output -{1:2017-12-11 09:30:00.0} - - --- !query 180 -SELECT map(cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 180 schema -struct> --- !query 180 output -{1:2017-12-11} - - --- !query 181 -SELECT map(cast(1 as bigint), cast(1 as tinyint)) FROM t --- !query 181 schema -struct> --- !query 181 output -{1:1} - - --- !query 182 -SELECT map(cast(1 as bigint), cast(1 as smallint)) FROM t --- !query 182 schema -struct> --- !query 182 output -{1:1} - - --- !query 183 -SELECT map(cast(1 as bigint), cast(1 as int)) FROM t --- !query 183 schema -struct> --- !query 183 output -{1:1} - - --- !query 184 -SELECT map(cast(1 as bigint), cast(1 as bigint)) FROM t --- !query 184 schema -struct> --- !query 184 output -{1:1} - - --- !query 185 -SELECT map(cast(1 as bigint), cast(1 as float)) FROM t --- !query 185 schema -struct> --- !query 185 output -{1:1.0} - - --- !query 186 -SELECT map(cast(1 as bigint), cast(1 as double)) FROM t --- !query 186 schema -struct> --- !query 186 output -{1:1.0} - - --- !query 187 -SELECT map(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t --- !query 187 schema -struct> --- !query 187 output -{1:1} - - --- !query 188 -SELECT map(cast(1 as bigint), cast(1 as string)) FROM t --- !query 188 schema -struct> --- !query 188 output -{1:"1"} - - --- !query 189 -SELECT size(map(cast(1 as bigint), cast('1' as binary))) FROM t --- !query 189 schema -struct --- !query 189 output -1 - - --- !query 190 -SELECT map(cast(1 as bigint), cast(1 as boolean)) FROM t --- !query 190 schema -struct> --- !query 190 output -{1:true} - - --- !query 191 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 191 schema -struct> --- !query 191 output -{1:2017-12-11 09:30:00.0} - - --- !query 192 -SELECT map(cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 192 schema -struct> --- !query 192 output -{1:2017-12-11} - - --- !query 193 -SELECT map(cast(1 as float), cast(1 as tinyint)) FROM t --- !query 193 schema -struct> --- !query 193 output -{1.0:1} - - --- !query 194 -SELECT map(cast(1 as float), cast(1 as smallint)) FROM t --- !query 194 schema -struct> --- !query 194 output -{1.0:1} - - --- !query 195 -SELECT map(cast(1 as float), cast(1 as int)) FROM t --- !query 195 schema -struct> --- !query 195 output -{1.0:1} - - --- !query 196 -SELECT map(cast(1 as float), cast(1 as bigint)) FROM t --- !query 196 schema -struct> --- !query 196 output -{1.0:1} - - --- !query 197 -SELECT map(cast(1 as float), cast(1 as float)) FROM t --- !query 197 schema -struct> --- !query 197 output -{1.0:1.0} - - --- !query 198 -SELECT map(cast(1 as float), cast(1 as double)) FROM t --- !query 198 schema -struct> --- !query 198 output -{1.0:1.0} - - --- !query 199 -SELECT map(cast(1 as float), cast(1 as decimal(10, 0))) FROM t --- !query 199 schema -struct> --- !query 199 output -{1.0:1} - - --- !query 200 -SELECT map(cast(1 as float), cast(1 as string)) FROM t --- !query 200 schema -struct> --- !query 200 output -{1.0:"1"} - - --- !query 201 -SELECT size(map(cast(1 as float), cast('1' as binary))) FROM t --- !query 201 schema -struct --- !query 201 output -1 - - --- !query 202 -SELECT map(cast(1 as float), cast(1 as boolean)) FROM t --- !query 202 schema -struct> --- !query 202 output -{1.0:true} - - --- !query 203 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 203 schema -struct> --- !query 203 output -{1.0:2017-12-11 09:30:00.0} - - --- !query 204 -SELECT map(cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 204 schema -struct> --- !query 204 output -{1.0:2017-12-11} - - --- !query 205 -SELECT map(cast(1 as double), cast(1 as tinyint)) FROM t --- !query 205 schema -struct> --- !query 205 output -{1.0:1} - - --- !query 206 -SELECT map(cast(1 as double), cast(1 as smallint)) FROM t --- !query 206 schema -struct> --- !query 206 output -{1.0:1} - - --- !query 207 -SELECT map(cast(1 as double), cast(1 as int)) FROM t --- !query 207 schema -struct> --- !query 207 output -{1.0:1} - - --- !query 208 -SELECT map(cast(1 as double), cast(1 as bigint)) FROM t --- !query 208 schema -struct> --- !query 208 output -{1.0:1} - - --- !query 209 -SELECT map(cast(1 as double), cast(1 as float)) FROM t --- !query 209 schema -struct> --- !query 209 output -{1.0:1.0} - - --- !query 210 -SELECT map(cast(1 as double), cast(1 as double)) FROM t --- !query 210 schema -struct> --- !query 210 output -{1.0:1.0} - - --- !query 211 -SELECT map(cast(1 as double), cast(1 as decimal(10, 0))) FROM t --- !query 211 schema -struct> --- !query 211 output -{1.0:1} - - --- !query 212 -SELECT map(cast(1 as double), cast(1 as string)) FROM t --- !query 212 schema -struct> --- !query 212 output -{1.0:"1"} - - --- !query 213 -SELECT size(map(cast(1 as double), cast('1' as binary))) FROM t --- !query 213 schema -struct --- !query 213 output -1 - - --- !query 214 -SELECT map(cast(1 as double), cast(1 as boolean)) FROM t --- !query 214 schema -struct> --- !query 214 output -{1.0:true} - - --- !query 215 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 215 schema -struct> --- !query 215 output -{1.0:2017-12-11 09:30:00.0} - - --- !query 216 -SELECT map(cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 216 schema -struct> --- !query 216 output -{1.0:2017-12-11} - - --- !query 217 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t --- !query 217 schema -struct> --- !query 217 output -{1:1} - - --- !query 218 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t --- !query 218 schema -struct> --- !query 218 output -{1:1} - - --- !query 219 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t --- !query 219 schema -struct> --- !query 219 output -{1:1} - - --- !query 220 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t --- !query 220 schema -struct> --- !query 220 output -{1:1} - - --- !query 221 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t --- !query 221 schema -struct> --- !query 221 output -{1:1.0} - - --- !query 222 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t --- !query 222 schema -struct> --- !query 222 output -{1:1.0} - - --- !query 223 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t --- !query 223 schema -struct> --- !query 223 output -{1:1} - - --- !query 224 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t --- !query 224 schema -struct> --- !query 224 output -{1:"1"} - - --- !query 225 -SELECT size(map(cast(1 as decimal(10, 0)), cast('1' as binary))) FROM t --- !query 225 schema -struct --- !query 225 output -1 - - --- !query 226 -SELECT map(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t --- !query 226 schema -struct> --- !query 226 output -{1:true} - - --- !query 227 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 227 schema -struct> --- !query 227 output -{1:2017-12-11 09:30:00.0} - - --- !query 228 -SELECT map(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 228 schema -struct> --- !query 228 output -{1:2017-12-11} - - --- !query 229 -SELECT map(cast(1 as string), cast(1 as tinyint)) FROM t --- !query 229 schema -struct> --- !query 229 output -{"1":1} - - --- !query 230 -SELECT map(cast(1 as string), cast(1 as smallint)) FROM t --- !query 230 schema -struct> --- !query 230 output -{"1":1} - - --- !query 231 -SELECT map(cast(1 as string), cast(1 as int)) FROM t --- !query 231 schema -struct> --- !query 231 output -{"1":1} - - --- !query 232 -SELECT map(cast(1 as string), cast(1 as bigint)) FROM t --- !query 232 schema -struct> --- !query 232 output -{"1":1} - - --- !query 233 -SELECT map(cast(1 as string), cast(1 as float)) FROM t --- !query 233 schema -struct> --- !query 233 output -{"1":1.0} - - --- !query 234 -SELECT map(cast(1 as string), cast(1 as double)) FROM t --- !query 234 schema -struct> --- !query 234 output -{"1":1.0} - - --- !query 235 -SELECT map(cast(1 as string), cast(1 as decimal(10, 0))) FROM t --- !query 235 schema -struct> --- !query 235 output -{"1":1} - - --- !query 236 -SELECT map(cast(1 as string), cast(1 as string)) FROM t --- !query 236 schema -struct> --- !query 236 output -{"1":"1"} - - --- !query 237 -SELECT size(map(cast(1 as string), cast('1' as binary))) FROM t --- !query 237 schema -struct --- !query 237 output -1 - - --- !query 238 -SELECT map(cast(1 as string), cast(1 as boolean)) FROM t --- !query 238 schema -struct> --- !query 238 output -{"1":true} - - --- !query 239 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 239 schema -struct> --- !query 239 output -{"1":2017-12-11 09:30:00.0} - - --- !query 240 -SELECT map(cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 240 schema -struct> --- !query 240 output -{"1":2017-12-11} - - --- !query 241 -SELECT size(map(cast('1' as binary), cast(1 as tinyint))) FROM t --- !query 241 schema -struct --- !query 241 output -1 - - --- !query 242 -SELECT size(map(cast('1' as binary), cast(1 as smallint))) FROM t --- !query 242 schema -struct --- !query 242 output -1 - - --- !query 243 -SELECT size(map(cast('1' as binary), cast(1 as int))) FROM t --- !query 243 schema -struct --- !query 243 output -1 - - --- !query 244 -SELECT size(map(cast('1' as binary), cast(1 as bigint))) FROM t --- !query 244 schema -struct --- !query 244 output -1 - - --- !query 245 -SELECT size(map(cast('1' as binary), cast(1 as float))) FROM t --- !query 245 schema -struct --- !query 245 output -1 - - --- !query 246 -SELECT size(map(cast('1' as binary), cast(1 as double))) FROM t --- !query 246 schema -struct --- !query 246 output -1 - - --- !query 247 -SELECT size(map(cast('1' as binary), cast(1 as decimal(10, 0)))) FROM t --- !query 247 schema -struct --- !query 247 output -1 - - --- !query 248 -SELECT size(map(cast('1' as binary), cast(1 as string))) FROM t --- !query 248 schema -struct --- !query 248 output -1 - - --- !query 249 -SELECT size(map(cast('1' as binary), cast('1' as binary))) FROM t --- !query 249 schema -struct --- !query 249 output -1 - - --- !query 250 -SELECT size(map(cast('1' as binary), cast(1 as boolean))) FROM t --- !query 250 schema -struct --- !query 250 output -1 - - --- !query 251 -SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp))) FROM t --- !query 251 schema -struct --- !query 251 output -1 - - --- !query 252 -SELECT size(map(cast('1' as binary), cast('2017-12-11 09:30:00' as date))) FROM t --- !query 252 schema -struct --- !query 252 output -1 - - --- !query 253 -SELECT map(cast(1 as boolean), cast(1 as tinyint)) FROM t --- !query 253 schema -struct> --- !query 253 output -{true:1} - - --- !query 254 -SELECT map(cast(1 as boolean), cast(1 as smallint)) FROM t --- !query 254 schema -struct> --- !query 254 output -{true:1} - - --- !query 255 -SELECT map(cast(1 as boolean), cast(1 as int)) FROM t --- !query 255 schema -struct> --- !query 255 output -{true:1} - - --- !query 256 -SELECT map(cast(1 as boolean), cast(1 as bigint)) FROM t --- !query 256 schema -struct> --- !query 256 output -{true:1} - - --- !query 257 -SELECT map(cast(1 as boolean), cast(1 as float)) FROM t --- !query 257 schema -struct> --- !query 257 output -{true:1.0} - - --- !query 258 -SELECT map(cast(1 as boolean), cast(1 as double)) FROM t --- !query 258 schema -struct> --- !query 258 output -{true:1.0} - - --- !query 259 -SELECT map(cast(1 as boolean), cast(1 as decimal(10, 0))) FROM t --- !query 259 schema -struct> --- !query 259 output -{true:1} - - --- !query 260 -SELECT map(cast(1 as boolean), cast(1 as string)) FROM t --- !query 260 schema -struct> --- !query 260 output -{true:"1"} - - --- !query 261 -SELECT size(map(cast(1 as boolean), cast('1' as binary))) FROM t --- !query 261 schema -struct --- !query 261 output -1 - - --- !query 262 -SELECT map(cast(1 as boolean), cast(1 as boolean)) FROM t --- !query 262 schema -struct> --- !query 262 output -{true:true} - - --- !query 263 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 263 schema -struct> --- !query 263 output -{true:2017-12-11 09:30:00.0} - - --- !query 264 -SELECT map(cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 264 schema -struct> --- !query 264 output -{true:2017-12-11} - - --- !query 265 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t --- !query 265 schema -struct> --- !query 265 output -{2017-12-11 09:30:00.0:1} - - --- !query 266 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t --- !query 266 schema -struct> --- !query 266 output -{2017-12-11 09:30:00.0:1} - - --- !query 267 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as int)) FROM t --- !query 267 schema -struct> --- !query 267 output -{2017-12-11 09:30:00.0:1} - - --- !query 268 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t --- !query 268 schema -struct> --- !query 268 output -{2017-12-11 09:30:00.0:1} - - --- !query 269 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as float)) FROM t --- !query 269 schema -struct> --- !query 269 output -{2017-12-11 09:30:00.0:1.0} - - --- !query 270 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as double)) FROM t --- !query 270 schema -struct> --- !query 270 output -{2017-12-11 09:30:00.0:1.0} - - --- !query 271 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t --- !query 271 schema -struct> --- !query 271 output -{2017-12-11 09:30:00.0:1} - - --- !query 272 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as string)) FROM t --- !query 272 schema -struct> --- !query 272 output -{2017-12-11 09:30:00.0:"1"} - - --- !query 273 -SELECT size(map(cast('2017-12-11 09:30:00.0' as timestamp), cast('1' as binary))) FROM t --- !query 273 schema -struct --- !query 273 output -1 - - --- !query 274 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t --- !query 274 schema -struct> --- !query 274 output -{2017-12-11 09:30:00.0:true} - - --- !query 275 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 275 schema -struct> --- !query 275 output -{2017-12-11 09:30:00.0:2017-12-11 09:30:00.0} - - --- !query 276 -SELECT map(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 276 schema -struct> --- !query 276 output -{2017-12-11 09:30:00.0:2017-12-11} - - --- !query 277 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as tinyint)) FROM t --- !query 277 schema -struct> --- !query 277 output -{2017-12-11:1} - - --- !query 278 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as smallint)) FROM t --- !query 278 schema -struct> --- !query 278 output -{2017-12-11:1} - - --- !query 279 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as int)) FROM t --- !query 279 schema -struct> --- !query 279 output -{2017-12-11:1} - - --- !query 280 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as bigint)) FROM t --- !query 280 schema -struct> --- !query 280 output -{2017-12-11:1} - - --- !query 281 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as float)) FROM t --- !query 281 schema -struct> --- !query 281 output -{2017-12-11:1.0} - - --- !query 282 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as double)) FROM t --- !query 282 schema -struct> --- !query 282 output -{2017-12-11:1.0} - - --- !query 283 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t --- !query 283 schema -struct> --- !query 283 output -{2017-12-11:1} - - --- !query 284 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as string)) FROM t --- !query 284 schema -struct> --- !query 284 output -{2017-12-11:"1"} - - --- !query 285 -SELECT size(map(cast('2017-12-11 09:30:00' as date), cast('1' as binary))) FROM t --- !query 285 schema -struct --- !query 285 output -1 - - --- !query 286 -SELECT map(cast('2017-12-11 09:30:00' as date), cast(1 as boolean)) FROM t --- !query 286 schema -struct> --- !query 286 output -{2017-12-11:true} - - --- !query 287 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t --- !query 287 schema -struct> --- !query 287 output -{2017-12-11:2017-12-11 09:30:00.0} - - --- !query 288 -SELECT map(cast('2017-12-11 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t --- !query 288 schema -struct> --- !query 288 output -{2017-12-11:2017-12-11} - - --- !query 289 -SELECT sum(cast(1 as tinyint)) FROM t --- !query 289 schema -struct --- !query 289 output -1 - - --- !query 290 -SELECT sum(cast(1 as smallint)) FROM t --- !query 290 schema -struct --- !query 290 output -1 - - --- !query 291 -SELECT sum(cast(1 as int)) FROM t --- !query 291 schema -struct --- !query 291 output -1 - - --- !query 292 -SELECT sum(cast(1 as bigint)) FROM t --- !query 292 schema -struct --- !query 292 output -1 - - --- !query 293 -SELECT sum(cast(1 as float)) FROM t --- !query 293 schema -struct --- !query 293 output -1.0 - - --- !query 294 -SELECT sum(cast(1 as double)) FROM t --- !query 294 schema -struct --- !query 294 output -1.0 - - --- !query 295 -SELECT sum(cast(1 as decimal(10, 0))) FROM t --- !query 295 schema -struct --- !query 295 output -1 - - --- !query 296 -SELECT sum(cast(1 as string)) FROM t --- !query 296 schema -struct --- !query 296 output -1.0 - - --- !query 297 -SELECT sum(cast('1' as binary)) FROM t --- !query 297 schema -struct<> --- !query 297 output -org.apache.spark.sql.AnalysisException -cannot resolve 'sum(CAST('1' AS BINARY))' due to data type mismatch: function sum requires numeric types, not BinaryType; line 1 pos 7 - - --- !query 298 -SELECT sum(cast(1 as boolean)) FROM t --- !query 298 schema -struct<> --- !query 298 output -org.apache.spark.sql.AnalysisException -cannot resolve 'sum(CAST(1 AS BOOLEAN))' due to data type mismatch: function sum requires numeric types, not BooleanType; line 1 pos 7 - - --- !query 299 -SELECT sum(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 299 schema -struct --- !query 299 output -1.5130998E9 - - --- !query 300 -SELECT sum(cast('2017-12-11 09:30:00' as date)) FROM t --- !query 300 schema -struct<> --- !query 300 output -org.apache.spark.sql.AnalysisException -cannot resolve 'sum(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function sum requires numeric types, not DateType; line 1 pos 7 - - --- !query 301 -SELECT avg(cast(1 as tinyint)) FROM t --- !query 301 schema -struct --- !query 301 output -1.0 - - --- !query 302 -SELECT avg(cast(1 as smallint)) FROM t --- !query 302 schema -struct --- !query 302 output -1.0 - - --- !query 303 -SELECT avg(cast(1 as int)) FROM t --- !query 303 schema -struct --- !query 303 output -1.0 - - --- !query 304 -SELECT avg(cast(1 as bigint)) FROM t --- !query 304 schema -struct --- !query 304 output -1.0 - - --- !query 305 -SELECT avg(cast(1 as float)) FROM t --- !query 305 schema -struct --- !query 305 output -1.0 - - --- !query 306 -SELECT avg(cast(1 as double)) FROM t --- !query 306 schema -struct --- !query 306 output -1.0 - - --- !query 307 -SELECT avg(cast(1 as decimal(10, 0))) FROM t --- !query 307 schema -struct --- !query 307 output -1 - - --- !query 308 -SELECT avg(cast(1 as string)) FROM t --- !query 308 schema -struct --- !query 308 output -1.0 - - --- !query 309 -SELECT avg(cast('1' as binary)) FROM t --- !query 309 schema -struct<> --- !query 309 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 - - --- !query 310 -SELECT avg(cast(1 as boolean)) FROM t --- !query 310 schema -struct<> --- !query 310 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 - - --- !query 311 -SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 311 schema -struct --- !query 311 output -1.5130998E9 - - --- !query 312 -SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t --- !query 312 schema -struct<> --- !query 312 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 - - --- !query 313 -SELECT avg(cast(1 as tinyint)) FROM t --- !query 313 schema -struct --- !query 313 output -1.0 - - --- !query 314 -SELECT avg(cast(1 as smallint)) FROM t --- !query 314 schema -struct --- !query 314 output -1.0 - - --- !query 315 -SELECT avg(cast(1 as int)) FROM t --- !query 315 schema -struct --- !query 315 output -1.0 - - --- !query 316 -SELECT avg(cast(1 as bigint)) FROM t --- !query 316 schema -struct --- !query 316 output -1.0 - - --- !query 317 -SELECT avg(cast(1 as float)) FROM t --- !query 317 schema -struct --- !query 317 output -1.0 - - --- !query 318 -SELECT avg(cast(1 as double)) FROM t --- !query 318 schema -struct --- !query 318 output -1.0 - - --- !query 319 -SELECT avg(cast(1 as decimal(10, 0))) FROM t --- !query 319 schema -struct --- !query 319 output -1 - - --- !query 320 -SELECT avg(cast(1 as string)) FROM t --- !query 320 schema -struct --- !query 320 output -1.0 - - --- !query 321 -SELECT avg(cast('1' as binary)) FROM t --- !query 321 schema -struct<> --- !query 321 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('1' AS BINARY))' due to data type mismatch: function average requires numeric types, not BinaryType; line 1 pos 7 - - --- !query 322 -SELECT avg(cast(1 as boolean)) FROM t --- !query 322 schema -struct<> --- !query 322 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST(1 AS BOOLEAN))' due to data type mismatch: function average requires numeric types, not BooleanType; line 1 pos 7 - - --- !query 323 -SELECT avg(cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 323 schema -struct --- !query 323 output -1.5130998E9 - - --- !query 324 -SELECT avg(cast('2017-12-11 09:30:00' as date)) FROM t --- !query 324 schema -struct<> --- !query 324 output -org.apache.spark.sql.AnalysisException -cannot resolve 'avg(CAST('2017-12-11 09:30:00' AS DATE))' due to data type mismatch: function average requires numeric types, not DateType; line 1 pos 7 - - --- !query 325 -SELECT coalesce(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 325 schema -struct --- !query 325 output -1 - - --- !query 326 -SELECT coalesce(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 326 schema -struct --- !query 326 output -1 - - --- !query 327 -SELECT coalesce(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 327 schema -struct --- !query 327 output -1 - - --- !query 328 -SELECT coalesce(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 328 schema -struct --- !query 328 output -1 - - --- !query 329 -SELECT coalesce(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 329 schema -struct --- !query 329 output -1.0 - - --- !query 330 -SELECT coalesce(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 330 schema -struct --- !query 330 output -1.0 - - --- !query 331 -SELECT coalesce(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 331 schema -struct --- !query 331 output -1 - - --- !query 332 -SELECT coalesce(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 332 schema -struct --- !query 332 output -1 - - --- !query 333 -SELECT coalesce(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 333 schema -struct<> --- !query 333 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, binary]; line 1 pos 7 - - --- !query 334 -SELECT coalesce(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 334 schema -struct<> --- !query 334 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, boolean]; line 1 pos 7 - - --- !query 335 -SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 335 schema -struct<> --- !query 335 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, timestamp]; line 1 pos 7 - - --- !query 336 -SELECT coalesce(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 336 schema -struct<> --- !query 336 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [tinyint, date]; line 1 pos 7 - - --- !query 337 -SELECT coalesce(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 337 schema -struct --- !query 337 output -1 - - --- !query 338 -SELECT coalesce(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 338 schema -struct --- !query 338 output -1 - - --- !query 339 -SELECT coalesce(cast(1 as smallint), cast(2 as int)) FROM t --- !query 339 schema -struct --- !query 339 output -1 - - --- !query 340 -SELECT coalesce(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 340 schema -struct --- !query 340 output -1 - - --- !query 341 -SELECT coalesce(cast(1 as smallint), cast(2 as float)) FROM t --- !query 341 schema -struct --- !query 341 output -1.0 - - --- !query 342 -SELECT coalesce(cast(1 as smallint), cast(2 as double)) FROM t --- !query 342 schema -struct --- !query 342 output -1.0 - - --- !query 343 -SELECT coalesce(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 343 schema -struct --- !query 343 output -1 - - --- !query 344 -SELECT coalesce(cast(1 as smallint), cast(2 as string)) FROM t --- !query 344 schema -struct --- !query 344 output -1 - - --- !query 345 -SELECT coalesce(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 345 schema -struct<> --- !query 345 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, binary]; line 1 pos 7 - - --- !query 346 -SELECT coalesce(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 346 schema -struct<> --- !query 346 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, boolean]; line 1 pos 7 - - --- !query 347 -SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 347 schema -struct<> --- !query 347 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, timestamp]; line 1 pos 7 - - --- !query 348 -SELECT coalesce(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 348 schema -struct<> --- !query 348 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [smallint, date]; line 1 pos 7 - - --- !query 349 -SELECT coalesce(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 349 schema -struct --- !query 349 output -1 - - --- !query 350 -SELECT coalesce(cast(1 as int), cast(2 as smallint)) FROM t --- !query 350 schema -struct --- !query 350 output -1 - - --- !query 351 -SELECT coalesce(cast(1 as int), cast(2 as int)) FROM t --- !query 351 schema -struct --- !query 351 output -1 - - --- !query 352 -SELECT coalesce(cast(1 as int), cast(2 as bigint)) FROM t --- !query 352 schema -struct --- !query 352 output -1 - - --- !query 353 -SELECT coalesce(cast(1 as int), cast(2 as float)) FROM t --- !query 353 schema -struct --- !query 353 output -1.0 - - --- !query 354 -SELECT coalesce(cast(1 as int), cast(2 as double)) FROM t --- !query 354 schema -struct --- !query 354 output -1.0 - - --- !query 355 -SELECT coalesce(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 355 schema -struct --- !query 355 output -1 - - --- !query 356 -SELECT coalesce(cast(1 as int), cast(2 as string)) FROM t --- !query 356 schema -struct --- !query 356 output -1 - - --- !query 357 -SELECT coalesce(cast(1 as int), cast('2' as binary)) FROM t --- !query 357 schema -struct<> --- !query 357 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, binary]; line 1 pos 7 - - --- !query 358 -SELECT coalesce(cast(1 as int), cast(2 as boolean)) FROM t --- !query 358 schema -struct<> --- !query 358 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, boolean]; line 1 pos 7 - - --- !query 359 -SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 359 schema -struct<> --- !query 359 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, timestamp]; line 1 pos 7 - - --- !query 360 -SELECT coalesce(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 360 schema -struct<> --- !query 360 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [int, date]; line 1 pos 7 - - --- !query 361 -SELECT coalesce(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 361 schema -struct --- !query 361 output -1 - - --- !query 362 -SELECT coalesce(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 362 schema -struct --- !query 362 output -1 - - --- !query 363 -SELECT coalesce(cast(1 as bigint), cast(2 as int)) FROM t --- !query 363 schema -struct --- !query 363 output -1 - - --- !query 364 -SELECT coalesce(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 364 schema -struct --- !query 364 output -1 - - --- !query 365 -SELECT coalesce(cast(1 as bigint), cast(2 as float)) FROM t --- !query 365 schema -struct --- !query 365 output -1.0 - - --- !query 366 -SELECT coalesce(cast(1 as bigint), cast(2 as double)) FROM t --- !query 366 schema -struct --- !query 366 output -1.0 - - --- !query 367 -SELECT coalesce(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 367 schema -struct --- !query 367 output -1 - - --- !query 368 -SELECT coalesce(cast(1 as bigint), cast(2 as string)) FROM t --- !query 368 schema -struct --- !query 368 output -1 - - --- !query 369 -SELECT coalesce(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 369 schema -struct<> --- !query 369 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, binary]; line 1 pos 7 - - --- !query 370 -SELECT coalesce(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 370 schema -struct<> --- !query 370 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, boolean]; line 1 pos 7 - - --- !query 371 -SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 371 schema -struct<> --- !query 371 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, timestamp]; line 1 pos 7 - - --- !query 372 -SELECT coalesce(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 372 schema -struct<> --- !query 372 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [bigint, date]; line 1 pos 7 - - --- !query 373 -SELECT coalesce(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 373 schema -struct --- !query 373 output -1.0 - - --- !query 374 -SELECT coalesce(cast(1 as float), cast(2 as smallint)) FROM t --- !query 374 schema -struct --- !query 374 output -1.0 - - --- !query 375 -SELECT coalesce(cast(1 as float), cast(2 as int)) FROM t --- !query 375 schema -struct --- !query 375 output -1.0 - - --- !query 376 -SELECT coalesce(cast(1 as float), cast(2 as bigint)) FROM t --- !query 376 schema -struct --- !query 376 output -1.0 - - --- !query 377 -SELECT coalesce(cast(1 as float), cast(2 as float)) FROM t --- !query 377 schema -struct --- !query 377 output -1.0 - - --- !query 378 -SELECT coalesce(cast(1 as float), cast(2 as double)) FROM t --- !query 378 schema -struct --- !query 378 output -1.0 - - --- !query 379 -SELECT coalesce(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 379 schema -struct --- !query 379 output -1.0 - - --- !query 380 -SELECT coalesce(cast(1 as float), cast(2 as string)) FROM t --- !query 380 schema -struct --- !query 380 output -1.0 - - --- !query 381 -SELECT coalesce(cast(1 as float), cast('2' as binary)) FROM t --- !query 381 schema -struct<> --- !query 381 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, binary]; line 1 pos 7 - - --- !query 382 -SELECT coalesce(cast(1 as float), cast(2 as boolean)) FROM t --- !query 382 schema -struct<> --- !query 382 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, boolean]; line 1 pos 7 - - --- !query 383 -SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 383 schema -struct<> --- !query 383 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, timestamp]; line 1 pos 7 - - --- !query 384 -SELECT coalesce(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 384 schema -struct<> --- !query 384 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [float, date]; line 1 pos 7 - - --- !query 385 -SELECT coalesce(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 385 schema -struct --- !query 385 output -1.0 - - --- !query 386 -SELECT coalesce(cast(1 as double), cast(2 as smallint)) FROM t --- !query 386 schema -struct --- !query 386 output -1.0 - - --- !query 387 -SELECT coalesce(cast(1 as double), cast(2 as int)) FROM t --- !query 387 schema -struct --- !query 387 output -1.0 - - --- !query 388 -SELECT coalesce(cast(1 as double), cast(2 as bigint)) FROM t --- !query 388 schema -struct --- !query 388 output -1.0 - - --- !query 389 -SELECT coalesce(cast(1 as double), cast(2 as float)) FROM t --- !query 389 schema -struct --- !query 389 output -1.0 - - --- !query 390 -SELECT coalesce(cast(1 as double), cast(2 as double)) FROM t --- !query 390 schema -struct --- !query 390 output -1.0 - - --- !query 391 -SELECT coalesce(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 391 schema -struct --- !query 391 output -1.0 - - --- !query 392 -SELECT coalesce(cast(1 as double), cast(2 as string)) FROM t --- !query 392 schema -struct --- !query 392 output -1.0 - - --- !query 393 -SELECT coalesce(cast(1 as double), cast('2' as binary)) FROM t --- !query 393 schema -struct<> --- !query 393 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, binary]; line 1 pos 7 - - --- !query 394 -SELECT coalesce(cast(1 as double), cast(2 as boolean)) FROM t --- !query 394 schema -struct<> --- !query 394 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, boolean]; line 1 pos 7 - - --- !query 395 -SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 395 schema -struct<> --- !query 395 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, timestamp]; line 1 pos 7 - - --- !query 396 -SELECT coalesce(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 396 schema -struct<> --- !query 396 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [double, date]; line 1 pos 7 - - --- !query 397 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 397 schema -struct --- !query 397 output -1 - - --- !query 398 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 398 schema -struct --- !query 398 output -1 - - --- !query 399 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 399 schema -struct --- !query 399 output -1 - - --- !query 400 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 400 schema -struct --- !query 400 output -1 - - --- !query 401 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 401 schema -struct --- !query 401 output -1.0 - - --- !query 402 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 402 schema -struct --- !query 402 output -1.0 - - --- !query 403 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 403 schema -struct --- !query 403 output -1 - - --- !query 404 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 404 schema -struct --- !query 404 output -1 - - --- !query 405 -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 405 schema -struct<> --- !query 405 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), binary]; line 1 pos 7 - - --- !query 406 -SELECT coalesce(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 406 schema -struct<> --- !query 406 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), boolean]; line 1 pos 7 - - --- !query 407 -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 407 schema -struct<> --- !query 407 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), timestamp]; line 1 pos 7 - - --- !query 408 -SELECT coalesce(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 408 schema -struct<> --- !query 408 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [decimal(10,0), date]; line 1 pos 7 - - --- !query 409 -SELECT coalesce(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 409 schema -struct --- !query 409 output -1 - - --- !query 410 -SELECT coalesce(cast(1 as string), cast(2 as smallint)) FROM t --- !query 410 schema -struct --- !query 410 output -1 - - --- !query 411 -SELECT coalesce(cast(1 as string), cast(2 as int)) FROM t --- !query 411 schema -struct --- !query 411 output -1 - - --- !query 412 -SELECT coalesce(cast(1 as string), cast(2 as bigint)) FROM t --- !query 412 schema -struct --- !query 412 output -1 - - --- !query 413 -SELECT coalesce(cast(1 as string), cast(2 as float)) FROM t --- !query 413 schema -struct --- !query 413 output -1 - - --- !query 414 -SELECT coalesce(cast(1 as string), cast(2 as double)) FROM t --- !query 414 schema -struct --- !query 414 output -1 - - --- !query 415 -SELECT coalesce(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 415 schema -struct --- !query 415 output -1 - - --- !query 416 -SELECT coalesce(cast(1 as string), cast(2 as string)) FROM t --- !query 416 schema -struct --- !query 416 output -1 - - --- !query 417 -SELECT coalesce(cast(1 as string), cast('2' as binary)) FROM t --- !query 417 schema -struct<> --- !query 417 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, binary]; line 1 pos 7 - - --- !query 418 -SELECT coalesce(cast(1 as string), cast(2 as boolean)) FROM t --- !query 418 schema -struct<> --- !query 418 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [string, boolean]; line 1 pos 7 - - --- !query 419 -SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 419 schema -struct --- !query 419 output -1 - - --- !query 420 -SELECT coalesce(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 420 schema -struct --- !query 420 output -1 - - --- !query 421 -SELECT coalesce(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 421 schema -struct<> --- !query 421 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, tinyint]; line 1 pos 7 - - --- !query 422 -SELECT coalesce(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 422 schema -struct<> --- !query 422 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, smallint]; line 1 pos 7 - - --- !query 423 -SELECT coalesce(cast('1' as binary), cast(2 as int)) FROM t --- !query 423 schema -struct<> --- !query 423 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, int]; line 1 pos 7 - - --- !query 424 -SELECT coalesce(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 424 schema -struct<> --- !query 424 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, bigint]; line 1 pos 7 - - --- !query 425 -SELECT coalesce(cast('1' as binary), cast(2 as float)) FROM t --- !query 425 schema -struct<> --- !query 425 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, float]; line 1 pos 7 - - --- !query 426 -SELECT coalesce(cast('1' as binary), cast(2 as double)) FROM t --- !query 426 schema -struct<> --- !query 426 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, double]; line 1 pos 7 - - --- !query 427 -SELECT coalesce(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 427 schema -struct<> --- !query 427 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, decimal(10,0)]; line 1 pos 7 - - --- !query 428 -SELECT coalesce(cast('1' as binary), cast(2 as string)) FROM t --- !query 428 schema -struct<> --- !query 428 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, string]; line 1 pos 7 - - --- !query 429 -SELECT coalesce(cast('1' as binary), cast('2' as binary)) FROM t --- !query 429 schema -struct --- !query 429 output -1 - - --- !query 430 -SELECT coalesce(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 430 schema -struct<> --- !query 430 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, boolean]; line 1 pos 7 - - --- !query 431 -SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 431 schema -struct<> --- !query 431 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, timestamp]; line 1 pos 7 - - --- !query 432 -SELECT coalesce(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 432 schema -struct<> --- !query 432 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [binary, date]; line 1 pos 7 - - --- !query 433 -SELECT coalesce(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 433 schema -struct<> --- !query 433 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, tinyint]; line 1 pos 7 - - --- !query 434 -SELECT coalesce(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 434 schema -struct<> --- !query 434 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, smallint]; line 1 pos 7 - - --- !query 435 -SELECT coalesce(cast(1 as boolean), cast(2 as int)) FROM t --- !query 435 schema -struct<> --- !query 435 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, int]; line 1 pos 7 - - --- !query 436 -SELECT coalesce(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 436 schema -struct<> --- !query 436 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, bigint]; line 1 pos 7 - - --- !query 437 -SELECT coalesce(cast(1 as boolean), cast(2 as float)) FROM t --- !query 437 schema -struct<> --- !query 437 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, float]; line 1 pos 7 - - --- !query 438 -SELECT coalesce(cast(1 as boolean), cast(2 as double)) FROM t --- !query 438 schema -struct<> --- !query 438 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, double]; line 1 pos 7 - - --- !query 439 -SELECT coalesce(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 439 schema -struct<> --- !query 439 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, decimal(10,0)]; line 1 pos 7 - - --- !query 440 -SELECT coalesce(cast(1 as boolean), cast(2 as string)) FROM t --- !query 440 schema -struct<> --- !query 440 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, string]; line 1 pos 7 - - --- !query 441 -SELECT coalesce(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 441 schema -struct<> --- !query 441 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, binary]; line 1 pos 7 - - --- !query 442 -SELECT coalesce(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 442 schema -struct --- !query 442 output -true - - --- !query 443 -SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 443 schema -struct<> --- !query 443 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, timestamp]; line 1 pos 7 - - --- !query 444 -SELECT coalesce(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 444 schema -struct<> --- !query 444 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [boolean, date]; line 1 pos 7 - - --- !query 445 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 445 schema -struct<> --- !query 445 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, tinyint]; line 1 pos 7 - - --- !query 446 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 446 schema -struct<> --- !query 446 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, smallint]; line 1 pos 7 - - --- !query 447 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 447 schema -struct<> --- !query 447 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, int]; line 1 pos 7 - - --- !query 448 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 448 schema -struct<> --- !query 448 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, bigint]; line 1 pos 7 - - --- !query 449 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 449 schema -struct<> --- !query 449 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, float]; line 1 pos 7 - - --- !query 450 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 450 schema -struct<> --- !query 450 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, double]; line 1 pos 7 - - --- !query 451 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 451 schema -struct<> --- !query 451 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, decimal(10,0)]; line 1 pos 7 - - --- !query 452 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 452 schema -struct --- !query 452 output -2017-12-11 09:30:00 - - --- !query 453 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 453 schema -struct<> --- !query 453 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, binary]; line 1 pos 7 - - --- !query 454 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 454 schema -struct<> --- !query 454 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [timestamp, boolean]; line 1 pos 7 - - --- !query 455 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 455 schema -struct --- !query 455 output -2017-12-11 09:30:00 - - --- !query 456 -SELECT coalesce(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 456 schema -struct --- !query 456 output -2017-12-11 09:30:00 - - --- !query 457 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 457 schema -struct<> --- !query 457 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, tinyint]; line 1 pos 7 - - --- !query 458 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 458 schema -struct<> --- !query 458 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, smallint]; line 1 pos 7 - - --- !query 459 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 459 schema -struct<> --- !query 459 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, int]; line 1 pos 7 - - --- !query 460 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 460 schema -struct<> --- !query 460 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, bigint]; line 1 pos 7 - - --- !query 461 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 461 schema -struct<> --- !query 461 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, float]; line 1 pos 7 - - --- !query 462 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 462 schema -struct<> --- !query 462 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, double]; line 1 pos 7 - - --- !query 463 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 463 schema -struct<> --- !query 463 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, decimal(10,0)]; line 1 pos 7 - - --- !query 464 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 464 schema -struct --- !query 464 output -2017-12-11 - - --- !query 465 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 465 schema -struct<> --- !query 465 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, binary]; line 1 pos 7 - - --- !query 466 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 466 schema -struct<> --- !query 466 output -org.apache.spark.sql.AnalysisException -cannot resolve 'coalesce(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: input to function coalesce should all be the same type, but it's [date, boolean]; line 1 pos 7 - - --- !query 467 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 467 schema -struct --- !query 467 output -2017-12-11 00:00:00 - - --- !query 468 -SELECT coalesce(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 468 schema -struct --- !query 468 output -2017-12-11 - - --- !query 469 -SELECT greatest(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 469 schema -struct --- !query 469 output -2 - - --- !query 470 -SELECT greatest(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 470 schema -struct --- !query 470 output -2 - - --- !query 471 -SELECT greatest(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 471 schema -struct --- !query 471 output -2 - - --- !query 472 -SELECT greatest(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 472 schema -struct --- !query 472 output -2 - - --- !query 473 -SELECT greatest(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 473 schema -struct --- !query 473 output -2.0 - - --- !query 474 -SELECT greatest(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 474 schema -struct --- !query 474 output -2.0 - - --- !query 475 -SELECT greatest(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 475 schema -struct --- !query 475 output -2 - - --- !query 476 -SELECT greatest(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 476 schema -struct<> --- !query 476 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, string).; line 1 pos 7 - - --- !query 477 -SELECT greatest(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 477 schema -struct<> --- !query 477 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, binary).; line 1 pos 7 - - --- !query 478 -SELECT greatest(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 478 schema -struct<> --- !query 478 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, boolean).; line 1 pos 7 - - --- !query 479 -SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 479 schema -struct<> --- !query 479 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, timestamp).; line 1 pos 7 - - --- !query 480 -SELECT greatest(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 480 schema -struct<> --- !query 480 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(tinyint, date).; line 1 pos 7 - - --- !query 481 -SELECT greatest(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 481 schema -struct --- !query 481 output -2 - - --- !query 482 -SELECT greatest(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 482 schema -struct --- !query 482 output -2 - - --- !query 483 -SELECT greatest(cast(1 as smallint), cast(2 as int)) FROM t --- !query 483 schema -struct --- !query 483 output -2 - - --- !query 484 -SELECT greatest(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 484 schema -struct --- !query 484 output -2 - - --- !query 485 -SELECT greatest(cast(1 as smallint), cast(2 as float)) FROM t --- !query 485 schema -struct --- !query 485 output -2.0 - - --- !query 486 -SELECT greatest(cast(1 as smallint), cast(2 as double)) FROM t --- !query 486 schema -struct --- !query 486 output -2.0 - - --- !query 487 -SELECT greatest(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 487 schema -struct --- !query 487 output -2 - - --- !query 488 -SELECT greatest(cast(1 as smallint), cast(2 as string)) FROM t --- !query 488 schema -struct<> --- !query 488 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, string).; line 1 pos 7 - - --- !query 489 -SELECT greatest(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 489 schema -struct<> --- !query 489 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, binary).; line 1 pos 7 - - --- !query 490 -SELECT greatest(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 490 schema -struct<> --- !query 490 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, boolean).; line 1 pos 7 - - --- !query 491 -SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 491 schema -struct<> --- !query 491 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, timestamp).; line 1 pos 7 - - --- !query 492 -SELECT greatest(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 492 schema -struct<> --- !query 492 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(smallint, date).; line 1 pos 7 - - --- !query 493 -SELECT greatest(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 493 schema -struct --- !query 493 output -2 - - --- !query 494 -SELECT greatest(cast(1 as int), cast(2 as smallint)) FROM t --- !query 494 schema -struct --- !query 494 output -2 - - --- !query 495 -SELECT greatest(cast(1 as int), cast(2 as int)) FROM t --- !query 495 schema -struct --- !query 495 output -2 - - --- !query 496 -SELECT greatest(cast(1 as int), cast(2 as bigint)) FROM t --- !query 496 schema -struct --- !query 496 output -2 - - --- !query 497 -SELECT greatest(cast(1 as int), cast(2 as float)) FROM t --- !query 497 schema -struct --- !query 497 output -2.0 - - --- !query 498 -SELECT greatest(cast(1 as int), cast(2 as double)) FROM t --- !query 498 schema -struct --- !query 498 output -2.0 - - --- !query 499 -SELECT greatest(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 499 schema -struct --- !query 499 output -2 - - --- !query 500 -SELECT greatest(cast(1 as int), cast(2 as string)) FROM t --- !query 500 schema -struct<> --- !query 500 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, string).; line 1 pos 7 - - --- !query 501 -SELECT greatest(cast(1 as int), cast('2' as binary)) FROM t --- !query 501 schema -struct<> --- !query 501 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, binary).; line 1 pos 7 - - --- !query 502 -SELECT greatest(cast(1 as int), cast(2 as boolean)) FROM t --- !query 502 schema -struct<> --- !query 502 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, boolean).; line 1 pos 7 - - --- !query 503 -SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 503 schema -struct<> --- !query 503 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, timestamp).; line 1 pos 7 - - --- !query 504 -SELECT greatest(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 504 schema -struct<> --- !query 504 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(int, date).; line 1 pos 7 - - --- !query 505 -SELECT greatest(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 505 schema -struct --- !query 505 output -2 - - --- !query 506 -SELECT greatest(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 506 schema -struct --- !query 506 output -2 - - --- !query 507 -SELECT greatest(cast(1 as bigint), cast(2 as int)) FROM t --- !query 507 schema -struct --- !query 507 output -2 - - --- !query 508 -SELECT greatest(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 508 schema -struct --- !query 508 output -2 - - --- !query 509 -SELECT greatest(cast(1 as bigint), cast(2 as float)) FROM t --- !query 509 schema -struct --- !query 509 output -2.0 - - --- !query 510 -SELECT greatest(cast(1 as bigint), cast(2 as double)) FROM t --- !query 510 schema -struct --- !query 510 output -2.0 - - --- !query 511 -SELECT greatest(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 511 schema -struct --- !query 511 output -2 - - --- !query 512 -SELECT greatest(cast(1 as bigint), cast(2 as string)) FROM t --- !query 512 schema -struct<> --- !query 512 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, string).; line 1 pos 7 - - --- !query 513 -SELECT greatest(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 513 schema -struct<> --- !query 513 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, binary).; line 1 pos 7 - - --- !query 514 -SELECT greatest(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 514 schema -struct<> --- !query 514 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, boolean).; line 1 pos 7 - - --- !query 515 -SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 515 schema -struct<> --- !query 515 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, timestamp).; line 1 pos 7 - - --- !query 516 -SELECT greatest(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 516 schema -struct<> --- !query 516 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(bigint, date).; line 1 pos 7 - - --- !query 517 -SELECT greatest(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 517 schema -struct --- !query 517 output -2.0 - - --- !query 518 -SELECT greatest(cast(1 as float), cast(2 as smallint)) FROM t --- !query 518 schema -struct --- !query 518 output -2.0 - - --- !query 519 -SELECT greatest(cast(1 as float), cast(2 as int)) FROM t --- !query 519 schema -struct --- !query 519 output -2.0 - - --- !query 520 -SELECT greatest(cast(1 as float), cast(2 as bigint)) FROM t --- !query 520 schema -struct --- !query 520 output -2.0 - - --- !query 521 -SELECT greatest(cast(1 as float), cast(2 as float)) FROM t --- !query 521 schema -struct --- !query 521 output -2.0 - - --- !query 522 -SELECT greatest(cast(1 as float), cast(2 as double)) FROM t --- !query 522 schema -struct --- !query 522 output -2.0 - - --- !query 523 -SELECT greatest(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 523 schema -struct --- !query 523 output -2.0 - - --- !query 524 -SELECT greatest(cast(1 as float), cast(2 as string)) FROM t --- !query 524 schema -struct<> --- !query 524 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, string).; line 1 pos 7 - - --- !query 525 -SELECT greatest(cast(1 as float), cast('2' as binary)) FROM t --- !query 525 schema -struct<> --- !query 525 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, binary).; line 1 pos 7 - - --- !query 526 -SELECT greatest(cast(1 as float), cast(2 as boolean)) FROM t --- !query 526 schema -struct<> --- !query 526 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, boolean).; line 1 pos 7 - - --- !query 527 -SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 527 schema -struct<> --- !query 527 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, timestamp).; line 1 pos 7 - - --- !query 528 -SELECT greatest(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 528 schema -struct<> --- !query 528 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(float, date).; line 1 pos 7 - - --- !query 529 -SELECT greatest(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 529 schema -struct --- !query 529 output -2.0 - - --- !query 530 -SELECT greatest(cast(1 as double), cast(2 as smallint)) FROM t --- !query 530 schema -struct --- !query 530 output -2.0 - - --- !query 531 -SELECT greatest(cast(1 as double), cast(2 as int)) FROM t --- !query 531 schema -struct --- !query 531 output -2.0 - - --- !query 532 -SELECT greatest(cast(1 as double), cast(2 as bigint)) FROM t --- !query 532 schema -struct --- !query 532 output -2.0 - - --- !query 533 -SELECT greatest(cast(1 as double), cast(2 as float)) FROM t --- !query 533 schema -struct --- !query 533 output -2.0 - - --- !query 534 -SELECT greatest(cast(1 as double), cast(2 as double)) FROM t --- !query 534 schema -struct --- !query 534 output -2.0 - - --- !query 535 -SELECT greatest(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 535 schema -struct --- !query 535 output -2.0 - - --- !query 536 -SELECT greatest(cast(1 as double), cast(2 as string)) FROM t --- !query 536 schema -struct<> --- !query 536 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, string).; line 1 pos 7 - - --- !query 537 -SELECT greatest(cast(1 as double), cast('2' as binary)) FROM t --- !query 537 schema -struct<> --- !query 537 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, binary).; line 1 pos 7 - - --- !query 538 -SELECT greatest(cast(1 as double), cast(2 as boolean)) FROM t --- !query 538 schema -struct<> --- !query 538 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, boolean).; line 1 pos 7 - - --- !query 539 -SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 539 schema -struct<> --- !query 539 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, timestamp).; line 1 pos 7 - - --- !query 540 -SELECT greatest(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 540 schema -struct<> --- !query 540 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(double, date).; line 1 pos 7 - - --- !query 541 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 541 schema -struct --- !query 541 output -2 - - --- !query 542 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 542 schema -struct --- !query 542 output -2 - - --- !query 543 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 543 schema -struct --- !query 543 output -2 - - --- !query 544 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 544 schema -struct --- !query 544 output -2 - - --- !query 545 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 545 schema -struct --- !query 545 output -2.0 - - --- !query 546 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 546 schema -struct --- !query 546 output -2.0 - - --- !query 547 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 547 schema -struct --- !query 547 output -2 - - --- !query 548 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 548 schema -struct<> --- !query 548 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), string).; line 1 pos 7 - - --- !query 549 -SELECT greatest(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 549 schema -struct<> --- !query 549 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), binary).; line 1 pos 7 - - --- !query 550 -SELECT greatest(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 550 schema -struct<> --- !query 550 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), boolean).; line 1 pos 7 - - --- !query 551 -SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 551 schema -struct<> --- !query 551 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), timestamp).; line 1 pos 7 - - --- !query 552 -SELECT greatest(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 552 schema -struct<> --- !query 552 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(decimal(10,0), date).; line 1 pos 7 - - --- !query 553 -SELECT greatest(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 553 schema -struct<> --- !query 553 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, tinyint).; line 1 pos 7 - - --- !query 554 -SELECT greatest(cast(1 as string), cast(2 as smallint)) FROM t --- !query 554 schema -struct<> --- !query 554 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, smallint).; line 1 pos 7 - - --- !query 555 -SELECT greatest(cast(1 as string), cast(2 as int)) FROM t --- !query 555 schema -struct<> --- !query 555 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, int).; line 1 pos 7 - - --- !query 556 -SELECT greatest(cast(1 as string), cast(2 as bigint)) FROM t --- !query 556 schema -struct<> --- !query 556 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, bigint).; line 1 pos 7 - - --- !query 557 -SELECT greatest(cast(1 as string), cast(2 as float)) FROM t --- !query 557 schema -struct<> --- !query 557 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, float).; line 1 pos 7 - - --- !query 558 -SELECT greatest(cast(1 as string), cast(2 as double)) FROM t --- !query 558 schema -struct<> --- !query 558 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, double).; line 1 pos 7 - - --- !query 559 -SELECT greatest(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 559 schema -struct<> --- !query 559 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, decimal(10,0)).; line 1 pos 7 - - --- !query 560 -SELECT greatest(cast(1 as string), cast(2 as string)) FROM t --- !query 560 schema -struct --- !query 560 output -2 - - --- !query 561 -SELECT greatest(cast(1 as string), cast('2' as binary)) FROM t --- !query 561 schema -struct<> --- !query 561 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, binary).; line 1 pos 7 - - --- !query 562 -SELECT greatest(cast(1 as string), cast(2 as boolean)) FROM t --- !query 562 schema -struct<> --- !query 562 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, boolean).; line 1 pos 7 - - --- !query 563 -SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 563 schema -struct<> --- !query 563 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, timestamp).; line 1 pos 7 - - --- !query 564 -SELECT greatest(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 564 schema -struct<> --- !query 564 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(string, date).; line 1 pos 7 - - --- !query 565 -SELECT greatest(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 565 schema -struct<> --- !query 565 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, tinyint).; line 1 pos 7 - - --- !query 566 -SELECT greatest(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 566 schema -struct<> --- !query 566 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, smallint).; line 1 pos 7 - - --- !query 567 -SELECT greatest(cast('1' as binary), cast(2 as int)) FROM t --- !query 567 schema -struct<> --- !query 567 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, int).; line 1 pos 7 - - --- !query 568 -SELECT greatest(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 568 schema -struct<> --- !query 568 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, bigint).; line 1 pos 7 - - --- !query 569 -SELECT greatest(cast('1' as binary), cast(2 as float)) FROM t --- !query 569 schema -struct<> --- !query 569 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, float).; line 1 pos 7 - - --- !query 570 -SELECT greatest(cast('1' as binary), cast(2 as double)) FROM t --- !query 570 schema -struct<> --- !query 570 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, double).; line 1 pos 7 - - --- !query 571 -SELECT greatest(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 571 schema -struct<> --- !query 571 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, decimal(10,0)).; line 1 pos 7 - - --- !query 572 -SELECT greatest(cast('1' as binary), cast(2 as string)) FROM t --- !query 572 schema -struct<> --- !query 572 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, string).; line 1 pos 7 - - --- !query 573 -SELECT greatest(cast('1' as binary), cast('2' as binary)) FROM t --- !query 573 schema -struct --- !query 573 output -2 - - --- !query 574 -SELECT greatest(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 574 schema -struct<> --- !query 574 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, boolean).; line 1 pos 7 - - --- !query 575 -SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 575 schema -struct<> --- !query 575 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, timestamp).; line 1 pos 7 - - --- !query 576 -SELECT greatest(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 576 schema -struct<> --- !query 576 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(binary, date).; line 1 pos 7 - - --- !query 577 -SELECT greatest(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 577 schema -struct<> --- !query 577 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, tinyint).; line 1 pos 7 - - --- !query 578 -SELECT greatest(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 578 schema -struct<> --- !query 578 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, smallint).; line 1 pos 7 - - --- !query 579 -SELECT greatest(cast(1 as boolean), cast(2 as int)) FROM t --- !query 579 schema -struct<> --- !query 579 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, int).; line 1 pos 7 - - --- !query 580 -SELECT greatest(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 580 schema -struct<> --- !query 580 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, bigint).; line 1 pos 7 - - --- !query 581 -SELECT greatest(cast(1 as boolean), cast(2 as float)) FROM t --- !query 581 schema -struct<> --- !query 581 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, float).; line 1 pos 7 - - --- !query 582 -SELECT greatest(cast(1 as boolean), cast(2 as double)) FROM t --- !query 582 schema -struct<> --- !query 582 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, double).; line 1 pos 7 - - --- !query 583 -SELECT greatest(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 583 schema -struct<> --- !query 583 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, decimal(10,0)).; line 1 pos 7 - - --- !query 584 -SELECT greatest(cast(1 as boolean), cast(2 as string)) FROM t --- !query 584 schema -struct<> --- !query 584 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, string).; line 1 pos 7 - - --- !query 585 -SELECT greatest(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 585 schema -struct<> --- !query 585 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, binary).; line 1 pos 7 - - --- !query 586 -SELECT greatest(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 586 schema -struct --- !query 586 output -true - - --- !query 587 -SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 587 schema -struct<> --- !query 587 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, timestamp).; line 1 pos 7 - - --- !query 588 -SELECT greatest(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 588 schema -struct<> --- !query 588 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(boolean, date).; line 1 pos 7 - - --- !query 589 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 589 schema -struct<> --- !query 589 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, tinyint).; line 1 pos 7 - - --- !query 590 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 590 schema -struct<> --- !query 590 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, smallint).; line 1 pos 7 - - --- !query 591 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 591 schema -struct<> --- !query 591 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, int).; line 1 pos 7 - - --- !query 592 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 592 schema -struct<> --- !query 592 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, bigint).; line 1 pos 7 - - --- !query 593 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 593 schema -struct<> --- !query 593 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, float).; line 1 pos 7 - - --- !query 594 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 594 schema -struct<> --- !query 594 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, double).; line 1 pos 7 - - --- !query 595 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 595 schema -struct<> --- !query 595 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, decimal(10,0)).; line 1 pos 7 - - --- !query 596 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 596 schema -struct<> --- !query 596 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, string).; line 1 pos 7 - - --- !query 597 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 597 schema -struct<> --- !query 597 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, binary).; line 1 pos 7 - - --- !query 598 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 598 schema -struct<> --- !query 598 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(timestamp, boolean).; line 1 pos 7 - - --- !query 599 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 599 schema -struct --- !query 599 output -2017-12-12 09:30:00 - - --- !query 600 -SELECT greatest(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 600 schema -struct --- !query 600 output -2017-12-12 00:00:00 - - --- !query 601 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 601 schema -struct<> --- !query 601 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, tinyint).; line 1 pos 7 - - --- !query 602 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 602 schema -struct<> --- !query 602 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, smallint).; line 1 pos 7 - - --- !query 603 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 603 schema -struct<> --- !query 603 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, int).; line 1 pos 7 - - --- !query 604 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 604 schema -struct<> --- !query 604 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, bigint).; line 1 pos 7 - - --- !query 605 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 605 schema -struct<> --- !query 605 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, float).; line 1 pos 7 - - --- !query 606 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 606 schema -struct<> --- !query 606 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, double).; line 1 pos 7 - - --- !query 607 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 607 schema -struct<> --- !query 607 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, decimal(10,0)).; line 1 pos 7 - - --- !query 608 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 608 schema -struct<> --- !query 608 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, string).; line 1 pos 7 - - --- !query 609 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 609 schema -struct<> --- !query 609 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, binary).; line 1 pos 7 - - --- !query 610 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 610 schema -struct<> --- !query 610 output -org.apache.spark.sql.AnalysisException -cannot resolve 'greatest(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got GREATEST(date, boolean).; line 1 pos 7 - - --- !query 611 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 611 schema -struct --- !query 611 output -2017-12-12 09:30:00 - - --- !query 612 -SELECT greatest(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 612 schema -struct --- !query 612 output -2017-12-12 - - --- !query 613 -SELECT least(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 613 schema -struct --- !query 613 output -1 - - --- !query 614 -SELECT least(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 614 schema -struct --- !query 614 output -1 - - --- !query 615 -SELECT least(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 615 schema -struct --- !query 615 output -1 - - --- !query 616 -SELECT least(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 616 schema -struct --- !query 616 output -1 - - --- !query 617 -SELECT least(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 617 schema -struct --- !query 617 output -1.0 - - --- !query 618 -SELECT least(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 618 schema -struct --- !query 618 output -1.0 - - --- !query 619 -SELECT least(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 619 schema -struct --- !query 619 output -1 - - --- !query 620 -SELECT least(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 620 schema -struct<> --- !query 620 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, string).; line 1 pos 7 - - --- !query 621 -SELECT least(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 621 schema -struct<> --- !query 621 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, binary).; line 1 pos 7 - - --- !query 622 -SELECT least(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 622 schema -struct<> --- !query 622 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, boolean).; line 1 pos 7 - - --- !query 623 -SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 623 schema -struct<> --- !query 623 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, timestamp).; line 1 pos 7 - - --- !query 624 -SELECT least(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 624 schema -struct<> --- !query 624 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS TINYINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(tinyint, date).; line 1 pos 7 - - --- !query 625 -SELECT least(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 625 schema -struct --- !query 625 output -1 - - --- !query 626 -SELECT least(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 626 schema -struct --- !query 626 output -1 - - --- !query 627 -SELECT least(cast(1 as smallint), cast(2 as int)) FROM t --- !query 627 schema -struct --- !query 627 output -1 - - --- !query 628 -SELECT least(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 628 schema -struct --- !query 628 output -1 - - --- !query 629 -SELECT least(cast(1 as smallint), cast(2 as float)) FROM t --- !query 629 schema -struct --- !query 629 output -1.0 - - --- !query 630 -SELECT least(cast(1 as smallint), cast(2 as double)) FROM t --- !query 630 schema -struct --- !query 630 output -1.0 - - --- !query 631 -SELECT least(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 631 schema -struct --- !query 631 output -1 - - --- !query 632 -SELECT least(cast(1 as smallint), cast(2 as string)) FROM t --- !query 632 schema -struct<> --- !query 632 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, string).; line 1 pos 7 - - --- !query 633 -SELECT least(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 633 schema -struct<> --- !query 633 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, binary).; line 1 pos 7 - - --- !query 634 -SELECT least(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 634 schema -struct<> --- !query 634 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, boolean).; line 1 pos 7 - - --- !query 635 -SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 635 schema -struct<> --- !query 635 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, timestamp).; line 1 pos 7 - - --- !query 636 -SELECT least(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 636 schema -struct<> --- !query 636 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS SMALLINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(smallint, date).; line 1 pos 7 - - --- !query 637 -SELECT least(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 637 schema -struct --- !query 637 output -1 - - --- !query 638 -SELECT least(cast(1 as int), cast(2 as smallint)) FROM t --- !query 638 schema -struct --- !query 638 output -1 - - --- !query 639 -SELECT least(cast(1 as int), cast(2 as int)) FROM t --- !query 639 schema -struct --- !query 639 output -1 - - --- !query 640 -SELECT least(cast(1 as int), cast(2 as bigint)) FROM t --- !query 640 schema -struct --- !query 640 output -1 - - --- !query 641 -SELECT least(cast(1 as int), cast(2 as float)) FROM t --- !query 641 schema -struct --- !query 641 output -1.0 - - --- !query 642 -SELECT least(cast(1 as int), cast(2 as double)) FROM t --- !query 642 schema -struct --- !query 642 output -1.0 - - --- !query 643 -SELECT least(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 643 schema -struct --- !query 643 output -1 - - --- !query 644 -SELECT least(cast(1 as int), cast(2 as string)) FROM t --- !query 644 schema -struct<> --- !query 644 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, string).; line 1 pos 7 - - --- !query 645 -SELECT least(cast(1 as int), cast('2' as binary)) FROM t --- !query 645 schema -struct<> --- !query 645 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, binary).; line 1 pos 7 - - --- !query 646 -SELECT least(cast(1 as int), cast(2 as boolean)) FROM t --- !query 646 schema -struct<> --- !query 646 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, boolean).; line 1 pos 7 - - --- !query 647 -SELECT least(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 647 schema -struct<> --- !query 647 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, timestamp).; line 1 pos 7 - - --- !query 648 -SELECT least(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 648 schema -struct<> --- !query 648 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS INT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(int, date).; line 1 pos 7 - - --- !query 649 -SELECT least(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 649 schema -struct --- !query 649 output -1 - - --- !query 650 -SELECT least(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 650 schema -struct --- !query 650 output -1 - - --- !query 651 -SELECT least(cast(1 as bigint), cast(2 as int)) FROM t --- !query 651 schema -struct --- !query 651 output -1 - - --- !query 652 -SELECT least(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 652 schema -struct --- !query 652 output -1 - - --- !query 653 -SELECT least(cast(1 as bigint), cast(2 as float)) FROM t --- !query 653 schema -struct --- !query 653 output -1.0 - - --- !query 654 -SELECT least(cast(1 as bigint), cast(2 as double)) FROM t --- !query 654 schema -struct --- !query 654 output -1.0 - - --- !query 655 -SELECT least(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 655 schema -struct --- !query 655 output -1 - - --- !query 656 -SELECT least(cast(1 as bigint), cast(2 as string)) FROM t --- !query 656 schema -struct<> --- !query 656 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, string).; line 1 pos 7 - - --- !query 657 -SELECT least(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 657 schema -struct<> --- !query 657 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, binary).; line 1 pos 7 - - --- !query 658 -SELECT least(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 658 schema -struct<> --- !query 658 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, boolean).; line 1 pos 7 - - --- !query 659 -SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 659 schema -struct<> --- !query 659 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, timestamp).; line 1 pos 7 - - --- !query 660 -SELECT least(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 660 schema -struct<> --- !query 660 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BIGINT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(bigint, date).; line 1 pos 7 - - --- !query 661 -SELECT least(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 661 schema -struct --- !query 661 output -1.0 - - --- !query 662 -SELECT least(cast(1 as float), cast(2 as smallint)) FROM t --- !query 662 schema -struct --- !query 662 output -1.0 - - --- !query 663 -SELECT least(cast(1 as float), cast(2 as int)) FROM t --- !query 663 schema -struct --- !query 663 output -1.0 - - --- !query 664 -SELECT least(cast(1 as float), cast(2 as bigint)) FROM t --- !query 664 schema -struct --- !query 664 output -1.0 - - --- !query 665 -SELECT least(cast(1 as float), cast(2 as float)) FROM t --- !query 665 schema -struct --- !query 665 output -1.0 - - --- !query 666 -SELECT least(cast(1 as float), cast(2 as double)) FROM t --- !query 666 schema -struct --- !query 666 output -1.0 - - --- !query 667 -SELECT least(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 667 schema -struct --- !query 667 output -1.0 - - --- !query 668 -SELECT least(cast(1 as float), cast(2 as string)) FROM t --- !query 668 schema -struct<> --- !query 668 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, string).; line 1 pos 7 - - --- !query 669 -SELECT least(cast(1 as float), cast('2' as binary)) FROM t --- !query 669 schema -struct<> --- !query 669 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, binary).; line 1 pos 7 - - --- !query 670 -SELECT least(cast(1 as float), cast(2 as boolean)) FROM t --- !query 670 schema -struct<> --- !query 670 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, boolean).; line 1 pos 7 - - --- !query 671 -SELECT least(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 671 schema -struct<> --- !query 671 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, timestamp).; line 1 pos 7 - - --- !query 672 -SELECT least(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 672 schema -struct<> --- !query 672 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(float, date).; line 1 pos 7 - - --- !query 673 -SELECT least(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 673 schema -struct --- !query 673 output -1.0 - - --- !query 674 -SELECT least(cast(1 as double), cast(2 as smallint)) FROM t --- !query 674 schema -struct --- !query 674 output -1.0 - - --- !query 675 -SELECT least(cast(1 as double), cast(2 as int)) FROM t --- !query 675 schema -struct --- !query 675 output -1.0 - - --- !query 676 -SELECT least(cast(1 as double), cast(2 as bigint)) FROM t --- !query 676 schema -struct --- !query 676 output -1.0 - - --- !query 677 -SELECT least(cast(1 as double), cast(2 as float)) FROM t --- !query 677 schema -struct --- !query 677 output -1.0 - - --- !query 678 -SELECT least(cast(1 as double), cast(2 as double)) FROM t --- !query 678 schema -struct --- !query 678 output -1.0 - - --- !query 679 -SELECT least(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 679 schema -struct --- !query 679 output -1.0 - - --- !query 680 -SELECT least(cast(1 as double), cast(2 as string)) FROM t --- !query 680 schema -struct<> --- !query 680 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, string).; line 1 pos 7 - - --- !query 681 -SELECT least(cast(1 as double), cast('2' as binary)) FROM t --- !query 681 schema -struct<> --- !query 681 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, binary).; line 1 pos 7 - - --- !query 682 -SELECT least(cast(1 as double), cast(2 as boolean)) FROM t --- !query 682 schema -struct<> --- !query 682 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, boolean).; line 1 pos 7 - - --- !query 683 -SELECT least(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 683 schema -struct<> --- !query 683 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, timestamp).; line 1 pos 7 - - --- !query 684 -SELECT least(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 684 schema -struct<> --- !query 684 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(double, date).; line 1 pos 7 - - --- !query 685 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 685 schema -struct --- !query 685 output -1 - - --- !query 686 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 686 schema -struct --- !query 686 output -1 - - --- !query 687 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 687 schema -struct --- !query 687 output -1 - - --- !query 688 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 688 schema -struct --- !query 688 output -1 - - --- !query 689 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 689 schema -struct --- !query 689 output -1.0 - - --- !query 690 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 690 schema -struct --- !query 690 output -1.0 - - --- !query 691 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 691 schema -struct --- !query 691 output -1 - - --- !query 692 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 692 schema -struct<> --- !query 692 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), string).; line 1 pos 7 - - --- !query 693 -SELECT least(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 693 schema -struct<> --- !query 693 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), binary).; line 1 pos 7 - - --- !query 694 -SELECT least(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 694 schema -struct<> --- !query 694 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), boolean).; line 1 pos 7 - - --- !query 695 -SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 695 schema -struct<> --- !query 695 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), timestamp).; line 1 pos 7 - - --- !query 696 -SELECT least(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 696 schema -struct<> --- !query 696 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS DECIMAL(10,0)), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(decimal(10,0), date).; line 1 pos 7 - - --- !query 697 -SELECT least(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 697 schema -struct<> --- !query 697 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, tinyint).; line 1 pos 7 - - --- !query 698 -SELECT least(cast(1 as string), cast(2 as smallint)) FROM t --- !query 698 schema -struct<> --- !query 698 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, smallint).; line 1 pos 7 - - --- !query 699 -SELECT least(cast(1 as string), cast(2 as int)) FROM t --- !query 699 schema -struct<> --- !query 699 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, int).; line 1 pos 7 - - --- !query 700 -SELECT least(cast(1 as string), cast(2 as bigint)) FROM t --- !query 700 schema -struct<> --- !query 700 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, bigint).; line 1 pos 7 - - --- !query 701 -SELECT least(cast(1 as string), cast(2 as float)) FROM t --- !query 701 schema -struct<> --- !query 701 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, float).; line 1 pos 7 - - --- !query 702 -SELECT least(cast(1 as string), cast(2 as double)) FROM t --- !query 702 schema -struct<> --- !query 702 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, double).; line 1 pos 7 - - --- !query 703 -SELECT least(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 703 schema -struct<> --- !query 703 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, decimal(10,0)).; line 1 pos 7 - - --- !query 704 -SELECT least(cast(1 as string), cast(2 as string)) FROM t --- !query 704 schema -struct --- !query 704 output -1 - - --- !query 705 -SELECT least(cast(1 as string), cast('2' as binary)) FROM t --- !query 705 schema -struct<> --- !query 705 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, binary).; line 1 pos 7 - - --- !query 706 -SELECT least(cast(1 as string), cast(2 as boolean)) FROM t --- !query 706 schema -struct<> --- !query 706 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, boolean).; line 1 pos 7 - - --- !query 707 -SELECT least(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 707 schema -struct<> --- !query 707 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, timestamp).; line 1 pos 7 - - --- !query 708 -SELECT least(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 708 schema -struct<> --- !query 708 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS STRING), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(string, date).; line 1 pos 7 - - --- !query 709 -SELECT least(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 709 schema -struct<> --- !query 709 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, tinyint).; line 1 pos 7 - - --- !query 710 -SELECT least(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 710 schema -struct<> --- !query 710 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, smallint).; line 1 pos 7 - - --- !query 711 -SELECT least(cast('1' as binary), cast(2 as int)) FROM t --- !query 711 schema -struct<> --- !query 711 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, int).; line 1 pos 7 - - --- !query 712 -SELECT least(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 712 schema -struct<> --- !query 712 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, bigint).; line 1 pos 7 - - --- !query 713 -SELECT least(cast('1' as binary), cast(2 as float)) FROM t --- !query 713 schema -struct<> --- !query 713 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, float).; line 1 pos 7 - - --- !query 714 -SELECT least(cast('1' as binary), cast(2 as double)) FROM t --- !query 714 schema -struct<> --- !query 714 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, double).; line 1 pos 7 - - --- !query 715 -SELECT least(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 715 schema -struct<> --- !query 715 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, decimal(10,0)).; line 1 pos 7 - - --- !query 716 -SELECT least(cast('1' as binary), cast(2 as string)) FROM t --- !query 716 schema -struct<> --- !query 716 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, string).; line 1 pos 7 - - --- !query 717 -SELECT least(cast('1' as binary), cast('2' as binary)) FROM t --- !query 717 schema -struct --- !query 717 output -1 - - --- !query 718 -SELECT least(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 718 schema -struct<> --- !query 718 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, boolean).; line 1 pos 7 - - --- !query 719 -SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 719 schema -struct<> --- !query 719 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, timestamp).; line 1 pos 7 - - --- !query 720 -SELECT least(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 720 schema -struct<> --- !query 720 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(binary, date).; line 1 pos 7 - - --- !query 721 -SELECT least(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 721 schema -struct<> --- !query 721 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, tinyint).; line 1 pos 7 - - --- !query 722 -SELECT least(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 722 schema -struct<> --- !query 722 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, smallint).; line 1 pos 7 - - --- !query 723 -SELECT least(cast(1 as boolean), cast(2 as int)) FROM t --- !query 723 schema -struct<> --- !query 723 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, int).; line 1 pos 7 - - --- !query 724 -SELECT least(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 724 schema -struct<> --- !query 724 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, bigint).; line 1 pos 7 - - --- !query 725 -SELECT least(cast(1 as boolean), cast(2 as float)) FROM t --- !query 725 schema -struct<> --- !query 725 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, float).; line 1 pos 7 - - --- !query 726 -SELECT least(cast(1 as boolean), cast(2 as double)) FROM t --- !query 726 schema -struct<> --- !query 726 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, double).; line 1 pos 7 - - --- !query 727 -SELECT least(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 727 schema -struct<> --- !query 727 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, decimal(10,0)).; line 1 pos 7 - - --- !query 728 -SELECT least(cast(1 as boolean), cast(2 as string)) FROM t --- !query 728 schema -struct<> --- !query 728 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, string).; line 1 pos 7 - - --- !query 729 -SELECT least(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 729 schema -struct<> --- !query 729 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, binary).; line 1 pos 7 - - --- !query 730 -SELECT least(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 730 schema -struct --- !query 730 output -true - - --- !query 731 -SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 731 schema -struct<> --- !query 731 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, timestamp).; line 1 pos 7 - - --- !query 732 -SELECT least(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 732 schema -struct<> --- !query 732 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: The expressions should all have the same type, got LEAST(boolean, date).; line 1 pos 7 - - --- !query 733 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 733 schema -struct<> --- !query 733 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, tinyint).; line 1 pos 7 - - --- !query 734 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 734 schema -struct<> --- !query 734 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, smallint).; line 1 pos 7 - - --- !query 735 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 735 schema -struct<> --- !query 735 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, int).; line 1 pos 7 - - --- !query 736 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 736 schema -struct<> --- !query 736 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, bigint).; line 1 pos 7 - - --- !query 737 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 737 schema -struct<> --- !query 737 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, float).; line 1 pos 7 - - --- !query 738 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 738 schema -struct<> --- !query 738 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, double).; line 1 pos 7 - - --- !query 739 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 739 schema -struct<> --- !query 739 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, decimal(10,0)).; line 1 pos 7 - - --- !query 740 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 740 schema -struct<> --- !query 740 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, string).; line 1 pos 7 - - --- !query 741 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 741 schema -struct<> --- !query 741 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, binary).; line 1 pos 7 - - --- !query 742 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 742 schema -struct<> --- !query 742 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(timestamp, boolean).; line 1 pos 7 - - --- !query 743 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 743 schema -struct --- !query 743 output -2017-12-11 09:30:00 - - --- !query 744 -SELECT least(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 744 schema -struct --- !query 744 output -2017-12-11 09:30:00 - - --- !query 745 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 745 schema -struct<> --- !query 745 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS TINYINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, tinyint).; line 1 pos 7 - - --- !query 746 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 746 schema -struct<> --- !query 746 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS SMALLINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, smallint).; line 1 pos 7 - - --- !query 747 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 747 schema -struct<> --- !query 747 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS INT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, int).; line 1 pos 7 - - --- !query 748 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 748 schema -struct<> --- !query 748 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BIGINT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, bigint).; line 1 pos 7 - - --- !query 749 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 749 schema -struct<> --- !query 749 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, float).; line 1 pos 7 - - --- !query 750 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 750 schema -struct<> --- !query 750 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, double).; line 1 pos 7 - - --- !query 751 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 751 schema -struct<> --- !query 751 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DECIMAL(10,0)))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, decimal(10,0)).; line 1 pos 7 - - --- !query 752 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 752 schema -struct<> --- !query 752 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS STRING))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, string).; line 1 pos 7 - - --- !query 753 -SELECT least(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 753 schema -struct<> --- !query 753 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, binary).; line 1 pos 7 - - --- !query 754 -SELECT least(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 754 schema -struct<> --- !query 754 output -org.apache.spark.sql.AnalysisException -cannot resolve 'least(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: The expressions should all have the same type, got LEAST(date, boolean).; line 1 pos 7 - - --- !query 755 -SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 755 schema -struct --- !query 755 output -2017-12-11 00:00:00 - - --- !query 756 -SELECT least(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 756 schema -struct --- !query 756 output -2017-12-11 - - --- !query 757 -SELECT nanvl(cast(1 as tinyint), cast(2 as tinyint)) FROM t --- !query 757 schema -struct --- !query 757 output -1.0 - - --- !query 758 -SELECT nanvl(cast(1 as tinyint), cast(2 as smallint)) FROM t --- !query 758 schema -struct --- !query 758 output -1.0 - - --- !query 759 -SELECT nanvl(cast(1 as tinyint), cast(2 as int)) FROM t --- !query 759 schema -struct --- !query 759 output -1.0 - - --- !query 760 -SELECT nanvl(cast(1 as tinyint), cast(2 as bigint)) FROM t --- !query 760 schema -struct --- !query 760 output -1.0 - - --- !query 761 -SELECT nanvl(cast(1 as tinyint), cast(2 as float)) FROM t --- !query 761 schema -struct --- !query 761 output -1.0 - - --- !query 762 -SELECT nanvl(cast(1 as tinyint), cast(2 as double)) FROM t --- !query 762 schema -struct --- !query 762 output -1.0 - - --- !query 763 -SELECT nanvl(cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t --- !query 763 schema -struct --- !query 763 output -1.0 - - --- !query 764 -SELECT nanvl(cast(1 as tinyint), cast(2 as string)) FROM t --- !query 764 schema -struct --- !query 764 output -1.0 - - --- !query 765 -SELECT nanvl(cast(1 as tinyint), cast('2' as binary)) FROM t --- !query 765 schema -struct<> --- !query 765 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 766 -SELECT nanvl(cast(1 as tinyint), cast(2 as boolean)) FROM t --- !query 766 schema -struct<> --- !query 766 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 767 -SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 767 schema -struct<> --- !query 767 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 768 -SELECT nanvl(cast(1 as tinyint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 768 schema -struct<> --- !query 768 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS TINYINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 769 -SELECT nanvl(cast(1 as smallint), cast(2 as tinyint)) FROM t --- !query 769 schema -struct --- !query 769 output -1.0 - - --- !query 770 -SELECT nanvl(cast(1 as smallint), cast(2 as smallint)) FROM t --- !query 770 schema -struct --- !query 770 output -1.0 - - --- !query 771 -SELECT nanvl(cast(1 as smallint), cast(2 as int)) FROM t --- !query 771 schema -struct --- !query 771 output -1.0 - - --- !query 772 -SELECT nanvl(cast(1 as smallint), cast(2 as bigint)) FROM t --- !query 772 schema -struct --- !query 772 output -1.0 - - --- !query 773 -SELECT nanvl(cast(1 as smallint), cast(2 as float)) FROM t --- !query 773 schema -struct --- !query 773 output -1.0 - - --- !query 774 -SELECT nanvl(cast(1 as smallint), cast(2 as double)) FROM t --- !query 774 schema -struct --- !query 774 output -1.0 - - --- !query 775 -SELECT nanvl(cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t --- !query 775 schema -struct --- !query 775 output -1.0 - - --- !query 776 -SELECT nanvl(cast(1 as smallint), cast(2 as string)) FROM t --- !query 776 schema -struct --- !query 776 output -1.0 - - --- !query 777 -SELECT nanvl(cast(1 as smallint), cast('2' as binary)) FROM t --- !query 777 schema -struct<> --- !query 777 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 778 -SELECT nanvl(cast(1 as smallint), cast(2 as boolean)) FROM t --- !query 778 schema -struct<> --- !query 778 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 779 -SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 779 schema -struct<> --- !query 779 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 780 -SELECT nanvl(cast(1 as smallint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 780 schema -struct<> --- !query 780 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS SMALLINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 781 -SELECT nanvl(cast(1 as int), cast(2 as tinyint)) FROM t --- !query 781 schema -struct --- !query 781 output -1.0 - - --- !query 782 -SELECT nanvl(cast(1 as int), cast(2 as smallint)) FROM t --- !query 782 schema -struct --- !query 782 output -1.0 - - --- !query 783 -SELECT nanvl(cast(1 as int), cast(2 as int)) FROM t --- !query 783 schema -struct --- !query 783 output -1.0 - - --- !query 784 -SELECT nanvl(cast(1 as int), cast(2 as bigint)) FROM t --- !query 784 schema -struct --- !query 784 output -1.0 - - --- !query 785 -SELECT nanvl(cast(1 as int), cast(2 as float)) FROM t --- !query 785 schema -struct --- !query 785 output -1.0 - - --- !query 786 -SELECT nanvl(cast(1 as int), cast(2 as double)) FROM t --- !query 786 schema -struct --- !query 786 output -1.0 - - --- !query 787 -SELECT nanvl(cast(1 as int), cast(2 as decimal(10, 0))) FROM t --- !query 787 schema -struct --- !query 787 output -1.0 - - --- !query 788 -SELECT nanvl(cast(1 as int), cast(2 as string)) FROM t --- !query 788 schema -struct --- !query 788 output -1.0 - - --- !query 789 -SELECT nanvl(cast(1 as int), cast('2' as binary)) FROM t --- !query 789 schema -struct<> --- !query 789 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 790 -SELECT nanvl(cast(1 as int), cast(2 as boolean)) FROM t --- !query 790 schema -struct<> --- !query 790 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 791 -SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 791 schema -struct<> --- !query 791 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 792 -SELECT nanvl(cast(1 as int), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 792 schema -struct<> --- !query 792 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS INT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 793 -SELECT nanvl(cast(1 as bigint), cast(2 as tinyint)) FROM t --- !query 793 schema -struct --- !query 793 output -1.0 - - --- !query 794 -SELECT nanvl(cast(1 as bigint), cast(2 as smallint)) FROM t --- !query 794 schema -struct --- !query 794 output -1.0 - - --- !query 795 -SELECT nanvl(cast(1 as bigint), cast(2 as int)) FROM t --- !query 795 schema -struct --- !query 795 output -1.0 - - --- !query 796 -SELECT nanvl(cast(1 as bigint), cast(2 as bigint)) FROM t --- !query 796 schema -struct --- !query 796 output -1.0 - - --- !query 797 -SELECT nanvl(cast(1 as bigint), cast(2 as float)) FROM t --- !query 797 schema -struct --- !query 797 output -1.0 - - --- !query 798 -SELECT nanvl(cast(1 as bigint), cast(2 as double)) FROM t --- !query 798 schema -struct --- !query 798 output -1.0 - - --- !query 799 -SELECT nanvl(cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t --- !query 799 schema -struct --- !query 799 output -1.0 - - --- !query 800 -SELECT nanvl(cast(1 as bigint), cast(2 as string)) FROM t --- !query 800 schema -struct --- !query 800 output -1.0 - - --- !query 801 -SELECT nanvl(cast(1 as bigint), cast('2' as binary)) FROM t --- !query 801 schema -struct<> --- !query 801 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 802 -SELECT nanvl(cast(1 as bigint), cast(2 as boolean)) FROM t --- !query 802 schema -struct<> --- !query 802 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 803 -SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 803 schema -struct<> --- !query 803 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 804 -SELECT nanvl(cast(1 as bigint), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 804 schema -struct<> --- !query 804 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS BIGINT) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 805 -SELECT nanvl(cast(1 as float), cast(2 as tinyint)) FROM t --- !query 805 schema -struct --- !query 805 output -1.0 - - --- !query 806 -SELECT nanvl(cast(1 as float), cast(2 as smallint)) FROM t --- !query 806 schema -struct --- !query 806 output -1.0 - - --- !query 807 -SELECT nanvl(cast(1 as float), cast(2 as int)) FROM t --- !query 807 schema -struct --- !query 807 output -1.0 - - --- !query 808 -SELECT nanvl(cast(1 as float), cast(2 as bigint)) FROM t --- !query 808 schema -struct --- !query 808 output -1.0 - - --- !query 809 -SELECT nanvl(cast(1 as float), cast(2 as float)) FROM t --- !query 809 schema -struct --- !query 809 output -1.0 - - --- !query 810 -SELECT nanvl(cast(1 as float), cast(2 as double)) FROM t --- !query 810 schema -struct --- !query 810 output -1.0 - - --- !query 811 -SELECT nanvl(cast(1 as float), cast(2 as decimal(10, 0))) FROM t --- !query 811 schema -struct --- !query 811 output -1.0 - - --- !query 812 -SELECT nanvl(cast(1 as float), cast(2 as string)) FROM t --- !query 812 schema -struct --- !query 812 output -1.0 - - --- !query 813 -SELECT nanvl(cast(1 as float), cast('2' as binary)) FROM t --- !query 813 schema -struct<> --- !query 813 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 814 -SELECT nanvl(cast(1 as float), cast(2 as boolean)) FROM t --- !query 814 schema -struct<> --- !query 814 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 815 -SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 815 schema -struct<> --- !query 815 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 816 -SELECT nanvl(cast(1 as float), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 816 schema -struct<> --- !query 816 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS FLOAT), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 817 -SELECT nanvl(cast(1 as double), cast(2 as tinyint)) FROM t --- !query 817 schema -struct --- !query 817 output -1.0 - - --- !query 818 -SELECT nanvl(cast(1 as double), cast(2 as smallint)) FROM t --- !query 818 schema -struct --- !query 818 output -1.0 - - --- !query 819 -SELECT nanvl(cast(1 as double), cast(2 as int)) FROM t --- !query 819 schema -struct --- !query 819 output -1.0 - - --- !query 820 -SELECT nanvl(cast(1 as double), cast(2 as bigint)) FROM t --- !query 820 schema -struct --- !query 820 output -1.0 - - --- !query 821 -SELECT nanvl(cast(1 as double), cast(2 as float)) FROM t --- !query 821 schema -struct --- !query 821 output -1.0 - - --- !query 822 -SELECT nanvl(cast(1 as double), cast(2 as double)) FROM t --- !query 822 schema -struct --- !query 822 output -1.0 - - --- !query 823 -SELECT nanvl(cast(1 as double), cast(2 as decimal(10, 0))) FROM t --- !query 823 schema -struct --- !query 823 output -1.0 - - --- !query 824 -SELECT nanvl(cast(1 as double), cast(2 as string)) FROM t --- !query 824 schema -struct --- !query 824 output -1.0 - - --- !query 825 -SELECT nanvl(cast(1 as double), cast('2' as binary)) FROM t --- !query 825 schema -struct<> --- !query 825 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 826 -SELECT nanvl(cast(1 as double), cast(2 as boolean)) FROM t --- !query 826 schema -struct<> --- !query 826 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 827 -SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 827 schema -struct<> --- !query 827 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 828 -SELECT nanvl(cast(1 as double), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 828 schema -struct<> --- !query 828 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 829 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t --- !query 829 schema -struct --- !query 829 output -1.0 - - --- !query 830 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t --- !query 830 schema -struct --- !query 830 output -1.0 - - --- !query 831 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as int)) FROM t --- !query 831 schema -struct --- !query 831 output -1.0 - - --- !query 832 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t --- !query 832 schema -struct --- !query 832 output -1.0 - - --- !query 833 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as float)) FROM t --- !query 833 schema -struct --- !query 833 output -1.0 - - --- !query 834 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as double)) FROM t --- !query 834 schema -struct --- !query 834 output -1.0 - - --- !query 835 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t --- !query 835 schema -struct --- !query 835 output -1.0 - - --- !query 836 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as string)) FROM t --- !query 836 schema -struct --- !query 836 output -1.0 - - --- !query 837 -SELECT nanvl(cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t --- !query 837 schema -struct<> --- !query 837 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 838 -SELECT nanvl(cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t --- !query 838 schema -struct<> --- !query 838 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 839 -SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 839 schema -struct<> --- !query 839 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 840 -SELECT nanvl(cast(1 as decimal(10, 0)), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 840 schema -struct<> --- !query 840 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS DECIMAL(10,0)) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 841 -SELECT nanvl(cast(1 as string), cast(2 as tinyint)) FROM t --- !query 841 schema -struct --- !query 841 output -1.0 - - --- !query 842 -SELECT nanvl(cast(1 as string), cast(2 as smallint)) FROM t --- !query 842 schema -struct --- !query 842 output -1.0 - - --- !query 843 -SELECT nanvl(cast(1 as string), cast(2 as int)) FROM t --- !query 843 schema -struct --- !query 843 output -1.0 - - --- !query 844 -SELECT nanvl(cast(1 as string), cast(2 as bigint)) FROM t --- !query 844 schema -struct --- !query 844 output -1.0 - - --- !query 845 -SELECT nanvl(cast(1 as string), cast(2 as float)) FROM t --- !query 845 schema -struct --- !query 845 output -1.0 - - --- !query 846 -SELECT nanvl(cast(1 as string), cast(2 as double)) FROM t --- !query 846 schema -struct --- !query 846 output -1.0 - - --- !query 847 -SELECT nanvl(cast(1 as string), cast(2 as decimal(10, 0))) FROM t --- !query 847 schema -struct --- !query 847 output -1.0 - - --- !query 848 -SELECT nanvl(cast(1 as string), cast(2 as string)) FROM t --- !query 848 schema -struct --- !query 848 output -1.0 - - --- !query 849 -SELECT nanvl(cast(1 as string), cast('2' as binary)) FROM t --- !query 849 schema -struct<> --- !query 849 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2' AS BINARY))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 850 -SELECT nanvl(cast(1 as string), cast(2 as boolean)) FROM t --- !query 850 schema -struct<> --- !query 850 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 851 -SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 851 schema -struct<> --- !query 851 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 852 -SELECT nanvl(cast(1 as string), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 852 schema -struct<> --- !query 852 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(CAST(1 AS STRING) AS DOUBLE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 853 -SELECT nanvl(cast('1' as binary), cast(2 as tinyint)) FROM t --- !query 853 schema -struct<> --- !query 853 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 854 -SELECT nanvl(cast('1' as binary), cast(2 as smallint)) FROM t --- !query 854 schema -struct<> --- !query 854 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 855 -SELECT nanvl(cast('1' as binary), cast(2 as int)) FROM t --- !query 855 schema -struct<> --- !query 855 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 856 -SELECT nanvl(cast('1' as binary), cast(2 as bigint)) FROM t --- !query 856 schema -struct<> --- !query 856 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 857 -SELECT nanvl(cast('1' as binary), cast(2 as float)) FROM t --- !query 857 schema -struct<> --- !query 857 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 858 -SELECT nanvl(cast('1' as binary), cast(2 as double)) FROM t --- !query 858 schema -struct<> --- !query 858 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 859 -SELECT nanvl(cast('1' as binary), cast(2 as decimal(10, 0))) FROM t --- !query 859 schema -struct<> --- !query 859 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 860 -SELECT nanvl(cast('1' as binary), cast(2 as string)) FROM t --- !query 860 schema -struct<> --- !query 860 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 861 -SELECT nanvl(cast('1' as binary), cast('2' as binary)) FROM t --- !query 861 schema -struct<> --- !query 861 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 862 -SELECT nanvl(cast('1' as binary), cast(2 as boolean)) FROM t --- !query 862 schema -struct<> --- !query 862 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 863 -SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 863 schema -struct<> --- !query 863 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 864 -SELECT nanvl(cast('1' as binary), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 864 schema -struct<> --- !query 864 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('1' AS BINARY), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('1' AS BINARY)' is of binary type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 865 -SELECT nanvl(cast(1 as boolean), cast(2 as tinyint)) FROM t --- !query 865 schema -struct<> --- !query 865 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 866 -SELECT nanvl(cast(1 as boolean), cast(2 as smallint)) FROM t --- !query 866 schema -struct<> --- !query 866 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 867 -SELECT nanvl(cast(1 as boolean), cast(2 as int)) FROM t --- !query 867 schema -struct<> --- !query 867 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 868 -SELECT nanvl(cast(1 as boolean), cast(2 as bigint)) FROM t --- !query 868 schema -struct<> --- !query 868 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 869 -SELECT nanvl(cast(1 as boolean), cast(2 as float)) FROM t --- !query 869 schema -struct<> --- !query 869 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 870 -SELECT nanvl(cast(1 as boolean), cast(2 as double)) FROM t --- !query 870 schema -struct<> --- !query 870 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 871 -SELECT nanvl(cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t --- !query 871 schema -struct<> --- !query 871 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 872 -SELECT nanvl(cast(1 as boolean), cast(2 as string)) FROM t --- !query 872 schema -struct<> --- !query 872 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 873 -SELECT nanvl(cast(1 as boolean), cast('2' as binary)) FROM t --- !query 873 schema -struct<> --- !query 873 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 874 -SELECT nanvl(cast(1 as boolean), cast(2 as boolean)) FROM t --- !query 874 schema -struct<> --- !query 874 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 875 -SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 875 schema -struct<> --- !query 875 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 876 -SELECT nanvl(cast(1 as boolean), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 876 schema -struct<> --- !query 876 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST(1 AS BOOLEAN), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST(1 AS BOOLEAN)' is of boolean type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 877 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t --- !query 877 schema -struct<> --- !query 877 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 878 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t --- !query 878 schema -struct<> --- !query 878 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 879 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as int)) FROM t --- !query 879 schema -struct<> --- !query 879 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 880 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t --- !query 880 schema -struct<> --- !query 880 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 881 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as float)) FROM t --- !query 881 schema -struct<> --- !query 881 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 882 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as double)) FROM t --- !query 882 schema -struct<> --- !query 882 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 883 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t --- !query 883 schema -struct<> --- !query 883 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 884 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as string)) FROM t --- !query 884 schema -struct<> --- !query 884 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 885 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2' as binary)) FROM t --- !query 885 schema -struct<> --- !query 885 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 886 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t --- !query 886 schema -struct<> --- !query 886 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 887 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 887 schema -struct<> --- !query 887 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 888 -SELECT nanvl(cast('2017-12-11 09:30:00.0' as timestamp), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 888 schema -struct<> --- !query 888 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00.0' AS TIMESTAMP)' is of timestamp type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 889 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as tinyint)) FROM t --- !query 889 schema -struct<> --- !query 889 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS TINYINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 890 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as smallint)) FROM t --- !query 890 schema -struct<> --- !query 890 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS SMALLINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 891 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as int)) FROM t --- !query 891 schema -struct<> --- !query 891 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS INT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 892 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as bigint)) FROM t --- !query 892 schema -struct<> --- !query 892 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS BIGINT) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 893 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as float)) FROM t --- !query 893 schema -struct<> --- !query 893 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS FLOAT))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 894 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as double)) FROM t --- !query 894 schema -struct<> --- !query 894 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 895 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t --- !query 895 schema -struct<> --- !query 895 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS DECIMAL(10,0)) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 896 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as string)) FROM t --- !query 896 schema -struct<> --- !query 896 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(CAST(2 AS STRING) AS DOUBLE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type.; line 1 pos 7 - - --- !query 897 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2' as binary)) FROM t --- !query 897 schema -struct<> --- !query 897 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2' AS BINARY))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2' AS BINARY)' is of binary type.; line 1 pos 7 - - --- !query 898 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast(2 as boolean)) FROM t --- !query 898 schema -struct<> --- !query 898 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST(2 AS BOOLEAN))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST(2 AS BOOLEAN)' is of boolean type.; line 1 pos 7 - - --- !query 899 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00.0' as timestamp)) FROM t --- !query 899 schema -struct<> --- !query 899 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00.0' AS TIMESTAMP)' is of timestamp type.; line 1 pos 7 - - --- !query 900 -SELECT nanvl(cast('2017-12-11 09:30:00' as date), cast('2017-12-12 09:30:00' as date)) FROM t --- !query 900 schema -struct<> --- !query 900 output -org.apache.spark.sql.AnalysisException -cannot resolve 'nanvl(CAST('2017-12-11 09:30:00' AS DATE), CAST('2017-12-12 09:30:00' AS DATE))' due to data type mismatch: argument 1 requires (double or float) type, however, 'CAST('2017-12-11 09:30:00' AS DATE)' is of date type. argument 2 requires (double or float) type, however, 'CAST('2017-12-12 09:30:00' AS DATE)' is of date type.; line 1 pos 7 diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out new file mode 100644 index 0000000000000..d901845fe4e48 --- /dev/null +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out @@ -0,0 +1,206 @@ +-- Automatically generated by SQLQueryTestSuite +-- Number of queries: 25 + + +-- !query 0 +CREATE TEMPORARY VIEW t AS SELECT 1 +-- !query 0 schema +struct<> +-- !query 0 output + + + +-- !query 1 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as tinyint)) FROM t +-- !query 1 schema +struct +-- !query 1 output +1 + + +-- !query 2 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as smallint)) FROM t +-- !query 2 schema +struct +-- !query 2 output +1 + + +-- !query 3 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as int)) FROM t +-- !query 3 schema +struct +-- !query 3 output +1 + + +-- !query 4 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as bigint)) FROM t +-- !query 4 schema +struct +-- !query 4 output +1 + + +-- !query 5 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as float)) FROM t +-- !query 5 schema +struct +-- !query 5 output +1 + + +-- !query 6 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as double)) FROM t +-- !query 6 schema +struct +-- !query 6 output +1 + + +-- !query 7 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as decimal(10, 0))) FROM t +-- !query 7 schema +struct +-- !query 7 output +1 + + +-- !query 8 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string)) FROM t +-- !query 8 schema +struct +-- !query 8 output +1 + + +-- !query 9 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('1' as binary)) FROM t +-- !query 9 schema +struct +-- !query 9 output +1 + + +-- !query 10 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean)) FROM t +-- !query 10 schema +struct +-- !query 10 output +1 + + +-- !query 11 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00.0' as timestamp)) FROM t +-- !query 11 schema +struct +-- !query 11 output +1 + + +-- !query 12 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00' as date)) FROM t +-- !query 12 schema +struct +-- !query 12 output +1 + + +-- !query 13 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as tinyint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 13 schema +struct +-- !query 13 output +1 + + +-- !query 14 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as smallint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 14 schema +struct +-- !query 14 output +1 + + +-- !query 15 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as int) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 15 schema +struct +-- !query 15 output +1 + + +-- !query 16 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as bigint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 16 schema +struct +-- !query 16 output +1 + + +-- !query 17 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as float) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 17 schema +struct +-- !query 17 output +1 + + +-- !query 18 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as double) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 18 schema +struct +-- !query 18 output +1 + + +-- !query 19 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as decimal(10, 0)) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 19 schema +struct +-- !query 19 output +1 + + +-- !query 20 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 20 schema +struct<> +-- !query 20 output +org.apache.spark.sql.AnalysisException +cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS STRING) FOLLOWING' due to data type mismatch: The data type of the upper bound 'StringType does not match the expected data type 'org.apache.spark.sql.types.TypeCollection@7ff36201'.; line 1 pos 21 + + +-- !query 21 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('1' as binary) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 21 schema +struct<> +-- !query 21 output +org.apache.spark.sql.AnalysisException +cannot resolve '(PARTITION BY 1 ORDER BY CAST('1' AS BINARY) DESC NULLS LAST RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING)' due to data type mismatch: The data type 'BinaryType' used in the order specification does not match the data type 'IntegerType' which is used in the range frame.; line 1 pos 21 + + +-- !query 22 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 22 schema +struct<> +-- !query 22 output +org.apache.spark.sql.AnalysisException +cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS BOOLEAN) FOLLOWING' due to data type mismatch: The data type of the upper bound 'BooleanType does not match the expected data type 'org.apache.spark.sql.types.TypeCollection@7ff36201'.; line 1 pos 21 + + +-- !query 23 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00.0' as timestamp) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 23 schema +struct<> +-- !query 23 output +org.apache.spark.sql.AnalysisException +cannot resolve '(PARTITION BY 1 ORDER BY CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) DESC NULLS LAST RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING)' due to data type mismatch: The data type 'TimestampType' used in the order specification does not match the data type 'IntegerType' which is used in the range frame.; line 1 pos 21 + + +-- !query 24 +SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00' as date) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t +-- !query 24 schema +struct +-- !query 24 output +1 From 19bcca13ab03c9a5cb5399476e1afac26a30ec49 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Wed, 20 Dec 2017 20:51:54 +0800 Subject: [PATCH 5/8] TypeCollection should use simpleString --- .../spark/sql/catalyst/expressions/windowExpressions.scala | 2 +- .../results/typeCoercion/native/windowFrameCoercion.sql.out | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala index e11e3a105f597..8856728037a99 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala @@ -252,7 +252,7 @@ case class SpecifiedWindowFrame( case e: Expression if !frameType.inputType.acceptsType(e.dataType) => TypeCheckFailure( s"The data type of the $location bound '${e.dataType} does not match " + - s"the expected data type '${frameType.inputType}'.") + s"the expected data type '${frameType.inputType.simpleString}'.") case _ => TypeCheckSuccess } diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out index d901845fe4e48..1ba9bf5d214ad 100644 --- a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out @@ -168,7 +168,7 @@ SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string) DESC RANGE BETWE struct<> -- !query 20 output org.apache.spark.sql.AnalysisException -cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS STRING) FOLLOWING' due to data type mismatch: The data type of the upper bound 'StringType does not match the expected data type 'org.apache.spark.sql.types.TypeCollection@7ff36201'.; line 1 pos 21 +cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS STRING) FOLLOWING' due to data type mismatch: The data type of the upper bound 'StringType does not match the expected data type '(numeric or calendarinterval)'.; line 1 pos 21 -- !query 21 @@ -186,7 +186,7 @@ SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean) DESC RANGE BETW struct<> -- !query 22 output org.apache.spark.sql.AnalysisException -cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS BOOLEAN) FOLLOWING' due to data type mismatch: The data type of the upper bound 'BooleanType does not match the expected data type 'org.apache.spark.sql.types.TypeCollection@7ff36201'.; line 1 pos 21 +cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS BOOLEAN) FOLLOWING' due to data type mismatch: The data type of the upper bound 'BooleanType does not match the expected data type '(numeric or calendarinterval)'.; line 1 pos 21 -- !query 23 From 3291339bfa643f12e9d5c3d7cb68c02617f22afa Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Wed, 20 Dec 2017 21:03:50 +0800 Subject: [PATCH 6/8] Add a single quote --- .../spark/sql/catalyst/expressions/windowExpressions.scala | 2 +- .../results/typeCoercion/native/windowFrameCoercion.sql.out | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala index 8856728037a99..220cc4f885d7d 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala @@ -251,7 +251,7 @@ case class SpecifiedWindowFrame( TypeCheckFailure(s"Window frame $location bound '$e' is not a literal.") case e: Expression if !frameType.inputType.acceptsType(e.dataType) => TypeCheckFailure( - s"The data type of the $location bound '${e.dataType} does not match " + + s"The data type of the $location bound '${e.dataType}' does not match " + s"the expected data type '${frameType.inputType.simpleString}'.") case _ => TypeCheckSuccess } diff --git a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out index 1ba9bf5d214ad..5dd257ba6a0bb 100644 --- a/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/typeCoercion/native/windowFrameCoercion.sql.out @@ -168,7 +168,7 @@ SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string) DESC RANGE BETWE struct<> -- !query 20 output org.apache.spark.sql.AnalysisException -cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS STRING) FOLLOWING' due to data type mismatch: The data type of the upper bound 'StringType does not match the expected data type '(numeric or calendarinterval)'.; line 1 pos 21 +cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS STRING) FOLLOWING' due to data type mismatch: The data type of the upper bound 'StringType' does not match the expected data type '(numeric or calendarinterval)'.; line 1 pos 21 -- !query 21 @@ -186,7 +186,7 @@ SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean) DESC RANGE BETW struct<> -- !query 22 output org.apache.spark.sql.AnalysisException -cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS BOOLEAN) FOLLOWING' due to data type mismatch: The data type of the upper bound 'BooleanType does not match the expected data type '(numeric or calendarinterval)'.; line 1 pos 21 +cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS BOOLEAN) FOLLOWING' due to data type mismatch: The data type of the upper bound 'BooleanType' does not match the expected data type '(numeric or calendarinterval)'.; line 1 pos 21 -- !query 23 From a49d1cc1849f5cb8997b84bb1bb662789378cc21 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Thu, 21 Dec 2017 05:57:24 +0700 Subject: [PATCH 7/8] Fix test error --- sql/core/src/test/resources/sql-tests/results/window.sql.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/core/src/test/resources/sql-tests/results/window.sql.out b/sql/core/src/test/resources/sql-tests/results/window.sql.out index 73ad27e5bf8ce..be2cac8381479 100644 --- a/sql/core/src/test/resources/sql-tests/results/window.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/window.sql.out @@ -61,7 +61,7 @@ ROWS BETWEEN CURRENT ROW AND 2147483648 FOLLOWING) FROM testData ORDER BY cate, struct<> -- !query 3 output org.apache.spark.sql.AnalysisException -cannot resolve 'ROWS BETWEEN CURRENT ROW AND 2147483648L FOLLOWING' due to data type mismatch: The data type of the upper bound 'LongType does not match the expected data type 'IntegerType'.; line 1 pos 41 +cannot resolve 'ROWS BETWEEN CURRENT ROW AND 2147483648L FOLLOWING' due to data type mismatch: The data type of the upper bound 'bigint' does not match the expected data type 'int'.; line 1 pos 41 -- !query 4 From ec07bc2a463b089dd5798ab9e6bf8aea1b8ccd28 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Thu, 21 Dec 2017 06:11:31 +0700 Subject: [PATCH 8/8] Fix test error --- sql/core/src/test/resources/sql-tests/results/window.sql.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/core/src/test/resources/sql-tests/results/window.sql.out b/sql/core/src/test/resources/sql-tests/results/window.sql.out index be2cac8381479..a52e198eb9a8f 100644 --- a/sql/core/src/test/resources/sql-tests/results/window.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/window.sql.out @@ -61,7 +61,7 @@ ROWS BETWEEN CURRENT ROW AND 2147483648 FOLLOWING) FROM testData ORDER BY cate, struct<> -- !query 3 output org.apache.spark.sql.AnalysisException -cannot resolve 'ROWS BETWEEN CURRENT ROW AND 2147483648L FOLLOWING' due to data type mismatch: The data type of the upper bound 'bigint' does not match the expected data type 'int'.; line 1 pos 41 +cannot resolve 'ROWS BETWEEN CURRENT ROW AND 2147483648L FOLLOWING' due to data type mismatch: The data type of the upper bound 'LongType' does not match the expected data type 'int'.; line 1 pos 41 -- !query 4